]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes This patch fixes the status command to include the formating string for
[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 TOP_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 QMAKE QMAKEQT4 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 BAT_DIR QWT_INC QWT_LDFLAGS 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 db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE 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 bgnome-console GUI disabled
870   --enable-bat  enable build of bat Qt4 GUI disabled
871   --enable-bwx-console     enable build of wxWidgets console disabled
872   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
873   --enable-smartalloc     enable smartalloc debugging support disabled
874   --enable-static-tools   enable static tape tools disabled
875   --enable-static-fd      enable static File daemon disabled
876   --enable-static-sd      enable static Storage daemon disabled
877   --enable-static-dir     enable static Director disabled
878   --enable-static-cons    enable static Console disabled
879   --enable-client-only    build client (File daemon) only disabled
880   --enable-build-dird     enable building of dird (Director) enabled
881   --enable-build-stored   enable building of stored (Storage daemon) enabled
882  --disable-conio disable conio support enabled
883
884   --enable-ipv6             enable ipv6 support enabled
885
886   --disable-readline      disable readline support disable
887
888         --enable-batch-insert       enable the DB batch insert code disabled
889   --disable-largefile     omit support for large files
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-gnu-ld           assume the C compiler uses GNU ld default=no
895   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
896   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
897   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
898   --without-libintl-prefix     don't search for libintl in includedir and libdir
899   --with-included-gettext use the GNU gettext library included here
900  --with-qwt[=DIR]                 specify qwt library directory
901  --with-readline[=DIR]         specify readline library directory
902
903   --with-python[=DIR]   Include Python support.  DIR is the Python base
904                           install directory, default is to search through
905                           a number of common places for the Python files.
906   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
907   --with-openssl[=DIR]
908                           Include OpenSSL support. DIR is the OpenSSL base
909   --with-working-dir=PATH        specify path of Bacula working directory
910   --with-scriptdir=PATH    specify path of Bacula scripts directory
911   --with-dump-email=EMAIL        dump email address
912   --with-job-email=EMAIL         job output email address
913   --with-smtp-host=HOST          SMTP mail host address
914   --with-pid-dir=PATH            specify location of Bacula pid files
915   --with-subsys-dir=PATH         specify location of Bacula subsys file
916   --with-baseport=PORT           specify base port address for daemons
917   --with-dir-password=PASSWORD   specify Director's password
918   --with-fd-password=PASSWORD    specify Client's password
919   --with-sd-password=PASSWORD    specify Storage daemon's password
920   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
921   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
922   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
923   --with-db-name=DBNAME        specify database name (default bacula)
924   --with-db-user=UNAME         specify database user (default bacula)
925   --with-dir-user=USER           specify user for Director daemon
926   --with-dir-group=GROUP                 specify group for Director daemon
927   --with-sd-user=USER            specify user for Storage daemon
928   --with-sd-group=GROUP          specify group for Storage daemon
929   --with-fd-user=USER            specify user for File daemon
930   --with-fd-group=GROUP          specify group for File daemon
931   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
932   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
933                           base install directory, defaults to /usr/local/pgsql
934
935   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
936                           install directory, default is to search through
937                           a number of common places for the MySQL files.
938
939   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
940                           install directory, default is to search through
941                           a number of common places for the MySQL files.
942
943   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
944                           install directory, default is to search through
945                           a number of common places for the SQLite3 files.
946
947   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
948                           install directory, default is to search through
949                           a number of common places for the SQLite files.
950   --with-x                use the X Window System
951
952 Some influential environment variables:
953   CC          C compiler command
954   CFLAGS      C compiler flags
955   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
956               nonstandard directory <lib dir>
957   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
958               headers in a nonstandard directory <include dir>
959   CXX         C++ compiler command
960   CXXFLAGS    C++ compiler flags
961   CPP         C preprocessor
962   WXCONFIG    wx-config command. On some systems, you must set it to
963               wx-config-2.6 to use wxWidgets 2.6.
964   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
965
966 Use these variables to override the choices made by `configure' or to help
967 it to find libraries and programs with nonstandard names/locations.
968
969 _ACEOF
970 fi
971
972 if test "$ac_init_help" = "recursive"; then
973   # If there are subdirs, report their specific --help.
974   ac_popdir=`pwd`
975   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
976     test -d $ac_dir || continue
977     ac_builddir=.
978
979 if test "$ac_dir" != .; then
980   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
981   # A "../" for each directory in $ac_dir_suffix.
982   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
983 else
984   ac_dir_suffix= ac_top_builddir=
985 fi
986
987 case $srcdir in
988   .)  # No --srcdir option.  We are building in place.
989     ac_srcdir=.
990     if test -z "$ac_top_builddir"; then
991        ac_top_srcdir=.
992     else
993        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
994     fi ;;
995   [\\/]* | ?:[\\/]* )  # Absolute path.
996     ac_srcdir=$srcdir$ac_dir_suffix;
997     ac_top_srcdir=$srcdir ;;
998   *) # Relative path.
999     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1000     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1001 esac
1002
1003 # Do not use `cd foo && pwd` to compute absolute paths, because
1004 # the directories may not exist.
1005 case `pwd` in
1006 .) ac_abs_builddir="$ac_dir";;
1007 *)
1008   case "$ac_dir" in
1009   .) ac_abs_builddir=`pwd`;;
1010   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1011   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1012   esac;;
1013 esac
1014 case $ac_abs_builddir in
1015 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1016 *)
1017   case ${ac_top_builddir}. in
1018   .) ac_abs_top_builddir=$ac_abs_builddir;;
1019   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1020   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1021   esac;;
1022 esac
1023 case $ac_abs_builddir in
1024 .) ac_abs_srcdir=$ac_srcdir;;
1025 *)
1026   case $ac_srcdir in
1027   .) ac_abs_srcdir=$ac_abs_builddir;;
1028   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1029   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1030   esac;;
1031 esac
1032 case $ac_abs_builddir in
1033 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1034 *)
1035   case $ac_top_srcdir in
1036   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1037   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1038   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1039   esac;;
1040 esac
1041
1042     cd $ac_dir
1043     # Check for guested configure; otherwise get Cygnus style configure.
1044     if test -f $ac_srcdir/configure.gnu; then
1045       echo
1046       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1047     elif test -f $ac_srcdir/configure; then
1048       echo
1049       $SHELL $ac_srcdir/configure  --help=recursive
1050     elif test -f $ac_srcdir/configure.ac ||
1051            test -f $ac_srcdir/configure.in; then
1052       echo
1053       $ac_configure --help
1054     else
1055       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1056     fi
1057     cd $ac_popdir
1058   done
1059 fi
1060
1061 test -n "$ac_init_help" && exit 0
1062 if $ac_init_version; then
1063   cat <<\_ACEOF
1064
1065 Copyright (C) 2003 Free Software Foundation, Inc.
1066 This configure script is free software; the Free Software Foundation
1067 gives unlimited permission to copy, distribute and modify it.
1068 _ACEOF
1069   exit 0
1070 fi
1071 exec 5>config.log
1072 cat >&5 <<_ACEOF
1073 This file contains any messages produced by compilers while
1074 running configure, to aid debugging if configure makes a mistake.
1075
1076 It was created by $as_me, which was
1077 generated by GNU Autoconf 2.59.  Invocation command line was
1078
1079   $ $0 $@
1080
1081 _ACEOF
1082 {
1083 cat <<_ASUNAME
1084 ## --------- ##
1085 ## Platform. ##
1086 ## --------- ##
1087
1088 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1089 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1090 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1091 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1092 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1093
1094 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1095 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1096
1097 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1098 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1099 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1100 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1101 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1102 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1103 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1104
1105 _ASUNAME
1106
1107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1108 for as_dir in $PATH
1109 do
1110   IFS=$as_save_IFS
1111   test -z "$as_dir" && as_dir=.
1112   echo "PATH: $as_dir"
1113 done
1114
1115 } >&5
1116
1117 cat >&5 <<_ACEOF
1118
1119
1120 ## ----------- ##
1121 ## Core tests. ##
1122 ## ----------- ##
1123
1124 _ACEOF
1125
1126
1127 # Keep a trace of the command line.
1128 # Strip out --no-create and --no-recursion so they do not pile up.
1129 # Strip out --silent because we don't want to record it for future runs.
1130 # Also quote any args containing shell meta-characters.
1131 # Make two passes to allow for proper duplicate-argument suppression.
1132 ac_configure_args=
1133 ac_configure_args0=
1134 ac_configure_args1=
1135 ac_sep=
1136 ac_must_keep_next=false
1137 for ac_pass in 1 2
1138 do
1139   for ac_arg
1140   do
1141     case $ac_arg in
1142     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1143     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144     | -silent | --silent | --silen | --sile | --sil)
1145       continue ;;
1146     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1147       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1148     esac
1149     case $ac_pass in
1150     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1151     2)
1152       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1153       if test $ac_must_keep_next = true; then
1154         ac_must_keep_next=false # Got value, back to normal.
1155       else
1156         case $ac_arg in
1157           *=* | --config-cache | -C | -disable-* | --disable-* \
1158           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1159           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1160           | -with-* | --with-* | -without-* | --without-* | --x)
1161             case "$ac_configure_args0 " in
1162               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1163             esac
1164             ;;
1165           -* ) ac_must_keep_next=true ;;
1166         esac
1167       fi
1168       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1169       # Get rid of the leading space.
1170       ac_sep=" "
1171       ;;
1172     esac
1173   done
1174 done
1175 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1176 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1177
1178 # When interrupted or exit'd, cleanup temporary files, and complete
1179 # config.log.  We remove comments because anyway the quotes in there
1180 # would cause problems or look ugly.
1181 # WARNING: Be sure not to use single quotes in there, as some shells,
1182 # such as our DU 5.0 friend, will then `close' the trap.
1183 trap 'exit_status=$?
1184   # Save into config.log some information that might help in debugging.
1185   {
1186     echo
1187
1188     cat <<\_ASBOX
1189 ## ---------------- ##
1190 ## Cache variables. ##
1191 ## ---------------- ##
1192 _ASBOX
1193     echo
1194     # The following way of writing the cache mishandles newlines in values,
1195 {
1196   (set) 2>&1 |
1197     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1198     *ac_space=\ *)
1199       sed -n \
1200         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1202       ;;
1203     *)
1204       sed -n \
1205         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1206       ;;
1207     esac;
1208 }
1209     echo
1210
1211     cat <<\_ASBOX
1212 ## ----------------- ##
1213 ## Output variables. ##
1214 ## ----------------- ##
1215 _ASBOX
1216     echo
1217     for ac_var in $ac_subst_vars
1218     do
1219       eval ac_val=$`echo $ac_var`
1220       echo "$ac_var='"'"'$ac_val'"'"'"
1221     done | sort
1222     echo
1223
1224     if test -n "$ac_subst_files"; then
1225       cat <<\_ASBOX
1226 ## ------------- ##
1227 ## Output files. ##
1228 ## ------------- ##
1229 _ASBOX
1230       echo
1231       for ac_var in $ac_subst_files
1232       do
1233         eval ac_val=$`echo $ac_var`
1234         echo "$ac_var='"'"'$ac_val'"'"'"
1235       done | sort
1236       echo
1237     fi
1238
1239     if test -s confdefs.h; then
1240       cat <<\_ASBOX
1241 ## ----------- ##
1242 ## confdefs.h. ##
1243 ## ----------- ##
1244 _ASBOX
1245       echo
1246       sed "/^$/d" confdefs.h | sort
1247       echo
1248     fi
1249     test "$ac_signal" != 0 &&
1250       echo "$as_me: caught signal $ac_signal"
1251     echo "$as_me: exit $exit_status"
1252   } >&5
1253   rm -f core *.core &&
1254   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1255     exit $exit_status
1256      ' 0
1257 for ac_signal in 1 2 13 15; do
1258   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1259 done
1260 ac_signal=0
1261
1262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1263 rm -rf conftest* confdefs.h
1264 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1265 echo >confdefs.h
1266
1267 # Predefined preprocessor variables.
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_NAME "$PACKAGE_NAME"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1281 _ACEOF
1282
1283
1284 cat >>confdefs.h <<_ACEOF
1285 #define PACKAGE_STRING "$PACKAGE_STRING"
1286 _ACEOF
1287
1288
1289 cat >>confdefs.h <<_ACEOF
1290 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1291 _ACEOF
1292
1293
1294 # Let the site file select an alternate cache file if it wants to.
1295 # Prefer explicitly selected file to automatically selected ones.
1296 if test -z "$CONFIG_SITE"; then
1297   if test "x$prefix" != xNONE; then
1298     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1299   else
1300     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1301   fi
1302 fi
1303 for ac_site_file in $CONFIG_SITE; do
1304   if test -r "$ac_site_file"; then
1305     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1306 echo "$as_me: loading site script $ac_site_file" >&6;}
1307     sed 's/^/| /' "$ac_site_file" >&5
1308     . "$ac_site_file"
1309   fi
1310 done
1311
1312 if test -r "$cache_file"; then
1313   # Some versions of bash will fail to source /dev/null (special
1314   # files actually), so we avoid doing that.
1315   if test -f "$cache_file"; then
1316     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1317 echo "$as_me: loading cache $cache_file" >&6;}
1318     case $cache_file in
1319       [\\/]* | ?:[\\/]* ) . $cache_file;;
1320       *)                      . ./$cache_file;;
1321     esac
1322   fi
1323 else
1324   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1325 echo "$as_me: creating cache $cache_file" >&6;}
1326   >$cache_file
1327 fi
1328
1329 # Check that the precious variables saved in the cache have kept the same
1330 # value.
1331 ac_cache_corrupted=false
1332 for ac_var in `(set) 2>&1 |
1333                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1334   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1335   eval ac_new_set=\$ac_env_${ac_var}_set
1336   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1337   eval ac_new_val="\$ac_env_${ac_var}_value"
1338   case $ac_old_set,$ac_new_set in
1339     set,)
1340       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1341 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1342       ac_cache_corrupted=: ;;
1343     ,set)
1344       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1345 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1346       ac_cache_corrupted=: ;;
1347     ,);;
1348     *)
1349       if test "x$ac_old_val" != "x$ac_new_val"; then
1350         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1351 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1352         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1353 echo "$as_me:   former value:  $ac_old_val" >&2;}
1354         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1355 echo "$as_me:   current value: $ac_new_val" >&2;}
1356         ac_cache_corrupted=:
1357       fi;;
1358   esac
1359   # Pass precious variables to config.status.
1360   if test "$ac_new_set" = set; then
1361     case $ac_new_val in
1362     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1363       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1364     *) ac_arg=$ac_var=$ac_new_val ;;
1365     esac
1366     case " $ac_configure_args " in
1367       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1368       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1369     esac
1370   fi
1371 done
1372 if $ac_cache_corrupted; then
1373   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1374 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1375   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1376 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1377    { (exit 1); exit 1; }; }
1378 fi
1379
1380 ac_ext=c
1381 ac_cpp='$CPP $CPPFLAGS'
1382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404 BUILD_DIR=`pwd`
1405 cd ..
1406 TOP_DIR=`pwd`
1407 cd ${BUILD_DIR}
1408
1409
1410 ac_aux_dir=
1411 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1412   if test -f $ac_dir/install-sh; then
1413     ac_aux_dir=$ac_dir
1414     ac_install_sh="$ac_aux_dir/install-sh -c"
1415     break
1416   elif test -f $ac_dir/install.sh; then
1417     ac_aux_dir=$ac_dir
1418     ac_install_sh="$ac_aux_dir/install.sh -c"
1419     break
1420   elif test -f $ac_dir/shtool; then
1421     ac_aux_dir=$ac_dir
1422     ac_install_sh="$ac_aux_dir/shtool install -c"
1423     break
1424   fi
1425 done
1426 if test -z "$ac_aux_dir"; then
1427   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1428 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1429    { (exit 1); exit 1; }; }
1430 fi
1431 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1432 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1433 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1434
1435           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1436
1437
1438
1439
1440
1441 for ac_prog in true
1442 do
1443   # Extract the first word of "$ac_prog", so it can be a program name with args.
1444 set dummy $ac_prog; ac_word=$2
1445 echo "$as_me:$LINENO: checking for $ac_word" >&5
1446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1448   echo $ECHO_N "(cached) $ECHO_C" >&6
1449 else
1450   case $TRUEPRG in
1451   [\\/]* | ?:[\\/]*)
1452   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1453   ;;
1454   *)
1455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1456 for as_dir in $PATH
1457 do
1458   IFS=$as_save_IFS
1459   test -z "$as_dir" && as_dir=.
1460   for ac_exec_ext in '' $ac_executable_extensions; do
1461   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1462     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1463     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1464     break 2
1465   fi
1466 done
1467 done
1468
1469   ;;
1470 esac
1471 fi
1472 TRUEPRG=$ac_cv_path_TRUEPRG
1473
1474 if test -n "$TRUEPRG"; then
1475   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1476 echo "${ECHO_T}$TRUEPRG" >&6
1477 else
1478   echo "$as_me:$LINENO: result: no" >&5
1479 echo "${ECHO_T}no" >&6
1480 fi
1481
1482   test -n "$TRUEPRG" && break
1483 done
1484 test -n "$TRUEPRG" || TRUEPRG=":"
1485
1486 for ac_prog in false
1487 do
1488   # Extract the first word of "$ac_prog", so it can be a program name with args.
1489 set dummy $ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1493   echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495   case $FALSEPRG in
1496   [\\/]* | ?:[\\/]*)
1497   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1498   ;;
1499   *)
1500   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1501 for as_dir in $PATH
1502 do
1503   IFS=$as_save_IFS
1504   test -z "$as_dir" && as_dir=.
1505   for ac_exec_ext in '' $ac_executable_extensions; do
1506   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1507     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1508     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1509     break 2
1510   fi
1511 done
1512 done
1513
1514   ;;
1515 esac
1516 fi
1517 FALSEPRG=$ac_cv_path_FALSEPRG
1518
1519 if test -n "$FALSEPRG"; then
1520   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1521 echo "${ECHO_T}$FALSEPRG" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   test -n "$FALSEPRG" && break
1528 done
1529 test -n "$FALSEPRG" || FALSEPRG=":"
1530
1531
1532
1533 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1534 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 echo "configuring for bacula $VERSION ($DATE)"
1537
1538
1539
1540 ac_ext=c
1541 ac_cpp='$CPP $CPPFLAGS'
1542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1545 if test -n "$ac_tool_prefix"; then
1546   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1547 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1548 echo "$as_me:$LINENO: checking for $ac_word" >&5
1549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550 if test "${ac_cv_prog_CC+set}" = set; then
1551   echo $ECHO_N "(cached) $ECHO_C" >&6
1552 else
1553   if test -n "$CC"; then
1554   ac_cv_prog_CC="$CC" # Let the user override the test.
1555 else
1556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1557 for as_dir in $PATH
1558 do
1559   IFS=$as_save_IFS
1560   test -z "$as_dir" && as_dir=.
1561   for ac_exec_ext in '' $ac_executable_extensions; do
1562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1563     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1565     break 2
1566   fi
1567 done
1568 done
1569
1570 fi
1571 fi
1572 CC=$ac_cv_prog_CC
1573 if test -n "$CC"; then
1574   echo "$as_me:$LINENO: result: $CC" >&5
1575 echo "${ECHO_T}$CC" >&6
1576 else
1577   echo "$as_me:$LINENO: result: no" >&5
1578 echo "${ECHO_T}no" >&6
1579 fi
1580
1581 fi
1582 if test -z "$ac_cv_prog_CC"; then
1583   ac_ct_CC=$CC
1584   # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo "$as_me:$LINENO: checking for $ac_word" >&5
1587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1588 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1589   echo $ECHO_N "(cached) $ECHO_C" >&6
1590 else
1591   if test -n "$ac_ct_CC"; then
1592   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1593 else
1594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595 for as_dir in $PATH
1596 do
1597   IFS=$as_save_IFS
1598   test -z "$as_dir" && as_dir=.
1599   for ac_exec_ext in '' $ac_executable_extensions; do
1600   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1601     ac_cv_prog_ac_ct_CC="gcc"
1602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1603     break 2
1604   fi
1605 done
1606 done
1607
1608 fi
1609 fi
1610 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1611 if test -n "$ac_ct_CC"; then
1612   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1613 echo "${ECHO_T}$ac_ct_CC" >&6
1614 else
1615   echo "$as_me:$LINENO: result: no" >&5
1616 echo "${ECHO_T}no" >&6
1617 fi
1618
1619   CC=$ac_ct_CC
1620 else
1621   CC="$ac_cv_prog_CC"
1622 fi
1623
1624 if test -z "$CC"; then
1625   if test -n "$ac_tool_prefix"; then
1626   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1627 set dummy ${ac_tool_prefix}cc; ac_word=$2
1628 echo "$as_me:$LINENO: checking for $ac_word" >&5
1629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1630 if test "${ac_cv_prog_CC+set}" = set; then
1631   echo $ECHO_N "(cached) $ECHO_C" >&6
1632 else
1633   if test -n "$CC"; then
1634   ac_cv_prog_CC="$CC" # Let the user override the test.
1635 else
1636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1637 for as_dir in $PATH
1638 do
1639   IFS=$as_save_IFS
1640   test -z "$as_dir" && as_dir=.
1641   for ac_exec_ext in '' $ac_executable_extensions; do
1642   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1643     ac_cv_prog_CC="${ac_tool_prefix}cc"
1644     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1645     break 2
1646   fi
1647 done
1648 done
1649
1650 fi
1651 fi
1652 CC=$ac_cv_prog_CC
1653 if test -n "$CC"; then
1654   echo "$as_me:$LINENO: result: $CC" >&5
1655 echo "${ECHO_T}$CC" >&6
1656 else
1657   echo "$as_me:$LINENO: result: no" >&5
1658 echo "${ECHO_T}no" >&6
1659 fi
1660
1661 fi
1662 if test -z "$ac_cv_prog_CC"; then
1663   ac_ct_CC=$CC
1664   # Extract the first word of "cc", so it can be a program name with args.
1665 set dummy cc; ac_word=$2
1666 echo "$as_me:$LINENO: checking for $ac_word" >&5
1667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1669   echo $ECHO_N "(cached) $ECHO_C" >&6
1670 else
1671   if test -n "$ac_ct_CC"; then
1672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1673 else
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677   IFS=$as_save_IFS
1678   test -z "$as_dir" && as_dir=.
1679   for ac_exec_ext in '' $ac_executable_extensions; do
1680   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1681     ac_cv_prog_ac_ct_CC="cc"
1682     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1683     break 2
1684   fi
1685 done
1686 done
1687
1688 fi
1689 fi
1690 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1691 if test -n "$ac_ct_CC"; then
1692   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1693 echo "${ECHO_T}$ac_ct_CC" >&6
1694 else
1695   echo "$as_me:$LINENO: result: no" >&5
1696 echo "${ECHO_T}no" >&6
1697 fi
1698
1699   CC=$ac_ct_CC
1700 else
1701   CC="$ac_cv_prog_CC"
1702 fi
1703
1704 fi
1705 if test -z "$CC"; then
1706   # Extract the first word of "cc", so it can be a program name with args.
1707 set dummy cc; ac_word=$2
1708 echo "$as_me:$LINENO: checking for $ac_word" >&5
1709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1710 if test "${ac_cv_prog_CC+set}" = set; then
1711   echo $ECHO_N "(cached) $ECHO_C" >&6
1712 else
1713   if test -n "$CC"; then
1714   ac_cv_prog_CC="$CC" # Let the user override the test.
1715 else
1716   ac_prog_rejected=no
1717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1718 for as_dir in $PATH
1719 do
1720   IFS=$as_save_IFS
1721   test -z "$as_dir" && as_dir=.
1722   for ac_exec_ext in '' $ac_executable_extensions; do
1723   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1724     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1725        ac_prog_rejected=yes
1726        continue
1727      fi
1728     ac_cv_prog_CC="cc"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 if test $ac_prog_rejected = yes; then
1736   # We found a bogon in the path, so make sure we never use it.
1737   set dummy $ac_cv_prog_CC
1738   shift
1739   if test $# != 0; then
1740     # We chose a different compiler from the bogus one.
1741     # However, it has the same basename, so the bogon will be chosen
1742     # first if we set CC to just the basename; use the full file name.
1743     shift
1744     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1745   fi
1746 fi
1747 fi
1748 fi
1749 CC=$ac_cv_prog_CC
1750 if test -n "$CC"; then
1751   echo "$as_me:$LINENO: result: $CC" >&5
1752 echo "${ECHO_T}$CC" >&6
1753 else
1754   echo "$as_me:$LINENO: result: no" >&5
1755 echo "${ECHO_T}no" >&6
1756 fi
1757
1758 fi
1759 if test -z "$CC"; then
1760   if test -n "$ac_tool_prefix"; then
1761   for ac_prog in cl
1762   do
1763     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1765 echo "$as_me:$LINENO: checking for $ac_word" >&5
1766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1767 if test "${ac_cv_prog_CC+set}" = set; then
1768   echo $ECHO_N "(cached) $ECHO_C" >&6
1769 else
1770   if test -n "$CC"; then
1771   ac_cv_prog_CC="$CC" # Let the user override the test.
1772 else
1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1774 for as_dir in $PATH
1775 do
1776   IFS=$as_save_IFS
1777   test -z "$as_dir" && as_dir=.
1778   for ac_exec_ext in '' $ac_executable_extensions; do
1779   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1780     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1781     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1782     break 2
1783   fi
1784 done
1785 done
1786
1787 fi
1788 fi
1789 CC=$ac_cv_prog_CC
1790 if test -n "$CC"; then
1791   echo "$as_me:$LINENO: result: $CC" >&5
1792 echo "${ECHO_T}$CC" >&6
1793 else
1794   echo "$as_me:$LINENO: result: no" >&5
1795 echo "${ECHO_T}no" >&6
1796 fi
1797
1798     test -n "$CC" && break
1799   done
1800 fi
1801 if test -z "$CC"; then
1802   ac_ct_CC=$CC
1803   for ac_prog in cl
1804 do
1805   # Extract the first word of "$ac_prog", so it can be a program name with args.
1806 set dummy $ac_prog; ac_word=$2
1807 echo "$as_me:$LINENO: checking for $ac_word" >&5
1808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1809 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1810   echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812   if test -n "$ac_ct_CC"; then
1813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1814 else
1815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1816 for as_dir in $PATH
1817 do
1818   IFS=$as_save_IFS
1819   test -z "$as_dir" && as_dir=.
1820   for ac_exec_ext in '' $ac_executable_extensions; do
1821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1822     ac_cv_prog_ac_ct_CC="$ac_prog"
1823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824     break 2
1825   fi
1826 done
1827 done
1828
1829 fi
1830 fi
1831 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1832 if test -n "$ac_ct_CC"; then
1833   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1834 echo "${ECHO_T}$ac_ct_CC" >&6
1835 else
1836   echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6
1838 fi
1839
1840   test -n "$ac_ct_CC" && break
1841 done
1842
1843   CC=$ac_ct_CC
1844 fi
1845
1846 fi
1847
1848
1849 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1850 See \`config.log' for more details." >&5
1851 echo "$as_me: error: no acceptable C compiler found in \$PATH
1852 See \`config.log' for more details." >&2;}
1853    { (exit 1); exit 1; }; }
1854
1855 # Provide some information about the compiler.
1856 echo "$as_me:$LINENO:" \
1857      "checking for C compiler version" >&5
1858 ac_compiler=`set X $ac_compile; echo $2`
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1860   (eval $ac_compiler --version </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1865   (eval $ac_compiler -v </dev/null >&5) 2>&5
1866   ac_status=$?
1867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1868   (exit $ac_status); }
1869 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1870   (eval $ac_compiler -V </dev/null >&5) 2>&5
1871   ac_status=$?
1872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1873   (exit $ac_status); }
1874
1875 cat >conftest.$ac_ext <<_ACEOF
1876 /* confdefs.h.  */
1877 _ACEOF
1878 cat confdefs.h >>conftest.$ac_ext
1879 cat >>conftest.$ac_ext <<_ACEOF
1880 /* end confdefs.h.  */
1881
1882 int
1883 main ()
1884 {
1885
1886   ;
1887   return 0;
1888 }
1889 _ACEOF
1890 ac_clean_files_save=$ac_clean_files
1891 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1892 # Try to create an executable without -o first, disregard a.out.
1893 # It will help us diagnose broken compilers, and finding out an intuition
1894 # of exeext.
1895 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1896 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1897 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1898 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1899   (eval $ac_link_default) 2>&5
1900   ac_status=$?
1901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902   (exit $ac_status); }; then
1903   # Find the output, starting from the most likely.  This scheme is
1904 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1905 # resort.
1906
1907 # Be careful to initialize this variable, since it used to be cached.
1908 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1909 ac_cv_exeext=
1910 # b.out is created by i960 compilers.
1911 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1912 do
1913   test -f "$ac_file" || continue
1914   case $ac_file in
1915     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1916         ;;
1917     conftest.$ac_ext )
1918         # This is the source file.
1919         ;;
1920     [ab].out )
1921         # We found the default executable, but exeext='' is most
1922         # certainly right.
1923         break;;
1924     *.* )
1925         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1926         # FIXME: I believe we export ac_cv_exeext for Libtool,
1927         # but it would be cool to find out if it's true.  Does anybody
1928         # maintain Libtool? --akim.
1929         export ac_cv_exeext
1930         break;;
1931     * )
1932         break;;
1933   esac
1934 done
1935 else
1936   echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1940 See \`config.log' for more details." >&5
1941 echo "$as_me: error: C compiler cannot create executables
1942 See \`config.log' for more details." >&2;}
1943    { (exit 77); exit 77; }; }
1944 fi
1945
1946 ac_exeext=$ac_cv_exeext
1947 echo "$as_me:$LINENO: result: $ac_file" >&5
1948 echo "${ECHO_T}$ac_file" >&6
1949
1950 # Check the compiler produces executables we can run.  If not, either
1951 # the compiler is broken, or we cross compile.
1952 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1953 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1954 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1955 # If not cross compiling, check that we can run a simple program.
1956 if test "$cross_compiling" != yes; then
1957   if { ac_try='./$ac_file'
1958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1959   (eval $ac_try) 2>&5
1960   ac_status=$?
1961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962   (exit $ac_status); }; }; then
1963     cross_compiling=no
1964   else
1965     if test "$cross_compiling" = maybe; then
1966         cross_compiling=yes
1967     else
1968         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1969 If you meant to cross compile, use \`--host'.
1970 See \`config.log' for more details." >&5
1971 echo "$as_me: error: cannot run C compiled programs.
1972 If you meant to cross compile, use \`--host'.
1973 See \`config.log' for more details." >&2;}
1974    { (exit 1); exit 1; }; }
1975     fi
1976   fi
1977 fi
1978 echo "$as_me:$LINENO: result: yes" >&5
1979 echo "${ECHO_T}yes" >&6
1980
1981 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1982 ac_clean_files=$ac_clean_files_save
1983 # Check the compiler produces executables we can run.  If not, either
1984 # the compiler is broken, or we cross compile.
1985 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1986 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1987 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1988 echo "${ECHO_T}$cross_compiling" >&6
1989
1990 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1991 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1993   (eval $ac_link) 2>&5
1994   ac_status=$?
1995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996   (exit $ac_status); }; then
1997   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1998 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1999 # work properly (i.e., refer to `conftest.exe'), while it won't with
2000 # `rm'.
2001 for ac_file in conftest.exe conftest conftest.*; do
2002   test -f "$ac_file" || continue
2003   case $ac_file in
2004     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2005     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2006           export ac_cv_exeext
2007           break;;
2008     * ) break;;
2009   esac
2010 done
2011 else
2012   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2013 See \`config.log' for more details." >&5
2014 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2015 See \`config.log' for more details." >&2;}
2016    { (exit 1); exit 1; }; }
2017 fi
2018
2019 rm -f conftest$ac_cv_exeext
2020 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2021 echo "${ECHO_T}$ac_cv_exeext" >&6
2022
2023 rm -f conftest.$ac_ext
2024 EXEEXT=$ac_cv_exeext
2025 ac_exeext=$EXEEXT
2026 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2027 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2028 if test "${ac_cv_objext+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   cat >conftest.$ac_ext <<_ACEOF
2032 /* confdefs.h.  */
2033 _ACEOF
2034 cat confdefs.h >>conftest.$ac_ext
2035 cat >>conftest.$ac_ext <<_ACEOF
2036 /* end confdefs.h.  */
2037
2038 int
2039 main ()
2040 {
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 rm -f conftest.o conftest.obj
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>&5
2049   ac_status=$?
2050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051   (exit $ac_status); }; then
2052   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2053   case $ac_file in
2054     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2055     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2056        break;;
2057   esac
2058 done
2059 else
2060   echo "$as_me: failed program was:" >&5
2061 sed 's/^/| /' conftest.$ac_ext >&5
2062
2063 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2064 See \`config.log' for more details." >&5
2065 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2066 See \`config.log' for more details." >&2;}
2067    { (exit 1); exit 1; }; }
2068 fi
2069
2070 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2071 fi
2072 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2073 echo "${ECHO_T}$ac_cv_objext" >&6
2074 OBJEXT=$ac_cv_objext
2075 ac_objext=$OBJEXT
2076 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2077 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2078 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2079   echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081   cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h.  */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h.  */
2087
2088 int
2089 main ()
2090 {
2091 #ifndef __GNUC__
2092        choke me
2093 #endif
2094
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 rm -f conftest.$ac_objext
2100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2101   (eval $ac_compile) 2>conftest.er1
2102   ac_status=$?
2103   grep -v '^ *+' conftest.er1 >conftest.err
2104   rm -f conftest.er1
2105   cat conftest.err >&5
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); } &&
2108          { ac_try='test -z "$ac_c_werror_flag"
2109                          || test ! -s conftest.err'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; } &&
2115          { ac_try='test -s conftest.$ac_objext'
2116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117   (eval $ac_try) 2>&5
2118   ac_status=$?
2119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120   (exit $ac_status); }; }; then
2121   ac_compiler_gnu=yes
2122 else
2123   echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_compiler_gnu=no
2127 fi
2128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2129 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2130
2131 fi
2132 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2133 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2134 GCC=`test $ac_compiler_gnu = yes && echo yes`
2135 ac_test_CFLAGS=${CFLAGS+set}
2136 ac_save_CFLAGS=$CFLAGS
2137 CFLAGS="-g"
2138 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2139 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2140 if test "${ac_cv_prog_cc_g+set}" = set; then
2141   echo $ECHO_N "(cached) $ECHO_C" >&6
2142 else
2143   cat >conftest.$ac_ext <<_ACEOF
2144 /* confdefs.h.  */
2145 _ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h.  */
2149
2150 int
2151 main ()
2152 {
2153
2154   ;
2155   return 0;
2156 }
2157 _ACEOF
2158 rm -f conftest.$ac_objext
2159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160   (eval $ac_compile) 2>conftest.er1
2161   ac_status=$?
2162   grep -v '^ *+' conftest.er1 >conftest.err
2163   rm -f conftest.er1
2164   cat conftest.err >&5
2165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166   (exit $ac_status); } &&
2167          { ac_try='test -z "$ac_c_werror_flag"
2168                          || test ! -s conftest.err'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; } &&
2174          { ac_try='test -s conftest.$ac_objext'
2175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176   (eval $ac_try) 2>&5
2177   ac_status=$?
2178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179   (exit $ac_status); }; }; then
2180   ac_cv_prog_cc_g=yes
2181 else
2182   echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2184
2185 ac_cv_prog_cc_g=no
2186 fi
2187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2188 fi
2189 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2190 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2191 if test "$ac_test_CFLAGS" = set; then
2192   CFLAGS=$ac_save_CFLAGS
2193 elif test $ac_cv_prog_cc_g = yes; then
2194   if test "$GCC" = yes; then
2195     CFLAGS="-g -O2"
2196   else
2197     CFLAGS="-g"
2198   fi
2199 else
2200   if test "$GCC" = yes; then
2201     CFLAGS="-O2"
2202   else
2203     CFLAGS=
2204   fi
2205 fi
2206 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2207 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2208 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   ac_cv_prog_cc_stdc=no
2212 ac_save_CC=$CC
2213 cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 #include <stdarg.h>
2220 #include <stdio.h>
2221 #include <sys/types.h>
2222 #include <sys/stat.h>
2223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2224 struct buf { int x; };
2225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2226 static char *e (p, i)
2227      char **p;
2228      int i;
2229 {
2230   return p[i];
2231 }
2232 static char *f (char * (*g) (char **, int), char **p, ...)
2233 {
2234   char *s;
2235   va_list v;
2236   va_start (v,p);
2237   s = g (p, va_arg (v,int));
2238   va_end (v);
2239   return s;
2240 }
2241
2242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2243    function prototypes and stuff, but not '\xHH' hex character constants.
2244    These don't provoke an error unfortunately, instead are silently treated
2245    as 'x'.  The following induces an error, until -std1 is added to get
2246    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2247    array size at least.  It's necessary to write '\x00'==0 to get something
2248    that's true only with -std1.  */
2249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2250
2251 int test (int i, double x);
2252 struct s1 {int (*f) (int a);};
2253 struct s2 {int (*f) (double a);};
2254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2255 int argc;
2256 char **argv;
2257 int
2258 main ()
2259 {
2260 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2261   ;
2262   return 0;
2263 }
2264 _ACEOF
2265 # Don't try gcc -ansi; that turns off useful extensions and
2266 # breaks some systems' header files.
2267 # AIX                   -qlanglvl=ansi
2268 # Ultrix and OSF/1      -std1
2269 # HP-UX 10.20 and later -Ae
2270 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2271 # SVR4                  -Xc -D__EXTENSIONS__
2272 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2273 do
2274   CC="$ac_save_CC $ac_arg"
2275   rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277   (eval $ac_compile) 2>conftest.er1
2278   ac_status=$?
2279   grep -v '^ *+' conftest.er1 >conftest.err
2280   rm -f conftest.er1
2281   cat conftest.err >&5
2282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283   (exit $ac_status); } &&
2284          { ac_try='test -z "$ac_c_werror_flag"
2285                          || test ! -s conftest.err'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; } &&
2291          { ac_try='test -s conftest.$ac_objext'
2292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2293   (eval $ac_try) 2>&5
2294   ac_status=$?
2295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2296   (exit $ac_status); }; }; then
2297   ac_cv_prog_cc_stdc=$ac_arg
2298 break
2299 else
2300   echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2302
2303 fi
2304 rm -f conftest.err conftest.$ac_objext
2305 done
2306 rm -f conftest.$ac_ext conftest.$ac_objext
2307 CC=$ac_save_CC
2308
2309 fi
2310
2311 case "x$ac_cv_prog_cc_stdc" in
2312   x|xno)
2313     echo "$as_me:$LINENO: result: none needed" >&5
2314 echo "${ECHO_T}none needed" >&6 ;;
2315   *)
2316     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2317 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2318     CC="$CC $ac_cv_prog_cc_stdc" ;;
2319 esac
2320
2321 # Some people use a C++ compiler to compile C.  Since we use `exit',
2322 # in C++ we need to declare it.  In case someone uses the same compiler
2323 # for both compiling C and C++ we need to have the C++ compiler decide
2324 # the declaration of exit, since it's the most demanding environment.
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #ifndef __cplusplus
2327   choke me
2328 #endif
2329 _ACEOF
2330 rm -f conftest.$ac_objext
2331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2332   (eval $ac_compile) 2>conftest.er1
2333   ac_status=$?
2334   grep -v '^ *+' conftest.er1 >conftest.err
2335   rm -f conftest.er1
2336   cat conftest.err >&5
2337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338   (exit $ac_status); } &&
2339          { ac_try='test -z "$ac_c_werror_flag"
2340                          || test ! -s conftest.err'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; } &&
2346          { ac_try='test -s conftest.$ac_objext'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); }; }; then
2352   for ac_declaration in \
2353    '' \
2354    'extern "C" void std::exit (int) throw (); using std::exit;' \
2355    'extern "C" void std::exit (int); using std::exit;' \
2356    'extern "C" void exit (int) throw ();' \
2357    'extern "C" void exit (int);' \
2358    'void exit (int);'
2359 do
2360   cat >conftest.$ac_ext <<_ACEOF
2361 /* confdefs.h.  */
2362 _ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h.  */
2366 $ac_declaration
2367 #include <stdlib.h>
2368 int
2369 main ()
2370 {
2371 exit (42);
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378   (eval $ac_compile) 2>conftest.er1
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
2382   cat conftest.err >&5
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); } &&
2385          { ac_try='test -z "$ac_c_werror_flag"
2386                          || test ! -s conftest.err'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; } &&
2392          { ac_try='test -s conftest.$ac_objext'
2393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   :
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 continue
2404 fi
2405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2406   cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h.  */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h.  */
2412 $ac_declaration
2413 int
2414 main ()
2415 {
2416 exit (42);
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 rm -f conftest.$ac_objext
2422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423   (eval $ac_compile) 2>conftest.er1
2424   ac_status=$?
2425   grep -v '^ *+' conftest.er1 >conftest.err
2426   rm -f conftest.er1
2427   cat conftest.err >&5
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); } &&
2430          { ac_try='test -z "$ac_c_werror_flag"
2431                          || test ! -s conftest.err'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; } &&
2437          { ac_try='test -s conftest.$ac_objext'
2438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439   (eval $ac_try) 2>&5
2440   ac_status=$?
2441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442   (exit $ac_status); }; }; then
2443   break
2444 else
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 fi
2449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2450 done
2451 rm -f conftest*
2452 if test -n "$ac_declaration"; then
2453   echo '#ifdef __cplusplus' >>confdefs.h
2454   echo $ac_declaration      >>confdefs.h
2455   echo '#endif'             >>confdefs.h
2456 fi
2457
2458 else
2459   echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 fi
2463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2464 ac_ext=c
2465 ac_cpp='$CPP $CPPFLAGS'
2466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469
2470 ac_ext=cc
2471 ac_cpp='$CXXCPP $CPPFLAGS'
2472 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475 if test -n "$ac_tool_prefix"; then
2476   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2477   do
2478     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480 echo "$as_me:$LINENO: checking for $ac_word" >&5
2481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482 if test "${ac_cv_prog_CXX+set}" = set; then
2483   echo $ECHO_N "(cached) $ECHO_C" >&6
2484 else
2485   if test -n "$CXX"; then
2486   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2487 else
2488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489 for as_dir in $PATH
2490 do
2491   IFS=$as_save_IFS
2492   test -z "$as_dir" && as_dir=.
2493   for ac_exec_ext in '' $ac_executable_extensions; do
2494   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2496     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497     break 2
2498   fi
2499 done
2500 done
2501
2502 fi
2503 fi
2504 CXX=$ac_cv_prog_CXX
2505 if test -n "$CXX"; then
2506   echo "$as_me:$LINENO: result: $CXX" >&5
2507 echo "${ECHO_T}$CXX" >&6
2508 else
2509   echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6
2511 fi
2512
2513     test -n "$CXX" && break
2514   done
2515 fi
2516 if test -z "$CXX"; then
2517   ac_ct_CXX=$CXX
2518   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2519 do
2520   # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 echo "$as_me:$LINENO: checking for $ac_word" >&5
2523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2525   echo $ECHO_N "(cached) $ECHO_C" >&6
2526 else
2527   if test -n "$ac_ct_CXX"; then
2528   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2529 else
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531 for as_dir in $PATH
2532 do
2533   IFS=$as_save_IFS
2534   test -z "$as_dir" && as_dir=.
2535   for ac_exec_ext in '' $ac_executable_extensions; do
2536   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537     ac_cv_prog_ac_ct_CXX="$ac_prog"
2538     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539     break 2
2540   fi
2541 done
2542 done
2543
2544 fi
2545 fi
2546 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2547 if test -n "$ac_ct_CXX"; then
2548   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2549 echo "${ECHO_T}$ac_ct_CXX" >&6
2550 else
2551   echo "$as_me:$LINENO: result: no" >&5
2552 echo "${ECHO_T}no" >&6
2553 fi
2554
2555   test -n "$ac_ct_CXX" && break
2556 done
2557 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2558
2559   CXX=$ac_ct_CXX
2560 fi
2561
2562
2563 # Provide some information about the compiler.
2564 echo "$as_me:$LINENO:" \
2565      "checking for C++ compiler version" >&5
2566 ac_compiler=`set X $ac_compile; echo $2`
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2568   (eval $ac_compiler --version </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2573   (eval $ac_compiler -v </dev/null >&5) 2>&5
2574   ac_status=$?
2575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576   (exit $ac_status); }
2577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2578   (eval $ac_compiler -V </dev/null >&5) 2>&5
2579   ac_status=$?
2580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }
2582
2583 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2584 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2585 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2586   echo $ECHO_N "(cached) $ECHO_C" >&6
2587 else
2588   cat >conftest.$ac_ext <<_ACEOF
2589 /* confdefs.h.  */
2590 _ACEOF
2591 cat confdefs.h >>conftest.$ac_ext
2592 cat >>conftest.$ac_ext <<_ACEOF
2593 /* end confdefs.h.  */
2594
2595 int
2596 main ()
2597 {
2598 #ifndef __GNUC__
2599        choke me
2600 #endif
2601
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 rm -f conftest.$ac_objext
2607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2608   (eval $ac_compile) 2>conftest.er1
2609   ac_status=$?
2610   grep -v '^ *+' conftest.er1 >conftest.err
2611   rm -f conftest.er1
2612   cat conftest.err >&5
2613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614   (exit $ac_status); } &&
2615          { ac_try='test -z "$ac_cxx_werror_flag"
2616                          || test ! -s conftest.err'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; } &&
2622          { ac_try='test -s conftest.$ac_objext'
2623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624   (eval $ac_try) 2>&5
2625   ac_status=$?
2626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627   (exit $ac_status); }; }; then
2628   ac_compiler_gnu=yes
2629 else
2630   echo "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_compiler_gnu=no
2634 fi
2635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2637
2638 fi
2639 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2640 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2641 GXX=`test $ac_compiler_gnu = yes && echo yes`
2642 ac_test_CXXFLAGS=${CXXFLAGS+set}
2643 ac_save_CXXFLAGS=$CXXFLAGS
2644 CXXFLAGS="-g"
2645 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2646 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2647 if test "${ac_cv_prog_cxx_g+set}" = set; then
2648   echo $ECHO_N "(cached) $ECHO_C" >&6
2649 else
2650   cat >conftest.$ac_ext <<_ACEOF
2651 /* confdefs.h.  */
2652 _ACEOF
2653 cat confdefs.h >>conftest.$ac_ext
2654 cat >>conftest.$ac_ext <<_ACEOF
2655 /* end confdefs.h.  */
2656
2657 int
2658 main ()
2659 {
2660
2661   ;
2662   return 0;
2663 }
2664 _ACEOF
2665 rm -f conftest.$ac_objext
2666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2667   (eval $ac_compile) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } &&
2674          { ac_try='test -z "$ac_cxx_werror_flag"
2675                          || test ! -s conftest.err'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; } &&
2681          { ac_try='test -s conftest.$ac_objext'
2682   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683   (eval $ac_try) 2>&5
2684   ac_status=$?
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); }; }; then
2687   ac_cv_prog_cxx_g=yes
2688 else
2689   echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2691
2692 ac_cv_prog_cxx_g=no
2693 fi
2694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2695 fi
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2697 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2698 if test "$ac_test_CXXFLAGS" = set; then
2699   CXXFLAGS=$ac_save_CXXFLAGS
2700 elif test $ac_cv_prog_cxx_g = yes; then
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-g -O2"
2703   else
2704     CXXFLAGS="-g"
2705   fi
2706 else
2707   if test "$GXX" = yes; then
2708     CXXFLAGS="-O2"
2709   else
2710     CXXFLAGS=
2711   fi
2712 fi
2713 for ac_declaration in \
2714    '' \
2715    'extern "C" void std::exit (int) throw (); using std::exit;' \
2716    'extern "C" void std::exit (int); using std::exit;' \
2717    'extern "C" void exit (int) throw ();' \
2718    'extern "C" void exit (int);' \
2719    'void exit (int);'
2720 do
2721   cat >conftest.$ac_ext <<_ACEOF
2722 /* confdefs.h.  */
2723 _ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h.  */
2727 $ac_declaration
2728 #include <stdlib.h>
2729 int
2730 main ()
2731 {
2732 exit (42);
2733   ;
2734   return 0;
2735 }
2736 _ACEOF
2737 rm -f conftest.$ac_objext
2738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2739   (eval $ac_compile) 2>conftest.er1
2740   ac_status=$?
2741   grep -v '^ *+' conftest.er1 >conftest.err
2742   rm -f conftest.er1
2743   cat conftest.err >&5
2744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745   (exit $ac_status); } &&
2746          { ac_try='test -z "$ac_cxx_werror_flag"
2747                          || test ! -s conftest.err'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; } &&
2753          { ac_try='test -s conftest.$ac_objext'
2754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2755   (eval $ac_try) 2>&5
2756   ac_status=$?
2757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758   (exit $ac_status); }; }; then
2759   :
2760 else
2761   echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2763
2764 continue
2765 fi
2766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2767   cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773 $ac_declaration
2774 int
2775 main ()
2776 {
2777 exit (42);
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2784   (eval $ac_compile) 2>conftest.er1
2785   ac_status=$?
2786   grep -v '^ *+' conftest.er1 >conftest.err
2787   rm -f conftest.er1
2788   cat conftest.err >&5
2789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790   (exit $ac_status); } &&
2791          { ac_try='test -z "$ac_cxx_werror_flag"
2792                          || test ! -s conftest.err'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2800   (eval $ac_try) 2>&5
2801   ac_status=$?
2802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803   (exit $ac_status); }; }; then
2804   break
2805 else
2806   echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2808
2809 fi
2810 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2811 done
2812 rm -f conftest*
2813 if test -n "$ac_declaration"; then
2814   echo '#ifdef __cplusplus' >>confdefs.h
2815   echo $ac_declaration      >>confdefs.h
2816   echo '#endif'             >>confdefs.h
2817 fi
2818
2819 ac_ext=c
2820 ac_cpp='$CPP $CPPFLAGS'
2821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2824
2825 if test "x$CC" != xcc; then
2826   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2827 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2828 else
2829   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2830 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2831 fi
2832 set dummy $CC; ac_cc=`echo $2 |
2833                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2834 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   cat >conftest.$ac_ext <<_ACEOF
2838 /* confdefs.h.  */
2839 _ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h.  */
2843
2844 int
2845 main ()
2846 {
2847
2848   ;
2849   return 0;
2850 }
2851 _ACEOF
2852 # Make sure it works both with $CC and with simple cc.
2853 # We do the test twice because some compilers refuse to overwrite an
2854 # existing .o file with -o, though they will create one.
2855 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); };
2866 then
2867   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2868   if test "x$CC" != xcc; then
2869     # Test first that cc exists at all.
2870     if { ac_try='cc -c conftest.$ac_ext >&5'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2877       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878   (eval $ac_try) 2>&5
2879   ac_status=$?
2880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881   (exit $ac_status); } &&
2882          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2883   (eval $ac_try) 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); };
2887       then
2888         # cc works too.
2889         :
2890       else
2891         # cc exists but doesn't like -o.
2892         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2893       fi
2894     fi
2895   fi
2896 else
2897   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2898 fi
2899 rm -f conftest*
2900
2901 fi
2902 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2903   echo "$as_me:$LINENO: result: yes" >&5
2904 echo "${ECHO_T}yes" >&6
2905 else
2906   echo "$as_me:$LINENO: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908
2909 cat >>confdefs.h <<\_ACEOF
2910 #define NO_MINUS_C_MINUS_O 1
2911 _ACEOF
2912
2913 fi
2914
2915 ac_ext=c
2916 ac_cpp='$CPP $CPPFLAGS'
2917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2922 # On Suns, sometimes $CPP names a directory.
2923 if test -n "$CPP" && test -d "$CPP"; then
2924   CPP=
2925 fi
2926 if test -z "$CPP"; then
2927   if test "${ac_cv_prog_CPP+set}" = set; then
2928   echo $ECHO_N "(cached) $ECHO_C" >&6
2929 else
2930       # Double quotes because CPP needs to be expanded
2931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2932     do
2933       ac_preproc_ok=false
2934 for ac_c_preproc_warn_flag in '' yes
2935 do
2936   # Use a header file that comes with gcc, so configuring glibc
2937   # with a fresh cross-compiler works.
2938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2939   # <limits.h> exists even on freestanding compilers.
2940   # On the NeXT, cc -E runs the code through the compiler's parser,
2941   # not just through cpp. "Syntax error" is here to catch this case.
2942   cat >conftest.$ac_ext <<_ACEOF
2943 /* confdefs.h.  */
2944 _ACEOF
2945 cat confdefs.h >>conftest.$ac_ext
2946 cat >>conftest.$ac_ext <<_ACEOF
2947 /* end confdefs.h.  */
2948 #ifdef __STDC__
2949 # include <limits.h>
2950 #else
2951 # include <assert.h>
2952 #endif
2953                      Syntax error
2954 _ACEOF
2955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2957   ac_status=$?
2958   grep -v '^ *+' conftest.er1 >conftest.err
2959   rm -f conftest.er1
2960   cat conftest.err >&5
2961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962   (exit $ac_status); } >/dev/null; then
2963   if test -s conftest.err; then
2964     ac_cpp_err=$ac_c_preproc_warn_flag
2965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2966   else
2967     ac_cpp_err=
2968   fi
2969 else
2970   ac_cpp_err=yes
2971 fi
2972 if test -z "$ac_cpp_err"; then
2973   :
2974 else
2975   echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2977
2978   # Broken: fails on valid input.
2979 continue
2980 fi
2981 rm -f conftest.err conftest.$ac_ext
2982
2983   # OK, works on sane cases.  Now check whether non-existent headers
2984   # can be detected and how.
2985   cat >conftest.$ac_ext <<_ACEOF
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 #include <ac_nonexistent.h>
2992 _ACEOF
2993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2995   ac_status=$?
2996   grep -v '^ *+' conftest.er1 >conftest.err
2997   rm -f conftest.er1
2998   cat conftest.err >&5
2999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000   (exit $ac_status); } >/dev/null; then
3001   if test -s conftest.err; then
3002     ac_cpp_err=$ac_c_preproc_warn_flag
3003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3004   else
3005     ac_cpp_err=
3006   fi
3007 else
3008   ac_cpp_err=yes
3009 fi
3010 if test -z "$ac_cpp_err"; then
3011   # Broken: success on invalid input.
3012 continue
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017   # Passes both tests.
3018 ac_preproc_ok=:
3019 break
3020 fi
3021 rm -f conftest.err conftest.$ac_ext
3022
3023 done
3024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3025 rm -f conftest.err conftest.$ac_ext
3026 if $ac_preproc_ok; then
3027   break
3028 fi
3029
3030     done
3031     ac_cv_prog_CPP=$CPP
3032
3033 fi
3034   CPP=$ac_cv_prog_CPP
3035 else
3036   ac_cv_prog_CPP=$CPP
3037 fi
3038 echo "$as_me:$LINENO: result: $CPP" >&5
3039 echo "${ECHO_T}$CPP" >&6
3040 ac_preproc_ok=false
3041 for ac_c_preproc_warn_flag in '' yes
3042 do
3043   # Use a header file that comes with gcc, so configuring glibc
3044   # with a fresh cross-compiler works.
3045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3046   # <limits.h> exists even on freestanding compilers.
3047   # On the NeXT, cc -E runs the code through the compiler's parser,
3048   # not just through cpp. "Syntax error" is here to catch this case.
3049   cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h.  */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h.  */
3055 #ifdef __STDC__
3056 # include <limits.h>
3057 #else
3058 # include <assert.h>
3059 #endif
3060                      Syntax error
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3073   else
3074     ac_cpp_err=
3075   fi
3076 else
3077   ac_cpp_err=yes
3078 fi
3079 if test -z "$ac_cpp_err"; then
3080   :
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Broken: fails on valid input.
3086 continue
3087 fi
3088 rm -f conftest.err conftest.$ac_ext
3089
3090   # OK, works on sane cases.  Now check whether non-existent headers
3091   # can be detected and how.
3092   cat >conftest.$ac_ext <<_ACEOF
3093 /* confdefs.h.  */
3094 _ACEOF
3095 cat confdefs.h >>conftest.$ac_ext
3096 cat >>conftest.$ac_ext <<_ACEOF
3097 /* end confdefs.h.  */
3098 #include <ac_nonexistent.h>
3099 _ACEOF
3100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3102   ac_status=$?
3103   grep -v '^ *+' conftest.er1 >conftest.err
3104   rm -f conftest.er1
3105   cat conftest.err >&5
3106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107   (exit $ac_status); } >/dev/null; then
3108   if test -s conftest.err; then
3109     ac_cpp_err=$ac_c_preproc_warn_flag
3110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3111   else
3112     ac_cpp_err=
3113   fi
3114 else
3115   ac_cpp_err=yes
3116 fi
3117 if test -z "$ac_cpp_err"; then
3118   # Broken: success on invalid input.
3119 continue
3120 else
3121   echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124   # Passes both tests.
3125 ac_preproc_ok=:
3126 break
3127 fi
3128 rm -f conftest.err conftest.$ac_ext
3129
3130 done
3131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3132 rm -f conftest.err conftest.$ac_ext
3133 if $ac_preproc_ok; then
3134   :
3135 else
3136   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3137 See \`config.log' for more details." >&5
3138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3139 See \`config.log' for more details." >&2;}
3140    { (exit 1); exit 1; }; }
3141 fi
3142
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148
3149
3150 echo "$as_me:$LINENO: checking for egrep" >&5
3151 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3152 if test "${ac_cv_prog_egrep+set}" = set; then
3153   echo $ECHO_N "(cached) $ECHO_C" >&6
3154 else
3155   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3156     then ac_cv_prog_egrep='grep -E'
3157     else ac_cv_prog_egrep='egrep'
3158     fi
3159 fi
3160 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3161 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3162  EGREP=$ac_cv_prog_egrep
3163
3164
3165 if test $ac_cv_c_compiler_gnu = yes; then
3166     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3167 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3169   echo $ECHO_N "(cached) $ECHO_C" >&6
3170 else
3171     ac_pattern="Autoconf.*'x'"
3172   cat >conftest.$ac_ext <<_ACEOF
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <sgtty.h>
3179 Autoconf TIOCGETP
3180 _ACEOF
3181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3182   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3183   ac_cv_prog_gcc_traditional=yes
3184 else
3185   ac_cv_prog_gcc_traditional=no
3186 fi
3187 rm -f conftest*
3188
3189
3190   if test $ac_cv_prog_gcc_traditional = no; then
3191     cat >conftest.$ac_ext <<_ACEOF
3192 /* confdefs.h.  */
3193 _ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h.  */
3197 #include <termio.h>
3198 Autoconf TCGETA
3199 _ACEOF
3200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3201   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3202   ac_cv_prog_gcc_traditional=yes
3203 fi
3204 rm -f conftest*
3205
3206   fi
3207 fi
3208 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3209 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3210   if test $ac_cv_prog_gcc_traditional = yes; then
3211     CC="$CC -traditional"
3212   fi
3213 fi
3214
3215 BASECC=`basename $CC`
3216 have_gcc=no
3217 if test "x$BASECC" = xgcc; then
3218    cat >>confdefs.h <<\_ACEOF
3219 #define HAVE_GCC 1
3220 _ACEOF
3221
3222    have_gcc=yes
3223 fi
3224 # Extract the first word of "$CXX", so it can be a program name with args.
3225 set dummy $CXX; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_path_CXX+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   case $CXX in
3232   [\\/]* | ?:[\\/]*)
3233   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3234   ;;
3235   *)
3236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH
3238 do
3239   IFS=$as_save_IFS
3240   test -z "$as_dir" && as_dir=.
3241   for ac_exec_ext in '' $ac_executable_extensions; do
3242   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3243     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3244     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3245     break 2
3246   fi
3247 done
3248 done
3249
3250   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3251   ;;
3252 esac
3253 fi
3254 CXX=$ac_cv_path_CXX
3255
3256 if test -n "$CXX"; then
3257   echo "$as_me:$LINENO: result: $CXX" >&5
3258 echo "${ECHO_T}$CXX" >&6
3259 else
3260   echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6
3262 fi
3263
3264 if test ! -e $CXX; then
3265    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3266 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3267    { (exit 1); exit 1; }; }
3268 fi
3269
3270 # Find a good install program.  We prefer a C program (faster),
3271 # so one script is as good as another.  But avoid the broken or
3272 # incompatible versions:
3273 # SysV /etc/install, /usr/sbin/install
3274 # SunOS /usr/etc/install
3275 # IRIX /sbin/install
3276 # AIX /bin/install
3277 # AmigaOS /C/install, which installs bootblocks on floppy discs
3278 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3279 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3280 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3281 # OS/2's system install, which has a completely different semantic
3282 # ./install, which can be erroneously created by make from ./install.sh.
3283 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3284 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3285 if test -z "$INSTALL"; then
3286 if test "${ac_cv_path_install+set}" = set; then
3287   echo $ECHO_N "(cached) $ECHO_C" >&6
3288 else
3289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292   IFS=$as_save_IFS
3293   test -z "$as_dir" && as_dir=.
3294   # Account for people who put trailing slashes in PATH elements.
3295 case $as_dir/ in
3296   ./ | .// | /cC/* | \
3297   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3298   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3299   /usr/ucb/* ) ;;
3300   *)
3301     # OSF1 and SCO ODT 3.0 have their own names for install.
3302     # Don't use installbsd from OSF since it installs stuff as root
3303     # by default.
3304     for ac_prog in ginstall scoinst install; do
3305       for ac_exec_ext in '' $ac_executable_extensions; do
3306         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3307           if test $ac_prog = install &&
3308             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3309             # AIX install.  It has an incompatible calling convention.
3310             :
3311           elif test $ac_prog = install &&
3312             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313             # program-specific install script used by HP pwplus--don't use.
3314             :
3315           else
3316             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3317             break 3
3318           fi
3319         fi
3320       done
3321     done
3322     ;;
3323 esac
3324 done
3325
3326
3327 fi
3328   if test "${ac_cv_path_install+set}" = set; then
3329     INSTALL=$ac_cv_path_install
3330   else
3331     # As a last resort, use the slow shell script.  We don't cache a
3332     # path for INSTALL within a source directory, because that will
3333     # break other packages using the cache if that directory is
3334     # removed, or if the path is relative.
3335     INSTALL=$ac_install_sh
3336   fi
3337 fi
3338 echo "$as_me:$LINENO: result: $INSTALL" >&5
3339 echo "${ECHO_T}$INSTALL" >&6
3340
3341 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3342 # It thinks the first close brace ends the variable substitution.
3343 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3344
3345 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3346
3347 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3348
3349 if test -n "$ac_tool_prefix"; then
3350   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3352 echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3354 if test "${ac_cv_prog_RANLIB+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   if test -n "$RANLIB"; then
3358   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365   for ac_exec_ext in '' $ac_executable_extensions; do
3366   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3368     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372 done
3373
3374 fi
3375 fi
3376 RANLIB=$ac_cv_prog_RANLIB
3377 if test -n "$RANLIB"; then
3378   echo "$as_me:$LINENO: result: $RANLIB" >&5
3379 echo "${ECHO_T}$RANLIB" >&6
3380 else
3381   echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3383 fi
3384
3385 fi
3386 if test -z "$ac_cv_prog_RANLIB"; then
3387   ac_ct_RANLIB=$RANLIB
3388   # Extract the first word of "ranlib", so it can be a program name with args.
3389 set dummy ranlib; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3393   echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395   if test -n "$ac_ct_RANLIB"; then
3396   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401   IFS=$as_save_IFS
3402   test -z "$as_dir" && as_dir=.
3403   for ac_exec_ext in '' $ac_executable_extensions; do
3404   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405     ac_cv_prog_ac_ct_RANLIB="ranlib"
3406     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407     break 2
3408   fi
3409 done
3410 done
3411
3412   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3413 fi
3414 fi
3415 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3416 if test -n "$ac_ct_RANLIB"; then
3417   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3418 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3419 else
3420   echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3422 fi
3423
3424   RANLIB=$ac_ct_RANLIB
3425 else
3426   RANLIB="$ac_cv_prog_RANLIB"
3427 fi
3428
3429 # Extract the first word of "mv", so it can be a program name with args.
3430 set dummy mv; ac_word=$2
3431 echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3433 if test "${ac_cv_path_MV+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   case $MV in
3437   [\\/]* | ?:[\\/]*)
3438   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3439   ;;
3440   *)
3441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3456   ;;
3457 esac
3458 fi
3459 MV=$ac_cv_path_MV
3460
3461 if test -n "$MV"; then
3462   echo "$as_me:$LINENO: result: $MV" >&5
3463 echo "${ECHO_T}$MV" >&6
3464 else
3465   echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6
3467 fi
3468
3469 # Extract the first word of "rm", so it can be a program name with args.
3470 set dummy rm; ac_word=$2
3471 echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3473 if test "${ac_cv_path_RM+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   case $RM in
3477   [\\/]* | ?:[\\/]*)
3478   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3479   ;;
3480   *)
3481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484   IFS=$as_save_IFS
3485   test -z "$as_dir" && as_dir=.
3486   for ac_exec_ext in '' $ac_executable_extensions; do
3487   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490     break 2
3491   fi
3492 done
3493 done
3494
3495   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3496   ;;
3497 esac
3498 fi
3499 RM=$ac_cv_path_RM
3500
3501 if test -n "$RM"; then
3502   echo "$as_me:$LINENO: result: $RM" >&5
3503 echo "${ECHO_T}$RM" >&6
3504 else
3505   echo "$as_me:$LINENO: result: no" >&5
3506 echo "${ECHO_T}no" >&6
3507 fi
3508
3509 # Extract the first word of "cp", so it can be a program name with args.
3510 set dummy cp; ac_word=$2
3511 echo "$as_me:$LINENO: checking for $ac_word" >&5
3512 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3513 if test "${ac_cv_path_CP+set}" = set; then
3514   echo $ECHO_N "(cached) $ECHO_C" >&6
3515 else
3516   case $CP in
3517   [\\/]* | ?:[\\/]*)
3518   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3519   ;;
3520   *)
3521   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526   for ac_exec_ext in '' $ac_executable_extensions; do
3527   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3528     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3529     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530     break 2
3531   fi
3532 done
3533 done
3534
3535   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3536   ;;
3537 esac
3538 fi
3539 CP=$ac_cv_path_CP
3540
3541 if test -n "$CP"; then
3542   echo "$as_me:$LINENO: result: $CP" >&5
3543 echo "${ECHO_T}$CP" >&6
3544 else
3545   echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6
3547 fi
3548
3549 # Extract the first word of "sed", so it can be a program name with args.
3550 set dummy sed; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_SED+set}" = set; then
3554   echo $ECHO_N "(cached) $ECHO_C" >&6
3555 else
3556   case $SED in
3557   [\\/]* | ?:[\\/]*)
3558   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3559   ;;
3560   *)
3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566   for ac_exec_ext in '' $ac_executable_extensions; do
3567   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573 done
3574
3575   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3576   ;;
3577 esac
3578 fi
3579 SED=$ac_cv_path_SED
3580
3581 if test -n "$SED"; then
3582   echo "$as_me:$LINENO: result: $SED" >&5
3583 echo "${ECHO_T}$SED" >&6
3584 else
3585   echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3587 fi
3588
3589 # Extract the first word of "echo", so it can be a program name with args.
3590 set dummy echo; ac_word=$2
3591 echo "$as_me:$LINENO: checking for $ac_word" >&5
3592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3593 if test "${ac_cv_path_ECHO+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $ECHO in
3597   [\\/]* | ?:[\\/]*)
3598   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3599   ;;
3600   *)
3601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604   IFS=$as_save_IFS
3605   test -z "$as_dir" && as_dir=.
3606   for ac_exec_ext in '' $ac_executable_extensions; do
3607   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610     break 2
3611   fi
3612 done
3613 done
3614
3615   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3616   ;;
3617 esac
3618 fi
3619 ECHO=$ac_cv_path_ECHO
3620
3621 if test -n "$ECHO"; then
3622   echo "$as_me:$LINENO: result: $ECHO" >&5
3623 echo "${ECHO_T}$ECHO" >&6
3624 else
3625   echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3627 fi
3628
3629 # Extract the first word of "cmp", so it can be a program name with args.
3630 set dummy cmp; ac_word=$2
3631 echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3633 if test "${ac_cv_path_CMP+set}" = set; then
3634   echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636   case $CMP in
3637   [\\/]* | ?:[\\/]*)
3638   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3639   ;;
3640   *)
3641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646   for ac_exec_ext in '' $ac_executable_extensions; do
3647   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653 done
3654
3655   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3656   ;;
3657 esac
3658 fi
3659 CMP=$ac_cv_path_CMP
3660
3661 if test -n "$CMP"; then
3662   echo "$as_me:$LINENO: result: $CMP" >&5
3663 echo "${ECHO_T}$CMP" >&6
3664 else
3665   echo "$as_me:$LINENO: result: no" >&5
3666 echo "${ECHO_T}no" >&6
3667 fi
3668
3669 # Extract the first word of "tbl", so it can be a program name with args.
3670 set dummy tbl; ac_word=$2
3671 echo "$as_me:$LINENO: checking for $ac_word" >&5
3672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3673 if test "${ac_cv_path_TBL+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   case $TBL in
3677   [\\/]* | ?:[\\/]*)
3678   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3679   ;;
3680   *)
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   for ac_exec_ext in '' $ac_executable_extensions; do
3687   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3688     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690     break 2
3691   fi
3692 done
3693 done
3694
3695   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3696   ;;
3697 esac
3698 fi
3699 TBL=$ac_cv_path_TBL
3700
3701 if test -n "$TBL"; then
3702   echo "$as_me:$LINENO: result: $TBL" >&5
3703 echo "${ECHO_T}$TBL" >&6
3704 else
3705   echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3707 fi
3708
3709 # Extract the first word of "ar", so it can be a program name with args.
3710 set dummy ar; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_AR+set}" = set; then
3714   echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716   case $AR in
3717   [\\/]* | ?:[\\/]*)
3718   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3719   ;;
3720   *)
3721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for ac_exec_ext in '' $ac_executable_extensions; do
3727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730     break 2
3731   fi
3732 done
3733 done
3734
3735   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3736   ;;
3737 esac
3738 fi
3739 AR=$ac_cv_path_AR
3740
3741 if test -n "$AR"; then
3742   echo "$as_me:$LINENO: result: $AR" >&5
3743 echo "${ECHO_T}$AR" >&6
3744 else
3745   echo "$as_me:$LINENO: result: no" >&5
3746 echo "${ECHO_T}no" >&6
3747 fi
3748
3749 # Extract the first word of "openssl", so it can be a program name with args.
3750 set dummy openssl; ac_word=$2
3751 echo "$as_me:$LINENO: checking for $ac_word" >&5
3752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3753 if test "${ac_cv_path_OPENSSL+set}" = set; then
3754   echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756   case $OPENSSL in
3757   [\\/]* | ?:[\\/]*)
3758   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3759   ;;
3760   *)
3761   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 for as_dir in $PATH
3763 do
3764   IFS=$as_save_IFS
3765   test -z "$as_dir" && as_dir=.
3766   for ac_exec_ext in '' $ac_executable_extensions; do
3767   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3768     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3769     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770     break 2
3771   fi
3772 done
3773 done
3774
3775   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3776   ;;
3777 esac
3778 fi
3779 OPENSSL=$ac_cv_path_OPENSSL
3780
3781 if test -n "$OPENSSL"; then
3782   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3783 echo "${ECHO_T}$OPENSSL" >&6
3784 else
3785   echo "$as_me:$LINENO: result: no" >&5
3786 echo "${ECHO_T}no" >&6
3787 fi
3788
3789 # Extract the first word of "mtx", so it can be a program name with args.
3790 set dummy mtx; ac_word=$2
3791 echo "$as_me:$LINENO: checking for $ac_word" >&5
3792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3793 if test "${ac_cv_path_MTX+set}" = set; then
3794   echo $ECHO_N "(cached) $ECHO_C" >&6
3795 else
3796   case $MTX in
3797   [\\/]* | ?:[\\/]*)
3798   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3799   ;;
3800   *)
3801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802 for as_dir in $PATH
3803 do
3804   IFS=$as_save_IFS
3805   test -z "$as_dir" && as_dir=.
3806   for ac_exec_ext in '' $ac_executable_extensions; do
3807   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810     break 2
3811   fi
3812 done
3813 done
3814
3815   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3816   ;;
3817 esac
3818 fi
3819 MTX=$ac_cv_path_MTX
3820
3821 if test -n "$MTX"; then
3822   echo "$as_me:$LINENO: result: $MTX" >&5
3823 echo "${ECHO_T}$MTX" >&6
3824 else
3825   echo "$as_me:$LINENO: result: no" >&5
3826 echo "${ECHO_T}no" >&6
3827 fi
3828
3829 # Extract the first word of "dd", so it can be a program name with args.
3830 set dummy dd; ac_word=$2
3831 echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3833 if test "${ac_cv_path_DD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   case $DD in
3837   [\\/]* | ?:[\\/]*)
3838   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3839   ;;
3840   *)
3841   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846   for ac_exec_ext in '' $ac_executable_extensions; do
3847   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3848     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3849     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853 done
3854
3855   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3856   ;;
3857 esac
3858 fi
3859 DD=$ac_cv_path_DD
3860
3861 if test -n "$DD"; then
3862   echo "$as_me:$LINENO: result: $DD" >&5
3863 echo "${ECHO_T}$DD" >&6
3864 else
3865   echo "$as_me:$LINENO: result: no" >&5
3866 echo "${ECHO_T}no" >&6
3867 fi
3868
3869 # Extract the first word of "mkisofs", so it can be a program name with args.
3870 set dummy mkisofs; ac_word=$2
3871 echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3873 if test "${ac_cv_path_MKISOFS+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   case $MKISOFS in
3877   [\\/]* | ?:[\\/]*)
3878   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3879   ;;
3880   *)
3881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3883 do
3884   IFS=$as_save_IFS
3885   test -z "$as_dir" && as_dir=.
3886   for ac_exec_ext in '' $ac_executable_extensions; do
3887   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3888     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890     break 2
3891   fi
3892 done
3893 done
3894
3895   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3896   ;;
3897 esac
3898 fi
3899 MKISOFS=$ac_cv_path_MKISOFS
3900
3901 if test -n "$MKISOFS"; then
3902   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3903 echo "${ECHO_T}$MKISOFS" >&6
3904 else
3905   echo "$as_me:$LINENO: result: no" >&5
3906 echo "${ECHO_T}no" >&6
3907 fi
3908
3909 # Extract the first word of "python", so it can be a program name with args.
3910 set dummy python; ac_word=$2
3911 echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3913 if test "${ac_cv_path_PYTHON+set}" = set; then
3914   echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916   case $PYTHON in
3917   [\\/]* | ?:[\\/]*)
3918   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3919   ;;
3920   *)
3921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922 for as_dir in $PATH
3923 do
3924   IFS=$as_save_IFS
3925   test -z "$as_dir" && as_dir=.
3926   for ac_exec_ext in '' $ac_executable_extensions; do
3927   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3929     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3930     break 2
3931   fi
3932 done
3933 done
3934
3935   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3936   ;;
3937 esac
3938 fi
3939 PYTHON=$ac_cv_path_PYTHON
3940
3941 if test -n "$PYTHON"; then
3942   echo "$as_me:$LINENO: result: $PYTHON" >&5
3943 echo "${ECHO_T}$PYTHON" >&6
3944 else
3945   echo "$as_me:$LINENO: result: no" >&5
3946 echo "${ECHO_T}no" >&6
3947 fi
3948
3949 # Extract the first word of "growisofs", so it can be a program name with args.
3950 set dummy growisofs; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3954   echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956   case $GROWISOFS in
3957   [\\/]* | ?:[\\/]*)
3958   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3959   ;;
3960   *)
3961   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962 for as_dir in $PATH
3963 do
3964   IFS=$as_save_IFS
3965   test -z "$as_dir" && as_dir=.
3966   for ac_exec_ext in '' $ac_executable_extensions; do
3967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3968     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970     break 2
3971   fi
3972 done
3973 done
3974
3975   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3976   ;;
3977 esac
3978 fi
3979 GROWISOFS=$ac_cv_path_GROWISOFS
3980
3981 if test -n "$GROWISOFS"; then
3982   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3983 echo "${ECHO_T}$GROWISOFS" >&6
3984 else
3985   echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3987 fi
3988
3989 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3990 set dummy dvd+rw-mediainfo; ac_word=$2
3991 echo "$as_me:$LINENO: checking for $ac_word" >&5
3992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3993 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3994   echo $ECHO_N "(cached) $ECHO_C" >&6
3995 else
3996   case $DVDRWMEDIAINFO in
3997   [\\/]* | ?:[\\/]*)
3998   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3999   ;;
4000   *)
4001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4003 do
4004   IFS=$as_save_IFS
4005   test -z "$as_dir" && as_dir=.
4006   for ac_exec_ext in '' $ac_executable_extensions; do
4007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4008     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4010     break 2
4011   fi
4012 done
4013 done
4014
4015   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4016   ;;
4017 esac
4018 fi
4019 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4020
4021 if test -n "$DVDRWMEDIAINFO"; then
4022   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4023 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4024 else
4025   echo "$as_me:$LINENO: result: no" >&5
4026 echo "${ECHO_T}no" >&6
4027 fi
4028
4029 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4030 set dummy dvd+rw-format; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4034   echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036   case $DVDRWFORMAT in
4037   [\\/]* | ?:[\\/]*)
4038   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4039   ;;
4040   *)
4041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4042 for as_dir in $PATH
4043 do
4044   IFS=$as_save_IFS
4045   test -z "$as_dir" && as_dir=.
4046   for ac_exec_ext in '' $ac_executable_extensions; do
4047   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4048     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4049     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4050     break 2
4051   fi
4052 done
4053 done
4054
4055   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4056   ;;
4057 esac
4058 fi
4059 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4060
4061 if test -n "$DVDRWFORMAT"; then
4062   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4063 echo "${ECHO_T}$DVDRWFORMAT" >&6
4064 else
4065   echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4067 fi
4068
4069 # Extract the first word of "pkg-config", so it can be a program name with args.
4070 set dummy pkg-config; ac_word=$2
4071 echo "$as_me:$LINENO: checking for $ac_word" >&5
4072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4073 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4074   echo $ECHO_N "(cached) $ECHO_C" >&6
4075 else
4076   case $PKGCONFIG in
4077   [\\/]* | ?:[\\/]*)
4078   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4079   ;;
4080   *)
4081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4082 for as_dir in $PATH
4083 do
4084   IFS=$as_save_IFS
4085   test -z "$as_dir" && as_dir=.
4086   for ac_exec_ext in '' $ac_executable_extensions; do
4087   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4090     break 2
4091   fi
4092 done
4093 done
4094
4095   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4096   ;;
4097 esac
4098 fi
4099 PKGCONFIG=$ac_cv_path_PKGCONFIG
4100
4101 if test -n "$PKGCONFIG"; then
4102   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4103 echo "${ECHO_T}$PKGCONFIG" >&6
4104 else
4105   echo "$as_me:$LINENO: result: no" >&5
4106 echo "${ECHO_T}no" >&6
4107 fi
4108
4109 # Extract the first word of "qmake", so it can be a program name with args.
4110 set dummy qmake; ac_word=$2
4111 echo "$as_me:$LINENO: checking for $ac_word" >&5
4112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4113 if test "${ac_cv_path_QMAKE+set}" = set; then
4114   echo $ECHO_N "(cached) $ECHO_C" >&6
4115 else
4116   case $QMAKE in
4117   [\\/]* | ?:[\\/]*)
4118   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4119   ;;
4120   *)
4121   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4123 do
4124   IFS=$as_save_IFS
4125   test -z "$as_dir" && as_dir=.
4126   for ac_exec_ext in '' $ac_executable_extensions; do
4127   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4130     break 2
4131   fi
4132 done
4133 done
4134
4135   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4136   ;;
4137 esac
4138 fi
4139 QMAKE=$ac_cv_path_QMAKE
4140
4141 if test -n "$QMAKE"; then
4142   echo "$as_me:$LINENO: result: $QMAKE" >&5
4143 echo "${ECHO_T}$QMAKE" >&6
4144 else
4145   echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6
4147 fi
4148
4149 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4150 set dummy qmake-qt4; ac_word=$2
4151 echo "$as_me:$LINENO: checking for $ac_word" >&5
4152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4153 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4154   echo $ECHO_N "(cached) $ECHO_C" >&6
4155 else
4156   case $QMAKEQT4 in
4157   [\\/]* | ?:[\\/]*)
4158   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4159   ;;
4160   *)
4161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164   IFS=$as_save_IFS
4165   test -z "$as_dir" && as_dir=.
4166   for ac_exec_ext in '' $ac_executable_extensions; do
4167   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170     break 2
4171   fi
4172 done
4173 done
4174
4175   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4176   ;;
4177 esac
4178 fi
4179 QMAKEQT4=$ac_cv_path_QMAKEQT4
4180
4181 if test -n "$QMAKEQT4"; then
4182   echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4183 echo "${ECHO_T}$QMAKEQT4" >&6
4184 else
4185   echo "$as_me:$LINENO: result: no" >&5
4186 echo "${ECHO_T}no" >&6
4187 fi
4188
4189
4190 if test "x$WXCONFIG" = x; then
4191   WXCONFIG=wx-config
4192 fi
4193 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4194 set dummy ${WXCONFIG}; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4198   echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200   case $WXCONFIG in
4201   [\\/]* | ?:[\\/]*)
4202   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4203   ;;
4204   *)
4205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH
4207 do
4208   IFS=$as_save_IFS
4209   test -z "$as_dir" && as_dir=.
4210   for ac_exec_ext in '' $ac_executable_extensions; do
4211   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4212     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4213     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4214     break 2
4215   fi
4216 done
4217 done
4218
4219   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4220   ;;
4221 esac
4222 fi
4223 WXCONFIG=$ac_cv_path_WXCONFIG
4224
4225 if test -n "$WXCONFIG"; then
4226   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4227 echo "${ECHO_T}$WXCONFIG" >&6
4228 else
4229   echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6
4231 fi
4232
4233
4234 # Extract the first word of "cdrecord", so it can be a program name with args.
4235 set dummy cdrecord; ac_word=$2
4236 echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4238 if test "${ac_cv_path_CDRECORD+set}" = set; then
4239   echo $ECHO_N "(cached) $ECHO_C" >&6
4240 else
4241   case $CDRECORD in
4242   [\\/]* | ?:[\\/]*)
4243   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4244   ;;
4245   *)
4246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 for as_dir in $PATH
4248 do
4249   IFS=$as_save_IFS
4250   test -z "$as_dir" && as_dir=.
4251   for ac_exec_ext in '' $ac_executable_extensions; do
4252   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4253     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4254     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4255     break 2
4256   fi
4257 done
4258 done
4259
4260   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4261   ;;
4262 esac
4263 fi
4264 CDRECORD=$ac_cv_path_CDRECORD
4265
4266 if test -n "$CDRECORD"; then
4267   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4268 echo "${ECHO_T}$CDRECORD" >&6
4269 else
4270   echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6
4272 fi
4273
4274 # Extract the first word of "pidof", so it can be a program name with args.
4275 set dummy pidof; ac_word=$2
4276 echo "$as_me:$LINENO: checking for $ac_word" >&5
4277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4278 if test "${ac_cv_path_PIDOF+set}" = set; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   case $PIDOF in
4282   [\\/]* | ?:[\\/]*)
4283   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4284   ;;
4285   *)
4286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4288 do
4289   IFS=$as_save_IFS
4290   test -z "$as_dir" && as_dir=.
4291   for ac_exec_ext in '' $ac_executable_extensions; do
4292   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4293     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4294     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295     break 2
4296   fi
4297 done
4298 done
4299
4300   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4301   ;;
4302 esac
4303 fi
4304 PIDOF=$ac_cv_path_PIDOF
4305
4306 if test -n "$PIDOF"; then
4307   echo "$as_me:$LINENO: result: $PIDOF" >&5
4308 echo "${ECHO_T}$PIDOF" >&6
4309 else
4310   echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6
4312 fi
4313
4314 for ac_prog in gawk mawk nawk awk
4315 do
4316   # Extract the first word of "$ac_prog", so it can be a program name with args.
4317 set dummy $ac_prog; ac_word=$2
4318 echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320 if test "${ac_cv_prog_AWK+set}" = set; then
4321   echo $ECHO_N "(cached) $ECHO_C" >&6
4322 else
4323   if test -n "$AWK"; then
4324   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4325 else
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327 for as_dir in $PATH
4328 do
4329   IFS=$as_save_IFS
4330   test -z "$as_dir" && as_dir=.
4331   for ac_exec_ext in '' $ac_executable_extensions; do
4332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333     ac_cv_prog_AWK="$ac_prog"
4334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335     break 2
4336   fi
4337 done
4338 done
4339
4340 fi
4341 fi
4342 AWK=$ac_cv_prog_AWK
4343 if test -n "$AWK"; then
4344   echo "$as_me:$LINENO: result: $AWK" >&5
4345 echo "${ECHO_T}$AWK" >&6
4346 else
4347   echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6
4349 fi
4350
4351   test -n "$AWK" && break
4352 done
4353
4354 # Some AWK programs fail, so test it and warn the user
4355 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4356       { if ((prog == $2) || (("(" prog ")") == $2) ||
4357            (("" prog "") == $2) ||
4358            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4359 else
4360   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4361    The regex engine of $AWK is too broken to be used you
4362    might want to install GNU AWK.
4363    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4364 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4365    The regex engine of $AWK is too broken to be used you
4366    might want to install GNU AWK.
4367    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4368    { (exit 1); exit 1; }; }
4369 fi
4370 THE_AWK=$AWK
4371 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4372 set dummy $THE_AWK; ac_word=$2
4373 echo "$as_me:$LINENO: checking for $ac_word" >&5
4374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4375 if test "${ac_cv_path_AWK+set}" = set; then
4376   echo $ECHO_N "(cached) $ECHO_C" >&6
4377 else
4378   case $AWK in
4379   [\\/]* | ?:[\\/]*)
4380   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4381   ;;
4382   *)
4383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386   IFS=$as_save_IFS
4387   test -z "$as_dir" && as_dir=.
4388   for ac_exec_ext in '' $ac_executable_extensions; do
4389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392     break 2
4393   fi
4394 done
4395 done
4396
4397   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4398   ;;
4399 esac
4400 fi
4401 AWK=$ac_cv_path_AWK
4402
4403 if test -n "$AWK"; then
4404   echo "$as_me:$LINENO: result: $AWK" >&5
4405 echo "${ECHO_T}$AWK" >&6
4406 else
4407   echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4409 fi
4410
4411
4412
4413 test -n "$ARFLAG" || ARFLAGS="cr"
4414
4415
4416 MAKE_SHELL=/bin/sh
4417
4418
4419
4420
4421
4422
4423
4424 # Make sure we can run config.sub.
4425 $ac_config_sub sun4 >/dev/null 2>&1 ||
4426   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4427 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4428    { (exit 1); exit 1; }; }
4429
4430 echo "$as_me:$LINENO: checking build system type" >&5
4431 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4432 if test "${ac_cv_build+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   ac_cv_build_alias=$build_alias
4436 test -z "$ac_cv_build_alias" &&
4437   ac_cv_build_alias=`$ac_config_guess`
4438 test -z "$ac_cv_build_alias" &&
4439   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4441    { (exit 1); exit 1; }; }
4442 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4443   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4444 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4445    { (exit 1); exit 1; }; }
4446
4447 fi
4448 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4449 echo "${ECHO_T}$ac_cv_build" >&6
4450 build=$ac_cv_build
4451 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4452 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4453 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4454
4455
4456
4457 echo "$as_me:$LINENO: checking host system type" >&5
4458 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4459 if test "${ac_cv_host+set}" = set; then
4460   echo $ECHO_N "(cached) $ECHO_C" >&6
4461 else
4462   ac_cv_host_alias=$host_alias
4463 test -z "$ac_cv_host_alias" &&
4464   ac_cv_host_alias=$ac_cv_build_alias
4465 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4466   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4467 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4468    { (exit 1); exit 1; }; }
4469
4470 fi
4471 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4472 echo "${ECHO_T}$ac_cv_host" >&6
4473 host=$ac_cv_host
4474 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4475 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4476 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4477
4478
4479 case $host_os in
4480   *cygwin* ) CYGWIN=yes;;
4481          * ) CYGWIN=no;;
4482 esac
4483
4484 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4485 then
4486
4487
4488 if $TRUEPRG; then
4489   HAVE_SUN_OS_TRUE=
4490   HAVE_SUN_OS_FALSE='#'
4491 else
4492   HAVE_SUN_OS_TRUE='#'
4493   HAVE_SUN_OS_FALSE=
4494 fi
4495         cat >>confdefs.h <<\_ACEOF
4496 #define HAVE_SUN_OS 1
4497 _ACEOF
4498
4499 else
4500
4501
4502 if $FALSEPRG; then
4503   HAVE_SUN_OS_TRUE=
4504   HAVE_SUN_OS_FALSE='#'
4505 else
4506   HAVE_SUN_OS_TRUE='#'
4507   HAVE_SUN_OS_FALSE=
4508 fi
4509 fi
4510
4511 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4512 then
4513
4514
4515 if $TRUEPRG; then
4516   HAVE_OSF1_OS_TRUE=
4517   HAVE_OSF1_OS_FALSE='#'
4518 else
4519   HAVE_OSF1_OS_TRUE='#'
4520   HAVE_OSF1_OS_FALSE=
4521 fi
4522         cat >>confdefs.h <<\_ACEOF
4523 #define HAVE_OSF1_OS 1
4524 _ACEOF
4525
4526 else
4527
4528
4529 if $FALSEPRG; then
4530   HAVE_OSF1_OS_TRUE=
4531   HAVE_OSF1_OS_FALSE='#'
4532 else
4533   HAVE_OSF1_OS_TRUE='#'
4534   HAVE_OSF1_OS_FALSE=
4535 fi
4536 fi
4537
4538 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4539 then
4540
4541
4542 if $TRUEPRG; then
4543   HAVE_AIX_OS_TRUE=
4544   HAVE_AIX_OS_FALSE='#'
4545 else
4546   HAVE_AIX_OS_TRUE='#'
4547   HAVE_AIX_OS_FALSE=
4548 fi
4549         cat >>confdefs.h <<\_ACEOF
4550 #define HAVE_AIX_OS 1
4551 _ACEOF
4552
4553 else
4554
4555
4556 if $FALSEPRG; then
4557   HAVE_AIX_OS_TRUE=
4558   HAVE_AIX_OS_FALSE='#'
4559 else
4560   HAVE_AIX_OS_TRUE='#'
4561   HAVE_AIX_OS_FALSE=
4562 fi
4563 fi
4564
4565 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4566 then
4567
4568
4569 if $TRUEPRG; then
4570   HAVE_HPUX_OS_TRUE=
4571   HAVE_HPUX_OS_FALSE='#'
4572 else
4573   HAVE_HPUX_OS_TRUE='#'
4574   HAVE_HPUX_OS_FALSE=
4575 fi
4576         cat >>confdefs.h <<\_ACEOF
4577 #define HAVE_HPUX_OS 1
4578 _ACEOF
4579
4580 else
4581
4582
4583 if $FALSEPRG; then
4584   HAVE_HPUX_OS_TRUE=
4585   HAVE_HPUX_OS_FALSE='#'
4586 else
4587   HAVE_HPUX_OS_TRUE='#'
4588   HAVE_HPUX_OS_FALSE=
4589 fi
4590 fi
4591
4592 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4593 then
4594
4595
4596 if $TRUEPRG; then
4597   HAVE_LINUX_OS_TRUE=
4598   HAVE_LINUX_OS_FALSE='#'
4599 else
4600   HAVE_LINUX_OS_TRUE='#'
4601   HAVE_LINUX_OS_FALSE=
4602 fi
4603         cat >>confdefs.h <<\_ACEOF
4604 #define HAVE_LINUX_OS 1
4605 _ACEOF
4606
4607 else
4608
4609
4610 if $FALSEPRG; then
4611   HAVE_LINUX_OS_TRUE=
4612   HAVE_LINUX_OS_FALSE='#'
4613 else
4614   HAVE_LINUX_OS_TRUE='#'
4615   HAVE_LINUX_OS_FALSE=
4616 fi
4617 fi
4618
4619 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4620 then
4621
4622
4623 if $TRUEPRG; then
4624   HAVE_FREEBSD_OS_TRUE=
4625   HAVE_FREEBSD_OS_FALSE='#'
4626 else
4627   HAVE_FREEBSD_OS_TRUE='#'
4628   HAVE_FREEBSD_OS_FALSE=
4629 fi
4630         cat >>confdefs.h <<\_ACEOF
4631 #define HAVE_FREEBSD_OS 1
4632 _ACEOF
4633
4634 else
4635
4636
4637 if $FALSEPRG; then
4638   HAVE_FREEBSD_OS_TRUE=
4639   HAVE_FREEBSD_OS_FALSE='#'
4640 else
4641   HAVE_FREEBSD_OS_TRUE='#'
4642   HAVE_FREEBSD_OS_FALSE=
4643 fi
4644 fi
4645
4646 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4647 then
4648
4649
4650 if $TRUEPRG; then
4651   HAVE_NETBSD_OS_TRUE=
4652   HAVE_NETBSD_OS_FALSE='#'
4653 else
4654   HAVE_NETBSD_OS_TRUE='#'
4655   HAVE_NETBSD_OS_FALSE=
4656 fi
4657         cat >>confdefs.h <<\_ACEOF
4658 #define HAVE_NETBSD_OS 1
4659 _ACEOF
4660
4661 else
4662
4663
4664 if $FALSEPRG; then
4665   HAVE_NETBSD_OS_TRUE=
4666   HAVE_NETBSD_OS_FALSE='#'
4667 else
4668   HAVE_NETBSD_OS_TRUE='#'
4669   HAVE_NETBSD_OS_FALSE=
4670 fi
4671 fi
4672
4673 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4674 then
4675
4676
4677 if $TRUEPRG; then
4678   HAVE_OPENBSD_OS_TRUE=
4679   HAVE_OPENBSD_OS_FALSE='#'
4680 else
4681   HAVE_OPENBSD_OS_TRUE='#'
4682   HAVE_OPENBSD_OS_FALSE=
4683 fi
4684         cat >>confdefs.h <<\_ACEOF
4685 #define HAVE_OPENBSD_OS 1
4686 _ACEOF
4687
4688 else
4689
4690
4691 if $FALSEPRG; then
4692   HAVE_OPENBSD_OS_TRUE=
4693   HAVE_OPENBSD_OS_FALSE='#'
4694 else
4695   HAVE_OPENBSD_OS_TRUE='#'
4696   HAVE_OPENBSD_OS_FALSE=
4697 fi
4698 fi
4699
4700 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4701 then
4702
4703
4704 if $TRUEPRG; then
4705   HAVE_BSDI_OS_TRUE=
4706   HAVE_BSDI_OS_FALSE='#'
4707 else
4708   HAVE_BSDI_OS_TRUE='#'
4709   HAVE_BSDI_OS_FALSE=
4710 fi
4711         cat >>confdefs.h <<\_ACEOF
4712 #define HAVE_BSDI_OS 1
4713 _ACEOF
4714
4715 else
4716
4717
4718 if $FALSEPRG; then
4719   HAVE_BSDI_OS_TRUE=
4720   HAVE_BSDI_OS_FALSE='#'
4721 else
4722   HAVE_BSDI_OS_TRUE='#'
4723   HAVE_BSDI_OS_FALSE=
4724 fi
4725 fi
4726
4727 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4728 then
4729
4730
4731 if $TRUEPRG; then
4732   HAVE_SGI_OS_TRUE=
4733   HAVE_SGI_OS_FALSE='#'
4734 else
4735   HAVE_SGI_OS_TRUE='#'
4736   HAVE_SGI_OS_FALSE=
4737 fi
4738         cat >>confdefs.h <<\_ACEOF
4739 #define HAVE_SGI_OS 1
4740 _ACEOF
4741
4742 else
4743
4744
4745 if $FALSEPRG; then
4746   HAVE_SGI_OS_TRUE=
4747   HAVE_SGI_OS_FALSE='#'
4748 else
4749   HAVE_SGI_OS_TRUE='#'
4750   HAVE_SGI_OS_FALSE=
4751 fi
4752 fi
4753
4754 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4755 then
4756
4757
4758 if $TRUEPRG; then
4759   HAVE_IRIX_OS_TRUE=
4760   HAVE_IRIX_OS_FALSE='#'
4761 else
4762   HAVE_IRIX_OS_TRUE='#'
4763   HAVE_IRIX_OS_FALSE=
4764 fi
4765         cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_IRIX_OS 1
4767 _ACEOF
4768
4769 else
4770
4771
4772 if $FALSEPRG; then
4773   HAVE_IRIX_OS_TRUE=
4774   HAVE_IRIX_OS_FALSE='#'
4775 else
4776   HAVE_IRIX_OS_TRUE='#'
4777   HAVE_IRIX_OS_FALSE=
4778 fi
4779 fi
4780
4781 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4782 then
4783
4784
4785 if $TRUEPRG; then
4786   HAVE_DARWIN_OS_TRUE=
4787   HAVE_DARWIN_OS_FALSE='#'
4788 else
4789   HAVE_DARWIN_OS_TRUE='#'
4790   HAVE_DARWIN_OS_FALSE=
4791 fi
4792     cat >>confdefs.h <<\_ACEOF
4793 #define HAVE_DARWIN_OS 1
4794 _ACEOF
4795
4796 else
4797
4798
4799 if $FALSEPRG; then
4800   HAVE_DARWIN_OS_TRUE=
4801   HAVE_DARWIN_OS_FALSE='#'
4802 else
4803   HAVE_DARWIN_OS_TRUE='#'
4804   HAVE_DARWIN_OS_FALSE=
4805 fi
4806 fi
4807
4808
4809 # -----------------------------------------------------------
4810 # ----------------------------------------------------------
4811 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4812 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4813 if test "x$DISTNAME" != "x"
4814 then
4815         echo "distname set to $DISTNAME"
4816 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4817 then
4818         DISTNAME=alpha
4819 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4820 then
4821         DISTNAME=aix
4822 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4823 then
4824         DISTNAME=hpux
4825 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4826 then
4827         DISTNAME=solaris
4828 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4829 then
4830         DISTNAME=freebsd
4831 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4832 then
4833         DISTNAME=netbsd
4834 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4835 then
4836         DISTNAME=openbsd
4837 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4838 then
4839         DISTNAME=irix
4840 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4841 then
4842         DISTNAME=bsdi
4843 elif test -f /etc/SuSE-release
4844 then
4845         DISTNAME=suse
4846 elif test -d /etc/SuSEconfig
4847 then
4848         DISTNAME=suse5
4849 elif test -f /etc/mandrake-release
4850 then
4851         DISTNAME=mandrake
4852 elif test -f /etc/whitebox-release
4853 then
4854        DISTNAME=redhat
4855 elif test -f /etc/redhat-release
4856 then
4857         DISTNAME=redhat
4858 elif test -f /etc/gentoo-release
4859 then
4860         DISTNAME=gentoo
4861 elif test -f /etc/debian_version
4862 then
4863         DISTNAME=debian
4864 elif test -f /etc/slackware-version
4865 then
4866         DISTNAME=slackware
4867 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4868 then
4869     DISTNAME=darwin
4870 elif test -f /etc/engarde-version
4871 then
4872         DISTNAME=engarde
4873 elif test "$CYGWIN" = yes
4874 then
4875         DISTNAME=cygwin
4876         cat >>confdefs.h <<\_ACEOF
4877 #define HAVE_CYGWIN 1
4878 _ACEOF
4879
4880 else
4881         DISTNAME=unknown
4882 fi
4883 echo "$as_me:$LINENO: result: done" >&5
4884 echo "${ECHO_T}done" >&6
4885
4886
4887 # --------------------------------------------------
4888 # Suppport for gettext (translations)
4889 # By default, $datadir is ${prefix}/share
4890 # --------------------------------------------------
4891 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4892 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4893 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4894 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4895   echo $ECHO_N "(cached) $ECHO_C" >&6
4896 else
4897   cat >conftest.make <<\_ACEOF
4898 all:
4899         @echo 'ac_maketemp="$(MAKE)"'
4900 _ACEOF
4901 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4902 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4903 if test -n "$ac_maketemp"; then
4904   eval ac_cv_prog_make_${ac_make}_set=yes
4905 else
4906   eval ac_cv_prog_make_${ac_make}_set=no
4907 fi
4908 rm -f conftest.make
4909 fi
4910 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4911   echo "$as_me:$LINENO: result: yes" >&5
4912 echo "${ECHO_T}yes" >&6
4913   SET_MAKE=
4914 else
4915   echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6
4917   SET_MAKE="MAKE=${MAKE-make}"
4918 fi
4919
4920
4921
4922         MKINSTALLDIRS=
4923   if test -n "$ac_aux_dir"; then
4924     case "$ac_aux_dir" in
4925       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4926       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4927     esac
4928   fi
4929   if test -z "$MKINSTALLDIRS"; then
4930     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4931   fi
4932
4933
4934
4935   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4936 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4937     # Check whether --enable-nls or --disable-nls was given.
4938 if test "${enable_nls+set}" = set; then
4939   enableval="$enable_nls"
4940   USE_NLS=$enableval
4941 else
4942   USE_NLS=yes
4943 fi;
4944   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4945 echo "${ECHO_T}$USE_NLS" >&6
4946
4947
4948
4949
4950
4951
4952 # Prepare PATH_SEPARATOR.
4953 # The user is always right.
4954 if test "${PATH_SEPARATOR+set}" != set; then
4955   echo "#! /bin/sh" >conf$$.sh
4956   echo  "exit 0"   >>conf$$.sh
4957   chmod +x conf$$.sh
4958   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4959     PATH_SEPARATOR=';'
4960   else
4961     PATH_SEPARATOR=:
4962   fi
4963   rm -f conf$$.sh
4964 fi
4965
4966 # Find out how to test for executable files. Don't use a zero-byte file,
4967 # as systems may use methods other than mode bits to determine executability.
4968 cat >conf$$.file <<_ASEOF
4969 #! /bin/sh
4970 exit 0
4971 _ASEOF
4972 chmod +x conf$$.file
4973 if test -x conf$$.file >/dev/null 2>&1; then
4974   ac_executable_p="test -x"
4975 else
4976   ac_executable_p="test -f"
4977 fi
4978 rm -f conf$$.file
4979
4980 # Extract the first word of "msgfmt", so it can be a program name with args.
4981 set dummy msgfmt; ac_word=$2
4982 echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4984 if test "${ac_cv_path_MSGFMT+set}" = set; then
4985   echo $ECHO_N "(cached) $ECHO_C" >&6
4986 else
4987   case "$MSGFMT" in
4988   [\\/]* | ?:[\\/]*)
4989     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4990     ;;
4991   *)
4992     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4993     for ac_dir in $PATH; do
4994       IFS="$ac_save_IFS"
4995       test -z "$ac_dir" && ac_dir=.
4996       for ac_exec_ext in '' $ac_executable_extensions; do
4997         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4998           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4999           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5000      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5001             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5002             break 2
5003           fi
5004         fi
5005       done
5006     done
5007     IFS="$ac_save_IFS"
5008   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5009     ;;
5010 esac
5011 fi
5012 MSGFMT="$ac_cv_path_MSGFMT"
5013 if test "$MSGFMT" != ":"; then
5014   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5015 echo "${ECHO_T}$MSGFMT" >&6
5016 else
5017   echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6
5019 fi
5020
5021   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5022 set dummy gmsgfmt; ac_word=$2
5023 echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5026   echo $ECHO_N "(cached) $ECHO_C" >&6
5027 else
5028   case $GMSGFMT in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038   for ac_exec_ext in '' $ac_executable_extensions; do
5039   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5040     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045 done
5046
5047   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5048   ;;
5049 esac
5050 fi
5051 GMSGFMT=$ac_cv_path_GMSGFMT
5052
5053 if test -n "$GMSGFMT"; then
5054   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5055 echo "${ECHO_T}$GMSGFMT" >&6
5056 else
5057   echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6
5059 fi
5060
5061
5062
5063 # Prepare PATH_SEPARATOR.
5064 # The user is always right.
5065 if test "${PATH_SEPARATOR+set}" != set; then
5066   echo "#! /bin/sh" >conf$$.sh
5067   echo  "exit 0"   >>conf$$.sh
5068   chmod +x conf$$.sh
5069   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5070     PATH_SEPARATOR=';'
5071   else
5072     PATH_SEPARATOR=:
5073   fi
5074   rm -f conf$$.sh
5075 fi
5076
5077 # Find out how to test for executable files. Don't use a zero-byte file,
5078 # as systems may use methods other than mode bits to determine executability.
5079 cat >conf$$.file <<_ASEOF
5080 #! /bin/sh
5081 exit 0
5082 _ASEOF
5083 chmod +x conf$$.file
5084 if test -x conf$$.file >/dev/null 2>&1; then
5085   ac_executable_p="test -x"
5086 else
5087   ac_executable_p="test -f"
5088 fi
5089 rm -f conf$$.file
5090
5091 # Extract the first word of "xgettext", so it can be a program name with args.
5092 set dummy xgettext; ac_word=$2
5093 echo "$as_me:$LINENO: checking for $ac_word" >&5
5094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5095 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5096   echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098   case "$XGETTEXT" in
5099   [\\/]* | ?:[\\/]*)
5100     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5101     ;;
5102   *)
5103     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5104     for ac_dir in $PATH; do
5105       IFS="$ac_save_IFS"
5106       test -z "$ac_dir" && ac_dir=.
5107       for ac_exec_ext in '' $ac_executable_extensions; do
5108         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5109           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5110           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5111      (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
5112             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5113             break 2
5114           fi
5115         fi
5116       done
5117     done
5118     IFS="$ac_save_IFS"
5119   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5120     ;;
5121 esac
5122 fi
5123 XGETTEXT="$ac_cv_path_XGETTEXT"
5124 if test "$XGETTEXT" != ":"; then
5125   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5126 echo "${ECHO_T}$XGETTEXT" >&6
5127 else
5128   echo "$as_me:$LINENO: result: no" >&5
5129 echo "${ECHO_T}no" >&6
5130 fi
5131
5132     rm -f messages.po
5133
5134
5135 # Prepare PATH_SEPARATOR.
5136 # The user is always right.
5137 if test "${PATH_SEPARATOR+set}" != set; then
5138   echo "#! /bin/sh" >conf$$.sh
5139   echo  "exit 0"   >>conf$$.sh
5140   chmod +x conf$$.sh
5141   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5142     PATH_SEPARATOR=';'
5143   else
5144     PATH_SEPARATOR=:
5145   fi
5146   rm -f conf$$.sh
5147 fi
5148
5149 # Find out how to test for executable files. Don't use a zero-byte file,
5150 # as systems may use methods other than mode bits to determine executability.
5151 cat >conf$$.file <<_ASEOF
5152 #! /bin/sh
5153 exit 0
5154 _ASEOF
5155 chmod +x conf$$.file
5156 if test -x conf$$.file >/dev/null 2>&1; then
5157   ac_executable_p="test -x"
5158 else
5159   ac_executable_p="test -f"
5160 fi
5161 rm -f conf$$.file
5162
5163 # Extract the first word of "msgmerge", so it can be a program name with args.
5164 set dummy msgmerge; ac_word=$2
5165 echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5167 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   case "$MSGMERGE" in
5171   [\\/]* | ?:[\\/]*)
5172     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5173     ;;
5174   *)
5175     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5176     for ac_dir in $PATH; do
5177       IFS="$ac_save_IFS"
5178       test -z "$ac_dir" && ac_dir=.
5179       for ac_exec_ext in '' $ac_executable_extensions; do
5180         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5181           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5182           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5183             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5184             break 2
5185           fi
5186         fi
5187       done
5188     done
5189     IFS="$ac_save_IFS"
5190   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5191     ;;
5192 esac
5193 fi
5194 MSGMERGE="$ac_cv_path_MSGMERGE"
5195 if test "$MSGMERGE" != ":"; then
5196   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5197 echo "${ECHO_T}$MSGMERGE" >&6
5198 else
5199   echo "$as_me:$LINENO: result: no" >&5
5200 echo "${ECHO_T}no" >&6
5201 fi
5202
5203
5204       if test "$GMSGFMT" != ":"; then
5205             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5206        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5207       : ;
5208     else
5209       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5210       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5211 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5212       GMSGFMT=":"
5213     fi
5214   fi
5215
5216       if test "$XGETTEXT" != ":"; then
5217             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5218        (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
5219       : ;
5220     else
5221       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5222 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5223       XGETTEXT=":"
5224     fi
5225         rm -f messages.po
5226   fi
5227
5228             ac_config_commands="$ac_config_commands default-1"
5229
5230
5231
5232       if test "X$prefix" = "XNONE"; then
5233     acl_final_prefix="$ac_default_prefix"
5234   else
5235     acl_final_prefix="$prefix"
5236   fi
5237   if test "X$exec_prefix" = "XNONE"; then
5238     acl_final_exec_prefix='${prefix}'
5239   else
5240     acl_final_exec_prefix="$exec_prefix"
5241   fi
5242   acl_save_prefix="$prefix"
5243   prefix="$acl_final_prefix"
5244   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5245   prefix="$acl_save_prefix"
5246
5247
5248 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5249 if test "${with_gnu_ld+set}" = set; then
5250   withval="$with_gnu_ld"
5251   test "$withval" = no || with_gnu_ld=yes
5252 else
5253   with_gnu_ld=no
5254 fi;
5255 # Prepare PATH_SEPARATOR.
5256 # The user is always right.
5257 if test "${PATH_SEPARATOR+set}" != set; then
5258   echo "#! /bin/sh" >conf$$.sh
5259   echo  "exit 0"   >>conf$$.sh
5260   chmod +x conf$$.sh
5261   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5262     PATH_SEPARATOR=';'
5263   else
5264     PATH_SEPARATOR=:
5265   fi
5266   rm -f conf$$.sh
5267 fi
5268 ac_prog=ld
5269 if test "$GCC" = yes; then
5270   # Check if gcc -print-prog-name=ld gives a path.
5271   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5272 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5273   case $host in
5274   *-*-mingw*)
5275     # gcc leaves a trailing carriage return which upsets mingw
5276     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5277   *)
5278     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5279   esac
5280   case $ac_prog in
5281     # Accept absolute paths.
5282     [\\/]* | [A-Za-z]:[\\/]*)
5283       re_direlt='/[^/][^/]*/\.\./'
5284       # Canonicalize the path of ld
5285       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5286       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5287         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5288       done
5289       test -z "$LD" && LD="$ac_prog"
5290       ;;
5291   "")
5292     # If it fails, then pretend we aren't using GCC.
5293     ac_prog=ld
5294     ;;
5295   *)
5296     # If it is relative, then search for the first ld in PATH.
5297     with_gnu_ld=unknown
5298     ;;
5299   esac
5300 elif test "$with_gnu_ld" = yes; then
5301   echo "$as_me:$LINENO: checking for GNU ld" >&5
5302 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5303 else
5304   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5305 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5306 fi
5307 if test "${acl_cv_path_LD+set}" = set; then
5308   echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310   if test -z "$LD"; then
5311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5312   for ac_dir in $PATH; do
5313     test -z "$ac_dir" && ac_dir=.
5314     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5315       acl_cv_path_LD="$ac_dir/$ac_prog"
5316       # Check to see if the program is GNU ld.  I'd rather use --version,
5317       # but apparently some GNU ld's only accept -v.
5318       # Break only if it was the GNU/non-GNU ld that we prefer.
5319       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5320       *GNU* | *'with BFD'*)
5321         test "$with_gnu_ld" != no && break ;;
5322       *)
5323         test "$with_gnu_ld" != yes && break ;;
5324       esac
5325     fi
5326   done
5327   IFS="$ac_save_ifs"
5328 else
5329   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5330 fi
5331 fi
5332
5333 LD="$acl_cv_path_LD"
5334 if test -n "$LD"; then
5335   echo "$as_me:$LINENO: result: $LD" >&5
5336 echo "${ECHO_T}$LD" >&6
5337 else
5338   echo "$as_me:$LINENO: result: no" >&5
5339 echo "${ECHO_T}no" >&6
5340 fi
5341 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5342 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5343    { (exit 1); exit 1; }; }
5344 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5345 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5346 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5347   echo $ECHO_N "(cached) $ECHO_C" >&6
5348 else
5349   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5350 case `$LD -v 2>&1 </dev/null` in
5351 *GNU* | *'with BFD'*)
5352   acl_cv_prog_gnu_ld=yes ;;
5353 *)
5354   acl_cv_prog_gnu_ld=no ;;
5355 esac
5356 fi
5357 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5358 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5359 with_gnu_ld=$acl_cv_prog_gnu_ld
5360
5361
5362
5363
5364                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5365 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5366 if test "${acl_cv_rpath+set}" = set; then
5367   echo $ECHO_N "(cached) $ECHO_C" >&6
5368 else
5369
5370     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5371     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5372     . ./conftest.sh
5373     rm -f ./conftest.sh
5374     acl_cv_rpath=done
5375
5376 fi
5377 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5378 echo "${ECHO_T}$acl_cv_rpath" >&6
5379   wl="$acl_cv_wl"
5380   libext="$acl_cv_libext"
5381   shlibext="$acl_cv_shlibext"
5382   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5383   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5384   hardcode_direct="$acl_cv_hardcode_direct"
5385   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5386     # Check whether --enable-rpath or --disable-rpath was given.
5387 if test "${enable_rpath+set}" = set; then
5388   enableval="$enable_rpath"
5389   :
5390 else
5391   enable_rpath=yes
5392 fi;
5393
5394
5395
5396
5397
5398
5399
5400     use_additional=yes
5401
5402   acl_save_prefix="$prefix"
5403   prefix="$acl_final_prefix"
5404   acl_save_exec_prefix="$exec_prefix"
5405   exec_prefix="$acl_final_exec_prefix"
5406
5407     eval additional_includedir=\"$includedir\"
5408     eval additional_libdir=\"$libdir\"
5409
5410   exec_prefix="$acl_save_exec_prefix"
5411   prefix="$acl_save_prefix"
5412
5413
5414 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5415 if test "${with_libiconv_prefix+set}" = set; then
5416   withval="$with_libiconv_prefix"
5417
5418     if test "X$withval" = "Xno"; then
5419       use_additional=no
5420     else
5421       if test "X$withval" = "X"; then
5422
5423   acl_save_prefix="$prefix"
5424   prefix="$acl_final_prefix"
5425   acl_save_exec_prefix="$exec_prefix"
5426   exec_prefix="$acl_final_exec_prefix"
5427
5428           eval additional_includedir=\"$includedir\"
5429           eval additional_libdir=\"$libdir\"
5430
5431   exec_prefix="$acl_save_exec_prefix"
5432   prefix="$acl_save_prefix"
5433
5434       else
5435         additional_includedir="$withval/include"
5436         additional_libdir="$withval/lib"
5437       fi
5438     fi
5439
5440 fi;
5441       LIBICONV=
5442   LTLIBICONV=
5443   INCICONV=
5444   rpathdirs=
5445   ltrpathdirs=
5446   names_already_handled=
5447   names_next_round='iconv '
5448   while test -n "$names_next_round"; do
5449     names_this_round="$names_next_round"
5450     names_next_round=
5451     for name in $names_this_round; do
5452       already_handled=
5453       for n in $names_already_handled; do
5454         if test "$n" = "$name"; then
5455           already_handled=yes
5456           break
5457         fi
5458       done
5459       if test -z "$already_handled"; then
5460         names_already_handled="$names_already_handled $name"
5461                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5462         eval value=\"\$HAVE_LIB$uppername\"
5463         if test -n "$value"; then
5464           if test "$value" = yes; then
5465             eval value=\"\$LIB$uppername\"
5466             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5467             eval value=\"\$LTLIB$uppername\"
5468             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5469           else
5470                                     :
5471           fi
5472         else
5473                               found_dir=
5474           found_la=
5475           found_so=
5476           found_a=
5477           if test $use_additional = yes; then
5478             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5479               found_dir="$additional_libdir"
5480               found_so="$additional_libdir/lib$name.$shlibext"
5481               if test -f "$additional_libdir/lib$name.la"; then
5482                 found_la="$additional_libdir/lib$name.la"
5483               fi
5484             else
5485               if test -f "$additional_libdir/lib$name.$libext"; then
5486                 found_dir="$additional_libdir"
5487                 found_a="$additional_libdir/lib$name.$libext"
5488                 if test -f "$additional_libdir/lib$name.la"; then
5489                   found_la="$additional_libdir/lib$name.la"
5490                 fi
5491               fi
5492             fi
5493           fi
5494           if test "X$found_dir" = "X"; then
5495             for x in $LDFLAGS $LTLIBICONV; do
5496
5497   acl_save_prefix="$prefix"
5498   prefix="$acl_final_prefix"
5499   acl_save_exec_prefix="$exec_prefix"
5500   exec_prefix="$acl_final_exec_prefix"
5501   eval x=\"$x\"
5502   exec_prefix="$acl_save_exec_prefix"
5503   prefix="$acl_save_prefix"
5504
5505               case "$x" in
5506                 -L*)
5507                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5508                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5509                     found_dir="$dir"
5510                     found_so="$dir/lib$name.$shlibext"
5511                     if test -f "$dir/lib$name.la"; then
5512                       found_la="$dir/lib$name.la"
5513                     fi
5514                   else
5515                     if test -f "$dir/lib$name.$libext"; then
5516                       found_dir="$dir"
5517                       found_a="$dir/lib$name.$libext"
5518                       if test -f "$dir/lib$name.la"; then
5519                         found_la="$dir/lib$name.la"
5520                       fi
5521                     fi
5522                   fi
5523                   ;;
5524               esac
5525               if test "X$found_dir" != "X"; then
5526                 break
5527               fi
5528             done
5529           fi
5530           if test "X$found_dir" != "X"; then
5531                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5532             if test "X$found_so" != "X"; then
5533                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5534                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5535               else
5536                                                                                 haveit=
5537                 for x in $ltrpathdirs; do
5538                   if test "X$x" = "X$found_dir"; then
5539                     haveit=yes
5540                     break
5541                   fi
5542                 done
5543                 if test -z "$haveit"; then
5544                   ltrpathdirs="$ltrpathdirs $found_dir"
5545                 fi
5546                                 if test "$hardcode_direct" = yes; then
5547                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5548                 else
5549                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5550                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5551                                                             haveit=
5552                     for x in $rpathdirs; do
5553                       if test "X$x" = "X$found_dir"; then
5554                         haveit=yes
5555                         break
5556                       fi
5557                     done
5558                     if test -z "$haveit"; then
5559                       rpathdirs="$rpathdirs $found_dir"
5560                     fi
5561                   else
5562                                                                                 haveit=
5563                     for x in $LDFLAGS $LIBICONV; do
5564
5565   acl_save_prefix="$prefix"
5566   prefix="$acl_final_prefix"
5567   acl_save_exec_prefix="$exec_prefix"
5568   exec_prefix="$acl_final_exec_prefix"
5569   eval x=\"$x\"
5570   exec_prefix="$acl_save_exec_prefix"
5571   prefix="$acl_save_prefix"
5572
5573                       if test "X$x" = "X-L$found_dir"; then
5574                         haveit=yes
5575                         break
5576                       fi
5577                     done
5578                     if test -z "$haveit"; then
5579                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5580                     fi
5581                     if test "$hardcode_minus_L" != no; then
5582                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5583                     else
5584                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5585                     fi
5586                   fi
5587                 fi
5588               fi
5589             else
5590               if test "X$found_a" != "X"; then
5591                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5592               else
5593                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5594               fi
5595             fi
5596                         additional_includedir=
5597             case "$found_dir" in
5598               */lib | */lib/)
5599                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5600                 additional_includedir="$basedir/include"
5601                 ;;
5602             esac
5603             if test "X$additional_includedir" != "X"; then
5604                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5605                 haveit=
5606                 if test "X$additional_includedir" = "X/usr/local/include"; then
5607                   if test -n "$GCC"; then
5608                     case $host_os in
5609                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5610                     esac
5611                   fi
5612                 fi
5613                 if test -z "$haveit"; then
5614                   for x in $CPPFLAGS $INCICONV; do
5615
5616   acl_save_prefix="$prefix"
5617   prefix="$acl_final_prefix"
5618   acl_save_exec_prefix="$exec_prefix"
5619   exec_prefix="$acl_final_exec_prefix"
5620   eval x=\"$x\"
5621   exec_prefix="$acl_save_exec_prefix"
5622   prefix="$acl_save_prefix"
5623
5624                     if test "X$x" = "X-I$additional_includedir"; then
5625                       haveit=yes
5626                       break
5627                     fi
5628                   done
5629                   if test -z "$haveit"; then
5630                     if test -d "$additional_includedir"; then
5631                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5632                     fi
5633                   fi
5634                 fi
5635               fi
5636             fi
5637                         if test -n "$found_la"; then
5638                                                         save_libdir="$libdir"
5639               case "$found_la" in
5640                 */* | *\\*) . "$found_la" ;;
5641                 *) . "./$found_la" ;;
5642               esac
5643               libdir="$save_libdir"
5644                             for dep in $dependency_libs; do
5645                 case "$dep" in
5646                   -L*)
5647                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5648                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5649                       haveit=
5650                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5651                         if test -n "$GCC"; then
5652                           case $host_os in
5653                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5654                           esac
5655                         fi
5656                       fi
5657                       if test -z "$haveit"; then
5658                         haveit=
5659                         for x in $LDFLAGS $LIBICONV; do
5660
5661   acl_save_prefix="$prefix"
5662   prefix="$acl_final_prefix"
5663   acl_save_exec_prefix="$exec_prefix"
5664   exec_prefix="$acl_final_exec_prefix"
5665   eval x=\"$x\"
5666   exec_prefix="$acl_save_exec_prefix"
5667   prefix="$acl_save_prefix"
5668
5669                           if test "X$x" = "X-L$additional_libdir"; then
5670                             haveit=yes
5671                             break
5672                           fi
5673                         done
5674                         if test -z "$haveit"; then
5675                           if test -d "$additional_libdir"; then
5676                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5677                           fi
5678                         fi
5679                         haveit=
5680                         for x in $LDFLAGS $LTLIBICONV; do
5681
5682   acl_save_prefix="$prefix"
5683   prefix="$acl_final_prefix"
5684   acl_save_exec_prefix="$exec_prefix"
5685   exec_prefix="$acl_final_exec_prefix"
5686   eval x=\"$x\"
5687   exec_prefix="$acl_save_exec_prefix"
5688   prefix="$acl_save_prefix"
5689
5690                           if test "X$x" = "X-L$additional_libdir"; then
5691                             haveit=yes
5692                             break
5693                           fi
5694                         done
5695                         if test -z "$haveit"; then
5696                           if test -d "$additional_libdir"; then
5697                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5698                           fi
5699                         fi
5700                       fi
5701                     fi
5702                     ;;
5703                   -R*)
5704                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5705                     if test "$enable_rpath" != no; then
5706                                                                   haveit=
5707                       for x in $rpathdirs; do
5708                         if test "X$x" = "X$dir"; then
5709                           haveit=yes
5710                           break
5711                         fi
5712                       done
5713                       if test -z "$haveit"; then
5714                         rpathdirs="$rpathdirs $dir"
5715                       fi
5716                                                                   haveit=
5717                       for x in $ltrpathdirs; do
5718                         if test "X$x" = "X$dir"; then
5719                           haveit=yes
5720                           break
5721                         fi
5722                       done
5723                       if test -z "$haveit"; then
5724                         ltrpathdirs="$ltrpathdirs $dir"
5725                       fi
5726                     fi
5727                     ;;
5728                   -l*)
5729                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5730                     ;;
5731                   *.la)
5732                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5733                     ;;
5734                   *)
5735                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5736                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5737                     ;;
5738                 esac
5739               done
5740             fi
5741           else
5742                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5743             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5744           fi
5745         fi
5746       fi
5747     done
5748   done
5749   if test "X$rpathdirs" != "X"; then
5750     if test -n "$hardcode_libdir_separator"; then
5751                         alldirs=
5752       for found_dir in $rpathdirs; do
5753         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5754       done
5755             acl_save_libdir="$libdir"
5756       libdir="$alldirs"
5757       eval flag=\"$hardcode_libdir_flag_spec\"
5758       libdir="$acl_save_libdir"
5759       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5760     else
5761             for found_dir in $rpathdirs; do
5762         acl_save_libdir="$libdir"
5763         libdir="$found_dir"
5764         eval flag=\"$hardcode_libdir_flag_spec\"
5765         libdir="$acl_save_libdir"
5766         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5767       done
5768     fi
5769   fi
5770   if test "X$ltrpathdirs" != "X"; then
5771             for found_dir in $ltrpathdirs; do
5772       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5773     done
5774   fi
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5794 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5795 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5796   echo $ECHO_N "(cached) $ECHO_C" >&6
5797 else
5798   gt_save_CPPFLAGS="$CPPFLAGS"
5799      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5800      gt_save_LIBS="$LIBS"
5801      LIBS="$LIBS -framework CoreFoundation"
5802      cat >conftest.$ac_ext <<_ACEOF
5803 /* confdefs.h.  */
5804 _ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h.  */
5808 #include <CFPreferences.h>
5809 int
5810 main ()
5811 {
5812 CFPreferencesCopyAppValue(NULL, NULL)
5813   ;
5814   return 0;
5815 }
5816 _ACEOF
5817 rm -f conftest.$ac_objext conftest$ac_exeext
5818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5819   (eval $ac_link) 2>conftest.er1
5820   ac_status=$?
5821   grep -v '^ *+' conftest.er1 >conftest.err
5822   rm -f conftest.er1
5823   cat conftest.err >&5
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); } &&
5826          { ac_try='test -z "$ac_c_werror_flag"
5827                          || test ! -s conftest.err'
5828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5829   (eval $ac_try) 2>&5
5830   ac_status=$?
5831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5832   (exit $ac_status); }; } &&
5833          { ac_try='test -s conftest$ac_exeext'
5834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5835   (eval $ac_try) 2>&5
5836   ac_status=$?
5837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838   (exit $ac_status); }; }; then
5839   gt_cv_func_CFPreferencesCopyAppValue=yes
5840 else
5841   echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5843
5844 gt_cv_func_CFPreferencesCopyAppValue=no
5845 fi
5846 rm -f conftest.err conftest.$ac_objext \
5847       conftest$ac_exeext conftest.$ac_ext
5848      CPPFLAGS="$gt_save_CPPFLAGS"
5849      LIBS="$gt_save_LIBS"
5850 fi
5851 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5852 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5853   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5854
5855 cat >>confdefs.h <<\_ACEOF
5856 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5857 _ACEOF
5858
5859   fi
5860     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5861 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5862 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5863   echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865   gt_save_CPPFLAGS="$CPPFLAGS"
5866      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5867      gt_save_LIBS="$LIBS"
5868      LIBS="$LIBS -framework CoreFoundation"
5869      cat >conftest.$ac_ext <<_ACEOF
5870 /* confdefs.h.  */
5871 _ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h.  */
5875 #include <CFLocale.h>
5876 int
5877 main ()
5878 {
5879 CFLocaleCopyCurrent();
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5886   (eval $ac_link) 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } &&
5893          { ac_try='test -z "$ac_c_werror_flag"
5894                          || test ! -s conftest.err'
5895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5896   (eval $ac_try) 2>&5
5897   ac_status=$?
5898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899   (exit $ac_status); }; } &&
5900          { ac_try='test -s conftest$ac_exeext'
5901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5902   (eval $ac_try) 2>&5
5903   ac_status=$?
5904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905   (exit $ac_status); }; }; then
5906   gt_cv_func_CFLocaleCopyCurrent=yes
5907 else
5908   echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911 gt_cv_func_CFLocaleCopyCurrent=no
5912 fi
5913 rm -f conftest.err conftest.$ac_objext \
5914       conftest$ac_exeext conftest.$ac_ext
5915      CPPFLAGS="$gt_save_CPPFLAGS"
5916      LIBS="$gt_save_LIBS"
5917 fi
5918 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5919 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5920   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5921
5922 cat >>confdefs.h <<\_ACEOF
5923 #define HAVE_CFLOCALECOPYCURRENT 1
5924 _ACEOF
5925
5926   fi
5927   INTL_MACOSX_LIBS=
5928   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5929     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5930   fi
5931
5932
5933
5934
5935   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5936 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5937     # Check whether --enable-nls or --disable-nls was given.
5938 if test "${enable_nls+set}" = set; then
5939   enableval="$enable_nls"
5940   USE_NLS=$enableval
5941 else
5942   USE_NLS=yes
5943 fi;
5944   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5945 echo "${ECHO_T}$USE_NLS" >&6
5946
5947
5948
5949
5950   LIBINTL=
5951   LTLIBINTL=
5952   POSUB=
5953
5954     if test "$USE_NLS" = "yes"; then
5955     gt_use_preinstalled_gnugettext=no
5956
5957
5958
5959
5960
5961
5962         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5963 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5964 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   cat >conftest.$ac_ext <<_ACEOF
5968 /* confdefs.h.  */
5969 _ACEOF
5970 cat confdefs.h >>conftest.$ac_ext
5971 cat >>conftest.$ac_ext <<_ACEOF
5972 /* end confdefs.h.  */
5973 #include <libintl.h>
5974 extern int _nl_msg_cat_cntr;
5975 extern int *_nl_domain_bindings;
5976 int
5977 main ()
5978 {
5979 bindtextdomain ("", "");
5980 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext conftest$ac_exeext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5987   (eval $ac_link) 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_c_werror_flag"
5995                          || test ! -s conftest.err'
5996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5997   (eval $ac_try) 2>&5
5998   ac_status=$?
5999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000   (exit $ac_status); }; } &&
6001          { ac_try='test -s conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   gt_cv_func_gnugettext1_libc=yes
6008 else
6009   echo "$as_me: failed program was:" >&5
6010 sed 's/^/| /' conftest.$ac_ext >&5
6011
6012 gt_cv_func_gnugettext1_libc=no
6013 fi
6014 rm -f conftest.err conftest.$ac_objext \
6015       conftest$ac_exeext conftest.$ac_ext
6016 fi
6017 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6018 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6019
6020         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6021
6022
6023
6024
6025
6026           am_save_CPPFLAGS="$CPPFLAGS"
6027
6028   for element in $INCICONV; do
6029     haveit=
6030     for x in $CPPFLAGS; do
6031
6032   acl_save_prefix="$prefix"
6033   prefix="$acl_final_prefix"
6034   acl_save_exec_prefix="$exec_prefix"
6035   exec_prefix="$acl_final_exec_prefix"
6036   eval x=\"$x\"
6037   exec_prefix="$acl_save_exec_prefix"
6038   prefix="$acl_save_prefix"
6039
6040       if test "X$x" = "X$element"; then
6041         haveit=yes
6042         break
6043       fi
6044     done
6045     if test -z "$haveit"; then
6046       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6047     fi
6048   done
6049
6050
6051   echo "$as_me:$LINENO: checking for iconv" >&5
6052 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6053 if test "${am_cv_func_iconv+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056
6057     am_cv_func_iconv="no, consider installing GNU libiconv"
6058     am_cv_lib_iconv=no
6059     cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 #include <stdlib.h>
6066 #include <iconv.h>
6067 int
6068 main ()
6069 {
6070 iconv_t cd = iconv_open("","");
6071        iconv(cd,NULL,NULL,NULL,NULL);
6072        iconv_close(cd);
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext conftest$ac_exeext
6078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6079   (eval $ac_link) 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } &&
6086          { ac_try='test -z "$ac_c_werror_flag"
6087                          || test ! -s conftest.err'
6088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089   (eval $ac_try) 2>&5
6090   ac_status=$?
6091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092   (exit $ac_status); }; } &&
6093          { ac_try='test -s conftest$ac_exeext'
6094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095   (eval $ac_try) 2>&5
6096   ac_status=$?
6097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6098   (exit $ac_status); }; }; then
6099   am_cv_func_iconv=yes
6100 else
6101   echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6103
6104 fi
6105 rm -f conftest.err conftest.$ac_objext \
6106       conftest$ac_exeext conftest.$ac_ext
6107     if test "$am_cv_func_iconv" != yes; then
6108       am_save_LIBS="$LIBS"
6109       LIBS="$LIBS $LIBICONV"
6110       cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h.  */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h.  */
6116 #include <stdlib.h>
6117 #include <iconv.h>
6118 int
6119 main ()
6120 {
6121 iconv_t cd = iconv_open("","");
6122          iconv(cd,NULL,NULL,NULL,NULL);
6123          iconv_close(cd);
6124   ;
6125   return 0;
6126 }
6127 _ACEOF
6128 rm -f conftest.$ac_objext conftest$ac_exeext
6129 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6130   (eval $ac_link) 2>conftest.er1
6131   ac_status=$?
6132   grep -v '^ *+' conftest.er1 >conftest.err
6133   rm -f conftest.er1
6134   cat conftest.err >&5
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); } &&
6137          { ac_try='test -z "$ac_c_werror_flag"
6138                          || test ! -s conftest.err'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; } &&
6144          { ac_try='test -s conftest$ac_exeext'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; }; then
6150   am_cv_lib_iconv=yes
6151         am_cv_func_iconv=yes
6152 else
6153   echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6155
6156 fi
6157 rm -f conftest.err conftest.$ac_objext \
6158       conftest$ac_exeext conftest.$ac_ext
6159       LIBS="$am_save_LIBS"
6160     fi
6161
6162 fi
6163 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6164 echo "${ECHO_T}$am_cv_func_iconv" >&6
6165   if test "$am_cv_func_iconv" = yes; then
6166
6167 cat >>confdefs.h <<\_ACEOF
6168 #define HAVE_ICONV 1
6169 _ACEOF
6170
6171   fi
6172   if test "$am_cv_lib_iconv" = yes; then
6173     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6174 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6175     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6176 echo "${ECHO_T}$LIBICONV" >&6
6177   else
6178             CPPFLAGS="$am_save_CPPFLAGS"
6179     LIBICONV=
6180     LTLIBICONV=
6181   fi
6182
6183
6184
6185
6186
6187
6188     use_additional=yes
6189
6190   acl_save_prefix="$prefix"
6191   prefix="$acl_final_prefix"
6192   acl_save_exec_prefix="$exec_prefix"
6193   exec_prefix="$acl_final_exec_prefix"
6194
6195     eval additional_includedir=\"$includedir\"
6196     eval additional_libdir=\"$libdir\"
6197
6198   exec_prefix="$acl_save_exec_prefix"
6199   prefix="$acl_save_prefix"
6200
6201
6202 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6203 if test "${with_libintl_prefix+set}" = set; then
6204   withval="$with_libintl_prefix"
6205
6206     if test "X$withval" = "Xno"; then
6207       use_additional=no
6208     else
6209       if test "X$withval" = "X"; then
6210
6211   acl_save_prefix="$prefix"
6212   prefix="$acl_final_prefix"
6213   acl_save_exec_prefix="$exec_prefix"
6214   exec_prefix="$acl_final_exec_prefix"
6215
6216           eval additional_includedir=\"$includedir\"
6217           eval additional_libdir=\"$libdir\"
6218
6219   exec_prefix="$acl_save_exec_prefix"
6220   prefix="$acl_save_prefix"
6221
6222       else
6223         additional_includedir="$withval/include"
6224         additional_libdir="$withval/lib"
6225       fi
6226     fi
6227
6228 fi;
6229       LIBINTL=
6230   LTLIBINTL=
6231   INCINTL=
6232   rpathdirs=
6233   ltrpathdirs=
6234   names_already_handled=
6235   names_next_round='intl '
6236   while test -n "$names_next_round"; do
6237     names_this_round="$names_next_round"
6238     names_next_round=
6239     for name in $names_this_round; do
6240       already_handled=
6241       for n in $names_already_handled; do
6242         if test "$n" = "$name"; then
6243           already_handled=yes
6244           break
6245         fi
6246       done
6247       if test -z "$already_handled"; then
6248         names_already_handled="$names_already_handled $name"
6249                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6250         eval value=\"\$HAVE_LIB$uppername\"
6251         if test -n "$value"; then
6252           if test "$value" = yes; then
6253             eval value=\"\$LIB$uppername\"
6254             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6255             eval value=\"\$LTLIB$uppername\"
6256             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6257           else
6258                                     :
6259           fi
6260         else
6261                               found_dir=
6262           found_la=
6263           found_so=
6264           found_a=
6265           if test $use_additional = yes; then
6266             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6267               found_dir="$additional_libdir"
6268               found_so="$additional_libdir/lib$name.$shlibext"
6269               if test -f "$additional_libdir/lib$name.la"; then
6270                 found_la="$additional_libdir/lib$name.la"
6271               fi
6272             else
6273               if test -f "$additional_libdir/lib$name.$libext"; then
6274                 found_dir="$additional_libdir"
6275                 found_a="$additional_libdir/lib$name.$libext"
6276                 if test -f "$additional_libdir/lib$name.la"; then
6277                   found_la="$additional_libdir/lib$name.la"
6278                 fi
6279               fi
6280             fi
6281           fi
6282           if test "X$found_dir" = "X"; then
6283             for x in $LDFLAGS $LTLIBINTL; do
6284
6285   acl_save_prefix="$prefix"
6286   prefix="$acl_final_prefix"
6287   acl_save_exec_prefix="$exec_prefix"
6288   exec_prefix="$acl_final_exec_prefix"
6289   eval x=\"$x\"
6290   exec_prefix="$acl_save_exec_prefix"
6291   prefix="$acl_save_prefix"
6292
6293               case "$x" in
6294                 -L*)
6295                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6296                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6297                     found_dir="$dir"
6298                     found_so="$dir/lib$name.$shlibext"
6299                     if test -f "$dir/lib$name.la"; then
6300                       found_la="$dir/lib$name.la"
6301                     fi
6302                   else
6303                     if test -f "$dir/lib$name.$libext"; then
6304                       found_dir="$dir"
6305                       found_a="$dir/lib$name.$libext"
6306                       if test -f "$dir/lib$name.la"; then
6307                         found_la="$dir/lib$name.la"
6308                       fi
6309                     fi
6310                   fi
6311                   ;;
6312               esac
6313               if test "X$found_dir" != "X"; then
6314                 break
6315               fi
6316             done
6317           fi
6318           if test "X$found_dir" != "X"; then
6319                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6320             if test "X$found_so" != "X"; then
6321                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6322                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6323               else
6324                                                                                 haveit=
6325                 for x in $ltrpathdirs; do
6326                   if test "X$x" = "X$found_dir"; then
6327                     haveit=yes
6328                     break
6329                   fi
6330                 done
6331                 if test -z "$haveit"; then
6332                   ltrpathdirs="$ltrpathdirs $found_dir"
6333                 fi
6334                                 if test "$hardcode_direct" = yes; then
6335                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6336                 else
6337                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6338                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6339                                                             haveit=
6340                     for x in $rpathdirs; do
6341                       if test "X$x" = "X$found_dir"; then
6342                         haveit=yes
6343                         break
6344                       fi
6345                     done
6346                     if test -z "$haveit"; then
6347                       rpathdirs="$rpathdirs $found_dir"
6348                     fi
6349                   else
6350                                                                                 haveit=
6351                     for x in $LDFLAGS $LIBINTL; do
6352
6353   acl_save_prefix="$prefix"
6354   prefix="$acl_final_prefix"
6355   acl_save_exec_prefix="$exec_prefix"
6356   exec_prefix="$acl_final_exec_prefix"
6357   eval x=\"$x\"
6358   exec_prefix="$acl_save_exec_prefix"
6359   prefix="$acl_save_prefix"
6360
6361                       if test "X$x" = "X-L$found_dir"; then
6362                         haveit=yes
6363                         break
6364                       fi
6365                     done
6366                     if test -z "$haveit"; then
6367                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6368                     fi
6369                     if test "$hardcode_minus_L" != no; then
6370                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6371                     else
6372                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6373                     fi
6374                   fi
6375                 fi
6376               fi
6377             else
6378               if test "X$found_a" != "X"; then
6379                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6380               else
6381                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6382               fi
6383             fi
6384                         additional_includedir=
6385             case "$found_dir" in
6386               */lib | */lib/)
6387                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6388                 additional_includedir="$basedir/include"
6389                 ;;
6390             esac
6391             if test "X$additional_includedir" != "X"; then
6392                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6393                 haveit=
6394                 if test "X$additional_includedir" = "X/usr/local/include"; then
6395                   if test -n "$GCC"; then
6396                     case $host_os in
6397                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6398                     esac
6399                   fi
6400                 fi
6401                 if test -z "$haveit"; then
6402                   for x in $CPPFLAGS $INCINTL; do
6403
6404   acl_save_prefix="$prefix"
6405   prefix="$acl_final_prefix"
6406   acl_save_exec_prefix="$exec_prefix"
6407   exec_prefix="$acl_final_exec_prefix"
6408   eval x=\"$x\"
6409   exec_prefix="$acl_save_exec_prefix"
6410   prefix="$acl_save_prefix"
6411
6412                     if test "X$x" = "X-I$additional_includedir"; then
6413                       haveit=yes
6414                       break
6415                     fi
6416                   done
6417                   if test -z "$haveit"; then
6418                     if test -d "$additional_includedir"; then
6419                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6420                     fi
6421                   fi
6422                 fi
6423               fi
6424             fi
6425                         if test -n "$found_la"; then
6426                                                         save_libdir="$libdir"
6427               case "$found_la" in
6428                 */* | *\\*) . "$found_la" ;;
6429                 *) . "./$found_la" ;;
6430               esac
6431               libdir="$save_libdir"
6432                             for dep in $dependency_libs; do
6433                 case "$dep" in
6434                   -L*)
6435                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6436                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6437                       haveit=
6438                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6439                         if test -n "$GCC"; then
6440                           case $host_os in
6441                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6442                           esac
6443                         fi
6444                       fi
6445                       if test -z "$haveit"; then
6446                         haveit=
6447                         for x in $LDFLAGS $LIBINTL; do
6448
6449   acl_save_prefix="$prefix"
6450   prefix="$acl_final_prefix"
6451   acl_save_exec_prefix="$exec_prefix"
6452   exec_prefix="$acl_final_exec_prefix"
6453   eval x=\"$x\"
6454   exec_prefix="$acl_save_exec_prefix"
6455   prefix="$acl_save_prefix"
6456
6457                           if test "X$x" = "X-L$additional_libdir"; then
6458                             haveit=yes
6459                             break
6460                           fi
6461                         done
6462                         if test -z "$haveit"; then
6463                           if test -d "$additional_libdir"; then
6464                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6465                           fi
6466                         fi
6467                         haveit=
6468                         for x in $LDFLAGS $LTLIBINTL; do
6469
6470   acl_save_prefix="$prefix"
6471   prefix="$acl_final_prefix"
6472   acl_save_exec_prefix="$exec_prefix"
6473   exec_prefix="$acl_final_exec_prefix"
6474   eval x=\"$x\"
6475   exec_prefix="$acl_save_exec_prefix"
6476   prefix="$acl_save_prefix"
6477
6478                           if test "X$x" = "X-L$additional_libdir"; then
6479                             haveit=yes
6480                             break
6481                           fi
6482                         done
6483                         if test -z "$haveit"; then
6484                           if test -d "$additional_libdir"; then
6485                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6486                           fi
6487                         fi
6488                       fi
6489                     fi
6490                     ;;
6491                   -R*)
6492                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6493                     if test "$enable_rpath" != no; then
6494                                                                   haveit=
6495                       for x in $rpathdirs; do
6496                         if test "X$x" = "X$dir"; then
6497                           haveit=yes
6498                           break
6499                         fi
6500                       done
6501                       if test -z "$haveit"; then
6502                         rpathdirs="$rpathdirs $dir"
6503                       fi
6504                                                                   haveit=
6505                       for x in $ltrpathdirs; do
6506                         if test "X$x" = "X$dir"; then
6507                           haveit=yes
6508                           break
6509                         fi
6510                       done
6511                       if test -z "$haveit"; then
6512                         ltrpathdirs="$ltrpathdirs $dir"
6513                       fi
6514                     fi
6515                     ;;
6516                   -l*)
6517                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6518                     ;;
6519                   *.la)
6520                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6521                     ;;
6522                   *)
6523                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6524                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6525                     ;;
6526                 esac
6527               done
6528             fi
6529           else
6530                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6531             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6532           fi
6533         fi
6534       fi
6535     done
6536   done
6537   if test "X$rpathdirs" != "X"; then
6538     if test -n "$hardcode_libdir_separator"; then
6539                         alldirs=
6540       for found_dir in $rpathdirs; do
6541         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6542       done
6543             acl_save_libdir="$libdir"
6544       libdir="$alldirs"
6545       eval flag=\"$hardcode_libdir_flag_spec\"
6546       libdir="$acl_save_libdir"
6547       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6548     else
6549             for found_dir in $rpathdirs; do
6550         acl_save_libdir="$libdir"
6551         libdir="$found_dir"
6552         eval flag=\"$hardcode_libdir_flag_spec\"
6553         libdir="$acl_save_libdir"
6554         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6555       done
6556     fi
6557   fi
6558   if test "X$ltrpathdirs" != "X"; then
6559             for found_dir in $ltrpathdirs; do
6560       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6561     done
6562   fi
6563
6564           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6565 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6566 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6567   echo $ECHO_N "(cached) $ECHO_C" >&6
6568 else
6569   gt_save_CPPFLAGS="$CPPFLAGS"
6570             CPPFLAGS="$CPPFLAGS $INCINTL"
6571             gt_save_LIBS="$LIBS"
6572             LIBS="$LIBS $LIBINTL"
6573                         cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 #include <libintl.h>
6580 extern int _nl_msg_cat_cntr;
6581 extern
6582 #ifdef __cplusplus
6583 "C"
6584 #endif
6585 const char *_nl_expand_alias (const char *);
6586 int
6587 main ()
6588 {
6589 bindtextdomain ("", "");
6590 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6591   ;
6592   return 0;
6593 }
6594 _ACEOF
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597   (eval $ac_link) 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -z "$ac_c_werror_flag"
6605                          || test ! -s conftest.err'
6606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607   (eval $ac_try) 2>&5
6608   ac_status=$?
6609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610   (exit $ac_status); }; } &&
6611          { ac_try='test -s conftest$ac_exeext'
6612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613   (eval $ac_try) 2>&5
6614   ac_status=$?
6615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6616   (exit $ac_status); }; }; then
6617   gt_cv_func_gnugettext1_libintl=yes
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 gt_cv_func_gnugettext1_libintl=no
6623 fi
6624 rm -f conftest.err conftest.$ac_objext \
6625       conftest$ac_exeext conftest.$ac_ext
6626                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6627               LIBS="$LIBS $LIBICONV"
6628               cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634 #include <libintl.h>
6635 extern int _nl_msg_cat_cntr;
6636 extern
6637 #ifdef __cplusplus
6638 "C"
6639 #endif
6640 const char *_nl_expand_alias (const char *);
6641 int
6642 main ()
6643 {
6644 bindtextdomain ("", "");
6645 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6646   ;
6647   return 0;
6648 }
6649 _ACEOF
6650 rm -f conftest.$ac_objext conftest$ac_exeext
6651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6652   (eval $ac_link) 2>conftest.er1
6653   ac_status=$?
6654   grep -v '^ *+' conftest.er1 >conftest.err
6655   rm -f conftest.er1
6656   cat conftest.err >&5
6657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658   (exit $ac_status); } &&
6659          { ac_try='test -z "$ac_c_werror_flag"
6660                          || test ! -s conftest.err'
6661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6662   (eval $ac_try) 2>&5
6663   ac_status=$?
6664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6665   (exit $ac_status); }; } &&
6666          { ac_try='test -s conftest$ac_exeext'
6667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6668   (eval $ac_try) 2>&5
6669   ac_status=$?
6670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6671   (exit $ac_status); }; }; then
6672   LIBINTL="$LIBINTL $LIBICONV"
6673                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6674                 gt_cv_func_gnugettext1_libintl=yes
6675
6676 else
6677   echo "$as_me: failed program was:" >&5
6678 sed 's/^/| /' conftest.$ac_ext >&5
6679
6680 fi
6681 rm -f conftest.err conftest.$ac_objext \
6682       conftest$ac_exeext conftest.$ac_ext
6683             fi
6684             CPPFLAGS="$gt_save_CPPFLAGS"
6685             LIBS="$gt_save_LIBS"
6686 fi
6687 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6688 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6689         fi
6690
6691                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6692            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6693                 && test "$PACKAGE" != gettext-runtime \
6694                 && test "$PACKAGE" != gettext-tools; }; then
6695           gt_use_preinstalled_gnugettext=yes
6696         else
6697                     LIBINTL=
6698           LTLIBINTL=
6699           INCINTL=
6700         fi
6701
6702
6703
6704     if test -n "$INTL_MACOSX_LIBS"; then
6705       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6706          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6707                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6708         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6709       fi
6710     fi
6711
6712     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6713        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6714
6715 cat >>confdefs.h <<\_ACEOF
6716 #define ENABLE_NLS 1
6717 _ACEOF
6718
6719     else
6720       USE_NLS=no
6721     fi
6722   fi
6723
6724   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6725 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6726   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6727 echo "${ECHO_T}$USE_NLS" >&6
6728   if test "$USE_NLS" = "yes"; then
6729     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6730 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6731     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6732       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6733         gt_source="external libintl"
6734       else
6735         gt_source="libc"
6736       fi
6737     else
6738       gt_source="included intl directory"
6739     fi
6740     echo "$as_me:$LINENO: result: $gt_source" >&5
6741 echo "${ECHO_T}$gt_source" >&6
6742   fi
6743
6744   if test "$USE_NLS" = "yes"; then
6745
6746     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6747       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6748         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6749 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6750         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6751 echo "${ECHO_T}$LIBINTL" >&6
6752
6753   for element in $INCINTL; do
6754     haveit=
6755     for x in $CPPFLAGS; do
6756
6757   acl_save_prefix="$prefix"
6758   prefix="$acl_final_prefix"
6759   acl_save_exec_prefix="$exec_prefix"
6760   exec_prefix="$acl_final_exec_prefix"
6761   eval x=\"$x\"
6762   exec_prefix="$acl_save_exec_prefix"
6763   prefix="$acl_save_prefix"
6764
6765       if test "X$x" = "X$element"; then
6766         haveit=yes
6767         break
6768       fi
6769     done
6770     if test -z "$haveit"; then
6771       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6772     fi
6773   done
6774
6775       fi
6776
6777
6778 cat >>confdefs.h <<\_ACEOF
6779 #define HAVE_GETTEXT 1
6780 _ACEOF
6781
6782
6783 cat >>confdefs.h <<\_ACEOF
6784 #define HAVE_DCGETTEXT 1
6785 _ACEOF
6786
6787     fi
6788
6789         POSUB=po
6790   fi
6791
6792
6793
6794     INTLLIBS="$LIBINTL"
6795
6796
6797
6798
6799
6800
6801 if test x${prefix} = xNONE ; then
6802    if test `eval echo ${datadir}` = NONE/share ; then
6803       datadir=/usr/share
6804    fi
6805 fi
6806
6807 # ------------------------------------------------------------------
6808 #  If the user has not set --prefix, we set our default to nothing.
6809 #  In this case, if the user has not set --sysconfdir, we set it
6810 #  to the package default of /etc/bacula.  If either --prefix or
6811 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6812 # ------------------------------------------------------------------
6813 if test x${prefix} = xNONE ; then
6814     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6815         sysconfdir=/etc/bacula
6816     fi
6817     prefix=
6818 fi
6819 sysconfdir=`eval echo ${sysconfdir}`
6820 datadir=`eval echo ${datadir}`
6821 localedir=`eval echo ${datadir}/locale`
6822 cat >>confdefs.h <<_ACEOF
6823 #define LOCALEDIR "$localedir"
6824 _ACEOF
6825
6826 cat >>confdefs.h <<_ACEOF
6827 #define SYSCONFDIR "$sysconfdir"
6828 _ACEOF
6829
6830
6831 # -------------------------------------------------------------------------
6832 #  If the user has not set --exec-prefix, we default to ${prefix}
6833 # -------------------------------------------------------------------------
6834 if test x${exec_prefix} = xNONE ; then
6835     exec_prefix=${prefix}
6836 fi
6837
6838 # ------------------------------------------------------------------
6839 # If the user has not set --sbindir, we set our default as /sbin
6840 # ------------------------------------------------------------------
6841 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6842     sbindir=${exec_prefix}/sbin
6843 fi
6844 sbindir=`eval echo ${sbindir}`
6845
6846 # ------------------------------------------------------------------
6847 # If the user has not set --archivedir, we set our default as /tmp
6848 # ------------------------------------------------------------------
6849 if test x$archivedir = x'${archivedir}' ; then
6850     archivedir=${archivedir}
6851 fi
6852 archivedir=`eval echo ${archivedir}`
6853
6854 # -------------------------------------------------------------------------
6855 #  If the user has not set --mandir, we default to /usr/share/man
6856 # -------------------------------------------------------------------------
6857 if test x$mandir = x'${prefix}/man' ; then
6858    mandir=/usr/share/man
6859 fi
6860
6861
6862 for ac_prog in msgfmt
6863 do
6864   # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 echo "$as_me:$LINENO: checking for $ac_word" >&5
6867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6868 if test "${ac_cv_path_MSGFMT+set}" = set; then
6869   echo $ECHO_N "(cached) $ECHO_C" >&6
6870 else
6871   case $MSGFMT in
6872   [\\/]* | ?:[\\/]*)
6873   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6874   ;;
6875   *)
6876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 for as_dir in $PATH
6878 do
6879   IFS=$as_save_IFS
6880   test -z "$as_dir" && as_dir=.
6881   for ac_exec_ext in '' $ac_executable_extensions; do
6882   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885     break 2
6886   fi
6887 done
6888 done
6889
6890   ;;
6891 esac
6892 fi
6893 MSGFMT=$ac_cv_path_MSGFMT
6894
6895 if test -n "$MSGFMT"; then
6896   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6897 echo "${ECHO_T}$MSGFMT" >&6
6898 else
6899   echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6
6901 fi
6902
6903   test -n "$MSGFMT" && break
6904 done
6905 test -n "$MSGFMT" || MSGFMT="no"
6906
6907 if test "$MSGFMT" = "no"
6908 then
6909    echo 'msgfmt program not found, disabling NLS !'
6910    USE_NLS=no
6911    USE_INCLUDED_LIBINTL=no
6912 #else
6913
6914     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6915 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6916 if test "${ac_cv_gnu_library_2+set}" = set; then
6917   echo $ECHO_N "(cached) $ECHO_C" >&6
6918 else
6919   cat >conftest.$ac_ext <<_ACEOF
6920 /* confdefs.h.  */
6921 _ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h.  */
6925
6926 #include <features.h>
6927 #ifdef __GNU_LIBRARY__
6928  #if (__GLIBC__ >= 2)
6929   Lucky GNU user
6930  #endif
6931 #endif
6932
6933 _ACEOF
6934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6935   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6936   ac_cv_gnu_library_2=yes
6937 else
6938   ac_cv_gnu_library_2=no
6939 fi
6940 rm -f conftest*
6941
6942
6943
6944 fi
6945 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6946 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6947
6948     GLIBC2="$ac_cv_gnu_library_2"
6949
6950
6951
6952         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6953 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6954 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6955   echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957   ac_check_lib_save_LIBS=$LIBS
6958 LIBS="-lcposix  $LIBS"
6959 cat >conftest.$ac_ext <<_ACEOF
6960 /* confdefs.h.  */
6961 _ACEOF
6962 cat confdefs.h >>conftest.$ac_ext
6963 cat >>conftest.$ac_ext <<_ACEOF
6964 /* end confdefs.h.  */
6965
6966 /* Override any gcc2 internal prototype to avoid an error.  */
6967 #ifdef __cplusplus
6968 extern "C"
6969 #endif
6970 /* We use char because int might match the return type of a gcc2
6971    builtin and then its argument prototype would still apply.  */
6972 char strerror ();
6973 int
6974 main ()
6975 {
6976 strerror ();
6977   ;
6978   return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest.$ac_objext conftest$ac_exeext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6983   (eval $ac_link) 2>conftest.er1
6984   ac_status=$?
6985   grep -v '^ *+' conftest.er1 >conftest.err
6986   rm -f conftest.er1
6987   cat conftest.err >&5
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); } &&
6990          { ac_try='test -z "$ac_c_werror_flag"
6991                          || test ! -s conftest.err'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; } &&
6997          { ac_try='test -s conftest$ac_exeext'
6998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999   (eval $ac_try) 2>&5
7000   ac_status=$?
7001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); }; }; then
7003   ac_cv_lib_cposix_strerror=yes
7004 else
7005   echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7007
7008 ac_cv_lib_cposix_strerror=no
7009 fi
7010 rm -f conftest.err conftest.$ac_objext \
7011       conftest$ac_exeext conftest.$ac_ext
7012 LIBS=$ac_check_lib_save_LIBS
7013 fi
7014 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7015 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7016 if test $ac_cv_lib_cposix_strerror = yes; then
7017   LIBS="$LIBS -lcposix"
7018 fi
7019
7020
7021
7022 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7023 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7024 if test "${ac_cv_header_stdc+set}" = set; then
7025   echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027   cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h.  */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h.  */
7033 #include <stdlib.h>
7034 #include <stdarg.h>
7035 #include <string.h>
7036 #include <float.h>
7037
7038 int
7039 main ()
7040 {
7041
7042   ;
7043   return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048   (eval $ac_compile) 2>conftest.er1
7049   ac_status=$?
7050   grep -v '^ *+' conftest.er1 >conftest.err
7051   rm -f conftest.er1
7052   cat conftest.err >&5
7053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054   (exit $ac_status); } &&
7055          { ac_try='test -z "$ac_c_werror_flag"
7056                          || test ! -s conftest.err'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; } &&
7062          { ac_try='test -s conftest.$ac_objext'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068   ac_cv_header_stdc=yes
7069 else
7070   echo "$as_me: failed program was:" >&5
7071 sed 's/^/| /' conftest.$ac_ext >&5
7072
7073 ac_cv_header_stdc=no
7074 fi
7075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7076
7077 if test $ac_cv_header_stdc = yes; then
7078   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7079   cat >conftest.$ac_ext <<_ACEOF
7080 /* confdefs.h.  */
7081 _ACEOF
7082 cat confdefs.h >>conftest.$ac_ext
7083 cat >>conftest.$ac_ext <<_ACEOF
7084 /* end confdefs.h.  */
7085 #include <string.h>
7086
7087 _ACEOF
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089   $EGREP "memchr" >/dev/null 2>&1; then
7090   :
7091 else
7092   ac_cv_header_stdc=no
7093 fi
7094 rm -f conftest*
7095
7096 fi
7097
7098 if test $ac_cv_header_stdc = yes; then
7099   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7100   cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h.  */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h.  */
7106 #include <stdlib.h>
7107
7108 _ACEOF
7109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7110   $EGREP "free" >/dev/null 2>&1; then
7111   :
7112 else
7113   ac_cv_header_stdc=no
7114 fi
7115 rm -f conftest*
7116
7117 fi
7118
7119 if test $ac_cv_header_stdc = yes; then
7120   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7121   if test "$cross_compiling" = yes; then
7122   :
7123 else
7124   cat >conftest.$ac_ext <<_ACEOF
7125 /* confdefs.h.  */
7126 _ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h.  */
7130 #include <ctype.h>
7131 #if ((' ' & 0x0FF) == 0x020)
7132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7134 #else
7135 # define ISLOWER(c) \
7136                    (('a' <= (c) && (c) <= 'i') \
7137                      || ('j' <= (c) && (c) <= 'r') \
7138                      || ('s' <= (c) && (c) <= 'z'))
7139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7140 #endif
7141
7142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7143 int
7144 main ()
7145 {
7146   int i;
7147   for (i = 0; i < 256; i++)
7148     if (XOR (islower (i), ISLOWER (i))
7149         || toupper (i) != TOUPPER (i))
7150       exit(2);
7151   exit (0);
7152 }
7153 _ACEOF
7154 rm -f conftest$ac_exeext
7155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7156   (eval $ac_link) 2>&5
7157   ac_status=$?
7158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7161   (eval $ac_try) 2>&5
7162   ac_status=$?
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); }; }; then
7165   :
7166 else
7167   echo "$as_me: program exited with status $ac_status" >&5
7168 echo "$as_me: failed program was:" >&5
7169 sed 's/^/| /' conftest.$ac_ext >&5
7170
7171 ( exit $ac_status )
7172 ac_cv_header_stdc=no
7173 fi
7174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7175 fi
7176 fi
7177 fi
7178 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7179 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7180 if test $ac_cv_header_stdc = yes; then
7181
7182 cat >>confdefs.h <<\_ACEOF
7183 #define STDC_HEADERS 1
7184 _ACEOF
7185
7186 fi
7187
7188 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7189 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7190 if test "${ac_cv_c_const+set}" = set; then
7191   echo $ECHO_N "(cached) $ECHO_C" >&6
7192 else
7193   cat >conftest.$ac_ext <<_ACEOF
7194 /* confdefs.h.  */
7195 _ACEOF
7196 cat confdefs.h >>conftest.$ac_ext
7197 cat >>conftest.$ac_ext <<_ACEOF
7198 /* end confdefs.h.  */
7199
7200 int
7201 main ()
7202 {
7203 /* FIXME: Include the comments suggested by Paul. */
7204 #ifndef __cplusplus
7205   /* Ultrix mips cc rejects this.  */
7206   typedef int charset[2];
7207   const charset x;
7208   /* SunOS 4.1.1 cc rejects this.  */
7209   char const *const *ccp;
7210   char **p;
7211   /* NEC SVR4.0.2 mips cc rejects this.  */
7212   struct point {int x, y;};
7213   static struct point const zero = {0,0};
7214   /* AIX XL C 1.02.0.0 rejects this.
7215      It does not let you subtract one const X* pointer from another in
7216      an arm of an if-expression whose if-part is not a constant
7217      expression */
7218   const char *g = "string";
7219   ccp = &g + (g ? g-g : 0);
7220   /* HPUX 7.0 cc rejects these. */
7221   ++ccp;
7222   p = (char**) ccp;
7223   ccp = (char const *const *) p;
7224   { /* SCO 3.2v4 cc rejects this.  */
7225     char *t;
7226     char const *s = 0 ? (char *) 0 : (char const *) 0;
7227
7228     *t++ = 0;
7229   }
7230   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7231     int x[] = {25, 17};
7232     const int *foo = &x[0];
7233     ++foo;
7234   }
7235   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7236     typedef const int *iptr;
7237     iptr p = 0;
7238     ++p;
7239   }
7240   { /* AIX XL C 1.02.0.0 rejects this saying
7241        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7242     struct s { int j; const int *ap[3]; };
7243     struct s *b; b->j = 5;
7244   }
7245   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7246     const int foo = 10;
7247   }
7248 #endif
7249
7250   ;
7251   return 0;
7252 }
7253 _ACEOF
7254 rm -f conftest.$ac_objext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256   (eval $ac_compile) 2>conftest.er1
7257   ac_status=$?
7258   grep -v '^ *+' conftest.er1 >conftest.err
7259   rm -f conftest.er1
7260   cat conftest.err >&5
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } &&
7263          { ac_try='test -z "$ac_c_werror_flag"
7264                          || test ! -s conftest.err'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; } &&
7270          { ac_try='test -s conftest.$ac_objext'
7271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272   (eval $ac_try) 2>&5
7273   ac_status=$?
7274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275   (exit $ac_status); }; }; then
7276   ac_cv_c_const=yes
7277 else
7278   echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 ac_cv_c_const=no
7282 fi
7283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7284 fi
7285 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7286 echo "${ECHO_T}$ac_cv_c_const" >&6
7287 if test $ac_cv_c_const = no; then
7288
7289 cat >>confdefs.h <<\_ACEOF
7290 #define const
7291 _ACEOF
7292
7293 fi
7294
7295
7296   echo "$as_me:$LINENO: checking for signed" >&5
7297 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7298 if test "${bh_cv_c_signed+set}" = set; then
7299   echo $ECHO_N "(cached) $ECHO_C" >&6
7300 else
7301   cat >conftest.$ac_ext <<_ACEOF
7302 /* confdefs.h.  */
7303 _ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h.  */
7307
7308 int
7309 main ()
7310 {
7311 signed char x;
7312   ;
7313   return 0;
7314 }
7315 _ACEOF
7316 rm -f conftest.$ac_objext
7317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7318   (eval $ac_compile) 2>conftest.er1
7319   ac_status=$?
7320   grep -v '^ *+' conftest.er1 >conftest.err
7321   rm -f conftest.er1
7322   cat conftest.err >&5
7323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324   (exit $ac_status); } &&
7325          { ac_try='test -z "$ac_c_werror_flag"
7326                          || test ! -s conftest.err'
7327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328   (eval $ac_try) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); }; } &&
7332          { ac_try='test -s conftest.$ac_objext'
7333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334   (eval $ac_try) 2>&5
7335   ac_status=$?
7336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337   (exit $ac_status); }; }; then
7338   bh_cv_c_signed=yes
7339 else
7340   echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.$ac_ext >&5
7342
7343 bh_cv_c_signed=no
7344 fi
7345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7346 fi
7347 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7348 echo "${ECHO_T}$bh_cv_c_signed" >&6
7349   if test $bh_cv_c_signed = no; then
7350
7351 cat >>confdefs.h <<\_ACEOF
7352 #define signed
7353 _ACEOF
7354
7355   fi
7356
7357 echo "$as_me:$LINENO: checking for inline" >&5
7358 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7359 if test "${ac_cv_c_inline+set}" = set; then
7360   echo $ECHO_N "(cached) $ECHO_C" >&6
7361 else
7362   ac_cv_c_inline=no
7363 for ac_kw in inline __inline__ __inline; do
7364   cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h.  */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h.  */
7370 #ifndef __cplusplus
7371 typedef int foo_t;
7372 static $ac_kw foo_t static_foo () {return 0; }
7373 $ac_kw foo_t foo () {return 0; }
7374 #endif
7375
7376 _ACEOF
7377 rm -f conftest.$ac_objext
7378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7379   (eval $ac_compile) 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } &&
7386          { ac_try='test -z "$ac_c_werror_flag"
7387                          || test ! -s conftest.err'
7388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389   (eval $ac_try) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; } &&
7393          { ac_try='test -s conftest.$ac_objext'
7394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7395   (eval $ac_try) 2>&5
7396   ac_status=$?
7397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398   (exit $ac_status); }; }; then
7399   ac_cv_c_inline=$ac_kw; break
7400 else
7401   echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7403
7404 fi
7405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7406 done
7407
7408 fi
7409 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7410 echo "${ECHO_T}$ac_cv_c_inline" >&6
7411
7412
7413 case $ac_cv_c_inline in
7414   inline | yes) ;;
7415   *)
7416     case $ac_cv_c_inline in
7417       no) ac_val=;;
7418       *) ac_val=$ac_cv_c_inline;;
7419     esac
7420     cat >>confdefs.h <<_ACEOF
7421 #ifndef __cplusplus
7422 #define inline $ac_val
7423 #endif
7424 _ACEOF
7425     ;;
7426 esac
7427
7428 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7439                   inttypes.h stdint.h unistd.h
7440 do
7441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7442 echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   cat >conftest.$ac_ext <<_ACEOF
7448 /* confdefs.h.  */
7449 _ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h.  */
7453 $ac_includes_default
7454
7455 #include <$ac_header>
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459   (eval $ac_compile) 2>conftest.er1
7460   ac_status=$?
7461   grep -v '^ *+' conftest.er1 >conftest.err
7462   rm -f conftest.er1
7463   cat conftest.err >&5
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } &&
7466          { ac_try='test -z "$ac_c_werror_flag"
7467                          || test ! -s conftest.err'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; } &&
7473          { ac_try='test -s conftest.$ac_objext'
7474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475   (eval $ac_try) 2>&5
7476   ac_status=$?
7477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478   (exit $ac_status); }; }; then
7479   eval "$as_ac_Header=yes"
7480 else
7481   echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7483
7484 eval "$as_ac_Header=no"
7485 fi
7486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7487 fi
7488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491   cat >>confdefs.h <<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7493 _ACEOF
7494
7495 fi
7496
7497 done
7498
7499
7500 echo "$as_me:$LINENO: checking for off_t" >&5
7501 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7502 if test "${ac_cv_type_off_t+set}" = set; then
7503   echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505   cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511 $ac_includes_default
7512 int
7513 main ()
7514 {
7515 if ((off_t *) 0)
7516   return 0;
7517 if (sizeof (off_t))
7518   return 0;
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7525   (eval $ac_compile) 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } &&
7532          { ac_try='test -z "$ac_c_werror_flag"
7533                          || test ! -s conftest.err'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; } &&
7539          { ac_try='test -s conftest.$ac_objext'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; }; then
7545   ac_cv_type_off_t=yes
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 ac_cv_type_off_t=no
7551 fi
7552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7553 fi
7554 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7555 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7556 if test $ac_cv_type_off_t = yes; then
7557   :
7558 else
7559
7560 cat >>confdefs.h <<_ACEOF
7561 #define off_t long
7562 _ACEOF
7563
7564 fi
7565
7566 echo "$as_me:$LINENO: checking for size_t" >&5
7567 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7568 if test "${ac_cv_type_size_t+set}" = set; then
7569   echo $ECHO_N "(cached) $ECHO_C" >&6
7570 else
7571   cat >conftest.$ac_ext <<_ACEOF
7572 /* confdefs.h.  */
7573 _ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h.  */
7577 $ac_includes_default
7578 int
7579 main ()
7580 {
7581 if ((size_t *) 0)
7582   return 0;
7583 if (sizeof (size_t))
7584   return 0;
7585   ;
7586   return 0;
7587 }
7588 _ACEOF
7589 rm -f conftest.$ac_objext
7590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7591   (eval $ac_compile) 2>conftest.er1
7592   ac_status=$?
7593   grep -v '^ *+' conftest.er1 >conftest.err
7594   rm -f conftest.er1
7595   cat conftest.err >&5
7596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597   (exit $ac_status); } &&
7598          { ac_try='test -z "$ac_c_werror_flag"
7599                          || test ! -s conftest.err'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; } &&
7605          { ac_try='test -s conftest.$ac_objext'
7606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607   (eval $ac_try) 2>&5
7608   ac_status=$?
7609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610   (exit $ac_status); }; }; then
7611   ac_cv_type_size_t=yes
7612 else
7613   echo "$as_me: failed program was:" >&5
7614 sed 's/^/| /' conftest.$ac_ext >&5
7615
7616 ac_cv_type_size_t=no
7617 fi
7618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7619 fi
7620 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7621 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7622 if test $ac_cv_type_size_t = yes; then
7623   :
7624 else
7625
7626 cat >>confdefs.h <<_ACEOF
7627 #define size_t unsigned
7628 _ACEOF
7629
7630 fi
7631
7632
7633   echo "$as_me:$LINENO: checking for long long" >&5
7634 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7635 if test "${ac_cv_type_long_long+set}" = set; then
7636   echo $ECHO_N "(cached) $ECHO_C" >&6
7637 else
7638   cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 long long ll = 1LL; int i = 63;
7645 int
7646 main ()
7647 {
7648 long long llmax = (long long) -1;
7649      return ll << i | ll >> i | llmax / ll | llmax % ll;
7650   ;
7651   return 0;
7652 }
7653 _ACEOF
7654 rm -f conftest.$ac_objext conftest$ac_exeext
7655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7656   (eval $ac_link) 2>conftest.er1
7657   ac_status=$?
7658   grep -v '^ *+' conftest.er1 >conftest.err
7659   rm -f conftest.er1
7660   cat conftest.err >&5
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); } &&
7663          { ac_try='test -z "$ac_c_werror_flag"
7664                          || test ! -s conftest.err'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; } &&
7670          { ac_try='test -s conftest$ac_exeext'
7671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7672   (eval $ac_try) 2>&5
7673   ac_status=$?
7674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675   (exit $ac_status); }; }; then
7676   ac_cv_type_long_long=yes
7677 else
7678   echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_type_long_long=no
7682 fi
7683 rm -f conftest.err conftest.$ac_objext \
7684       conftest$ac_exeext conftest.$ac_ext
7685 fi
7686 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7687 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7688   if test $ac_cv_type_long_long = yes; then
7689
7690 cat >>confdefs.h <<\_ACEOF
7691 #define HAVE_LONG_LONG 1
7692 _ACEOF
7693
7694   fi
7695
7696
7697   echo "$as_me:$LINENO: checking for long double" >&5
7698 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7699 if test "${gt_cv_c_long_double+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   if test "$GCC" = yes; then
7703        gt_cv_c_long_double=yes
7704      else
7705        cat >conftest.$ac_ext <<_ACEOF
7706 /* confdefs.h.  */
7707 _ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h.  */
7711
7712          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7713          long double foo = 0.0;
7714          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7715          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7716
7717 int
7718 main ()
7719 {
7720
7721   ;
7722   return 0;
7723 }
7724 _ACEOF
7725 rm -f conftest.$ac_objext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7727   (eval $ac_compile) 2>conftest.er1
7728   ac_status=$?
7729   grep -v '^ *+' conftest.er1 >conftest.err
7730   rm -f conftest.er1
7731   cat conftest.err >&5
7732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733   (exit $ac_status); } &&
7734          { ac_try='test -z "$ac_c_werror_flag"
7735                          || test ! -s conftest.err'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; } &&
7741          { ac_try='test -s conftest.$ac_objext'
7742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743   (eval $ac_try) 2>&5
7744   ac_status=$?
7745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746   (exit $ac_status); }; }; then
7747   gt_cv_c_long_double=yes
7748 else
7749   echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 gt_cv_c_long_double=no
7753 fi
7754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7755      fi
7756 fi
7757 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7758 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7759   if test $gt_cv_c_long_double = yes; then
7760
7761 cat >>confdefs.h <<\_ACEOF
7762 #define HAVE_LONG_DOUBLE 1
7763 _ACEOF
7764
7765   fi
7766
7767
7768   echo "$as_me:$LINENO: checking for wchar_t" >&5
7769 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7770 if test "${gt_cv_c_wchar_t+set}" = set; then
7771   echo $ECHO_N "(cached) $ECHO_C" >&6
7772 else
7773   cat >conftest.$ac_ext <<_ACEOF
7774 /* confdefs.h.  */
7775 _ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h.  */
7779 #include <stddef.h>
7780        wchar_t foo = (wchar_t)'\0';
7781 int
7782 main ()
7783 {
7784
7785   ;
7786   return 0;
7787 }
7788 _ACEOF
7789 rm -f conftest.$ac_objext
7790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7791   (eval $ac_compile) 2>conftest.er1
7792   ac_status=$?
7793   grep -v '^ *+' conftest.er1 >conftest.err
7794   rm -f conftest.er1
7795   cat conftest.err >&5
7796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797   (exit $ac_status); } &&
7798          { ac_try='test -z "$ac_c_werror_flag"
7799                          || test ! -s conftest.err'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; } &&
7805          { ac_try='test -s conftest.$ac_objext'
7806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7807   (eval $ac_try) 2>&5
7808   ac_status=$?
7809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810   (exit $ac_status); }; }; then
7811   gt_cv_c_wchar_t=yes
7812 else
7813   echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7815
7816 gt_cv_c_wchar_t=no
7817 fi
7818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7819 fi
7820 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7821 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7822   if test $gt_cv_c_wchar_t = yes; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_WCHAR_T 1
7826 _ACEOF
7827
7828   fi
7829
7830
7831   echo "$as_me:$LINENO: checking for wint_t" >&5
7832 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7833 if test "${gt_cv_c_wint_t+set}" = set; then
7834   echo $ECHO_N "(cached) $ECHO_C" >&6
7835 else
7836   cat >conftest.$ac_ext <<_ACEOF
7837 /* confdefs.h.  */
7838 _ACEOF
7839 cat confdefs.h >>conftest.$ac_ext
7840 cat >>conftest.$ac_ext <<_ACEOF
7841 /* end confdefs.h.  */
7842 #include <wchar.h>
7843        wint_t foo = (wchar_t)'\0';
7844 int
7845 main ()
7846 {
7847
7848   ;
7849   return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext
7853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7854   (eval $ac_compile) 2>conftest.er1
7855   ac_status=$?
7856   grep -v '^ *+' conftest.er1 >conftest.err
7857   rm -f conftest.er1
7858   cat conftest.err >&5
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); } &&
7861          { ac_try='test -z "$ac_c_werror_flag"
7862                          || test ! -s conftest.err'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; } &&
7868          { ac_try='test -s conftest.$ac_objext'
7869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7870   (eval $ac_try) 2>&5
7871   ac_status=$?
7872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873   (exit $ac_status); }; }; then
7874   gt_cv_c_wint_t=yes
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879 gt_cv_c_wint_t=no
7880 fi
7881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7882 fi
7883 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7884 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7885   if test $gt_cv_c_wint_t = yes; then
7886
7887 cat >>confdefs.h <<\_ACEOF
7888 #define HAVE_WINT_T 1
7889 _ACEOF
7890
7891   fi
7892
7893
7894   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7895 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7896 if test "${gl_cv_header_inttypes_h+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905 #include <sys/types.h>
7906 #include <inttypes.h>
7907 int
7908 main ()
7909 {
7910 uintmax_t i = (uintmax_t) -1;
7911   ;
7912   return 0;
7913 }
7914 _ACEOF
7915 rm -f conftest.$ac_objext
7916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7917   (eval $ac_compile) 2>conftest.er1
7918   ac_status=$?
7919   grep -v '^ *+' conftest.er1 >conftest.err
7920   rm -f conftest.er1
7921   cat conftest.err >&5
7922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923   (exit $ac_status); } &&
7924          { ac_try='test -z "$ac_c_werror_flag"
7925                          || test ! -s conftest.err'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; } &&
7931          { ac_try='test -s conftest.$ac_objext'
7932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933   (eval $ac_try) 2>&5
7934   ac_status=$?
7935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936   (exit $ac_status); }; }; then
7937   gl_cv_header_inttypes_h=yes
7938 else
7939   echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942 gl_cv_header_inttypes_h=no
7943 fi
7944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7947 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7948   if test $gl_cv_header_inttypes_h = yes; then
7949
7950 cat >>confdefs.h <<_ACEOF
7951 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7952 _ACEOF
7953
7954   fi
7955
7956
7957   echo "$as_me:$LINENO: checking for stdint.h" >&5
7958 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7959 if test "${gl_cv_header_stdint_h+set}" = set; then
7960   echo $ECHO_N "(cached) $ECHO_C" >&6
7961 else
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <sys/types.h>
7969 #include <stdint.h>
7970 int
7971 main ()
7972 {
7973 uintmax_t i = (uintmax_t) -1;
7974   ;
7975   return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7980   (eval $ac_compile) 2>conftest.er1
7981   ac_status=$?
7982   grep -v '^ *+' conftest.er1 >conftest.err
7983   rm -f conftest.er1
7984   cat conftest.err >&5
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -z "$ac_c_werror_flag"
7988                          || test ! -s conftest.err'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; } &&
7994          { ac_try='test -s conftest.$ac_objext'
7995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7996   (eval $ac_try) 2>&5
7997   ac_status=$?
7998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); }; }; then
8000   gl_cv_header_stdint_h=yes
8001 else
8002   echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8004
8005 gl_cv_header_stdint_h=no
8006 fi
8007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8008 fi
8009 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8010 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8011   if test $gl_cv_header_stdint_h = yes; then
8012
8013 cat >>confdefs.h <<_ACEOF
8014 #define HAVE_STDINT_H_WITH_UINTMAX 1
8015 _ACEOF
8016
8017   fi
8018
8019
8020
8021
8022   echo "$as_me:$LINENO: checking for intmax_t" >&5
8023 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8024 if test "${gt_cv_c_intmax_t+set}" = set; then
8025   echo $ECHO_N "(cached) $ECHO_C" >&6
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033
8034 #include <stddef.h>
8035 #include <stdlib.h>
8036 #if HAVE_STDINT_H_WITH_UINTMAX
8037 #include <stdint.h>
8038 #endif
8039 #if HAVE_INTTYPES_H_WITH_UINTMAX
8040 #include <inttypes.h>
8041 #endif
8042
8043 int
8044 main ()
8045 {
8046 intmax_t x = -1;
8047   ;
8048   return 0;
8049 }
8050 _ACEOF
8051 rm -f conftest.$ac_objext
8052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8053   (eval $ac_compile) 2>conftest.er1
8054   ac_status=$?
8055   grep -v '^ *+' conftest.er1 >conftest.err
8056   rm -f conftest.er1
8057   cat conftest.err >&5
8058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); } &&
8060          { ac_try='test -z "$ac_c_werror_flag"
8061                          || test ! -s conftest.err'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; } &&
8067          { ac_try='test -s conftest.$ac_objext'
8068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8069   (eval $ac_try) 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   gt_cv_c_intmax_t=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 gt_cv_c_intmax_t=no
8079 fi
8080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8081 fi
8082 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8083 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8084   if test $gt_cv_c_intmax_t = yes; then
8085
8086 cat >>confdefs.h <<\_ACEOF
8087 #define HAVE_INTMAX_T 1
8088 _ACEOF
8089
8090   fi
8091
8092
8093
8094   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8095 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8096 if test "${gt_cv_func_printf_posix+set}" = set; then
8097   echo $ECHO_N "(cached) $ECHO_C" >&6
8098 else
8099
8100       if test "$cross_compiling" = yes; then
8101
8102         cat >conftest.$ac_ext <<_ACEOF
8103 /* confdefs.h.  */
8104 _ACEOF
8105 cat confdefs.h >>conftest.$ac_ext
8106 cat >>conftest.$ac_ext <<_ACEOF
8107 /* end confdefs.h.  */
8108
8109 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8110   notposix
8111 #endif
8112
8113 _ACEOF
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115   $EGREP "notposix" >/dev/null 2>&1; then
8116   gt_cv_func_printf_posix="guessing no"
8117 else
8118   gt_cv_func_printf_posix="guessing yes"
8119 fi
8120 rm -f conftest*
8121
8122
8123 else
8124   cat >conftest.$ac_ext <<_ACEOF
8125 /* confdefs.h.  */
8126 _ACEOF
8127 cat confdefs.h >>conftest.$ac_ext
8128 cat >>conftest.$ac_ext <<_ACEOF
8129 /* end confdefs.h.  */
8130
8131 #include <stdio.h>
8132 #include <string.h>
8133 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8134    dollar expansion (possibly an autoconf bug).  */
8135 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8136 static char buf[100];
8137 int main ()
8138 {
8139   sprintf (buf, format, 33, 55);
8140   return (strcmp (buf, "55 33") != 0);
8141 }
8142 _ACEOF
8143 rm -f conftest$ac_exeext
8144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8145   (eval $ac_link) 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8150   (eval $ac_try) 2>&5
8151   ac_status=$?
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); }; }; then
8154   gt_cv_func_printf_posix=yes
8155 else
8156   echo "$as_me: program exited with status $ac_status" >&5
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ( exit $ac_status )
8161 gt_cv_func_printf_posix=no
8162 fi
8163 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8164 fi
8165
8166 fi
8167 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8168 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8169   case $gt_cv_func_printf_posix in
8170     *yes)
8171
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_POSIX_PRINTF 1
8174 _ACEOF
8175
8176       ;;
8177   esac
8178
8179 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8180 # for constant arguments.  Useless!
8181 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8182 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8183 if test "${ac_cv_working_alloca_h+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   cat >conftest.$ac_ext <<_ACEOF
8187 /* confdefs.h.  */
8188 _ACEOF
8189 cat confdefs.h >>conftest.$ac_ext
8190 cat >>conftest.$ac_ext <<_ACEOF
8191 /* end confdefs.h.  */
8192 #include <alloca.h>
8193 int
8194 main ()
8195 {
8196 char *p = (char *) alloca (2 * sizeof (int));
8197   ;
8198   return 0;
8199 }
8200 _ACEOF
8201 rm -f conftest.$ac_objext conftest$ac_exeext
8202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8203   (eval $ac_link) 2>conftest.er1
8204   ac_status=$?
8205   grep -v '^ *+' conftest.er1 >conftest.err
8206   rm -f conftest.er1
8207   cat conftest.err >&5
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); } &&
8210          { ac_try='test -z "$ac_c_werror_flag"
8211                          || test ! -s conftest.err'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; } &&
8217          { ac_try='test -s conftest$ac_exeext'
8218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219   (eval $ac_try) 2>&5
8220   ac_status=$?
8221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222   (exit $ac_status); }; }; then
8223   ac_cv_working_alloca_h=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_working_alloca_h=no
8229 fi
8230 rm -f conftest.err conftest.$ac_objext \
8231       conftest$ac_exeext conftest.$ac_ext
8232 fi
8233 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8234 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8235 if test $ac_cv_working_alloca_h = yes; then
8236
8237 cat >>confdefs.h <<\_ACEOF
8238 #define HAVE_ALLOCA_H 1
8239 _ACEOF
8240
8241 fi
8242
8243 echo "$as_me:$LINENO: checking for alloca" >&5
8244 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8245 if test "${ac_cv_func_alloca_works+set}" = set; then
8246   echo $ECHO_N "(cached) $ECHO_C" >&6
8247 else
8248   cat >conftest.$ac_ext <<_ACEOF
8249 /* confdefs.h.  */
8250 _ACEOF
8251 cat confdefs.h >>conftest.$ac_ext
8252 cat >>conftest.$ac_ext <<_ACEOF
8253 /* end confdefs.h.  */
8254 #ifdef __GNUC__
8255 # define alloca __builtin_alloca
8256 #else
8257 # ifdef _MSC_VER
8258 #  include <malloc.h>
8259 #  define alloca _alloca
8260 # else
8261 #  if HAVE_ALLOCA_H
8262 #   include <alloca.h>
8263 #  else
8264 #   ifdef _AIX
8265  #pragma alloca
8266 #   else
8267 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8268 char *alloca ();
8269 #    endif
8270 #   endif
8271 #  endif
8272 # endif
8273 #endif
8274
8275 int
8276 main ()
8277 {
8278 char *p = (char *) alloca (1);
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext conftest$ac_exeext
8284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8285   (eval $ac_link) 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag"
8293                          || test ! -s conftest.err'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest$ac_exeext'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); }; }; then
8305   ac_cv_func_alloca_works=yes
8306 else
8307   echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.$ac_ext >&5
8309
8310 ac_cv_func_alloca_works=no
8311 fi
8312 rm -f conftest.err conftest.$ac_objext \
8313       conftest$ac_exeext conftest.$ac_ext
8314 fi
8315 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8316 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8317
8318 if test $ac_cv_func_alloca_works = yes; then
8319
8320 cat >>confdefs.h <<\_ACEOF
8321 #define HAVE_ALLOCA 1
8322 _ACEOF
8323
8324 else
8325   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8326 # that cause trouble.  Some versions do not even contain alloca or
8327 # contain a buggy version.  If you still want to use their alloca,
8328 # use ar to extract alloca.o from them instead of compiling alloca.c.
8329
8330 ALLOCA=alloca.$ac_objext
8331
8332 cat >>confdefs.h <<\_ACEOF
8333 #define C_ALLOCA 1
8334 _ACEOF
8335
8336
8337 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8338 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8339 if test "${ac_cv_os_cray+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348 #if defined(CRAY) && ! defined(CRAY2)
8349 webecray
8350 #else
8351 wenotbecray
8352 #endif
8353
8354 _ACEOF
8355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356   $EGREP "webecray" >/dev/null 2>&1; then
8357   ac_cv_os_cray=yes
8358 else
8359   ac_cv_os_cray=no
8360 fi
8361 rm -f conftest*
8362
8363 fi
8364 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8365 echo "${ECHO_T}$ac_cv_os_cray" >&6
8366 if test $ac_cv_os_cray = yes; then
8367   for ac_func in _getb67 GETB67 getb67; do
8368     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8369 echo "$as_me:$LINENO: checking for $ac_func" >&5
8370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8371 if eval "test \"\${$as_ac_var+set}\" = set"; then
8372   echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374   cat >conftest.$ac_ext <<_ACEOF
8375 /* confdefs.h.  */
8376 _ACEOF
8377 cat confdefs.h >>conftest.$ac_ext
8378 cat >>conftest.$ac_ext <<_ACEOF
8379 /* end confdefs.h.  */
8380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8382 #define $ac_func innocuous_$ac_func
8383
8384 /* System header to define __stub macros and hopefully few prototypes,
8385     which can conflict with char $ac_func (); below.
8386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8387     <limits.h> exists even on freestanding compilers.  */
8388
8389 #ifdef __STDC__
8390 # include <limits.h>
8391 #else
8392 # include <assert.h>
8393 #endif
8394
8395 #undef $ac_func
8396
8397 /* Override any gcc2 internal prototype to avoid an error.  */
8398 #ifdef __cplusplus
8399 extern "C"
8400 {
8401 #endif
8402 /* We use char because int might match the return type of a gcc2
8403    builtin and then its argument prototype would still apply.  */
8404 char $ac_func ();
8405 /* The GNU C library defines this for functions which it implements
8406     to always fail with ENOSYS.  Some functions are actually named
8407     something starting with __ and the normal name is an alias.  */
8408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8409 choke me
8410 #else
8411 char (*f) () = $ac_func;
8412 #endif
8413 #ifdef __cplusplus
8414 }
8415 #endif
8416
8417 int
8418 main ()
8419 {
8420 return f != $ac_func;
8421   ;
8422   return 0;
8423 }
8424 _ACEOF
8425 rm -f conftest.$ac_objext conftest$ac_exeext
8426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8427   (eval $ac_link) 2>conftest.er1
8428   ac_status=$?
8429   grep -v '^ *+' conftest.er1 >conftest.err
8430   rm -f conftest.er1
8431   cat conftest.err >&5
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); } &&
8434          { ac_try='test -z "$ac_c_werror_flag"
8435                          || test ! -s conftest.err'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest$ac_exeext'
8442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443   (eval $ac_try) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; }; then
8447   eval "$as_ac_var=yes"
8448 else
8449   echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 eval "$as_ac_var=no"
8453 fi
8454 rm -f conftest.err conftest.$ac_objext \
8455       conftest$ac_exeext conftest.$ac_ext
8456 fi
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8459 if test `eval echo '${'$as_ac_var'}'` = yes; then
8460
8461 cat >>confdefs.h <<_ACEOF
8462 #define CRAY_STACKSEG_END $ac_func
8463 _ACEOF
8464
8465     break
8466 fi
8467
8468   done
8469 fi
8470
8471 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8472 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8473 if test "${ac_cv_c_stack_direction+set}" = set; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 else
8476   if test "$cross_compiling" = yes; then
8477   ac_cv_c_stack_direction=0
8478 else
8479   cat >conftest.$ac_ext <<_ACEOF
8480 /* confdefs.h.  */
8481 _ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h.  */
8485 int
8486 find_stack_direction ()
8487 {
8488   static char *addr = 0;
8489   auto char dummy;
8490   if (addr == 0)
8491     {
8492       addr = &dummy;
8493       return find_stack_direction ();
8494     }
8495   else
8496     return (&dummy > addr) ? 1 : -1;
8497 }
8498
8499 int
8500 main ()
8501 {
8502   exit (find_stack_direction () < 0);
8503 }
8504 _ACEOF
8505 rm -f conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507   (eval $ac_link) 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8512   (eval $ac_try) 2>&5
8513   ac_status=$?
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); }; }; then
8516   ac_cv_c_stack_direction=1
8517 else
8518   echo "$as_me: program exited with status $ac_status" >&5
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8521
8522 ( exit $ac_status )
8523 ac_cv_c_stack_direction=-1
8524 fi
8525 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8526 fi
8527 fi
8528 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8529 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8530
8531 cat >>confdefs.h <<_ACEOF
8532 #define STACK_DIRECTION $ac_cv_c_stack_direction
8533 _ACEOF
8534
8535
8536 fi
8537
8538
8539
8540 for ac_header in stdlib.h unistd.h
8541 do
8542 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8544   echo "$as_me:$LINENO: checking for $ac_header" >&5
8545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8547   echo $ECHO_N "(cached) $ECHO_C" >&6
8548 fi
8549 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8550 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8551 else
8552   # Is the header compilable?
8553 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8555 cat >conftest.$ac_ext <<_ACEOF
8556 /* confdefs.h.  */
8557 _ACEOF
8558 cat confdefs.h >>conftest.$ac_ext
8559 cat >>conftest.$ac_ext <<_ACEOF
8560 /* end confdefs.h.  */
8561 $ac_includes_default
8562 #include <$ac_header>
8563 _ACEOF
8564 rm -f conftest.$ac_objext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566   (eval $ac_compile) 2>conftest.er1
8567   ac_status=$?
8568   grep -v '^ *+' conftest.er1 >conftest.err
8569   rm -f conftest.er1
8570   cat conftest.err >&5
8571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572   (exit $ac_status); } &&
8573          { ac_try='test -z "$ac_c_werror_flag"
8574                          || test ! -s conftest.err'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; } &&
8580          { ac_try='test -s conftest.$ac_objext'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   ac_header_compiler=yes
8587 else
8588   echo "$as_me: failed program was:" >&5
8589 sed 's/^/| /' conftest.$ac_ext >&5
8590
8591 ac_header_compiler=no
8592 fi
8593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8594 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8595 echo "${ECHO_T}$ac_header_compiler" >&6
8596
8597 # Is the header present?
8598 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h.  */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h.  */
8606 #include <$ac_header>
8607 _ACEOF
8608 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8609   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8610   ac_status=$?
8611   grep -v '^ *+' conftest.er1 >conftest.err
8612   rm -f conftest.er1
8613   cat conftest.err >&5
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } >/dev/null; then
8616   if test -s conftest.err; then
8617     ac_cpp_err=$ac_c_preproc_warn_flag
8618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8619   else
8620     ac_cpp_err=
8621   fi
8622 else
8623   ac_cpp_err=yes
8624 fi
8625 if test -z "$ac_cpp_err"; then
8626   ac_header_preproc=yes
8627 else
8628   echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8630
8631   ac_header_preproc=no
8632 fi
8633 rm -f conftest.err conftest.$ac_ext
8634 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8635 echo "${ECHO_T}$ac_header_preproc" >&6
8636
8637 # So?  What about this header?
8638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8639   yes:no: )
8640     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8644     ac_header_preproc=yes
8645     ;;
8646   no:yes:* )
8647     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8650 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8651     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8653     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8654 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8655     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8657     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8659     (
8660       cat <<\_ASBOX
8661 ## ------------------------------------------ ##
8662 ## Report this to the AC_PACKAGE_NAME lists.  ##
8663 ## ------------------------------------------ ##
8664 _ASBOX
8665     ) |
8666       sed "s/^/$as_me: WARNING:     /" >&2
8667     ;;
8668 esac
8669 echo "$as_me:$LINENO: checking for $ac_header" >&5
8670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8672   echo $ECHO_N "(cached) $ECHO_C" >&6
8673 else
8674   eval "$as_ac_Header=\$ac_header_preproc"
8675 fi
8676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8678
8679 fi
8680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8681   cat >>confdefs.h <<_ACEOF
8682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8683 _ACEOF
8684
8685 fi
8686
8687 done
8688
8689
8690 for ac_func in getpagesize
8691 do
8692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8693 echo "$as_me:$LINENO: checking for $ac_func" >&5
8694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8695 if eval "test \"\${$as_ac_var+set}\" = set"; then
8696   echo $ECHO_N "(cached) $ECHO_C" >&6
8697 else
8698   cat >conftest.$ac_ext <<_ACEOF
8699 /* confdefs.h.  */
8700 _ACEOF
8701 cat confdefs.h >>conftest.$ac_ext
8702 cat >>conftest.$ac_ext <<_ACEOF
8703 /* end confdefs.h.  */
8704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8706 #define $ac_func innocuous_$ac_func
8707
8708 /* System header to define __stub macros and hopefully few prototypes,
8709     which can conflict with char $ac_func (); below.
8710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8711     <limits.h> exists even on freestanding compilers.  */
8712
8713 #ifdef __STDC__
8714 # include <limits.h>
8715 #else
8716 # include <assert.h>
8717 #endif
8718
8719 #undef $ac_func
8720
8721 /* Override any gcc2 internal prototype to avoid an error.  */
8722 #ifdef __cplusplus
8723 extern "C"
8724 {
8725 #endif
8726 /* We use char because int might match the return type of a gcc2
8727    builtin and then its argument prototype would still apply.  */
8728 char $ac_func ();
8729 /* The GNU C library defines this for functions which it implements
8730     to always fail with ENOSYS.  Some functions are actually named
8731     something starting with __ and the normal name is an alias.  */
8732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8733 choke me
8734 #else
8735 char (*f) () = $ac_func;
8736 #endif
8737 #ifdef __cplusplus
8738 }
8739 #endif
8740
8741 int
8742 main ()
8743 {
8744 return f != $ac_func;
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8751   (eval $ac_link) 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag"
8759                          || test ! -s conftest.err'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; } &&
8765          { ac_try='test -s conftest$ac_exeext'
8766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767   (eval $ac_try) 2>&5
8768   ac_status=$?
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); }; }; then
8771   eval "$as_ac_var=yes"
8772 else
8773   echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 eval "$as_ac_var=no"
8777 fi
8778 rm -f conftest.err conftest.$ac_objext \
8779       conftest$ac_exeext conftest.$ac_ext
8780 fi
8781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8782 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8783 if test `eval echo '${'$as_ac_var'}'` = yes; then
8784   cat >>confdefs.h <<_ACEOF
8785 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8786 _ACEOF
8787
8788 fi
8789 done
8790
8791 echo "$as_me:$LINENO: checking for working mmap" >&5
8792 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8793 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8794   echo $ECHO_N "(cached) $ECHO_C" >&6
8795 else
8796   if test "$cross_compiling" = yes; then
8797   ac_cv_func_mmap_fixed_mapped=no
8798 else
8799   cat >conftest.$ac_ext <<_ACEOF
8800 /* confdefs.h.  */
8801 _ACEOF
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h.  */
8805 $ac_includes_default
8806 /* malloc might have been renamed as rpl_malloc. */
8807 #undef malloc
8808
8809 /* Thanks to Mike Haertel and Jim Avera for this test.
8810    Here is a matrix of mmap possibilities:
8811         mmap private not fixed
8812         mmap private fixed at somewhere currently unmapped
8813         mmap private fixed at somewhere already mapped
8814         mmap shared not fixed
8815         mmap shared fixed at somewhere currently unmapped
8816         mmap shared fixed at somewhere already mapped
8817    For private mappings, we should verify that changes cannot be read()
8818    back from the file, nor mmap's back from the file at a different
8819    address.  (There have been systems where private was not correctly
8820    implemented like the infamous i386 svr4.0, and systems where the
8821    VM page cache was not coherent with the file system buffer cache
8822    like early versions of FreeBSD and possibly contemporary NetBSD.)
8823    For shared mappings, we should conversely verify that changes get
8824    propagated back to all the places they're supposed to be.
8825
8826    Grep wants private fixed already mapped.
8827    The main things grep needs to know about mmap are:
8828    * does it exist and is it safe to write into the mmap'd area
8829    * how to use it (BSD variants)  */
8830
8831 #include <fcntl.h>
8832 #include <sys/mman.h>
8833
8834 #if !STDC_HEADERS && !HAVE_STDLIB_H
8835 char *malloc ();
8836 #endif
8837
8838 /* This mess was copied from the GNU getpagesize.h.  */
8839 #if !HAVE_GETPAGESIZE
8840 /* Assume that all systems that can run configure have sys/param.h.  */
8841 # if !HAVE_SYS_PARAM_H
8842 #  define HAVE_SYS_PARAM_H 1
8843 # endif
8844
8845 # ifdef _SC_PAGESIZE
8846 #  define getpagesize() sysconf(_SC_PAGESIZE)
8847 # else /* no _SC_PAGESIZE */
8848 #  if HAVE_SYS_PARAM_H
8849 #   include <sys/param.h>
8850 #   ifdef EXEC_PAGESIZE
8851 #    define getpagesize() EXEC_PAGESIZE
8852 #   else /* no EXEC_PAGESIZE */
8853 #    ifdef NBPG
8854 #     define getpagesize() NBPG * CLSIZE
8855 #     ifndef CLSIZE
8856 #      define CLSIZE 1
8857 #     endif /* no CLSIZE */
8858 #    else /* no NBPG */
8859 #     ifdef NBPC
8860 #      define getpagesize() NBPC
8861 #     else /* no NBPC */
8862 #      ifdef PAGESIZE
8863 #       define getpagesize() PAGESIZE
8864 #      endif /* PAGESIZE */
8865 #     endif /* no NBPC */
8866 #    endif /* no NBPG */
8867 #   endif /* no EXEC_PAGESIZE */
8868 #  else /* no HAVE_SYS_PARAM_H */
8869 #   define getpagesize() 8192   /* punt totally */
8870 #  endif /* no HAVE_SYS_PARAM_H */
8871 # endif /* no _SC_PAGESIZE */
8872
8873 #endif /* no HAVE_GETPAGESIZE */
8874
8875 int
8876 main ()
8877 {
8878   char *data, *data2, *data3;
8879   int i, pagesize;
8880   int fd;
8881
8882   pagesize = getpagesize ();
8883
8884   /* First, make a file with some known garbage in it. */
8885   data = (char *) malloc (pagesize);
8886   if (!data)
8887     exit (1);
8888   for (i = 0; i < pagesize; ++i)
8889     *(data + i) = rand ();
8890   umask (0);
8891   fd = creat ("conftest.mmap", 0600);
8892   if (fd < 0)
8893     exit (1);
8894   if (write (fd, data, pagesize) != pagesize)
8895     exit (1);
8896   close (fd);
8897
8898   /* Next, try to mmap the file at a fixed address which already has
8899      something else allocated at it.  If we can, also make sure that
8900      we see the same garbage.  */
8901   fd = open ("conftest.mmap", O_RDWR);
8902   if (fd < 0)
8903     exit (1);
8904   data2 = (char *) malloc (2 * pagesize);
8905   if (!data2)
8906     exit (1);
8907   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8908   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8909                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8910     exit (1);
8911   for (i = 0; i < pagesize; ++i)
8912     if (*(data + i) != *(data2 + i))
8913       exit (1);
8914
8915   /* Finally, make sure that changes to the mapped area do not
8916      percolate back to the file as seen by read().  (This is a bug on
8917      some variants of i386 svr4.0.)  */
8918   for (i = 0; i < pagesize; ++i)
8919     *(data2 + i) = *(data2 + i) + 1;
8920   data3 = (char *) malloc (pagesize);
8921   if (!data3)
8922     exit (1);
8923   if (read (fd, data3, pagesize) != pagesize)
8924     exit (1);
8925   for (i = 0; i < pagesize; ++i)
8926     if (*(data + i) != *(data3 + i))
8927       exit (1);
8928   close (fd);
8929   exit (0);
8930 }
8931 _ACEOF
8932 rm -f conftest$ac_exeext
8933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8934   (eval $ac_link) 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939   (eval $ac_try) 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; }; then
8943   ac_cv_func_mmap_fixed_mapped=yes
8944 else
8945   echo "$as_me: program exited with status $ac_status" >&5
8946 echo "$as_me: failed program was:" >&5
8947 sed 's/^/| /' conftest.$ac_ext >&5
8948
8949 ( exit $ac_status )
8950 ac_cv_func_mmap_fixed_mapped=no
8951 fi
8952 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8953 fi
8954 fi
8955 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8956 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8957 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8958
8959 cat >>confdefs.h <<\_ACEOF
8960 #define HAVE_MMAP 1
8961 _ACEOF
8962
8963 fi
8964 rm -f conftest.mmap
8965
8966
8967     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8968 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8969 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978
8979 #include <features.h>
8980 #ifdef __GNU_LIBRARY__
8981  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8982   Lucky GNU user
8983  #endif
8984 #endif
8985
8986 _ACEOF
8987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8988   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8989   ac_cv_gnu_library_2_1=yes
8990 else
8991   ac_cv_gnu_library_2_1=no
8992 fi
8993 rm -f conftest*
8994
8995
8996
8997 fi
8998 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8999 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
9000
9001     GLIBC21="$ac_cv_gnu_library_2_1"
9002
9003
9004
9005
9006   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9007 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9008 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9009   echo $ECHO_N "(cached) $ECHO_C" >&6
9010 else
9011
9012       if test "$cross_compiling" = yes; then
9013
9014           # Guess based on the CPU.
9015           case "$host_cpu" in
9016             alpha* | i3456786 | m68k | s390*)
9017               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9018             *)
9019               gt_cv_int_divbyzero_sigfpe="guessing no";;
9020           esac
9021
9022 else
9023   cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029
9030 #include <stdlib.h>
9031 #include <signal.h>
9032
9033 static void
9034 #ifdef __cplusplus
9035 sigfpe_handler (int sig)
9036 #else
9037 sigfpe_handler (sig) int sig;
9038 #endif
9039 {
9040   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9041   exit (sig != SIGFPE);
9042 }
9043
9044 int x = 1;
9045 int y = 0;
9046 int z;
9047 int nan;
9048
9049 int main ()
9050 {
9051   signal (SIGFPE, sigfpe_handler);
9052 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9053 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9054   signal (SIGTRAP, sigfpe_handler);
9055 #endif
9056 /* Linux/SPARC yields signal SIGILL.  */
9057 #if defined (__sparc__) && defined (__linux__)
9058   signal (SIGILL, sigfpe_handler);
9059 #endif
9060
9061   z = x / y;
9062   nan = y / y;
9063   exit (1);
9064 }
9065
9066 _ACEOF
9067 rm -f conftest$ac_exeext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9069   (eval $ac_link) 2>&5
9070   ac_status=$?
9071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; }; then
9078   gt_cv_int_divbyzero_sigfpe=yes
9079 else
9080   echo "$as_me: program exited with status $ac_status" >&5
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9083
9084 ( exit $ac_status )
9085 gt_cv_int_divbyzero_sigfpe=no
9086 fi
9087 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9088 fi
9089
9090 fi
9091 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9092 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9093   case "$gt_cv_int_divbyzero_sigfpe" in
9094     *yes) value=1;;
9095     *) value=0;;
9096   esac
9097
9098 cat >>confdefs.h <<_ACEOF
9099 #define INTDIV0_RAISES_SIGFPE $value
9100 _ACEOF
9101
9102
9103
9104   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9105 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9106 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9107   echo $ECHO_N "(cached) $ECHO_C" >&6
9108 else
9109   cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 unsigned long long ull = 1ULL; int i = 63;
9116 int
9117 main ()
9118 {
9119 unsigned long long ullmax = (unsigned long long) -1;
9120      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9127   (eval $ac_link) 2>conftest.er1
9128   ac_status=$?
9129   grep -v '^ *+' conftest.er1 >conftest.err
9130   rm -f conftest.er1
9131   cat conftest.err >&5
9132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133   (exit $ac_status); } &&
9134          { ac_try='test -z "$ac_c_werror_flag"
9135                          || test ! -s conftest.err'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; } &&
9141          { ac_try='test -s conftest$ac_exeext'
9142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9143   (eval $ac_try) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }; }; then
9147   ac_cv_type_unsigned_long_long=yes
9148 else
9149   echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 ac_cv_type_unsigned_long_long=no
9153 fi
9154 rm -f conftest.err conftest.$ac_objext \
9155       conftest$ac_exeext conftest.$ac_ext
9156 fi
9157 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9158 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9159   if test $ac_cv_type_unsigned_long_long = yes; then
9160
9161 cat >>confdefs.h <<\_ACEOF
9162 #define HAVE_UNSIGNED_LONG_LONG 1
9163 _ACEOF
9164
9165   fi
9166
9167
9168
9169
9170   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9171
9172     test $ac_cv_type_unsigned_long_long = yes \
9173       && ac_type='unsigned long long' \
9174       || ac_type='unsigned long'
9175
9176 cat >>confdefs.h <<_ACEOF
9177 #define uintmax_t $ac_type
9178 _ACEOF
9179
9180   else
9181
9182 cat >>confdefs.h <<\_ACEOF
9183 #define HAVE_UINTMAX_T 1
9184 _ACEOF
9185
9186   fi
9187
9188
9189   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9190 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9191 if test "${gt_cv_header_inttypes_h+set}" = set; then
9192   echo $ECHO_N "(cached) $ECHO_C" >&6
9193 else
9194
9195     cat >conftest.$ac_ext <<_ACEOF
9196 /* confdefs.h.  */
9197 _ACEOF
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h.  */
9201 #include <sys/types.h>
9202 #include <inttypes.h>
9203 int
9204 main ()
9205 {
9206
9207   ;
9208   return 0;
9209 }
9210 _ACEOF
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213   (eval $ac_compile) 2>conftest.er1
9214   ac_status=$?
9215   grep -v '^ *+' conftest.er1 >conftest.err
9216   rm -f conftest.er1
9217   cat conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); } &&
9220          { ac_try='test -z "$ac_c_werror_flag"
9221                          || test ! -s conftest.err'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; } &&
9227          { ac_try='test -s conftest.$ac_objext'
9228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229   (eval $ac_try) 2>&5
9230   ac_status=$?
9231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9232   (exit $ac_status); }; }; then
9233   gt_cv_header_inttypes_h=yes
9234 else
9235   echo "$as_me: failed program was:" >&5
9236 sed 's/^/| /' conftest.$ac_ext >&5
9237
9238 gt_cv_header_inttypes_h=no
9239 fi
9240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9241
9242 fi
9243 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9244 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9245   if test $gt_cv_header_inttypes_h = yes; then
9246
9247 cat >>confdefs.h <<_ACEOF
9248 #define HAVE_INTTYPES_H 1
9249 _ACEOF
9250
9251   fi
9252
9253
9254
9255   if test $gt_cv_header_inttypes_h = yes; then
9256     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9257 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9258 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9259   echo $ECHO_N "(cached) $ECHO_C" >&6
9260 else
9261
9262         cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268 #include <inttypes.h>
9269 #ifdef PRId32
9270 char *p = PRId32;
9271 #endif
9272
9273 int
9274 main ()
9275 {
9276
9277   ;
9278   return 0;
9279 }
9280 _ACEOF
9281 rm -f conftest.$ac_objext
9282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9283   (eval $ac_compile) 2>conftest.er1
9284   ac_status=$?
9285   grep -v '^ *+' conftest.er1 >conftest.err
9286   rm -f conftest.er1
9287   cat conftest.err >&5
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); } &&
9290          { ac_try='test -z "$ac_c_werror_flag"
9291                          || test ! -s conftest.err'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; } &&
9297          { ac_try='test -s conftest.$ac_objext'
9298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9299   (eval $ac_try) 2>&5
9300   ac_status=$?
9301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9302   (exit $ac_status); }; }; then
9303   gt_cv_inttypes_pri_broken=no
9304 else
9305   echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9307
9308 gt_cv_inttypes_pri_broken=yes
9309 fi
9310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9311
9312 fi
9313 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9314 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9315   fi
9316   if test "$gt_cv_inttypes_pri_broken" = yes; then
9317
9318 cat >>confdefs.h <<_ACEOF
9319 #define PRI_MACROS_BROKEN 1
9320 _ACEOF
9321
9322   fi
9323
9324
9325
9326 for ac_header in stdint.h
9327 do
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9330   echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 fi
9335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9337 else
9338   # Is the header compilable?
9339 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347 $ac_includes_default
9348 #include <$ac_header>
9349 _ACEOF
9350 rm -f conftest.$ac_objext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9352   (eval $ac_compile) 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } &&
9359          { ac_try='test -z "$ac_c_werror_flag"
9360                          || test ! -s conftest.err'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; } &&
9366          { ac_try='test -s conftest.$ac_objext'
9367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9368   (eval $ac_try) 2>&5
9369   ac_status=$?
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); }; }; then
9372   ac_header_compiler=yes
9373 else
9374   echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.$ac_ext >&5
9376
9377 ac_header_compiler=no
9378 fi
9379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9381 echo "${ECHO_T}$ac_header_compiler" >&6
9382
9383 # Is the header present?
9384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9386 cat >conftest.$ac_ext <<_ACEOF
9387 /* confdefs.h.  */
9388 _ACEOF
9389 cat confdefs.h >>conftest.$ac_ext
9390 cat >>conftest.$ac_ext <<_ACEOF
9391 /* end confdefs.h.  */
9392 #include <$ac_header>
9393 _ACEOF
9394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9395   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } >/dev/null; then
9402   if test -s conftest.err; then
9403     ac_cpp_err=$ac_c_preproc_warn_flag
9404     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9405   else
9406     ac_cpp_err=
9407   fi
9408 else
9409   ac_cpp_err=yes
9410 fi
9411 if test -z "$ac_cpp_err"; then
9412   ac_header_preproc=yes
9413 else
9414   echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417   ac_header_preproc=no
9418 fi
9419 rm -f conftest.err conftest.$ac_ext
9420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9421 echo "${ECHO_T}$ac_header_preproc" >&6
9422
9423 # So?  What about this header?
9424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9425   yes:no: )
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9430     ac_header_preproc=yes
9431     ;;
9432   no:yes:* )
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9436 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9439     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9440 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9441     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9443     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9445     (
9446       cat <<\_ASBOX
9447 ## ------------------------------------------ ##
9448 ## Report this to the AC_PACKAGE_NAME lists.  ##
9449 ## ------------------------------------------ ##
9450 _ASBOX
9451     ) |
9452       sed "s/^/$as_me: WARNING:     /" >&2
9453     ;;
9454 esac
9455 echo "$as_me:$LINENO: checking for $ac_header" >&5
9456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9458   echo $ECHO_N "(cached) $ECHO_C" >&6
9459 else
9460   eval "$as_ac_Header=\$ac_header_preproc"
9461 fi
9462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9464
9465 fi
9466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9467   cat >>confdefs.h <<_ACEOF
9468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9469 _ACEOF
9470
9471 fi
9472
9473 done
9474
9475     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9476 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9477   result=
9478   cat >conftest.$ac_ext <<_ACEOF
9479 /* confdefs.h.  */
9480 _ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h.  */
9484
9485 #include <limits.h>
9486 #if HAVE_STDINT_H
9487 #include <stdint.h>
9488 #endif
9489 #ifdef SIZE_MAX
9490 Found it
9491 #endif
9492
9493 _ACEOF
9494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9495   $EGREP "Found it" >/dev/null 2>&1; then
9496   result=yes
9497 fi
9498 rm -f conftest*
9499
9500   if test -z "$result"; then
9501                     if test "$cross_compiling" = yes; then
9502   # Depending upon the size, compute the lo and hi bounds.
9503 cat >conftest.$ac_ext <<_ACEOF
9504 /* confdefs.h.  */
9505 _ACEOF
9506 cat confdefs.h >>conftest.$ac_ext
9507 cat >>conftest.$ac_ext <<_ACEOF
9508 /* end confdefs.h.  */
9509 #include <stddef.h>
9510 int
9511 main ()
9512 {
9513 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9514 test_array [0] = 0
9515
9516   ;
9517   return 0;
9518 }
9519 _ACEOF
9520 rm -f conftest.$ac_objext
9521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522   (eval $ac_compile) 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } &&
9529          { ac_try='test -z "$ac_c_werror_flag"
9530                          || test ! -s conftest.err'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; } &&
9536          { ac_try='test -s conftest.$ac_objext'
9537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9538   (eval $ac_try) 2>&5
9539   ac_status=$?
9540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); }; }; then
9542   ac_lo=0 ac_mid=0
9543   while :; do
9544     cat >conftest.$ac_ext <<_ACEOF
9545 /* confdefs.h.  */
9546 _ACEOF
9547 cat confdefs.h >>conftest.$ac_ext
9548 cat >>conftest.$ac_ext <<_ACEOF
9549 /* end confdefs.h.  */
9550 #include <stddef.h>
9551 int
9552 main ()
9553 {
9554 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9555 test_array [0] = 0
9556
9557   ;
9558   return 0;
9559 }
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9563   (eval $ac_compile) 2>conftest.er1
9564   ac_status=$?
9565   grep -v '^ *+' conftest.er1 >conftest.err
9566   rm -f conftest.er1
9567   cat conftest.err >&5
9568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569   (exit $ac_status); } &&
9570          { ac_try='test -z "$ac_c_werror_flag"
9571                          || test ! -s conftest.err'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; } &&
9577          { ac_try='test -s conftest.$ac_objext'
9578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9579   (eval $ac_try) 2>&5
9580   ac_status=$?
9581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582   (exit $ac_status); }; }; then
9583   ac_hi=$ac_mid; break
9584 else
9585   echo "$as_me: failed program was:" >&5
9586 sed 's/^/| /' conftest.$ac_ext >&5
9587
9588 ac_lo=`expr $ac_mid + 1`
9589                     if test $ac_lo -le $ac_mid; then
9590                       ac_lo= ac_hi=
9591                       break
9592                     fi
9593                     ac_mid=`expr 2 '*' $ac_mid + 1`
9594 fi
9595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9596   done
9597 else
9598   echo "$as_me: failed program was:" >&5
9599 sed 's/^/| /' conftest.$ac_ext >&5
9600
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 #include <stddef.h>
9608 int
9609 main ()
9610 {
9611 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9612 test_array [0] = 0
9613
9614   ;
9615   return 0;
9616 }
9617 _ACEOF
9618 rm -f conftest.$ac_objext
9619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9620   (eval $ac_compile) 2>conftest.er1
9621   ac_status=$?
9622   grep -v '^ *+' conftest.er1 >conftest.err
9623   rm -f conftest.er1
9624   cat conftest.err >&5
9625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626   (exit $ac_status); } &&
9627          { ac_try='test -z "$ac_c_werror_flag"
9628                          || test ! -s conftest.err'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; } &&
9634          { ac_try='test -s conftest.$ac_objext'
9635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9636   (eval $ac_try) 2>&5
9637   ac_status=$?
9638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639   (exit $ac_status); }; }; then
9640   ac_hi=-1 ac_mid=-1
9641   while :; do
9642     cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h.  */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h.  */
9648 #include <stddef.h>
9649 int
9650 main ()
9651 {
9652 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9653 test_array [0] = 0
9654
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 rm -f conftest.$ac_objext
9660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9661   (eval $ac_compile) 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -z "$ac_c_werror_flag"
9669                          || test ! -s conftest.err'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; } &&
9675          { ac_try='test -s conftest.$ac_objext'
9676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9677   (eval $ac_try) 2>&5
9678   ac_status=$?
9679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680   (exit $ac_status); }; }; then
9681   ac_lo=$ac_mid; break
9682 else
9683   echo "$as_me: failed program was:" >&5
9684 sed 's/^/| /' conftest.$ac_ext >&5
9685
9686 ac_hi=`expr '(' $ac_mid ')' - 1`
9687                        if test $ac_mid -le $ac_hi; then
9688                          ac_lo= ac_hi=
9689                          break
9690                        fi
9691                        ac_mid=`expr 2 '*' $ac_mid`
9692 fi
9693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9694   done
9695 else
9696   echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9698
9699 ac_lo= ac_hi=
9700 fi
9701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9702 fi
9703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9704 # Binary search between lo and hi bounds.
9705 while test "x$ac_lo" != "x$ac_hi"; do
9706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9707   cat >conftest.$ac_ext <<_ACEOF
9708 /* confdefs.h.  */
9709 _ACEOF
9710 cat confdefs.h >>conftest.$ac_ext
9711 cat >>conftest.$ac_ext <<_ACEOF
9712 /* end confdefs.h.  */
9713 #include <stddef.h>
9714 int
9715 main ()
9716 {
9717 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9718 test_array [0] = 0
9719
9720   ;
9721   return 0;
9722 }
9723 _ACEOF
9724 rm -f conftest.$ac_objext
9725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9726   (eval $ac_compile) 2>conftest.er1
9727   ac_status=$?
9728   grep -v '^ *+' conftest.er1 >conftest.err
9729   rm -f conftest.er1
9730   cat conftest.err >&5
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -z "$ac_c_werror_flag"
9734                          || test ! -s conftest.err'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; } &&
9740          { ac_try='test -s conftest.$ac_objext'
9741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9742   (eval $ac_try) 2>&5
9743   ac_status=$?
9744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745   (exit $ac_status); }; }; then
9746   ac_hi=$ac_mid
9747 else
9748   echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9750
9751 ac_lo=`expr '(' $ac_mid ')' + 1`
9752 fi
9753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9754 done
9755 case $ac_lo in
9756 ?*) res_hi=$ac_lo;;
9757 '') result=? ;;
9758 esac
9759 else
9760   if test "$cross_compiling" = yes; then
9761   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9762 See \`config.log' for more details." >&5
9763 echo "$as_me: error: cannot run test program while cross compiling
9764 See \`config.log' for more details." >&2;}
9765    { (exit 1); exit 1; }; }
9766 else
9767   cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 #include <stddef.h>
9774 long longval () { return ~(size_t)0 / 10; }
9775 unsigned long ulongval () { return ~(size_t)0 / 10; }
9776 #include <stdio.h>
9777 #include <stdlib.h>
9778 int
9779 main ()
9780 {
9781
9782   FILE *f = fopen ("conftest.val", "w");
9783   if (! f)
9784     exit (1);
9785   if ((~(size_t)0 / 10) < 0)
9786     {
9787       long i = longval ();
9788       if (i != (~(size_t)0 / 10))
9789         exit (1);
9790       fprintf (f, "%ld\n", i);
9791     }
9792   else
9793     {
9794       unsigned long i = ulongval ();
9795       if (i != (~(size_t)0 / 10))
9796         exit (1);
9797       fprintf (f, "%lu\n", i);
9798     }
9799   exit (ferror (f) || fclose (f) != 0);
9800
9801   ;
9802   return 0;
9803 }
9804 _ACEOF
9805 rm -f conftest$ac_exeext
9806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9807   (eval $ac_link) 2>&5
9808   ac_status=$?
9809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812   (eval $ac_try) 2>&5
9813   ac_status=$?
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); }; }; then
9816   res_hi=`cat conftest.val`
9817 else
9818   echo "$as_me: program exited with status $ac_status" >&5
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9821
9822 ( exit $ac_status )
9823 result=?
9824 fi
9825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9826 fi
9827 fi
9828 rm -f conftest.val
9829     if test "$cross_compiling" = yes; then
9830   # Depending upon the size, compute the lo and hi bounds.
9831 cat >conftest.$ac_ext <<_ACEOF
9832 /* confdefs.h.  */
9833 _ACEOF
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h.  */
9837 #include <stddef.h>
9838 int
9839 main ()
9840 {
9841 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9842 test_array [0] = 0
9843
9844   ;
9845   return 0;
9846 }
9847 _ACEOF
9848 rm -f conftest.$ac_objext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9850   (eval $ac_compile) 2>conftest.er1
9851   ac_status=$?
9852   grep -v '^ *+' conftest.er1 >conftest.err
9853   rm -f conftest.er1
9854   cat conftest.err >&5
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } &&
9857          { ac_try='test -z "$ac_c_werror_flag"
9858                          || test ! -s conftest.err'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; } &&
9864          { ac_try='test -s conftest.$ac_objext'
9865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866   (eval $ac_try) 2>&5
9867   ac_status=$?
9868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); }; }; then
9870   ac_lo=0 ac_mid=0
9871   while :; do
9872     cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h.  */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h.  */
9878 #include <stddef.h>
9879 int
9880 main ()
9881 {
9882 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9883 test_array [0] = 0
9884
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9891   (eval $ac_compile) 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -z "$ac_c_werror_flag"
9899                          || test ! -s conftest.err'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; } &&
9905          { ac_try='test -s conftest.$ac_objext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911   ac_hi=$ac_mid; break
9912 else
9913   echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9915
9916 ac_lo=`expr $ac_mid + 1`
9917                     if test $ac_lo -le $ac_mid; then
9918                       ac_lo= ac_hi=
9919                       break
9920                     fi
9921                     ac_mid=`expr 2 '*' $ac_mid + 1`
9922 fi
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924   done
9925 else
9926   echo "$as_me: failed program was:" >&5
9927 sed 's/^/| /' conftest.$ac_ext >&5
9928
9929 cat >conftest.$ac_ext <<_ACEOF
9930 /* confdefs.h.  */
9931 _ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h.  */
9935 #include <stddef.h>
9936 int
9937 main ()
9938 {
9939 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9940 test_array [0] = 0
9941
9942   ;
9943   return 0;
9944 }
9945 _ACEOF
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948   (eval $ac_compile) 2>conftest.er1
9949   ac_status=$?
9950   grep -v '^ *+' conftest.er1 >conftest.err
9951   rm -f conftest.er1
9952   cat conftest.err >&5
9953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954   (exit $ac_status); } &&
9955          { ac_try='test -z "$ac_c_werror_flag"
9956                          || test ! -s conftest.err'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; } &&
9962          { ac_try='test -s conftest.$ac_objext'
9963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964   (eval $ac_try) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); }; }; then
9968   ac_hi=-1 ac_mid=-1
9969   while :; do
9970     cat >conftest.$ac_ext <<_ACEOF
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976 #include <stddef.h>
9977 int
9978 main ()
9979 {
9980 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9981 test_array [0] = 0
9982
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9989   (eval $ac_compile) 2>conftest.er1
9990   ac_status=$?
9991   grep -v '^ *+' conftest.er1 >conftest.err
9992   rm -f conftest.er1
9993   cat conftest.err >&5
9994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9995   (exit $ac_status); } &&
9996          { ac_try='test -z "$ac_c_werror_flag"
9997                          || test ! -s conftest.err'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; } &&
10003          { ac_try='test -s conftest.$ac_objext'
10004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005   (eval $ac_try) 2>&5
10006   ac_status=$?
10007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008   (exit $ac_status); }; }; then
10009   ac_lo=$ac_mid; break
10010 else
10011   echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10013
10014 ac_hi=`expr '(' $ac_mid ')' - 1`
10015                        if test $ac_mid -le $ac_hi; then
10016                          ac_lo= ac_hi=
10017                          break
10018                        fi
10019                        ac_mid=`expr 2 '*' $ac_mid`
10020 fi
10021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10022   done
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_lo= ac_hi=
10028 fi
10029 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10030 fi
10031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10032 # Binary search between lo and hi bounds.
10033 while test "x$ac_lo" != "x$ac_hi"; do
10034   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10035   cat >conftest.$ac_ext <<_ACEOF
10036 /* confdefs.h.  */
10037 _ACEOF
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h.  */
10041 #include <stddef.h>
10042 int
10043 main ()
10044 {
10045 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10046 test_array [0] = 0
10047
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054   (eval $ac_compile) 2>conftest.er1
10055   ac_status=$?
10056   grep -v '^ *+' conftest.er1 >conftest.err
10057   rm -f conftest.er1
10058   cat conftest.err >&5
10059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060   (exit $ac_status); } &&
10061          { ac_try='test -z "$ac_c_werror_flag"
10062                          || test ! -s conftest.err'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; } &&
10068          { ac_try='test -s conftest.$ac_objext'
10069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10070   (eval $ac_try) 2>&5
10071   ac_status=$?
10072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073   (exit $ac_status); }; }; then
10074   ac_hi=$ac_mid
10075 else
10076   echo "$as_me: failed program was:" >&5
10077 sed 's/^/| /' conftest.$ac_ext >&5
10078
10079 ac_lo=`expr '(' $ac_mid ')' + 1`
10080 fi
10081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10082 done
10083 case $ac_lo in
10084 ?*) res_lo=$ac_lo;;
10085 '') result=? ;;
10086 esac
10087 else
10088   if test "$cross_compiling" = yes; then
10089   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10090 See \`config.log' for more details." >&5
10091 echo "$as_me: error: cannot run test program while cross compiling
10092 See \`config.log' for more details." >&2;}
10093    { (exit 1); exit 1; }; }
10094 else
10095   cat >conftest.$ac_ext <<_ACEOF
10096 /* confdefs.h.  */
10097 _ACEOF
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h.  */
10101 #include <stddef.h>
10102 long longval () { return ~(size_t)0 % 10; }
10103 unsigned long ulongval () { return ~(size_t)0 % 10; }
10104 #include <stdio.h>
10105 #include <stdlib.h>
10106 int
10107 main ()
10108 {
10109
10110   FILE *f = fopen ("conftest.val", "w");
10111   if (! f)
10112     exit (1);
10113   if ((~(size_t)0 % 10) < 0)
10114     {
10115       long i = longval ();
10116       if (i != (~(size_t)0 % 10))
10117         exit (1);
10118       fprintf (f, "%ld\n", i);
10119     }
10120   else
10121     {
10122       unsigned long i = ulongval ();
10123       if (i != (~(size_t)0 % 10))
10124         exit (1);
10125       fprintf (f, "%lu\n", i);
10126     }
10127   exit (ferror (f) || fclose (f) != 0);
10128
10129   ;
10130   return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest$ac_exeext
10134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10135   (eval $ac_link) 2>&5
10136   ac_status=$?
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10140   (eval $ac_try) 2>&5
10141   ac_status=$?
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); }; }; then
10144   res_lo=`cat conftest.val`
10145 else
10146   echo "$as_me: program exited with status $ac_status" >&5
10147 echo "$as_me: failed program was:" >&5
10148 sed 's/^/| /' conftest.$ac_ext >&5
10149
10150 ( exit $ac_status )
10151 result=?
10152 fi
10153 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10154 fi
10155 fi
10156 rm -f conftest.val
10157     if test "$cross_compiling" = yes; then
10158   # Depending upon the size, compute the lo and hi bounds.
10159 cat >conftest.$ac_ext <<_ACEOF
10160 /* confdefs.h.  */
10161 _ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h.  */
10165 #include <stddef.h>
10166 int
10167 main ()
10168 {
10169 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10170 test_array [0] = 0
10171
10172   ;
10173   return 0;
10174 }
10175 _ACEOF
10176 rm -f conftest.$ac_objext
10177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10178   (eval $ac_compile) 2>conftest.er1
10179   ac_status=$?
10180   grep -v '^ *+' conftest.er1 >conftest.err
10181   rm -f conftest.er1
10182   cat conftest.err >&5
10183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184   (exit $ac_status); } &&
10185          { ac_try='test -z "$ac_c_werror_flag"
10186                          || test ! -s conftest.err'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; } &&
10192          { ac_try='test -s conftest.$ac_objext'
10193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10194   (eval $ac_try) 2>&5
10195   ac_status=$?
10196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197   (exit $ac_status); }; }; then
10198   ac_lo=0 ac_mid=0
10199   while :; do
10200     cat >conftest.$ac_ext <<_ACEOF
10201 /* confdefs.h.  */
10202 _ACEOF
10203 cat confdefs.h >>conftest.$ac_ext
10204 cat >>conftest.$ac_ext <<_ACEOF
10205 /* end confdefs.h.  */
10206 #include <stddef.h>
10207 int
10208 main ()
10209 {
10210 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10211 test_array [0] = 0
10212
10213   ;
10214   return 0;
10215 }
10216 _ACEOF
10217 rm -f conftest.$ac_objext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10219   (eval $ac_compile) 2>conftest.er1
10220   ac_status=$?
10221   grep -v '^ *+' conftest.er1 >conftest.err
10222   rm -f conftest.er1
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   (exit $ac_status); } &&
10226          { ac_try='test -z "$ac_c_werror_flag"
10227                          || test ! -s conftest.err'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; } &&
10233          { ac_try='test -s conftest.$ac_objext'
10234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10235   (eval $ac_try) 2>&5
10236   ac_status=$?
10237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238   (exit $ac_status); }; }; then
10239   ac_hi=$ac_mid; break
10240 else
10241   echo "$as_me: failed program was:" >&5
10242 sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 ac_lo=`expr $ac_mid + 1`
10245                     if test $ac_lo -le $ac_mid; then
10246                       ac_lo= ac_hi=
10247                       break
10248                     fi
10249                     ac_mid=`expr 2 '*' $ac_mid + 1`
10250 fi
10251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10252   done
10253 else
10254   echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10256
10257 cat >conftest.$ac_ext <<_ACEOF
10258 /* confdefs.h.  */
10259 _ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h.  */
10263 #include <stddef.h>
10264 int
10265 main ()
10266 {
10267 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10268 test_array [0] = 0
10269
10270   ;
10271   return 0;
10272 }
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10276   (eval $ac_compile) 2>conftest.er1
10277   ac_status=$?
10278   grep -v '^ *+' conftest.er1 >conftest.err
10279   rm -f conftest.er1
10280   cat conftest.err >&5
10281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282   (exit $ac_status); } &&
10283          { ac_try='test -z "$ac_c_werror_flag"
10284                          || test ! -s conftest.err'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; } &&
10290          { ac_try='test -s conftest.$ac_objext'
10291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10292   (eval $ac_try) 2>&5
10293   ac_status=$?
10294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); }; }; then
10296   ac_hi=-1 ac_mid=-1
10297   while :; do
10298     cat >conftest.$ac_ext <<_ACEOF
10299 /* confdefs.h.  */
10300 _ACEOF
10301 cat confdefs.h >>conftest.$ac_ext
10302 cat >>conftest.$ac_ext <<_ACEOF
10303 /* end confdefs.h.  */
10304 #include <stddef.h>
10305 int
10306 main ()
10307 {
10308 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10309 test_array [0] = 0
10310
10311   ;
10312   return 0;
10313 }
10314 _ACEOF
10315 rm -f conftest.$ac_objext
10316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10317   (eval $ac_compile) 2>conftest.er1
10318   ac_status=$?
10319   grep -v '^ *+' conftest.er1 >conftest.err
10320   rm -f conftest.er1
10321   cat conftest.err >&5
10322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323   (exit $ac_status); } &&
10324          { ac_try='test -z "$ac_c_werror_flag"
10325                          || test ! -s conftest.err'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; } &&
10331          { ac_try='test -s conftest.$ac_objext'
10332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10333   (eval $ac_try) 2>&5
10334   ac_status=$?
10335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10336   (exit $ac_status); }; }; then
10337   ac_lo=$ac_mid; break
10338 else
10339   echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 ac_hi=`expr '(' $ac_mid ')' - 1`
10343                        if test $ac_mid -le $ac_hi; then
10344                          ac_lo= ac_hi=
10345                          break
10346                        fi
10347                        ac_mid=`expr 2 '*' $ac_mid`
10348 fi
10349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10350   done
10351 else
10352   echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 ac_lo= ac_hi=
10356 fi
10357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10358 fi
10359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10360 # Binary search between lo and hi bounds.
10361 while test "x$ac_lo" != "x$ac_hi"; do
10362   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10363   cat >conftest.$ac_ext <<_ACEOF
10364 /* confdefs.h.  */
10365 _ACEOF
10366 cat confdefs.h >>conftest.$ac_ext
10367 cat >>conftest.$ac_ext <<_ACEOF
10368 /* end confdefs.h.  */
10369 #include <stddef.h>
10370 int
10371 main ()
10372 {
10373 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10374 test_array [0] = 0
10375
10376   ;
10377   return 0;
10378 }
10379 _ACEOF
10380 rm -f conftest.$ac_objext
10381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10382   (eval $ac_compile) 2>conftest.er1
10383   ac_status=$?
10384   grep -v '^ *+' conftest.er1 >conftest.err
10385   rm -f conftest.er1
10386   cat conftest.err >&5
10387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388   (exit $ac_status); } &&
10389          { ac_try='test -z "$ac_c_werror_flag"
10390                          || test ! -s conftest.err'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; } &&
10396          { ac_try='test -s conftest.$ac_objext'
10397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10398   (eval $ac_try) 2>&5
10399   ac_status=$?
10400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401   (exit $ac_status); }; }; then
10402   ac_hi=$ac_mid
10403 else
10404   echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_lo=`expr '(' $ac_mid ')' + 1`
10408 fi
10409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10410 done
10411 case $ac_lo in
10412 ?*) fits_in_uint=$ac_lo;;
10413 '') result=? ;;
10414 esac
10415 else
10416   if test "$cross_compiling" = yes; then
10417   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10418 See \`config.log' for more details." >&5
10419 echo "$as_me: error: cannot run test program while cross compiling
10420 See \`config.log' for more details." >&2;}
10421    { (exit 1); exit 1; }; }
10422 else
10423   cat >conftest.$ac_ext <<_ACEOF
10424 /* confdefs.h.  */
10425 _ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h.  */
10429 #include <stddef.h>
10430 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10431 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10432 #include <stdio.h>
10433 #include <stdlib.h>
10434 int
10435 main ()
10436 {
10437
10438   FILE *f = fopen ("conftest.val", "w");
10439   if (! f)
10440     exit (1);
10441   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10442     {
10443       long i = longval ();
10444       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10445         exit (1);
10446       fprintf (f, "%ld\n", i);
10447     }
10448   else
10449     {
10450       unsigned long i = ulongval ();
10451       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10452         exit (1);
10453       fprintf (f, "%lu\n", i);
10454     }
10455   exit (ferror (f) || fclose (f) != 0);
10456
10457   ;
10458   return 0;
10459 }
10460 _ACEOF
10461 rm -f conftest$ac_exeext
10462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10463   (eval $ac_link) 2>&5
10464   ac_status=$?
10465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10468   (eval $ac_try) 2>&5
10469   ac_status=$?
10470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10471   (exit $ac_status); }; }; then
10472   fits_in_uint=`cat conftest.val`
10473 else
10474   echo "$as_me: program exited with status $ac_status" >&5
10475 echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478 ( exit $ac_status )
10479 result=?
10480 fi
10481 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10482 fi
10483 fi
10484 rm -f conftest.val
10485     if test "$fits_in_uint" = 1; then
10486                   cat >conftest.$ac_ext <<_ACEOF
10487 /* confdefs.h.  */
10488 _ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h.  */
10492 #include <stddef.h>
10493         extern size_t foo;
10494         extern unsigned long foo;
10495
10496 int
10497 main ()
10498 {
10499
10500   ;
10501   return 0;
10502 }
10503 _ACEOF
10504 rm -f conftest.$ac_objext
10505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10506   (eval $ac_compile) 2>conftest.er1
10507   ac_status=$?
10508   grep -v '^ *+' conftest.er1 >conftest.err
10509   rm -f conftest.er1
10510   cat conftest.err >&5
10511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512   (exit $ac_status); } &&
10513          { ac_try='test -z "$ac_c_werror_flag"
10514                          || test ! -s conftest.err'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; } &&
10520          { ac_try='test -s conftest.$ac_objext'
10521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10522   (eval $ac_try) 2>&5
10523   ac_status=$?
10524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525   (exit $ac_status); }; }; then
10526   fits_in_uint=0
10527 else
10528   echo "$as_me: failed program was:" >&5
10529 sed 's/^/| /' conftest.$ac_ext >&5
10530
10531 fi
10532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10533     fi
10534     if test -z "$result"; then
10535       if test "$fits_in_uint" = 1; then
10536         result="$res_hi$res_lo"U
10537       else
10538         result="$res_hi$res_lo"UL
10539       fi
10540     else
10541             result='~(size_t)0'
10542     fi
10543   fi
10544   echo "$as_me:$LINENO: result: $result" >&5
10545 echo "${ECHO_T}$result" >&6
10546   if test "$result" != yes; then
10547
10548 cat >>confdefs.h <<_ACEOF
10549 #define SIZE_MAX $result
10550 _ACEOF
10551
10552   fi
10553
10554
10555
10556
10557
10558 for ac_header in stdint.h
10559 do
10560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562   echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10565   echo $ECHO_N "(cached) $ECHO_C" >&6
10566 fi
10567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10569 else
10570   # Is the header compilable?
10571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 /* confdefs.h.  */
10575 _ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h.  */
10579 $ac_includes_default
10580 #include <$ac_header>
10581 _ACEOF
10582 rm -f conftest.$ac_objext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584   (eval $ac_compile) 2>conftest.er1
10585   ac_status=$?
10586   grep -v '^ *+' conftest.er1 >conftest.err
10587   rm -f conftest.er1
10588   cat conftest.err >&5
10589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590   (exit $ac_status); } &&
10591          { ac_try='test -z "$ac_c_werror_flag"
10592                          || test ! -s conftest.err'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; } &&
10598          { ac_try='test -s conftest.$ac_objext'
10599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600   (eval $ac_try) 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   ac_header_compiler=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609 ac_header_compiler=no
10610 fi
10611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10613 echo "${ECHO_T}$ac_header_compiler" >&6
10614
10615 # Is the header present?
10616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624 #include <$ac_header>
10625 _ACEOF
10626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10627   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10628   ac_status=$?
10629   grep -v '^ *+' conftest.er1 >conftest.err
10630   rm -f conftest.er1
10631   cat conftest.err >&5
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); } >/dev/null; then
10634   if test -s conftest.err; then
10635     ac_cpp_err=$ac_c_preproc_warn_flag
10636     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10637   else
10638     ac_cpp_err=
10639   fi
10640 else
10641   ac_cpp_err=yes
10642 fi
10643 if test -z "$ac_cpp_err"; then
10644   ac_header_preproc=yes
10645 else
10646   echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649   ac_header_preproc=no
10650 fi
10651 rm -f conftest.err conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6
10654
10655 # So?  What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10657   yes:no: )
10658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662     ac_header_preproc=yes
10663     ;;
10664   no:yes:* )
10665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10677     (
10678       cat <<\_ASBOX
10679 ## ------------------------------------------ ##
10680 ## Report this to the AC_PACKAGE_NAME lists.  ##
10681 ## ------------------------------------------ ##
10682 _ASBOX
10683     ) |
10684       sed "s/^/$as_me: WARNING:     /" >&2
10685     ;;
10686 esac
10687 echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10690   echo $ECHO_N "(cached) $ECHO_C" >&6
10691 else
10692   eval "$as_ac_Header=\$ac_header_preproc"
10693 fi
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10696
10697 fi
10698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699   cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10701 _ACEOF
10702
10703 fi
10704
10705 done
10706
10707
10708
10709
10710
10711
10712
10713
10714   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10715 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10716 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   cat >conftest.$ac_ext <<_ACEOF
10720 /* confdefs.h.  */
10721 _ACEOF
10722 cat confdefs.h >>conftest.$ac_ext
10723 cat >>conftest.$ac_ext <<_ACEOF
10724 /* end confdefs.h.  */
10725 $ac_includes_default
10726 int
10727 main ()
10728 {
10729 if ((ptrdiff_t *) 0)
10730   return 0;
10731 if (sizeof (ptrdiff_t))
10732   return 0;
10733   ;
10734   return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739   (eval $ac_compile) 2>conftest.er1
10740   ac_status=$?
10741   grep -v '^ *+' conftest.er1 >conftest.err
10742   rm -f conftest.er1
10743   cat conftest.err >&5
10744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } &&
10746          { ac_try='test -z "$ac_c_werror_flag"
10747                          || test ! -s conftest.err'
10748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749   (eval $ac_try) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; } &&
10753          { ac_try='test -s conftest.$ac_objext'
10754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755   (eval $ac_try) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); }; }; then
10759   ac_cv_type_ptrdiff_t=yes
10760 else
10761   echo "$as_me: failed program was:" >&5
10762 sed 's/^/| /' conftest.$ac_ext >&5
10763
10764 ac_cv_type_ptrdiff_t=no
10765 fi
10766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10767 fi
10768 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10769 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10770 if test $ac_cv_type_ptrdiff_t = yes; then
10771   :
10772 else
10773
10774 cat >>confdefs.h <<\_ACEOF
10775 #define ptrdiff_t long
10776 _ACEOF
10777
10778
10779 fi
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10792 stdlib.h string.h unistd.h sys/param.h
10793 do
10794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10796   echo "$as_me:$LINENO: checking for $ac_header" >&5
10797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10799   echo $ECHO_N "(cached) $ECHO_C" >&6
10800 fi
10801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10802 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10803 else
10804   # Is the header compilable?
10805 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10807 cat >conftest.$ac_ext <<_ACEOF
10808 /* confdefs.h.  */
10809 _ACEOF
10810 cat confdefs.h >>conftest.$ac_ext
10811 cat >>conftest.$ac_ext <<_ACEOF
10812 /* end confdefs.h.  */
10813 $ac_includes_default
10814 #include <$ac_header>
10815 _ACEOF
10816 rm -f conftest.$ac_objext
10817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818   (eval $ac_compile) 2>conftest.er1
10819   ac_status=$?
10820   grep -v '^ *+' conftest.er1 >conftest.err
10821   rm -f conftest.er1
10822   cat conftest.err >&5
10823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824   (exit $ac_status); } &&
10825          { ac_try='test -z "$ac_c_werror_flag"
10826                          || test ! -s conftest.err'
10827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828   (eval $ac_try) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; } &&
10832          { ac_try='test -s conftest.$ac_objext'
10833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10834   (eval $ac_try) 2>&5
10835   ac_status=$?
10836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837   (exit $ac_status); }; }; then
10838   ac_header_compiler=yes
10839 else
10840   echo "$as_me: failed program was:" >&5
10841 sed 's/^/| /' conftest.$ac_ext >&5
10842
10843 ac_header_compiler=no
10844 fi
10845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10846 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10847 echo "${ECHO_T}$ac_header_compiler" >&6
10848
10849 # Is the header present?
10850 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h.  */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h.  */
10858 #include <$ac_header>
10859 _ACEOF
10860 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10861   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10862   ac_status=$?
10863   grep -v '^ *+' conftest.er1 >conftest.err
10864   rm -f conftest.er1
10865   cat conftest.err >&5
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } >/dev/null; then
10868   if test -s conftest.err; then
10869     ac_cpp_err=$ac_c_preproc_warn_flag
10870     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10871   else
10872     ac_cpp_err=
10873   fi
10874 else
10875   ac_cpp_err=yes
10876 fi
10877 if test -z "$ac_cpp_err"; then
10878   ac_header_preproc=yes
10879 else
10880   echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883   ac_header_preproc=no
10884 fi
10885 rm -f conftest.err conftest.$ac_ext
10886 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10887 echo "${ECHO_T}$ac_header_preproc" >&6
10888
10889 # So?  What about this header?
10890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10891   yes:no: )
10892     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10894     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10896     ac_header_preproc=yes
10897     ;;
10898   no:yes:* )
10899     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10901     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10902 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10903     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10905     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10906 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10907     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10909     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10911     (
10912       cat <<\_ASBOX
10913 ## ------------------------------------------ ##
10914 ## Report this to the AC_PACKAGE_NAME lists.  ##
10915 ## ------------------------------------------ ##
10916 _ASBOX
10917     ) |
10918       sed "s/^/$as_me: WARNING:     /" >&2
10919     ;;
10920 esac
10921 echo "$as_me:$LINENO: checking for $ac_header" >&5
10922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10924   echo $ECHO_N "(cached) $ECHO_C" >&6
10925 else
10926   eval "$as_ac_Header=\$ac_header_preproc"
10927 fi
10928 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10929 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10930
10931 fi
10932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933   cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10935 _ACEOF
10936
10937 fi
10938
10939 done
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10965 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10966 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10967 __fsetlocking
10968 do
10969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10970 echo "$as_me:$LINENO: checking for $ac_func" >&5
10971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10972 if eval "test \"\${$as_ac_var+set}\" = set"; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   cat >conftest.$ac_ext <<_ACEOF
10976 /* confdefs.h.  */
10977 _ACEOF
10978 cat confdefs.h >>conftest.$ac_ext
10979 cat >>conftest.$ac_ext <<_ACEOF
10980 /* end confdefs.h.  */
10981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10982    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10983 #define $ac_func innocuous_$ac_func
10984
10985 /* System header to define __stub macros and hopefully few prototypes,
10986     which can conflict with char $ac_func (); below.
10987     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10988     <limits.h> exists even on freestanding compilers.  */
10989
10990 #ifdef __STDC__
10991 # include <limits.h>
10992 #else
10993 # include <assert.h>
10994 #endif
10995
10996 #undef $ac_func
10997
10998 /* Override any gcc2 internal prototype to avoid an error.  */
10999 #ifdef __cplusplus
11000 extern "C"
11001 {
11002 #endif
11003 /* We use char because int might match the return type of a gcc2
11004    builtin and then its argument prototype would still apply.  */
11005 char $ac_func ();
11006 /* The GNU C library defines this for functions which it implements
11007     to always fail with ENOSYS.  Some functions are actually named
11008     something starting with __ and the normal name is an alias.  */
11009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11010 choke me
11011 #else
11012 char (*f) () = $ac_func;
11013 #endif
11014 #ifdef __cplusplus
11015 }
11016 #endif
11017
11018 int
11019 main ()
11020 {
11021 return f != $ac_func;
11022   ;
11023   return 0;
11024 }
11025 _ACEOF
11026 rm -f conftest.$ac_objext conftest$ac_exeext
11027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11028   (eval $ac_link) 2>conftest.er1
11029   ac_status=$?
11030   grep -v '^ *+' conftest.er1 >conftest.err
11031   rm -f conftest.er1
11032   cat conftest.err >&5
11033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034   (exit $ac_status); } &&
11035          { ac_try='test -z "$ac_c_werror_flag"
11036                          || test ! -s conftest.err'
11037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038   (eval $ac_try) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; } &&
11042          { ac_try='test -s conftest$ac_exeext'
11043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11044   (eval $ac_try) 2>&5
11045   ac_status=$?
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); }; }; then
11048   eval "$as_ac_var=yes"
11049 else
11050   echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11052
11053 eval "$as_ac_var=no"
11054 fi
11055 rm -f conftest.err conftest.$ac_objext \
11056       conftest$ac_exeext conftest.$ac_ext
11057 fi
11058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11060 if test `eval echo '${'$as_ac_var'}'` = yes; then
11061   cat >>confdefs.h <<_ACEOF
11062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11063 _ACEOF
11064
11065 fi
11066 done
11067
11068
11069
11070   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11071 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11072 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11073   echo $ECHO_N "(cached) $ECHO_C" >&6
11074 else
11075   cat >conftest.$ac_ext <<_ACEOF
11076 /* confdefs.h.  */
11077 _ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h.  */
11081 #include <stdio.h>
11082 int
11083 main ()
11084 {
11085
11086 #ifndef _snprintf
11087   char *p = (char *) _snprintf;
11088 #endif
11089
11090   ;
11091   return 0;
11092 }
11093 _ACEOF
11094 rm -f conftest.$ac_objext
11095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11096   (eval $ac_compile) 2>conftest.er1
11097   ac_status=$?
11098   grep -v '^ *+' conftest.er1 >conftest.err
11099   rm -f conftest.er1
11100   cat conftest.err >&5
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); } &&
11103          { ac_try='test -z "$ac_c_werror_flag"
11104                          || test ! -s conftest.err'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; } &&
11110          { ac_try='test -s conftest.$ac_objext'
11111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11112   (eval $ac_try) 2>&5
11113   ac_status=$?
11114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115   (exit $ac_status); }; }; then
11116   ac_cv_have_decl__snprintf=yes
11117 else
11118   echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ac_cv_have_decl__snprintf=no
11122 fi
11123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11124 fi
11125 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11126 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11127   if test $ac_cv_have_decl__snprintf = yes; then
11128     gt_value=1
11129   else
11130     gt_value=0
11131   fi
11132
11133 cat >>confdefs.h <<_ACEOF
11134 #define HAVE_DECL__SNPRINTF $gt_value
11135 _ACEOF
11136
11137
11138
11139   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11140 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11141 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11142   echo $ECHO_N "(cached) $ECHO_C" >&6
11143 else
11144   cat >conftest.$ac_ext <<_ACEOF
11145 /* confdefs.h.  */
11146 _ACEOF
11147 cat confdefs.h >>conftest.$ac_ext
11148 cat >>conftest.$ac_ext <<_ACEOF
11149 /* end confdefs.h.  */
11150 #include <stdio.h>
11151 int
11152 main ()
11153 {
11154
11155 #ifndef _snwprintf
11156   char *p = (char *) _snwprintf;
11157 #endif
11158
11159   ;
11160   return 0;
11161 }
11162 _ACEOF
11163 rm -f conftest.$ac_objext
11164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11165   (eval $ac_compile) 2>conftest.er1
11166   ac_status=$?
11167   grep -v '^ *+' conftest.er1 >conftest.err
11168   rm -f conftest.er1
11169   cat conftest.err >&5
11170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171   (exit $ac_status); } &&
11172          { ac_try='test -z "$ac_c_werror_flag"
11173                          || test ! -s conftest.err'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; } &&
11179          { ac_try='test -s conftest.$ac_objext'
11180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11181   (eval $ac_try) 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); }; }; then
11185   ac_cv_have_decl__snwprintf=yes
11186 else
11187   echo "$as_me: failed program was:" >&5
11188 sed 's/^/| /' conftest.$ac_ext >&5
11189
11190 ac_cv_have_decl__snwprintf=no
11191 fi
11192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11193 fi
11194 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11195 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11196   if test $ac_cv_have_decl__snwprintf = yes; then
11197     gt_value=1
11198   else
11199     gt_value=0
11200   fi
11201
11202 cat >>confdefs.h <<_ACEOF
11203 #define HAVE_DECL__SNWPRINTF $gt_value
11204 _ACEOF
11205
11206
11207
11208
11209   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11210 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11211 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11212   echo $ECHO_N "(cached) $ECHO_C" >&6
11213 else
11214   cat >conftest.$ac_ext <<_ACEOF
11215 /* confdefs.h.  */
11216 _ACEOF
11217 cat confdefs.h >>conftest.$ac_ext
11218 cat >>conftest.$ac_ext <<_ACEOF
11219 /* end confdefs.h.  */
11220 #include <stdio.h>
11221 int
11222 main ()
11223 {
11224
11225 #ifndef feof_unlocked
11226   char *p = (char *) feof_unlocked;
11227 #endif
11228
11229   ;
11230   return 0;
11231 }
11232 _ACEOF
11233 rm -f conftest.$ac_objext
11234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11235   (eval $ac_compile) 2>conftest.er1
11236   ac_status=$?
11237   grep -v '^ *+' conftest.er1 >conftest.err
11238   rm -f conftest.er1
11239   cat conftest.err >&5
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); } &&
11242          { ac_try='test -z "$ac_c_werror_flag"
11243                          || test ! -s conftest.err'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; } &&
11249          { ac_try='test -s conftest.$ac_objext'
11250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11251   (eval $ac_try) 2>&5
11252   ac_status=$?
11253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254   (exit $ac_status); }; }; then
11255   ac_cv_have_decl_feof_unlocked=yes
11256 else
11257   echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 ac_cv_have_decl_feof_unlocked=no
11261 fi
11262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11263 fi
11264 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11265 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11266   if test $ac_cv_have_decl_feof_unlocked = yes; then
11267     gt_value=1
11268   else
11269     gt_value=0
11270   fi
11271
11272 cat >>confdefs.h <<_ACEOF
11273 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11274 _ACEOF
11275
11276
11277
11278   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11279 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11280 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11281   echo $ECHO_N "(cached) $ECHO_C" >&6
11282 else
11283   cat >conftest.$ac_ext <<_ACEOF
11284 /* confdefs.h.  */
11285 _ACEOF
11286 cat confdefs.h >>conftest.$ac_ext
11287 cat >>conftest.$ac_ext <<_ACEOF
11288 /* end confdefs.h.  */
11289 #include <stdio.h>
11290 int
11291 main ()
11292 {
11293
11294 #ifndef fgets_unlocked
11295   char *p = (char *) fgets_unlocked;
11296 #endif
11297
11298   ;
11299   return 0;
11300 }
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304   (eval $ac_compile) 2>conftest.er1
11305   ac_status=$?
11306   grep -v '^ *+' conftest.er1 >conftest.err
11307   rm -f conftest.er1
11308   cat conftest.err >&5
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); } &&
11311          { ac_try='test -z "$ac_c_werror_flag"
11312                          || test ! -s conftest.err'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; } &&
11318          { ac_try='test -s conftest.$ac_objext'
11319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320   (eval $ac_try) 2>&5
11321   ac_status=$?
11322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323   (exit $ac_status); }; }; then
11324   ac_cv_have_decl_fgets_unlocked=yes
11325 else
11326   echo "$as_me: failed program was:" >&5
11327 sed 's/^/| /' conftest.$ac_ext >&5
11328
11329 ac_cv_have_decl_fgets_unlocked=no
11330 fi
11331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11332 fi
11333 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11334 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11335   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11336     gt_value=1
11337   else
11338     gt_value=0
11339   fi
11340
11341 cat >>confdefs.h <<_ACEOF
11342 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11343 _ACEOF
11344
11345
11346
11347   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11348 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11349 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11350   echo $ECHO_N "(cached) $ECHO_C" >&6
11351 else
11352   cat >conftest.$ac_ext <<_ACEOF
11353 /* confdefs.h.  */
11354 _ACEOF
11355 cat confdefs.h >>conftest.$ac_ext
11356 cat >>conftest.$ac_ext <<_ACEOF
11357 /* end confdefs.h.  */
11358 #include <stdio.h>
11359 int
11360 main ()
11361 {
11362
11363 #ifndef getc_unlocked
11364   char *p = (char *) getc_unlocked;
11365 #endif
11366
11367   ;
11368   return 0;
11369 }
11370 _ACEOF
11371 rm -f conftest.$ac_objext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11373   (eval $ac_compile) 2>conftest.er1
11374   ac_status=$?
11375   grep -v '^ *+' conftest.er1 >conftest.err
11376   rm -f conftest.er1
11377   cat conftest.err >&5
11378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379   (exit $ac_status); } &&
11380          { ac_try='test -z "$ac_c_werror_flag"
11381                          || test ! -s conftest.err'
11382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383   (eval $ac_try) 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); }; } &&
11387          { ac_try='test -s conftest.$ac_objext'
11388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389   (eval $ac_try) 2>&5
11390   ac_status=$?
11391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392   (exit $ac_status); }; }; then
11393   ac_cv_have_decl_getc_unlocked=yes
11394 else
11395   echo "$as_me: failed program was:" >&5
11396 sed 's/^/| /' conftest.$ac_ext >&5
11397
11398 ac_cv_have_decl_getc_unlocked=no
11399 fi
11400 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11401 fi
11402 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11403 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11404   if test $ac_cv_have_decl_getc_unlocked = yes; then
11405     gt_value=1
11406   else
11407     gt_value=0
11408   fi
11409
11410 cat >>confdefs.h <<_ACEOF
11411 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11412 _ACEOF
11413
11414
11415
11416   case $gt_cv_func_printf_posix in
11417     *yes) HAVE_POSIX_PRINTF=1 ;;
11418     *) HAVE_POSIX_PRINTF=0 ;;
11419   esac
11420
11421   if test "$ac_cv_func_asprintf" = yes; then
11422     HAVE_ASPRINTF=1
11423   else
11424     HAVE_ASPRINTF=0
11425   fi
11426
11427   if test "$ac_cv_func_snprintf" = yes; then
11428     HAVE_SNPRINTF=1
11429   else
11430     HAVE_SNPRINTF=0
11431   fi
11432
11433   if test "$ac_cv_func_wprintf" = yes; then
11434     HAVE_WPRINTF=1
11435   else
11436     HAVE_WPRINTF=0
11437   fi
11438
11439
11440
11441
11442
11443
11444
11445           am_save_CPPFLAGS="$CPPFLAGS"
11446
11447   for element in $INCICONV; do
11448     haveit=
11449     for x in $CPPFLAGS; do
11450
11451   acl_save_prefix="$prefix"
11452   prefix="$acl_final_prefix"
11453   acl_save_exec_prefix="$exec_prefix"
11454   exec_prefix="$acl_final_exec_prefix"
11455   eval x=\"$x\"
11456   exec_prefix="$acl_save_exec_prefix"
11457   prefix="$acl_save_prefix"
11458
11459       if test "X$x" = "X$element"; then
11460         haveit=yes
11461         break
11462       fi
11463     done
11464     if test -z "$haveit"; then
11465       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11466     fi
11467   done
11468
11469
11470   echo "$as_me:$LINENO: checking for iconv" >&5
11471 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11472 if test "${am_cv_func_iconv+set}" = set; then
11473   echo $ECHO_N "(cached) $ECHO_C" >&6
11474 else
11475
11476     am_cv_func_iconv="no, consider installing GNU libiconv"
11477     am_cv_lib_iconv=no
11478     cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h.  */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h.  */
11484 #include <stdlib.h>
11485 #include <iconv.h>
11486 int
11487 main ()
11488 {
11489 iconv_t cd = iconv_open("","");
11490        iconv(cd,NULL,NULL,NULL,NULL);
11491        iconv_close(cd);
11492   ;
11493   return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498   (eval $ac_link) 2>conftest.er1
11499   ac_status=$?
11500   grep -v '^ *+' conftest.er1 >conftest.err
11501   rm -f conftest.er1
11502   cat conftest.err >&5
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); } &&
11505          { ac_try='test -z "$ac_c_werror_flag"
11506                          || test ! -s conftest.err'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; } &&
11512          { ac_try='test -s conftest$ac_exeext'
11513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514   (eval $ac_try) 2>&5
11515   ac_status=$?
11516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517   (exit $ac_status); }; }; then
11518   am_cv_func_iconv=yes
11519 else
11520   echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11522
11523 fi
11524 rm -f conftest.err conftest.$ac_objext \
11525       conftest$ac_exeext conftest.$ac_ext
11526     if test "$am_cv_func_iconv" != yes; then
11527       am_save_LIBS="$LIBS"
11528       LIBS="$LIBS $LIBICONV"
11529       cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h.  */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h.  */
11535 #include <stdlib.h>
11536 #include <iconv.h>
11537 int
11538 main ()
11539 {
11540 iconv_t cd = iconv_open("","");
11541          iconv(cd,NULL,NULL,NULL,NULL);
11542          iconv_close(cd);
11543   ;
11544   return 0;
11545 }
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11549   (eval $ac_link) 2>conftest.er1
11550   ac_status=$?
11551   grep -v '^ *+' conftest.er1 >conftest.err
11552   rm -f conftest.er1
11553   cat conftest.err >&5
11554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555   (exit $ac_status); } &&
11556          { ac_try='test -z "$ac_c_werror_flag"
11557                          || test ! -s conftest.err'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; } &&
11563          { ac_try='test -s conftest$ac_exeext'
11564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11565   (eval $ac_try) 2>&5
11566   ac_status=$?
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); }; }; then
11569   am_cv_lib_iconv=yes
11570         am_cv_func_iconv=yes
11571 else
11572   echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11574
11575 fi
11576 rm -f conftest.err conftest.$ac_objext \
11577       conftest$ac_exeext conftest.$ac_ext
11578       LIBS="$am_save_LIBS"
11579     fi
11580
11581 fi
11582 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11583 echo "${ECHO_T}$am_cv_func_iconv" >&6
11584   if test "$am_cv_func_iconv" = yes; then
11585
11586 cat >>confdefs.h <<\_ACEOF
11587 #define HAVE_ICONV 1
11588 _ACEOF
11589
11590   fi
11591   if test "$am_cv_lib_iconv" = yes; then
11592     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11593 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11594     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11595 echo "${ECHO_T}$LIBICONV" >&6
11596   else
11597             CPPFLAGS="$am_save_CPPFLAGS"
11598     LIBICONV=
11599     LTLIBICONV=
11600   fi
11601
11602
11603
11604   if test "$am_cv_func_iconv" = yes; then
11605     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11606 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11607     if test "${am_cv_proto_iconv+set}" = set; then
11608   echo $ECHO_N "(cached) $ECHO_C" >&6
11609 else
11610
11611       cat >conftest.$ac_ext <<_ACEOF
11612 /* confdefs.h.  */
11613 _ACEOF
11614 cat confdefs.h >>conftest.$ac_ext
11615 cat >>conftest.$ac_ext <<_ACEOF
11616 /* end confdefs.h.  */
11617
11618 #include <stdlib.h>
11619 #include <iconv.h>
11620 extern
11621 #ifdef __cplusplus
11622 "C"
11623 #endif
11624 #if defined(__STDC__) || defined(__cplusplus)
11625 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11626 #else
11627 size_t iconv();
11628 #endif
11629
11630 int
11631 main ()
11632 {
11633
11634   ;
11635   return 0;
11636 }
11637 _ACEOF
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640   (eval $ac_compile) 2>conftest.er1
11641   ac_status=$?
11642   grep -v '^ *+' conftest.er1 >conftest.err
11643   rm -f conftest.er1
11644   cat conftest.err >&5
11645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646   (exit $ac_status); } &&
11647          { ac_try='test -z "$ac_c_werror_flag"
11648                          || test ! -s conftest.err'
11649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650   (eval $ac_try) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; } &&
11654          { ac_try='test -s conftest.$ac_objext'
11655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656   (eval $ac_try) 2>&5
11657   ac_status=$?
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); }; }; then
11660   am_cv_proto_iconv_arg1=""
11661 else
11662   echo "$as_me: failed program was:" >&5
11663 sed 's/^/| /' conftest.$ac_ext >&5
11664
11665 am_cv_proto_iconv_arg1="const"
11666 fi
11667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668       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);"
11669 fi
11670
11671     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11672     echo "$as_me:$LINENO: result: ${ac_t:-
11673          }$am_cv_proto_iconv" >&5
11674 echo "${ECHO_T}${ac_t:-
11675          }$am_cv_proto_iconv" >&6
11676
11677 cat >>confdefs.h <<_ACEOF
11678 #define ICONV_CONST $am_cv_proto_iconv_arg1
11679 _ACEOF
11680
11681   fi
11682
11683
11684   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11685 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11686 if test "${am_cv_langinfo_codeset+set}" = set; then
11687   echo $ECHO_N "(cached) $ECHO_C" >&6
11688 else
11689   cat >conftest.$ac_ext <<_ACEOF
11690 /* confdefs.h.  */
11691 _ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h.  */
11695 #include <langinfo.h>
11696 int
11697 main ()
11698 {
11699 char* cs = nl_langinfo(CODESET);
11700   ;
11701   return 0;
11702 }
11703 _ACEOF
11704 rm -f conftest.$ac_objext conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706   (eval $ac_link) 2>conftest.er1
11707   ac_status=$?
11708   grep -v '^ *+' conftest.er1 >conftest.err
11709   rm -f conftest.er1
11710   cat conftest.err >&5
11711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712   (exit $ac_status); } &&
11713          { ac_try='test -z "$ac_c_werror_flag"
11714                          || test ! -s conftest.err'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; } &&
11720          { ac_try='test -s conftest$ac_exeext'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; }; then
11726   am_cv_langinfo_codeset=yes
11727 else
11728   echo "$as_me: failed program was:" >&5
11729 sed 's/^/| /' conftest.$ac_ext >&5
11730
11731 am_cv_langinfo_codeset=no
11732 fi
11733 rm -f conftest.err conftest.$ac_objext \
11734       conftest$ac_exeext conftest.$ac_ext
11735
11736 fi
11737 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11738 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11739   if test $am_cv_langinfo_codeset = yes; then
11740
11741 cat >>confdefs.h <<\_ACEOF
11742 #define HAVE_LANGINFO_CODESET 1
11743 _ACEOF
11744
11745   fi
11746
11747   if test $ac_cv_header_locale_h = yes; then
11748
11749   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11750 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11751 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11752   echo $ECHO_N "(cached) $ECHO_C" >&6
11753 else
11754   cat >conftest.$ac_ext <<_ACEOF
11755 /* confdefs.h.  */
11756 _ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h.  */
11760 #include <locale.h>
11761 int
11762 main ()
11763 {
11764 return LC_MESSAGES
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 rm -f conftest.$ac_objext conftest$ac_exeext
11770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11771   (eval $ac_link) 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } &&
11778          { ac_try='test -z "$ac_c_werror_flag"
11779                          || test ! -s conftest.err'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; } &&
11785          { ac_try='test -s conftest$ac_exeext'
11786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11787   (eval $ac_try) 2>&5
11788   ac_status=$?
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); }; }; then
11791   gt_cv_val_LC_MESSAGES=yes
11792 else
11793   echo "$as_me: failed program was:" >&5
11794 sed 's/^/| /' conftest.$ac_ext >&5
11795
11796 gt_cv_val_LC_MESSAGES=no
11797 fi
11798 rm -f conftest.err conftest.$ac_objext \
11799       conftest$ac_exeext conftest.$ac_ext
11800 fi
11801 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11802 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11803   if test $gt_cv_val_LC_MESSAGES = yes; then
11804
11805 cat >>confdefs.h <<\_ACEOF
11806 #define HAVE_LC_MESSAGES 1
11807 _ACEOF
11808
11809   fi
11810
11811   fi
11812
11813   if test -n "$INTL_MACOSX_LIBS"; then
11814     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11815   fi
11816
11817                       for ac_prog in bison
11818 do
11819   # Extract the first word of "$ac_prog", so it can be a program name with args.
11820 set dummy $ac_prog; ac_word=$2
11821 echo "$as_me:$LINENO: checking for $ac_word" >&5
11822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11823 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11824   echo $ECHO_N "(cached) $ECHO_C" >&6
11825 else
11826   if test -n "$INTLBISON"; then
11827   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11828 else
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11831 do
11832   IFS=$as_save_IFS
11833   test -z "$as_dir" && as_dir=.
11834   for ac_exec_ext in '' $ac_executable_extensions; do
11835   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836     ac_cv_prog_INTLBISON="$ac_prog"
11837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11838     break 2
11839   fi
11840 done
11841 done
11842
11843 fi
11844 fi
11845 INTLBISON=$ac_cv_prog_INTLBISON
11846 if test -n "$INTLBISON"; then
11847   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11848 echo "${ECHO_T}$INTLBISON" >&6
11849 else
11850   echo "$as_me:$LINENO: result: no" >&5
11851 echo "${ECHO_T}no" >&6
11852 fi
11853
11854   test -n "$INTLBISON" && break
11855 done
11856
11857   if test -z "$INTLBISON"; then
11858     ac_verc_fail=yes
11859   else
11860         echo "$as_me:$LINENO: checking version of bison" >&5
11861 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11862     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11863     case $ac_prog_version in
11864       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11865       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11866          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11867       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11868     esac
11869     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11870 echo "${ECHO_T}$ac_prog_version" >&6
11871   fi
11872   if test $ac_verc_fail = yes; then
11873     INTLBISON=:
11874   fi
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11892 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11893 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11894   echo $ECHO_N "(cached) $ECHO_C" >&6
11895 else
11896   gt_save_CPPFLAGS="$CPPFLAGS"
11897      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11898      gt_save_LIBS="$LIBS"
11899      LIBS="$LIBS -framework CoreFoundation"
11900      cat >conftest.$ac_ext <<_ACEOF
11901 /* confdefs.h.  */
11902 _ACEOF
11903 cat confdefs.h >>conftest.$ac_ext
11904 cat >>conftest.$ac_ext <<_ACEOF
11905 /* end confdefs.h.  */
11906 #include <CFPreferences.h>
11907 int
11908 main ()
11909 {
11910 CFPreferencesCopyAppValue(NULL, NULL)
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917   (eval $ac_link) 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag"
11925                          || test ! -s conftest.err'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; } &&
11931          { ac_try='test -s conftest$ac_exeext'
11932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933   (eval $ac_try) 2>&5
11934   ac_status=$?
11935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936   (exit $ac_status); }; }; then
11937   gt_cv_func_CFPreferencesCopyAppValue=yes
11938 else
11939   echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11941
11942 gt_cv_func_CFPreferencesCopyAppValue=no
11943 fi
11944 rm -f conftest.err conftest.$ac_objext \
11945       conftest$ac_exeext conftest.$ac_ext
11946      CPPFLAGS="$gt_save_CPPFLAGS"
11947      LIBS="$gt_save_LIBS"
11948 fi
11949 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11950 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11951   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11952
11953 cat >>confdefs.h <<\_ACEOF
11954 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11955 _ACEOF
11956
11957   fi
11958     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11959 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11960 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11961   echo $ECHO_N "(cached) $ECHO_C" >&6
11962 else
11963   gt_save_CPPFLAGS="$CPPFLAGS"
11964      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11965      gt_save_LIBS="$LIBS"
11966      LIBS="$LIBS -framework CoreFoundation"
11967      cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <CFLocale.h>
11974 int
11975 main ()
11976 {
11977 CFLocaleCopyCurrent();
11978   ;
11979   return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11984   (eval $ac_link) 2>conftest.er1
11985   ac_status=$?
11986   grep -v '^ *+' conftest.er1 >conftest.err
11987   rm -f conftest.er1
11988   cat conftest.err >&5
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -z "$ac_c_werror_flag"
11992                          || test ! -s conftest.err'
11993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994   (eval $ac_try) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); }; } &&
11998          { ac_try='test -s conftest$ac_exeext'
11999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000   (eval $ac_try) 2>&5
12001   ac_status=$?
12002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003   (exit $ac_status); }; }; then
12004   gt_cv_func_CFLocaleCopyCurrent=yes
12005 else
12006   echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12008
12009 gt_cv_func_CFLocaleCopyCurrent=no
12010 fi
12011 rm -f conftest.err conftest.$ac_objext \
12012       conftest$ac_exeext conftest.$ac_ext
12013      CPPFLAGS="$gt_save_CPPFLAGS"
12014      LIBS="$gt_save_LIBS"
12015 fi
12016 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12017 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
12018   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12019
12020 cat >>confdefs.h <<\_ACEOF
12021 #define HAVE_CFLOCALECOPYCURRENT 1
12022 _ACEOF
12023
12024   fi
12025   INTL_MACOSX_LIBS=
12026   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12027     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12028   fi
12029
12030
12031
12032
12033   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12034 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12035     # Check whether --enable-nls or --disable-nls was given.
12036 if test "${enable_nls+set}" = set; then
12037   enableval="$enable_nls"
12038   USE_NLS=$enableval
12039 else
12040   USE_NLS=yes
12041 fi;
12042   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12043 echo "${ECHO_T}$USE_NLS" >&6
12044
12045
12046
12047
12048     BUILD_INCLUDED_LIBINTL=no
12049     USE_INCLUDED_LIBINTL=no
12050
12051   LIBINTL=
12052   LTLIBINTL=
12053   POSUB=
12054
12055     if test "$USE_NLS" = "yes"; then
12056     gt_use_preinstalled_gnugettext=no
12057
12058       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12059 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12060
12061 # Check whether --with-included-gettext or --without-included-gettext was given.
12062 if test "${with_included_gettext+set}" = set; then
12063   withval="$with_included_gettext"
12064   nls_cv_force_use_gnu_gettext=$withval
12065 else
12066   nls_cv_force_use_gnu_gettext=no
12067 fi;
12068       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12069 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12070
12071       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12072       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12073
12074
12075
12076
12077
12078
12079         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12080 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12081 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12082   echo $ECHO_N "(cached) $ECHO_C" >&6
12083 else
12084   cat >conftest.$ac_ext <<_ACEOF
12085 /* confdefs.h.  */
12086 _ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h.  */
12090 #include <libintl.h>
12091 extern int _nl_msg_cat_cntr;
12092 extern int *_nl_domain_bindings;
12093 int
12094 main ()
12095 {
12096 bindtextdomain ("", "");
12097 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12098   ;
12099   return 0;
12100 }
12101 _ACEOF
12102 rm -f conftest.$ac_objext conftest$ac_exeext
12103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12104   (eval $ac_link) 2>conftest.er1
12105   ac_status=$?
12106   grep -v '^ *+' conftest.er1 >conftest.err
12107   rm -f conftest.er1
12108   cat conftest.err >&5
12109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110   (exit $ac_status); } &&
12111          { ac_try='test -z "$ac_c_werror_flag"
12112                          || test ! -s conftest.err'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; } &&
12118          { ac_try='test -s conftest$ac_exeext'
12119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12120   (eval $ac_try) 2>&5
12121   ac_status=$?
12122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123   (exit $ac_status); }; }; then
12124   gt_cv_func_gnugettext1_libc=yes
12125 else
12126   echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 gt_cv_func_gnugettext1_libc=no
12130 fi
12131 rm -f conftest.err conftest.$ac_objext \
12132       conftest$ac_exeext conftest.$ac_ext
12133 fi
12134 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12135 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12136
12137         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12138
12139
12140
12141     use_additional=yes
12142
12143   acl_save_prefix="$prefix"
12144   prefix="$acl_final_prefix"
12145   acl_save_exec_prefix="$exec_prefix"
12146   exec_prefix="$acl_final_exec_prefix"
12147
12148     eval additional_includedir=\"$includedir\"
12149     eval additional_libdir=\"$libdir\"
12150
12151   exec_prefix="$acl_save_exec_prefix"
12152   prefix="$acl_save_prefix"
12153
12154
12155 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12156 if test "${with_libintl_prefix+set}" = set; then
12157   withval="$with_libintl_prefix"
12158
12159     if test "X$withval" = "Xno"; then
12160       use_additional=no
12161     else
12162       if test "X$withval" = "X"; then
12163
12164   acl_save_prefix="$prefix"
12165   prefix="$acl_final_prefix"
12166   acl_save_exec_prefix="$exec_prefix"
12167   exec_prefix="$acl_final_exec_prefix"
12168
12169           eval additional_includedir=\"$includedir\"
12170           eval additional_libdir=\"$libdir\"
12171
12172   exec_prefix="$acl_save_exec_prefix"
12173   prefix="$acl_save_prefix"
12174
12175       else
12176         additional_includedir="$withval/include"
12177         additional_libdir="$withval/lib"
12178       fi
12179     fi
12180
12181 fi;
12182       LIBINTL=
12183   LTLIBINTL=
12184   INCINTL=
12185   rpathdirs=
12186   ltrpathdirs=
12187   names_already_handled=
12188   names_next_round='intl '
12189   while test -n "$names_next_round"; do
12190     names_this_round="$names_next_round"
12191     names_next_round=
12192     for name in $names_this_round; do
12193       already_handled=
12194       for n in $names_already_handled; do
12195         if test "$n" = "$name"; then
12196           already_handled=yes
12197           break
12198         fi
12199       done
12200       if test -z "$already_handled"; then
12201         names_already_handled="$names_already_handled $name"
12202                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12203         eval value=\"\$HAVE_LIB$uppername\"
12204         if test -n "$value"; then
12205           if test "$value" = yes; then
12206             eval value=\"\$LIB$uppername\"
12207             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12208             eval value=\"\$LTLIB$uppername\"
12209             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12210           else
12211                                     :
12212           fi
12213         else
12214                               found_dir=
12215           found_la=
12216           found_so=
12217           found_a=
12218           if test $use_additional = yes; then
12219             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12220               found_dir="$additional_libdir"
12221               found_so="$additional_libdir/lib$name.$shlibext"
12222               if test -f "$additional_libdir/lib$name.la"; then
12223                 found_la="$additional_libdir/lib$name.la"
12224               fi
12225             else
12226               if test -f "$additional_libdir/lib$name.$libext"; then
12227                 found_dir="$additional_libdir"
12228                 found_a="$additional_libdir/lib$name.$libext"
12229                 if test -f "$additional_libdir/lib$name.la"; then
12230                   found_la="$additional_libdir/lib$name.la"
12231                 fi
12232               fi
12233             fi
12234           fi
12235           if test "X$found_dir" = "X"; then
12236             for x in $LDFLAGS $LTLIBINTL; do
12237
12238   acl_save_prefix="$prefix"
12239   prefix="$acl_final_prefix"
12240   acl_save_exec_prefix="$exec_prefix"
12241   exec_prefix="$acl_final_exec_prefix"
12242   eval x=\"$x\"
12243   exec_prefix="$acl_save_exec_prefix"
12244   prefix="$acl_save_prefix"
12245
12246               case "$x" in
12247                 -L*)
12248                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12249                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12250                     found_dir="$dir"
12251                     found_so="$dir/lib$name.$shlibext"
12252                     if test -f "$dir/lib$name.la"; then
12253                       found_la="$dir/lib$name.la"
12254                     fi
12255                   else
12256                     if test -f "$dir/lib$name.$libext"; then
12257                       found_dir="$dir"
12258                       found_a="$dir/lib$name.$libext"
12259                       if test -f "$dir/lib$name.la"; then
12260                         found_la="$dir/lib$name.la"
12261                       fi
12262                     fi
12263                   fi
12264                   ;;
12265               esac
12266               if test "X$found_dir" != "X"; then
12267                 break
12268               fi
12269             done
12270           fi
12271           if test "X$found_dir" != "X"; then
12272                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12273             if test "X$found_so" != "X"; then
12274                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12275                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12276               else
12277                                                                                 haveit=
12278                 for x in $ltrpathdirs; do
12279                   if test "X$x" = "X$found_dir"; then
12280                     haveit=yes
12281                     break
12282                   fi
12283                 done
12284                 if test -z "$haveit"; then
12285                   ltrpathdirs="$ltrpathdirs $found_dir"
12286                 fi
12287                                 if test "$hardcode_direct" = yes; then
12288                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12289                 else
12290                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12291                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12292                                                             haveit=
12293                     for x in $rpathdirs; do
12294                       if test "X$x" = "X$found_dir"; then
12295                         haveit=yes
12296                         break
12297                       fi
12298                     done
12299                     if test -z "$haveit"; then
12300                       rpathdirs="$rpathdirs $found_dir"
12301                     fi
12302                   else
12303                                                                                 haveit=
12304                     for x in $LDFLAGS $LIBINTL; do
12305
12306   acl_save_prefix="$prefix"
12307   prefix="$acl_final_prefix"
12308   acl_save_exec_prefix="$exec_prefix"
12309   exec_prefix="$acl_final_exec_prefix"
12310   eval x=\"$x\"
12311   exec_prefix="$acl_save_exec_prefix"
12312   prefix="$acl_save_prefix"
12313
12314                       if test "X$x" = "X-L$found_dir"; then
12315                         haveit=yes
12316                         break
12317                       fi
12318                     done
12319                     if test -z "$haveit"; then
12320                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12321                     fi
12322                     if test "$hardcode_minus_L" != no; then
12323                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12324                     else
12325                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12326                     fi
12327                   fi
12328                 fi
12329               fi
12330             else
12331               if test "X$found_a" != "X"; then
12332                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12333               else
12334                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12335               fi
12336             fi
12337                         additional_includedir=
12338             case "$found_dir" in
12339               */lib | */lib/)
12340                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12341                 additional_includedir="$basedir/include"
12342                 ;;
12343             esac
12344             if test "X$additional_includedir" != "X"; then
12345                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12346                 haveit=
12347                 if test "X$additional_includedir" = "X/usr/local/include"; then
12348                   if test -n "$GCC"; then
12349                     case $host_os in
12350                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12351                     esac
12352                   fi
12353                 fi
12354                 if test -z "$haveit"; then
12355                   for x in $CPPFLAGS $INCINTL; do
12356
12357   acl_save_prefix="$prefix"
12358   prefix="$acl_final_prefix"
12359   acl_save_exec_prefix="$exec_prefix"
12360   exec_prefix="$acl_final_exec_prefix"
12361   eval x=\"$x\"
12362   exec_prefix="$acl_save_exec_prefix"
12363   prefix="$acl_save_prefix"
12364
12365                     if test "X$x" = "X-I$additional_includedir"; then
12366                       haveit=yes
12367                       break
12368                     fi
12369                   done
12370                   if test -z "$haveit"; then
12371                     if test -d "$additional_includedir"; then
12372                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12373                     fi
12374                   fi
12375                 fi
12376               fi
12377             fi
12378                         if test -n "$found_la"; then
12379                                                         save_libdir="$libdir"
12380               case "$found_la" in
12381                 */* | *\\*) . "$found_la" ;;
12382                 *) . "./$found_la" ;;
12383               esac
12384               libdir="$save_libdir"
12385                             for dep in $dependency_libs; do
12386                 case "$dep" in
12387                   -L*)
12388                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12389                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12390                       haveit=
12391                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12392                         if test -n "$GCC"; then
12393                           case $host_os in
12394                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12395                           esac
12396                         fi
12397                       fi
12398                       if test -z "$haveit"; then
12399                         haveit=
12400                         for x in $LDFLAGS $LIBINTL; do
12401
12402   acl_save_prefix="$prefix"
12403   prefix="$acl_final_prefix"
12404   acl_save_exec_prefix="$exec_prefix"
12405   exec_prefix="$acl_final_exec_prefix"
12406   eval x=\"$x\"
12407   exec_prefix="$acl_save_exec_prefix"
12408   prefix="$acl_save_prefix"
12409
12410                           if test "X$x" = "X-L$additional_libdir"; then
12411                             haveit=yes
12412                             break
12413                           fi
12414                         done
12415                         if test -z "$haveit"; then
12416                           if test -d "$additional_libdir"; then
12417                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12418                           fi
12419                         fi
12420                         haveit=
12421                         for x in $LDFLAGS $LTLIBINTL; do
12422
12423   acl_save_prefix="$prefix"
12424   prefix="$acl_final_prefix"
12425   acl_save_exec_prefix="$exec_prefix"
12426   exec_prefix="$acl_final_exec_prefix"
12427   eval x=\"$x\"
12428   exec_prefix="$acl_save_exec_prefix"
12429   prefix="$acl_save_prefix"
12430
12431                           if test "X$x" = "X-L$additional_libdir"; then
12432                             haveit=yes
12433                             break
12434                           fi
12435                         done
12436                         if test -z "$haveit"; then
12437                           if test -d "$additional_libdir"; then
12438                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12439                           fi
12440                         fi
12441                       fi
12442                     fi
12443                     ;;
12444                   -R*)
12445                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12446                     if test "$enable_rpath" != no; then
12447                                                                   haveit=
12448                       for x in $rpathdirs; do
12449                         if test "X$x" = "X$dir"; then
12450                           haveit=yes
12451                           break
12452                         fi
12453                       done
12454                       if test -z "$haveit"; then
12455                         rpathdirs="$rpathdirs $dir"
12456                       fi
12457                                                                   haveit=
12458                       for x in $ltrpathdirs; do
12459                         if test "X$x" = "X$dir"; then
12460                           haveit=yes
12461                           break
12462                         fi
12463                       done
12464                       if test -z "$haveit"; then
12465                         ltrpathdirs="$ltrpathdirs $dir"
12466                       fi
12467                     fi
12468                     ;;
12469                   -l*)
12470                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12471                     ;;
12472                   *.la)
12473                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12474                     ;;
12475                   *)
12476                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12477                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12478                     ;;
12479                 esac
12480               done
12481             fi
12482           else
12483                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12484             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12485           fi
12486         fi
12487       fi
12488     done
12489   done
12490   if test "X$rpathdirs" != "X"; then
12491     if test -n "$hardcode_libdir_separator"; then
12492                         alldirs=
12493       for found_dir in $rpathdirs; do
12494         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12495       done
12496             acl_save_libdir="$libdir"
12497       libdir="$alldirs"
12498       eval flag=\"$hardcode_libdir_flag_spec\"
12499       libdir="$acl_save_libdir"
12500       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12501     else
12502             for found_dir in $rpathdirs; do
12503         acl_save_libdir="$libdir"
12504         libdir="$found_dir"
12505         eval flag=\"$hardcode_libdir_flag_spec\"
12506         libdir="$acl_save_libdir"
12507         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12508       done
12509     fi
12510   fi
12511   if test "X$ltrpathdirs" != "X"; then
12512             for found_dir in $ltrpathdirs; do
12513       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12514     done
12515   fi
12516
12517           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12518 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12519 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12520   echo $ECHO_N "(cached) $ECHO_C" >&6
12521 else
12522   gt_save_CPPFLAGS="$CPPFLAGS"
12523             CPPFLAGS="$CPPFLAGS $INCINTL"
12524             gt_save_LIBS="$LIBS"
12525             LIBS="$LIBS $LIBINTL"
12526                         cat >conftest.$ac_ext <<_ACEOF
12527 /* confdefs.h.  */
12528 _ACEOF
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h.  */
12532 #include <libintl.h>
12533 extern int _nl_msg_cat_cntr;
12534 extern
12535 #ifdef __cplusplus
12536 "C"
12537 #endif
12538 const char *_nl_expand_alias (const char *);
12539 int
12540 main ()
12541 {
12542 bindtextdomain ("", "");
12543 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12544   ;
12545   return 0;
12546 }
12547 _ACEOF
12548 rm -f conftest.$ac_objext conftest$ac_exeext
12549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12550   (eval $ac_link) 2>conftest.er1
12551   ac_status=$?
12552   grep -v '^ *+' conftest.er1 >conftest.err
12553   rm -f conftest.er1
12554   cat conftest.err >&5
12555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556   (exit $ac_status); } &&
12557          { ac_try='test -z "$ac_c_werror_flag"
12558                          || test ! -s conftest.err'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; } &&
12564          { ac_try='test -s conftest$ac_exeext'
12565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12566   (eval $ac_try) 2>&5
12567   ac_status=$?
12568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569   (exit $ac_status); }; }; then
12570   gt_cv_func_gnugettext1_libintl=yes
12571 else
12572   echo "$as_me: failed program was:" >&5
12573 sed 's/^/| /' conftest.$ac_ext >&5
12574
12575 gt_cv_func_gnugettext1_libintl=no
12576 fi
12577 rm -f conftest.err conftest.$ac_objext \
12578       conftest$ac_exeext conftest.$ac_ext
12579                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12580               LIBS="$LIBS $LIBICONV"
12581               cat >conftest.$ac_ext <<_ACEOF
12582 /* confdefs.h.  */
12583 _ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h.  */
12587 #include <libintl.h>
12588 extern int _nl_msg_cat_cntr;
12589 extern
12590 #ifdef __cplusplus
12591 "C"
12592 #endif
12593 const char *_nl_expand_alias (const char *);
12594 int
12595 main ()
12596 {
12597 bindtextdomain ("", "");
12598 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12605   (eval $ac_link) 2>conftest.er1
12606   ac_status=$?
12607   grep -v '^ *+' conftest.er1 >conftest.err
12608   rm -f conftest.er1
12609   cat conftest.err >&5
12610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611   (exit $ac_status); } &&
12612          { ac_try='test -z "$ac_c_werror_flag"
12613                          || test ! -s conftest.err'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; } &&
12619          { ac_try='test -s conftest$ac_exeext'
12620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621   (eval $ac_try) 2>&5
12622   ac_status=$?
12623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624   (exit $ac_status); }; }; then
12625   LIBINTL="$LIBINTL $LIBICONV"
12626                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12627                 gt_cv_func_gnugettext1_libintl=yes
12628
12629 else
12630   echo "$as_me: failed program was:" >&5
12631 sed 's/^/| /' conftest.$ac_ext >&5
12632
12633 fi
12634 rm -f conftest.err conftest.$ac_objext \
12635       conftest$ac_exeext conftest.$ac_ext
12636             fi
12637             CPPFLAGS="$gt_save_CPPFLAGS"
12638             LIBS="$gt_save_LIBS"
12639 fi
12640 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12641 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12642         fi
12643
12644                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12645            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12646                 && test "$PACKAGE" != gettext-runtime \
12647                 && test "$PACKAGE" != gettext-tools; }; then
12648           gt_use_preinstalled_gnugettext=yes
12649         else
12650                     LIBINTL=
12651           LTLIBINTL=
12652           INCINTL=
12653         fi
12654
12655
12656         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12657                               nls_cv_use_gnu_gettext=yes
12658         fi
12659       fi
12660
12661       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12662                 BUILD_INCLUDED_LIBINTL=yes
12663         USE_INCLUDED_LIBINTL=yes
12664         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12665         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12666         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12667       fi
12668
12669       CATOBJEXT=
12670       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12671          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12672                 CATOBJEXT=.gmo
12673       fi
12674
12675
12676     if test -n "$INTL_MACOSX_LIBS"; then
12677       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12678          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12679                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12680         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12681       fi
12682     fi
12683
12684     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12685        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12686
12687 cat >>confdefs.h <<\_ACEOF
12688 #define ENABLE_NLS 1
12689 _ACEOF
12690
12691     else
12692       USE_NLS=no
12693     fi
12694   fi
12695
12696   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12697 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12698   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12699 echo "${ECHO_T}$USE_NLS" >&6
12700   if test "$USE_NLS" = "yes"; then
12701     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12702 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12703     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12704       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12705         gt_source="external libintl"
12706       else
12707         gt_source="libc"
12708       fi
12709     else
12710       gt_source="included intl directory"
12711     fi
12712     echo "$as_me:$LINENO: result: $gt_source" >&5
12713 echo "${ECHO_T}$gt_source" >&6
12714   fi
12715
12716   if test "$USE_NLS" = "yes"; then
12717
12718     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12719       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12720         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12721 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12722         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12723 echo "${ECHO_T}$LIBINTL" >&6
12724
12725   for element in $INCINTL; do
12726     haveit=
12727     for x in $CPPFLAGS; do
12728
12729   acl_save_prefix="$prefix"
12730   prefix="$acl_final_prefix"
12731   acl_save_exec_prefix="$exec_prefix"
12732   exec_prefix="$acl_final_exec_prefix"
12733   eval x=\"$x\"
12734   exec_prefix="$acl_save_exec_prefix"
12735   prefix="$acl_save_prefix"
12736
12737       if test "X$x" = "X$element"; then
12738         haveit=yes
12739         break
12740       fi
12741     done
12742     if test -z "$haveit"; then
12743       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12744     fi
12745   done
12746
12747       fi
12748
12749
12750 cat >>confdefs.h <<\_ACEOF
12751 #define HAVE_GETTEXT 1
12752 _ACEOF
12753
12754
12755 cat >>confdefs.h <<\_ACEOF
12756 #define HAVE_DCGETTEXT 1
12757 _ACEOF
12758
12759     fi
12760
12761         POSUB=po
12762   fi
12763
12764
12765             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12766       BUILD_INCLUDED_LIBINTL=yes
12767     fi
12768
12769
12770
12771
12772
12773         nls_cv_header_intl=
12774     nls_cv_header_libgt=
12775
12776         DATADIRNAME=share
12777
12778
12779         INSTOBJEXT=.mo
12780
12781
12782         GENCAT=gencat
12783
12784
12785         INTLOBJS=
12786     if test "$USE_INCLUDED_LIBINTL" = yes; then
12787       INTLOBJS="\$(GETTOBJS)"
12788     fi
12789
12790
12791         INTL_LIBTOOL_SUFFIX_PREFIX=
12792
12793
12794
12795     INTLLIBS="$LIBINTL"
12796
12797
12798
12799
12800
12801
12802 fi
12803
12804
12805 support_mysql=no
12806 support_sqlite=no
12807 support_sqlite3=no
12808 support_postgresql=no
12809 support_smartalloc=yes
12810 support_readline=yes
12811 support_conio=yes
12812 support_gnome=no
12813 support_bat=no
12814 support_wx_console=no
12815 support_tls=no
12816 support_crypto=no
12817 gnome_version=
12818 wx_version=
12819 support_static_tools=no
12820 support_static_fd=no
12821 support_static_sd=no
12822 support_static_dir=no
12823 support_static_cons=no
12824 support_python=no
12825 build_client_only=no
12826 build_dird=yes
12827 build_stored=yes
12828 cats=
12829 db_type=Internal
12830 DB_TYPE=bdb
12831
12832
12833 # -------------------------------------------
12834 # gnome (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-gnome or --disable-gnome was given.
12837 if test "${enable_gnome+set}" = set; then
12838   enableval="$enable_gnome"
12839   if test x$enableval = xyes; then
12840     support_gnome=yes
12841   fi
12842 fi;
12843
12844 GNOME_DIR=
12845 if test x$support_gnome = xyes; then
12846   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12847   pkg=$?
12848   if test $pkg = 0; then
12849      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12850      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12851      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12852      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12853
12854
12855
12856
12857      GNOME_DIR=src/gnome2-console
12858      gnome_version="Version 2.x"
12859   else
12860      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12861 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12862    { (exit 1); exit 1; }; }
12863   fi
12864 fi
12865
12866
12867 # -------------------------------------------
12868 # bat (default off)
12869 # -------------------------------------------
12870 # Check whether --enable-bat or --disable-bat was given.
12871 if test "${enable_bat+set}" = set; then
12872   enableval="$enable_bat"
12873   if test x$enableval = xyes; then
12874
12875 cat >>confdefs.h <<\_ACEOF
12876 #define HAVE_BAT 1
12877 _ACEOF
12878
12879     support_bat=yes
12880   fi
12881 fi;
12882
12883 BAT_DIR=
12884 if test x$support_bat = xyes; then
12885   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12886   pkg=$?
12887   if test $pkg = 0; then
12888      BAT_DIR=src/qt-console
12889   else
12890      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12891 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12892    { (exit 1); exit 1; }; }
12893   fi
12894 fi
12895
12896 #
12897 #  If bat is enabled, we need the qwt library
12898 got_qwt=no
12899 QWT_INC=
12900 QWT_LDFLAGS=
12901 if test x$support_bat = xyes; then
12902    echo "$as_me:$LINENO: checking for qwt support" >&5
12903 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12904
12905 # Check whether --with-qwt or --without-qwt was given.
12906 if test "${with_qwt+set}" = set; then
12907   withval="$with_qwt"
12908
12909         case "$with_qwt" in
12910         no)
12911           ;;
12912         yes|*)
12913           if test -f ${with_qwt}/include/qwt.h; then
12914              QWT_INC="${with_qwt}/include"
12915              QWT_LDFLAGS="-L${with_qwt}/lib"
12916           fi
12917           ;;
12918         esac
12919
12920
12921 fi;
12922 #
12923 # Search in standard places, or --with-qwt not specified
12924 #
12925    if test x$QWT_INC = x; then
12926       for root in /usr /usr/local; do
12927          for ver in qwt qwt5 qwt-qt4; do
12928             if test -f ${root}/include/${ver}/qwt.h; then
12929                QWT_INC="${root}/include/${ver}"
12930                if test -d ${root}/lib64/; then
12931                   QWT_LDFLAGS="-L${root}/lib64"
12932                else
12933                   QWT_LDFLAGS="-L${root}/lib"
12934                fi
12935                got_qwt=yes
12936                break;
12937             fi
12938          done
12939       done
12940    fi
12941    if test x$QWT_INC = x; then
12942       echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6
12944       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12945 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12946    { (exit 1); exit 1; }; }
12947       BAT_DIR=
12948       support_bat=no
12949    else
12950       echo "$as_me:$LINENO: result: yes" >&5
12951 echo "${ECHO_T}yes" >&6
12952    fi
12953 fi
12954
12955
12956
12957
12958
12959
12960 # -------------------------------------------
12961 # bwx-console (default off)
12962 # -------------------------------------------
12963 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12964 if test "${enable_bwx_console+set}" = set; then
12965   enableval="$enable_bwx_console"
12966   if test x$enableval = xyes; then
12967     support_wx_console=yes
12968   fi
12969 fi;
12970
12971 WX_DIR=
12972 if test x$support_wx_console = xyes; then
12973   abc=`$WXCONFIG $WXFLAGS --cppflags`
12974   pkg=$?
12975   if test $pkg = 0; then
12976      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12977      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12978      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12979
12980
12981
12982      WX_DIR=src/wx-console
12983   else
12984      echo " "
12985      echo "wx-config program not found. bwx-console disabled."
12986      echo " "
12987      support_wx_console=no
12988   fi
12989 fi
12990
12991
12992
12993 # -------------------------------------------
12994 # tray-monitor (default off)
12995 # -------------------------------------------
12996 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12997 if test "${enable_tray_monitor+set}" = set; then
12998   enableval="$enable_tray_monitor"
12999   if test x$enableval = xyes; then
13000     support_tray_monitor=yes
13001   fi
13002 fi;
13003
13004 TRAY_MONITOR_DIR=
13005 if test x$support_tray_monitor = xyes; then
13006   abc=`$PKGCONFIG --exists gtk+-2.0`
13007   pkg=$?
13008   if test $pkg = 0; then
13009      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13010      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13011
13012
13013      TRAY_MONITOR_DIR=src/tray-monitor
13014      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13015      pkg=$?
13016      if test $pkg = 0; then
13017
13018 cat >>confdefs.h <<\_ACEOF
13019 #define HAVE_GTK_2_4 1
13020 _ACEOF
13021
13022      fi
13023   fi
13024 fi
13025
13026
13027 # -------------------------------------------
13028 # smartalloc (default off)
13029 # -------------------------------------------
13030 # Check whether --enable-smartalloc or --disable-smartalloc was given.
13031 if test "${enable_smartalloc+set}" = set; then
13032   enableval="$enable_smartalloc"
13033   if test x$enableval = xno; then
13034     support_smartalloc=no
13035   fi
13036 fi;
13037
13038 if test x$support_smartalloc = xyes; then
13039
13040 cat >>confdefs.h <<\_ACEOF
13041 #define SMARTALLOC 1
13042 _ACEOF
13043
13044 fi
13045
13046 # -------------------------------------------
13047 # static-tools (default off)
13048 # -------------------------------------------
13049 # Check whether --enable-static-tools or --disable-static-tools was given.
13050 if test "${enable_static_tools+set}" = set; then
13051   enableval="$enable_static_tools"
13052   if test x$enableval = xyes; then
13053      support_static_tools=yes
13054    fi
13055 fi;
13056
13057 TTOOL_LDFLAGS=
13058 if test x$support_static_tools = xyes; then
13059    TTOOL_LDFLAGS="-static"
13060 fi
13061
13062
13063 # -------------------------------------------
13064 # static-fd    (default off)
13065 # -------------------------------------------
13066 # Check whether --enable-static-fd or --disable-static-fd was given.
13067 if test "${enable_static_fd+set}" = set; then
13068   enableval="$enable_static_fd"
13069   if test x$enableval = xyes; then
13070      support_static_fd=yes
13071    fi
13072 fi;
13073
13074 STATIC_FD=
13075 if test x$support_static_fd = xyes; then
13076    STATIC_FD="static-bacula-fd"
13077 fi
13078
13079
13080 # -------------------------------------------
13081 # static-sd    (default off)
13082 # -------------------------------------------
13083 # Check whether --enable-static-sd or --disable-static-sd was given.
13084 if test "${enable_static_sd+set}" = set; then
13085   enableval="$enable_static_sd"
13086   if test x$enableval = xyes; then
13087      support_static_sd=yes
13088    fi
13089 fi;
13090
13091 STATIC_SD=
13092 if test x$support_static_sd = xyes; then
13093    STATIC_SD="static-bacula-sd"
13094 fi
13095
13096
13097 # -------------------------------------------
13098 # static-dir   (default off)
13099 # -------------------------------------------
13100 # Check whether --enable-static-dir or --disable-static-dir was given.
13101 if test "${enable_static_dir+set}" = set; then
13102   enableval="$enable_static_dir"
13103   if test x$enableval = xyes; then
13104      support_static_dir=yes
13105    fi
13106 fi;
13107
13108 STATIC_DIR=
13109 if test x$support_static_dir = xyes; then
13110    STATIC_DIR="static-bacula-dir"
13111 fi
13112
13113
13114 # -------------------------------------------
13115 # static-cons  (default off)
13116 # -------------------------------------------
13117 # Check whether --enable-static-cons or --disable-static-cons was given.
13118 if test "${enable_static_cons+set}" = set; then
13119   enableval="$enable_static_cons"
13120   if test x$enableval = xyes; then
13121      support_static_cons=yes
13122    fi
13123 fi;
13124
13125 STATIC_CONS=
13126 STATIC_GNOME_CONS=
13127 STATIC_WX_CONS=
13128 if test x$support_static_cons = xyes; then
13129    STATIC_CONS="static-bconsole"
13130    STATIC_GNOME_CONS="static-bgnome-console"
13131    STATIC_WX_CONS="static-bwx-console"
13132 fi
13133
13134
13135
13136
13137 # -------------------------------------------
13138 # client_only  (default off)
13139 # -------------------------------------------
13140 # Check whether --enable-client-only or --disable-client-only was given.
13141 if test "${enable_client_only+set}" = set; then
13142   enableval="$enable_client_only"
13143   if test x$enableval = xyes; then
13144       build_client_only=yes
13145       db_type=None
13146       DB_TYPE=none
13147    fi
13148 fi;
13149 if test x$build_client_only = xno; then
13150    ALL_DIRS="subdirs"
13151 else
13152    ALL_DIRS=""
13153 fi
13154
13155
13156 # -------------------------------------------
13157 # director  (default on)
13158 # -------------------------------------------
13159 # Check whether --enable-build-dird or --disable-build-dird was given.
13160 if test "${enable_build_dird+set}" = set; then
13161   enableval="$enable_build_dird"
13162   if test x$enableval = xno; then
13163       build_dird=no
13164    fi
13165 fi;
13166 if test x$build_dird = xyes; then
13167    DIRD_DIR="src/dird"
13168    DIR_TOOLS="DIRTOOLS"
13169 else
13170    DIRD_DIR=""
13171    DIR_TOOLS="NODIRTOOLS"
13172 fi
13173
13174
13175
13176 # -------------------------------------------
13177 # stored  (default on)
13178 # -------------------------------------------
13179 # Check whether --enable-build-stored or --disable-build-stored was given.
13180 if test "${enable_build_stored+set}" = set; then
13181   enableval="$enable_build_stored"
13182   if test x$enableval = xno; then
13183       build_stored=no
13184    fi
13185 fi;
13186 if test x$build_stored = xyes; then
13187    STORED_DIR="src/stored"
13188 else
13189    STORED_DIR=""
13190 fi
13191
13192
13193 # ---------------------------------------------------
13194 # Check for conio (Bacula readline substitute)(
13195 # ---------------------------------------------------
13196 # this allows you to turn it completely off
13197 # Check whether --enable-conio or --disable-conio was given.
13198 if test "${enable_conio+set}" = set; then
13199   enableval="$enable_conio"
13200   if test x$enableval = xno; then
13201      support_conio=no
13202   fi
13203
13204 fi;
13205
13206
13207 # ---------------------------------------------------
13208 # Check for IPv6 support
13209 # ---------------------------------------------------
13210 # this allows you to turn it completely off
13211 support_ipv6=yes
13212 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13213 if test "${enable_ipv6+set}" = set; then
13214   enableval="$enable_ipv6"
13215   if test x$enableval = xno; then
13216      support_ipv6=no
13217   fi
13218
13219 fi;
13220
13221 if test x$support_ipv6 = xyes; then
13222     cat >conftest.$ac_ext <<_ACEOF
13223 /* confdefs.h.  */
13224 _ACEOF
13225 cat confdefs.h >>conftest.$ac_ext
13226 cat >>conftest.$ac_ext <<_ACEOF
13227 /* end confdefs.h.  */
13228  #include <sys/types.h>
13229 #include <sys/socket.h>
13230 #include <netinet/in.h>
13231 int
13232 main ()
13233 {
13234 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13241   (eval $ac_link) 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -z "$ac_c_werror_flag"
13249                          || test ! -s conftest.err'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; } &&
13255          { ac_try='test -s conftest$ac_exeext'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; }; then
13261   support_ipv6=yes
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266 support_ipv6=no
13267 fi
13268 rm -f conftest.err conftest.$ac_objext \
13269       conftest$ac_exeext conftest.$ac_ext
13270 fi
13271
13272 if test x$support_ipv6 = xyes; then
13273
13274 cat >>confdefs.h <<\_ACEOF
13275 #define HAVE_IPV6 1
13276 _ACEOF
13277
13278 fi
13279
13280
13281
13282 got_conio="no"
13283 if test x$support_conio = xyes; then
13284    if test "${ac_cv_header_termcap_h+set}" = set; then
13285   echo "$as_me:$LINENO: checking for termcap.h" >&5
13286 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13287 if test "${ac_cv_header_termcap_h+set}" = set; then
13288   echo $ECHO_N "(cached) $ECHO_C" >&6
13289 fi
13290 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13291 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13292 else
13293   # Is the header compilable?
13294 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13295 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13296 cat >conftest.$ac_ext <<_ACEOF
13297 /* confdefs.h.  */
13298 _ACEOF
13299 cat confdefs.h >>conftest.$ac_ext
13300 cat >>conftest.$ac_ext <<_ACEOF
13301 /* end confdefs.h.  */
13302 $ac_includes_default
13303 #include <termcap.h>
13304 _ACEOF
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307   (eval $ac_compile) 2>conftest.er1
13308   ac_status=$?
13309   grep -v '^ *+' conftest.er1 >conftest.err
13310   rm -f conftest.er1
13311   cat conftest.err >&5
13312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313   (exit $ac_status); } &&
13314          { ac_try='test -z "$ac_c_werror_flag"
13315                          || test ! -s conftest.err'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; } &&
13321          { ac_try='test -s conftest.$ac_objext'
13322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13323   (eval $ac_try) 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }; }; then
13327   ac_header_compiler=yes
13328 else
13329   echo "$as_me: failed program was:" >&5
13330 sed 's/^/| /' conftest.$ac_ext >&5
13331
13332 ac_header_compiler=no
13333 fi
13334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13336 echo "${ECHO_T}$ac_header_compiler" >&6
13337
13338 # Is the header present?
13339 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13340 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13341 cat >conftest.$ac_ext <<_ACEOF
13342 /* confdefs.h.  */
13343 _ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h.  */
13347 #include <termcap.h>
13348 _ACEOF
13349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13350   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } >/dev/null; then
13357   if test -s conftest.err; then
13358     ac_cpp_err=$ac_c_preproc_warn_flag
13359     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13360   else
13361     ac_cpp_err=
13362   fi
13363 else
13364   ac_cpp_err=yes
13365 fi
13366 if test -z "$ac_cpp_err"; then
13367   ac_header_preproc=yes
13368 else
13369   echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13371
13372   ac_header_preproc=no
13373 fi
13374 rm -f conftest.err conftest.$ac_ext
13375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13376 echo "${ECHO_T}$ac_header_preproc" >&6
13377
13378 # So?  What about this header?
13379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13380   yes:no: )
13381     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13382 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13383     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13384 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13385     ac_header_preproc=yes
13386     ;;
13387   no:yes:* )
13388     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13389 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13390     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13391 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13392     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13393 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13394     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13395 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13396     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13397 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13398     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13399 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13400     (
13401       cat <<\_ASBOX
13402 ## ------------------------------------------ ##
13403 ## Report this to the AC_PACKAGE_NAME lists.  ##
13404 ## ------------------------------------------ ##
13405 _ASBOX
13406     ) |
13407       sed "s/^/$as_me: WARNING:     /" >&2
13408     ;;
13409 esac
13410 echo "$as_me:$LINENO: checking for termcap.h" >&5
13411 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13412 if test "${ac_cv_header_termcap_h+set}" = set; then
13413   echo $ECHO_N "(cached) $ECHO_C" >&6
13414 else
13415   ac_cv_header_termcap_h=$ac_header_preproc
13416 fi
13417 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13419
13420 fi
13421 if test $ac_cv_header_termcap_h = yes; then
13422    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13423 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13424 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13425   echo $ECHO_N "(cached) $ECHO_C" >&6
13426 else
13427   ac_check_lib_save_LIBS=$LIBS
13428 LIBS="-ltermcap  $LIBS"
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
13436 /* Override any gcc2 internal prototype to avoid an error.  */
13437 #ifdef __cplusplus
13438 extern "C"
13439 #endif
13440 /* We use char because int might match the return type of a gcc2
13441    builtin and then its argument prototype would still apply.  */
13442 char tgetent ();
13443 int
13444 main ()
13445 {
13446 tgetent ();
13447   ;
13448   return 0;
13449 }
13450 _ACEOF
13451 rm -f conftest.$ac_objext conftest$ac_exeext
13452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13453   (eval $ac_link) 2>conftest.er1
13454   ac_status=$?
13455   grep -v '^ *+' conftest.er1 >conftest.err
13456   rm -f conftest.er1
13457   cat conftest.err >&5
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); } &&
13460          { ac_try='test -z "$ac_c_werror_flag"
13461                          || test ! -s conftest.err'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; } &&
13467          { ac_try='test -s conftest$ac_exeext'
13468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469   (eval $ac_try) 2>&5
13470   ac_status=$?
13471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); }; }; then
13473   ac_cv_lib_termcap_tgetent=yes
13474 else
13475   echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 ac_cv_lib_termcap_tgetent=no
13479 fi
13480 rm -f conftest.err conftest.$ac_objext \
13481       conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13483 fi
13484 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13485 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13486 if test $ac_cv_lib_termcap_tgetent = yes; then
13487    CONS_LIBS="-ltermcap"
13488          CONS_OBJ="conio.o"
13489          CONS_SRC="conio.c"
13490          got_conio="yes"
13491          support_readline=no
13492
13493 cat >>confdefs.h <<\_ACEOF
13494 #define HAVE_CONIO 1
13495 _ACEOF
13496
13497
13498 else
13499    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13500 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13501 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13502   echo $ECHO_N "(cached) $ECHO_C" >&6
13503 else
13504   ac_check_lib_save_LIBS=$LIBS
13505 LIBS="-lncurses  $LIBS"
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512
13513 /* Override any gcc2 internal prototype to avoid an error.  */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 /* We use char because int might match the return type of a gcc2
13518    builtin and then its argument prototype would still apply.  */
13519 char tgetent ();
13520 int
13521 main ()
13522 {
13523 tgetent ();
13524   ;
13525   return 0;
13526 }
13527 _ACEOF
13528 rm -f conftest.$ac_objext conftest$ac_exeext
13529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13530   (eval $ac_link) 2>conftest.er1
13531   ac_status=$?
13532   grep -v '^ *+' conftest.er1 >conftest.err
13533   rm -f conftest.er1
13534   cat conftest.err >&5
13535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536   (exit $ac_status); } &&
13537          { ac_try='test -z "$ac_c_werror_flag"
13538                          || test ! -s conftest.err'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; } &&
13544          { ac_try='test -s conftest$ac_exeext'
13545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546   (eval $ac_try) 2>&5
13547   ac_status=$?
13548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549   (exit $ac_status); }; }; then
13550   ac_cv_lib_ncurses_tgetent=yes
13551 else
13552   echo "$as_me: failed program was:" >&5
13553 sed 's/^/| /' conftest.$ac_ext >&5
13554
13555 ac_cv_lib_ncurses_tgetent=no
13556 fi
13557 rm -f conftest.err conftest.$ac_objext \
13558       conftest$ac_exeext conftest.$ac_ext
13559 LIBS=$ac_check_lib_save_LIBS
13560 fi
13561 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13562 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13563 if test $ac_cv_lib_ncurses_tgetent = yes; then
13564    CONS_LIBS="-lncurses"
13565            CONS_OBJ="conio.o"
13566            CONS_SRC="conio.c"
13567            got_conio="yes"
13568            support_readline=no
13569
13570 cat >>confdefs.h <<\_ACEOF
13571 #define HAVE_CONIO 1
13572 _ACEOF
13573
13574
13575 fi
13576
13577
13578 fi
13579
13580
13581 else
13582
13583
13584 for ac_header in curses.h
13585 do
13586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13588   echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 fi
13593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13595 else
13596   # Is the header compilable?
13597 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13599 cat >conftest.$ac_ext <<_ACEOF
13600 /* confdefs.h.  */
13601 _ACEOF
13602 cat confdefs.h >>conftest.$ac_ext
13603 cat >>conftest.$ac_ext <<_ACEOF
13604 /* end confdefs.h.  */
13605 $ac_includes_default
13606 #include <$ac_header>
13607 _ACEOF
13608 rm -f conftest.$ac_objext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13610   (eval $ac_compile) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest.$ac_objext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_header_compiler=yes
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_header_compiler=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13639 echo "${ECHO_T}$ac_header_compiler" >&6
13640
13641 # Is the header present?
13642 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13644 cat >conftest.$ac_ext <<_ACEOF
13645 /* confdefs.h.  */
13646 _ACEOF
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h.  */
13650 #include <$ac_header>
13651 _ACEOF
13652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13654   ac_status=$?
13655   grep -v '^ *+' conftest.er1 >conftest.err
13656   rm -f conftest.er1
13657   cat conftest.err >&5
13658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659   (exit $ac_status); } >/dev/null; then
13660   if test -s conftest.err; then
13661     ac_cpp_err=$ac_c_preproc_warn_flag
13662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13663   else
13664     ac_cpp_err=
13665   fi
13666 else
13667   ac_cpp_err=yes
13668 fi
13669 if test -z "$ac_cpp_err"; then
13670   ac_header_preproc=yes
13671 else
13672   echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13674
13675   ac_header_preproc=no
13676 fi
13677 rm -f conftest.err conftest.$ac_ext
13678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13679 echo "${ECHO_T}$ac_header_preproc" >&6
13680
13681 # So?  What about this header?
13682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13683   yes:no: )
13684     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13685 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13686     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13687 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13688     ac_header_preproc=yes
13689     ;;
13690   no:yes:* )
13691     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13692 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13694 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13696 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13697     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13698 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13701     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13702 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13703     (
13704       cat <<\_ASBOX
13705 ## ------------------------------------------ ##
13706 ## Report this to the AC_PACKAGE_NAME lists.  ##
13707 ## ------------------------------------------ ##
13708 _ASBOX
13709     ) |
13710       sed "s/^/$as_me: WARNING:     /" >&2
13711     ;;
13712 esac
13713 echo "$as_me:$LINENO: checking for $ac_header" >&5
13714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   eval "$as_ac_Header=\$ac_header_preproc"
13719 fi
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13722
13723 fi
13724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13725   cat >>confdefs.h <<_ACEOF
13726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13727 _ACEOF
13728
13729 fi
13730
13731 done
13732
13733          echo "$as_me:$LINENO: checking for term.h" >&5
13734 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13735 if test "${ac_cv_header_term_h+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   cat >conftest.$ac_ext <<_ACEOF
13739 /* confdefs.h.  */
13740 _ACEOF
13741 cat confdefs.h >>conftest.$ac_ext
13742 cat >>conftest.$ac_ext <<_ACEOF
13743 /* end confdefs.h.  */
13744 #if HAVE_CURSES_H
13745 #include <curses.h>
13746 #endif
13747
13748
13749 #include <term.h>
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13753   (eval $ac_compile) 2>conftest.er1
13754   ac_status=$?
13755   grep -v '^ *+' conftest.er1 >conftest.err
13756   rm -f conftest.er1
13757   cat conftest.err >&5
13758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759   (exit $ac_status); } &&
13760          { ac_try='test -z "$ac_c_werror_flag"
13761                          || test ! -s conftest.err'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; } &&
13767          { ac_try='test -s conftest.$ac_objext'
13768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13769   (eval $ac_try) 2>&5
13770   ac_status=$?
13771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13772   (exit $ac_status); }; }; then
13773   ac_cv_header_term_h=yes
13774 else
13775   echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_cv_header_term_h=no
13779 fi
13780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13781 fi
13782 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13783 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13784 if test $ac_cv_header_term_h = yes; then
13785    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13786 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13787 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13788   echo $ECHO_N "(cached) $ECHO_C" >&6
13789 else
13790   ac_check_lib_save_LIBS=$LIBS
13791 LIBS="-lcurses  $LIBS"
13792 cat >conftest.$ac_ext <<_ACEOF
13793 /* confdefs.h.  */
13794 _ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h.  */
13798
13799 /* Override any gcc2 internal prototype to avoid an error.  */
13800 #ifdef __cplusplus
13801 extern "C"
13802 #endif
13803 /* We use char because int might match the return type of a gcc2
13804    builtin and then its argument prototype would still apply.  */
13805 char tgetent ();
13806 int
13807 main ()
13808 {
13809 tgetent ();
13810   ;
13811   return 0;
13812 }
13813 _ACEOF
13814 rm -f conftest.$ac_objext conftest$ac_exeext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13816   (eval $ac_link) 2>conftest.er1
13817   ac_status=$?
13818   grep -v '^ *+' conftest.er1 >conftest.err
13819   rm -f conftest.er1
13820   cat conftest.err >&5
13821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822   (exit $ac_status); } &&
13823          { ac_try='test -z "$ac_c_werror_flag"
13824                          || test ! -s conftest.err'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; } &&
13830          { ac_try='test -s conftest$ac_exeext'
13831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832   (eval $ac_try) 2>&5
13833   ac_status=$?
13834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835   (exit $ac_status); }; }; then
13836   ac_cv_lib_curses_tgetent=yes
13837 else
13838   echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13840
13841 ac_cv_lib_curses_tgetent=no
13842 fi
13843 rm -f conftest.err conftest.$ac_objext \
13844       conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13846 fi
13847 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13848 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13849 if test $ac_cv_lib_curses_tgetent = yes; then
13850    CONS_LIBS="-lcurses"
13851                    CONS_OBJ="conio.o"
13852                    CONS_SRC="conio.c"
13853                    got_conio="yes"
13854                    support_readline=no
13855
13856 cat >>confdefs.h <<\_ACEOF
13857 #define HAVE_CONIO 1
13858 _ACEOF
13859
13860
13861 fi
13862
13863
13864 else
13865    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13866 fi
13867
13868
13869
13870 fi
13871
13872
13873 fi
13874
13875
13876 # ---------------------------------------------------
13877 # Check for readline support/directory (default off)
13878 # ---------------------------------------------------
13879 # this allows you to turn it completely off
13880 # Check whether --enable-readline or --disable-readline was given.
13881 if test "${enable_readline+set}" = set; then
13882   enableval="$enable_readline"
13883   if test x$enableval = xno; then
13884     support_readline=no
13885   fi
13886 fi;
13887
13888 got_readline="no"
13889 READLINE_SRC=
13890 if test x$support_readline = xyes; then
13891
13892 # Check whether --with-readline or --without-readline was given.
13893 if test "${with_readline+set}" = set; then
13894   withval="$with_readline"
13895
13896         case "$with_readline" in
13897         no) : ;;
13898         yes|*)
13899           if test -f ${with_readline}/readline.h; then
13900              CONS_INC="-I${with_readline}"
13901              CONS_LDFLAGS="-L$with_readline"
13902           elif test -f ${with_readline}/include/readline/readline.h; then
13903              CONS_INC="-I${with_readline}/include/readline"
13904              CONS_LDFLAGS="-L${with_readline}/lib"
13905              with_readline="${with_readline}/include/readline"
13906           else
13907              with_readline="/usr/include/readline"
13908           fi
13909           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13911   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13912 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13914   echo $ECHO_N "(cached) $ECHO_C" >&6
13915 fi
13916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13918 else
13919   # Is the header compilable?
13920 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13921 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13922 cat >conftest.$ac_ext <<_ACEOF
13923 /* confdefs.h.  */
13924 _ACEOF
13925 cat confdefs.h >>conftest.$ac_ext
13926 cat >>conftest.$ac_ext <<_ACEOF
13927 /* end confdefs.h.  */
13928 $ac_includes_default
13929 #include <${with_readline}/readline.h>
13930 _ACEOF
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933   (eval $ac_compile) 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } &&
13940          { ac_try='test -z "$ac_c_werror_flag"
13941                          || test ! -s conftest.err'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; } &&
13947          { ac_try='test -s conftest.$ac_objext'
13948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949   (eval $ac_try) 2>&5
13950   ac_status=$?
13951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952   (exit $ac_status); }; }; then
13953   ac_header_compiler=yes
13954 else
13955   echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 ac_header_compiler=no
13959 fi
13960 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13961 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13962 echo "${ECHO_T}$ac_header_compiler" >&6
13963
13964 # Is the header present?
13965 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13966 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13968 /* confdefs.h.  */
13969 _ACEOF
13970 cat confdefs.h >>conftest.$ac_ext
13971 cat >>conftest.$ac_ext <<_ACEOF
13972 /* end confdefs.h.  */
13973 #include <${with_readline}/readline.h>
13974 _ACEOF
13975 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13976   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13977   ac_status=$?
13978   grep -v '^ *+' conftest.er1 >conftest.err
13979   rm -f conftest.er1
13980   cat conftest.err >&5
13981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982   (exit $ac_status); } >/dev/null; then
13983   if test -s conftest.err; then
13984     ac_cpp_err=$ac_c_preproc_warn_flag
13985     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13986   else
13987     ac_cpp_err=
13988   fi
13989 else
13990   ac_cpp_err=yes
13991 fi
13992 if test -z "$ac_cpp_err"; then
13993   ac_header_preproc=yes
13994 else
13995   echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998   ac_header_preproc=no
13999 fi
14000 rm -f conftest.err conftest.$ac_ext
14001 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14002 echo "${ECHO_T}$ac_header_preproc" >&6
14003
14004 # So?  What about this header?
14005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14006   yes:no: )
14007     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14008 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14009     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14010 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14011     ac_header_preproc=yes
14012     ;;
14013   no:yes:* )
14014     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14015 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14016     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14017 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14018     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14019 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14020     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14021 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14023 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14025 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14026     (
14027       cat <<\_ASBOX
14028 ## ------------------------------------------ ##
14029 ## Report this to the AC_PACKAGE_NAME lists.  ##
14030 ## ------------------------------------------ ##
14031 _ASBOX
14032     ) |
14033       sed "s/^/$as_me: WARNING:     /" >&2
14034     ;;
14035 esac
14036 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14037 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
14038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14039   echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041   eval "$as_ac_Header=\$ac_header_preproc"
14042 fi
14043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14045
14046 fi
14047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14048
14049 cat >>confdefs.h <<\_ACEOF
14050 #define HAVE_READLINE 1
14051 _ACEOF
14052
14053                CONS_LIBS="-lreadline -lhistory -ltermcap"
14054                got_readline="yes"
14055
14056 else
14057    echo " "
14058                echo "readline.h not found. readline turned off ..."
14059                echo " "
14060
14061
14062 fi
14063
14064
14065           ;;
14066         esac
14067
14068 else
14069
14070        # check for standard readline library
14071        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14072   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14073 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14074 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14075   echo $ECHO_N "(cached) $ECHO_C" >&6
14076 fi
14077 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14078 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14079 else
14080   # Is the header compilable?
14081 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14082 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h.  */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h.  */
14089 $ac_includes_default
14090 #include </usr/include/readline/readline.h>
14091 _ACEOF
14092 rm -f conftest.$ac_objext
14093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14094   (eval $ac_compile) 2>conftest.er1
14095   ac_status=$?
14096   grep -v '^ *+' conftest.er1 >conftest.err
14097   rm -f conftest.er1
14098   cat conftest.err >&5
14099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14100   (exit $ac_status); } &&
14101          { ac_try='test -z "$ac_c_werror_flag"
14102                          || test ! -s conftest.err'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; } &&
14108          { ac_try='test -s conftest.$ac_objext'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; }; then
14114   ac_header_compiler=yes
14115 else
14116   echo "$as_me: failed program was:" >&5
14117 sed 's/^/| /' conftest.$ac_ext >&5
14118
14119 ac_header_compiler=no
14120 fi
14121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14123 echo "${ECHO_T}$ac_header_compiler" >&6
14124
14125 # Is the header present?
14126 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14127 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14128 cat >conftest.$ac_ext <<_ACEOF
14129 /* confdefs.h.  */
14130 _ACEOF
14131 cat confdefs.h >>conftest.$ac_ext
14132 cat >>conftest.$ac_ext <<_ACEOF
14133 /* end confdefs.h.  */
14134 #include </usr/include/readline/readline.h>
14135 _ACEOF
14136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14137   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14138   ac_status=$?
14139   grep -v '^ *+' conftest.er1 >conftest.err
14140   rm -f conftest.er1
14141   cat conftest.err >&5
14142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143   (exit $ac_status); } >/dev/null; then
14144   if test -s conftest.err; then
14145     ac_cpp_err=$ac_c_preproc_warn_flag
14146     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14147   else
14148     ac_cpp_err=
14149   fi
14150 else
14151   ac_cpp_err=yes
14152 fi
14153 if test -z "$ac_cpp_err"; then
14154   ac_header_preproc=yes
14155 else
14156   echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14158
14159   ac_header_preproc=no
14160 fi
14161 rm -f conftest.err conftest.$ac_ext
14162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14163 echo "${ECHO_T}$ac_header_preproc" >&6
14164
14165 # So?  What about this header?
14166 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14167   yes:no: )
14168     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14169 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14170     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14171 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14172     ac_header_preproc=yes
14173     ;;
14174   no:yes:* )
14175     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14176 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14177     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14178 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14179     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14180 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14181     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14182 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14183     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14184 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14185     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14186 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14187     (
14188       cat <<\_ASBOX
14189 ## ------------------------------------------ ##
14190 ## Report this to the AC_PACKAGE_NAME lists.  ##
14191 ## ------------------------------------------ ##
14192 _ASBOX
14193     ) |
14194       sed "s/^/$as_me: WARNING:     /" >&2
14195     ;;
14196 esac
14197 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14198 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14199 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14200   echo $ECHO_N "(cached) $ECHO_C" >&6
14201 else
14202   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14203 fi
14204 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14205 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14206
14207 fi
14208 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14209
14210 cat >>confdefs.h <<\_ACEOF
14211 #define HAVE_READLINE 1
14212 _ACEOF
14213
14214            got_readline="yes"
14215            CONS_INC="-I/usr/include/readline"
14216            CONS_LIBS="-lreadline -ltermcap"
14217
14218 else
14219
14220            # Did not find standard library, so try Bacula's default
14221             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14223   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14224 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14225 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 fi
14228 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14229 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14230 else
14231   # Is the header compilable?
14232 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14233 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14234 cat >conftest.$ac_ext <<_ACEOF
14235 /* confdefs.h.  */
14236 _ACEOF
14237 cat confdefs.h >>conftest.$ac_ext
14238 cat >>conftest.$ac_ext <<_ACEOF
14239 /* end confdefs.h.  */
14240 $ac_includes_default
14241 #include <${TOP_DIR}/depkgs/readline/readline.h>
14242 _ACEOF
14243 rm -f conftest.$ac_objext
14244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14245   (eval $ac_compile) 2>conftest.er1
14246   ac_status=$?
14247   grep -v '^ *+' conftest.er1 >conftest.err
14248   rm -f conftest.er1
14249   cat conftest.err >&5
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); } &&
14252          { ac_try='test -z "$ac_c_werror_flag"
14253                          || test ! -s conftest.err'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; } &&
14259          { ac_try='test -s conftest.$ac_objext'
14260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14261   (eval $ac_try) 2>&5
14262   ac_status=$?
14263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14264   (exit $ac_status); }; }; then
14265   ac_header_compiler=yes
14266 else
14267   echo "$as_me: failed program was:" >&5
14268 sed 's/^/| /' conftest.$ac_ext >&5
14269
14270 ac_header_compiler=no
14271 fi
14272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 echo "${ECHO_T}$ac_header_compiler" >&6
14275
14276 # Is the header present?
14277 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14278 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h.  */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h.  */
14285 #include <${TOP_DIR}/depkgs/readline/readline.h>
14286 _ACEOF
14287 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14288   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } >/dev/null; then
14295   if test -s conftest.err; then
14296     ac_cpp_err=$ac_c_preproc_warn_flag
14297     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14298   else
14299     ac_cpp_err=
14300   fi
14301 else
14302   ac_cpp_err=yes
14303 fi
14304 if test -z "$ac_cpp_err"; then
14305   ac_header_preproc=yes
14306 else
14307   echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.$ac_ext >&5
14309
14310   ac_header_preproc=no
14311 fi
14312 rm -f conftest.err conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14314 echo "${ECHO_T}$ac_header_preproc" >&6
14315
14316 # So?  What about this header?
14317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14318   yes:no: )
14319     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14321     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14322 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14323     ac_header_preproc=yes
14324     ;;
14325   no:yes:* )
14326     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14332     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14333 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14334     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14335 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14336     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14337 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14338     (
14339       cat <<\_ASBOX
14340 ## ------------------------------------------ ##
14341 ## Report this to the AC_PACKAGE_NAME lists.  ##
14342 ## ------------------------------------------ ##
14343 _ASBOX
14344     ) |
14345       sed "s/^/$as_me: WARNING:     /" >&2
14346     ;;
14347 esac
14348 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14349 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14351   echo $ECHO_N "(cached) $ECHO_C" >&6
14352 else
14353   eval "$as_ac_Header=\$ac_header_preproc"
14354 fi
14355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14357
14358 fi
14359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14360
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_READLINE 1
14363 _ACEOF
14364
14365                  got_readline="yes"
14366                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14367                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14368                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14369                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14370
14371 else
14372    echo " "
14373                 echo "readline.h not found. readline turned off ..."
14374                 echo " "
14375
14376
14377 fi
14378
14379
14380
14381
14382 fi
14383
14384
14385
14386
14387 fi;
14388 fi
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399 # Minimal stuff for readline Makefile configuration
14400 MAKE_SHELL=/bin/sh
14401
14402 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14403 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14404 if test "${ac_cv_header_stat_broken+set}" = set; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <sys/stat.h>
14415
14416 #if defined(S_ISBLK) && defined(S_IFDIR)
14417 # if S_ISBLK (S_IFDIR)
14418 You lose.
14419 # endif
14420 #endif
14421
14422 #if defined(S_ISBLK) && defined(S_IFCHR)
14423 # if S_ISBLK (S_IFCHR)
14424 You lose.
14425 # endif
14426 #endif
14427
14428 #if defined(S_ISLNK) && defined(S_IFREG)
14429 # if S_ISLNK (S_IFREG)
14430 You lose.
14431 # endif
14432 #endif
14433
14434 #if defined(S_ISSOCK) && defined(S_IFREG)
14435 # if S_ISSOCK (S_IFREG)
14436 You lose.
14437 # endif
14438 #endif
14439
14440 _ACEOF
14441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14442   $EGREP "You lose" >/dev/null 2>&1; then
14443   ac_cv_header_stat_broken=yes
14444 else
14445   ac_cv_header_stat_broken=no
14446 fi
14447 rm -f conftest*
14448
14449 fi
14450 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14451 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14452 if test $ac_cv_header_stat_broken = yes; then
14453
14454 cat >>confdefs.h <<\_ACEOF
14455 #define STAT_MACROS_BROKEN 1
14456 _ACEOF
14457
14458 fi
14459
14460
14461
14462
14463
14464
14465 ac_header_dirent=no
14466 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14467   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14468 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14469 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14471   echo $ECHO_N "(cached) $ECHO_C" >&6
14472 else
14473   cat >conftest.$ac_ext <<_ACEOF
14474 /* confdefs.h.  */
14475 _ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h.  */
14479 #include <sys/types.h>
14480 #include <$ac_hdr>
14481
14482 int
14483 main ()
14484 {
14485 if ((DIR *) 0)
14486 return 0;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493   (eval $ac_compile) 2>conftest.er1
14494   ac_status=$?
14495   grep -v '^ *+' conftest.er1 >conftest.err
14496   rm -f conftest.er1
14497   cat conftest.err >&5
14498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499   (exit $ac_status); } &&
14500          { ac_try='test -z "$ac_c_werror_flag"
14501                          || test ! -s conftest.err'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; } &&
14507          { ac_try='test -s conftest.$ac_objext'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   eval "$as_ac_Header=yes"
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 eval "$as_ac_Header=no"
14519 fi
14520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521 fi
14522 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14523 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14525   cat >>confdefs.h <<_ACEOF
14526 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14527 _ACEOF
14528
14529 ac_header_dirent=$ac_hdr; break
14530 fi
14531
14532 done
14533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14534 if test $ac_header_dirent = dirent.h; then
14535   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14536 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14537 if test "${ac_cv_search_opendir+set}" = set; then
14538   echo $ECHO_N "(cached) $ECHO_C" >&6
14539 else
14540   ac_func_search_save_LIBS=$LIBS
14541 ac_cv_search_opendir=no
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h.  */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h.  */
14548
14549 /* Override any gcc2 internal prototype to avoid an error.  */
14550 #ifdef __cplusplus
14551 extern "C"
14552 #endif
14553 /* We use char because int might match the return type of a gcc2
14554    builtin and then its argument prototype would still apply.  */
14555 char opendir ();
14556 int
14557 main ()
14558 {
14559 opendir ();
14560   ;
14561   return 0;
14562 }
14563 _ACEOF
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14566   (eval $ac_link) 2>conftest.er1
14567   ac_status=$?
14568   grep -v '^ *+' conftest.er1 >conftest.err
14569   rm -f conftest.er1
14570   cat conftest.err >&5
14571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572   (exit $ac_status); } &&
14573          { ac_try='test -z "$ac_c_werror_flag"
14574                          || test ! -s conftest.err'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; } &&
14580          { ac_try='test -s conftest$ac_exeext'
14581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14582   (eval $ac_try) 2>&5
14583   ac_status=$?
14584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585   (exit $ac_status); }; }; then
14586   ac_cv_search_opendir="none required"
14587 else
14588   echo "$as_me: failed program was:" >&5
14589 sed 's/^/| /' conftest.$ac_ext >&5
14590
14591 fi
14592 rm -f conftest.err conftest.$ac_objext \
14593       conftest$ac_exeext conftest.$ac_ext
14594 if test "$ac_cv_search_opendir" = no; then
14595   for ac_lib in dir; do
14596     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14597     cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h.  */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h.  */
14603
14604 /* Override any gcc2 internal prototype to avoid an error.  */
14605 #ifdef __cplusplus
14606 extern "C"
14607 #endif
14608 /* We use char because int might match the return type of a gcc2
14609    builtin and then its argument prototype would still apply.  */
14610 char opendir ();
14611 int
14612 main ()
14613 {
14614 opendir ();
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 rm -f conftest.$ac_objext conftest$ac_exeext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14621   (eval $ac_link) 2>conftest.er1
14622   ac_status=$?
14623   grep -v '^ *+' conftest.er1 >conftest.err
14624   rm -f conftest.er1
14625   cat conftest.err >&5
14626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627   (exit $ac_status); } &&
14628          { ac_try='test -z "$ac_c_werror_flag"
14629                          || test ! -s conftest.err'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; } &&
14635          { ac_try='test -s conftest$ac_exeext'
14636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637   (eval $ac_try) 2>&5
14638   ac_status=$?
14639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640   (exit $ac_status); }; }; then
14641   ac_cv_search_opendir="-l$ac_lib"
14642 break
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647 fi
14648 rm -f conftest.err conftest.$ac_objext \
14649       conftest$ac_exeext conftest.$ac_ext
14650   done
14651 fi
14652 LIBS=$ac_func_search_save_LIBS
14653 fi
14654 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14655 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14656 if test "$ac_cv_search_opendir" != no; then
14657   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14658
14659 fi
14660
14661 else
14662   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14663 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14664 if test "${ac_cv_search_opendir+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667   ac_func_search_save_LIBS=$LIBS
14668 ac_cv_search_opendir=no
14669 cat >conftest.$ac_ext <<_ACEOF
14670 /* confdefs.h.  */
14671 _ACEOF
14672 cat confdefs.h >>conftest.$ac_ext
14673 cat >>conftest.$ac_ext <<_ACEOF
14674 /* end confdefs.h.  */
14675
14676 /* Override any gcc2 internal prototype to avoid an error.  */
14677 #ifdef __cplusplus
14678 extern "C"
14679 #endif
14680 /* We use char because int might match the return type of a gcc2
14681    builtin and then its argument prototype would still apply.  */
14682 char opendir ();
14683 int
14684 main ()
14685 {
14686 opendir ();
14687   ;
14688   return 0;
14689 }
14690 _ACEOF
14691 rm -f conftest.$ac_objext conftest$ac_exeext
14692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14693   (eval $ac_link) 2>conftest.er1
14694   ac_status=$?
14695   grep -v '^ *+' conftest.er1 >conftest.err
14696   rm -f conftest.er1
14697   cat conftest.err >&5
14698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699   (exit $ac_status); } &&
14700          { ac_try='test -z "$ac_c_werror_flag"
14701                          || test ! -s conftest.err'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; } &&
14707          { ac_try='test -s conftest$ac_exeext'
14708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); }; }; then
14713   ac_cv_search_opendir="none required"
14714 else
14715   echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 fi
14719 rm -f conftest.err conftest.$ac_objext \
14720       conftest$ac_exeext conftest.$ac_ext
14721 if test "$ac_cv_search_opendir" = no; then
14722   for ac_lib in x; do
14723     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14724     cat >conftest.$ac_ext <<_ACEOF
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730
14731 /* Override any gcc2 internal prototype to avoid an error.  */
14732 #ifdef __cplusplus
14733 extern "C"
14734 #endif
14735 /* We use char because int might match the return type of a gcc2
14736    builtin and then its argument prototype would still apply.  */
14737 char opendir ();
14738 int
14739 main ()
14740 {
14741 opendir ();
14742   ;
14743   return 0;
14744 }
14745 _ACEOF
14746 rm -f conftest.$ac_objext conftest$ac_exeext
14747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14748   (eval $ac_link) 2>conftest.er1
14749   ac_status=$?
14750   grep -v '^ *+' conftest.er1 >conftest.err
14751   rm -f conftest.er1
14752   cat conftest.err >&5
14753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14754   (exit $ac_status); } &&
14755          { ac_try='test -z "$ac_c_werror_flag"
14756                          || test ! -s conftest.err'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; } &&
14762          { ac_try='test -s conftest$ac_exeext'
14763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764   (eval $ac_try) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); }; }; then
14768   ac_cv_search_opendir="-l$ac_lib"
14769 break
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 fi
14775 rm -f conftest.err conftest.$ac_objext \
14776       conftest$ac_exeext conftest.$ac_ext
14777   done
14778 fi
14779 LIBS=$ac_func_search_save_LIBS
14780 fi
14781 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14782 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14783 if test "$ac_cv_search_opendir" != no; then
14784   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14785
14786 fi
14787
14788 fi
14789
14790
14791
14792
14793
14794
14795
14796
14797 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14798 do
14799 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 echo "$as_me:$LINENO: checking for $ac_func" >&5
14801 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14802 if eval "test \"\${$as_ac_var+set}\" = set"; then
14803   echo $ECHO_N "(cached) $ECHO_C" >&6
14804 else
14805   cat >conftest.$ac_ext <<_ACEOF
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14812    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14813 #define $ac_func innocuous_$ac_func
14814
14815 /* System header to define __stub macros and hopefully few prototypes,
14816     which can conflict with char $ac_func (); below.
14817     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14818     <limits.h> exists even on freestanding compilers.  */
14819
14820 #ifdef __STDC__
14821 # include <limits.h>
14822 #else
14823 # include <assert.h>
14824 #endif
14825
14826 #undef $ac_func
14827
14828 /* Override any gcc2 internal prototype to avoid an error.  */
14829 #ifdef __cplusplus
14830 extern "C"
14831 {
14832 #endif
14833 /* We use char because int might match the return type of a gcc2
14834    builtin and then its argument prototype would still apply.  */
14835 char $ac_func ();
14836 /* The GNU C library defines this for functions which it implements
14837     to always fail with ENOSYS.  Some functions are actually named
14838     something starting with __ and the normal name is an alias.  */
14839 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14840 choke me
14841 #else
14842 char (*f) () = $ac_func;
14843 #endif
14844 #ifdef __cplusplus
14845 }
14846 #endif
14847
14848 int
14849 main ()
14850 {
14851 return f != $ac_func;
14852   ;
14853   return 0;
14854 }
14855 _ACEOF
14856 rm -f conftest.$ac_objext conftest$ac_exeext
14857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14858   (eval $ac_link) 2>conftest.er1
14859   ac_status=$?
14860   grep -v '^ *+' conftest.er1 >conftest.err
14861   rm -f conftest.er1
14862   cat conftest.err >&5
14863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864   (exit $ac_status); } &&
14865          { ac_try='test -z "$ac_c_werror_flag"
14866                          || test ! -s conftest.err'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; } &&
14872          { ac_try='test -s conftest$ac_exeext'
14873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874   (eval $ac_try) 2>&5
14875   ac_status=$?
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); }; }; then
14878   eval "$as_ac_var=yes"
14879 else
14880   echo "$as_me: failed program was:" >&5
14881 sed 's/^/| /' conftest.$ac_ext >&5
14882
14883 eval "$as_ac_var=no"
14884 fi
14885 rm -f conftest.err conftest.$ac_objext \
14886       conftest$ac_exeext conftest.$ac_ext
14887 fi
14888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14889 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14890 if test `eval echo '${'$as_ac_var'}'` = yes; then
14891   cat >>confdefs.h <<_ACEOF
14892 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14893 _ACEOF
14894
14895 fi
14896 done
14897
14898
14899
14900 for ac_func in nanosleep nl_langinfo
14901 do
14902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14903 echo "$as_me:$LINENO: checking for $ac_func" >&5
14904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14905 if eval "test \"\${$as_ac_var+set}\" = set"; then
14906   echo $ECHO_N "(cached) $ECHO_C" >&6
14907 else
14908   cat >conftest.$ac_ext <<_ACEOF
14909 /* confdefs.h.  */
14910 _ACEOF
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h.  */
14914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14916 #define $ac_func innocuous_$ac_func
14917
14918 /* System header to define __stub macros and hopefully few prototypes,
14919     which can conflict with char $ac_func (); below.
14920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14921     <limits.h> exists even on freestanding compilers.  */
14922
14923 #ifdef __STDC__
14924 # include <limits.h>
14925 #else
14926 # include <assert.h>
14927 #endif
14928
14929 #undef $ac_func
14930
14931 /* Override any gcc2 internal prototype to avoid an error.  */
14932 #ifdef __cplusplus
14933 extern "C"
14934 {
14935 #endif
14936 /* We use char because int might match the return type of a gcc2
14937    builtin and then its argument prototype would still apply.  */
14938 char $ac_func ();
14939 /* The GNU C library defines this for functions which it implements
14940     to always fail with ENOSYS.  Some functions are actually named
14941     something starting with __ and the normal name is an alias.  */
14942 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14943 choke me
14944 #else
14945 char (*f) () = $ac_func;
14946 #endif
14947 #ifdef __cplusplus
14948 }
14949 #endif
14950
14951 int
14952 main ()
14953 {
14954 return f != $ac_func;
14955   ;
14956   return 0;
14957 }
14958 _ACEOF
14959 rm -f conftest.$ac_objext conftest$ac_exeext
14960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14961   (eval $ac_link) 2>conftest.er1
14962   ac_status=$?
14963   grep -v '^ *+' conftest.er1 >conftest.err
14964   rm -f conftest.er1
14965   cat conftest.err >&5
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); } &&
14968          { ac_try='test -z "$ac_c_werror_flag"
14969                          || test ! -s conftest.err'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; } &&
14975          { ac_try='test -s conftest$ac_exeext'
14976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14977   (eval $ac_try) 2>&5
14978   ac_status=$?
14979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980   (exit $ac_status); }; }; then
14981   eval "$as_ac_var=yes"
14982 else
14983   echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.$ac_ext >&5
14985
14986 eval "$as_ac_var=no"
14987 fi
14988 rm -f conftest.err conftest.$ac_objext \
14989       conftest$ac_exeext conftest.$ac_ext
14990 fi
14991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14992 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14993 if test `eval echo '${'$as_ac_var'}'` = yes; then
14994   cat >>confdefs.h <<_ACEOF
14995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14996 _ACEOF
14997
14998 fi
14999 done
15000
15001
15002 for ac_header in varargs.h
15003 do
15004 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15006   echo "$as_me:$LINENO: checking for $ac_header" >&5
15007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15008 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 fi
15011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15013 else
15014   # Is the header compilable?
15015 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15018 /* confdefs.h.  */
15019 _ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h.  */
15023 $ac_includes_default
15024 #include <$ac_header>
15025 _ACEOF
15026 rm -f conftest.$ac_objext
15027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15028   (eval $ac_compile) 2>conftest.er1
15029   ac_status=$?
15030   grep -v '^ *+' conftest.er1 >conftest.err
15031   rm -f conftest.er1
15032   cat conftest.err >&5
15033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15034   (exit $ac_status); } &&
15035          { ac_try='test -z "$ac_c_werror_flag"
15036                          || test ! -s conftest.err'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; } &&
15042          { ac_try='test -s conftest.$ac_objext'
15043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15044   (eval $ac_try) 2>&5
15045   ac_status=$?
15046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047   (exit $ac_status); }; }; then
15048   ac_header_compiler=yes
15049 else
15050   echo "$as_me: failed program was:" >&5
15051 sed 's/^/| /' conftest.$ac_ext >&5
15052
15053 ac_header_compiler=no
15054 fi
15055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15057 echo "${ECHO_T}$ac_header_compiler" >&6
15058
15059 # Is the header present?
15060 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15062 cat >conftest.$ac_ext <<_ACEOF
15063 /* confdefs.h.  */
15064 _ACEOF
15065 cat confdefs.h >>conftest.$ac_ext
15066 cat >>conftest.$ac_ext <<_ACEOF
15067 /* end confdefs.h.  */
15068 #include <$ac_header>
15069 _ACEOF
15070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15071   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15072   ac_status=$?
15073   grep -v '^ *+' conftest.er1 >conftest.err
15074   rm -f conftest.er1
15075   cat conftest.err >&5
15076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077   (exit $ac_status); } >/dev/null; then
15078   if test -s conftest.err; then
15079     ac_cpp_err=$ac_c_preproc_warn_flag
15080     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15081   else
15082     ac_cpp_err=
15083   fi
15084 else
15085   ac_cpp_err=yes
15086 fi
15087 if test -z "$ac_cpp_err"; then
15088   ac_header_preproc=yes
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093   ac_header_preproc=no
15094 fi
15095 rm -f conftest.err conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15097 echo "${ECHO_T}$ac_header_preproc" >&6
15098
15099 # So?  What about this header?
15100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15101   yes:no: )
15102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15106     ac_header_preproc=yes
15107     ;;
15108   no:yes:* )
15109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15121     (
15122       cat <<\_ASBOX
15123 ## ------------------------------------------ ##
15124 ## Report this to the AC_PACKAGE_NAME lists.  ##
15125 ## ------------------------------------------ ##
15126 _ASBOX
15127     ) |
15128       sed "s/^/$as_me: WARNING:     /" >&2
15129     ;;
15130 esac
15131 echo "$as_me:$LINENO: checking for $ac_header" >&5
15132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15133 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136   eval "$as_ac_Header=\$ac_header_preproc"
15137 fi
15138 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15139 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15140
15141 fi
15142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15143   cat >>confdefs.h <<_ACEOF
15144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15145 _ACEOF
15146
15147 fi
15148
15149 done
15150
15151
15152 # End of readline/conio stuff
15153 # -----------------------------------------------------------------------
15154
15155 # -----------------------------------------------------------------------
15156 #  Check for Python support
15157 #
15158 echo "$as_me:$LINENO: checking for Python support" >&5
15159 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15160
15161 # Check whether --with-python or --without-python was given.
15162 if test "${with_python+set}" = set; then
15163   withval="$with_python"
15164
15165   PYTHON_INCDIR=
15166   PYTHON_LIBS=
15167   if test "$withval" != "no"; then
15168      if test "$withval" = "yes"; then
15169         for python_root in /usr /usr/local /usr/sfw; do
15170           for ver in python2.2 python2.3 python2.4 python2.5; do
15171              if test -f $python_root/include/${ver}/Python.h; then
15172                 PYTHON_INCDIR=-I$python_root/include/${ver}
15173                 if test -d $python_root/lib64/${ver}/config; then
15174                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15175                 else
15176                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15177                 fi
15178                 break
15179              fi
15180           done
15181         done
15182         if test x$PYTHON_INCDIR = x; then
15183           if test -f $prefix/include/Python.h; then
15184              PYTHON_INCDIR=-I$prefix/include
15185              if test -d $prefix/lib64/config; then
15186                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15187              else
15188                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15189              fi
15190           else
15191            echo "$as_me:$LINENO: result: no" >&5
15192 echo "${ECHO_T}no" >&6
15193            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15194 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15195    { (exit 1); exit 1; }; }
15196           fi
15197         fi
15198      else
15199         if test -f $withval/Python.h; then
15200            PYTHON_INCDIR=-I$withval
15201            PYTHON_LIBS="-L$withval/config -lpython"
15202         elif test -f $withval/include/Python.h; then
15203            PYTHON_INCDIR=-I$withval/include
15204            if test -d $withval/lib64/config; then
15205               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15206            else
15207               PYTHON_LIBS="-L$withval/lib/config -lpython"
15208            fi
15209         elif test -f $withval/include/python/Python.h; then
15210            PYTHON_INCDIR=-I$withval/include/python
15211            if test -d $withval/lib64/python/config; then
15212               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15213            else
15214               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15215            fi
15216         else
15217            echo "$as_me:$LINENO: result: no" >&5
15218 echo "${ECHO_T}no" >&6
15219            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15220 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15221    { (exit 1); exit 1; }; }
15222         fi
15223      fi
15224      cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_PYTHON 1
15226 _ACEOF
15227
15228      echo "$as_me:$LINENO: result: yes" >&5
15229 echo "${ECHO_T}yes" >&6
15230      support_python=yes
15231      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15232 echo "$as_me: checking for more Python libs" >&6;}
15233      saved_LIBS="$LIBS"; LIBS=
15234      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15235 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15236 if test "${ac_cv_search_shm_open+set}" = set; then
15237   echo $ECHO_N "(cached) $ECHO_C" >&6
15238 else
15239   ac_func_search_save_LIBS=$LIBS
15240 ac_cv_search_shm_open=no
15241 cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h.  */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h.  */
15247
15248 /* Override any gcc2 internal prototype to avoid an error.  */
15249 #ifdef __cplusplus
15250 extern "C"
15251 #endif
15252 /* We use char because int might match the return type of a gcc2
15253    builtin and then its argument prototype would still apply.  */
15254 char shm_open ();
15255 int
15256 main ()
15257 {
15258 shm_open ();
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 rm -f conftest.$ac_objext conftest$ac_exeext
15264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15265   (eval $ac_link) 2>conftest.er1
15266   ac_status=$?
15267   grep -v '^ *+' conftest.er1 >conftest.err
15268   rm -f conftest.er1
15269   cat conftest.err >&5
15270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271   (exit $ac_status); } &&
15272          { ac_try='test -z "$ac_c_werror_flag"
15273                          || test ! -s conftest.err'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; } &&
15279          { ac_try='test -s conftest$ac_exeext'
15280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15281   (eval $ac_try) 2>&5
15282   ac_status=$?
15283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15284   (exit $ac_status); }; }; then
15285   ac_cv_search_shm_open="none required"
15286 else
15287   echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 fi
15291 rm -f conftest.err conftest.$ac_objext \
15292       conftest$ac_exeext conftest.$ac_ext
15293 if test "$ac_cv_search_shm_open" = no; then
15294   for ac_lib in rt; do
15295     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15296     cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302
15303 /* Override any gcc2 internal prototype to avoid an error.  */
15304 #ifdef __cplusplus
15305 extern "C"
15306 #endif
15307 /* We use char because int might match the return type of a gcc2
15308    builtin and then its argument prototype would still apply.  */
15309 char shm_open ();
15310 int
15311 main ()
15312 {
15313 shm_open ();
15314   ;
15315   return 0;
15316 }
15317 _ACEOF
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15320   (eval $ac_link) 2>conftest.er1
15321   ac_status=$?
15322   grep -v '^ *+' conftest.er1 >conftest.err
15323   rm -f conftest.er1
15324   cat conftest.err >&5
15325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326   (exit $ac_status); } &&
15327          { ac_try='test -z "$ac_c_werror_flag"
15328                          || test ! -s conftest.err'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; } &&
15334          { ac_try='test -s conftest$ac_exeext'
15335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15336   (eval $ac_try) 2>&5
15337   ac_status=$?
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); }; }; then
15340   ac_cv_search_shm_open="-l$ac_lib"
15341 break
15342 else
15343   echo "$as_me: failed program was:" >&5
15344 sed 's/^/| /' conftest.$ac_ext >&5
15345
15346 fi
15347 rm -f conftest.err conftest.$ac_objext \
15348       conftest$ac_exeext conftest.$ac_ext
15349   done
15350 fi
15351 LIBS=$ac_func_search_save_LIBS
15352 fi
15353 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15354 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15355 if test "$ac_cv_search_shm_open" != no; then
15356   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15357
15358 fi
15359
15360
15361 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15362 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15363 if test "${ac_cv_lib_util_openpty+set}" = set; then
15364   echo $ECHO_N "(cached) $ECHO_C" >&6
15365 else
15366   ac_check_lib_save_LIBS=$LIBS
15367 LIBS="-lutil  $LIBS"
15368 cat >conftest.$ac_ext <<_ACEOF
15369 /* confdefs.h.  */
15370 _ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h.  */
15374
15375 /* Override any gcc2 internal prototype to avoid an error.  */
15376 #ifdef __cplusplus
15377 extern "C"
15378 #endif
15379 /* We use char because int might match the return type of a gcc2
15380    builtin and then its argument prototype would still apply.  */
15381 char openpty ();
15382 int
15383 main ()
15384 {
15385 openpty ();
15386   ;
15387   return 0;
15388 }
15389 _ACEOF
15390 rm -f conftest.$ac_objext conftest$ac_exeext
15391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15392   (eval $ac_link) 2>conftest.er1
15393   ac_status=$?
15394   grep -v '^ *+' conftest.er1 >conftest.err
15395   rm -f conftest.er1
15396   cat conftest.err >&5
15397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15398   (exit $ac_status); } &&
15399          { ac_try='test -z "$ac_c_werror_flag"
15400                          || test ! -s conftest.err'
15401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402   (eval $ac_try) 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; } &&
15406          { ac_try='test -s conftest$ac_exeext'
15407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15408   (eval $ac_try) 2>&5
15409   ac_status=$?
15410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411   (exit $ac_status); }; }; then
15412   ac_cv_lib_util_openpty=yes
15413 else
15414   echo "$as_me: failed program was:" >&5
15415 sed 's/^/| /' conftest.$ac_ext >&5
15416
15417 ac_cv_lib_util_openpty=no
15418 fi
15419 rm -f conftest.err conftest.$ac_objext \
15420       conftest$ac_exeext conftest.$ac_ext
15421 LIBS=$ac_check_lib_save_LIBS
15422 fi
15423 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15424 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15425 if test $ac_cv_lib_util_openpty = yes; then
15426   cat >>confdefs.h <<_ACEOF
15427 #define HAVE_LIBUTIL 1
15428 _ACEOF
15429
15430   LIBS="-lutil $LIBS"
15431
15432 fi
15433
15434      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15435      LIBS="$saved_LIBS"
15436   else
15437      echo "$as_me:$LINENO: result: no" >&5
15438 echo "${ECHO_T}no" >&6
15439   fi
15440
15441 else
15442
15443   echo "$as_me:$LINENO: result: no" >&5
15444 echo "${ECHO_T}no" >&6
15445
15446 fi;
15447
15448
15449
15450 #
15451 # Find where sockets are (especially for Solaris)
15452 # Do this before the TCP Wrappers test since tcp wrappers
15453 # uses the socket library and some linkers are stupid.
15454 #
15455 echo "$as_me:$LINENO: checking for socket" >&5
15456 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15457 if test "${ac_cv_func_socket+set}" = set; then
15458   echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460   cat >conftest.$ac_ext <<_ACEOF
15461 /* confdefs.h.  */
15462 _ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h.  */
15466 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15467    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15468 #define socket innocuous_socket
15469
15470 /* System header to define __stub macros and hopefully few prototypes,
15471     which can conflict with char socket (); below.
15472     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15473     <limits.h> exists even on freestanding compilers.  */
15474
15475 #ifdef __STDC__
15476 # include <limits.h>
15477 #else
15478 # include <assert.h>
15479 #endif
15480
15481 #undef socket
15482
15483 /* Override any gcc2 internal prototype to avoid an error.  */
15484 #ifdef __cplusplus
15485 extern "C"
15486 {
15487 #endif
15488 /* We use char because int might match the return type of a gcc2
15489    builtin and then its argument prototype would still apply.  */
15490 char socket ();
15491 /* The GNU C library defines this for functions which it implements
15492     to always fail with ENOSYS.  Some functions are actually named
15493     something starting with __ and the normal name is an alias.  */
15494 #if defined (__stub_socket) || defined (__stub___socket)
15495 choke me
15496 #else
15497 char (*f) () = socket;
15498 #endif
15499 #ifdef __cplusplus
15500 }
15501 #endif
15502
15503 int
15504 main ()
15505 {
15506 return f != socket;
15507   ;
15508   return 0;
15509 }
15510 _ACEOF
15511 rm -f conftest.$ac_objext conftest$ac_exeext
15512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15513   (eval $ac_link) 2>conftest.er1
15514   ac_status=$?
15515   grep -v '^ *+' conftest.er1 >conftest.err
15516   rm -f conftest.er1
15517   cat conftest.err >&5
15518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519   (exit $ac_status); } &&
15520          { ac_try='test -z "$ac_c_werror_flag"
15521                          || test ! -s conftest.err'
15522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523   (eval $ac_try) 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; } &&
15527          { ac_try='test -s conftest$ac_exeext'
15528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529   (eval $ac_try) 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; }; then
15533   ac_cv_func_socket=yes
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538 ac_cv_func_socket=no
15539 fi
15540 rm -f conftest.err conftest.$ac_objext \
15541       conftest$ac_exeext conftest.$ac_ext
15542 fi
15543 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15544 echo "${ECHO_T}$ac_cv_func_socket" >&6
15545 if test $ac_cv_func_socket = yes; then
15546   echo "$as_me:$LINENO: result: using libc's socket" >&5
15547 echo "${ECHO_T}using libc's socket" >&6
15548 else
15549
15550 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15551 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15552 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15553   echo $ECHO_N "(cached) $ECHO_C" >&6
15554 else
15555   ac_check_lib_save_LIBS=$LIBS
15556 LIBS="-lxnet  $LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15558 /* confdefs.h.  */
15559 _ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h.  */
15563
15564 /* Override any gcc2 internal prototype to avoid an error.  */
15565 #ifdef __cplusplus
15566 extern "C"
15567 #endif
15568 /* We use char because int might match the return type of a gcc2
15569    builtin and then its argument prototype would still apply.  */
15570 char socket ();
15571 int
15572 main ()
15573 {
15574 socket ();
15575   ;
15576   return 0;
15577 }
15578 _ACEOF
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581   (eval $ac_link) 2>conftest.er1
15582   ac_status=$?
15583   grep -v '^ *+' conftest.er1 >conftest.err
15584   rm -f conftest.er1
15585   cat conftest.err >&5
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); } &&
15588          { ac_try='test -z "$ac_c_werror_flag"
15589                          || test ! -s conftest.err'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; } &&
15595          { ac_try='test -s conftest$ac_exeext'
15596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597   (eval $ac_try) 2>&5
15598   ac_status=$?
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); }; }; then
15601   ac_cv_lib_xnet_socket=yes
15602 else
15603   echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_cv_lib_xnet_socket=no
15607 fi
15608 rm -f conftest.err conftest.$ac_objext \
15609       conftest$ac_exeext conftest.$ac_ext
15610 LIBS=$ac_check_lib_save_LIBS
15611 fi
15612 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15613 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15614 if test $ac_cv_lib_xnet_socket = yes; then
15615   cat >>confdefs.h <<_ACEOF
15616 #define HAVE_LIBXNET 1
15617 _ACEOF
15618
15619   LIBS="-lxnet $LIBS"
15620
15621 fi
15622
15623
15624 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15625 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15626 if test "${ac_cv_lib_socket_socket+set}" = set; then
15627   echo $ECHO_N "(cached) $ECHO_C" >&6
15628 else
15629   ac_check_lib_save_LIBS=$LIBS
15630 LIBS="-lsocket  $LIBS"
15631 cat >conftest.$ac_ext <<_ACEOF
15632 /* confdefs.h.  */
15633 _ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h.  */
15637
15638 /* Override any gcc2 internal prototype to avoid an error.  */
15639 #ifdef __cplusplus
15640 extern "C"
15641 #endif
15642 /* We use char because int might match the return type of a gcc2
15643    builtin and then its argument prototype would still apply.  */
15644 char socket ();
15645 int
15646 main ()
15647 {
15648 socket ();
15649   ;
15650   return 0;
15651 }
15652 _ACEOF
15653 rm -f conftest.$ac_objext conftest$ac_exeext
15654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15655   (eval $ac_link) 2>conftest.er1
15656   ac_status=$?
15657   grep -v '^ *+' conftest.er1 >conftest.err
15658   rm -f conftest.er1
15659   cat conftest.err >&5
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); } &&
15662          { ac_try='test -z "$ac_c_werror_flag"
15663                          || test ! -s conftest.err'
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); }; } &&
15669          { ac_try='test -s conftest$ac_exeext'
15670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671   (eval $ac_try) 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_lib_socket_socket=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680 ac_cv_lib_socket_socket=no
15681 fi
15682 rm -f conftest.err conftest.$ac_objext \
15683       conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15685 fi
15686 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15687 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15688 if test $ac_cv_lib_socket_socket = yes; then
15689   cat >>confdefs.h <<_ACEOF
15690 #define HAVE_LIBSOCKET 1
15691 _ACEOF
15692
15693   LIBS="-lsocket $LIBS"
15694
15695 fi
15696
15697
15698 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15699 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15700 if test "${ac_cv_lib_inet_socket+set}" = set; then
15701   echo $ECHO_N "(cached) $ECHO_C" >&6
15702 else
15703   ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-linet  $LIBS"
15705 cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711
15712 /* Override any gcc2 internal prototype to avoid an error.  */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 /* We use char because int might match the return type of a gcc2
15717    builtin and then its argument prototype would still apply.  */
15718 char socket ();
15719 int
15720 main ()
15721 {
15722 socket ();
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -z "$ac_c_werror_flag"
15737                          || test ! -s conftest.err'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749   ac_cv_lib_inet_socket=yes
15750 else
15751   echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.$ac_ext >&5
15753
15754 ac_cv_lib_inet_socket=no
15755 fi
15756 rm -f conftest.err conftest.$ac_objext \
15757       conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15761 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15762 if test $ac_cv_lib_inet_socket = yes; then
15763   cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBINET 1
15765 _ACEOF
15766
15767   LIBS="-linet $LIBS"
15768
15769 fi
15770
15771 fi
15772
15773
15774
15775 # -----------------------------------------------------------
15776 # Check whether user wants TCP wrappers support (default off)
15777 # -----------------------------------------------------------
15778 TCPW_MSG="no"
15779 WRAPLIBS=""
15780
15781 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15782 if test "${with_tcp_wrappers+set}" = set; then
15783   withval="$with_tcp_wrappers"
15784
15785     if test "x$withval" != "xno" ; then
15786        saved_LIBS="$LIBS"
15787        LIBS="$saved_LIBS -lwrap"
15788        echo "$as_me:$LINENO: checking for libwrap" >&5
15789 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15790        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15791 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15792 if test "${ac_cv_search_nanosleep+set}" = set; then
15793   echo $ECHO_N "(cached) $ECHO_C" >&6
15794 else
15795   ac_func_search_save_LIBS=$LIBS
15796 ac_cv_search_nanosleep=no
15797 cat >conftest.$ac_ext <<_ACEOF
15798 /* confdefs.h.  */
15799 _ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h.  */
15803
15804 /* Override any gcc2 internal prototype to avoid an error.  */
15805 #ifdef __cplusplus
15806 extern "C"
15807 #endif
15808 /* We use char because int might match the return type of a gcc2
15809    builtin and then its argument prototype would still apply.  */
15810 char nanosleep ();
15811 int
15812 main ()
15813 {
15814 nanosleep ();
15815   ;
15816   return 0;
15817 }
15818 _ACEOF
15819 rm -f conftest.$ac_objext conftest$ac_exeext
15820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15821   (eval $ac_link) 2>conftest.er1
15822   ac_status=$?
15823   grep -v '^ *+' conftest.er1 >conftest.err
15824   rm -f conftest.er1
15825   cat conftest.err >&5
15826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827   (exit $ac_status); } &&
15828          { ac_try='test -z "$ac_c_werror_flag"
15829                          || test ! -s conftest.err'
15830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831   (eval $ac_try) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; } &&
15835          { ac_try='test -s conftest$ac_exeext'
15836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15837   (eval $ac_try) 2>&5
15838   ac_status=$?
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); }; }; then
15841   ac_cv_search_nanosleep="none required"
15842 else
15843   echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 fi
15847 rm -f conftest.err conftest.$ac_objext \
15848       conftest$ac_exeext conftest.$ac_ext
15849 if test "$ac_cv_search_nanosleep" = no; then
15850   for ac_lib in rt; do
15851     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15852     cat >conftest.$ac_ext <<_ACEOF
15853 /* confdefs.h.  */
15854 _ACEOF
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h.  */
15858
15859 /* Override any gcc2 internal prototype to avoid an error.  */
15860 #ifdef __cplusplus
15861 extern "C"
15862 #endif
15863 /* We use char because int might match the return type of a gcc2
15864    builtin and then its argument prototype would still apply.  */
15865 char nanosleep ();
15866 int
15867 main ()
15868 {
15869 nanosleep ();
15870   ;
15871   return 0;
15872 }
15873 _ACEOF
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876   (eval $ac_link) 2>conftest.er1
15877   ac_status=$?
15878   grep -v '^ *+' conftest.er1 >conftest.err
15879   rm -f conftest.er1
15880   cat conftest.err >&5
15881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882   (exit $ac_status); } &&
15883          { ac_try='test -z "$ac_c_werror_flag"
15884                          || test ! -s conftest.err'
15885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886   (eval $ac_try) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; } &&
15890          { ac_try='test -s conftest$ac_exeext'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; }; then
15896   ac_cv_search_nanosleep="-l$ac_lib"
15897 break
15898 else
15899   echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 fi
15903 rm -f conftest.err conftest.$ac_objext \
15904       conftest$ac_exeext conftest.$ac_ext
15905   done
15906 fi
15907 LIBS=$ac_func_search_save_LIBS
15908 fi
15909 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15910 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15911 if test "$ac_cv_search_nanosleep" != no; then
15912   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15913
15914 fi
15915
15916        cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922  #include <sys/types.h>
15923             #include <tcpd.h>
15924              int deny_severity = 0;
15925              int allow_severity = 0;
15926              struct request_info *req;
15927 int
15928 main ()
15929 {
15930  hosts_access(req);
15931   ;
15932   return 0;
15933 }
15934 _ACEOF
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15937   (eval $ac_link) 2>conftest.er1
15938   ac_status=$?
15939   grep -v '^ *+' conftest.er1 >conftest.err
15940   rm -f conftest.er1
15941   cat conftest.err >&5
15942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943   (exit $ac_status); } &&
15944          { ac_try='test -z "$ac_c_werror_flag"
15945                          || test ! -s conftest.err'
15946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947   (eval $ac_try) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; } &&
15951          { ac_try='test -s conftest$ac_exeext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957
15958             echo "$as_me:$LINENO: result: yes" >&5
15959 echo "${ECHO_T}yes" >&6
15960
15961 cat >>confdefs.h <<\_ACEOF
15962 #define HAVE_LIBWRAP 1
15963 _ACEOF
15964
15965             TCPW_MSG="yes"
15966             LIBS="$saved_LIBS"
15967             WRAPLIBS="-lwrap"
15968
15969 else
15970   echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15972
15973
15974             LIBS="$saved_LIBS -lwrap -lnsl"
15975             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15976             cat >conftest.$ac_ext <<_ACEOF
15977 /* confdefs.h.  */
15978 _ACEOF
15979 cat confdefs.h >>conftest.$ac_ext
15980 cat >>conftest.$ac_ext <<_ACEOF
15981 /* end confdefs.h.  */
15982  #include <sys/types.h>
15983                  #include <tcpd.h>
15984                  int deny_severity = 0;
15985                  int allow_severity = 0;
15986                  struct request_info *req;
15987 int
15988 main ()
15989 {
15990  hosts_access(req);
15991   ;
15992   return 0;
15993 }
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15997   (eval $ac_link) 2>conftest.er1
15998   ac_status=$?
15999   grep -v '^ *+' conftest.er1 >conftest.err
16000   rm -f conftest.er1
16001   cat conftest.err >&5
16002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003   (exit $ac_status); } &&
16004          { ac_try='test -z "$ac_c_werror_flag"
16005                          || test ! -s conftest.err'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; } &&
16011          { ac_try='test -s conftest$ac_exeext'
16012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16013   (eval $ac_try) 2>&5
16014   ac_status=$?
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); }; }; then
16017
16018                  echo "$as_me:$LINENO: result: yes" >&5
16019 echo "${ECHO_T}yes" >&6
16020
16021 cat >>confdefs.h <<\_ACEOF
16022 #define HAVE_LIBWRAP 1
16023 _ACEOF
16024
16025                  TCPW_MSG="yes"
16026                  LIBS="$saved_LIBS"
16027                  WRAPLIBS="-lwrap"
16028
16029 else
16030   echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16032
16033 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16034 echo "$as_me: error: *** libwrap missing" >&2;}
16035    { (exit 1); exit 1; }; }
16036
16037 fi
16038 rm -f conftest.err conftest.$ac_objext \
16039       conftest$ac_exeext conftest.$ac_ext
16040
16041 fi
16042 rm -f conftest.err conftest.$ac_objext \
16043       conftest$ac_exeext conftest.$ac_ext
16044     fi
16045
16046
16047 fi;
16048
16049 # -----------------------------------------------------------
16050 # Check whether OpenSSL is available
16051 # -----------------------------------------------------------
16052 echo "$as_me:$LINENO: checking for OpenSSL" >&5
16053 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
16054
16055 # Check whether --with-openssl or --without-openssl was given.
16056 if test "${with_openssl+set}" = set; then
16057   withval="$with_openssl"
16058   with_openssl_directory=${withval}
16059 fi;
16060
16061 if test "x$with_openssl_directory" != "x"; then
16062         OPENSSL_LIBS="-lssl -lcrypto"
16063         OPENSSL_INC=""
16064
16065         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16066                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16067                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16068         fi
16069
16070         saved_LIBS="${LIBS}"
16071         saved_CFLAGS="${CFLAGS}"
16072         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16073         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16074
16075         cat >conftest.$ac_ext <<_ACEOF
16076 /* confdefs.h.  */
16077 _ACEOF
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h.  */
16081  #include <openssl/ssl.h>
16082 int
16083 main ()
16084 {
16085  CRYPTO_set_id_callback(NULL);
16086   ;
16087   return 0;
16088 }
16089 _ACEOF
16090 rm -f conftest.$ac_objext conftest$ac_exeext
16091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16092   (eval $ac_link) 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } &&
16099          { ac_try='test -z "$ac_c_werror_flag"
16100                          || test ! -s conftest.err'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; } &&
16106          { ac_try='test -s conftest$ac_exeext'
16107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108   (eval $ac_try) 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; }; then
16112
16113                         support_tls="yes"
16114                         support_crypto="yes"
16115
16116 else
16117   echo "$as_me: failed program was:" >&5
16118 sed 's/^/| /' conftest.$ac_ext >&5
16119
16120  support_tls="no"
16121
16122 fi
16123 rm -f conftest.err conftest.$ac_objext \
16124       conftest$ac_exeext conftest.$ac_ext
16125
16126         cat >conftest.$ac_ext <<_ACEOF
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132  #include <openssl/evp.h>
16133 int
16134 main ()
16135 {
16136  EVP_sha512();
16137   ;
16138   return 0;
16139 }
16140 _ACEOF
16141 rm -f conftest.$ac_objext conftest$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143   (eval $ac_link) 2>conftest.er1
16144   ac_status=$?
16145   grep -v '^ *+' conftest.er1 >conftest.err
16146   rm -f conftest.er1
16147   cat conftest.err >&5
16148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149   (exit $ac_status); } &&
16150          { ac_try='test -z "$ac_c_werror_flag"
16151                          || test ! -s conftest.err'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; } &&
16157          { ac_try='test -s conftest$ac_exeext'
16158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16159   (eval $ac_try) 2>&5
16160   ac_status=$?
16161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); }; }; then
16163    ac_cv_openssl_sha2="yes"
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168  ac_cv_openssl_sha2="no"
16169
16170 fi
16171 rm -f conftest.err conftest.$ac_objext \
16172       conftest$ac_exeext conftest.$ac_ext
16173
16174         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16175         # implementation, presumably for export reasons. If 192bit AES
16176         # is available, we assume that we're running with a 'non-export'
16177         # openssl library.
16178         cat >conftest.$ac_ext <<_ACEOF
16179 /* confdefs.h.  */
16180 _ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h.  */
16184  #include <openssl/evp.h>
16185 int
16186 main ()
16187 {
16188  EVP_aes_192_cbc();
16189   ;
16190   return 0;
16191 }
16192 _ACEOF
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16195   (eval $ac_link) 2>conftest.er1
16196   ac_status=$?
16197   grep -v '^ *+' conftest.er1 >conftest.err
16198   rm -f conftest.er1
16199   cat conftest.err >&5
16200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201   (exit $ac_status); } &&
16202          { ac_try='test -z "$ac_c_werror_flag"
16203                          || test ! -s conftest.err'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; } &&
16209          { ac_try='test -s conftest$ac_exeext'
16210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16211   (eval $ac_try) 2>&5
16212   ac_status=$?
16213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214   (exit $ac_status); }; }; then
16215    ac_cv_openssl_export="no"
16216 else
16217   echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.$ac_ext >&5
16219
16220  ac_cv_openssl_export="yes"
16221
16222 fi
16223 rm -f conftest.err conftest.$ac_objext \
16224       conftest$ac_exeext conftest.$ac_ext
16225
16226         LIBS="${saved_LIBS}"
16227         CFLAGS="${saved_CFLAGS}"
16228
16229         if test "$support_tls" = "yes"; then
16230
16231 cat >>confdefs.h <<\_ACEOF
16232 #define HAVE_OPENSSL 1
16233 _ACEOF
16234
16235
16236 cat >>confdefs.h <<\_ACEOF
16237 #define HAVE_TLS 1
16238 _ACEOF
16239
16240
16241 cat >>confdefs.h <<\_ACEOF
16242 #define HAVE_CRYPTO 1
16243 _ACEOF
16244
16245         fi
16246
16247         if test "$ac_cv_openssl_sha2" = "yes"; then
16248
16249 cat >>confdefs.h <<\_ACEOF
16250 #define HAVE_SHA2 1
16251 _ACEOF
16252
16253         fi
16254
16255         if test "$ac_cv_openssl_export" = "yes"; then
16256
16257 cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16259 _ACEOF
16260
16261         fi
16262 else
16263         support_tls="no"
16264         support_crypto="no"
16265         OPENSSL_LIBS=""
16266         OPENSSL_INC=""
16267 fi
16268
16269 echo "$as_me:$LINENO: result: $support_tls" >&5
16270 echo "${ECHO_T}$support_tls" >&6
16271
16272
16273
16274
16275 # -----------------------------------------------------------
16276 # Python and OpenSSL are using dlopen
16277 # -----------------------------------------------------------
16278
16279 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16280    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16281 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16282 if test "${ac_cv_search_dlopen+set}" = set; then
16283   echo $ECHO_N "(cached) $ECHO_C" >&6
16284 else
16285   ac_func_search_save_LIBS=$LIBS
16286 ac_cv_search_dlopen=no
16287 cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293
16294 /* Override any gcc2 internal prototype to avoid an error.  */
16295 #ifdef __cplusplus
16296 extern "C"
16297 #endif
16298 /* We use char because int might match the return type of a gcc2
16299    builtin and then its argument prototype would still apply.  */
16300 char dlopen ();
16301 int
16302 main ()
16303 {
16304 dlopen ();
16305   ;
16306   return 0;
16307 }
16308 _ACEOF
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311   (eval $ac_link) 2>conftest.er1
16312   ac_status=$?
16313   grep -v '^ *+' conftest.er1 >conftest.err
16314   rm -f conftest.er1
16315   cat conftest.err >&5
16316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317   (exit $ac_status); } &&
16318          { ac_try='test -z "$ac_c_werror_flag"
16319                          || test ! -s conftest.err'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; } &&
16325          { ac_try='test -s conftest$ac_exeext'
16326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16327   (eval $ac_try) 2>&5
16328   ac_status=$?
16329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16330   (exit $ac_status); }; }; then
16331   ac_cv_search_dlopen="none required"
16332 else
16333   echo "$as_me: failed program was:" >&5
16334 sed 's/^/| /' conftest.$ac_ext >&5
16335
16336 fi
16337 rm -f conftest.err conftest.$ac_objext \
16338       conftest$ac_exeext conftest.$ac_ext
16339 if test "$ac_cv_search_dlopen" = no; then
16340   for ac_lib in dl; do
16341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16342     cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h.  */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h.  */
16348
16349 /* Override any gcc2 internal prototype to avoid an error.  */
16350 #ifdef __cplusplus
16351 extern "C"
16352 #endif
16353 /* We use char because int might match the return type of a gcc2
16354    builtin and then its argument prototype would still apply.  */
16355 char dlopen ();
16356 int
16357 main ()
16358 {
16359 dlopen ();
16360   ;
16361   return 0;
16362 }
16363 _ACEOF
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16366   (eval $ac_link) 2>conftest.er1
16367   ac_status=$?
16368   grep -v '^ *+' conftest.er1 >conftest.err
16369   rm -f conftest.er1
16370   cat conftest.err >&5
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   (exit $ac_status); } &&
16373          { ac_try='test -z "$ac_c_werror_flag"
16374                          || test ! -s conftest.err'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; } &&
16380          { ac_try='test -s conftest$ac_exeext'
16381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382   (eval $ac_try) 2>&5
16383   ac_status=$?
16384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385   (exit $ac_status); }; }; then
16386   ac_cv_search_dlopen="-l$ac_lib"
16387 break
16388 else
16389   echo "$as_me: failed program was:" >&5
16390 sed 's/^/| /' conftest.$ac_ext >&5
16391
16392 fi
16393 rm -f conftest.err conftest.$ac_objext \
16394       conftest$ac_exeext conftest.$ac_ext
16395   done
16396 fi
16397 LIBS=$ac_func_search_save_LIBS
16398 fi
16399 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16400 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16401 if test "$ac_cv_search_dlopen" != no; then
16402   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16403
16404 fi
16405
16406 fi
16407
16408 # ------------------------------------------
16409 # Where to place working dir
16410 # ------------------------------------------
16411 working_dir=`eval echo ${prefix}/var/bacula/working`
16412
16413 # Check whether --with-working-dir or --without-working-dir was given.
16414 if test "${with_working_dir+set}" = set; then
16415   withval="$with_working_dir"
16416
16417        if test "x$withval" != "xno" ; then
16418               working_dir=$withval
16419        fi
16420
16421
16422 fi;
16423
16424
16425
16426
16427 # ------------------------------------------
16428 # Where to place scriptdir (script files)
16429 # ------------------------------------------
16430 scriptdir=`eval echo ${sysconfdir}`
16431
16432 # Check whether --with-scriptdir or --without-scriptdir was given.
16433 if test "${with_scriptdir+set}" = set; then
16434   withval="$with_scriptdir"
16435
16436        if test "x$withval" != "xno" ; then
16437               scriptdir=$withval
16438        fi
16439
16440
16441 fi;
16442
16443
16444
16445
16446 # ------------------------------------------
16447 # Where to send dump email
16448 # ------------------------------------------
16449 dump_email=root@localhost
16450
16451 # Check whether --with-dump-email or --without-dump-email was given.
16452 if test "${with_dump_email+set}" = set; then
16453   withval="$with_dump_email"
16454
16455        if test "x$withval" != "xno" ; then
16456               dump_email=$withval
16457        fi
16458
16459
16460 fi;
16461
16462
16463
16464 # ------------------------------------------
16465 # Where to send job email
16466 # ------------------------------------------
16467 job_email=root@localhost
16468
16469 # Check whether --with-job-email or --without-job-email was given.
16470 if test "${with_job_email+set}" = set; then
16471   withval="$with_job_email"
16472
16473        if test "x$withval" != "xno" ; then
16474               job_email=$withval
16475        fi
16476
16477
16478 fi;
16479
16480
16481
16482 # ------------------------------------------
16483 # Where to find smtp host
16484 # ------------------------------------------
16485 smtp_host=localhost
16486
16487 # Check whether --with-smtp_host or --without-smtp_host was given.
16488 if test "${with_smtp_host+set}" = set; then
16489   withval="$with_smtp_host"
16490
16491        if test "x$withval" != "xno" ; then
16492               smtp_host=$withval
16493        fi
16494
16495
16496 fi;
16497
16498
16499
16500
16501 # ------------------------------------
16502 # Where to place pid files
16503 # ------------------------------------
16504 piddir=/var/run
16505
16506 # Check whether --with-pid-dir or --without-pid-dir was given.
16507 if test "${with_pid_dir+set}" = set; then
16508   withval="$with_pid_dir"
16509
16510         if test "x$withval" != "xno" ; then
16511             piddir=$withval
16512         fi
16513
16514
16515 fi;
16516
16517 cat >>confdefs.h <<_ACEOF
16518 #define _PATH_BACULA_PIDDIR "$piddir"
16519 _ACEOF
16520
16521
16522
16523
16524 # ------------------------------------
16525 # Where to place subsys "lock file"
16526 # ------------------------------------
16527 subsysdir=/var/run/subsys
16528 if test -d /var/run/subsys; then
16529    subsysdir=/var/run/subsys
16530 elif test -d /var/lock/subsys; then
16531    subsysdir=/var/lock/subsys
16532 else
16533    subsysdir=/var/run/subsys
16534 fi
16535
16536 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16537 if test "${with_subsys_dir+set}" = set; then
16538   withval="$with_subsys_dir"
16539
16540         if test "x$withval" != "xno" ; then
16541             subsysdir=$withval
16542         fi
16543
16544
16545 fi;
16546
16547
16548
16549
16550
16551 # ------------------------------------
16552 # Where to start assigning ports
16553 # ------------------------------------
16554 baseport=9101
16555
16556 # Check whether --with-baseport or --without-baseport was given.
16557 if test "${with_baseport+set}" = set; then
16558   withval="$with_baseport"
16559
16560         if test "x$withval" != "xno" ; then
16561              baseport=$withval
16562         fi
16563
16564
16565 fi;
16566
16567
16568 dir_port=`expr $baseport`
16569 fd_port=`expr $baseport + 1`
16570 sd_port=`expr $fd_port + 1`
16571
16572
16573
16574
16575
16576
16577 # ------------------------------------------
16578 # Generate passwords
16579 # ------------------------------------------
16580 dir_password=
16581
16582 # Check whether --with-dir-password or --without-dir-password was given.
16583 if test "${with_dir_password+set}" = set; then
16584   withval="$with_dir_password"
16585
16586        if test "x$withval" != "xno" ; then
16587            dir_password=$withval
16588        fi
16589
16590
16591 fi;
16592
16593 if test "x$dir_password" = "x" ; then
16594    if test "x$OPENSSL" = "xnone" ; then
16595       key=`autoconf/randpass 33`
16596    else
16597       key=`openssl rand -base64 33`
16598    fi
16599    dir_password=$key
16600 fi
16601
16602 fd_password=
16603
16604 # Check whether --with-fd-password or --without-fd-password was given.
16605 if test "${with_fd_password+set}" = set; then
16606   withval="$with_fd_password"
16607
16608        if test "x$withval" != "xno" ; then
16609            fd_password=$withval
16610        fi
16611
16612
16613 fi;
16614
16615 if test "x$fd_password" = "x" ; then
16616    if test "x$OPENSSL" = "xnone" ; then
16617       key=`autoconf/randpass 37`
16618    else
16619       key=`openssl rand -base64 33`
16620    fi
16621    fd_password=$key
16622 fi
16623
16624 sd_password=
16625
16626 # Check whether --with-sd-password or --without-sd-password was given.
16627 if test "${with_sd_password+set}" = set; then
16628   withval="$with_sd_password"
16629
16630        if test "x$withval" != "xno" ; then
16631            sd_password=$withval
16632        fi
16633
16634
16635 fi;
16636
16637 if test "x$sd_password" = "x" ; then
16638    if test "x$OPENSSL" = "xnone" ; then
16639       key=`autoconf/randpass 41`
16640    else
16641       key=`openssl rand -base64 33`
16642    fi
16643    sd_password=$key
16644 fi
16645
16646 mon_dir_password=
16647
16648 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16649 if test "${with_mon_dir_password+set}" = set; then
16650   withval="$with_mon_dir_password"
16651
16652        if test "x$withval" != "xno" ; then
16653            mon_dir_password=$withval
16654        fi
16655
16656
16657 fi;
16658
16659 if test "x$mon_dir_password" = "x" ; then
16660    if test "x$OPENSSL" = "xnone" ; then
16661       key=`autoconf/randpass 33`
16662    else
16663       key=`openssl rand -base64 33`
16664    fi
16665    mon_dir_password=$key
16666 fi
16667
16668 mon_fd_password=
16669
16670 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16671 if test "${with_mon_fd_password+set}" = set; then
16672   withval="$with_mon_fd_password"
16673
16674        if test "x$withval" != "xno" ; then
16675            mon_fd_password=$withval
16676        fi
16677
16678
16679 fi;
16680
16681 if test "x$mon_fd_password" = "x" ; then
16682    if test "x$OPENSSL" = "xnone" ; then
16683       key=`autoconf/randpass 37`
16684    else
16685       key=`openssl rand -base64 33`
16686    fi
16687    mon_fd_password=$key
16688 fi
16689
16690 mon_sd_password=
16691
16692 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16693 if test "${with_mon_sd_password+set}" = set; then
16694   withval="$with_mon_sd_password"
16695
16696        if test "x$withval" != "xno" ; then
16697            mon_sd_password=$withval
16698        fi
16699
16700
16701 fi;
16702
16703 if test "x$mon_sd_password" = "x" ; then
16704    if test "x$OPENSSL" = "xnone" ; then
16705       key=`autoconf/randpass 41`
16706    else
16707       key=`openssl rand -base64 33`
16708    fi
16709    mon_sd_password=$key
16710 fi
16711
16712
16713
16714
16715
16716
16717
16718
16719 #
16720 # Pickup any database name
16721 #
16722 db_name=bacula
16723
16724 # Check whether --with-db_name or --without-db_name was given.
16725 if test "${with_db_name+set}" = set; then
16726   withval="$with_db_name"
16727
16728         if test "x$withval" != "x" ; then
16729              db_name=$withval
16730         fi
16731
16732
16733 fi;
16734
16735
16736 db_user=bacula
16737
16738 # Check whether --with-db_user or --without-db_user was given.
16739 if test "${with_db_user+set}" = set; then
16740   withval="$with_db_user"
16741
16742         if test "x$withval" != "x" ; then
16743              db_user=$withval
16744         fi
16745
16746
16747 fi;
16748
16749
16750
16751 #
16752 # Handle users and groups for each daemon
16753 #
16754 dir_user=
16755
16756 # Check whether --with-dir_user or --without-dir_user was given.
16757 if test "${with_dir_user+set}" = set; then
16758   withval="$with_dir_user"
16759
16760         if test "x$withval" != "x" ; then
16761              dir_user=$withval
16762         fi
16763
16764
16765 fi;
16766
16767 dir_group=
16768
16769 # Check whether --with-dir_group or --without-dir_group was given.
16770 if test "${with_dir_group+set}" = set; then
16771   withval="$with_dir_group"
16772
16773         if test "x$withval" != "x" ; then
16774              dir_group=$withval
16775         fi
16776
16777
16778 fi;
16779
16780 sd_user=
16781
16782 # Check whether --with-sd_user or --without-sd_user was given.
16783 if test "${with_sd_user+set}" = set; then
16784   withval="$with_sd_user"
16785
16786         if test "x$withval" != "x" ; then
16787              sd_user=$withval
16788         fi
16789
16790
16791 fi;
16792
16793 sd_group=
16794
16795 # Check whether --with-sd_group or --without-sd_group was given.
16796 if test "${with_sd_group+set}" = set; then
16797   withval="$with_sd_group"
16798
16799         if test "x$withval" != "x" ; then
16800              sd_group=$withval
16801         fi
16802
16803
16804 fi;
16805
16806 fd_user=
16807
16808 # Check whether --with-fd_user or --without-fd_user was given.
16809 if test "${with_fd_user+set}" = set; then
16810   withval="$with_fd_user"
16811
16812         if test "x$withval" != "x" ; then
16813              fd_user=$withval
16814         fi
16815
16816
16817 fi;
16818
16819 fd_group=
16820
16821 # Check whether --with-fd_group or --without-fd_group was given.
16822 if test "${with_fd_group+set}" = set; then
16823   withval="$with_fd_group"
16824
16825         if test "x$withval" != "x" ; then
16826              fd_group=$withval
16827         fi
16828
16829
16830 fi;
16831
16832
16833
16834
16835
16836
16837
16838
16839 #
16840 # allow setting default executable permissions
16841 #
16842 SBINPERM=0754
16843
16844 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16845 if test "${with_sbin_perm+set}" = set; then
16846   withval="$with_sbin_perm"
16847
16848         if test "x$withval" != "x" ; then
16849             SBINPERM=$withval
16850         fi
16851
16852
16853 fi;
16854
16855
16856
16857 # ------------------------------------------------
16858 # Bacula check for various SQL database engines
16859 # ------------------------------------------------
16860 SQL_LIB=
16861
16862 db_found=no
16863 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16864 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16865
16866 # Check whether --with-postgresql or --without-postgresql was given.
16867 if test "${with_postgresql+set}" = set; then
16868   withval="$with_postgresql"
16869
16870   if test "$withval" != "no"; then
16871       if test "$db_found" = "yes"; then
16872           echo "$as_me:$LINENO: result: error" >&5
16873 echo "${ECHO_T}error" >&6
16874           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16875 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16876    { (exit 1); exit 1; }; };
16877       fi
16878       if test "$withval" = "yes"; then
16879           PG_CONFIG=`which pg_config`
16880           if test -n "$PG_CONFIG";then
16881               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16882               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16883               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16884           elif test -f /usr/local/include/libpq-fe.h; then
16885               POSTGRESQL_INCDIR=/usr/local/include
16886               if test -d /usr/local/lib64; then
16887                  POSTGRESQL_LIBDIR=/usr/local/lib64
16888               else
16889                  POSTGRESQL_LIBDIR=/usr/local/lib
16890               fi
16891               POSTGRESQL_BINDIR=/usr/local/bin
16892           elif test -f /usr/include/libpq-fe.h; then
16893               POSTGRESQL_INCDIR=/usr/include
16894               if test -d /usr/lib64; then
16895                  POSTGRESQL_LIBDIR=/usr/lib64
16896               else
16897                  POSTGRESQL_LIBDIR=/usr/lib
16898               fi
16899               POSTGRESQL_BINDIR=/usr/bin
16900           elif test -f /usr/include/pgsql/libpq-fe.h; then
16901               POSTGRESQL_INCDIR=/usr/include/pgsql
16902               if test -d /usr/lib64/pgsql; then
16903                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16904               else
16905                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16906               fi
16907               POSTGRESQL_BINDIR=/usr/bin
16908           elif test -f /usr/include/postgresql/libpq-fe.h; then
16909               POSTGRESQL_INCDIR=/usr/include/postgresql
16910               if test -d /usr/lib64/postgresql; then
16911                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16912               else
16913                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16914               fi
16915               POSTGRESQL_BINDIR=/usr/bin
16916           else
16917               echo "$as_me:$LINENO: result: no" >&5
16918 echo "${ECHO_T}no" >&6
16919               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16920 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16921    { (exit 1); exit 1; }; }
16922           fi
16923       elif test -f $withval/include/libpq-fe.h; then
16924           POSTGRESQL_INCDIR=$withval/include
16925           POSTGRESQL_LIBDIR=$withval/lib
16926           POSTGRESQL_BINDIR=$withval/bin
16927       elif test -f $withval/include/postgresql/libpq-fe.h; then
16928           POSTGRESQL_INCDIR=$withval/include/postgresql
16929      if test -d $withval/lib64; then
16930          POSTGRESQL_LIBDIR=$withval/lib64
16931      else
16932          POSTGRESQL_LIBDIR=$withval/lib
16933      fi
16934           POSTGRESQL_BINDIR=$withval/bin
16935       else
16936           echo "$as_me:$LINENO: result: no" >&5
16937 echo "${ECHO_T}no" >&6
16938           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16939 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16940    { (exit 1); exit 1; }; }
16941       fi
16942       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16943       echo "$as_me:$LINENO: checking for crypt" >&5
16944 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16945 if test "${ac_cv_func_crypt+set}" = set; then
16946   echo $ECHO_N "(cached) $ECHO_C" >&6
16947 else
16948   cat >conftest.$ac_ext <<_ACEOF
16949 /* confdefs.h.  */
16950 _ACEOF
16951 cat confdefs.h >>conftest.$ac_ext
16952 cat >>conftest.$ac_ext <<_ACEOF
16953 /* end confdefs.h.  */
16954 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16956 #define crypt innocuous_crypt
16957
16958 /* System header to define __stub macros and hopefully few prototypes,
16959     which can conflict with char crypt (); below.
16960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16961     <limits.h> exists even on freestanding compilers.  */
16962
16963 #ifdef __STDC__
16964 # include <limits.h>
16965 #else
16966 # include <assert.h>
16967 #endif
16968
16969 #undef crypt
16970
16971 /* Override any gcc2 internal prototype to avoid an error.  */
16972 #ifdef __cplusplus
16973 extern "C"
16974 {
16975 #endif
16976 /* We use char because int might match the return type of a gcc2
16977    builtin and then its argument prototype would still apply.  */
16978 char crypt ();
16979 /* The GNU C library defines this for functions which it implements
16980     to always fail with ENOSYS.  Some functions are actually named
16981     something starting with __ and the normal name is an alias.  */
16982 #if defined (__stub_crypt) || defined (__stub___crypt)
16983 choke me
16984 #else
16985 char (*f) () = crypt;
16986 #endif
16987 #ifdef __cplusplus
16988 }
16989 #endif
16990
16991 int
16992 main ()
16993 {
16994 return f != crypt;
16995   ;
16996   return 0;
16997 }
16998 _ACEOF
16999 rm -f conftest.$ac_objext conftest$ac_exeext
17000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17001   (eval $ac_link) 2>conftest.er1
17002   ac_status=$?
17003   grep -v '^ *+' conftest.er1 >conftest.err
17004   rm -f conftest.er1
17005   cat conftest.err >&5
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); } &&
17008          { ac_try='test -z "$ac_c_werror_flag"
17009                          || test ! -s conftest.err'
17010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17011   (eval $ac_try) 2>&5
17012   ac_status=$?
17013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014   (exit $ac_status); }; } &&
17015          { ac_try='test -s conftest$ac_exeext'
17016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17017   (eval $ac_try) 2>&5
17018   ac_status=$?
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); }; }; then
17021   ac_cv_func_crypt=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026 ac_cv_func_crypt=no
17027 fi
17028 rm -f conftest.err conftest.$ac_objext \
17029       conftest$ac_exeext conftest.$ac_ext
17030 fi
17031 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17032 echo "${ECHO_T}$ac_cv_func_crypt" >&6
17033 if test $ac_cv_func_crypt = yes; then
17034   :
17035 else
17036   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17037 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17038 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   ac_check_lib_save_LIBS=$LIBS
17042 LIBS="-lcrypt  $LIBS"
17043 cat >conftest.$ac_ext <<_ACEOF
17044 /* confdefs.h.  */
17045 _ACEOF
17046 cat confdefs.h >>conftest.$ac_ext
17047 cat >>conftest.$ac_ext <<_ACEOF
17048 /* end confdefs.h.  */
17049
17050 /* Override any gcc2 internal prototype to avoid an error.  */
17051 #ifdef __cplusplus
17052 extern "C"
17053 #endif
17054 /* We use char because int might match the return type of a gcc2
17055    builtin and then its argument prototype would still apply.  */
17056 char crypt ();
17057 int
17058 main ()
17059 {
17060 crypt ();
17061   ;
17062   return 0;
17063 }
17064 _ACEOF
17065 rm -f conftest.$ac_objext conftest$ac_exeext
17066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17067   (eval $ac_link) 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } &&
17074          { ac_try='test -z "$ac_c_werror_flag"
17075                          || test ! -s conftest.err'
17076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077   (eval $ac_try) 2>&5
17078   ac_status=$?
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); }; } &&
17081          { ac_try='test -s conftest$ac_exeext'
17082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083   (eval $ac_try) 2>&5
17084   ac_status=$?
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); }; }; then
17087   ac_cv_lib_crypt_crypt=yes
17088 else
17089   echo "$as_me: failed program was:" >&5
17090 sed 's/^/| /' conftest.$ac_ext >&5
17091
17092 ac_cv_lib_crypt_crypt=no
17093 fi
17094 rm -f conftest.err conftest.$ac_objext \
17095       conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17097 fi
17098 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17099 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17100 if test $ac_cv_lib_crypt_crypt = yes; then
17101   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17102 fi
17103
17104 fi
17105
17106       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17107       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17108       SQL_BINDIR=$POSTGRESQL_BINDIR
17109       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17110
17111       cat >>confdefs.h <<\_ACEOF
17112 #define HAVE_POSTGRESQL 1
17113 _ACEOF
17114
17115       echo "$as_me:$LINENO: result: yes" >&5
17116 echo "${ECHO_T}yes" >&6
17117       db_found=yes
17118       support_postgresql=yes
17119       db_type=PostgreSQL
17120       DB_TYPE=postgresql
17121   else
17122       echo "$as_me:$LINENO: result: no" >&5
17123 echo "${ECHO_T}no" >&6
17124   fi
17125
17126 else
17127
17128   echo "$as_me:$LINENO: result: no" >&5
17129 echo "${ECHO_T}no" >&6
17130
17131 fi;
17132
17133
17134
17135
17136
17137
17138
17139 db_found=no
17140 echo "$as_me:$LINENO: checking for MySQL support" >&5
17141 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17142
17143 # Check whether --with-mysql or --without-mysql was given.
17144 if test "${with_mysql+set}" = set; then
17145   withval="$with_mysql"
17146
17147   if test "$withval" != "no"; then
17148         if test "$withval" = "yes"; then
17149            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17150                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17151                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17152                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17153                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17154                    else
17155                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17156                    fi
17157                    MYSQL_BINDIR=/usr/local/mysql/bin
17158            elif test -f /usr/include/mysql/mysql.h; then
17159                    MYSQL_INCDIR=/usr/include/mysql
17160                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17161                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17162                            MYSQL_LIBDIR=/usr/lib64/mysql
17163                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17164                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17165                            MYSQL_LIBDIR=/usr/lib/mysql
17166                    else
17167                            MYSQL_LIBDIR=/usr/lib
17168                    fi
17169                    MYSQL_BINDIR=/usr/bin
17170            elif test -f /usr/include/mysql.h; then
17171                    MYSQL_INCDIR=/usr/include
17172                    if test -f /usr/lib64/libmysqlclient_r.a \
17173                         -o -f /usr/lib64/libmysqlclient_r.so; then
17174                            MYSQL_LIBDIR=/usr/lib64
17175                    else
17176                            MYSQL_LIBDIR=/usr/lib
17177                    fi
17178                    MYSQL_BINDIR=/usr/bin
17179            elif test -f /usr/local/include/mysql/mysql.h; then
17180                    MYSQL_INCDIR=/usr/local/include/mysql
17181                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17182                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17183                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17184                    else
17185                            MYSQL_LIBDIR=/usr/local/lib/mysql
17186                    fi
17187                    MYSQL_BINDIR=/usr/local/bin
17188            elif test -f /usr/local/include/mysql.h; then
17189                    MYSQL_INCDIR=/usr/local/include
17190                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17191                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17192                            MYSQL_LIBDIR=/usr/local/lib64
17193                    else
17194                            MYSQL_LIBDIR=/usr/local/lib
17195                    fi
17196                    MYSQL_BINDIR=/usr/local/bin
17197            else
17198               echo "$as_me:$LINENO: result: no" >&5
17199 echo "${ECHO_T}no" >&6
17200               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17201 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17202    { (exit 1); exit 1; }; }
17203            fi
17204         else
17205            if test -f $withval/include/mysql/mysql.h; then
17206               MYSQL_INCDIR=$withval/include/mysql
17207               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17208                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17209                  MYSQL_LIBDIR=$withval/lib64/mysql
17210               else
17211                  MYSQL_LIBDIR=$withval/lib/mysql
17212                  # Solaris ...
17213                  if test -f $withval/lib/libmysqlclient_r.so; then
17214                     MYSQL_LIBDIR=$withval/lib
17215                  fi
17216               fi
17217               MYSQL_BINDIR=$withval/bin
17218            elif test -f $withval/include/mysql.h; then
17219               MYSQL_INCDIR=$withval/include
17220               if test -f $withval/lib64/libmysqlclient_r.a \
17221                    -o -f $withval/lib64/libmysqlclient_r.so; then
17222                  MYSQL_LIBDIR=$withval/lib64
17223               else
17224                  MYSQL_LIBDIR=$withval/lib
17225               fi
17226               MYSQL_BINDIR=$withval/bin
17227            else
17228               echo "$as_me:$LINENO: result: no" >&5
17229 echo "${ECHO_T}no" >&6
17230               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17231 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17232    { (exit 1); exit 1; }; }
17233            fi
17234         fi
17235     SQL_INCLUDE=-I$MYSQL_INCDIR
17236     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17237          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17238        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17239        cat >>confdefs.h <<\_ACEOF
17240 #define HAVE_THREAD_SAFE_MYSQL 1
17241 _ACEOF
17242
17243     fi
17244     SQL_BINDIR=$MYSQL_BINDIR
17245     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17246
17247     cat >>confdefs.h <<\_ACEOF
17248 #define HAVE_MYSQL 1
17249 _ACEOF
17250
17251     echo "$as_me:$LINENO: result: yes" >&5
17252 echo "${ECHO_T}yes" >&6
17253     db_found=yes
17254     support_mysql=yes
17255     db_type=MySQL
17256     DB_TYPE=mysql
17257
17258   else
17259         echo "$as_me:$LINENO: result: no" >&5
17260 echo "${ECHO_T}no" >&6
17261   fi
17262
17263
17264 fi;
17265
17266
17267 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17268 if test "${with_embedded_mysql+set}" = set; then
17269   withval="$with_embedded_mysql"
17270
17271   if test "$withval" != "no"; then
17272         if test "$withval" = "yes"; then
17273                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17274                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17275                         if test -d /usr/local/mysql/lib64/mysql; then
17276                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17277                         else
17278                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17279                         fi
17280                         MYSQL_BINDIR=/usr/local/mysql/bin
17281                 elif test -f /usr/include/mysql/mysql.h; then
17282                         MYSQL_INCDIR=/usr/include/mysql
17283                         if test -d /usr/lib64/mysql; then
17284                                 MYSQL_LIBDIR=/usr/lib64/mysql
17285                         else
17286                                 MYSQL_LIBDIR=/usr/lib/mysql
17287                         fi
17288                         MYSQL_BINDIR=/usr/bin
17289                 elif test -f /usr/include/mysql.h; then
17290                         MYSQL_INCDIR=/usr/include
17291                         if test -d /usr/lib64; then
17292                                 MYSQL_LIBDIR=/usr/lib64
17293                         else
17294                                 MYSQL_LIBDIR=/usr/lib
17295                         fi
17296                         MYSQL_BINDIR=/usr/bin
17297                 elif test -f /usr/local/include/mysql/mysql.h; then
17298                         MYSQL_INCDIR=/usr/local/include/mysql
17299                         if test -d /usr/local/lib64/mysql; then
17300                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17301                         else
17302                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17303                         fi
17304                         MYSQL_BINDIR=/usr/local/bin
17305                 elif test -f /usr/local/include/mysql.h; then
17306                         MYSQL_INCDIR=/usr/local/include
17307                         if test -d /usr/local/lib64; then
17308                                 MYSQL_LIBDIR=/usr/local/lib64
17309                         else
17310                                 MYSQL_LIBDIR=/usr/local/lib
17311                         fi
17312                         MYSQL_BINDIR=/usr/local/bin
17313                 else
17314                    echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6
17316                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17317 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17318    { (exit 1); exit 1; }; }
17319                 fi
17320         else
17321                 if test -f $withval/include/mysql/mysql.h; then
17322                         MYSQL_INCDIR=$withval/include/mysql
17323                         if test -d $withval/lib64/mysql; then
17324                                 MYSQL_LIBDIR=$withval/lib64/mysql
17325                         else
17326                                 MYSQL_LIBDIR=$withval/lib/mysql
17327                         fi
17328                         MYSQL_BINDIR=$withval/bin
17329                 elif test -f $withval/include/mysql.h; then
17330                         MYSQL_INCDIR=$withval/include
17331                         if test -d $withval/lib64; then
17332                                 MYSQL_LIBDIR=$withval/lib64
17333                         else
17334                                 MYSQL_LIBDIR=$withval/lib
17335                         fi
17336                         MYSQL_BINDIR=$withval/bin
17337                 else
17338                    echo "$as_me:$LINENO: result: no" >&5
17339 echo "${ECHO_T}no" >&6
17340                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17341 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17342    { (exit 1); exit 1; }; }
17343                 fi
17344         fi
17345     SQL_INCLUDE=-I$MYSQL_INCDIR
17346     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17347     SQL_BINDIR=$MYSQL_BINDIR
17348     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17349
17350     cat >>confdefs.h <<\_ACEOF
17351 #define HAVE_MYSQL 1
17352 _ACEOF
17353
17354     cat >>confdefs.h <<\_ACEOF
17355 #define HAVE_EMBEDDED_MYSQL 1
17356 _ACEOF
17357
17358     echo "$as_me:$LINENO: result: yes" >&5
17359 echo "${ECHO_T}yes" >&6
17360     db_found=yes
17361     support_mysql=yes
17362     db_type=MySQL
17363     DB_TYPE=mysql
17364
17365   else
17366         echo "$as_me:$LINENO: result: no" >&5
17367 echo "${ECHO_T}no" >&6
17368   fi
17369
17370
17371 fi;
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381 db_found=no
17382 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17383 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17384
17385 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17386 if test "${with_sqlite3+set}" = set; then
17387   withval="$with_sqlite3"
17388
17389   if test "$withval" != "no"; then
17390      if test "$withval" = "yes"; then
17391         if test -f /usr/local/include/sqlite3.h; then
17392            SQLITE_INCDIR=/usr/local/include
17393            if test -d /usr/local/lib64; then
17394               SQLITE_LIBDIR=/usr/local/lib64
17395            else
17396               SQLITE_LIBDIR=/usr/local/lib
17397            fi
17398            SQLITE_BINDIR=/usr/local/bin
17399         elif test -f /usr/include/sqlite3.h; then
17400            SQLITE_INCDIR=/usr/include
17401            if test -d /usr/lib64; then
17402               SQLITE_LIBDIR=/usr/lib64
17403            else
17404               SQLITE_LIBDIR=/usr/lib
17405            fi
17406            SQLITE_BINDIR=/usr/bin
17407         elif test -f $prefix/include/sqlite3.h; then
17408            SQLITE_INCDIR=$prefix/include
17409            if test -d $prefix/lib64; then
17410               SQLITE_LIBDIR=$prefix/lib64
17411            else
17412               SQLITE_LIBDIR=$prefix/lib
17413            fi
17414            SQLITE_BINDIR=$prefix/bin
17415         else
17416            echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6
17418            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17419 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17420    { (exit 1); exit 1; }; }
17421         fi
17422      else
17423         if test -f $withval/sqlite3.h; then
17424            SQLITE_INCDIR=$withval
17425            SQLITE_LIBDIR=$withval
17426            SQLITE_BINDIR=$withval
17427         elif test -f $withval/include/sqlite3.h; then
17428            SQLITE_INCDIR=$withval/include
17429            if test -d $withval/lib64; then
17430               SQLITE_LIBDIR=$withval/lib64
17431            else
17432               SQLITE_LIBDIR=$withval/lib
17433            fi
17434            SQLITE_BINDIR=$withval/bin
17435         else
17436            echo "$as_me:$LINENO: result: no" >&5
17437 echo "${ECHO_T}no" >&6
17438            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17439 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17440    { (exit 1); exit 1; }; }
17441         fi
17442      fi
17443      SQL_INCLUDE=-I$SQLITE_INCDIR
17444      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17445      SQL_BINDIR=$SQLITE_BINDIR
17446      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17447
17448      cat >>confdefs.h <<\_ACEOF
17449 #define HAVE_SQLITE3 1
17450 _ACEOF
17451
17452      echo "$as_me:$LINENO: result: yes" >&5
17453 echo "${ECHO_T}yes" >&6
17454      db_found=yes
17455      support_sqlite3=yes
17456      db_type=SQLite3
17457      DB_TYPE=sqlite3
17458
17459   else
17460      echo "$as_me:$LINENO: result: no" >&5
17461 echo "${ECHO_T}no" >&6
17462   fi
17463
17464 else
17465
17466   echo "$as_me:$LINENO: result: no" >&5
17467 echo "${ECHO_T}no" >&6
17468
17469 fi;
17470
17471
17472
17473
17474
17475
17476
17477 db_found=no
17478 echo "$as_me:$LINENO: checking for SQLite support" >&5
17479 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17480
17481 # Check whether --with-sqlite or --without-sqlite was given.
17482 if test "${with_sqlite+set}" = set; then
17483   withval="$with_sqlite"
17484
17485   if test "$withval" != "no"; then
17486      if test "$withval" = "yes"; then
17487         if test -f /usr/local/include/sqlite.h; then
17488            SQLITE_INCDIR=/usr/local/include
17489            if test -d /usr/local/lib64; then
17490               SQLITE_LIBDIR=/usr/local/lib64
17491            else
17492               SQLITE_LIBDIR=/usr/local/lib
17493            fi
17494            SQLITE_BINDIR=/usr/local/bin
17495         elif test -f /usr/include/sqlite.h; then
17496            SQLITE_INCDIR=/usr/include
17497            if test -d /usr/lib64; then
17498               SQLITE_LIBDIR=/usr/lib64
17499            else
17500               SQLITE_LIBDIR=/usr/lib
17501            fi
17502            SQLITE_BINDIR=/usr/bin
17503         elif test -f $prefix/include/sqlite.h; then
17504            SQLITE_INCDIR=$prefix/include
17505            if test -d $prefix/lib64; then
17506               SQLITE_LIBDIR=$prefix/lib64
17507            else
17508               SQLITE_LIBDIR=$prefix/lib
17509            fi
17510            SQLITE_BINDIR=$prefix/bin
17511         else
17512            echo "$as_me:$LINENO: result: no" >&5
17513 echo "${ECHO_T}no" >&6
17514            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17515 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17516    { (exit 1); exit 1; }; }
17517         fi
17518      else
17519         if test -f $withval/sqlite.h; then
17520            SQLITE_INCDIR=$withval
17521            SQLITE_LIBDIR=$withval
17522            SQLITE_BINDIR=$withval
17523         elif test -f $withval/include/sqlite.h; then
17524            SQLITE_INCDIR=$withval/include
17525            if test -d $withval/lib64; then
17526               SQLITE_LIBDIR=$withval/lib64
17527            else
17528               SQLITE_LIBDIR=$withval/lib
17529            fi
17530            SQLITE_BINDIR=$withval/bin
17531         else
17532            echo "$as_me:$LINENO: result: no" >&5
17533 echo "${ECHO_T}no" >&6
17534            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17535 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17536    { (exit 1); exit 1; }; }
17537         fi
17538      fi
17539      SQL_INCLUDE=-I$SQLITE_INCDIR
17540      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17541      SQL_BINDIR=$SQLITE_BINDIR
17542      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17543
17544      cat >>confdefs.h <<\_ACEOF
17545 #define HAVE_SQLITE 1
17546 _ACEOF
17547
17548      echo "$as_me:$LINENO: result: yes" >&5
17549 echo "${ECHO_T}yes" >&6
17550      db_found=yes
17551      support_sqlite=yes
17552      db_type=SQLite
17553      DB_TYPE=sqlite
17554
17555   else
17556      echo "$as_me:$LINENO: result: no" >&5
17557 echo "${ECHO_T}no" >&6
17558   fi
17559
17560 else
17561
17562   echo "$as_me:$LINENO: result: no" >&5
17563 echo "${ECHO_T}no" >&6
17564
17565 fi;
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575 # -------------------------------------------
17576 # enable batch attribute DB insert (default on)
17577 # -------------------------------------------
17578 support_batch_insert=no
17579 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17580 pkg=$?
17581 if test $pkg = 0; then
17582    support_batch_insert=yes
17583    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17584 if test "${enable_batch_insert+set}" = set; then
17585   enableval="$enable_batch_insert"
17586   if test x$enableval = xno; then
17587        support_batch_insert=no
17588       else
17589        support_batch_insert=yes
17590      fi
17591 fi;
17592 fi
17593
17594 # Check if postgresql support batch mode
17595 if test x$DB_TYPE = xpostgresql; then
17596    A=`nm $SQL_LIB | grep PQputCopyData`
17597    pkg=$?
17598    if test $pkg != 0; then
17599       support_batch_insert=no
17600    fi
17601 fi
17602
17603 if test $support_batch_insert = yes ; then
17604
17605 cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_BATCH_FILE_INSERT 1
17607 _ACEOF
17608
17609 fi
17610
17611
17612 cat >>confdefs.h <<\_ACEOF
17613 #define PROTOTYPES 1
17614 _ACEOF
17615
17616
17617 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17618     if test -z "$CCOPTS"; then
17619         CCOPTS='-g -O2 -Wall'
17620     fi
17621     CFLAGS="$CCOPTS"
17622 fi
17623
17624
17625
17626
17627 largefile_support="no"
17628
17629    # Check whether --enable-largefile or --disable-largefile was given.
17630 if test "${enable_largefile+set}" = set; then
17631   enableval="$enable_largefile"
17632
17633 fi;
17634    if test "$enable_largefile" != no; then
17635      if test -n "$ac_tool_prefix"; then
17636   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17637 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17638 echo "$as_me:$LINENO: checking for $ac_word" >&5
17639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17640 if test "${ac_cv_prog_GETCONF+set}" = set; then
17641   echo $ECHO_N "(cached) $ECHO_C" >&6
17642 else
17643   if test -n "$GETCONF"; then
17644   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17645 else
17646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17647 for as_dir in $PATH
17648 do
17649   IFS=$as_save_IFS
17650   test -z "$as_dir" && as_dir=.
17651   for ac_exec_ext in '' $ac_executable_extensions; do
17652   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17653     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17654     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17655     break 2
17656   fi
17657 done
17658 done
17659
17660 fi
17661 fi
17662 GETCONF=$ac_cv_prog_GETCONF
17663 if test -n "$GETCONF"; then
17664   echo "$as_me:$LINENO: result: $GETCONF" >&5
17665 echo "${ECHO_T}$GETCONF" >&6
17666 else
17667   echo "$as_me:$LINENO: result: no" >&5
17668 echo "${ECHO_T}no" >&6
17669 fi
17670
17671 fi
17672 if test -z "$ac_cv_prog_GETCONF"; then
17673   ac_ct_GETCONF=$GETCONF
17674   # Extract the first word of "getconf", so it can be a program name with args.
17675 set dummy getconf; ac_word=$2
17676 echo "$as_me:$LINENO: checking for $ac_word" >&5
17677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17678 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17679   echo $ECHO_N "(cached) $ECHO_C" >&6
17680 else
17681   if test -n "$ac_ct_GETCONF"; then
17682   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17683 else
17684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17685 for as_dir in $PATH
17686 do
17687   IFS=$as_save_IFS
17688   test -z "$as_dir" && as_dir=.
17689   for ac_exec_ext in '' $ac_executable_extensions; do
17690   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17691     ac_cv_prog_ac_ct_GETCONF="getconf"
17692     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17693     break 2
17694   fi
17695 done
17696 done
17697
17698 fi
17699 fi
17700 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17701 if test -n "$ac_ct_GETCONF"; then
17702   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17703 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17704 else
17705   echo "$as_me:$LINENO: result: no" >&5
17706 echo "${ECHO_T}no" >&6
17707 fi
17708
17709   GETCONF=$ac_ct_GETCONF
17710 else
17711   GETCONF="$ac_cv_prog_GETCONF"
17712 fi
17713
17714      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17715 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17716 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17717   echo $ECHO_N "(cached) $ECHO_C" >&6
17718 else
17719   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17720         ac_cv_sys_largefile_CFLAGS=no
17721         case "$host_os" in
17722            # IRIX 6.2 and later require cc -n32.
17723            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17724              if test "$GCC" != yes; then
17725                ac_cv_sys_largefile_CFLAGS=-n32
17726              fi
17727              ac_save_CC="$CC"
17728              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17729              cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 int
17737 main ()
17738 {
17739
17740   ;
17741   return 0;
17742 }
17743 _ACEOF
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17746   (eval $ac_link) 2>conftest.er1
17747   ac_status=$?
17748   grep -v '^ *+' conftest.er1 >conftest.err
17749   rm -f conftest.er1
17750   cat conftest.err >&5
17751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752   (exit $ac_status); } &&
17753          { ac_try='test -z "$ac_c_werror_flag"
17754                          || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest$ac_exeext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   :
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_cv_sys_largefile_CFLAGS=no
17772 fi
17773 rm -f conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775              CC="$ac_save_CC"
17776            esac
17777       }
17778 fi
17779 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17780 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17781      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17782 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17783 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17784   echo $ECHO_N "(cached) $ECHO_C" >&6
17785 else
17786   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17787         ac_cv_sys_largefile_LDFLAGS=no
17788
17789       }
17790 fi
17791 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17792 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17793      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17794 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17795 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17796   echo $ECHO_N "(cached) $ECHO_C" >&6
17797 else
17798   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17799         ac_cv_sys_largefile_LIBS=no
17800
17801       }
17802 fi
17803 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17804 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17805
17806      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17807        case "$ac_flag" in
17808        no) ;;
17809        -D_FILE_OFFSET_BITS=*) ;;
17810        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17811        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17812        -D?* | -I?*)
17813          case "$ac_flag" in
17814    no) ;;
17815    ?*)
17816      case "$CPPFLAGS" in
17817      '') CPPFLAGS="$ac_flag" ;;
17818      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17819      esac ;;
17820    esac ;;
17821        *)
17822          case "$ac_flag" in
17823    no) ;;
17824    ?*)
17825      case "$CFLAGS" in
17826      '') CFLAGS="$ac_flag" ;;
17827      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17828      esac ;;
17829    esac ;;
17830        esac
17831      done
17832      case "$ac_cv_sys_largefile_LDFLAGS" in
17833    no) ;;
17834    ?*)
17835      case "$LDFLAGS" in
17836      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17837      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17838      esac ;;
17839    esac
17840      case "$ac_cv_sys_largefile_LIBS" in
17841    no) ;;
17842    ?*)
17843      case "$LIBS" in
17844      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17845      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17846      esac ;;
17847    esac
17848      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17849 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17850 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   ac_cv_sys_file_offset_bits=no
17854       ac_cv_sys_file_offset_bits=64
17855       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17856         case "$ac_flag" in
17857         -D_FILE_OFFSET_BITS)
17858           ac_cv_sys_file_offset_bits=1 ;;
17859         -D_FILE_OFFSET_BITS=*)
17860           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17861         esac
17862       done
17863
17864 fi
17865 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17866 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17867    if test "$ac_cv_sys_file_offset_bits" != no; then
17868
17869 cat >>confdefs.h <<_ACEOF
17870 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17871 _ACEOF
17872
17873    fi
17874      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17875 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17876 if test "${ac_cv_sys_largefile_source+set}" = set; then
17877   echo $ECHO_N "(cached) $ECHO_C" >&6
17878 else
17879   ac_cv_sys_largefile_source=no
17880       ac_cv_sys_largefile_source=1
17881       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17882         case "$ac_flag" in
17883         -D_LARGEFILE_SOURCE)
17884           ac_cv_sys_largefile_source=1 ;;
17885         -D_LARGEFILE_SOURCE=*)
17886           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17887         esac
17888       done
17889
17890 fi
17891 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17892 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17893    if test "$ac_cv_sys_largefile_source" != no; then
17894
17895 cat >>confdefs.h <<_ACEOF
17896 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17897 _ACEOF
17898
17899    fi
17900      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17901 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17902 if test "${ac_cv_sys_large_files+set}" = set; then
17903   echo $ECHO_N "(cached) $ECHO_C" >&6
17904 else
17905   ac_cv_sys_large_files=no
17906       ac_cv_sys_large_files=1
17907       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17908         case "$ac_flag" in
17909         -D_LARGE_FILES)
17910           ac_cv_sys_large_files=1 ;;
17911         -D_LARGE_FILES=*)
17912           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17913         esac
17914       done
17915
17916 fi
17917 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17918 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17919    if test "$ac_cv_sys_large_files" != no; then
17920
17921 cat >>confdefs.h <<_ACEOF
17922 #define _LARGE_FILES $ac_cv_sys_large_files
17923 _ACEOF
17924
17925    fi
17926    fi
17927
17928
17929
17930 echo "$as_me:$LINENO: checking for X" >&5
17931 echo $ECHO_N "checking for X... $ECHO_C" >&6
17932
17933
17934 # Check whether --with-x or --without-x was given.
17935 if test "${with_x+set}" = set; then
17936   withval="$with_x"
17937
17938 fi;
17939 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17940 if test "x$with_x" = xno; then
17941   # The user explicitly disabled X.
17942   have_x=disabled
17943 else
17944   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17945     # Both variables are already set.
17946     have_x=yes
17947   else
17948     if test "${ac_cv_have_x+set}" = set; then
17949   echo $ECHO_N "(cached) $ECHO_C" >&6
17950 else
17951   # One or both of the vars are not set, and there is no cached value.
17952 ac_x_includes=no ac_x_libraries=no
17953 rm -fr conftest.dir
17954 if mkdir conftest.dir; then
17955   cd conftest.dir
17956   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17957   cat >Imakefile <<'_ACEOF'
17958 acfindx:
17959         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17960 _ACEOF
17961   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17962     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17963     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17964     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17965     for ac_extension in a so sl; do
17966       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17967          test -f $ac_im_libdir/libX11.$ac_extension; then
17968         ac_im_usrlibdir=$ac_im_libdir; break
17969       fi
17970     done
17971     # Screen out bogus values from the imake configuration.  They are
17972     # bogus both because they are the default anyway, and because
17973     # using them would break gcc on systems where it needs fixed includes.
17974     case $ac_im_incroot in
17975         /usr/include) ;;
17976         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17977     esac
17978     case $ac_im_usrlibdir in
17979         /usr/lib | /lib) ;;
17980         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17981     esac
17982   fi
17983   cd ..
17984   rm -fr conftest.dir
17985 fi
17986
17987 # Standard set of common directories for X headers.
17988 # Check X11 before X11Rn because it is often a symlink to the current release.
17989 ac_x_header_dirs='
17990 /usr/X11/include
17991 /usr/X11R6/include
17992 /usr/X11R5/include
17993 /usr/X11R4/include
17994
17995 /usr/include/X11
17996 /usr/include/X11R6
17997 /usr/include/X11R5
17998 /usr/include/X11R4
17999
18000 /usr/local/X11/include
18001 /usr/local/X11R6/include
18002 /usr/local/X11R5/include
18003 /usr/local/X11R4/include
18004
18005 /usr/local/include/X11
18006 /usr/local/include/X11R6
18007 /usr/local/include/X11R5
18008 /usr/local/include/X11R4
18009
18010 /usr/X386/include
18011 /usr/x386/include
18012 /usr/XFree86/include/X11
18013
18014 /usr/include
18015 /usr/local/include
18016 /usr/unsupported/include
18017 /usr/athena/include
18018 /usr/local/x11r5/include
18019 /usr/lpp/Xamples/include
18020
18021 /usr/openwin/include
18022 /usr/openwin/share/include'
18023
18024 if test "$ac_x_includes" = no; then
18025   # Guess where to find include files, by looking for Xlib.h.
18026   # First, try using that file with no special directory specified.
18027   cat >conftest.$ac_ext <<_ACEOF
18028 /* confdefs.h.  */
18029 _ACEOF
18030 cat confdefs.h >>conftest.$ac_ext
18031 cat >>conftest.$ac_ext <<_ACEOF
18032 /* end confdefs.h.  */
18033 #include <X11/Xlib.h>
18034 _ACEOF
18035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18037   ac_status=$?
18038   grep -v '^ *+' conftest.er1 >conftest.err
18039   rm -f conftest.er1
18040   cat conftest.err >&5
18041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } >/dev/null; then
18043   if test -s conftest.err; then
18044     ac_cpp_err=$ac_c_preproc_warn_flag
18045     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18046   else
18047     ac_cpp_err=
18048   fi
18049 else
18050   ac_cpp_err=yes
18051 fi
18052 if test -z "$ac_cpp_err"; then
18053   # We can compile using X headers with no special include directory.
18054 ac_x_includes=
18055 else
18056   echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059   for ac_dir in $ac_x_header_dirs; do
18060   if test -r "$ac_dir/X11/Xlib.h"; then
18061     ac_x_includes=$ac_dir
18062     break
18063   fi
18064 done
18065 fi
18066 rm -f conftest.err conftest.$ac_ext
18067 fi # $ac_x_includes = no
18068
18069 if test "$ac_x_libraries" = no; then
18070   # Check for the libraries.
18071   # See if we find them without any special options.
18072   # Don't add to $LIBS permanently.
18073   ac_save_LIBS=$LIBS
18074   LIBS="-lX11 $LIBS"
18075   cat >conftest.$ac_ext <<_ACEOF
18076 /* confdefs.h.  */
18077 _ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h.  */
18081 #include <X11/Xlib.h>
18082 int
18083 main ()
18084 {
18085 XrmInitialize ()
18086   ;
18087   return 0;
18088 }
18089 _ACEOF
18090 rm -f conftest.$ac_objext conftest$ac_exeext
18091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18092   (eval $ac_link) 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_c_werror_flag"
18100                          || test ! -s conftest.err'
18101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18102   (eval $ac_try) 2>&5
18103   ac_status=$?
18104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18105   (exit $ac_status); }; } &&
18106          { ac_try='test -s conftest$ac_exeext'
18107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18108   (eval $ac_try) 2>&5
18109   ac_status=$?
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); }; }; then
18112   LIBS=$ac_save_LIBS
18113 # We can link X programs with no special library path.
18114 ac_x_libraries=
18115 else
18116   echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18118
18119 LIBS=$ac_save_LIBS
18120 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18121 do
18122   # Don't even attempt the hair of trying to link an X program!
18123   for ac_extension in a so sl; do
18124     if test -r $ac_dir/libXt.$ac_extension; then
18125       ac_x_libraries=$ac_dir
18126       break 2
18127     fi
18128   done
18129 done
18130 fi
18131 rm -f conftest.err conftest.$ac_objext \
18132       conftest$ac_exeext conftest.$ac_ext
18133 fi # $ac_x_libraries = no
18134
18135 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18136   # Didn't find X anywhere.  Cache the known absence of X.
18137   ac_cv_have_x="have_x=no"
18138 else
18139   # Record where we found X for the cache.
18140   ac_cv_have_x="have_x=yes \
18141                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18142 fi
18143 fi
18144
18145   fi
18146   eval "$ac_cv_have_x"
18147 fi # $with_x != no
18148
18149 if test "$have_x" != yes; then
18150   echo "$as_me:$LINENO: result: $have_x" >&5
18151 echo "${ECHO_T}$have_x" >&6
18152   no_x=yes
18153 else
18154   # If each of the values was on the command line, it overrides each guess.
18155   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18156   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18157   # Update the cache value to reflect the command line values.
18158   ac_cv_have_x="have_x=yes \
18159                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18160   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18161 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18162 fi
18163
18164 if test "$no_x" = yes; then
18165   # Not all programs may use this symbol, but it does not hurt to define it.
18166
18167 cat >>confdefs.h <<\_ACEOF
18168 #define X_DISPLAY_MISSING 1
18169 _ACEOF
18170
18171   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18172 else
18173   if test -n "$x_includes"; then
18174     X_CFLAGS="$X_CFLAGS -I$x_includes"
18175   fi
18176
18177   # It would also be nice to do this for all -L options, not just this one.
18178   if test -n "$x_libraries"; then
18179     X_LIBS="$X_LIBS -L$x_libraries"
18180     # For Solaris; some versions of Sun CC require a space after -R and
18181     # others require no space.  Words are not sufficient . . . .
18182     case `(uname -sr) 2>/dev/null` in
18183     "SunOS 5"*)
18184       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18185 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18186       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18187       cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h.  */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h.  */
18193
18194 int
18195 main ()
18196 {
18197
18198   ;
18199   return 0;
18200 }
18201 _ACEOF
18202 rm -f conftest.$ac_objext conftest$ac_exeext
18203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18204   (eval $ac_link) 2>conftest.er1
18205   ac_status=$?
18206   grep -v '^ *+' conftest.er1 >conftest.err
18207   rm -f conftest.er1
18208   cat conftest.err >&5
18209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18210   (exit $ac_status); } &&
18211          { ac_try='test -z "$ac_c_werror_flag"
18212                          || test ! -s conftest.err'
18213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18214   (eval $ac_try) 2>&5
18215   ac_status=$?
18216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18217   (exit $ac_status); }; } &&
18218          { ac_try='test -s conftest$ac_exeext'
18219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18220   (eval $ac_try) 2>&5
18221   ac_status=$?
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); }; }; then
18224   ac_R_nospace=yes
18225 else
18226   echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 ac_R_nospace=no
18230 fi
18231 rm -f conftest.err conftest.$ac_objext \
18232       conftest$ac_exeext conftest.$ac_ext
18233       if test $ac_R_nospace = yes; then
18234         echo "$as_me:$LINENO: result: no" >&5
18235 echo "${ECHO_T}no" >&6
18236         X_LIBS="$X_LIBS -R$x_libraries"
18237       else
18238         LIBS="$ac_xsave_LIBS -R $x_libraries"
18239         cat >conftest.$ac_ext <<_ACEOF
18240 /* confdefs.h.  */
18241 _ACEOF
18242 cat confdefs.h >>conftest.$ac_ext
18243 cat >>conftest.$ac_ext <<_ACEOF
18244 /* end confdefs.h.  */
18245
18246 int
18247 main ()
18248 {
18249
18250   ;
18251   return 0;
18252 }
18253 _ACEOF
18254 rm -f conftest.$ac_objext conftest$ac_exeext
18255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18256   (eval $ac_link) 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag"
18264                          || test ! -s conftest.err'
18265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18266   (eval $ac_try) 2>&5
18267   ac_status=$?
18268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18269   (exit $ac_status); }; } &&
18270          { ac_try='test -s conftest$ac_exeext'
18271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18272   (eval $ac_try) 2>&5
18273   ac_status=$?
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); }; }; then
18276   ac_R_space=yes
18277 else
18278   echo "$as_me: failed program was:" >&5
18279 sed 's/^/| /' conftest.$ac_ext >&5
18280
18281 ac_R_space=no
18282 fi
18283 rm -f conftest.err conftest.$ac_objext \
18284       conftest$ac_exeext conftest.$ac_ext
18285         if test $ac_R_space = yes; then
18286           echo "$as_me:$LINENO: result: yes" >&5
18287 echo "${ECHO_T}yes" >&6
18288           X_LIBS="$X_LIBS -R $x_libraries"
18289         else
18290           echo "$as_me:$LINENO: result: neither works" >&5
18291 echo "${ECHO_T}neither works" >&6
18292         fi
18293       fi
18294       LIBS=$ac_xsave_LIBS
18295     esac
18296   fi
18297
18298   # Check for system-dependent libraries X programs must link with.
18299   # Do this before checking for the system-independent R6 libraries
18300   # (-lICE), since we may need -lsocket or whatever for X linking.
18301
18302   if test "$ISC" = yes; then
18303     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18304   else
18305     # Martyn Johnson says this is needed for Ultrix, if the X
18306     # libraries were built with DECnet support.  And Karl Berry says
18307     # the Alpha needs dnet_stub (dnet does not exist).
18308     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18309     cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315
18316 /* Override any gcc2 internal prototype to avoid an error.  */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 /* We use char because int might match the return type of a gcc2
18321    builtin and then its argument prototype would still apply.  */
18322 char XOpenDisplay ();
18323 int
18324 main ()
18325 {
18326 XOpenDisplay ();
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18333   (eval $ac_link) 2>conftest.er1
18334   ac_status=$?
18335   grep -v '^ *+' conftest.er1 >conftest.err
18336   rm -f conftest.er1
18337   cat conftest.err >&5
18338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339   (exit $ac_status); } &&
18340          { ac_try='test -z "$ac_c_werror_flag"
18341                          || test ! -s conftest.err'
18342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18343   (eval $ac_try) 2>&5
18344   ac_status=$?
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); }; } &&
18347          { ac_try='test -s conftest$ac_exeext'
18348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349   (eval $ac_try) 2>&5
18350   ac_status=$?
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); }; }; then
18353   :
18354 else
18355   echo "$as_me: failed program was:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18357
18358 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18359 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18360 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18361   echo $ECHO_N "(cached) $ECHO_C" >&6
18362 else
18363   ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-ldnet  $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF
18366 /* confdefs.h.  */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h.  */
18371
18372 /* Override any gcc2 internal prototype to avoid an error.  */
18373 #ifdef __cplusplus
18374 extern "C"
18375 #endif
18376 /* We use char because int might match the return type of a gcc2
18377    builtin and then its argument prototype would still apply.  */
18378 char dnet_ntoa ();
18379 int
18380 main ()
18381 {
18382 dnet_ntoa ();
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18389   (eval $ac_link) 2>conftest.er1
18390   ac_status=$?
18391   grep -v '^ *+' conftest.er1 >conftest.err
18392   rm -f conftest.er1
18393   cat conftest.err >&5
18394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395   (exit $ac_status); } &&
18396          { ac_try='test -z "$ac_c_werror_flag"
18397                          || test ! -s conftest.err'
18398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18399   (eval $ac_try) 2>&5
18400   ac_status=$?
18401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18402   (exit $ac_status); }; } &&
18403          { ac_try='test -s conftest$ac_exeext'
18404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18405   (eval $ac_try) 2>&5
18406   ac_status=$?
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); }; }; then
18409   ac_cv_lib_dnet_dnet_ntoa=yes
18410 else
18411   echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.$ac_ext >&5
18413
18414 ac_cv_lib_dnet_dnet_ntoa=no
18415 fi
18416 rm -f conftest.err conftest.$ac_objext \
18417       conftest$ac_exeext conftest.$ac_ext
18418 LIBS=$ac_check_lib_save_LIBS
18419 fi
18420 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18421 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18422 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18423   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18424 fi
18425
18426     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18427       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18428 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18429 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18430   echo $ECHO_N "(cached) $ECHO_C" >&6
18431 else
18432   ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-ldnet_stub  $LIBS"
18434 cat >conftest.$ac_ext <<_ACEOF
18435 /* confdefs.h.  */
18436 _ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h.  */
18440
18441 /* Override any gcc2 internal prototype to avoid an error.  */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 /* We use char because int might match the return type of a gcc2
18446    builtin and then its argument prototype would still apply.  */
18447 char dnet_ntoa ();
18448 int
18449 main ()
18450 {
18451 dnet_ntoa ();
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18458   (eval $ac_link) 2>conftest.er1
18459   ac_status=$?
18460   grep -v '^ *+' conftest.er1 >conftest.err
18461   rm -f conftest.er1
18462   cat conftest.err >&5
18463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464   (exit $ac_status); } &&
18465          { ac_try='test -z "$ac_c_werror_flag"
18466                          || test ! -s conftest.err'
18467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18468   (eval $ac_try) 2>&5
18469   ac_status=$?
18470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471   (exit $ac_status); }; } &&
18472          { ac_try='test -s conftest$ac_exeext'
18473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474   (eval $ac_try) 2>&5
18475   ac_status=$?
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); }; }; then
18478   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18479 else
18480   echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483 ac_cv_lib_dnet_stub_dnet_ntoa=no
18484 fi
18485 rm -f conftest.err conftest.$ac_objext \
18486       conftest$ac_exeext conftest.$ac_ext
18487 LIBS=$ac_check_lib_save_LIBS
18488 fi
18489 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18490 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18491 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18492   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18493 fi
18494
18495     fi
18496 fi
18497 rm -f conftest.err conftest.$ac_objext \
18498       conftest$ac_exeext conftest.$ac_ext
18499     LIBS="$ac_xsave_LIBS"
18500
18501     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18502     # to get the SysV transport functions.
18503     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18504     # needs -lnsl.
18505     # The nsl library prevents programs from opening the X display
18506     # on Irix 5.2, according to T.E. Dickey.
18507     # The functions gethostbyname, getservbyname, and inet_addr are
18508     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18509     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18510 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18511 if test "${ac_cv_func_gethostbyname+set}" = set; then
18512   echo $ECHO_N "(cached) $ECHO_C" >&6
18513 else
18514   cat >conftest.$ac_ext <<_ACEOF
18515 /* confdefs.h.  */
18516 _ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h.  */
18520 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18521    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18522 #define gethostbyname innocuous_gethostbyname
18523
18524 /* System header to define __stub macros and hopefully few prototypes,
18525     which can conflict with char gethostbyname (); below.
18526     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18527     <limits.h> exists even on freestanding compilers.  */
18528
18529 #ifdef __STDC__
18530 # include <limits.h>
18531 #else
18532 # include <assert.h>
18533 #endif
18534
18535 #undef gethostbyname
18536
18537 /* Override any gcc2 internal prototype to avoid an error.  */
18538 #ifdef __cplusplus
18539 extern "C"
18540 {
18541 #endif
18542 /* We use char because int might match the return type of a gcc2
18543    builtin and then its argument prototype would still apply.  */
18544 char gethostbyname ();
18545 /* The GNU C library defines this for functions which it implements
18546     to always fail with ENOSYS.  Some functions are actually named
18547     something starting with __ and the normal name is an alias.  */
18548 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18549 choke me
18550 #else
18551 char (*f) () = gethostbyname;
18552 #endif
18553 #ifdef __cplusplus
18554 }
18555 #endif
18556
18557 int
18558 main ()
18559 {
18560 return f != gethostbyname;
18561   ;
18562   return 0;
18563 }
18564 _ACEOF
18565 rm -f conftest.$ac_objext conftest$ac_exeext
18566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18567   (eval $ac_link) 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } &&
18574          { ac_try='test -z "$ac_c_werror_flag"
18575                          || test ! -s conftest.err'
18576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18577   (eval $ac_try) 2>&5
18578   ac_status=$?
18579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18580   (exit $ac_status); }; } &&
18581          { ac_try='test -s conftest$ac_exeext'
18582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18583   (eval $ac_try) 2>&5
18584   ac_status=$?
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); }; }; then
18587   ac_cv_func_gethostbyname=yes
18588 else
18589   echo "$as_me: failed program was:" >&5
18590 sed 's/^/| /' conftest.$ac_ext >&5
18591
18592 ac_cv_func_gethostbyname=no
18593 fi
18594 rm -f conftest.err conftest.$ac_objext \
18595       conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18598 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18599
18600     if test $ac_cv_func_gethostbyname = no; then
18601       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18602 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18603 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18604   echo $ECHO_N "(cached) $ECHO_C" >&6
18605 else
18606   ac_check_lib_save_LIBS=$LIBS
18607 LIBS="-lnsl  $LIBS"
18608 cat >conftest.$ac_ext <<_ACEOF
18609 /* confdefs.h.  */
18610 _ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h.  */
18614
18615 /* Override any gcc2 internal prototype to avoid an error.  */
18616 #ifdef __cplusplus
18617 extern "C"
18618 #endif
18619 /* We use char because int might match the return type of a gcc2
18620    builtin and then its argument prototype would still apply.  */
18621 char gethostbyname ();
18622 int
18623 main ()
18624 {
18625 gethostbyname ();
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext conftest$ac_exeext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18632   (eval $ac_link) 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } &&
18639          { ac_try='test -z "$ac_c_werror_flag"
18640                          || test ! -s conftest.err'
18641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642   (eval $ac_try) 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; } &&
18646          { ac_try='test -s conftest$ac_exeext'
18647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648   (eval $ac_try) 2>&5
18649   ac_status=$?
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); }; }; then
18652   ac_cv_lib_nsl_gethostbyname=yes
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 ac_cv_lib_nsl_gethostbyname=no
18658 fi
18659 rm -f conftest.err conftest.$ac_objext \
18660       conftest$ac_exeext conftest.$ac_ext
18661 LIBS=$ac_check_lib_save_LIBS
18662 fi
18663 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18664 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18665 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18666   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18667 fi
18668
18669       if test $ac_cv_lib_nsl_gethostbyname = no; then
18670         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18671 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18672 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18673   echo $ECHO_N "(cached) $ECHO_C" >&6
18674 else
18675   ac_check_lib_save_LIBS=$LIBS
18676 LIBS="-lbsd  $LIBS"
18677 cat >conftest.$ac_ext <<_ACEOF
18678 /* confdefs.h.  */
18679 _ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h.  */
18683
18684 /* Override any gcc2 internal prototype to avoid an error.  */
18685 #ifdef __cplusplus
18686 extern "C"
18687 #endif
18688 /* We use char because int might match the return type of a gcc2
18689    builtin and then its argument prototype would still apply.  */
18690 char gethostbyname ();
18691 int
18692 main ()
18693 {
18694 gethostbyname ();
18695   ;
18696   return 0;
18697 }
18698 _ACEOF
18699 rm -f conftest.$ac_objext conftest$ac_exeext
18700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18701   (eval $ac_link) 2>conftest.er1
18702   ac_status=$?
18703   grep -v '^ *+' conftest.er1 >conftest.err
18704   rm -f conftest.er1
18705   cat conftest.err >&5
18706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707   (exit $ac_status); } &&
18708          { ac_try='test -z "$ac_c_werror_flag"
18709                          || test ! -s conftest.err'
18710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18711   (eval $ac_try) 2>&5
18712   ac_status=$?
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); }; } &&
18715          { ac_try='test -s conftest$ac_exeext'
18716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18717   (eval $ac_try) 2>&5
18718   ac_status=$?
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); }; }; then
18721   ac_cv_lib_bsd_gethostbyname=yes
18722 else
18723   echo "$as_me: failed program was:" >&5
18724 sed 's/^/| /' conftest.$ac_ext >&5
18725
18726 ac_cv_lib_bsd_gethostbyname=no
18727 fi
18728 rm -f conftest.err conftest.$ac_objext \
18729       conftest$ac_exeext conftest.$ac_ext
18730 LIBS=$ac_check_lib_save_LIBS
18731 fi
18732 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18733 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18734 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18735   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18736 fi
18737
18738       fi
18739     fi
18740
18741     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18742     # socket/setsockopt and other routines are undefined under SCO ODT
18743     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18744     # on later versions), says Simon Leinen: it contains gethostby*
18745     # variants that don't use the name server (or something).  -lsocket
18746     # must be given before -lnsl if both are needed.  We assume that
18747     # if connect needs -lnsl, so does gethostbyname.
18748     echo "$as_me:$LINENO: checking for connect" >&5
18749 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18750 if test "${ac_cv_func_connect+set}" = set; then
18751   echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753   cat >conftest.$ac_ext <<_ACEOF
18754 /* confdefs.h.  */
18755 _ACEOF
18756 cat confdefs.h >>conftest.$ac_ext
18757 cat >>conftest.$ac_ext <<_ACEOF
18758 /* end confdefs.h.  */
18759 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18761 #define connect innocuous_connect
18762
18763 /* System header to define __stub macros and hopefully few prototypes,
18764     which can conflict with char connect (); below.
18765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18766     <limits.h> exists even on freestanding compilers.  */
18767
18768 #ifdef __STDC__
18769 # include <limits.h>
18770 #else
18771 # include <assert.h>
18772 #endif
18773
18774 #undef connect
18775
18776 /* Override any gcc2 internal prototype to avoid an error.  */
18777 #ifdef __cplusplus
18778 extern "C"
18779 {
18780 #endif
18781 /* We use char because int might match the return type of a gcc2
18782    builtin and then its argument prototype would still apply.  */
18783 char connect ();
18784 /* The GNU C library defines this for functions which it implements
18785     to always fail with ENOSYS.  Some functions are actually named
18786     something starting with __ and the normal name is an alias.  */
18787 #if defined (__stub_connect) || defined (__stub___connect)
18788 choke me
18789 #else
18790 char (*f) () = connect;
18791 #endif
18792 #ifdef __cplusplus
18793 }
18794 #endif
18795
18796 int
18797 main ()
18798 {
18799 return f != connect;
18800   ;
18801   return 0;
18802 }
18803 _ACEOF
18804 rm -f conftest.$ac_objext conftest$ac_exeext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806   (eval $ac_link) 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } &&
18813          { ac_try='test -z "$ac_c_werror_flag"
18814                          || test ! -s conftest.err'
18815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816   (eval $ac_try) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; } &&
18820          { ac_try='test -s conftest$ac_exeext'
18821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822   (eval $ac_try) 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; }; then
18826   ac_cv_func_connect=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831 ac_cv_func_connect=no
18832 fi
18833 rm -f conftest.err conftest.$ac_objext \
18834       conftest$ac_exeext conftest.$ac_ext
18835 fi
18836 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18837 echo "${ECHO_T}$ac_cv_func_connect" >&6
18838
18839     if test $ac_cv_func_connect = no; then
18840       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18841 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18842 if test "${ac_cv_lib_socket_connect+set}" = set; then
18843   echo $ECHO_N "(cached) $ECHO_C" >&6
18844 else
18845   ac_check_lib_save_LIBS=$LIBS
18846 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18847 cat >conftest.$ac_ext <<_ACEOF
18848 /* confdefs.h.  */
18849 _ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h.  */
18853
18854 /* Override any gcc2 internal prototype to avoid an error.  */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 /* We use char because int might match the return type of a gcc2
18859    builtin and then its argument prototype would still apply.  */
18860 char connect ();
18861 int
18862 main ()
18863 {
18864 connect ();
18865   ;
18866   return 0;
18867 }
18868 _ACEOF
18869 rm -f conftest.$ac_objext conftest$ac_exeext
18870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18871   (eval $ac_link) 2>conftest.er1
18872   ac_status=$?
18873   grep -v '^ *+' conftest.er1 >conftest.err
18874   rm -f conftest.er1
18875   cat conftest.err >&5
18876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877   (exit $ac_status); } &&
18878          { ac_try='test -z "$ac_c_werror_flag"
18879                          || test ! -s conftest.err'
18880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881   (eval $ac_try) 2>&5
18882   ac_status=$?
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); }; } &&
18885          { ac_try='test -s conftest$ac_exeext'
18886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887   (eval $ac_try) 2>&5
18888   ac_status=$?
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); }; }; then
18891   ac_cv_lib_socket_connect=yes
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_cv_lib_socket_connect=no
18897 fi
18898 rm -f conftest.err conftest.$ac_objext \
18899       conftest$ac_exeext conftest.$ac_ext
18900 LIBS=$ac_check_lib_save_LIBS
18901 fi
18902 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18903 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18904 if test $ac_cv_lib_socket_connect = yes; then
18905   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18906 fi
18907
18908     fi
18909
18910     # Guillermo Gomez says -lposix is necessary on A/UX.
18911     echo "$as_me:$LINENO: checking for remove" >&5
18912 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18913 if test "${ac_cv_func_remove+set}" = set; then
18914   echo $ECHO_N "(cached) $ECHO_C" >&6
18915 else
18916   cat >conftest.$ac_ext <<_ACEOF
18917 /* confdefs.h.  */
18918 _ACEOF
18919 cat confdefs.h >>conftest.$ac_ext
18920 cat >>conftest.$ac_ext <<_ACEOF
18921 /* end confdefs.h.  */
18922 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18924 #define remove innocuous_remove
18925
18926 /* System header to define __stub macros and hopefully few prototypes,
18927     which can conflict with char remove (); below.
18928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929     <limits.h> exists even on freestanding compilers.  */
18930
18931 #ifdef __STDC__
18932 # include <limits.h>
18933 #else
18934 # include <assert.h>
18935 #endif
18936
18937 #undef remove
18938
18939 /* Override any gcc2 internal prototype to avoid an error.  */
18940 #ifdef __cplusplus
18941 extern "C"
18942 {
18943 #endif
18944 /* We use char because int might match the return type of a gcc2
18945    builtin and then its argument prototype would still apply.  */
18946 char remove ();
18947 /* The GNU C library defines this for functions which it implements
18948     to always fail with ENOSYS.  Some functions are actually named
18949     something starting with __ and the normal name is an alias.  */
18950 #if defined (__stub_remove) || defined (__stub___remove)
18951 choke me
18952 #else
18953 char (*f) () = remove;
18954 #endif
18955 #ifdef __cplusplus
18956 }
18957 #endif
18958
18959 int
18960 main ()
18961 {
18962 return f != remove;
18963   ;
18964   return 0;
18965 }
18966 _ACEOF
18967 rm -f conftest.$ac_objext conftest$ac_exeext
18968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18969   (eval $ac_link) 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } &&
18976          { ac_try='test -z "$ac_c_werror_flag"
18977                          || test ! -s conftest.err'
18978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18979   (eval $ac_try) 2>&5
18980   ac_status=$?
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); }; } &&
18983          { ac_try='test -s conftest$ac_exeext'
18984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18985   (eval $ac_try) 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_func_remove=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994 ac_cv_func_remove=no
18995 fi
18996 rm -f conftest.err conftest.$ac_objext \
18997       conftest$ac_exeext conftest.$ac_ext
18998 fi
18999 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19000 echo "${ECHO_T}$ac_cv_func_remove" >&6
19001
19002     if test $ac_cv_func_remove = no; then
19003       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19004 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19005 if test "${ac_cv_lib_posix_remove+set}" = set; then
19006   echo $ECHO_N "(cached) $ECHO_C" >&6
19007 else
19008   ac_check_lib_save_LIBS=$LIBS
19009 LIBS="-lposix  $LIBS"
19010 cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016
19017 /* Override any gcc2 internal prototype to avoid an error.  */
19018 #ifdef __cplusplus
19019 extern "C"
19020 #endif
19021 /* We use char because int might match the return type of a gcc2
19022    builtin and then its argument prototype would still apply.  */
19023 char remove ();
19024 int
19025 main ()
19026 {
19027 remove ();
19028   ;
19029   return 0;
19030 }
19031 _ACEOF
19032 rm -f conftest.$ac_objext conftest$ac_exeext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19034   (eval $ac_link) 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_c_werror_flag"
19042                          || test ! -s conftest.err'
19043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044   (eval $ac_try) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; } &&
19048          { ac_try='test -s conftest$ac_exeext'
19049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050   (eval $ac_try) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; }; then
19054   ac_cv_lib_posix_remove=yes
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 ac_cv_lib_posix_remove=no
19060 fi
19061 rm -f conftest.err conftest.$ac_objext \
19062       conftest$ac_exeext conftest.$ac_ext
19063 LIBS=$ac_check_lib_save_LIBS
19064 fi
19065 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19066 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19067 if test $ac_cv_lib_posix_remove = yes; then
19068   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19069 fi
19070
19071     fi
19072
19073     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19074     echo "$as_me:$LINENO: checking for shmat" >&5
19075 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19076 if test "${ac_cv_func_shmat+set}" = set; then
19077   echo $ECHO_N "(cached) $ECHO_C" >&6
19078 else
19079   cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19087 #define shmat innocuous_shmat
19088
19089 /* System header to define __stub macros and hopefully few prototypes,
19090     which can conflict with char shmat (); below.
19091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19092     <limits.h> exists even on freestanding compilers.  */
19093
19094 #ifdef __STDC__
19095 # include <limits.h>
19096 #else
19097 # include <assert.h>
19098 #endif
19099
19100 #undef shmat
19101
19102 /* Override any gcc2 internal prototype to avoid an error.  */
19103 #ifdef __cplusplus
19104 extern "C"
19105 {
19106 #endif
19107 /* We use char because int might match the return type of a gcc2
19108    builtin and then its argument prototype would still apply.  */
19109 char shmat ();
19110 /* The GNU C library defines this for functions which it implements
19111     to always fail with ENOSYS.  Some functions are actually named
19112     something starting with __ and the normal name is an alias.  */
19113 #if defined (__stub_shmat) || defined (__stub___shmat)
19114 choke me
19115 #else
19116 char (*f) () = shmat;
19117 #endif
19118 #ifdef __cplusplus
19119 }
19120 #endif
19121
19122 int
19123 main ()
19124 {
19125 return f != shmat;
19126   ;
19127   return 0;
19128 }
19129 _ACEOF
19130 rm -f conftest.$ac_objext conftest$ac_exeext
19131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19132   (eval $ac_link) 2>conftest.er1
19133   ac_status=$?
19134   grep -v '^ *+' conftest.er1 >conftest.err
19135   rm -f conftest.er1
19136   cat conftest.err >&5
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); } &&
19139          { ac_try='test -z "$ac_c_werror_flag"
19140                          || test ! -s conftest.err'
19141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142   (eval $ac_try) 2>&5
19143   ac_status=$?
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); }; } &&
19146          { ac_try='test -s conftest$ac_exeext'
19147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148   (eval $ac_try) 2>&5
19149   ac_status=$?
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); }; }; then
19152   ac_cv_func_shmat=yes
19153 else
19154   echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19156
19157 ac_cv_func_shmat=no
19158 fi
19159 rm -f conftest.err conftest.$ac_objext \
19160       conftest$ac_exeext conftest.$ac_ext
19161 fi
19162 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19163 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19164
19165     if test $ac_cv_func_shmat = no; then
19166       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19167 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19168 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19169   echo $ECHO_N "(cached) $ECHO_C" >&6
19170 else
19171   ac_check_lib_save_LIBS=$LIBS
19172 LIBS="-lipc  $LIBS"
19173 cat >conftest.$ac_ext <<_ACEOF
19174 /* confdefs.h.  */
19175 _ACEOF
19176 cat confdefs.h >>conftest.$ac_ext
19177 cat >>conftest.$ac_ext <<_ACEOF
19178 /* end confdefs.h.  */
19179
19180 /* Override any gcc2 internal prototype to avoid an error.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 /* We use char because int might match the return type of a gcc2
19185    builtin and then its argument prototype would still apply.  */
19186 char shmat ();
19187 int
19188 main ()
19189 {
19190 shmat ();
19191   ;
19192   return 0;
19193 }
19194 _ACEOF
19195 rm -f conftest.$ac_objext conftest$ac_exeext
19196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19197   (eval $ac_link) 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } &&
19204          { ac_try='test -z "$ac_c_werror_flag"
19205                          || test ! -s conftest.err'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; } &&
19211          { ac_try='test -s conftest$ac_exeext'
19212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213   (eval $ac_try) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; }; then
19217   ac_cv_lib_ipc_shmat=yes
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222 ac_cv_lib_ipc_shmat=no
19223 fi
19224 rm -f conftest.err conftest.$ac_objext \
19225       conftest$ac_exeext conftest.$ac_ext
19226 LIBS=$ac_check_lib_save_LIBS
19227 fi
19228 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19229 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19230 if test $ac_cv_lib_ipc_shmat = yes; then
19231   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19232 fi
19233
19234     fi
19235   fi
19236
19237   # Check for libraries that X11R6 Xt/Xaw programs need.
19238   ac_save_LDFLAGS=$LDFLAGS
19239   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19240   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19241   # check for ICE first), but we must link in the order -lSM -lICE or
19242   # we get undefined symbols.  So assume we have SM if we have ICE.
19243   # These have to be linked with before -lX11, unlike the other
19244   # libraries we check for below, so use a different variable.
19245   # John Interrante, Karl Berry
19246   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19247 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19248 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19249   echo $ECHO_N "(cached) $ECHO_C" >&6
19250 else
19251   ac_check_lib_save_LIBS=$LIBS
19252 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h.  */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h.  */
19259
19260 /* Override any gcc2 internal prototype to avoid an error.  */
19261 #ifdef __cplusplus
19262 extern "C"
19263 #endif
19264 /* We use char because int might match the return type of a gcc2
19265    builtin and then its argument prototype would still apply.  */
19266 char IceConnectionNumber ();
19267 int
19268 main ()
19269 {
19270 IceConnectionNumber ();
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 rm -f conftest.$ac_objext conftest$ac_exeext
19276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19277   (eval $ac_link) 2>conftest.er1
19278   ac_status=$?
19279   grep -v '^ *+' conftest.er1 >conftest.err
19280   rm -f conftest.er1
19281   cat conftest.err >&5
19282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283   (exit $ac_status); } &&
19284          { ac_try='test -z "$ac_c_werror_flag"
19285                          || test ! -s conftest.err'
19286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287   (eval $ac_try) 2>&5
19288   ac_status=$?
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); }; } &&
19291          { ac_try='test -s conftest$ac_exeext'
19292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293   (eval $ac_try) 2>&5
19294   ac_status=$?
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); }; }; then
19297   ac_cv_lib_ICE_IceConnectionNumber=yes
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302 ac_cv_lib_ICE_IceConnectionNumber=no
19303 fi
19304 rm -f conftest.err conftest.$ac_objext \
19305       conftest$ac_exeext conftest.$ac_ext
19306 LIBS=$ac_check_lib_save_LIBS
19307 fi
19308 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19309 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19310 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19311   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19312 fi
19313
19314   LDFLAGS=$ac_save_LDFLAGS
19315
19316 fi
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349 for ac_header in \
19350         assert.h \
19351         fcntl.h \
19352         grp.h \
19353         pwd.h \
19354         libc.h \
19355         limits.h \
19356         stdarg.h \
19357         stdlib.h \
19358         stdint.h \
19359         string.h \
19360         strings.h \
19361         termios.h \
19362         termcap.h \
19363         term.h \
19364         unistd.h \
19365         sys/bitypes.h \
19366         sys/byteorder.h \
19367         sys/ioctl.h \
19368         sys/select.h \
19369         sys/socket.h \
19370         sys/sockio.h \
19371         sys/stat.h \
19372         sys/time.h \
19373         sys/types.h \
19374         arpa/nameser.h \
19375         resolv.h \
19376         mtio.h \
19377         sys/mtio.h \
19378         sys/tape.h \
19379         regex.h \
19380
19381 do
19382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19384   echo "$as_me:$LINENO: checking for $ac_header" >&5
19385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19387   echo $ECHO_N "(cached) $ECHO_C" >&6
19388 fi
19389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19391 else
19392   # Is the header compilable?
19393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401 $ac_includes_default
19402 #include <$ac_header>
19403 _ACEOF
19404 rm -f conftest.$ac_objext
19405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19406   (eval $ac_compile) 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); } &&
19413          { ac_try='test -z "$ac_c_werror_flag"
19414                          || test ! -s conftest.err'
19415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416   (eval $ac_try) 2>&5
19417   ac_status=$?
19418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419   (exit $ac_status); }; } &&
19420          { ac_try='test -s conftest.$ac_objext'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; }; then
19426   ac_header_compiler=yes
19427 else
19428   echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 ac_header_compiler=no
19432 fi
19433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19434 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19435 echo "${ECHO_T}$ac_header_compiler" >&6
19436
19437 # Is the header present?
19438 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19440 cat >conftest.$ac_ext <<_ACEOF
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446 #include <$ac_header>
19447 _ACEOF
19448 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19449   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19450   ac_status=$?
19451   grep -v '^ *+' conftest.er1 >conftest.err
19452   rm -f conftest.er1
19453   cat conftest.err >&5
19454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455   (exit $ac_status); } >/dev/null; then
19456   if test -s conftest.err; then
19457     ac_cpp_err=$ac_c_preproc_warn_flag
19458     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19459   else
19460     ac_cpp_err=
19461   fi
19462 else
19463   ac_cpp_err=yes
19464 fi
19465 if test -z "$ac_cpp_err"; then
19466   ac_header_preproc=yes
19467 else
19468   echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19470
19471   ac_header_preproc=no
19472 fi
19473 rm -f conftest.err conftest.$ac_ext
19474 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19475 echo "${ECHO_T}$ac_header_preproc" >&6
19476
19477 # So?  What about this header?
19478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19479   yes:no: )
19480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19484     ac_header_preproc=yes
19485     ;;
19486   no:yes:* )
19487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19499     (
19500       cat <<\_ASBOX
19501 ## ------------------------------------------ ##
19502 ## Report this to the AC_PACKAGE_NAME lists.  ##
19503 ## ------------------------------------------ ##
19504 _ASBOX
19505     ) |
19506       sed "s/^/$as_me: WARNING:     /" >&2
19507     ;;
19508 esac
19509 echo "$as_me:$LINENO: checking for $ac_header" >&5
19510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19511 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19512   echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514   eval "$as_ac_Header=\$ac_header_preproc"
19515 fi
19516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19518
19519 fi
19520 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19521   cat >>confdefs.h <<_ACEOF
19522 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19523 _ACEOF
19524
19525 fi
19526
19527 done
19528
19529 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19530 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19531 if test "${ac_cv_header_stdc+set}" = set; then
19532   echo $ECHO_N "(cached) $ECHO_C" >&6
19533 else
19534   cat >conftest.$ac_ext <<_ACEOF
19535 /* confdefs.h.  */
19536 _ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h.  */
19540 #include <stdlib.h>
19541 #include <stdarg.h>
19542 #include <string.h>
19543 #include <float.h>
19544
19545 int
19546 main ()
19547 {
19548
19549   ;
19550   return 0;
19551 }
19552 _ACEOF
19553 rm -f conftest.$ac_objext
19554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19555   (eval $ac_compile) 2>conftest.er1
19556   ac_status=$?
19557   grep -v '^ *+' conftest.er1 >conftest.err
19558   rm -f conftest.er1
19559   cat conftest.err >&5
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } &&
19562          { ac_try='test -z "$ac_c_werror_flag"
19563                          || test ! -s conftest.err'
19564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565   (eval $ac_try) 2>&5
19566   ac_status=$?
19567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568   (exit $ac_status); }; } &&
19569          { ac_try='test -s conftest.$ac_objext'
19570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571   (eval $ac_try) 2>&5
19572   ac_status=$?
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); }; }; then
19575   ac_cv_header_stdc=yes
19576 else
19577   echo "$as_me: failed program was:" >&5
19578 sed 's/^/| /' conftest.$ac_ext >&5
19579
19580 ac_cv_header_stdc=no
19581 fi
19582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19583
19584 if test $ac_cv_header_stdc = yes; then
19585   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19586   cat >conftest.$ac_ext <<_ACEOF
19587 /* confdefs.h.  */
19588 _ACEOF
19589 cat confdefs.h >>conftest.$ac_ext
19590 cat >>conftest.$ac_ext <<_ACEOF
19591 /* end confdefs.h.  */
19592 #include <string.h>
19593
19594 _ACEOF
19595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19596   $EGREP "memchr" >/dev/null 2>&1; then
19597   :
19598 else
19599   ac_cv_header_stdc=no
19600 fi
19601 rm -f conftest*
19602
19603 fi
19604
19605 if test $ac_cv_header_stdc = yes; then
19606   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19607   cat >conftest.$ac_ext <<_ACEOF
19608 /* confdefs.h.  */
19609 _ACEOF
19610 cat confdefs.h >>conftest.$ac_ext
19611 cat >>conftest.$ac_ext <<_ACEOF
19612 /* end confdefs.h.  */
19613 #include <stdlib.h>
19614
19615 _ACEOF
19616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19617   $EGREP "free" >/dev/null 2>&1; then
19618   :
19619 else
19620   ac_cv_header_stdc=no
19621 fi
19622 rm -f conftest*
19623
19624 fi
19625
19626 if test $ac_cv_header_stdc = yes; then
19627   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19628   if test "$cross_compiling" = yes; then
19629   :
19630 else
19631   cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 #include <ctype.h>
19638 #if ((' ' & 0x0FF) == 0x020)
19639 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19640 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19641 #else
19642 # define ISLOWER(c) \
19643                    (('a' <= (c) && (c) <= 'i') \
19644                      || ('j' <= (c) && (c) <= 'r') \
19645                      || ('s' <= (c) && (c) <= 'z'))
19646 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19647 #endif
19648
19649 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19650 int
19651 main ()
19652 {
19653   int i;
19654   for (i = 0; i < 256; i++)
19655     if (XOR (islower (i), ISLOWER (i))
19656         || toupper (i) != TOUPPER (i))
19657       exit(2);
19658   exit (0);
19659 }
19660 _ACEOF
19661 rm -f conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663   (eval $ac_link) 2>&5
19664   ac_status=$?
19665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668   (eval $ac_try) 2>&5
19669   ac_status=$?
19670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671   (exit $ac_status); }; }; then
19672   :
19673 else
19674   echo "$as_me: program exited with status $ac_status" >&5
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19677
19678 ( exit $ac_status )
19679 ac_cv_header_stdc=no
19680 fi
19681 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19682 fi
19683 fi
19684 fi
19685 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19686 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19687 if test $ac_cv_header_stdc = yes; then
19688
19689 cat >>confdefs.h <<\_ACEOF
19690 #define STDC_HEADERS 1
19691 _ACEOF
19692
19693 fi
19694
19695 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19696 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19697 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19698   echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700   cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706 #include <sys/types.h>
19707 int
19708 main ()
19709 {
19710 return makedev(0, 0);
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19717   (eval $ac_link) 2>conftest.er1
19718   ac_status=$?
19719   grep -v '^ *+' conftest.er1 >conftest.err
19720   rm -f conftest.er1
19721   cat conftest.err >&5
19722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723   (exit $ac_status); } &&
19724          { ac_try='test -z "$ac_c_werror_flag"
19725                          || test ! -s conftest.err'
19726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19727   (eval $ac_try) 2>&5
19728   ac_status=$?
19729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730   (exit $ac_status); }; } &&
19731          { ac_try='test -s conftest$ac_exeext'
19732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733   (eval $ac_try) 2>&5
19734   ac_status=$?
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); }; }; then
19737   ac_cv_header_sys_types_h_makedev=yes
19738 else
19739   echo "$as_me: failed program was:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19741
19742 ac_cv_header_sys_types_h_makedev=no
19743 fi
19744 rm -f conftest.err conftest.$ac_objext \
19745       conftest$ac_exeext conftest.$ac_ext
19746
19747 fi
19748 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19749 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19750
19751 if test $ac_cv_header_sys_types_h_makedev = no; then
19752 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19753   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19754 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19755 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19756   echo $ECHO_N "(cached) $ECHO_C" >&6
19757 fi
19758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19759 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19760 else
19761   # Is the header compilable?
19762 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19763 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19764 cat >conftest.$ac_ext <<_ACEOF
19765 /* confdefs.h.  */
19766 _ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.h.  */
19770 $ac_includes_default
19771 #include <sys/mkdev.h>
19772 _ACEOF
19773 rm -f conftest.$ac_objext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19775   (eval $ac_compile) 2>conftest.er1
19776   ac_status=$?
19777   grep -v '^ *+' conftest.er1 >conftest.err
19778   rm -f conftest.er1
19779   cat conftest.err >&5
19780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781   (exit $ac_status); } &&
19782          { ac_try='test -z "$ac_c_werror_flag"
19783                          || test ! -s conftest.err'
19784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785   (eval $ac_try) 2>&5
19786   ac_status=$?
19787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788   (exit $ac_status); }; } &&
19789          { ac_try='test -s conftest.$ac_objext'
19790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791   (eval $ac_try) 2>&5
19792   ac_status=$?
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); }; }; then
19795   ac_header_compiler=yes
19796 else
19797   echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19799
19800 ac_header_compiler=no
19801 fi
19802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19803 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19804 echo "${ECHO_T}$ac_header_compiler" >&6
19805
19806 # Is the header present?
19807 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19808 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19809 cat >conftest.$ac_ext <<_ACEOF
19810 /* confdefs.h.  */
19811 _ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h.  */
19815 #include <sys/mkdev.h>
19816 _ACEOF
19817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19819   ac_status=$?
19820   grep -v '^ *+' conftest.er1 >conftest.err
19821   rm -f conftest.er1
19822   cat conftest.err >&5
19823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824   (exit $ac_status); } >/dev/null; then
19825   if test -s conftest.err; then
19826     ac_cpp_err=$ac_c_preproc_warn_flag
19827     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19828   else
19829     ac_cpp_err=
19830   fi
19831 else
19832   ac_cpp_err=yes
19833 fi
19834 if test -z "$ac_cpp_err"; then
19835   ac_header_preproc=yes
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840   ac_header_preproc=no
19841 fi
19842 rm -f conftest.err conftest.$ac_ext
19843 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19844 echo "${ECHO_T}$ac_header_preproc" >&6
19845
19846 # So?  What about this header?
19847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19848   yes:no: )
19849     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19850 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19851     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19852 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19853     ac_header_preproc=yes
19854     ;;
19855   no:yes:* )
19856     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19857 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19858     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19859 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19860     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19861 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19862     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19863 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19864     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19865 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19866     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19867 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19868     (
19869       cat <<\_ASBOX
19870 ## ------------------------------------------ ##
19871 ## Report this to the AC_PACKAGE_NAME lists.  ##
19872 ## ------------------------------------------ ##
19873 _ASBOX
19874     ) |
19875       sed "s/^/$as_me: WARNING:     /" >&2
19876     ;;
19877 esac
19878 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19879 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19880 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19881   echo $ECHO_N "(cached) $ECHO_C" >&6
19882 else
19883   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19884 fi
19885 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19886 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19887
19888 fi
19889 if test $ac_cv_header_sys_mkdev_h = yes; then
19890
19891 cat >>confdefs.h <<\_ACEOF
19892 #define MAJOR_IN_MKDEV 1
19893 _ACEOF
19894
19895 fi
19896
19897
19898
19899   if test $ac_cv_header_sys_mkdev_h = no; then
19900     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19901   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19902 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19903 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19904   echo $ECHO_N "(cached) $ECHO_C" >&6
19905 fi
19906 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19907 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19908 else
19909   # Is the header compilable?
19910 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19911 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19912 cat >conftest.$ac_ext <<_ACEOF
19913 /* confdefs.h.  */
19914 _ACEOF
19915 cat confdefs.h >>conftest.$ac_ext
19916 cat >>conftest.$ac_ext <<_ACEOF
19917 /* end confdefs.h.  */
19918 $ac_includes_default
19919 #include <sys/sysmacros.h>
19920 _ACEOF
19921 rm -f conftest.$ac_objext
19922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19923   (eval $ac_compile) 2>conftest.er1
19924   ac_status=$?
19925   grep -v '^ *+' conftest.er1 >conftest.err
19926   rm -f conftest.er1
19927   cat conftest.err >&5
19928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929   (exit $ac_status); } &&
19930          { ac_try='test -z "$ac_c_werror_flag"
19931                          || test ! -s conftest.err'
19932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933   (eval $ac_try) 2>&5
19934   ac_status=$?
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); }; } &&
19937          { ac_try='test -s conftest.$ac_objext'
19938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19939   (eval $ac_try) 2>&5
19940   ac_status=$?
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); }; }; then
19943   ac_header_compiler=yes
19944 else
19945   echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 ac_header_compiler=no
19949 fi
19950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19952 echo "${ECHO_T}$ac_header_compiler" >&6
19953
19954 # Is the header present?
19955 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19956 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19957 cat >conftest.$ac_ext <<_ACEOF
19958 /* confdefs.h.  */
19959 _ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h.  */
19963 #include <sys/sysmacros.h>
19964 _ACEOF
19965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19966   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } >/dev/null; then
19973   if test -s conftest.err; then
19974     ac_cpp_err=$ac_c_preproc_warn_flag
19975     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19976   else
19977     ac_cpp_err=
19978   fi
19979 else
19980   ac_cpp_err=yes
19981 fi
19982 if test -z "$ac_cpp_err"; then
19983   ac_header_preproc=yes
19984 else
19985   echo "$as_me: failed program was:" >&5
19986 sed 's/^/| /' conftest.$ac_ext >&5
19987
19988   ac_header_preproc=no
19989 fi
19990 rm -f conftest.err conftest.$ac_ext
19991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19992 echo "${ECHO_T}$ac_header_preproc" >&6
19993
19994 # So?  What about this header?
19995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19996   yes:no: )
19997     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19998 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19999     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20000 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20001     ac_header_preproc=yes
20002     ;;
20003   no:yes:* )
20004     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20005 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20006     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20007 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20008     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20009 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20010     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20011 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20013 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20014     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20015 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20016     (
20017       cat <<\_ASBOX
20018 ## ------------------------------------------ ##
20019 ## Report this to the AC_PACKAGE_NAME lists.  ##
20020 ## ------------------------------------------ ##
20021 _ASBOX
20022     ) |
20023       sed "s/^/$as_me: WARNING:     /" >&2
20024     ;;
20025 esac
20026 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20027 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20028 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20029   echo $ECHO_N "(cached) $ECHO_C" >&6
20030 else
20031   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20032 fi
20033 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20034 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20035
20036 fi
20037 if test $ac_cv_header_sys_sysmacros_h = yes; then
20038
20039 cat >>confdefs.h <<\_ACEOF
20040 #define MAJOR_IN_SYSMACROS 1
20041 _ACEOF
20042
20043 fi
20044
20045
20046   fi
20047 fi
20048
20049
20050
20051
20052
20053
20054 ac_header_dirent=no
20055 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20056   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20057 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20058 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20060   echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062   cat >conftest.$ac_ext <<_ACEOF
20063 /* confdefs.h.  */
20064 _ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h.  */
20068 #include <sys/types.h>
20069 #include <$ac_hdr>
20070
20071 int
20072 main ()
20073 {
20074 if ((DIR *) 0)
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   eval "$as_ac_Header=yes"
20103 else
20104   echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20106
20107 eval "$as_ac_Header=no"
20108 fi
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20110 fi
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114   cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 ac_header_dirent=$ac_hdr; break
20119 fi
20120
20121 done
20122 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20123 if test $ac_header_dirent = dirent.h; then
20124   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20125 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20126 if test "${ac_cv_search_opendir+set}" = set; then
20127   echo $ECHO_N "(cached) $ECHO_C" >&6
20128 else
20129   ac_func_search_save_LIBS=$LIBS
20130 ac_cv_search_opendir=no
20131 cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137
20138 /* Override any gcc2 internal prototype to avoid an error.  */
20139 #ifdef __cplusplus
20140 extern "C"
20141 #endif
20142 /* We use char because int might match the return type of a gcc2
20143    builtin and then its argument prototype would still apply.  */
20144 char opendir ();
20145 int
20146 main ()
20147 {
20148 opendir ();
20149   ;
20150   return 0;
20151 }
20152 _ACEOF
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155   (eval $ac_link) 2>conftest.er1
20156   ac_status=$?
20157   grep -v '^ *+' conftest.er1 >conftest.err
20158   rm -f conftest.er1
20159   cat conftest.err >&5
20160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161   (exit $ac_status); } &&
20162          { ac_try='test -z "$ac_c_werror_flag"
20163                          || test ! -s conftest.err'
20164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20165   (eval $ac_try) 2>&5
20166   ac_status=$?
20167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20168   (exit $ac_status); }; } &&
20169          { ac_try='test -s conftest$ac_exeext'
20170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171   (eval $ac_try) 2>&5
20172   ac_status=$?
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); }; }; then
20175   ac_cv_search_opendir="none required"
20176 else
20177   echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 fi
20181 rm -f conftest.err conftest.$ac_objext \
20182       conftest$ac_exeext conftest.$ac_ext
20183 if test "$ac_cv_search_opendir" = no; then
20184   for ac_lib in dir; do
20185     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20186     cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192
20193 /* Override any gcc2 internal prototype to avoid an error.  */
20194 #ifdef __cplusplus
20195 extern "C"
20196 #endif
20197 /* We use char because int might match the return type of a gcc2
20198    builtin and then its argument prototype would still apply.  */
20199 char opendir ();
20200 int
20201 main ()
20202 {
20203 opendir ();
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20210   (eval $ac_link) 2>conftest.er1
20211   ac_status=$?
20212   grep -v '^ *+' conftest.er1 >conftest.err
20213   rm -f conftest.er1
20214   cat conftest.err >&5
20215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216   (exit $ac_status); } &&
20217          { ac_try='test -z "$ac_c_werror_flag"
20218                          || test ! -s conftest.err'
20219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220   (eval $ac_try) 2>&5
20221   ac_status=$?
20222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223   (exit $ac_status); }; } &&
20224          { ac_try='test -s conftest$ac_exeext'
20225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226   (eval $ac_try) 2>&5
20227   ac_status=$?
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); }; }; then
20230   ac_cv_search_opendir="-l$ac_lib"
20231 break
20232 else
20233   echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 fi
20237 rm -f conftest.err conftest.$ac_objext \
20238       conftest$ac_exeext conftest.$ac_ext
20239   done
20240 fi
20241 LIBS=$ac_func_search_save_LIBS
20242 fi
20243 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20244 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20245 if test "$ac_cv_search_opendir" != no; then
20246   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20247
20248 fi
20249
20250 else
20251   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20252 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20253 if test "${ac_cv_search_opendir+set}" = set; then
20254   echo $ECHO_N "(cached) $ECHO_C" >&6
20255 else
20256   ac_func_search_save_LIBS=$LIBS
20257 ac_cv_search_opendir=no
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
20265 /* Override any gcc2 internal prototype to avoid an error.  */
20266 #ifdef __cplusplus
20267 extern "C"
20268 #endif
20269 /* We use char because int might match the return type of a gcc2
20270    builtin and then its argument prototype would still apply.  */
20271 char opendir ();
20272 int
20273 main ()
20274 {
20275 opendir ();
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest.$ac_objext conftest$ac_exeext
20281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20282   (eval $ac_link) 2>conftest.er1
20283   ac_status=$?
20284   grep -v '^ *+' conftest.er1 >conftest.err
20285   rm -f conftest.er1
20286   cat conftest.err >&5
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } &&
20289          { ac_try='test -z "$ac_c_werror_flag"
20290                          || test ! -s conftest.err'
20291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292   (eval $ac_try) 2>&5
20293   ac_status=$?
20294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295   (exit $ac_status); }; } &&
20296          { ac_try='test -s conftest$ac_exeext'
20297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298   (eval $ac_try) 2>&5
20299   ac_status=$?
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; }; then
20302   ac_cv_search_opendir="none required"
20303 else
20304   echo "$as_me: failed program was:" >&5
20305 sed 's/^/| /' conftest.$ac_ext >&5
20306
20307 fi
20308 rm -f conftest.err conftest.$ac_objext \
20309       conftest$ac_exeext conftest.$ac_ext
20310 if test "$ac_cv_search_opendir" = no; then
20311   for ac_lib in x; do
20312     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20313     cat >conftest.$ac_ext <<_ACEOF
20314 /* confdefs.h.  */
20315 _ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h.  */
20319
20320 /* Override any gcc2 internal prototype to avoid an error.  */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 /* We use char because int might match the return type of a gcc2
20325    builtin and then its argument prototype would still apply.  */
20326 char opendir ();
20327 int
20328 main ()
20329 {
20330 opendir ();
20331   ;
20332   return 0;
20333 }
20334 _ACEOF
20335 rm -f conftest.$ac_objext conftest$ac_exeext
20336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20337   (eval $ac_link) 2>conftest.er1
20338   ac_status=$?
20339   grep -v '^ *+' conftest.er1 >conftest.err
20340   rm -f conftest.er1
20341   cat conftest.err >&5
20342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343   (exit $ac_status); } &&
20344          { ac_try='test -z "$ac_c_werror_flag"
20345                          || test ! -s conftest.err'
20346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347   (eval $ac_try) 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
20357   ac_cv_search_opendir="-l$ac_lib"
20358 break
20359 else
20360   echo "$as_me: failed program was:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20362
20363 fi
20364 rm -f conftest.err conftest.$ac_objext \
20365       conftest$ac_exeext conftest.$ac_ext
20366   done
20367 fi
20368 LIBS=$ac_func_search_save_LIBS
20369 fi
20370 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20371 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20372 if test "$ac_cv_search_opendir" != no; then
20373   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20374
20375 fi
20376
20377 fi
20378
20379 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20380 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20381 if test "${ac_cv_header_stat_broken+set}" = set; then
20382   echo $ECHO_N "(cached) $ECHO_C" >&6
20383 else
20384   cat >conftest.$ac_ext <<_ACEOF
20385 /* confdefs.h.  */
20386 _ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h.  */
20390 #include <sys/types.h>
20391 #include <sys/stat.h>
20392
20393 #if defined(S_ISBLK) && defined(S_IFDIR)
20394 # if S_ISBLK (S_IFDIR)
20395 You lose.
20396 # endif
20397 #endif
20398
20399 #if defined(S_ISBLK) && defined(S_IFCHR)
20400 # if S_ISBLK (S_IFCHR)
20401 You lose.
20402 # endif
20403 #endif
20404
20405 #if defined(S_ISLNK) && defined(S_IFREG)
20406 # if S_ISLNK (S_IFREG)
20407 You lose.
20408 # endif
20409 #endif
20410
20411 #if defined(S_ISSOCK) && defined(S_IFREG)
20412 # if S_ISSOCK (S_IFREG)
20413 You lose.
20414 # endif
20415 #endif
20416
20417 _ACEOF
20418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20419   $EGREP "You lose" >/dev/null 2>&1; then
20420   ac_cv_header_stat_broken=yes
20421 else
20422   ac_cv_header_stat_broken=no
20423 fi
20424 rm -f conftest*
20425
20426 fi
20427 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20428 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20429 if test $ac_cv_header_stat_broken = yes; then
20430
20431 cat >>confdefs.h <<\_ACEOF
20432 #define STAT_MACROS_BROKEN 1
20433 _ACEOF
20434
20435 fi
20436
20437 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20438 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20439 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20440   echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442   cat >conftest.$ac_ext <<_ACEOF
20443 /* confdefs.h.  */
20444 _ACEOF
20445 cat confdefs.h >>conftest.$ac_ext
20446 cat >>conftest.$ac_ext <<_ACEOF
20447 /* end confdefs.h.  */
20448 #include <sys/types.h>
20449 #include <sys/wait.h>
20450 #ifndef WEXITSTATUS
20451 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20452 #endif
20453 #ifndef WIFEXITED
20454 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20455 #endif
20456
20457 int
20458 main ()
20459 {
20460   int s;
20461   wait (&s);
20462   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20463   ;
20464   return 0;
20465 }
20466 _ACEOF
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469   (eval $ac_compile) 2>conftest.er1
20470   ac_status=$?
20471   grep -v '^ *+' conftest.er1 >conftest.err
20472   rm -f conftest.er1
20473   cat conftest.err >&5
20474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475   (exit $ac_status); } &&
20476          { ac_try='test -z "$ac_c_werror_flag"
20477                          || test ! -s conftest.err'
20478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20479   (eval $ac_try) 2>&5
20480   ac_status=$?
20481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20482   (exit $ac_status); }; } &&
20483          { ac_try='test -s conftest.$ac_objext'
20484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20485   (eval $ac_try) 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; }; then
20489   ac_cv_header_sys_wait_h=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494 ac_cv_header_sys_wait_h=no
20495 fi
20496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20497 fi
20498 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20499 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20500 if test $ac_cv_header_sys_wait_h = yes; then
20501
20502 cat >>confdefs.h <<\_ACEOF
20503 #define HAVE_SYS_WAIT_H 1
20504 _ACEOF
20505
20506 fi
20507
20508 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20509 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20510 if test "${ac_cv_header_time+set}" = set; then
20511   echo $ECHO_N "(cached) $ECHO_C" >&6
20512 else
20513   cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h.  */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h.  */
20519 #include <sys/types.h>
20520 #include <sys/time.h>
20521 #include <time.h>
20522
20523 int
20524 main ()
20525 {
20526 if ((struct tm *) 0)
20527 return 0;
20528   ;
20529   return 0;
20530 }
20531 _ACEOF
20532 rm -f conftest.$ac_objext
20533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20534   (eval $ac_compile) 2>conftest.er1
20535   ac_status=$?
20536   grep -v '^ *+' conftest.er1 >conftest.err
20537   rm -f conftest.er1
20538   cat conftest.err >&5
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); } &&
20541          { ac_try='test -z "$ac_c_werror_flag"
20542                          || test ! -s conftest.err'
20543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20544   (eval $ac_try) 2>&5
20545   ac_status=$?
20546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547   (exit $ac_status); }; } &&
20548          { ac_try='test -s conftest.$ac_objext'
20549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550   (eval $ac_try) 2>&5
20551   ac_status=$?
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); }; }; then
20554   ac_cv_header_time=yes
20555 else
20556   echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_header_time=no
20560 fi
20561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20562 fi
20563 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20564 echo "${ECHO_T}$ac_cv_header_time" >&6
20565 if test $ac_cv_header_time = yes; then
20566
20567 cat >>confdefs.h <<\_ACEOF
20568 #define TIME_WITH_SYS_TIME 1
20569 _ACEOF
20570
20571 fi
20572
20573
20574 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20575 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20576 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20577   echo $ECHO_N "(cached) $ECHO_C" >&6
20578 else
20579   cat >conftest.$ac_ext <<_ACEOF
20580 /* confdefs.h.  */
20581 _ACEOF
20582 cat confdefs.h >>conftest.$ac_ext
20583 cat >>conftest.$ac_ext <<_ACEOF
20584 /* end confdefs.h.  */
20585 $ac_includes_default
20586 int
20587 main ()
20588 {
20589 static struct stat ac_aggr;
20590 if (ac_aggr.st_blksize)
20591 return 0;
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 rm -f conftest.$ac_objext
20597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20598   (eval $ac_compile) 2>conftest.er1
20599   ac_status=$?
20600   grep -v '^ *+' conftest.er1 >conftest.err
20601   rm -f conftest.er1
20602   cat conftest.err >&5
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); } &&
20605          { ac_try='test -z "$ac_c_werror_flag"
20606                          || test ! -s conftest.err'
20607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608   (eval $ac_try) 2>&5
20609   ac_status=$?
20610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611   (exit $ac_status); }; } &&
20612          { ac_try='test -s conftest.$ac_objext'
20613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614   (eval $ac_try) 2>&5
20615   ac_status=$?
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); }; }; then
20618   ac_cv_member_struct_stat_st_blksize=yes
20619 else
20620   echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 cat >conftest.$ac_ext <<_ACEOF
20624 /* confdefs.h.  */
20625 _ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h.  */
20629 $ac_includes_default
20630 int
20631 main ()
20632 {
20633 static struct stat ac_aggr;
20634 if (sizeof ac_aggr.st_blksize)
20635 return 0;
20636   ;
20637   return 0;
20638 }
20639 _ACEOF
20640 rm -f conftest.$ac_objext
20641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20642   (eval $ac_compile) 2>conftest.er1
20643   ac_status=$?
20644   grep -v '^ *+' conftest.er1 >conftest.err
20645   rm -f conftest.er1
20646   cat conftest.err >&5
20647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648   (exit $ac_status); } &&
20649          { ac_try='test -z "$ac_c_werror_flag"
20650                          || test ! -s conftest.err'
20651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652   (eval $ac_try) 2>&5
20653   ac_status=$?
20654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655   (exit $ac_status); }; } &&
20656          { ac_try='test -s conftest.$ac_objext'
20657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20658   (eval $ac_try) 2>&5
20659   ac_status=$?
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); }; }; then
20662   ac_cv_member_struct_stat_st_blksize=yes
20663 else
20664   echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667 ac_cv_member_struct_stat_st_blksize=no
20668 fi
20669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20670 fi
20671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20672 fi
20673 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20674 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20675 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20676
20677 cat >>confdefs.h <<_ACEOF
20678 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20679 _ACEOF
20680
20681
20682 cat >>confdefs.h <<\_ACEOF
20683 #define HAVE_ST_BLKSIZE 1
20684 _ACEOF
20685
20686 fi
20687
20688
20689 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20690 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20691 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20692   echo $ECHO_N "(cached) $ECHO_C" >&6
20693 else
20694   cat >conftest.$ac_ext <<_ACEOF
20695 /* confdefs.h.  */
20696 _ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h.  */
20700 $ac_includes_default
20701 int
20702 main ()
20703 {
20704 static struct stat ac_aggr;
20705 if (ac_aggr.st_blocks)
20706 return 0;
20707   ;
20708   return 0;
20709 }
20710 _ACEOF
20711 rm -f conftest.$ac_objext
20712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20713   (eval $ac_compile) 2>conftest.er1
20714   ac_status=$?
20715   grep -v '^ *+' conftest.er1 >conftest.err
20716   rm -f conftest.er1
20717   cat conftest.err >&5
20718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719   (exit $ac_status); } &&
20720          { ac_try='test -z "$ac_c_werror_flag"
20721                          || test ! -s conftest.err'
20722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20723   (eval $ac_try) 2>&5
20724   ac_status=$?
20725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726   (exit $ac_status); }; } &&
20727          { ac_try='test -s conftest.$ac_objext'
20728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20729   (eval $ac_try) 2>&5
20730   ac_status=$?
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); }; }; then
20733   ac_cv_member_struct_stat_st_blocks=yes
20734 else
20735   echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.$ac_ext >&5
20737
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 $ac_includes_default
20745 int
20746 main ()
20747 {
20748 static struct stat ac_aggr;
20749 if (sizeof ac_aggr.st_blocks)
20750 return 0;
20751   ;
20752   return 0;
20753 }
20754 _ACEOF
20755 rm -f conftest.$ac_objext
20756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20757   (eval $ac_compile) 2>conftest.er1
20758   ac_status=$?
20759   grep -v '^ *+' conftest.er1 >conftest.err
20760   rm -f conftest.er1
20761   cat conftest.err >&5
20762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763   (exit $ac_status); } &&
20764          { ac_try='test -z "$ac_c_werror_flag"
20765                          || test ! -s conftest.err'
20766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767   (eval $ac_try) 2>&5
20768   ac_status=$?
20769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770   (exit $ac_status); }; } &&
20771          { ac_try='test -s conftest.$ac_objext'
20772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773   (eval $ac_try) 2>&5
20774   ac_status=$?
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); }; }; then
20777   ac_cv_member_struct_stat_st_blocks=yes
20778 else
20779   echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20781
20782 ac_cv_member_struct_stat_st_blocks=no
20783 fi
20784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785 fi
20786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20787 fi
20788 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20789 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20790 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20791
20792 cat >>confdefs.h <<_ACEOF
20793 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20794 _ACEOF
20795
20796
20797 cat >>confdefs.h <<\_ACEOF
20798 #define HAVE_ST_BLOCKS 1
20799 _ACEOF
20800
20801 else
20802   case $LIBOBJS in
20803     "fileblocks.$ac_objext"   | \
20804   *" fileblocks.$ac_objext"   | \
20805     "fileblocks.$ac_objext "* | \
20806   *" fileblocks.$ac_objext "* ) ;;
20807   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20808 esac
20809
20810 fi
20811
20812
20813 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20814 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20815 if test "${ac_cv_struct_tm+set}" = set; then
20816   echo $ECHO_N "(cached) $ECHO_C" >&6
20817 else
20818   cat >conftest.$ac_ext <<_ACEOF
20819 /* confdefs.h.  */
20820 _ACEOF
20821 cat confdefs.h >>conftest.$ac_ext
20822 cat >>conftest.$ac_ext <<_ACEOF
20823 /* end confdefs.h.  */
20824 #include <sys/types.h>
20825 #include <time.h>
20826
20827 int
20828 main ()
20829 {
20830 struct tm *tp; tp->tm_sec;
20831   ;
20832   return 0;
20833 }
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20837   (eval $ac_compile) 2>conftest.er1
20838   ac_status=$?
20839   grep -v '^ *+' conftest.er1 >conftest.err
20840   rm -f conftest.er1
20841   cat conftest.err >&5
20842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20843   (exit $ac_status); } &&
20844          { ac_try='test -z "$ac_c_werror_flag"
20845                          || test ! -s conftest.err'
20846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847   (eval $ac_try) 2>&5
20848   ac_status=$?
20849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850   (exit $ac_status); }; } &&
20851          { ac_try='test -s conftest.$ac_objext'
20852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853   (eval $ac_try) 2>&5
20854   ac_status=$?
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); }; }; then
20857   ac_cv_struct_tm=time.h
20858 else
20859   echo "$as_me: failed program was:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20861
20862 ac_cv_struct_tm=sys/time.h
20863 fi
20864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20865 fi
20866 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20867 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20868 if test $ac_cv_struct_tm = sys/time.h; then
20869
20870 cat >>confdefs.h <<\_ACEOF
20871 #define TM_IN_SYS_TIME 1
20872 _ACEOF
20873
20874 fi
20875
20876 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20877 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20878 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20879   echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881   cat >conftest.$ac_ext <<_ACEOF
20882 /* confdefs.h.  */
20883 _ACEOF
20884 cat confdefs.h >>conftest.$ac_ext
20885 cat >>conftest.$ac_ext <<_ACEOF
20886 /* end confdefs.h.  */
20887 #include <sys/types.h>
20888 #include <$ac_cv_struct_tm>
20889
20890
20891 int
20892 main ()
20893 {
20894 static struct tm ac_aggr;
20895 if (ac_aggr.tm_zone)
20896 return 0;
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 rm -f conftest.$ac_objext
20902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20903   (eval $ac_compile) 2>conftest.er1
20904   ac_status=$?
20905   grep -v '^ *+' conftest.er1 >conftest.err
20906   rm -f conftest.er1
20907   cat conftest.err >&5
20908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909   (exit $ac_status); } &&
20910          { ac_try='test -z "$ac_c_werror_flag"
20911                          || test ! -s conftest.err'
20912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20913   (eval $ac_try) 2>&5
20914   ac_status=$?
20915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); }; } &&
20917          { ac_try='test -s conftest.$ac_objext'
20918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20919   (eval $ac_try) 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); }; }; then
20923   ac_cv_member_struct_tm_tm_zone=yes
20924 else
20925   echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934 #include <sys/types.h>
20935 #include <$ac_cv_struct_tm>
20936
20937
20938 int
20939 main ()
20940 {
20941 static struct tm ac_aggr;
20942 if (sizeof ac_aggr.tm_zone)
20943 return 0;
20944   ;
20945   return 0;
20946 }
20947 _ACEOF
20948 rm -f conftest.$ac_objext
20949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20950   (eval $ac_compile) 2>conftest.er1
20951   ac_status=$?
20952   grep -v '^ *+' conftest.er1 >conftest.err
20953   rm -f conftest.er1
20954   cat conftest.err >&5
20955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956   (exit $ac_status); } &&
20957          { ac_try='test -z "$ac_c_werror_flag"
20958                          || test ! -s conftest.err'
20959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20960   (eval $ac_try) 2>&5
20961   ac_status=$?
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); }; } &&
20964          { ac_try='test -s conftest.$ac_objext'
20965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20966   (eval $ac_try) 2>&5
20967   ac_status=$?
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); }; }; then
20970   ac_cv_member_struct_tm_tm_zone=yes
20971 else
20972   echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_cv_member_struct_tm_tm_zone=no
20976 fi
20977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20978 fi
20979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20980 fi
20981 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20982 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20983 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20984
20985 cat >>confdefs.h <<_ACEOF
20986 #define HAVE_STRUCT_TM_TM_ZONE 1
20987 _ACEOF
20988
20989
20990 fi
20991
20992 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20993
20994 cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_TM_ZONE 1
20996 _ACEOF
20997
20998 else
20999   echo "$as_me:$LINENO: checking for tzname" >&5
21000 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21001 if test "${ac_cv_var_tzname+set}" = set; then
21002   echo $ECHO_N "(cached) $ECHO_C" >&6
21003 else
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 <time.h>
21011 #ifndef tzname /* For SGI.  */
21012 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21013 #endif
21014
21015 int
21016 main ()
21017 {
21018 atoi(*tzname);
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21025   (eval $ac_link) 2>conftest.er1
21026   ac_status=$?
21027   grep -v '^ *+' conftest.er1 >conftest.err
21028   rm -f conftest.er1
21029   cat conftest.err >&5
21030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21031   (exit $ac_status); } &&
21032          { ac_try='test -z "$ac_c_werror_flag"
21033                          || test ! -s conftest.err'
21034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21035   (eval $ac_try) 2>&5
21036   ac_status=$?
21037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038   (exit $ac_status); }; } &&
21039          { ac_try='test -s conftest$ac_exeext'
21040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041   (eval $ac_try) 2>&5
21042   ac_status=$?
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); }; }; then
21045   ac_cv_var_tzname=yes
21046 else
21047   echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_var_tzname=no
21051 fi
21052 rm -f conftest.err conftest.$ac_objext \
21053       conftest$ac_exeext conftest.$ac_ext
21054 fi
21055 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21056 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21057   if test $ac_cv_var_tzname = yes; then
21058
21059 cat >>confdefs.h <<\_ACEOF
21060 #define HAVE_TZNAME 1
21061 _ACEOF
21062
21063   fi
21064 fi
21065
21066
21067 echo "$as_me:$LINENO: checking for utime.h" >&5
21068 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
21069 if test "${ba_cv_header_utime_h+set}" = set; then
21070   echo $ECHO_N "(cached) $ECHO_C" >&6
21071 else
21072   cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h.  */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h.  */
21078
21079 #include <sys/types.h>
21080 #include <utime.h>
21081 int
21082 main ()
21083 {
21084 struct utimbuf foo
21085   ;
21086   return 0;
21087 }
21088 _ACEOF
21089 rm -f conftest.$ac_objext
21090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21091   (eval $ac_compile) 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } &&
21098          { ac_try='test -z "$ac_c_werror_flag"
21099                          || test ! -s conftest.err'
21100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101   (eval $ac_try) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); }; } &&
21105          { ac_try='test -s conftest.$ac_objext'
21106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21107   (eval $ac_try) 2>&5
21108   ac_status=$?
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); }; }; then
21111   ba_cv_header_utime_h=yes
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ba_cv_header_utime_h=no
21117 fi
21118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21119 fi
21120 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21121 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21122 test $ba_cv_header_utime_h = yes &&
21123 cat >>confdefs.h <<\_ACEOF
21124 #define HAVE_UTIME_H 1
21125 _ACEOF
21126
21127
21128 echo "$as_me:$LINENO: checking for socklen_t" >&5
21129 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21130 if test "${ba_cv_header_socklen_t+set}" = set; then
21131   echo $ECHO_N "(cached) $ECHO_C" >&6
21132 else
21133   cat >conftest.$ac_ext <<_ACEOF
21134 /* confdefs.h.  */
21135 _ACEOF
21136 cat confdefs.h >>conftest.$ac_ext
21137 cat >>conftest.$ac_ext <<_ACEOF
21138 /* end confdefs.h.  */
21139
21140 #include <sys/types.h>
21141 #include <sys/socket.h>
21142 int
21143 main ()
21144 {
21145 socklen_t x
21146   ;
21147   return 0;
21148 }
21149 _ACEOF
21150 rm -f conftest.$ac_objext
21151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21152   (eval $ac_compile) 2>conftest.er1
21153   ac_status=$?
21154   grep -v '^ *+' conftest.er1 >conftest.err
21155   rm -f conftest.er1
21156   cat conftest.err >&5
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } &&
21159          { ac_try='test -z "$ac_c_werror_flag"
21160                          || test ! -s conftest.err'
21161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21162   (eval $ac_try) 2>&5
21163   ac_status=$?
21164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21165   (exit $ac_status); }; } &&
21166          { ac_try='test -s conftest.$ac_objext'
21167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21168   (eval $ac_try) 2>&5
21169   ac_status=$?
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); }; }; then
21172   ba_cv_header_socklen_t=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177 ba_cv_header_socklen_t=no
21178 fi
21179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21180 fi
21181 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21182 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21183 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21184 #define HAVE_SOCKLEN_T 1
21185 _ACEOF
21186
21187
21188 echo "$as_me:$LINENO: checking for bigendian" >&5
21189 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21190 if test "${ba_cv_bigendian+set}" = set; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   if test "$cross_compiling" = yes; then
21194   ba_cv_bigendian=no
21195 else
21196   cat >conftest.$ac_ext <<_ACEOF
21197 /* confdefs.h.  */
21198 _ACEOF
21199 cat confdefs.h >>conftest.$ac_ext
21200 cat >>conftest.$ac_ext <<_ACEOF
21201 /* end confdefs.h.  */
21202 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21203 _ACEOF
21204 rm -f conftest$ac_exeext
21205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21206   (eval $ac_link) 2>&5
21207   ac_status=$?
21208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   ba_cv_bigendian=yes
21216 else
21217   echo "$as_me: program exited with status $ac_status" >&5
21218 echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221 ( exit $ac_status )
21222 ba_cv_bigendian=no
21223 fi
21224 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21225 fi
21226 fi
21227 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21228 echo "${ECHO_T}$ba_cv_bigendian" >&6
21229 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21230 #define HAVE_BIGENDIAN 1
21231 _ACEOF
21232
21233
21234 ac_ext=cc
21235 ac_cpp='$CXXCPP $CPPFLAGS'
21236 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21237 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21238 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21239
21240
21241 echo "$as_me:$LINENO: checking for typeof" >&5
21242 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21243 if test "${ba_cv_have_typeof+set}" = set; then
21244   echo $ECHO_N "(cached) $ECHO_C" >&6
21245 else
21246   if test "$cross_compiling" = yes; then
21247   ba_cv_have_typeof=no
21248 else
21249   cat >conftest.$ac_ext <<_ACEOF
21250 /* confdefs.h.  */
21251 _ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h.  */
21255 main(){char *a = 0; a = (typeof a)a;}
21256 _ACEOF
21257 rm -f conftest$ac_exeext
21258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21259   (eval $ac_link) 2>&5
21260   ac_status=$?
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21264   (eval $ac_try) 2>&5
21265   ac_status=$?
21266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267   (exit $ac_status); }; }; then
21268   ba_cv_have_typeof=yes
21269 else
21270   echo "$as_me: program exited with status $ac_status" >&5
21271 echo "$as_me: failed program was:" >&5
21272 sed 's/^/| /' conftest.$ac_ext >&5
21273
21274 ( exit $ac_status )
21275 ba_cv_have_typeof=no
21276 fi
21277 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21278 fi
21279 fi
21280 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21281 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21282 test $ba_cv_have_typeof = yes &&
21283 cat >>confdefs.h <<\_ACEOF
21284 #define HAVE_TYPEOF 1
21285 _ACEOF
21286
21287 ac_ext=c
21288 ac_cpp='$CPP $CPPFLAGS'
21289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293
21294 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21295 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21296 if test "${ac_cv_c_const+set}" = set; then
21297   echo $ECHO_N "(cached) $ECHO_C" >&6
21298 else
21299   cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h.  */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h.  */
21305
21306 int
21307 main ()
21308 {
21309 /* FIXME: Include the comments suggested by Paul. */
21310 #ifndef __cplusplus
21311   /* Ultrix mips cc rejects this.  */
21312   typedef int charset[2];
21313   const charset x;
21314   /* SunOS 4.1.1 cc rejects this.  */
21315   char const *const *ccp;
21316   char **p;
21317   /* NEC SVR4.0.2 mips cc rejects this.  */
21318   struct point {int x, y;};
21319   static struct point const zero = {0,0};
21320   /* AIX XL C 1.02.0.0 rejects this.
21321      It does not let you subtract one const X* pointer from another in
21322      an arm of an if-expression whose if-part is not a constant
21323      expression */
21324   const char *g = "string";
21325   ccp = &g + (g ? g-g : 0);
21326   /* HPUX 7.0 cc rejects these. */
21327   ++ccp;
21328   p = (char**) ccp;
21329   ccp = (char const *const *) p;
21330   { /* SCO 3.2v4 cc rejects this.  */
21331     char *t;
21332     char const *s = 0 ? (char *) 0 : (char const *) 0;
21333
21334     *t++ = 0;
21335   }
21336   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21337     int x[] = {25, 17};
21338     const int *foo = &x[0];
21339     ++foo;
21340   }
21341   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21342     typedef const int *iptr;
21343     iptr p = 0;
21344     ++p;
21345   }
21346   { /* AIX XL C 1.02.0.0 rejects this saying
21347        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21348     struct s { int j; const int *ap[3]; };
21349     struct s *b; b->j = 5;
21350   }
21351   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21352     const int foo = 10;
21353   }
21354 #endif
21355
21356   ;
21357   return 0;
21358 }
21359 _ACEOF
21360 rm -f conftest.$ac_objext
21361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21362   (eval $ac_compile) 2>conftest.er1
21363   ac_status=$?
21364   grep -v '^ *+' conftest.er1 >conftest.err
21365   rm -f conftest.er1
21366   cat conftest.err >&5
21367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368   (exit $ac_status); } &&
21369          { ac_try='test -z "$ac_c_werror_flag"
21370                          || test ! -s conftest.err'
21371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372   (eval $ac_try) 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; } &&
21376          { ac_try='test -s conftest.$ac_objext'
21377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378   (eval $ac_try) 2>&5
21379   ac_status=$?
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); }; }; then
21382   ac_cv_c_const=yes
21383 else
21384   echo "$as_me: failed program was:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21386
21387 ac_cv_c_const=no
21388 fi
21389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21390 fi
21391 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21392 echo "${ECHO_T}$ac_cv_c_const" >&6
21393 if test $ac_cv_c_const = no; then
21394
21395 cat >>confdefs.h <<\_ACEOF
21396 #define const
21397 _ACEOF
21398
21399 fi
21400
21401
21402
21403 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21404 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21405 fstype=no
21406 # The order of these tests is important.
21407 cat >conftest.$ac_ext <<_ACEOF
21408 /* confdefs.h.  */
21409 _ACEOF
21410 cat confdefs.h >>conftest.$ac_ext
21411 cat >>conftest.$ac_ext <<_ACEOF
21412 /* end confdefs.h.  */
21413 #include <sys/statvfs.h>
21414 #include <sys/fstyp.h>
21415 _ACEOF
21416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21417   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21418   ac_status=$?
21419   grep -v '^ *+' conftest.er1 >conftest.err
21420   rm -f conftest.er1
21421   cat conftest.err >&5
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); } >/dev/null; then
21424   if test -s conftest.err; then
21425     ac_cpp_err=$ac_c_preproc_warn_flag
21426     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21427   else
21428     ac_cpp_err=
21429   fi
21430 else
21431   ac_cpp_err=yes
21432 fi
21433 if test -z "$ac_cpp_err"; then
21434   cat >>confdefs.h <<\_ACEOF
21435 #define FSTYPE_STATVFS 1
21436 _ACEOF
21437  fstype=SVR4
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442
21443 fi
21444 rm -f conftest.err conftest.$ac_ext
21445 if test $fstype = no; then
21446 cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 #include <sys/statfs.h>
21453 #include <sys/fstyp.h>
21454 _ACEOF
21455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21456   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21457   ac_status=$?
21458   grep -v '^ *+' conftest.er1 >conftest.err
21459   rm -f conftest.er1
21460   cat conftest.err >&5
21461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462   (exit $ac_status); } >/dev/null; then
21463   if test -s conftest.err; then
21464     ac_cpp_err=$ac_c_preproc_warn_flag
21465     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21466   else
21467     ac_cpp_err=
21468   fi
21469 else
21470   ac_cpp_err=yes
21471 fi
21472 if test -z "$ac_cpp_err"; then
21473   cat >>confdefs.h <<\_ACEOF
21474 #define FSTYPE_USG_STATFS 1
21475 _ACEOF
21476  fstype=SVR3
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481
21482 fi
21483 rm -f conftest.err conftest.$ac_ext
21484 fi
21485 if test $fstype = no; then
21486 cat >conftest.$ac_ext <<_ACEOF
21487 /* confdefs.h.  */
21488 _ACEOF
21489 cat confdefs.h >>conftest.$ac_ext
21490 cat >>conftest.$ac_ext <<_ACEOF
21491 /* end confdefs.h.  */
21492 #include <sys/statfs.h>
21493 #include <sys/vmount.h>
21494 _ACEOF
21495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21496   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21497   ac_status=$?
21498   grep -v '^ *+' conftest.er1 >conftest.err
21499   rm -f conftest.er1
21500   cat conftest.err >&5
21501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502   (exit $ac_status); } >/dev/null; then
21503   if test -s conftest.err; then
21504     ac_cpp_err=$ac_c_preproc_warn_flag
21505     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21506   else
21507     ac_cpp_err=
21508   fi
21509 else
21510   ac_cpp_err=yes
21511 fi
21512 if test -z "$ac_cpp_err"; then
21513   cat >>confdefs.h <<\_ACEOF
21514 #define FSTYPE_AIX_STATFS 1
21515 _ACEOF
21516  fstype=AIX
21517 else
21518   echo "$as_me: failed program was:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21520
21521
21522 fi
21523 rm -f conftest.err conftest.$ac_ext
21524 fi
21525 if test $fstype = no; then
21526 cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h.  */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h.  */
21532 #include <mntent.h>
21533 _ACEOF
21534 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21535   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21536   ac_status=$?
21537   grep -v '^ *+' conftest.er1 >conftest.err
21538   rm -f conftest.er1
21539   cat conftest.err >&5
21540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541   (exit $ac_status); } >/dev/null; then
21542   if test -s conftest.err; then
21543     ac_cpp_err=$ac_c_preproc_warn_flag
21544     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21545   else
21546     ac_cpp_err=
21547   fi
21548 else
21549   ac_cpp_err=yes
21550 fi
21551 if test -z "$ac_cpp_err"; then
21552   cat >>confdefs.h <<\_ACEOF
21553 #define FSTYPE_MNTENT 1
21554 _ACEOF
21555  fstype=4.3BSD
21556 else
21557   echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21559
21560
21561 fi
21562 rm -f conftest.err conftest.$ac_ext
21563 fi
21564 if test $fstype = no; then
21565 cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571 #include <sys/mount.h>
21572
21573 _ACEOF
21574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575   $EGREP "f_type;" >/dev/null 2>&1; then
21576   cat >>confdefs.h <<\_ACEOF
21577 #define FSTYPE_STATFS 1
21578 _ACEOF
21579  fstype=4.4BSD/OSF1
21580 fi
21581 rm -f conftest*
21582
21583 fi
21584 if test $fstype = no; then
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h.  */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h.  */
21591 #include <sys/mount.h>
21592 #include <sys/fs_types.h>
21593 _ACEOF
21594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21595   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } >/dev/null; then
21602   if test -s conftest.err; then
21603     ac_cpp_err=$ac_c_preproc_warn_flag
21604     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21605   else
21606     ac_cpp_err=
21607   fi
21608 else
21609   ac_cpp_err=yes
21610 fi
21611 if test -z "$ac_cpp_err"; then
21612   cat >>confdefs.h <<\_ACEOF
21613 #define FSTYPE_GETMNT 1
21614 _ACEOF
21615  fstype=Ultrix
21616 else
21617   echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620
21621 fi
21622 rm -f conftest.err conftest.$ac_ext
21623 fi
21624 echo "$as_me:$LINENO: result: $fstype" >&5
21625 echo "${ECHO_T}$fstype" >&6
21626
21627 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21628   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21629 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21630 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21631   echo $ECHO_N "(cached) $ECHO_C" >&6
21632 fi
21633 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21634 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21635 else
21636   # Is the header compilable?
21637 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21638 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21639 cat >conftest.$ac_ext <<_ACEOF
21640 /* confdefs.h.  */
21641 _ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h.  */
21645 $ac_includes_default
21646 #include <sys/statvfs.h>
21647 _ACEOF
21648 rm -f conftest.$ac_objext
21649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21650   (eval $ac_compile) 2>conftest.er1
21651   ac_status=$?
21652   grep -v '^ *+' conftest.er1 >conftest.err
21653   rm -f conftest.er1
21654   cat conftest.err >&5
21655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656   (exit $ac_status); } &&
21657          { ac_try='test -z "$ac_c_werror_flag"
21658                          || test ! -s conftest.err'
21659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21660   (eval $ac_try) 2>&5
21661   ac_status=$?
21662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21663   (exit $ac_status); }; } &&
21664          { ac_try='test -s conftest.$ac_objext'
21665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666   (eval $ac_try) 2>&5
21667   ac_status=$?
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); }; }; then
21670   ac_header_compiler=yes
21671 else
21672   echo "$as_me: failed program was:" >&5
21673 sed 's/^/| /' conftest.$ac_ext >&5
21674
21675 ac_header_compiler=no
21676 fi
21677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21678 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21679 echo "${ECHO_T}$ac_header_compiler" >&6
21680
21681 # Is the header present?
21682 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21683 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21684 cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <sys/statvfs.h>
21691 _ACEOF
21692 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21693   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21694   ac_status=$?
21695   grep -v '^ *+' conftest.er1 >conftest.err
21696   rm -f conftest.er1
21697   cat conftest.err >&5
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); } >/dev/null; then
21700   if test -s conftest.err; then
21701     ac_cpp_err=$ac_c_preproc_warn_flag
21702     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21703   else
21704     ac_cpp_err=
21705   fi
21706 else
21707   ac_cpp_err=yes
21708 fi
21709 if test -z "$ac_cpp_err"; then
21710   ac_header_preproc=yes
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715   ac_header_preproc=no
21716 fi
21717 rm -f conftest.err conftest.$ac_ext
21718 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21719 echo "${ECHO_T}$ac_header_preproc" >&6
21720
21721 # So?  What about this header?
21722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21723   yes:no: )
21724     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21725 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21726     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21727 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21728     ac_header_preproc=yes
21729     ;;
21730   no:yes:* )
21731     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21732 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21733     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21734 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21735     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21736 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21737     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21738 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21739     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21740 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21741     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21742 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21743     (
21744       cat <<\_ASBOX
21745 ## ------------------------------------------ ##
21746 ## Report this to the AC_PACKAGE_NAME lists.  ##
21747 ## ------------------------------------------ ##
21748 _ASBOX
21749     ) |
21750       sed "s/^/$as_me: WARNING:     /" >&2
21751     ;;
21752 esac
21753 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21754 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21755 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21756   echo $ECHO_N "(cached) $ECHO_C" >&6
21757 else
21758   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21759 fi
21760 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21761 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21762
21763 fi
21764 if test $ac_cv_header_sys_statvfs_h = yes; then
21765
21766 cat >>confdefs.h <<\_ACEOF
21767 #define HAVE_SYS_STATVFS_H 1
21768 _ACEOF
21769
21770 fi
21771
21772
21773
21774 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21775 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21776 if test "${ac_cv_type_signal+set}" = set; then
21777   echo $ECHO_N "(cached) $ECHO_C" >&6
21778 else
21779   cat >conftest.$ac_ext <<_ACEOF
21780 /* confdefs.h.  */
21781 _ACEOF
21782 cat confdefs.h >>conftest.$ac_ext
21783 cat >>conftest.$ac_ext <<_ACEOF
21784 /* end confdefs.h.  */
21785 #include <sys/types.h>
21786 #include <signal.h>
21787 #ifdef signal
21788 # undef signal
21789 #endif
21790 #ifdef __cplusplus
21791 extern "C" void (*signal (int, void (*)(int)))(int);
21792 #else
21793 void (*signal ()) ();
21794 #endif
21795
21796 int
21797 main ()
21798 {
21799 int i;
21800   ;
21801   return 0;
21802 }
21803 _ACEOF
21804 rm -f conftest.$ac_objext
21805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21806   (eval $ac_compile) 2>conftest.er1
21807   ac_status=$?
21808   grep -v '^ *+' conftest.er1 >conftest.err
21809   rm -f conftest.er1
21810   cat conftest.err >&5
21811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812   (exit $ac_status); } &&
21813          { ac_try='test -z "$ac_c_werror_flag"
21814                          || test ! -s conftest.err'
21815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21816   (eval $ac_try) 2>&5
21817   ac_status=$?
21818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819   (exit $ac_status); }; } &&
21820          { ac_try='test -s conftest.$ac_objext'
21821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21822   (eval $ac_try) 2>&5
21823   ac_status=$?
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); }; }; then
21826   ac_cv_type_signal=void
21827 else
21828   echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 ac_cv_type_signal=int
21832 fi
21833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21834 fi
21835 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21836 echo "${ECHO_T}$ac_cv_type_signal" >&6
21837
21838 cat >>confdefs.h <<_ACEOF
21839 #define RETSIGTYPE $ac_cv_type_signal
21840 _ACEOF
21841
21842
21843
21844   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21845 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21846   if test "${bash_cv_signal_vintage+set}" = set; then
21847   echo $ECHO_N "(cached) $ECHO_C" >&6
21848 else
21849
21850     cat >conftest.$ac_ext <<_ACEOF
21851 /* confdefs.h.  */
21852 _ACEOF
21853 cat confdefs.h >>conftest.$ac_ext
21854 cat >>conftest.$ac_ext <<_ACEOF
21855 /* end confdefs.h.  */
21856 #include <signal.h>
21857 int
21858 main ()
21859 {
21860
21861       sigset_t ss;
21862       struct sigaction sa;
21863       sigemptyset(&ss); sigsuspend(&ss);
21864       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21865       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21866
21867   ;
21868   return 0;
21869 }
21870 _ACEOF
21871 rm -f conftest.$ac_objext conftest$ac_exeext
21872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21873   (eval $ac_link) 2>conftest.er1
21874   ac_status=$?
21875   grep -v '^ *+' conftest.er1 >conftest.err
21876   rm -f conftest.er1
21877   cat conftest.err >&5
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } &&
21880          { ac_try='test -z "$ac_c_werror_flag"
21881                          || test ! -s conftest.err'
21882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883   (eval $ac_try) 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; } &&
21887          { ac_try='test -s conftest$ac_exeext'
21888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889   (eval $ac_try) 2>&5
21890   ac_status=$?
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); }; }; then
21893   bash_cv_signal_vintage="posix"
21894 else
21895   echo "$as_me: failed program was:" >&5
21896 sed 's/^/| /' conftest.$ac_ext >&5
21897
21898
21899       cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905 #include <signal.h>
21906 int
21907 main ()
21908 {
21909
21910           int mask = sigmask(SIGINT);
21911           sigsetmask(mask); sigblock(mask); sigpause(mask);
21912
21913   ;
21914   return 0;
21915 }
21916 _ACEOF
21917 rm -f conftest.$ac_objext conftest$ac_exeext
21918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21919   (eval $ac_link) 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } &&
21926          { ac_try='test -z "$ac_c_werror_flag"
21927                          || test ! -s conftest.err'
21928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929   (eval $ac_try) 2>&5
21930   ac_status=$?
21931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932   (exit $ac_status); }; } &&
21933          { ac_try='test -s conftest$ac_exeext'
21934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21935   (eval $ac_try) 2>&5
21936   ac_status=$?
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); }; }; then
21939   bash_cv_signal_vintage="4.2bsd"
21940 else
21941   echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21943
21944
21945         cat >conftest.$ac_ext <<_ACEOF
21946 /* confdefs.h.  */
21947 _ACEOF
21948 cat confdefs.h >>conftest.$ac_ext
21949 cat >>conftest.$ac_ext <<_ACEOF
21950 /* end confdefs.h.  */
21951
21952           #include <signal.h>
21953           RETSIGTYPE foo() { }
21954 int
21955 main ()
21956 {
21957
21958                   int mask = sigmask(SIGINT);
21959                   sigset(SIGINT, foo); sigrelse(SIGINT);
21960                   sighold(SIGINT); sigpause(SIGINT);
21961
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968   (eval $ac_link) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag"
21976                          || test ! -s conftest.err'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; } &&
21982          { ac_try='test -s conftest$ac_exeext'
21983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984   (eval $ac_try) 2>&5
21985   ac_status=$?
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); }; }; then
21988   bash_cv_signal_vintage="svr3"
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 bash_cv_signal_vintage="v7"
21994
21995 fi
21996 rm -f conftest.err conftest.$ac_objext \
21997       conftest$ac_exeext conftest.$ac_ext
21998
21999 fi
22000 rm -f conftest.err conftest.$ac_objext \
22001       conftest$ac_exeext conftest.$ac_ext
22002
22003 fi
22004 rm -f conftest.err conftest.$ac_objext \
22005       conftest$ac_exeext conftest.$ac_ext
22006
22007 fi
22008
22009   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22010 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22011   if test "$bash_cv_signal_vintage" = "posix"; then
22012     cat >>confdefs.h <<\_ACEOF
22013 #define HAVE_POSIX_SIGNALS 1
22014 _ACEOF
22015
22016   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22017     cat >>confdefs.h <<\_ACEOF
22018 #define HAVE_BSD_SIGNALS 1
22019 _ACEOF
22020
22021   elif test "$bash_cv_signal_vintage" = "svr3"; then
22022     cat >>confdefs.h <<\_ACEOF
22023 #define HAVE_USG_SIGHOLD 1
22024 _ACEOF
22025
22026   fi
22027
22028 echo "$as_me:$LINENO: checking for mode_t" >&5
22029 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22030 if test "${ac_cv_type_mode_t+set}" = set; then
22031   echo $ECHO_N "(cached) $ECHO_C" >&6
22032 else
22033   cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h.  */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h.  */
22039 $ac_includes_default
22040 int
22041 main ()
22042 {
22043 if ((mode_t *) 0)
22044   return 0;
22045 if (sizeof (mode_t))
22046   return 0;
22047   ;
22048   return 0;
22049 }
22050 _ACEOF
22051 rm -f conftest.$ac_objext
22052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22053   (eval $ac_compile) 2>conftest.er1
22054   ac_status=$?
22055   grep -v '^ *+' conftest.er1 >conftest.err
22056   rm -f conftest.er1
22057   cat conftest.err >&5
22058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059   (exit $ac_status); } &&
22060          { ac_try='test -z "$ac_c_werror_flag"
22061                          || test ! -s conftest.err'
22062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063   (eval $ac_try) 2>&5
22064   ac_status=$?
22065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066   (exit $ac_status); }; } &&
22067          { ac_try='test -s conftest.$ac_objext'
22068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069   (eval $ac_try) 2>&5
22070   ac_status=$?
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); }; }; then
22073   ac_cv_type_mode_t=yes
22074 else
22075   echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22077
22078 ac_cv_type_mode_t=no
22079 fi
22080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22081 fi
22082 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22083 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22084 if test $ac_cv_type_mode_t = yes; then
22085   :
22086 else
22087
22088 cat >>confdefs.h <<_ACEOF
22089 #define mode_t int
22090 _ACEOF
22091
22092 fi
22093
22094 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22095 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22096 if test "${ac_cv_type_uid_t+set}" = set; then
22097   echo $ECHO_N "(cached) $ECHO_C" >&6
22098 else
22099   cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h.  */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h.  */
22105 #include <sys/types.h>
22106
22107 _ACEOF
22108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22109   $EGREP "uid_t" >/dev/null 2>&1; then
22110   ac_cv_type_uid_t=yes
22111 else
22112   ac_cv_type_uid_t=no
22113 fi
22114 rm -f conftest*
22115
22116 fi
22117 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22118 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22119 if test $ac_cv_type_uid_t = no; then
22120
22121 cat >>confdefs.h <<\_ACEOF
22122 #define uid_t int
22123 _ACEOF
22124
22125
22126 cat >>confdefs.h <<\_ACEOF
22127 #define gid_t int
22128 _ACEOF
22129
22130 fi
22131
22132 echo "$as_me:$LINENO: checking for size_t" >&5
22133 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22134 if test "${ac_cv_type_size_t+set}" = set; then
22135   echo $ECHO_N "(cached) $ECHO_C" >&6
22136 else
22137   cat >conftest.$ac_ext <<_ACEOF
22138 /* confdefs.h.  */
22139 _ACEOF
22140 cat confdefs.h >>conftest.$ac_ext
22141 cat >>conftest.$ac_ext <<_ACEOF
22142 /* end confdefs.h.  */
22143 $ac_includes_default
22144 int
22145 main ()
22146 {
22147 if ((size_t *) 0)
22148   return 0;
22149 if (sizeof (size_t))
22150   return 0;
22151   ;
22152   return 0;
22153 }
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22157   (eval $ac_compile) 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } &&
22164          { ac_try='test -z "$ac_c_werror_flag"
22165                          || test ! -s conftest.err'
22166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22167   (eval $ac_try) 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); }; } &&
22171          { ac_try='test -s conftest.$ac_objext'
22172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22173   (eval $ac_try) 2>&5
22174   ac_status=$?
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); }; }; then
22177   ac_cv_type_size_t=yes
22178 else
22179   echo "$as_me: failed program was:" >&5
22180 sed 's/^/| /' conftest.$ac_ext >&5
22181
22182 ac_cv_type_size_t=no
22183 fi
22184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22187 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22188 if test $ac_cv_type_size_t = yes; then
22189   :
22190 else
22191
22192 cat >>confdefs.h <<_ACEOF
22193 #define size_t unsigned
22194 _ACEOF
22195
22196 fi
22197
22198 echo "$as_me:$LINENO: checking for pid_t" >&5
22199 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22200 if test "${ac_cv_type_pid_t+set}" = set; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203   cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 $ac_includes_default
22210 int
22211 main ()
22212 {
22213 if ((pid_t *) 0)
22214   return 0;
22215 if (sizeof (pid_t))
22216   return 0;
22217   ;
22218   return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext
22222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22223   (eval $ac_compile) 2>conftest.er1
22224   ac_status=$?
22225   grep -v '^ *+' conftest.er1 >conftest.err
22226   rm -f conftest.er1
22227   cat conftest.err >&5
22228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229   (exit $ac_status); } &&
22230          { ac_try='test -z "$ac_c_werror_flag"
22231                          || test ! -s conftest.err'
22232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22233   (eval $ac_try) 2>&5
22234   ac_status=$?
22235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236   (exit $ac_status); }; } &&
22237          { ac_try='test -s conftest.$ac_objext'
22238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22239   (eval $ac_try) 2>&5
22240   ac_status=$?
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); }; }; then
22243   ac_cv_type_pid_t=yes
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248 ac_cv_type_pid_t=no
22249 fi
22250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22251 fi
22252 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22253 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22254 if test $ac_cv_type_pid_t = yes; then
22255   :
22256 else
22257
22258 cat >>confdefs.h <<_ACEOF
22259 #define pid_t int
22260 _ACEOF
22261
22262 fi
22263
22264 echo "$as_me:$LINENO: checking for off_t" >&5
22265 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22266 if test "${ac_cv_type_off_t+set}" = set; then
22267   echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269   cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h.  */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h.  */
22275 $ac_includes_default
22276 int
22277 main ()
22278 {
22279 if ((off_t *) 0)
22280   return 0;
22281 if (sizeof (off_t))
22282   return 0;
22283   ;
22284   return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289   (eval $ac_compile) 2>conftest.er1
22290   ac_status=$?
22291   grep -v '^ *+' conftest.er1 >conftest.err
22292   rm -f conftest.er1
22293   cat conftest.err >&5
22294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295   (exit $ac_status); } &&
22296          { ac_try='test -z "$ac_c_werror_flag"
22297                          || test ! -s conftest.err'
22298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299   (eval $ac_try) 2>&5
22300   ac_status=$?
22301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302   (exit $ac_status); }; } &&
22303          { ac_try='test -s conftest.$ac_objext'
22304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305   (eval $ac_try) 2>&5
22306   ac_status=$?
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); }; }; then
22309   ac_cv_type_off_t=yes
22310 else
22311   echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ac_cv_type_off_t=no
22315 fi
22316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22317 fi
22318 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22319 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22320 if test $ac_cv_type_off_t = yes; then
22321   :
22322 else
22323
22324 cat >>confdefs.h <<_ACEOF
22325 #define off_t long
22326 _ACEOF
22327
22328 fi
22329
22330 echo "$as_me:$LINENO: checking for ino_t" >&5
22331 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22332 if test "${ac_cv_type_ino_t+set}" = set; then
22333   echo $ECHO_N "(cached) $ECHO_C" >&6
22334 else
22335   cat >conftest.$ac_ext <<_ACEOF
22336 /* confdefs.h.  */
22337 _ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h.  */
22341 $ac_includes_default
22342 int
22343 main ()
22344 {
22345 if ((ino_t *) 0)
22346   return 0;
22347 if (sizeof (ino_t))
22348   return 0;
22349   ;
22350   return 0;
22351 }
22352 _ACEOF
22353 rm -f conftest.$ac_objext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22355   (eval $ac_compile) 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } &&
22362          { ac_try='test -z "$ac_c_werror_flag"
22363                          || test ! -s conftest.err'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; } &&
22369          { ac_try='test -s conftest.$ac_objext'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; }; then
22375   ac_cv_type_ino_t=yes
22376 else
22377   echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380 ac_cv_type_ino_t=no
22381 fi
22382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22383 fi
22384 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22385 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22386 if test $ac_cv_type_ino_t = yes; then
22387   :
22388 else
22389
22390 cat >>confdefs.h <<_ACEOF
22391 #define ino_t unsigned long
22392 _ACEOF
22393
22394 fi
22395
22396 echo "$as_me:$LINENO: checking for dev_t" >&5
22397 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22398 if test "${ac_cv_type_dev_t+set}" = set; then
22399   echo $ECHO_N "(cached) $ECHO_C" >&6
22400 else
22401   cat >conftest.$ac_ext <<_ACEOF
22402 /* confdefs.h.  */
22403 _ACEOF
22404 cat confdefs.h >>conftest.$ac_ext
22405 cat >>conftest.$ac_ext <<_ACEOF
22406 /* end confdefs.h.  */
22407 $ac_includes_default
22408 int
22409 main ()
22410 {
22411 if ((dev_t *) 0)
22412   return 0;
22413 if (sizeof (dev_t))
22414   return 0;
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 rm -f conftest.$ac_objext
22420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22421   (eval $ac_compile) 2>conftest.er1
22422   ac_status=$?
22423   grep -v '^ *+' conftest.er1 >conftest.err
22424   rm -f conftest.er1
22425   cat conftest.err >&5
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); } &&
22428          { ac_try='test -z "$ac_c_werror_flag"
22429                          || test ! -s conftest.err'
22430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22431   (eval $ac_try) 2>&5
22432   ac_status=$?
22433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434   (exit $ac_status); }; } &&
22435          { ac_try='test -s conftest.$ac_objext'
22436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22437   (eval $ac_try) 2>&5
22438   ac_status=$?
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); }; }; then
22441   ac_cv_type_dev_t=yes
22442 else
22443   echo "$as_me: failed program was:" >&5
22444 sed 's/^/| /' conftest.$ac_ext >&5
22445
22446 ac_cv_type_dev_t=no
22447 fi
22448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22449 fi
22450 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22451 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22452 if test $ac_cv_type_dev_t = yes; then
22453   :
22454 else
22455
22456 cat >>confdefs.h <<_ACEOF
22457 #define dev_t unsigned long
22458 _ACEOF
22459
22460 fi
22461
22462 echo "$as_me:$LINENO: checking for daddr_t" >&5
22463 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22464 if test "${ac_cv_type_daddr_t+set}" = set; then
22465   echo $ECHO_N "(cached) $ECHO_C" >&6
22466 else
22467   cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473 $ac_includes_default
22474 int
22475 main ()
22476 {
22477 if ((daddr_t *) 0)
22478   return 0;
22479 if (sizeof (daddr_t))
22480   return 0;
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext
22486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22487   (eval $ac_compile) 2>conftest.er1
22488   ac_status=$?
22489   grep -v '^ *+' conftest.er1 >conftest.err
22490   rm -f conftest.er1
22491   cat conftest.err >&5
22492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493   (exit $ac_status); } &&
22494          { ac_try='test -z "$ac_c_werror_flag"
22495                          || test ! -s conftest.err'
22496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22497   (eval $ac_try) 2>&5
22498   ac_status=$?
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); }; } &&
22501          { ac_try='test -s conftest.$ac_objext'
22502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22503   (eval $ac_try) 2>&5
22504   ac_status=$?
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); }; }; then
22507   ac_cv_type_daddr_t=yes
22508 else
22509   echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22511
22512 ac_cv_type_daddr_t=no
22513 fi
22514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22515 fi
22516 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22517 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22518 if test $ac_cv_type_daddr_t = yes; then
22519   :
22520 else
22521
22522 cat >>confdefs.h <<_ACEOF
22523 #define daddr_t long
22524 _ACEOF
22525
22526 fi
22527
22528 echo "$as_me:$LINENO: checking for major_t" >&5
22529 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22530 if test "${ac_cv_type_major_t+set}" = set; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   cat >conftest.$ac_ext <<_ACEOF
22534 /* confdefs.h.  */
22535 _ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h.  */
22539 $ac_includes_default
22540 int
22541 main ()
22542 {
22543 if ((major_t *) 0)
22544   return 0;
22545 if (sizeof (major_t))
22546   return 0;
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext
22552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22553   (eval $ac_compile) 2>conftest.er1
22554   ac_status=$?
22555   grep -v '^ *+' conftest.er1 >conftest.err
22556   rm -f conftest.er1
22557   cat conftest.err >&5
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); } &&
22560          { ac_try='test -z "$ac_c_werror_flag"
22561                          || test ! -s conftest.err'
22562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22563   (eval $ac_try) 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; } &&
22567          { ac_try='test -s conftest.$ac_objext'
22568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22569   (eval $ac_try) 2>&5
22570   ac_status=$?
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); }; }; then
22573   ac_cv_type_major_t=yes
22574 else
22575   echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 ac_cv_type_major_t=no
22579 fi
22580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22581 fi
22582 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22583 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22584 if test $ac_cv_type_major_t = yes; then
22585   :
22586 else
22587
22588 cat >>confdefs.h <<_ACEOF
22589 #define major_t int
22590 _ACEOF
22591
22592 fi
22593
22594 echo "$as_me:$LINENO: checking for minor_t" >&5
22595 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22596 if test "${ac_cv_type_minor_t+set}" = set; then
22597   echo $ECHO_N "(cached) $ECHO_C" >&6
22598 else
22599   cat >conftest.$ac_ext <<_ACEOF
22600 /* confdefs.h.  */
22601 _ACEOF
22602 cat confdefs.h >>conftest.$ac_ext
22603 cat >>conftest.$ac_ext <<_ACEOF
22604 /* end confdefs.h.  */
22605 $ac_includes_default
22606 int
22607 main ()
22608 {
22609 if ((minor_t *) 0)
22610   return 0;
22611 if (sizeof (minor_t))
22612   return 0;
22613   ;
22614   return 0;
22615 }
22616 _ACEOF
22617 rm -f conftest.$ac_objext
22618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22619   (eval $ac_compile) 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } &&
22626          { ac_try='test -z "$ac_c_werror_flag"
22627                          || test ! -s conftest.err'
22628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22629   (eval $ac_try) 2>&5
22630   ac_status=$?
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); }; } &&
22633          { ac_try='test -s conftest.$ac_objext'
22634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); }; }; then
22639   ac_cv_type_minor_t=yes
22640 else
22641   echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 ac_cv_type_minor_t=no
22645 fi
22646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22647 fi
22648 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22649 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22650 if test $ac_cv_type_minor_t = yes; then
22651   :
22652 else
22653
22654 cat >>confdefs.h <<_ACEOF
22655 #define minor_t int
22656 _ACEOF
22657
22658 fi
22659
22660 echo "$as_me:$LINENO: checking for ssize_t" >&5
22661 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22662 if test "${ac_cv_type_ssize_t+set}" = set; then
22663   echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665   cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h.  */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h.  */
22671 $ac_includes_default
22672 int
22673 main ()
22674 {
22675 if ((ssize_t *) 0)
22676   return 0;
22677 if (sizeof (ssize_t))
22678   return 0;
22679   ;
22680   return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22685   (eval $ac_compile) 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } &&
22692          { ac_try='test -z "$ac_c_werror_flag"
22693                          || test ! -s conftest.err'
22694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22695   (eval $ac_try) 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; } &&
22699          { ac_try='test -s conftest.$ac_objext'
22700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22701   (eval $ac_try) 2>&5
22702   ac_status=$?
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); }; }; then
22705   ac_cv_type_ssize_t=yes
22706 else
22707   echo "$as_me: failed program was:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22709
22710 ac_cv_type_ssize_t=no
22711 fi
22712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22713 fi
22714 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22716 if test $ac_cv_type_ssize_t = yes; then
22717   :
22718 else
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define ssize_t int
22722 _ACEOF
22723
22724 fi
22725
22726 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22727 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22728 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22729   echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731   cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h.  */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h.  */
22737 $ac_includes_default
22738 int
22739 main ()
22740 {
22741 static struct stat ac_aggr;
22742 if (ac_aggr.st_blocks)
22743 return 0;
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 rm -f conftest.$ac_objext
22749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22750   (eval $ac_compile) 2>conftest.er1
22751   ac_status=$?
22752   grep -v '^ *+' conftest.er1 >conftest.err
22753   rm -f conftest.er1
22754   cat conftest.err >&5
22755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756   (exit $ac_status); } &&
22757          { ac_try='test -z "$ac_c_werror_flag"
22758                          || test ! -s conftest.err'
22759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22760   (eval $ac_try) 2>&5
22761   ac_status=$?
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); }; } &&
22764          { ac_try='test -s conftest.$ac_objext'
22765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22766   (eval $ac_try) 2>&5
22767   ac_status=$?
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); }; }; then
22770   ac_cv_member_struct_stat_st_blocks=yes
22771 else
22772   echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775 cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h.  */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h.  */
22781 $ac_includes_default
22782 int
22783 main ()
22784 {
22785 static struct stat ac_aggr;
22786 if (sizeof ac_aggr.st_blocks)
22787 return 0;
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 rm -f conftest.$ac_objext
22793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22794   (eval $ac_compile) 2>conftest.er1
22795   ac_status=$?
22796   grep -v '^ *+' conftest.er1 >conftest.err
22797   rm -f conftest.er1
22798   cat conftest.err >&5
22799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800   (exit $ac_status); } &&
22801          { ac_try='test -z "$ac_c_werror_flag"
22802                          || test ! -s conftest.err'
22803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22804   (eval $ac_try) 2>&5
22805   ac_status=$?
22806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22807   (exit $ac_status); }; } &&
22808          { ac_try='test -s conftest.$ac_objext'
22809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22810   (eval $ac_try) 2>&5
22811   ac_status=$?
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); }; }; then
22814   ac_cv_member_struct_stat_st_blocks=yes
22815 else
22816   echo "$as_me: failed program was:" >&5
22817 sed 's/^/| /' conftest.$ac_ext >&5
22818
22819 ac_cv_member_struct_stat_st_blocks=no
22820 fi
22821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22822 fi
22823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22824 fi
22825 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22826 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22827 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22828
22829 cat >>confdefs.h <<_ACEOF
22830 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22831 _ACEOF
22832
22833
22834 cat >>confdefs.h <<\_ACEOF
22835 #define HAVE_ST_BLOCKS 1
22836 _ACEOF
22837
22838 else
22839   case $LIBOBJS in
22840     "fileblocks.$ac_objext"   | \
22841   *" fileblocks.$ac_objext"   | \
22842     "fileblocks.$ac_objext "* | \
22843   *" fileblocks.$ac_objext "* ) ;;
22844   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22845 esac
22846
22847 fi
22848
22849
22850
22851 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22852 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22853 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22854   echo $ECHO_N "(cached) $ECHO_C" >&6
22855 else
22856   cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h.  */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h.  */
22862 $ac_includes_default
22863 int
22864 main ()
22865 {
22866 static struct stat ac_aggr;
22867 if (ac_aggr.st_rdev)
22868 return 0;
22869   ;
22870   return 0;
22871 }
22872 _ACEOF
22873 rm -f conftest.$ac_objext
22874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22875   (eval $ac_compile) 2>conftest.er1
22876   ac_status=$?
22877   grep -v '^ *+' conftest.er1 >conftest.err
22878   rm -f conftest.er1
22879   cat conftest.err >&5
22880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881   (exit $ac_status); } &&
22882          { ac_try='test -z "$ac_c_werror_flag"
22883                          || test ! -s conftest.err'
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); }; } &&
22889          { ac_try='test -s conftest.$ac_objext'
22890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891   (eval $ac_try) 2>&5
22892   ac_status=$?
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); }; }; then
22895   ac_cv_member_struct_stat_st_rdev=yes
22896 else
22897   echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22899
22900 cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 $ac_includes_default
22907 int
22908 main ()
22909 {
22910 static struct stat ac_aggr;
22911 if (sizeof ac_aggr.st_rdev)
22912 return 0;
22913   ;
22914   return 0;
22915 }
22916 _ACEOF
22917 rm -f conftest.$ac_objext
22918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919   (eval $ac_compile) 2>conftest.er1
22920   ac_status=$?
22921   grep -v '^ *+' conftest.er1 >conftest.err
22922   rm -f conftest.er1
22923   cat conftest.err >&5
22924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925   (exit $ac_status); } &&
22926          { ac_try='test -z "$ac_c_werror_flag"
22927                          || test ! -s conftest.err'
22928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929   (eval $ac_try) 2>&5
22930   ac_status=$?
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); }; } &&
22933          { ac_try='test -s conftest.$ac_objext'
22934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935   (eval $ac_try) 2>&5
22936   ac_status=$?
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); }; }; then
22939   ac_cv_member_struct_stat_st_rdev=yes
22940 else
22941   echo "$as_me: failed program was:" >&5
22942 sed 's/^/| /' conftest.$ac_ext >&5
22943
22944 ac_cv_member_struct_stat_st_rdev=no
22945 fi
22946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22947 fi
22948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22949 fi
22950 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22951 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22952 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22953
22954 cat >>confdefs.h <<_ACEOF
22955 #define HAVE_STRUCT_STAT_ST_RDEV 1
22956 _ACEOF
22957
22958
22959 cat >>confdefs.h <<\_ACEOF
22960 #define HAVE_ST_RDEV 1
22961 _ACEOF
22962
22963 fi
22964
22965
22966 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22967 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22968 if test "${ac_cv_struct_tm+set}" = set; then
22969   echo $ECHO_N "(cached) $ECHO_C" >&6
22970 else
22971   cat >conftest.$ac_ext <<_ACEOF
22972 /* confdefs.h.  */
22973 _ACEOF
22974 cat confdefs.h >>conftest.$ac_ext
22975 cat >>conftest.$ac_ext <<_ACEOF
22976 /* end confdefs.h.  */
22977 #include <sys/types.h>
22978 #include <time.h>
22979
22980 int
22981 main ()
22982 {
22983 struct tm *tp; tp->tm_sec;
22984   ;
22985   return 0;
22986 }
22987 _ACEOF
22988 rm -f conftest.$ac_objext
22989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22990   (eval $ac_compile) 2>conftest.er1
22991   ac_status=$?
22992   grep -v '^ *+' conftest.er1 >conftest.err
22993   rm -f conftest.er1
22994   cat conftest.err >&5
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } &&
22997          { ac_try='test -z "$ac_c_werror_flag"
22998                          || test ! -s conftest.err'
22999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23000   (eval $ac_try) 2>&5
23001   ac_status=$?
23002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003   (exit $ac_status); }; } &&
23004          { ac_try='test -s conftest.$ac_objext'
23005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23006   (eval $ac_try) 2>&5
23007   ac_status=$?
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); }; }; then
23010   ac_cv_struct_tm=time.h
23011 else
23012   echo "$as_me: failed program was:" >&5
23013 sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 ac_cv_struct_tm=sys/time.h
23016 fi
23017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23018 fi
23019 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23020 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23021 if test $ac_cv_struct_tm = sys/time.h; then
23022
23023 cat >>confdefs.h <<\_ACEOF
23024 #define TM_IN_SYS_TIME 1
23025 _ACEOF
23026
23027 fi
23028
23029 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23030 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23031 if test "${ac_cv_c_const+set}" = set; then
23032   echo $ECHO_N "(cached) $ECHO_C" >&6
23033 else
23034   cat >conftest.$ac_ext <<_ACEOF
23035 /* confdefs.h.  */
23036 _ACEOF
23037 cat confdefs.h >>conftest.$ac_ext
23038 cat >>conftest.$ac_ext <<_ACEOF
23039 /* end confdefs.h.  */
23040
23041 int
23042 main ()
23043 {
23044 /* FIXME: Include the comments suggested by Paul. */
23045 #ifndef __cplusplus
23046   /* Ultrix mips cc rejects this.  */
23047   typedef int charset[2];
23048   const charset x;
23049   /* SunOS 4.1.1 cc rejects this.  */
23050   char const *const *ccp;
23051   char **p;
23052   /* NEC SVR4.0.2 mips cc rejects this.  */
23053   struct point {int x, y;};
23054   static struct point const zero = {0,0};
23055   /* AIX XL C 1.02.0.0 rejects this.
23056      It does not let you subtract one const X* pointer from another in
23057      an arm of an if-expression whose if-part is not a constant
23058      expression */
23059   const char *g = "string";
23060   ccp = &g + (g ? g-g : 0);
23061   /* HPUX 7.0 cc rejects these. */
23062   ++ccp;
23063   p = (char**) ccp;
23064   ccp = (char const *const *) p;
23065   { /* SCO 3.2v4 cc rejects this.  */
23066     char *t;
23067     char const *s = 0 ? (char *) 0 : (char const *) 0;
23068
23069     *t++ = 0;
23070   }
23071   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23072     int x[] = {25, 17};
23073     const int *foo = &x[0];
23074     ++foo;
23075   }
23076   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23077     typedef const int *iptr;
23078     iptr p = 0;
23079     ++p;
23080   }
23081   { /* AIX XL C 1.02.0.0 rejects this saying
23082        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23083     struct s { int j; const int *ap[3]; };
23084     struct s *b; b->j = 5;
23085   }
23086   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23087     const int foo = 10;
23088   }
23089 #endif
23090
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 rm -f conftest.$ac_objext
23096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23097   (eval $ac_compile) 2>conftest.er1
23098   ac_status=$?
23099   grep -v '^ *+' conftest.er1 >conftest.err
23100   rm -f conftest.er1
23101   cat conftest.err >&5
23102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23103   (exit $ac_status); } &&
23104          { ac_try='test -z "$ac_c_werror_flag"
23105                          || test ! -s conftest.err'
23106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23107   (eval $ac_try) 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; } &&
23111          { ac_try='test -s conftest.$ac_objext'
23112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113   (eval $ac_try) 2>&5
23114   ac_status=$?
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); }; }; then
23117   ac_cv_c_const=yes
23118 else
23119   echo "$as_me: failed program was:" >&5
23120 sed 's/^/| /' conftest.$ac_ext >&5
23121
23122 ac_cv_c_const=no
23123 fi
23124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23125 fi
23126 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23127 echo "${ECHO_T}$ac_cv_c_const" >&6
23128 if test $ac_cv_c_const = no; then
23129
23130 cat >>confdefs.h <<\_ACEOF
23131 #define const
23132 _ACEOF
23133
23134 fi
23135
23136
23137
23138 echo "$as_me:$LINENO: checking for char" >&5
23139 echo $ECHO_N "checking for char... $ECHO_C" >&6
23140 if test "${ac_cv_type_char+set}" = set; then
23141   echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143   cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149 $ac_includes_default
23150 int
23151 main ()
23152 {
23153 if ((char *) 0)
23154   return 0;
23155 if (sizeof (char))
23156   return 0;
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 rm -f conftest.$ac_objext
23162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23163   (eval $ac_compile) 2>conftest.er1
23164   ac_status=$?
23165   grep -v '^ *+' conftest.er1 >conftest.err
23166   rm -f conftest.er1
23167   cat conftest.err >&5
23168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169   (exit $ac_status); } &&
23170          { ac_try='test -z "$ac_c_werror_flag"
23171                          || test ! -s conftest.err'
23172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23173   (eval $ac_try) 2>&5
23174   ac_status=$?
23175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176   (exit $ac_status); }; } &&
23177          { ac_try='test -s conftest.$ac_objext'
23178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179   (eval $ac_try) 2>&5
23180   ac_status=$?
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); }; }; then
23183   ac_cv_type_char=yes
23184 else
23185   echo "$as_me: failed program was:" >&5
23186 sed 's/^/| /' conftest.$ac_ext >&5
23187
23188 ac_cv_type_char=no
23189 fi
23190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23191 fi
23192 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23193 echo "${ECHO_T}$ac_cv_type_char" >&6
23194
23195 echo "$as_me:$LINENO: checking size of char" >&5
23196 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23197 if test "${ac_cv_sizeof_char+set}" = set; then
23198   echo $ECHO_N "(cached) $ECHO_C" >&6
23199 else
23200   if test "$ac_cv_type_char" = yes; then
23201   # The cast to unsigned long works around a bug in the HP C Compiler
23202   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23203   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23204   # This bug is HP SR number 8606223364.
23205   if test "$cross_compiling" = yes; then
23206   # Depending upon the size, compute the lo and hi bounds.
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h.  */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h.  */
23213 $ac_includes_default
23214 int
23215 main ()
23216 {
23217 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23218 test_array [0] = 0
23219
23220   ;
23221   return 0;
23222 }
23223 _ACEOF
23224 rm -f conftest.$ac_objext
23225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23226   (eval $ac_compile) 2>conftest.er1
23227   ac_status=$?
23228   grep -v '^ *+' conftest.er1 >conftest.err
23229   rm -f conftest.er1
23230   cat conftest.err >&5
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); } &&
23233          { ac_try='test -z "$ac_c_werror_flag"
23234                          || test ! -s conftest.err'
23235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23236   (eval $ac_try) 2>&5
23237   ac_status=$?
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); }; } &&
23240          { ac_try='test -s conftest.$ac_objext'
23241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23242   (eval $ac_try) 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; }; then
23246   ac_lo=0 ac_mid=0
23247   while :; do
23248     cat >conftest.$ac_ext <<_ACEOF
23249 /* confdefs.h.  */
23250 _ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h.  */
23254 $ac_includes_default
23255 int
23256 main ()
23257 {
23258 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23259 test_array [0] = 0
23260
23261   ;
23262   return 0;
23263 }
23264 _ACEOF
23265 rm -f conftest.$ac_objext
23266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23267   (eval $ac_compile) 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } &&
23274          { ac_try='test -z "$ac_c_werror_flag"
23275                          || test ! -s conftest.err'
23276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277   (eval $ac_try) 2>&5
23278   ac_status=$?
23279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280   (exit $ac_status); }; } &&
23281          { ac_try='test -s conftest.$ac_objext'
23282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283   (eval $ac_try) 2>&5
23284   ac_status=$?
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); }; }; then
23287   ac_hi=$ac_mid; break
23288 else
23289   echo "$as_me: failed program was:" >&5
23290 sed 's/^/| /' conftest.$ac_ext >&5
23291
23292 ac_lo=`expr $ac_mid + 1`
23293                     if test $ac_lo -le $ac_mid; then
23294                       ac_lo= ac_hi=
23295                       break
23296                     fi
23297                     ac_mid=`expr 2 '*' $ac_mid + 1`
23298 fi
23299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23300   done
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 cat >conftest.$ac_ext <<_ACEOF
23306 /* confdefs.h.  */
23307 _ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h.  */
23311 $ac_includes_default
23312 int
23313 main ()
23314 {
23315 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23316 test_array [0] = 0
23317
23318   ;
23319   return 0;
23320 }
23321 _ACEOF
23322 rm -f conftest.$ac_objext
23323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23324   (eval $ac_compile) 2>conftest.er1
23325   ac_status=$?
23326   grep -v '^ *+' conftest.er1 >conftest.err
23327   rm -f conftest.er1
23328   cat conftest.err >&5
23329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330   (exit $ac_status); } &&
23331          { ac_try='test -z "$ac_c_werror_flag"
23332                          || test ! -s conftest.err'
23333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23334   (eval $ac_try) 2>&5
23335   ac_status=$?
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); }; } &&
23338          { ac_try='test -s conftest.$ac_objext'
23339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23340   (eval $ac_try) 2>&5
23341   ac_status=$?
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); }; }; then
23344   ac_hi=-1 ac_mid=-1
23345   while :; do
23346     cat >conftest.$ac_ext <<_ACEOF
23347 /* confdefs.h.  */
23348 _ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h.  */
23352 $ac_includes_default
23353 int
23354 main ()
23355 {
23356 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23357 test_array [0] = 0
23358
23359   ;
23360   return 0;
23361 }
23362 _ACEOF
23363 rm -f conftest.$ac_objext
23364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23365   (eval $ac_compile) 2>conftest.er1
23366   ac_status=$?
23367   grep -v '^ *+' conftest.er1 >conftest.err
23368   rm -f conftest.er1
23369   cat conftest.err >&5
23370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23371   (exit $ac_status); } &&
23372          { ac_try='test -z "$ac_c_werror_flag"
23373                          || test ! -s conftest.err'
23374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375   (eval $ac_try) 2>&5
23376   ac_status=$?
23377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); }; } &&
23379          { ac_try='test -s conftest.$ac_objext'
23380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23381   (eval $ac_try) 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_lo=$ac_mid; break
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390 ac_hi=`expr '(' $ac_mid ')' - 1`
23391                        if test $ac_mid -le $ac_hi; then
23392                          ac_lo= ac_hi=
23393                          break
23394                        fi
23395                        ac_mid=`expr 2 '*' $ac_mid`
23396 fi
23397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23398   done
23399 else
23400   echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_lo= ac_hi=
23404 fi
23405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23406 fi
23407 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23408 # Binary search between lo and hi bounds.
23409 while test "x$ac_lo" != "x$ac_hi"; do
23410   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23411   cat >conftest.$ac_ext <<_ACEOF
23412 /* confdefs.h.  */
23413 _ACEOF
23414 cat confdefs.h >>conftest.$ac_ext
23415 cat >>conftest.$ac_ext <<_ACEOF
23416 /* end confdefs.h.  */
23417 $ac_includes_default
23418 int
23419 main ()
23420 {
23421 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23422 test_array [0] = 0
23423
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_hi=$ac_mid
23451 else
23452   echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23454
23455 ac_lo=`expr '(' $ac_mid ')' + 1`
23456 fi
23457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23458 done
23459 case $ac_lo in
23460 ?*) ac_cv_sizeof_char=$ac_lo;;
23461 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23462 See \`config.log' for more details." >&5
23463 echo "$as_me: error: cannot compute sizeof (char), 77
23464 See \`config.log' for more details." >&2;}
23465    { (exit 1); exit 1; }; } ;;
23466 esac
23467 else
23468   if test "$cross_compiling" = yes; then
23469   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23470 See \`config.log' for more details." >&5
23471 echo "$as_me: error: cannot run test program while cross compiling
23472 See \`config.log' for more details." >&2;}
23473    { (exit 1); exit 1; }; }
23474 else
23475   cat >conftest.$ac_ext <<_ACEOF
23476 /* confdefs.h.  */
23477 _ACEOF
23478 cat confdefs.h >>conftest.$ac_ext
23479 cat >>conftest.$ac_ext <<_ACEOF
23480 /* end confdefs.h.  */
23481 $ac_includes_default
23482 long longval () { return (long) (sizeof (char)); }
23483 unsigned long ulongval () { return (long) (sizeof (char)); }
23484 #include <stdio.h>
23485 #include <stdlib.h>
23486 int
23487 main ()
23488 {
23489
23490   FILE *f = fopen ("conftest.val", "w");
23491   if (! f)
23492     exit (1);
23493   if (((long) (sizeof (char))) < 0)
23494     {
23495       long i = longval ();
23496       if (i != ((long) (sizeof (char))))
23497         exit (1);
23498       fprintf (f, "%ld\n", i);
23499     }
23500   else
23501     {
23502       unsigned long i = ulongval ();
23503       if (i != ((long) (sizeof (char))))
23504         exit (1);
23505       fprintf (f, "%lu\n", i);
23506     }
23507   exit (ferror (f) || fclose (f) != 0);
23508
23509   ;
23510   return 0;
23511 }
23512 _ACEOF
23513 rm -f conftest$ac_exeext
23514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23515   (eval $ac_link) 2>&5
23516   ac_status=$?
23517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520   (eval $ac_try) 2>&5
23521   ac_status=$?
23522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523   (exit $ac_status); }; }; then
23524   ac_cv_sizeof_char=`cat conftest.val`
23525 else
23526   echo "$as_me: program exited with status $ac_status" >&5
23527 echo "$as_me: failed program was:" >&5
23528 sed 's/^/| /' conftest.$ac_ext >&5
23529
23530 ( exit $ac_status )
23531 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23532 See \`config.log' for more details." >&5
23533 echo "$as_me: error: cannot compute sizeof (char), 77
23534 See \`config.log' for more details." >&2;}
23535    { (exit 1); exit 1; }; }
23536 fi
23537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23538 fi
23539 fi
23540 rm -f conftest.val
23541 else
23542   ac_cv_sizeof_char=0
23543 fi
23544 fi
23545 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23546 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23547 cat >>confdefs.h <<_ACEOF
23548 #define SIZEOF_CHAR $ac_cv_sizeof_char
23549 _ACEOF
23550
23551
23552 echo "$as_me:$LINENO: checking for short int" >&5
23553 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23554 if test "${ac_cv_type_short_int+set}" = set; then
23555   echo $ECHO_N "(cached) $ECHO_C" >&6
23556 else
23557   cat >conftest.$ac_ext <<_ACEOF
23558 /* confdefs.h.  */
23559 _ACEOF
23560 cat confdefs.h >>conftest.$ac_ext
23561 cat >>conftest.$ac_ext <<_ACEOF
23562 /* end confdefs.h.  */
23563 $ac_includes_default
23564 int
23565 main ()
23566 {
23567 if ((short int *) 0)
23568   return 0;
23569 if (sizeof (short int))
23570   return 0;
23571   ;
23572   return 0;
23573 }
23574 _ACEOF
23575 rm -f conftest.$ac_objext
23576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23577   (eval $ac_compile) 2>conftest.er1
23578   ac_status=$?
23579   grep -v '^ *+' conftest.er1 >conftest.err
23580   rm -f conftest.er1
23581   cat conftest.err >&5
23582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583   (exit $ac_status); } &&
23584          { ac_try='test -z "$ac_c_werror_flag"
23585                          || test ! -s conftest.err'
23586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23587   (eval $ac_try) 2>&5
23588   ac_status=$?
23589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23590   (exit $ac_status); }; } &&
23591          { ac_try='test -s conftest.$ac_objext'
23592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23593   (eval $ac_try) 2>&5
23594   ac_status=$?
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); }; }; then
23597   ac_cv_type_short_int=yes
23598 else
23599   echo "$as_me: failed program was:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23601
23602 ac_cv_type_short_int=no
23603 fi
23604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23605 fi
23606 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23607 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23608
23609 echo "$as_me:$LINENO: checking size of short int" >&5
23610 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23611 if test "${ac_cv_sizeof_short_int+set}" = set; then
23612   echo $ECHO_N "(cached) $ECHO_C" >&6
23613 else
23614   if test "$ac_cv_type_short_int" = yes; then
23615   # The cast to unsigned long works around a bug in the HP C Compiler
23616   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23617   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23618   # This bug is HP SR number 8606223364.
23619   if test "$cross_compiling" = yes; then
23620   # Depending upon the size, compute the lo and hi bounds.
23621 cat >conftest.$ac_ext <<_ACEOF
23622 /* confdefs.h.  */
23623 _ACEOF
23624 cat confdefs.h >>conftest.$ac_ext
23625 cat >>conftest.$ac_ext <<_ACEOF
23626 /* end confdefs.h.  */
23627 $ac_includes_default
23628 int
23629 main ()
23630 {
23631 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23632 test_array [0] = 0
23633
23634   ;
23635   return 0;
23636 }
23637 _ACEOF
23638 rm -f conftest.$ac_objext
23639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23640   (eval $ac_compile) 2>conftest.er1
23641   ac_status=$?
23642   grep -v '^ *+' conftest.er1 >conftest.err
23643   rm -f conftest.er1
23644   cat conftest.err >&5
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); } &&
23647          { ac_try='test -z "$ac_c_werror_flag"
23648                          || test ! -s conftest.err'
23649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23650   (eval $ac_try) 2>&5
23651   ac_status=$?
23652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653   (exit $ac_status); }; } &&
23654          { ac_try='test -s conftest.$ac_objext'
23655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23656   (eval $ac_try) 2>&5
23657   ac_status=$?
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); }; }; then
23660   ac_lo=0 ac_mid=0
23661   while :; do
23662     cat >conftest.$ac_ext <<_ACEOF
23663 /* confdefs.h.  */
23664 _ACEOF
23665 cat confdefs.h >>conftest.$ac_ext
23666 cat >>conftest.$ac_ext <<_ACEOF
23667 /* end confdefs.h.  */
23668 $ac_includes_default
23669 int
23670 main ()
23671 {
23672 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23673 test_array [0] = 0
23674
23675   ;
23676   return 0;
23677 }
23678 _ACEOF
23679 rm -f conftest.$ac_objext
23680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23681   (eval $ac_compile) 2>conftest.er1
23682   ac_status=$?
23683   grep -v '^ *+' conftest.er1 >conftest.err
23684   rm -f conftest.er1
23685   cat conftest.err >&5
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); } &&
23688          { ac_try='test -z "$ac_c_werror_flag"
23689                          || test ! -s conftest.err'
23690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23691   (eval $ac_try) 2>&5
23692   ac_status=$?
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); }; } &&
23695          { ac_try='test -s conftest.$ac_objext'
23696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23697   (eval $ac_try) 2>&5
23698   ac_status=$?
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); }; }; then
23701   ac_hi=$ac_mid; break
23702 else
23703   echo "$as_me: failed program was:" >&5
23704 sed 's/^/| /' conftest.$ac_ext >&5
23705
23706 ac_lo=`expr $ac_mid + 1`
23707                     if test $ac_lo -le $ac_mid; then
23708                       ac_lo= ac_hi=
23709                       break
23710                     fi
23711                     ac_mid=`expr 2 '*' $ac_mid + 1`
23712 fi
23713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23714   done
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719 cat >conftest.$ac_ext <<_ACEOF
23720 /* confdefs.h.  */
23721 _ACEOF
23722 cat confdefs.h >>conftest.$ac_ext
23723 cat >>conftest.$ac_ext <<_ACEOF
23724 /* end confdefs.h.  */
23725 $ac_includes_default
23726 int
23727 main ()
23728 {
23729 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23730 test_array [0] = 0
23731
23732   ;
23733   return 0;
23734 }
23735 _ACEOF
23736 rm -f conftest.$ac_objext
23737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23738   (eval $ac_compile) 2>conftest.er1
23739   ac_status=$?
23740   grep -v '^ *+' conftest.er1 >conftest.err
23741   rm -f conftest.er1
23742   cat conftest.err >&5
23743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744   (exit $ac_status); } &&
23745          { ac_try='test -z "$ac_c_werror_flag"
23746                          || test ! -s conftest.err'
23747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748   (eval $ac_try) 2>&5
23749   ac_status=$?
23750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751   (exit $ac_status); }; } &&
23752          { ac_try='test -s conftest.$ac_objext'
23753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754   (eval $ac_try) 2>&5
23755   ac_status=$?
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); }; }; then
23758   ac_hi=-1 ac_mid=-1
23759   while :; do
23760     cat >conftest.$ac_ext <<_ACEOF
23761 /* confdefs.h.  */
23762 _ACEOF
23763 cat confdefs.h >>conftest.$ac_ext
23764 cat >>conftest.$ac_ext <<_ACEOF
23765 /* end confdefs.h.  */
23766 $ac_includes_default
23767 int
23768 main ()
23769 {
23770 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23771 test_array [0] = 0
23772
23773   ;
23774   return 0;
23775 }
23776 _ACEOF
23777 rm -f conftest.$ac_objext
23778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23779   (eval $ac_compile) 2>conftest.er1
23780   ac_status=$?
23781   grep -v '^ *+' conftest.er1 >conftest.err
23782   rm -f conftest.er1
23783   cat conftest.err >&5
23784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23785   (exit $ac_status); } &&
23786          { ac_try='test -z "$ac_c_werror_flag"
23787                          || test ! -s conftest.err'
23788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23789   (eval $ac_try) 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest.$ac_objext'
23794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23795   (eval $ac_try) 2>&5
23796   ac_status=$?
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); }; }; then
23799   ac_lo=$ac_mid; break
23800 else
23801   echo "$as_me: failed program was:" >&5
23802 sed 's/^/| /' conftest.$ac_ext >&5
23803
23804 ac_hi=`expr '(' $ac_mid ')' - 1`
23805                        if test $ac_mid -le $ac_hi; then
23806                          ac_lo= ac_hi=
23807                          break
23808                        fi
23809                        ac_mid=`expr 2 '*' $ac_mid`
23810 fi
23811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23812   done
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_lo= ac_hi=
23818 fi
23819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23820 fi
23821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23822 # Binary search between lo and hi bounds.
23823 while test "x$ac_lo" != "x$ac_hi"; do
23824   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23825   cat >conftest.$ac_ext <<_ACEOF
23826 /* confdefs.h.  */
23827 _ACEOF
23828 cat confdefs.h >>conftest.$ac_ext
23829 cat >>conftest.$ac_ext <<_ACEOF
23830 /* end confdefs.h.  */
23831 $ac_includes_default
23832 int
23833 main ()
23834 {
23835 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23836 test_array [0] = 0
23837
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_hi=$ac_mid
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869 ac_lo=`expr '(' $ac_mid ')' + 1`
23870 fi
23871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23872 done
23873 case $ac_lo in
23874 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23875 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23876 See \`config.log' for more details." >&5
23877 echo "$as_me: error: cannot compute sizeof (short int), 77
23878 See \`config.log' for more details." >&2;}
23879    { (exit 1); exit 1; }; } ;;
23880 esac
23881 else
23882   if test "$cross_compiling" = yes; then
23883   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23884 See \`config.log' for more details." >&5
23885 echo "$as_me: error: cannot run test program while cross compiling
23886 See \`config.log' for more details." >&2;}
23887    { (exit 1); exit 1; }; }
23888 else
23889   cat >conftest.$ac_ext <<_ACEOF
23890 /* confdefs.h.  */
23891 _ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h.  */
23895 $ac_includes_default
23896 long longval () { return (long) (sizeof (short int)); }
23897 unsigned long ulongval () { return (long) (sizeof (short int)); }
23898 #include <stdio.h>
23899 #include <stdlib.h>
23900 int
23901 main ()
23902 {
23903
23904   FILE *f = fopen ("conftest.val", "w");
23905   if (! f)
23906     exit (1);
23907   if (((long) (sizeof (short int))) < 0)
23908     {
23909       long i = longval ();
23910       if (i != ((long) (sizeof (short int))))
23911         exit (1);
23912       fprintf (f, "%ld\n", i);
23913     }
23914   else
23915     {
23916       unsigned long i = ulongval ();
23917       if (i != ((long) (sizeof (short int))))
23918         exit (1);
23919       fprintf (f, "%lu\n", i);
23920     }
23921   exit (ferror (f) || fclose (f) != 0);
23922
23923   ;
23924   return 0;
23925 }
23926 _ACEOF
23927 rm -f conftest$ac_exeext
23928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23929   (eval $ac_link) 2>&5
23930   ac_status=$?
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934   (eval $ac_try) 2>&5
23935   ac_status=$?
23936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937   (exit $ac_status); }; }; then
23938   ac_cv_sizeof_short_int=`cat conftest.val`
23939 else
23940   echo "$as_me: program exited with status $ac_status" >&5
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23943
23944 ( exit $ac_status )
23945 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23946 See \`config.log' for more details." >&5
23947 echo "$as_me: error: cannot compute sizeof (short int), 77
23948 See \`config.log' for more details." >&2;}
23949    { (exit 1); exit 1; }; }
23950 fi
23951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23952 fi
23953 fi
23954 rm -f conftest.val
23955 else
23956   ac_cv_sizeof_short_int=0
23957 fi
23958 fi
23959 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23960 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23961 cat >>confdefs.h <<_ACEOF
23962 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23963 _ACEOF
23964
23965
23966 echo "$as_me:$LINENO: checking for int" >&5
23967 echo $ECHO_N "checking for int... $ECHO_C" >&6
23968 if test "${ac_cv_type_int+set}" = set; then
23969   echo $ECHO_N "(cached) $ECHO_C" >&6
23970 else
23971   cat >conftest.$ac_ext <<_ACEOF
23972 /* confdefs.h.  */
23973 _ACEOF
23974 cat confdefs.h >>conftest.$ac_ext
23975 cat >>conftest.$ac_ext <<_ACEOF
23976 /* end confdefs.h.  */
23977 $ac_includes_default
23978 int
23979 main ()
23980 {
23981 if ((int *) 0)
23982   return 0;
23983 if (sizeof (int))
23984   return 0;
23985   ;
23986   return 0;
23987 }
23988 _ACEOF
23989 rm -f conftest.$ac_objext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23991   (eval $ac_compile) 2>conftest.er1
23992   ac_status=$?
23993   grep -v '^ *+' conftest.er1 >conftest.err
23994   rm -f conftest.er1
23995   cat conftest.err >&5
23996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23997   (exit $ac_status); } &&
23998          { ac_try='test -z "$ac_c_werror_flag"
23999                          || test ! -s conftest.err'
24000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24001   (eval $ac_try) 2>&5
24002   ac_status=$?
24003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24004   (exit $ac_status); }; } &&
24005          { ac_try='test -s conftest.$ac_objext'
24006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24007   (eval $ac_try) 2>&5
24008   ac_status=$?
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); }; }; then
24011   ac_cv_type_int=yes
24012 else
24013   echo "$as_me: failed program was:" >&5
24014 sed 's/^/| /' conftest.$ac_ext >&5
24015
24016 ac_cv_type_int=no
24017 fi
24018 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24019 fi
24020 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24021 echo "${ECHO_T}$ac_cv_type_int" >&6
24022
24023 echo "$as_me:$LINENO: checking size of int" >&5
24024 echo $ECHO_N "checking size of int... $ECHO_C" >&6
24025 if test "${ac_cv_sizeof_int+set}" = set; then
24026   echo $ECHO_N "(cached) $ECHO_C" >&6
24027 else
24028   if test "$ac_cv_type_int" = yes; then
24029   # The cast to unsigned long works around a bug in the HP C Compiler
24030   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24031   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24032   # This bug is HP SR number 8606223364.
24033   if test "$cross_compiling" = yes; then
24034   # Depending upon the size, compute the lo and hi bounds.
24035 cat >conftest.$ac_ext <<_ACEOF
24036 /* confdefs.h.  */
24037 _ACEOF
24038 cat confdefs.h >>conftest.$ac_ext
24039 cat >>conftest.$ac_ext <<_ACEOF
24040 /* end confdefs.h.  */
24041 $ac_includes_default
24042 int
24043 main ()
24044 {
24045 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
24046 test_array [0] = 0
24047
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 rm -f conftest.$ac_objext
24053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054   (eval $ac_compile) 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } &&
24061          { ac_try='test -z "$ac_c_werror_flag"
24062                          || test ! -s conftest.err'
24063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064   (eval $ac_try) 2>&5
24065   ac_status=$?
24066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067   (exit $ac_status); }; } &&
24068          { ac_try='test -s conftest.$ac_objext'
24069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070   (eval $ac_try) 2>&5
24071   ac_status=$?
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); }; }; then
24074   ac_lo=0 ac_mid=0
24075   while :; do
24076     cat >conftest.$ac_ext <<_ACEOF
24077 /* confdefs.h.  */
24078 _ACEOF
24079 cat confdefs.h >>conftest.$ac_ext
24080 cat >>conftest.$ac_ext <<_ACEOF
24081 /* end confdefs.h.  */
24082 $ac_includes_default
24083 int
24084 main ()
24085 {
24086 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24087 test_array [0] = 0
24088
24089   ;
24090   return 0;
24091 }
24092 _ACEOF
24093 rm -f conftest.$ac_objext
24094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24095   (eval $ac_compile) 2>conftest.er1
24096   ac_status=$?
24097   grep -v '^ *+' conftest.er1 >conftest.err
24098   rm -f conftest.er1
24099   cat conftest.err >&5
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); } &&
24102          { ac_try='test -z "$ac_c_werror_flag"
24103                          || test ! -s conftest.err'
24104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24105   (eval $ac_try) 2>&5
24106   ac_status=$?
24107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24108   (exit $ac_status); }; } &&
24109          { ac_try='test -s conftest.$ac_objext'
24110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24111   (eval $ac_try) 2>&5
24112   ac_status=$?
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); }; }; then
24115   ac_hi=$ac_mid; break
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120 ac_lo=`expr $ac_mid + 1`
24121                     if test $ac_lo -le $ac_mid; then
24122                       ac_lo= ac_hi=
24123                       break
24124                     fi
24125                     ac_mid=`expr 2 '*' $ac_mid + 1`
24126 fi
24127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24128   done
24129 else
24130   echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24132
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139 $ac_includes_default
24140 int
24141 main ()
24142 {
24143 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24144 test_array [0] = 0
24145
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 rm -f conftest.$ac_objext
24151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24152   (eval $ac_compile) 2>conftest.er1
24153   ac_status=$?
24154   grep -v '^ *+' conftest.er1 >conftest.err
24155   rm -f conftest.er1
24156   cat conftest.err >&5
24157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158   (exit $ac_status); } &&
24159          { ac_try='test -z "$ac_c_werror_flag"
24160                          || test ! -s conftest.err'
24161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162   (eval $ac_try) 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; } &&
24166          { ac_try='test -s conftest.$ac_objext'
24167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24168   (eval $ac_try) 2>&5
24169   ac_status=$?
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); }; }; then
24172   ac_hi=-1 ac_mid=-1
24173   while :; do
24174     cat >conftest.$ac_ext <<_ACEOF
24175 /* confdefs.h.  */
24176 _ACEOF
24177 cat confdefs.h >>conftest.$ac_ext
24178 cat >>conftest.$ac_ext <<_ACEOF
24179 /* end confdefs.h.  */
24180 $ac_includes_default
24181 int
24182 main ()
24183 {
24184 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24185 test_array [0] = 0
24186
24187   ;
24188   return 0;
24189 }
24190 _ACEOF
24191 rm -f conftest.$ac_objext
24192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24193   (eval $ac_compile) 2>conftest.er1
24194   ac_status=$?
24195   grep -v '^ *+' conftest.er1 >conftest.err
24196   rm -f conftest.er1
24197   cat conftest.err >&5
24198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24199   (exit $ac_status); } &&
24200          { ac_try='test -z "$ac_c_werror_flag"
24201                          || test ! -s conftest.err'
24202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24203   (eval $ac_try) 2>&5
24204   ac_status=$?
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); }; } &&
24207          { ac_try='test -s conftest.$ac_objext'
24208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24209   (eval $ac_try) 2>&5
24210   ac_status=$?
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); }; }; then
24213   ac_lo=$ac_mid; break
24214 else
24215   echo "$as_me: failed program was:" >&5
24216 sed 's/^/| /' conftest.$ac_ext >&5
24217
24218 ac_hi=`expr '(' $ac_mid ')' - 1`
24219                        if test $ac_mid -le $ac_hi; then
24220                          ac_lo= ac_hi=
24221                          break
24222                        fi
24223                        ac_mid=`expr 2 '*' $ac_mid`
24224 fi
24225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24226   done
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231 ac_lo= ac_hi=
24232 fi
24233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24234 fi
24235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24236 # Binary search between lo and hi bounds.
24237 while test "x$ac_lo" != "x$ac_hi"; do
24238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24239   cat >conftest.$ac_ext <<_ACEOF
24240 /* confdefs.h.  */
24241 _ACEOF
24242 cat confdefs.h >>conftest.$ac_ext
24243 cat >>conftest.$ac_ext <<_ACEOF
24244 /* end confdefs.h.  */
24245 $ac_includes_default
24246 int
24247 main ()
24248 {
24249 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24250 test_array [0] = 0
24251
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_hi=$ac_mid
24279 else
24280   echo "$as_me: failed program was:" >&5
24281 sed 's/^/| /' conftest.$ac_ext >&5
24282
24283 ac_lo=`expr '(' $ac_mid ')' + 1`
24284 fi
24285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24286 done
24287 case $ac_lo in
24288 ?*) ac_cv_sizeof_int=$ac_lo;;
24289 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24290 See \`config.log' for more details." >&5
24291 echo "$as_me: error: cannot compute sizeof (int), 77
24292 See \`config.log' for more details." >&2;}
24293    { (exit 1); exit 1; }; } ;;
24294 esac
24295 else
24296   if test "$cross_compiling" = yes; then
24297   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24298 See \`config.log' for more details." >&5
24299 echo "$as_me: error: cannot run test program while cross compiling
24300 See \`config.log' for more details." >&2;}
24301    { (exit 1); exit 1; }; }
24302 else
24303   cat >conftest.$ac_ext <<_ACEOF
24304 /* confdefs.h.  */
24305 _ACEOF
24306 cat confdefs.h >>conftest.$ac_ext
24307 cat >>conftest.$ac_ext <<_ACEOF
24308 /* end confdefs.h.  */
24309 $ac_includes_default
24310 long longval () { return (long) (sizeof (int)); }
24311 unsigned long ulongval () { return (long) (sizeof (int)); }
24312 #include <stdio.h>
24313 #include <stdlib.h>
24314 int
24315 main ()
24316 {
24317
24318   FILE *f = fopen ("conftest.val", "w");
24319   if (! f)
24320     exit (1);
24321   if (((long) (sizeof (int))) < 0)
24322     {
24323       long i = longval ();
24324       if (i != ((long) (sizeof (int))))
24325         exit (1);
24326       fprintf (f, "%ld\n", i);
24327     }
24328   else
24329     {
24330       unsigned long i = ulongval ();
24331       if (i != ((long) (sizeof (int))))
24332         exit (1);
24333       fprintf (f, "%lu\n", i);
24334     }
24335   exit (ferror (f) || fclose (f) != 0);
24336
24337   ;
24338   return 0;
24339 }
24340 _ACEOF
24341 rm -f conftest$ac_exeext
24342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24343   (eval $ac_link) 2>&5
24344   ac_status=$?
24345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24348   (eval $ac_try) 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; }; then
24352   ac_cv_sizeof_int=`cat conftest.val`
24353 else
24354   echo "$as_me: program exited with status $ac_status" >&5
24355 echo "$as_me: failed program was:" >&5
24356 sed 's/^/| /' conftest.$ac_ext >&5
24357
24358 ( exit $ac_status )
24359 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24360 See \`config.log' for more details." >&5
24361 echo "$as_me: error: cannot compute sizeof (int), 77
24362 See \`config.log' for more details." >&2;}
24363    { (exit 1); exit 1; }; }
24364 fi
24365 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24366 fi
24367 fi
24368 rm -f conftest.val
24369 else
24370   ac_cv_sizeof_int=0
24371 fi
24372 fi
24373 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24374 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24375 cat >>confdefs.h <<_ACEOF
24376 #define SIZEOF_INT $ac_cv_sizeof_int
24377 _ACEOF
24378
24379
24380 echo "$as_me:$LINENO: checking for long int" >&5
24381 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24382 if test "${ac_cv_type_long_int+set}" = set; then
24383   echo $ECHO_N "(cached) $ECHO_C" >&6
24384 else
24385   cat >conftest.$ac_ext <<_ACEOF
24386 /* confdefs.h.  */
24387 _ACEOF
24388 cat confdefs.h >>conftest.$ac_ext
24389 cat >>conftest.$ac_ext <<_ACEOF
24390 /* end confdefs.h.  */
24391 $ac_includes_default
24392 int
24393 main ()
24394 {
24395 if ((long int *) 0)
24396   return 0;
24397 if (sizeof (long int))
24398   return 0;
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24405   (eval $ac_compile) 2>conftest.er1
24406   ac_status=$?
24407   grep -v '^ *+' conftest.er1 >conftest.err
24408   rm -f conftest.er1
24409   cat conftest.err >&5
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); } &&
24412          { ac_try='test -z "$ac_c_werror_flag"
24413                          || test ! -s conftest.err'
24414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415   (eval $ac_try) 2>&5
24416   ac_status=$?
24417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418   (exit $ac_status); }; } &&
24419          { ac_try='test -s conftest.$ac_objext'
24420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421   (eval $ac_try) 2>&5
24422   ac_status=$?
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); }; }; then
24425   ac_cv_type_long_int=yes
24426 else
24427   echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ac_cv_type_long_int=no
24431 fi
24432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24433 fi
24434 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24435 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24436
24437 echo "$as_me:$LINENO: checking size of long int" >&5
24438 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24439 if test "${ac_cv_sizeof_long_int+set}" = set; then
24440   echo $ECHO_N "(cached) $ECHO_C" >&6
24441 else
24442   if test "$ac_cv_type_long_int" = yes; then
24443   # The cast to unsigned long works around a bug in the HP C Compiler
24444   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24445   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24446   # This bug is HP SR number 8606223364.
24447   if test "$cross_compiling" = yes; then
24448   # Depending upon the size, compute the lo and hi bounds.
24449 cat >conftest.$ac_ext <<_ACEOF
24450 /* confdefs.h.  */
24451 _ACEOF
24452 cat confdefs.h >>conftest.$ac_ext
24453 cat >>conftest.$ac_ext <<_ACEOF
24454 /* end confdefs.h.  */
24455 $ac_includes_default
24456 int
24457 main ()
24458 {
24459 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24460 test_array [0] = 0
24461
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext
24467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24468   (eval $ac_compile) 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } &&
24475          { ac_try='test -z "$ac_c_werror_flag"
24476                          || test ! -s conftest.err'
24477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24478   (eval $ac_try) 2>&5
24479   ac_status=$?
24480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481   (exit $ac_status); }; } &&
24482          { ac_try='test -s conftest.$ac_objext'
24483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24484   (eval $ac_try) 2>&5
24485   ac_status=$?
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); }; }; then
24488   ac_lo=0 ac_mid=0
24489   while :; do
24490     cat >conftest.$ac_ext <<_ACEOF
24491 /* confdefs.h.  */
24492 _ACEOF
24493 cat confdefs.h >>conftest.$ac_ext
24494 cat >>conftest.$ac_ext <<_ACEOF
24495 /* end confdefs.h.  */
24496 $ac_includes_default
24497 int
24498 main ()
24499 {
24500 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24501 test_array [0] = 0
24502
24503   ;
24504   return 0;
24505 }
24506 _ACEOF
24507 rm -f conftest.$ac_objext
24508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24509   (eval $ac_compile) 2>conftest.er1
24510   ac_status=$?
24511   grep -v '^ *+' conftest.er1 >conftest.err
24512   rm -f conftest.er1
24513   cat conftest.err >&5
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); } &&
24516          { ac_try='test -z "$ac_c_werror_flag"
24517                          || test ! -s conftest.err'
24518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519   (eval $ac_try) 2>&5
24520   ac_status=$?
24521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522   (exit $ac_status); }; } &&
24523          { ac_try='test -s conftest.$ac_objext'
24524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24525   (eval $ac_try) 2>&5
24526   ac_status=$?
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); }; }; then
24529   ac_hi=$ac_mid; break
24530 else
24531   echo "$as_me: failed program was:" >&5
24532 sed 's/^/| /' conftest.$ac_ext >&5
24533
24534 ac_lo=`expr $ac_mid + 1`
24535                     if test $ac_lo -le $ac_mid; then
24536                       ac_lo= ac_hi=
24537                       break
24538                     fi
24539                     ac_mid=`expr 2 '*' $ac_mid + 1`
24540 fi
24541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24542   done
24543 else
24544   echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24546
24547 cat >conftest.$ac_ext <<_ACEOF
24548 /* confdefs.h.  */
24549 _ACEOF
24550 cat confdefs.h >>conftest.$ac_ext
24551 cat >>conftest.$ac_ext <<_ACEOF
24552 /* end confdefs.h.  */
24553 $ac_includes_default
24554 int
24555 main ()
24556 {
24557 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24558 test_array [0] = 0
24559
24560   ;
24561   return 0;
24562 }
24563 _ACEOF
24564 rm -f conftest.$ac_objext
24565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24566   (eval $ac_compile) 2>conftest.er1
24567   ac_status=$?
24568   grep -v '^ *+' conftest.er1 >conftest.err
24569   rm -f conftest.er1
24570   cat conftest.err >&5
24571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572   (exit $ac_status); } &&
24573          { ac_try='test -z "$ac_c_werror_flag"
24574                          || test ! -s conftest.err'
24575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576   (eval $ac_try) 2>&5
24577   ac_status=$?
24578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579   (exit $ac_status); }; } &&
24580          { ac_try='test -s conftest.$ac_objext'
24581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582   (eval $ac_try) 2>&5
24583   ac_status=$?
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); }; }; then
24586   ac_hi=-1 ac_mid=-1
24587   while :; do
24588     cat >conftest.$ac_ext <<_ACEOF
24589 /* confdefs.h.  */
24590 _ACEOF
24591 cat confdefs.h >>conftest.$ac_ext
24592 cat >>conftest.$ac_ext <<_ACEOF
24593 /* end confdefs.h.  */
24594 $ac_includes_default
24595 int
24596 main ()
24597 {
24598 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24599 test_array [0] = 0
24600
24601   ;
24602   return 0;
24603 }
24604 _ACEOF
24605 rm -f conftest.$ac_objext
24606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24607   (eval $ac_compile) 2>conftest.er1
24608   ac_status=$?
24609   grep -v '^ *+' conftest.er1 >conftest.err
24610   rm -f conftest.er1
24611   cat conftest.err >&5
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); } &&
24614          { ac_try='test -z "$ac_c_werror_flag"
24615                          || test ! -s conftest.err'
24616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24617   (eval $ac_try) 2>&5
24618   ac_status=$?
24619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24620   (exit $ac_status); }; } &&
24621          { ac_try='test -s conftest.$ac_objext'
24622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24623   (eval $ac_try) 2>&5
24624   ac_status=$?
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); }; }; then
24627   ac_lo=$ac_mid; break
24628 else
24629   echo "$as_me: failed program was:" >&5
24630 sed 's/^/| /' conftest.$ac_ext >&5
24631
24632 ac_hi=`expr '(' $ac_mid ')' - 1`
24633                        if test $ac_mid -le $ac_hi; then
24634                          ac_lo= ac_hi=
24635                          break
24636                        fi
24637                        ac_mid=`expr 2 '*' $ac_mid`
24638 fi
24639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24640   done
24641 else
24642   echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ac_lo= ac_hi=
24646 fi
24647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24648 fi
24649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24650 # Binary search between lo and hi bounds.
24651 while test "x$ac_lo" != "x$ac_hi"; do
24652   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24653   cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659 $ac_includes_default
24660 int
24661 main ()
24662 {
24663 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24664 test_array [0] = 0
24665
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_hi=$ac_mid
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697 ac_lo=`expr '(' $ac_mid ')' + 1`
24698 fi
24699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24700 done
24701 case $ac_lo in
24702 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24704 See \`config.log' for more details." >&5
24705 echo "$as_me: error: cannot compute sizeof (long int), 77
24706 See \`config.log' for more details." >&2;}
24707    { (exit 1); exit 1; }; } ;;
24708 esac
24709 else
24710   if test "$cross_compiling" = yes; then
24711   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24712 See \`config.log' for more details." >&5
24713 echo "$as_me: error: cannot run test program while cross compiling
24714 See \`config.log' for more details." >&2;}
24715    { (exit 1); exit 1; }; }
24716 else
24717   cat >conftest.$ac_ext <<_ACEOF
24718 /* confdefs.h.  */
24719 _ACEOF
24720 cat confdefs.h >>conftest.$ac_ext
24721 cat >>conftest.$ac_ext <<_ACEOF
24722 /* end confdefs.h.  */
24723 $ac_includes_default
24724 long longval () { return (long) (sizeof (long int)); }
24725 unsigned long ulongval () { return (long) (sizeof (long int)); }
24726 #include <stdio.h>
24727 #include <stdlib.h>
24728 int
24729 main ()
24730 {
24731
24732   FILE *f = fopen ("conftest.val", "w");
24733   if (! f)
24734     exit (1);
24735   if (((long) (sizeof (long int))) < 0)
24736     {
24737       long i = longval ();
24738       if (i != ((long) (sizeof (long int))))
24739         exit (1);
24740       fprintf (f, "%ld\n", i);
24741     }
24742   else
24743     {
24744       unsigned long i = ulongval ();
24745       if (i != ((long) (sizeof (long int))))
24746         exit (1);
24747       fprintf (f, "%lu\n", i);
24748     }
24749   exit (ferror (f) || fclose (f) != 0);
24750
24751   ;
24752   return 0;
24753 }
24754 _ACEOF
24755 rm -f conftest$ac_exeext
24756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24757   (eval $ac_link) 2>&5
24758   ac_status=$?
24759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762   (eval $ac_try) 2>&5
24763   ac_status=$?
24764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765   (exit $ac_status); }; }; then
24766   ac_cv_sizeof_long_int=`cat conftest.val`
24767 else
24768   echo "$as_me: program exited with status $ac_status" >&5
24769 echo "$as_me: failed program was:" >&5
24770 sed 's/^/| /' conftest.$ac_ext >&5
24771
24772 ( exit $ac_status )
24773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24774 See \`config.log' for more details." >&5
24775 echo "$as_me: error: cannot compute sizeof (long int), 77
24776 See \`config.log' for more details." >&2;}
24777    { (exit 1); exit 1; }; }
24778 fi
24779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24780 fi
24781 fi
24782 rm -f conftest.val
24783 else
24784   ac_cv_sizeof_long_int=0
24785 fi
24786 fi
24787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24788 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24789 cat >>confdefs.h <<_ACEOF
24790 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24791 _ACEOF
24792
24793
24794 echo "$as_me:$LINENO: checking for long long int" >&5
24795 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24796 if test "${ac_cv_type_long_long_int+set}" = set; then
24797   echo $ECHO_N "(cached) $ECHO_C" >&6
24798 else
24799   cat >conftest.$ac_ext <<_ACEOF
24800 /* confdefs.h.  */
24801 _ACEOF
24802 cat confdefs.h >>conftest.$ac_ext
24803 cat >>conftest.$ac_ext <<_ACEOF
24804 /* end confdefs.h.  */
24805 $ac_includes_default
24806 int
24807 main ()
24808 {
24809 if ((long long int *) 0)
24810   return 0;
24811 if (sizeof (long long int))
24812   return 0;
24813   ;
24814   return 0;
24815 }
24816 _ACEOF
24817 rm -f conftest.$ac_objext
24818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24819   (eval $ac_compile) 2>conftest.er1
24820   ac_status=$?
24821   grep -v '^ *+' conftest.er1 >conftest.err
24822   rm -f conftest.er1
24823   cat conftest.err >&5
24824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24825   (exit $ac_status); } &&
24826          { ac_try='test -z "$ac_c_werror_flag"
24827                          || test ! -s conftest.err'
24828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24829   (eval $ac_try) 2>&5
24830   ac_status=$?
24831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24832   (exit $ac_status); }; } &&
24833          { ac_try='test -s conftest.$ac_objext'
24834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24835   (eval $ac_try) 2>&5
24836   ac_status=$?
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); }; }; then
24839   ac_cv_type_long_long_int=yes
24840 else
24841   echo "$as_me: failed program was:" >&5
24842 sed 's/^/| /' conftest.$ac_ext >&5
24843
24844 ac_cv_type_long_long_int=no
24845 fi
24846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24847 fi
24848 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24849 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24850
24851 echo "$as_me:$LINENO: checking size of long long int" >&5
24852 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24853 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856   if test "$ac_cv_type_long_long_int" = yes; then
24857   # The cast to unsigned long works around a bug in the HP C Compiler
24858   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24859   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24860   # This bug is HP SR number 8606223364.
24861   if test "$cross_compiling" = yes; then
24862   # Depending upon the size, compute the lo and hi bounds.
24863 cat >conftest.$ac_ext <<_ACEOF
24864 /* confdefs.h.  */
24865 _ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h.  */
24869 $ac_includes_default
24870 int
24871 main ()
24872 {
24873 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24874 test_array [0] = 0
24875
24876   ;
24877   return 0;
24878 }
24879 _ACEOF
24880 rm -f conftest.$ac_objext
24881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24882   (eval $ac_compile) 2>conftest.er1
24883   ac_status=$?
24884   grep -v '^ *+' conftest.er1 >conftest.err
24885   rm -f conftest.er1
24886   cat conftest.err >&5
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); } &&
24889          { ac_try='test -z "$ac_c_werror_flag"
24890                          || test ! -s conftest.err'
24891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24892   (eval $ac_try) 2>&5
24893   ac_status=$?
24894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895   (exit $ac_status); }; } &&
24896          { ac_try='test -s conftest.$ac_objext'
24897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24898   (eval $ac_try) 2>&5
24899   ac_status=$?
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); }; }; then
24902   ac_lo=0 ac_mid=0
24903   while :; do
24904     cat >conftest.$ac_ext <<_ACEOF
24905 /* confdefs.h.  */
24906 _ACEOF
24907 cat confdefs.h >>conftest.$ac_ext
24908 cat >>conftest.$ac_ext <<_ACEOF
24909 /* end confdefs.h.  */
24910 $ac_includes_default
24911 int
24912 main ()
24913 {
24914 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24915 test_array [0] = 0
24916
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24923   (eval $ac_compile) 2>conftest.er1
24924   ac_status=$?
24925   grep -v '^ *+' conftest.er1 >conftest.err
24926   rm -f conftest.er1
24927   cat conftest.err >&5
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); } &&
24930          { ac_try='test -z "$ac_c_werror_flag"
24931                          || test ! -s conftest.err'
24932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24933   (eval $ac_try) 2>&5
24934   ac_status=$?
24935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24936   (exit $ac_status); }; } &&
24937          { ac_try='test -s conftest.$ac_objext'
24938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939   (eval $ac_try) 2>&5
24940   ac_status=$?
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); }; }; then
24943   ac_hi=$ac_mid; break
24944 else
24945   echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948 ac_lo=`expr $ac_mid + 1`
24949                     if test $ac_lo -le $ac_mid; then
24950                       ac_lo= ac_hi=
24951                       break
24952                     fi
24953                     ac_mid=`expr 2 '*' $ac_mid + 1`
24954 fi
24955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24956   done
24957 else
24958   echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24960
24961 cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h.  */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h.  */
24967 $ac_includes_default
24968 int
24969 main ()
24970 {
24971 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24972 test_array [0] = 0
24973
24974   ;
24975   return 0;
24976 }
24977 _ACEOF
24978 rm -f conftest.$ac_objext
24979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24980   (eval $ac_compile) 2>conftest.er1
24981   ac_status=$?
24982   grep -v '^ *+' conftest.er1 >conftest.err
24983   rm -f conftest.er1
24984   cat conftest.err >&5
24985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986   (exit $ac_status); } &&
24987          { ac_try='test -z "$ac_c_werror_flag"
24988                          || test ! -s conftest.err'
24989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990   (eval $ac_try) 2>&5
24991   ac_status=$?
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); }; } &&
24994          { ac_try='test -s conftest.$ac_objext'
24995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996   (eval $ac_try) 2>&5
24997   ac_status=$?
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); }; }; then
25000   ac_hi=-1 ac_mid=-1
25001   while :; do
25002     cat >conftest.$ac_ext <<_ACEOF
25003 /* confdefs.h.  */
25004 _ACEOF
25005 cat confdefs.h >>conftest.$ac_ext
25006 cat >>conftest.$ac_ext <<_ACEOF
25007 /* end confdefs.h.  */
25008 $ac_includes_default
25009 int
25010 main ()
25011 {
25012 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
25013 test_array [0] = 0
25014
25015   ;
25016   return 0;
25017 }
25018 _ACEOF
25019 rm -f conftest.$ac_objext
25020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25021   (eval $ac_compile) 2>conftest.er1
25022   ac_status=$?
25023   grep -v '^ *+' conftest.er1 >conftest.err
25024   rm -f conftest.er1
25025   cat conftest.err >&5
25026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027   (exit $ac_status); } &&
25028          { ac_try='test -z "$ac_c_werror_flag"
25029                          || test ! -s conftest.err'
25030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25031   (eval $ac_try) 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; } &&
25035          { ac_try='test -s conftest.$ac_objext'
25036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25037   (eval $ac_try) 2>&5
25038   ac_status=$?
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); }; }; then
25041   ac_lo=$ac_mid; break
25042 else
25043   echo "$as_me: failed program was:" >&5
25044 sed 's/^/| /' conftest.$ac_ext >&5
25045
25046 ac_hi=`expr '(' $ac_mid ')' - 1`
25047                        if test $ac_mid -le $ac_hi; then
25048                          ac_lo= ac_hi=
25049                          break
25050                        fi
25051                        ac_mid=`expr 2 '*' $ac_mid`
25052 fi
25053 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25054   done
25055 else
25056   echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059 ac_lo= ac_hi=
25060 fi
25061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25062 fi
25063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25064 # Binary search between lo and hi bounds.
25065 while test "x$ac_lo" != "x$ac_hi"; do
25066   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25067   cat >conftest.$ac_ext <<_ACEOF
25068 /* confdefs.h.  */
25069 _ACEOF
25070 cat confdefs.h >>conftest.$ac_ext
25071 cat >>conftest.$ac_ext <<_ACEOF
25072 /* end confdefs.h.  */
25073 $ac_includes_default
25074 int
25075 main ()
25076 {
25077 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25078 test_array [0] = 0
25079
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_hi=$ac_mid
25107 else
25108   echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25110
25111 ac_lo=`expr '(' $ac_mid ')' + 1`
25112 fi
25113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25114 done
25115 case $ac_lo in
25116 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25117 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25118 See \`config.log' for more details." >&5
25119 echo "$as_me: error: cannot compute sizeof (long long int), 77
25120 See \`config.log' for more details." >&2;}
25121    { (exit 1); exit 1; }; } ;;
25122 esac
25123 else
25124   if test "$cross_compiling" = yes; then
25125   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25126 See \`config.log' for more details." >&5
25127 echo "$as_me: error: cannot run test program while cross compiling
25128 See \`config.log' for more details." >&2;}
25129    { (exit 1); exit 1; }; }
25130 else
25131   cat >conftest.$ac_ext <<_ACEOF
25132 /* confdefs.h.  */
25133 _ACEOF
25134 cat confdefs.h >>conftest.$ac_ext
25135 cat >>conftest.$ac_ext <<_ACEOF
25136 /* end confdefs.h.  */
25137 $ac_includes_default
25138 long longval () { return (long) (sizeof (long long int)); }
25139 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25140 #include <stdio.h>
25141 #include <stdlib.h>
25142 int
25143 main ()
25144 {
25145
25146   FILE *f = fopen ("conftest.val", "w");
25147   if (! f)
25148     exit (1);
25149   if (((long) (sizeof (long long int))) < 0)
25150     {
25151       long i = longval ();
25152       if (i != ((long) (sizeof (long long int))))
25153         exit (1);
25154       fprintf (f, "%ld\n", i);
25155     }
25156   else
25157     {
25158       unsigned long i = ulongval ();
25159       if (i != ((long) (sizeof (long long int))))
25160         exit (1);
25161       fprintf (f, "%lu\n", i);
25162     }
25163   exit (ferror (f) || fclose (f) != 0);
25164
25165   ;
25166   return 0;
25167 }
25168 _ACEOF
25169 rm -f conftest$ac_exeext
25170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25171   (eval $ac_link) 2>&5
25172   ac_status=$?
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25176   (eval $ac_try) 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   ac_cv_sizeof_long_long_int=`cat conftest.val`
25181 else
25182   echo "$as_me: program exited with status $ac_status" >&5
25183 echo "$as_me: failed program was:" >&5
25184 sed 's/^/| /' conftest.$ac_ext >&5
25185
25186 ( exit $ac_status )
25187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25188 See \`config.log' for more details." >&5
25189 echo "$as_me: error: cannot compute sizeof (long long int), 77
25190 See \`config.log' for more details." >&2;}
25191    { (exit 1); exit 1; }; }
25192 fi
25193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25194 fi
25195 fi
25196 rm -f conftest.val
25197 else
25198   ac_cv_sizeof_long_long_int=0
25199 fi
25200 fi
25201 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25202 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25203 cat >>confdefs.h <<_ACEOF
25204 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25205 _ACEOF
25206
25207
25208 echo "$as_me:$LINENO: checking for int *" >&5
25209 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25210 if test "${ac_cv_type_int_p+set}" = set; then
25211   echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213   cat >conftest.$ac_ext <<_ACEOF
25214 /* confdefs.h.  */
25215 _ACEOF
25216 cat confdefs.h >>conftest.$ac_ext
25217 cat >>conftest.$ac_ext <<_ACEOF
25218 /* end confdefs.h.  */
25219 $ac_includes_default
25220 int
25221 main ()
25222 {
25223 if ((int * *) 0)
25224   return 0;
25225 if (sizeof (int *))
25226   return 0;
25227   ;
25228   return 0;
25229 }
25230 _ACEOF
25231 rm -f conftest.$ac_objext
25232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25233   (eval $ac_compile) 2>conftest.er1
25234   ac_status=$?
25235   grep -v '^ *+' conftest.er1 >conftest.err
25236   rm -f conftest.er1
25237   cat conftest.err >&5
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); } &&
25240          { ac_try='test -z "$ac_c_werror_flag"
25241                          || test ! -s conftest.err'
25242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243   (eval $ac_try) 2>&5
25244   ac_status=$?
25245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246   (exit $ac_status); }; } &&
25247          { ac_try='test -s conftest.$ac_objext'
25248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25249   (eval $ac_try) 2>&5
25250   ac_status=$?
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); }; }; then
25253   ac_cv_type_int_p=yes
25254 else
25255   echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258 ac_cv_type_int_p=no
25259 fi
25260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25261 fi
25262 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25263 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25264
25265 echo "$as_me:$LINENO: checking size of int *" >&5
25266 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25267 if test "${ac_cv_sizeof_int_p+set}" = set; then
25268   echo $ECHO_N "(cached) $ECHO_C" >&6
25269 else
25270   if test "$ac_cv_type_int_p" = yes; then
25271   # The cast to unsigned long works around a bug in the HP C Compiler
25272   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25273   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25274   # This bug is HP SR number 8606223364.
25275   if test "$cross_compiling" = yes; then
25276   # Depending upon the size, compute the lo and hi bounds.
25277 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h.  */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h.  */
25283 $ac_includes_default
25284 int
25285 main ()
25286 {
25287 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25288 test_array [0] = 0
25289
25290   ;
25291   return 0;
25292 }
25293 _ACEOF
25294 rm -f conftest.$ac_objext
25295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25296   (eval $ac_compile) 2>conftest.er1
25297   ac_status=$?
25298   grep -v '^ *+' conftest.er1 >conftest.err
25299   rm -f conftest.er1
25300   cat conftest.err >&5
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); } &&
25303          { ac_try='test -z "$ac_c_werror_flag"
25304                          || test ! -s conftest.err'
25305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25306   (eval $ac_try) 2>&5
25307   ac_status=$?
25308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25309   (exit $ac_status); }; } &&
25310          { ac_try='test -s conftest.$ac_objext'
25311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25312   (eval $ac_try) 2>&5
25313   ac_status=$?
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); }; }; then
25316   ac_lo=0 ac_mid=0
25317   while :; do
25318     cat >conftest.$ac_ext <<_ACEOF
25319 /* confdefs.h.  */
25320 _ACEOF
25321 cat confdefs.h >>conftest.$ac_ext
25322 cat >>conftest.$ac_ext <<_ACEOF
25323 /* end confdefs.h.  */
25324 $ac_includes_default
25325 int
25326 main ()
25327 {
25328 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25329 test_array [0] = 0
25330
25331   ;
25332   return 0;
25333 }
25334 _ACEOF
25335 rm -f conftest.$ac_objext
25336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25337   (eval $ac_compile) 2>conftest.er1
25338   ac_status=$?
25339   grep -v '^ *+' conftest.er1 >conftest.err
25340   rm -f conftest.er1
25341   cat conftest.err >&5
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); } &&
25344          { ac_try='test -z "$ac_c_werror_flag"
25345                          || test ! -s conftest.err'
25346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347   (eval $ac_try) 2>&5
25348   ac_status=$?
25349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350   (exit $ac_status); }; } &&
25351          { ac_try='test -s conftest.$ac_objext'
25352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25353   (eval $ac_try) 2>&5
25354   ac_status=$?
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); }; }; then
25357   ac_hi=$ac_mid; break
25358 else
25359   echo "$as_me: failed program was:" >&5
25360 sed 's/^/| /' conftest.$ac_ext >&5
25361
25362 ac_lo=`expr $ac_mid + 1`
25363                     if test $ac_lo -le $ac_mid; then
25364                       ac_lo= ac_hi=
25365                       break
25366                     fi
25367                     ac_mid=`expr 2 '*' $ac_mid + 1`
25368 fi
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25370   done
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375 cat >conftest.$ac_ext <<_ACEOF
25376 /* confdefs.h.  */
25377 _ACEOF
25378 cat confdefs.h >>conftest.$ac_ext
25379 cat >>conftest.$ac_ext <<_ACEOF
25380 /* end confdefs.h.  */
25381 $ac_includes_default
25382 int
25383 main ()
25384 {
25385 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25386 test_array [0] = 0
25387
25388   ;
25389   return 0;
25390 }
25391 _ACEOF
25392 rm -f conftest.$ac_objext
25393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25394   (eval $ac_compile) 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } &&
25401          { ac_try='test -z "$ac_c_werror_flag"
25402                          || test ! -s conftest.err'
25403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25404   (eval $ac_try) 2>&5
25405   ac_status=$?
25406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407   (exit $ac_status); }; } &&
25408          { ac_try='test -s conftest.$ac_objext'
25409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410   (eval $ac_try) 2>&5
25411   ac_status=$?
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); }; }; then
25414   ac_hi=-1 ac_mid=-1
25415   while :; do
25416     cat >conftest.$ac_ext <<_ACEOF
25417 /* confdefs.h.  */
25418 _ACEOF
25419 cat confdefs.h >>conftest.$ac_ext
25420 cat >>conftest.$ac_ext <<_ACEOF
25421 /* end confdefs.h.  */
25422 $ac_includes_default
25423 int
25424 main ()
25425 {
25426 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25427 test_array [0] = 0
25428
25429   ;
25430   return 0;
25431 }
25432 _ACEOF
25433 rm -f conftest.$ac_objext
25434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25435   (eval $ac_compile) 2>conftest.er1
25436   ac_status=$?
25437   grep -v '^ *+' conftest.er1 >conftest.err
25438   rm -f conftest.er1
25439   cat conftest.err >&5
25440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441   (exit $ac_status); } &&
25442          { ac_try='test -z "$ac_c_werror_flag"
25443                          || test ! -s conftest.err'
25444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25445   (eval $ac_try) 2>&5
25446   ac_status=$?
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); }; } &&
25449          { ac_try='test -s conftest.$ac_objext'
25450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25451   (eval $ac_try) 2>&5
25452   ac_status=$?
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); }; }; then
25455   ac_lo=$ac_mid; break
25456 else
25457   echo "$as_me: failed program was:" >&5
25458 sed 's/^/| /' conftest.$ac_ext >&5
25459
25460 ac_hi=`expr '(' $ac_mid ')' - 1`
25461                        if test $ac_mid -le $ac_hi; then
25462                          ac_lo= ac_hi=
25463                          break
25464                        fi
25465                        ac_mid=`expr 2 '*' $ac_mid`
25466 fi
25467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25468   done
25469 else
25470   echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25472
25473 ac_lo= ac_hi=
25474 fi
25475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25476 fi
25477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25478 # Binary search between lo and hi bounds.
25479 while test "x$ac_lo" != "x$ac_hi"; do
25480   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25481   cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 $ac_includes_default
25488 int
25489 main ()
25490 {
25491 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25492 test_array [0] = 0
25493
25494   ;
25495   return 0;
25496 }
25497 _ACEOF
25498 rm -f conftest.$ac_objext
25499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25500   (eval $ac_compile) 2>conftest.er1
25501   ac_status=$?
25502   grep -v '^ *+' conftest.er1 >conftest.err
25503   rm -f conftest.er1
25504   cat conftest.err >&5
25505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25506   (exit $ac_status); } &&
25507          { ac_try='test -z "$ac_c_werror_flag"
25508                          || test ! -s conftest.err'
25509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25510   (eval $ac_try) 2>&5
25511   ac_status=$?
25512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25513   (exit $ac_status); }; } &&
25514          { ac_try='test -s conftest.$ac_objext'
25515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25516   (eval $ac_try) 2>&5
25517   ac_status=$?
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); }; }; then
25520   ac_hi=$ac_mid
25521 else
25522   echo "$as_me: failed program was:" >&5
25523 sed 's/^/| /' conftest.$ac_ext >&5
25524
25525 ac_lo=`expr '(' $ac_mid ')' + 1`
25526 fi
25527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25528 done
25529 case $ac_lo in
25530 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25531 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25532 See \`config.log' for more details." >&5
25533 echo "$as_me: error: cannot compute sizeof (int *), 77
25534 See \`config.log' for more details." >&2;}
25535    { (exit 1); exit 1; }; } ;;
25536 esac
25537 else
25538   if test "$cross_compiling" = yes; then
25539   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25540 See \`config.log' for more details." >&5
25541 echo "$as_me: error: cannot run test program while cross compiling
25542 See \`config.log' for more details." >&2;}
25543    { (exit 1); exit 1; }; }
25544 else
25545   cat >conftest.$ac_ext <<_ACEOF
25546 /* confdefs.h.  */
25547 _ACEOF
25548 cat confdefs.h >>conftest.$ac_ext
25549 cat >>conftest.$ac_ext <<_ACEOF
25550 /* end confdefs.h.  */
25551 $ac_includes_default
25552 long longval () { return (long) (sizeof (int *)); }
25553 unsigned long ulongval () { return (long) (sizeof (int *)); }
25554 #include <stdio.h>
25555 #include <stdlib.h>
25556 int
25557 main ()
25558 {
25559
25560   FILE *f = fopen ("conftest.val", "w");
25561   if (! f)
25562     exit (1);
25563   if (((long) (sizeof (int *))) < 0)
25564     {
25565       long i = longval ();
25566       if (i != ((long) (sizeof (int *))))
25567         exit (1);
25568       fprintf (f, "%ld\n", i);
25569     }
25570   else
25571     {
25572       unsigned long i = ulongval ();
25573       if (i != ((long) (sizeof (int *))))
25574         exit (1);
25575       fprintf (f, "%lu\n", i);
25576     }
25577   exit (ferror (f) || fclose (f) != 0);
25578
25579   ;
25580   return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest$ac_exeext
25584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25585   (eval $ac_link) 2>&5
25586   ac_status=$?
25587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25588   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590   (eval $ac_try) 2>&5
25591   ac_status=$?
25592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593   (exit $ac_status); }; }; then
25594   ac_cv_sizeof_int_p=`cat conftest.val`
25595 else
25596   echo "$as_me: program exited with status $ac_status" >&5
25597 echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600 ( exit $ac_status )
25601 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25602 See \`config.log' for more details." >&5
25603 echo "$as_me: error: cannot compute sizeof (int *), 77
25604 See \`config.log' for more details." >&2;}
25605    { (exit 1); exit 1; }; }
25606 fi
25607 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25608 fi
25609 fi
25610 rm -f conftest.val
25611 else
25612   ac_cv_sizeof_int_p=0
25613 fi
25614 fi
25615 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25616 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25617 cat >>confdefs.h <<_ACEOF
25618 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25619 _ACEOF
25620
25621
25622
25623 # Check for sys/types.h types
25624 echo "$as_me:$LINENO: checking for u_int type" >&5
25625 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25626 if test "${ac_cv_have_u_int+set}" = set; then
25627   echo $ECHO_N "(cached) $ECHO_C" >&6
25628 else
25629
25630     cat >conftest.$ac_ext <<_ACEOF
25631 /* confdefs.h.  */
25632 _ACEOF
25633 cat confdefs.h >>conftest.$ac_ext
25634 cat >>conftest.$ac_ext <<_ACEOF
25635 /* end confdefs.h.  */
25636  #include <sys/types.h>
25637 int
25638 main ()
25639 {
25640  u_int a; a = 1;
25641   ;
25642   return 0;
25643 }
25644 _ACEOF
25645 rm -f conftest.$ac_objext
25646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25647   (eval $ac_compile) 2>conftest.er1
25648   ac_status=$?
25649   grep -v '^ *+' conftest.er1 >conftest.err
25650   rm -f conftest.er1
25651   cat conftest.err >&5
25652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25653   (exit $ac_status); } &&
25654          { ac_try='test -z "$ac_c_werror_flag"
25655                          || test ! -s conftest.err'
25656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25657   (eval $ac_try) 2>&5
25658   ac_status=$?
25659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25660   (exit $ac_status); }; } &&
25661          { ac_try='test -s conftest.$ac_objext'
25662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25663   (eval $ac_try) 2>&5
25664   ac_status=$?
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); }; }; then
25667    ac_cv_have_u_int="yes"
25668 else
25669   echo "$as_me: failed program was:" >&5
25670 sed 's/^/| /' conftest.$ac_ext >&5
25671
25672  ac_cv_have_u_int="no"
25673
25674 fi
25675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25676
25677 fi
25678 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25679 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25680 if test "x$ac_cv_have_u_int" = "xyes" ; then
25681    cat >>confdefs.h <<\_ACEOF
25682 #define HAVE_U_INT 1
25683 _ACEOF
25684
25685    have_u_int=1
25686 fi
25687
25688 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25689 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25690 if test "${ac_cv_have_intmax_t+set}" = set; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693
25694    cat >conftest.$ac_ext <<_ACEOF
25695 /* confdefs.h.  */
25696 _ACEOF
25697 cat confdefs.h >>conftest.$ac_ext
25698 cat >>conftest.$ac_ext <<_ACEOF
25699 /* end confdefs.h.  */
25700  #include <sys/types.h>
25701 int
25702 main ()
25703 {
25704  intmax_t a; a = 1;
25705   ;
25706   return 0;
25707 }
25708 _ACEOF
25709 rm -f conftest.$ac_objext
25710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25711   (eval $ac_compile) 2>conftest.er1
25712   ac_status=$?
25713   grep -v '^ *+' conftest.er1 >conftest.err
25714   rm -f conftest.er1
25715   cat conftest.err >&5
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); } &&
25718          { ac_try='test -z "$ac_c_werror_flag"
25719                          || test ! -s conftest.err'
25720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25721   (eval $ac_try) 2>&5
25722   ac_status=$?
25723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25724   (exit $ac_status); }; } &&
25725          { ac_try='test -s conftest.$ac_objext'
25726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25727   (eval $ac_try) 2>&5
25728   ac_status=$?
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); }; }; then
25731    ac_cv_have_intmax_t="yes"
25732 else
25733   echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25735
25736
25737          cat >conftest.$ac_ext <<_ACEOF
25738 /* confdefs.h.  */
25739 _ACEOF
25740 cat confdefs.h >>conftest.$ac_ext
25741 cat >>conftest.$ac_ext <<_ACEOF
25742 /* end confdefs.h.  */
25743  #include <stdint.h>
25744 int
25745 main ()
25746 {
25747  intmax_t a; a = 1;
25748   ;
25749   return 0;
25750 }
25751 _ACEOF
25752 rm -f conftest.$ac_objext
25753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754   (eval $ac_compile) 2>conftest.er1
25755   ac_status=$?
25756   grep -v '^ *+' conftest.er1 >conftest.err
25757   rm -f conftest.er1
25758   cat conftest.err >&5
25759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760   (exit $ac_status); } &&
25761          { ac_try='test -z "$ac_c_werror_flag"
25762                          || test ! -s conftest.err'
25763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764   (eval $ac_try) 2>&5
25765   ac_status=$?
25766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767   (exit $ac_status); }; } &&
25768          { ac_try='test -s conftest.$ac_objext'
25769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770   (eval $ac_try) 2>&5
25771   ac_status=$?
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); }; }; then
25774    ac_cv_have_intmax_t="yes"
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779  ac_cv_have_intmax_t="no"
25780
25781 fi
25782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784
25785 fi
25786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25787
25788
25789 fi
25790 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25791 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25792 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25793    cat >>confdefs.h <<\_ACEOF
25794 #define HAVE_INTMAX_T 1
25795 _ACEOF
25796
25797    have_intmax_t=1
25798 fi
25799
25800
25801 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25802 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25803 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25804   echo $ECHO_N "(cached) $ECHO_C" >&6
25805 else
25806
25807    cat >conftest.$ac_ext <<_ACEOF
25808 /* confdefs.h.  */
25809 _ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h.  */
25813  #include <sys/types.h>
25814 int
25815 main ()
25816 {
25817  u_intmax_t a; a = 1;
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 rm -f conftest.$ac_objext
25823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25824   (eval $ac_compile) 2>conftest.er1
25825   ac_status=$?
25826   grep -v '^ *+' conftest.er1 >conftest.err
25827   rm -f conftest.er1
25828   cat conftest.err >&5
25829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25830   (exit $ac_status); } &&
25831          { ac_try='test -z "$ac_c_werror_flag"
25832                          || test ! -s conftest.err'
25833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25834   (eval $ac_try) 2>&5
25835   ac_status=$?
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); }; } &&
25838          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25844    ac_cv_have_u_intmax_t="yes"
25845 else
25846   echo "$as_me: failed program was:" >&5
25847 sed 's/^/| /' conftest.$ac_ext >&5
25848
25849
25850          cat >conftest.$ac_ext <<_ACEOF
25851 /* confdefs.h.  */
25852 _ACEOF
25853 cat confdefs.h >>conftest.$ac_ext
25854 cat >>conftest.$ac_ext <<_ACEOF
25855 /* end confdefs.h.  */
25856  #include <stdint.h>
25857 int
25858 main ()
25859 {
25860  u_intmax_t a; a = 1;
25861   ;
25862   return 0;
25863 }
25864 _ACEOF
25865 rm -f conftest.$ac_objext
25866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25867   (eval $ac_compile) 2>conftest.er1
25868   ac_status=$?
25869   grep -v '^ *+' conftest.er1 >conftest.err
25870   rm -f conftest.er1
25871   cat conftest.err >&5
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); } &&
25874          { ac_try='test -z "$ac_c_werror_flag"
25875                          || test ! -s conftest.err'
25876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25877   (eval $ac_try) 2>&5
25878   ac_status=$?
25879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880   (exit $ac_status); }; } &&
25881          { ac_try='test -s conftest.$ac_objext'
25882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25883   (eval $ac_try) 2>&5
25884   ac_status=$?
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); }; }; then
25887    ac_cv_have_u_intmax_t="yes"
25888 else
25889   echo "$as_me: failed program was:" >&5
25890 sed 's/^/| /' conftest.$ac_ext >&5
25891
25892  ac_cv_have_u_intmax_t="no"
25893
25894 fi
25895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25896
25897
25898 fi
25899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25900
25901 fi
25902 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25903 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25904 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25905    cat >>confdefs.h <<\_ACEOF
25906 #define HAVE_U_INTMAX_T 1
25907 _ACEOF
25908
25909    have_u_intmax_t=1
25910 fi
25911
25912
25913 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25914 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25915 if test "${ac_cv_have_intxx_t+set}" = set; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 else
25918
25919    cat >conftest.$ac_ext <<_ACEOF
25920 /* confdefs.h.  */
25921 _ACEOF
25922 cat confdefs.h >>conftest.$ac_ext
25923 cat >>conftest.$ac_ext <<_ACEOF
25924 /* end confdefs.h.  */
25925  #include <sys/types.h>
25926 int
25927 main ()
25928 {
25929  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25930   ;
25931   return 0;
25932 }
25933 _ACEOF
25934 rm -f conftest.$ac_objext
25935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25936   (eval $ac_compile) 2>conftest.er1
25937   ac_status=$?
25938   grep -v '^ *+' conftest.er1 >conftest.err
25939   rm -f conftest.er1
25940   cat conftest.err >&5
25941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942   (exit $ac_status); } &&
25943          { ac_try='test -z "$ac_c_werror_flag"
25944                          || test ! -s conftest.err'
25945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25946   (eval $ac_try) 2>&5
25947   ac_status=$?
25948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25949   (exit $ac_status); }; } &&
25950          { ac_try='test -s conftest.$ac_objext'
25951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25952   (eval $ac_try) 2>&5
25953   ac_status=$?
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); }; }; then
25956    ac_cv_have_intxx_t="yes"
25957 else
25958   echo "$as_me: failed program was:" >&5
25959 sed 's/^/| /' conftest.$ac_ext >&5
25960
25961  ac_cv_have_intxx_t="no"
25962
25963 fi
25964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25965
25966 fi
25967 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25968 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25969 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25970    cat >>confdefs.h <<\_ACEOF
25971 #define HAVE_INTXX_T 1
25972 _ACEOF
25973
25974    have_intxx_t=1
25975 fi
25976
25977 echo "$as_me:$LINENO: checking for int64_t type" >&5
25978 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25979 if test "${ac_cv_have_int64_t+set}" = set; then
25980   echo $ECHO_N "(cached) $ECHO_C" >&6
25981 else
25982
25983    cat >conftest.$ac_ext <<_ACEOF
25984 /* confdefs.h.  */
25985 _ACEOF
25986 cat confdefs.h >>conftest.$ac_ext
25987 cat >>conftest.$ac_ext <<_ACEOF
25988 /* end confdefs.h.  */
25989  #include <sys/types.h>
25990 int
25991 main ()
25992 {
25993  int64_t a; a = 1;
25994   ;
25995   return 0;
25996 }
25997 _ACEOF
25998 rm -f conftest.$ac_objext
25999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26000   (eval $ac_compile) 2>conftest.er1
26001   ac_status=$?
26002   grep -v '^ *+' conftest.er1 >conftest.err
26003   rm -f conftest.er1
26004   cat conftest.err >&5
26005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006   (exit $ac_status); } &&
26007          { ac_try='test -z "$ac_c_werror_flag"
26008                          || test ! -s conftest.err'
26009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26010   (eval $ac_try) 2>&5
26011   ac_status=$?
26012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26013   (exit $ac_status); }; } &&
26014          { ac_try='test -s conftest.$ac_objext'
26015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26016   (eval $ac_try) 2>&5
26017   ac_status=$?
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); }; }; then
26020    ac_cv_have_int64_t="yes"
26021 else
26022   echo "$as_me: failed program was:" >&5
26023 sed 's/^/| /' conftest.$ac_ext >&5
26024
26025  ac_cv_have_int64_t="no"
26026
26027 fi
26028 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26029
26030 fi
26031 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26032 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
26033 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26034    cat >>confdefs.h <<\_ACEOF
26035 #define HAVE_INT64_T 1
26036 _ACEOF
26037
26038    have_int64_t=1
26039 fi
26040
26041 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26042 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
26043 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26044   echo $ECHO_N "(cached) $ECHO_C" >&6
26045 else
26046
26047    cat >conftest.$ac_ext <<_ACEOF
26048 /* confdefs.h.  */
26049 _ACEOF
26050 cat confdefs.h >>conftest.$ac_ext
26051 cat >>conftest.$ac_ext <<_ACEOF
26052 /* end confdefs.h.  */
26053  #include <sys/types.h>
26054 int
26055 main ()
26056 {
26057  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26058   ;
26059   return 0;
26060 }
26061 _ACEOF
26062 rm -f conftest.$ac_objext
26063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26064   (eval $ac_compile) 2>conftest.er1
26065   ac_status=$?
26066   grep -v '^ *+' conftest.er1 >conftest.err
26067   rm -f conftest.er1
26068   cat conftest.err >&5
26069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070   (exit $ac_status); } &&
26071          { ac_try='test -z "$ac_c_werror_flag"
26072                          || test ! -s conftest.err'
26073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26074   (eval $ac_try) 2>&5
26075   ac_status=$?
26076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26077   (exit $ac_status); }; } &&
26078          { ac_try='test -s conftest.$ac_objext'
26079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26080   (eval $ac_try) 2>&5
26081   ac_status=$?
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); }; }; then
26084    ac_cv_have_u_intxx_t="yes"
26085 else
26086   echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26088
26089  ac_cv_have_u_intxx_t="no"
26090
26091 fi
26092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26093
26094 fi
26095 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26096 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26097 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26098    cat >>confdefs.h <<\_ACEOF
26099 #define HAVE_U_INTXX_T 1
26100 _ACEOF
26101
26102    have_u_intxx_t=1
26103 fi
26104
26105 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26106 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26107 if test "${ac_cv_have_u_int64_t+set}" = set; then
26108   echo $ECHO_N "(cached) $ECHO_C" >&6
26109 else
26110
26111    cat >conftest.$ac_ext <<_ACEOF
26112 /* confdefs.h.  */
26113 _ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h.  */
26117  #include <sys/types.h>
26118 int
26119 main ()
26120 {
26121  u_int64_t a; a = 1;
26122   ;
26123   return 0;
26124 }
26125 _ACEOF
26126 rm -f conftest.$ac_objext
26127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26128   (eval $ac_compile) 2>conftest.er1
26129   ac_status=$?
26130   grep -v '^ *+' conftest.er1 >conftest.err
26131   rm -f conftest.er1
26132   cat conftest.err >&5
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); } &&
26135          { ac_try='test -z "$ac_c_werror_flag"
26136                          || test ! -s conftest.err'
26137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26138   (eval $ac_try) 2>&5
26139   ac_status=$?
26140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26141   (exit $ac_status); }; } &&
26142          { ac_try='test -s conftest.$ac_objext'
26143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26144   (eval $ac_try) 2>&5
26145   ac_status=$?
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); }; }; then
26148    ac_cv_have_u_int64_t="yes"
26149 else
26150   echo "$as_me: failed program was:" >&5
26151 sed 's/^/| /' conftest.$ac_ext >&5
26152
26153  ac_cv_have_u_int64_t="no"
26154
26155 fi
26156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26157
26158 fi
26159 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26160 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26161 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26162    cat >>confdefs.h <<\_ACEOF
26163 #define HAVE_U_INT64_T 1
26164 _ACEOF
26165
26166    have_u_int64_t=1
26167 fi
26168
26169 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26170            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26171 then
26172    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26173 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26174    cat >conftest.$ac_ext <<_ACEOF
26175 /* confdefs.h.  */
26176 _ACEOF
26177 cat confdefs.h >>conftest.$ac_ext
26178 cat >>conftest.$ac_ext <<_ACEOF
26179 /* end confdefs.h.  */
26180  #include <sys/bitypes.h>
26181 int
26182 main ()
26183 {
26184  int8_t a; int16_t b; int32_t c;
26185         u_int8_t e; u_int16_t f; u_int32_t g;
26186         a = b = c = e = f = g = 1;
26187   ;
26188   return 0;
26189 }
26190 _ACEOF
26191 rm -f conftest.$ac_objext
26192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26193   (eval $ac_compile) 2>conftest.er1
26194   ac_status=$?
26195   grep -v '^ *+' conftest.er1 >conftest.err
26196   rm -f conftest.er1
26197   cat conftest.err >&5
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); } &&
26200          { ac_try='test -z "$ac_c_werror_flag"
26201                          || test ! -s conftest.err'
26202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203   (eval $ac_try) 2>&5
26204   ac_status=$?
26205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206   (exit $ac_status); }; } &&
26207          { ac_try='test -s conftest.$ac_objext'
26208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209   (eval $ac_try) 2>&5
26210   ac_status=$?
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); }; }; then
26213    cat >>confdefs.h <<\_ACEOF
26214 #define HAVE_U_INTXX_T 1
26215 _ACEOF
26216
26217         cat >>confdefs.h <<\_ACEOF
26218 #define HAVE_INTXX_T 1
26219 _ACEOF
26220
26221         cat >>confdefs.h <<\_ACEOF
26222 #define HAVE_SYS_BITYPES_H 1
26223 _ACEOF
26224
26225         echo "$as_me:$LINENO: result: yes" >&5
26226 echo "${ECHO_T}yes" >&6
26227 else
26228   echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.$ac_ext >&5
26230
26231  echo "$as_me:$LINENO: result: no" >&5
26232 echo "${ECHO_T}no" >&6
26233
26234 fi
26235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26236 fi
26237
26238 if test -z "$have_u_intxx_t" ; then
26239    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26240 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26241 if test "${ac_cv_have_uintxx_t+set}" = set; then
26242   echo $ECHO_N "(cached) $ECHO_C" >&6
26243 else
26244
26245       cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251  #include <sys/types.h>
26252 int
26253 main ()
26254 {
26255  uint8_t a; uint16_t b;
26256            uint32_t c; a = b = c = 1;
26257   ;
26258   return 0;
26259 }
26260 _ACEOF
26261 rm -f conftest.$ac_objext
26262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26263   (eval $ac_compile) 2>conftest.er1
26264   ac_status=$?
26265   grep -v '^ *+' conftest.er1 >conftest.err
26266   rm -f conftest.er1
26267   cat conftest.err >&5
26268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269   (exit $ac_status); } &&
26270          { ac_try='test -z "$ac_c_werror_flag"
26271                          || test ! -s conftest.err'
26272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26273   (eval $ac_try) 2>&5
26274   ac_status=$?
26275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26276   (exit $ac_status); }; } &&
26277          { ac_try='test -s conftest.$ac_objext'
26278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26279   (eval $ac_try) 2>&5
26280   ac_status=$?
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); }; }; then
26283    ac_cv_have_uintxx_t="yes"
26284 else
26285   echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26287
26288  ac_cv_have_uintxx_t="no"
26289
26290 fi
26291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26292
26293 fi
26294 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26295 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26296    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26297       cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_UINTXX_T 1
26299 _ACEOF
26300
26301    fi
26302 fi
26303
26304 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26305           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26306 then
26307    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26308 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26309    cat >conftest.$ac_ext <<_ACEOF
26310 /* confdefs.h.  */
26311 _ACEOF
26312 cat confdefs.h >>conftest.$ac_ext
26313 cat >>conftest.$ac_ext <<_ACEOF
26314 /* end confdefs.h.  */
26315  #include <sys/bitypes.h>
26316 int
26317 main ()
26318 {
26319  int64_t a; u_int64_t b;
26320        a = b = 1;
26321   ;
26322   return 0;
26323 }
26324 _ACEOF
26325 rm -f conftest.$ac_objext
26326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26327   (eval $ac_compile) 2>conftest.er1
26328   ac_status=$?
26329   grep -v '^ *+' conftest.er1 >conftest.err
26330   rm -f conftest.er1
26331   cat conftest.err >&5
26332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333   (exit $ac_status); } &&
26334          { ac_try='test -z "$ac_c_werror_flag"
26335                          || test ! -s conftest.err'
26336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26337   (eval $ac_try) 2>&5
26338   ac_status=$?
26339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26340   (exit $ac_status); }; } &&
26341          { ac_try='test -s conftest.$ac_objext'
26342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26343   (eval $ac_try) 2>&5
26344   ac_status=$?
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); }; }; then
26347    cat >>confdefs.h <<\_ACEOF
26348 #define HAVE_U_INT64_T 1
26349 _ACEOF
26350
26351        cat >>confdefs.h <<\_ACEOF
26352 #define HAVE_INT64_T 1
26353 _ACEOF
26354
26355        echo "$as_me:$LINENO: result: yes" >&5
26356 echo "${ECHO_T}yes" >&6
26357 else
26358   echo "$as_me: failed program was:" >&5
26359 sed 's/^/| /' conftest.$ac_ext >&5
26360
26361  echo "$as_me:$LINENO: result: no" >&5
26362 echo "${ECHO_T}no" >&6
26363
26364 fi
26365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366 fi
26367
26368 if (test -z "$have_uintxx_t" && \
26369           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26370 then
26371    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26372 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26373    cat >conftest.$ac_ext <<_ACEOF
26374 /* confdefs.h.  */
26375 _ACEOF
26376 cat confdefs.h >>conftest.$ac_ext
26377 cat >>conftest.$ac_ext <<_ACEOF
26378 /* end confdefs.h.  */
26379  #include <sys/bitypes.h>
26380 int
26381 main ()
26382 {
26383  uint8_t a; uint16_t b;
26384           uint32_t c; a = b = c = 1;
26385   ;
26386   return 0;
26387 }
26388 _ACEOF
26389 rm -f conftest.$ac_objext
26390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26391   (eval $ac_compile) 2>conftest.er1
26392   ac_status=$?
26393   grep -v '^ *+' conftest.er1 >conftest.err
26394   rm -f conftest.er1
26395   cat conftest.err >&5
26396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26397   (exit $ac_status); } &&
26398          { ac_try='test -z "$ac_c_werror_flag"
26399                          || test ! -s conftest.err'
26400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26401   (eval $ac_try) 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; } &&
26405          { ac_try='test -s conftest.$ac_objext'
26406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407   (eval $ac_try) 2>&5
26408   ac_status=$?
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); }; }; then
26411    cat >>confdefs.h <<\_ACEOF
26412 #define HAVE_UINTXX_T 1
26413 _ACEOF
26414
26415        echo "$as_me:$LINENO: result: yes" >&5
26416 echo "${ECHO_T}yes" >&6
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421  echo "$as_me:$LINENO: result: no" >&5
26422 echo "${ECHO_T}no" >&6
26423
26424 fi
26425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26426
26427 fi
26428
26429
26430
26431
26432
26433
26434
26435
26436
26437
26438
26439
26440
26441
26442
26443
26444
26445 for ac_func in \
26446         fork \
26447         getcwd \
26448         gethostname \
26449         getpid \
26450         gettimeofday \
26451         setpgid \
26452         setpgrp \
26453         setsid \
26454         signal \
26455         strerror \
26456         strncmp \
26457         strncpy \
26458         vfprintf \
26459
26460 do
26461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26462 echo "$as_me:$LINENO: checking for $ac_func" >&5
26463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26464 if eval "test \"\${$as_ac_var+set}\" = set"; then
26465   echo $ECHO_N "(cached) $ECHO_C" >&6
26466 else
26467   cat >conftest.$ac_ext <<_ACEOF
26468 /* confdefs.h.  */
26469 _ACEOF
26470 cat confdefs.h >>conftest.$ac_ext
26471 cat >>conftest.$ac_ext <<_ACEOF
26472 /* end confdefs.h.  */
26473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26474    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26475 #define $ac_func innocuous_$ac_func
26476
26477 /* System header to define __stub macros and hopefully few prototypes,
26478     which can conflict with char $ac_func (); below.
26479     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26480     <limits.h> exists even on freestanding compilers.  */
26481
26482 #ifdef __STDC__
26483 # include <limits.h>
26484 #else
26485 # include <assert.h>
26486 #endif
26487
26488 #undef $ac_func
26489
26490 /* Override any gcc2 internal prototype to avoid an error.  */
26491 #ifdef __cplusplus
26492 extern "C"
26493 {
26494 #endif
26495 /* We use char because int might match the return type of a gcc2
26496    builtin and then its argument prototype would still apply.  */
26497 char $ac_func ();
26498 /* The GNU C library defines this for functions which it implements
26499     to always fail with ENOSYS.  Some functions are actually named
26500     something starting with __ and the normal name is an alias.  */
26501 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26502 choke me
26503 #else
26504 char (*f) () = $ac_func;
26505 #endif
26506 #ifdef __cplusplus
26507 }
26508 #endif
26509
26510 int
26511 main ()
26512 {
26513 return f != $ac_func;
26514   ;
26515   return 0;
26516 }
26517 _ACEOF
26518 rm -f conftest.$ac_objext conftest$ac_exeext
26519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26520   (eval $ac_link) 2>conftest.er1
26521   ac_status=$?
26522   grep -v '^ *+' conftest.er1 >conftest.err
26523   rm -f conftest.er1
26524   cat conftest.err >&5
26525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26526   (exit $ac_status); } &&
26527          { ac_try='test -z "$ac_c_werror_flag"
26528                          || test ! -s conftest.err'
26529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26530   (eval $ac_try) 2>&5
26531   ac_status=$?
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); }; } &&
26534          { ac_try='test -s conftest$ac_exeext'
26535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26536   (eval $ac_try) 2>&5
26537   ac_status=$?
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); }; }; then
26540   eval "$as_ac_var=yes"
26541 else
26542   echo "$as_me: failed program was:" >&5
26543 sed 's/^/| /' conftest.$ac_ext >&5
26544
26545 eval "$as_ac_var=no"
26546 fi
26547 rm -f conftest.err conftest.$ac_objext \
26548       conftest$ac_exeext conftest.$ac_ext
26549 fi
26550 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26551 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26552 if test `eval echo '${'$as_ac_var'}'` = yes; then
26553   cat >>confdefs.h <<_ACEOF
26554 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26555 _ACEOF
26556
26557 else
26558   echo 'configure: cannot find needed function.'; exit 1
26559
26560 fi
26561 done
26562
26563
26564
26565 for ac_func in fchdir
26566 do
26567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26568 echo "$as_me:$LINENO: checking for $ac_func" >&5
26569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26570 if eval "test \"\${$as_ac_var+set}\" = set"; then
26571   echo $ECHO_N "(cached) $ECHO_C" >&6
26572 else
26573   cat >conftest.$ac_ext <<_ACEOF
26574 /* confdefs.h.  */
26575 _ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h.  */
26579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26581 #define $ac_func innocuous_$ac_func
26582
26583 /* System header to define __stub macros and hopefully few prototypes,
26584     which can conflict with char $ac_func (); below.
26585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26586     <limits.h> exists even on freestanding compilers.  */
26587
26588 #ifdef __STDC__
26589 # include <limits.h>
26590 #else
26591 # include <assert.h>
26592 #endif
26593
26594 #undef $ac_func
26595
26596 /* Override any gcc2 internal prototype to avoid an error.  */
26597 #ifdef __cplusplus
26598 extern "C"
26599 {
26600 #endif
26601 /* We use char because int might match the return type of a gcc2
26602    builtin and then its argument prototype would still apply.  */
26603 char $ac_func ();
26604 /* The GNU C library defines this for functions which it implements
26605     to always fail with ENOSYS.  Some functions are actually named
26606     something starting with __ and the normal name is an alias.  */
26607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26608 choke me
26609 #else
26610 char (*f) () = $ac_func;
26611 #endif
26612 #ifdef __cplusplus
26613 }
26614 #endif
26615
26616 int
26617 main ()
26618 {
26619 return f != $ac_func;
26620   ;
26621   return 0;
26622 }
26623 _ACEOF
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26626   (eval $ac_link) 2>conftest.er1
26627   ac_status=$?
26628   grep -v '^ *+' conftest.er1 >conftest.err
26629   rm -f conftest.er1
26630   cat conftest.err >&5
26631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632   (exit $ac_status); } &&
26633          { ac_try='test -z "$ac_c_werror_flag"
26634                          || test ! -s conftest.err'
26635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26636   (eval $ac_try) 2>&5
26637   ac_status=$?
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); }; } &&
26640          { ac_try='test -s conftest$ac_exeext'
26641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26642   (eval $ac_try) 2>&5
26643   ac_status=$?
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); }; }; then
26646   eval "$as_ac_var=yes"
26647 else
26648   echo "$as_me: failed program was:" >&5
26649 sed 's/^/| /' conftest.$ac_ext >&5
26650
26651 eval "$as_ac_var=no"
26652 fi
26653 rm -f conftest.err conftest.$ac_objext \
26654       conftest$ac_exeext conftest.$ac_ext
26655 fi
26656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26658 if test `eval echo '${'$as_ac_var'}'` = yes; then
26659   cat >>confdefs.h <<_ACEOF
26660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26661 _ACEOF
26662  cat >>confdefs.h <<\_ACEOF
26663 #define HAVE_FCHDIR 1
26664 _ACEOF
26665
26666 fi
26667 done
26668
26669
26670 for ac_func in strtoll
26671 do
26672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26673 echo "$as_me:$LINENO: checking for $ac_func" >&5
26674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26675 if eval "test \"\${$as_ac_var+set}\" = set"; then
26676   echo $ECHO_N "(cached) $ECHO_C" >&6
26677 else
26678   cat >conftest.$ac_ext <<_ACEOF
26679 /* confdefs.h.  */
26680 _ACEOF
26681 cat confdefs.h >>conftest.$ac_ext
26682 cat >>conftest.$ac_ext <<_ACEOF
26683 /* end confdefs.h.  */
26684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26686 #define $ac_func innocuous_$ac_func
26687
26688 /* System header to define __stub macros and hopefully few prototypes,
26689     which can conflict with char $ac_func (); below.
26690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26691     <limits.h> exists even on freestanding compilers.  */
26692
26693 #ifdef __STDC__
26694 # include <limits.h>
26695 #else
26696 # include <assert.h>
26697 #endif
26698
26699 #undef $ac_func
26700
26701 /* Override any gcc2 internal prototype to avoid an error.  */
26702 #ifdef __cplusplus
26703 extern "C"
26704 {
26705 #endif
26706 /* We use char because int might match the return type of a gcc2
26707    builtin and then its argument prototype would still apply.  */
26708 char $ac_func ();
26709 /* The GNU C library defines this for functions which it implements
26710     to always fail with ENOSYS.  Some functions are actually named
26711     something starting with __ and the normal name is an alias.  */
26712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26713 choke me
26714 #else
26715 char (*f) () = $ac_func;
26716 #endif
26717 #ifdef __cplusplus
26718 }
26719 #endif
26720
26721 int
26722 main ()
26723 {
26724 return f != $ac_func;
26725   ;
26726   return 0;
26727 }
26728 _ACEOF
26729 rm -f conftest.$ac_objext conftest$ac_exeext
26730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26731   (eval $ac_link) 2>conftest.er1
26732   ac_status=$?
26733   grep -v '^ *+' conftest.er1 >conftest.err
26734   rm -f conftest.er1
26735   cat conftest.err >&5
26736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737   (exit $ac_status); } &&
26738          { ac_try='test -z "$ac_c_werror_flag"
26739                          || test ! -s conftest.err'
26740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26741   (eval $ac_try) 2>&5
26742   ac_status=$?
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); }; } &&
26745          { ac_try='test -s conftest$ac_exeext'
26746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26747   (eval $ac_try) 2>&5
26748   ac_status=$?
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); }; }; then
26751   eval "$as_ac_var=yes"
26752 else
26753   echo "$as_me: failed program was:" >&5
26754 sed 's/^/| /' conftest.$ac_ext >&5
26755
26756 eval "$as_ac_var=no"
26757 fi
26758 rm -f conftest.err conftest.$ac_objext \
26759       conftest$ac_exeext conftest.$ac_ext
26760 fi
26761 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26762 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26763 if test `eval echo '${'$as_ac_var'}'` = yes; then
26764   cat >>confdefs.h <<_ACEOF
26765 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26766 _ACEOF
26767  cat >>confdefs.h <<\_ACEOF
26768 #define HAVE_STRTOLL 1
26769 _ACEOF
26770
26771 fi
26772 done
26773
26774
26775 for ac_func in posix_fadvise
26776 do
26777 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26778 echo "$as_me:$LINENO: checking for $ac_func" >&5
26779 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26780 if eval "test \"\${$as_ac_var+set}\" = set"; then
26781   echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783   cat >conftest.$ac_ext <<_ACEOF
26784 /* confdefs.h.  */
26785 _ACEOF
26786 cat confdefs.h >>conftest.$ac_ext
26787 cat >>conftest.$ac_ext <<_ACEOF
26788 /* end confdefs.h.  */
26789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26790    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26791 #define $ac_func innocuous_$ac_func
26792
26793 /* System header to define __stub macros and hopefully few prototypes,
26794     which can conflict with char $ac_func (); below.
26795     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26796     <limits.h> exists even on freestanding compilers.  */
26797
26798 #ifdef __STDC__
26799 # include <limits.h>
26800 #else
26801 # include <assert.h>
26802 #endif
26803
26804 #undef $ac_func
26805
26806 /* Override any gcc2 internal prototype to avoid an error.  */
26807 #ifdef __cplusplus
26808 extern "C"
26809 {
26810 #endif
26811 /* We use char because int might match the return type of a gcc2
26812    builtin and then its argument prototype would still apply.  */
26813 char $ac_func ();
26814 /* The GNU C library defines this for functions which it implements
26815     to always fail with ENOSYS.  Some functions are actually named
26816     something starting with __ and the normal name is an alias.  */
26817 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26818 choke me
26819 #else
26820 char (*f) () = $ac_func;
26821 #endif
26822 #ifdef __cplusplus
26823 }
26824 #endif
26825
26826 int
26827 main ()
26828 {
26829 return f != $ac_func;
26830   ;
26831   return 0;
26832 }
26833 _ACEOF
26834 rm -f conftest.$ac_objext conftest$ac_exeext
26835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26836   (eval $ac_link) 2>conftest.er1
26837   ac_status=$?
26838   grep -v '^ *+' conftest.er1 >conftest.err
26839   rm -f conftest.er1
26840   cat conftest.err >&5
26841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26842   (exit $ac_status); } &&
26843          { ac_try='test -z "$ac_c_werror_flag"
26844                          || test ! -s conftest.err'
26845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846   (eval $ac_try) 2>&5
26847   ac_status=$?
26848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849   (exit $ac_status); }; } &&
26850          { ac_try='test -s conftest$ac_exeext'
26851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26852   (eval $ac_try) 2>&5
26853   ac_status=$?
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); }; }; then
26856   eval "$as_ac_var=yes"
26857 else
26858   echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26860
26861 eval "$as_ac_var=no"
26862 fi
26863 rm -f conftest.err conftest.$ac_objext \
26864       conftest$ac_exeext conftest.$ac_ext
26865 fi
26866 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26867 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26868 if test `eval echo '${'$as_ac_var'}'` = yes; then
26869   cat >>confdefs.h <<_ACEOF
26870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26871 _ACEOF
26872
26873 fi
26874 done
26875
26876
26877 for ac_func in fdatasync
26878 do
26879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26880 echo "$as_me:$LINENO: checking for $ac_func" >&5
26881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26882 if eval "test \"\${$as_ac_var+set}\" = set"; then
26883   echo $ECHO_N "(cached) $ECHO_C" >&6
26884 else
26885   cat >conftest.$ac_ext <<_ACEOF
26886 /* confdefs.h.  */
26887 _ACEOF
26888 cat confdefs.h >>conftest.$ac_ext
26889 cat >>conftest.$ac_ext <<_ACEOF
26890 /* end confdefs.h.  */
26891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26893 #define $ac_func innocuous_$ac_func
26894
26895 /* System header to define __stub macros and hopefully few prototypes,
26896     which can conflict with char $ac_func (); below.
26897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26898     <limits.h> exists even on freestanding compilers.  */
26899
26900 #ifdef __STDC__
26901 # include <limits.h>
26902 #else
26903 # include <assert.h>
26904 #endif
26905
26906 #undef $ac_func
26907
26908 /* Override any gcc2 internal prototype to avoid an error.  */
26909 #ifdef __cplusplus
26910 extern "C"
26911 {
26912 #endif
26913 /* We use char because int might match the return type of a gcc2
26914    builtin and then its argument prototype would still apply.  */
26915 char $ac_func ();
26916 /* The GNU C library defines this for functions which it implements
26917     to always fail with ENOSYS.  Some functions are actually named
26918     something starting with __ and the normal name is an alias.  */
26919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26920 choke me
26921 #else
26922 char (*f) () = $ac_func;
26923 #endif
26924 #ifdef __cplusplus
26925 }
26926 #endif
26927
26928 int
26929 main ()
26930 {
26931 return f != $ac_func;
26932   ;
26933   return 0;
26934 }
26935 _ACEOF
26936 rm -f conftest.$ac_objext conftest$ac_exeext
26937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938   (eval $ac_link) 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } &&
26945          { ac_try='test -z "$ac_c_werror_flag"
26946                          || test ! -s conftest.err'
26947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948   (eval $ac_try) 2>&5
26949   ac_status=$?
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); }; } &&
26952          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26958   eval "$as_ac_var=yes"
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963 eval "$as_ac_var=no"
26964 fi
26965 rm -f conftest.err conftest.$ac_objext \
26966       conftest$ac_exeext conftest.$ac_ext
26967 fi
26968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26969 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971   cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26973 _ACEOF
26974
26975 fi
26976 done
26977
26978
26979
26980 for ac_func in chflags
26981 do
26982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26983 echo "$as_me:$LINENO: checking for $ac_func" >&5
26984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26985 if eval "test \"\${$as_ac_var+set}\" = set"; then
26986   echo $ECHO_N "(cached) $ECHO_C" >&6
26987 else
26988   cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26995    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26996 #define $ac_func innocuous_$ac_func
26997
26998 /* System header to define __stub macros and hopefully few prototypes,
26999     which can conflict with char $ac_func (); below.
27000     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27001     <limits.h> exists even on freestanding compilers.  */
27002
27003 #ifdef __STDC__
27004 # include <limits.h>
27005 #else
27006 # include <assert.h>
27007 #endif
27008
27009 #undef $ac_func
27010
27011 /* Override any gcc2 internal prototype to avoid an error.  */
27012 #ifdef __cplusplus
27013 extern "C"
27014 {
27015 #endif
27016 /* We use char because int might match the return type of a gcc2
27017    builtin and then its argument prototype would still apply.  */
27018 char $ac_func ();
27019 /* The GNU C library defines this for functions which it implements
27020     to always fail with ENOSYS.  Some functions are actually named
27021     something starting with __ and the normal name is an alias.  */
27022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27023 choke me
27024 #else
27025 char (*f) () = $ac_func;
27026 #endif
27027 #ifdef __cplusplus
27028 }
27029 #endif
27030
27031 int
27032 main ()
27033 {
27034 return f != $ac_func;
27035   ;
27036   return 0;
27037 }
27038 _ACEOF
27039 rm -f conftest.$ac_objext conftest$ac_exeext
27040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27041   (eval $ac_link) 2>conftest.er1
27042   ac_status=$?
27043   grep -v '^ *+' conftest.er1 >conftest.err
27044   rm -f conftest.er1
27045   cat conftest.err >&5
27046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27047   (exit $ac_status); } &&
27048          { ac_try='test -z "$ac_c_werror_flag"
27049                          || test ! -s conftest.err'
27050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051   (eval $ac_try) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; } &&
27055          { ac_try='test -s conftest$ac_exeext'
27056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057   (eval $ac_try) 2>&5
27058   ac_status=$?
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); }; }; then
27061   eval "$as_ac_var=yes"
27062 else
27063   echo "$as_me: failed program was:" >&5
27064 sed 's/^/| /' conftest.$ac_ext >&5
27065
27066 eval "$as_ac_var=no"
27067 fi
27068 rm -f conftest.err conftest.$ac_objext \
27069       conftest$ac_exeext conftest.$ac_ext
27070 fi
27071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27073 if test `eval echo '${'$as_ac_var'}'` = yes; then
27074   cat >>confdefs.h <<_ACEOF
27075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27076 _ACEOF
27077
27078 fi
27079 done
27080
27081
27082
27083
27084
27085
27086 for ac_func in snprintf vsnprintf gethostid fseeko
27087 do
27088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27089 echo "$as_me:$LINENO: checking for $ac_func" >&5
27090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27091 if eval "test \"\${$as_ac_var+set}\" = set"; then
27092   echo $ECHO_N "(cached) $ECHO_C" >&6
27093 else
27094   cat >conftest.$ac_ext <<_ACEOF
27095 /* confdefs.h.  */
27096 _ACEOF
27097 cat confdefs.h >>conftest.$ac_ext
27098 cat >>conftest.$ac_ext <<_ACEOF
27099 /* end confdefs.h.  */
27100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27102 #define $ac_func innocuous_$ac_func
27103
27104 /* System header to define __stub macros and hopefully few prototypes,
27105     which can conflict with char $ac_func (); below.
27106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27107     <limits.h> exists even on freestanding compilers.  */
27108
27109 #ifdef __STDC__
27110 # include <limits.h>
27111 #else
27112 # include <assert.h>
27113 #endif
27114
27115 #undef $ac_func
27116
27117 /* Override any gcc2 internal prototype to avoid an error.  */
27118 #ifdef __cplusplus
27119 extern "C"
27120 {
27121 #endif
27122 /* We use char because int might match the return type of a gcc2
27123    builtin and then its argument prototype would still apply.  */
27124 char $ac_func ();
27125 /* The GNU C library defines this for functions which it implements
27126     to always fail with ENOSYS.  Some functions are actually named
27127     something starting with __ and the normal name is an alias.  */
27128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27129 choke me
27130 #else
27131 char (*f) () = $ac_func;
27132 #endif
27133 #ifdef __cplusplus
27134 }
27135 #endif
27136
27137 int
27138 main ()
27139 {
27140 return f != $ac_func;
27141   ;
27142   return 0;
27143 }
27144 _ACEOF
27145 rm -f conftest.$ac_objext conftest$ac_exeext
27146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27147   (eval $ac_link) 2>conftest.er1
27148   ac_status=$?
27149   grep -v '^ *+' conftest.er1 >conftest.err
27150   rm -f conftest.er1
27151   cat conftest.err >&5
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); } &&
27154          { ac_try='test -z "$ac_c_werror_flag"
27155                          || test ! -s conftest.err'
27156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27157   (eval $ac_try) 2>&5
27158   ac_status=$?
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); }; } &&
27161          { ac_try='test -s conftest$ac_exeext'
27162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27163   (eval $ac_try) 2>&5
27164   ac_status=$?
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); }; }; then
27167   eval "$as_ac_var=yes"
27168 else
27169   echo "$as_me: failed program was:" >&5
27170 sed 's/^/| /' conftest.$ac_ext >&5
27171
27172 eval "$as_ac_var=no"
27173 fi
27174 rm -f conftest.err conftest.$ac_objext \
27175       conftest$ac_exeext conftest.$ac_ext
27176 fi
27177 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27178 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27179 if test `eval echo '${'$as_ac_var'}'` = yes; then
27180   cat >>confdefs.h <<_ACEOF
27181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27182 _ACEOF
27183
27184 fi
27185 done
27186
27187
27188 echo "$as_me:$LINENO: checking for va_copy" >&5
27189 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27190 if test "${ba_cv_va_copy+set}" = set; then
27191   echo $ECHO_N "(cached) $ECHO_C" >&6
27192 else
27193   cat >conftest.$ac_ext <<_ACEOF
27194 /* confdefs.h.  */
27195 _ACEOF
27196 cat confdefs.h >>conftest.$ac_ext
27197 cat >>conftest.$ac_ext <<_ACEOF
27198 /* end confdefs.h.  */
27199
27200 #include <stdarg.h>
27201 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27202 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27203
27204 int
27205 main ()
27206 {
27207 call_use_va_copy(1,2,3)
27208   ;
27209   return 0;
27210 }
27211 _ACEOF
27212 rm -f conftest.$ac_objext conftest$ac_exeext
27213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27214   (eval $ac_link) 2>conftest.er1
27215   ac_status=$?
27216   grep -v '^ *+' conftest.er1 >conftest.err
27217   rm -f conftest.er1
27218   cat conftest.err >&5
27219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220   (exit $ac_status); } &&
27221          { ac_try='test -z "$ac_c_werror_flag"
27222                          || test ! -s conftest.err'
27223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224   (eval $ac_try) 2>&5
27225   ac_status=$?
27226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227   (exit $ac_status); }; } &&
27228          { ac_try='test -s conftest$ac_exeext'
27229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230   (eval $ac_try) 2>&5
27231   ac_status=$?
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); }; }; then
27234   ba_cv_va_copy=yes
27235 else
27236   echo "$as_me: failed program was:" >&5
27237 sed 's/^/| /' conftest.$ac_ext >&5
27238
27239 ba_cv_va_copy=no
27240 fi
27241 rm -f conftest.err conftest.$ac_objext \
27242       conftest$ac_exeext conftest.$ac_ext
27243 fi
27244 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27245 echo "${ECHO_T}$ba_cv_va_copy" >&6
27246 test $ba_cv_va_copy = yes &&
27247 cat >>confdefs.h <<\_ACEOF
27248 #define HAVE_VA_COPY 1
27249 _ACEOF
27250
27251
27252
27253
27254
27255
27256
27257 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27258 do
27259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27260 echo "$as_me:$LINENO: checking for $ac_func" >&5
27261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27262 if eval "test \"\${$as_ac_var+set}\" = set"; then
27263   echo $ECHO_N "(cached) $ECHO_C" >&6
27264 else
27265   cat >conftest.$ac_ext <<_ACEOF
27266 /* confdefs.h.  */
27267 _ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h.  */
27271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27273 #define $ac_func innocuous_$ac_func
27274
27275 /* System header to define __stub macros and hopefully few prototypes,
27276     which can conflict with char $ac_func (); below.
27277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27278     <limits.h> exists even on freestanding compilers.  */
27279
27280 #ifdef __STDC__
27281 # include <limits.h>
27282 #else
27283 # include <assert.h>
27284 #endif
27285
27286 #undef $ac_func
27287
27288 /* Override any gcc2 internal prototype to avoid an error.  */
27289 #ifdef __cplusplus
27290 extern "C"
27291 {
27292 #endif
27293 /* We use char because int might match the return type of a gcc2
27294    builtin and then its argument prototype would still apply.  */
27295 char $ac_func ();
27296 /* The GNU C library defines this for functions which it implements
27297     to always fail with ENOSYS.  Some functions are actually named
27298     something starting with __ and the normal name is an alias.  */
27299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27300 choke me
27301 #else
27302 char (*f) () = $ac_func;
27303 #endif
27304 #ifdef __cplusplus
27305 }
27306 #endif
27307
27308 int
27309 main ()
27310 {
27311 return f != $ac_func;
27312   ;
27313   return 0;
27314 }
27315 _ACEOF
27316 rm -f conftest.$ac_objext conftest$ac_exeext
27317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27318   (eval $ac_link) 2>conftest.er1
27319   ac_status=$?
27320   grep -v '^ *+' conftest.er1 >conftest.err
27321   rm -f conftest.er1
27322   cat conftest.err >&5
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); } &&
27325          { ac_try='test -z "$ac_c_werror_flag"
27326                          || test ! -s conftest.err'
27327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27328   (eval $ac_try) 2>&5
27329   ac_status=$?
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); }; } &&
27332          { ac_try='test -s conftest$ac_exeext'
27333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27334   (eval $ac_try) 2>&5
27335   ac_status=$?
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); }; }; then
27338   eval "$as_ac_var=yes"
27339 else
27340   echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343 eval "$as_ac_var=no"
27344 fi
27345 rm -f conftest.err conftest.$ac_objext \
27346       conftest$ac_exeext conftest.$ac_ext
27347 fi
27348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27350 if test `eval echo '${'$as_ac_var'}'` = yes; then
27351   cat >>confdefs.h <<_ACEOF
27352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27353 _ACEOF
27354
27355 fi
27356 done
27357
27358
27359 # If resolver functions are not in libc check for -lnsl or -lresolv.
27360 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27361 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27362 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27363   echo $ECHO_N "(cached) $ECHO_C" >&6
27364 else
27365   cat >conftest.$ac_ext <<_ACEOF
27366 /* confdefs.h.  */
27367 _ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h.  */
27371 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27373 #define gethostbyname_r innocuous_gethostbyname_r
27374
27375 /* System header to define __stub macros and hopefully few prototypes,
27376     which can conflict with char gethostbyname_r (); below.
27377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27378     <limits.h> exists even on freestanding compilers.  */
27379
27380 #ifdef __STDC__
27381 # include <limits.h>
27382 #else
27383 # include <assert.h>
27384 #endif
27385
27386 #undef gethostbyname_r
27387
27388 /* Override any gcc2 internal prototype to avoid an error.  */
27389 #ifdef __cplusplus
27390 extern "C"
27391 {
27392 #endif
27393 /* We use char because int might match the return type of a gcc2
27394    builtin and then its argument prototype would still apply.  */
27395 char gethostbyname_r ();
27396 /* The GNU C library defines this for functions which it implements
27397     to always fail with ENOSYS.  Some functions are actually named
27398     something starting with __ and the normal name is an alias.  */
27399 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27400 choke me
27401 #else
27402 char (*f) () = gethostbyname_r;
27403 #endif
27404 #ifdef __cplusplus
27405 }
27406 #endif
27407
27408 int
27409 main ()
27410 {
27411 return f != gethostbyname_r;
27412   ;
27413   return 0;
27414 }
27415 _ACEOF
27416 rm -f conftest.$ac_objext conftest$ac_exeext
27417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27418   (eval $ac_link) 2>conftest.er1
27419   ac_status=$?
27420   grep -v '^ *+' conftest.er1 >conftest.err
27421   rm -f conftest.er1
27422   cat conftest.err >&5
27423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27424   (exit $ac_status); } &&
27425          { ac_try='test -z "$ac_c_werror_flag"
27426                          || test ! -s conftest.err'
27427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27428   (eval $ac_try) 2>&5
27429   ac_status=$?
27430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27431   (exit $ac_status); }; } &&
27432          { ac_try='test -s conftest$ac_exeext'
27433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27434   (eval $ac_try) 2>&5
27435   ac_status=$?
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); }; }; then
27438   ac_cv_func_gethostbyname_r=yes
27439 else
27440   echo "$as_me: failed program was:" >&5
27441 sed 's/^/| /' conftest.$ac_ext >&5
27442
27443 ac_cv_func_gethostbyname_r=no
27444 fi
27445 rm -f conftest.err conftest.$ac_objext \
27446       conftest$ac_exeext conftest.$ac_ext
27447 fi
27448 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27449 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27450 if test $ac_cv_func_gethostbyname_r = yes; then
27451   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27452 echo "${ECHO_T}using libc's resolver" >&6
27453 else
27454
27455 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27456 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27457 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27458   echo $ECHO_N "(cached) $ECHO_C" >&6
27459 else
27460   ac_check_lib_save_LIBS=$LIBS
27461 LIBS="-lnsl  $LIBS"
27462 cat >conftest.$ac_ext <<_ACEOF
27463 /* confdefs.h.  */
27464 _ACEOF
27465 cat confdefs.h >>conftest.$ac_ext
27466 cat >>conftest.$ac_ext <<_ACEOF
27467 /* end confdefs.h.  */
27468
27469 /* Override any gcc2 internal prototype to avoid an error.  */
27470 #ifdef __cplusplus
27471 extern "C"
27472 #endif
27473 /* We use char because int might match the return type of a gcc2
27474    builtin and then its argument prototype would still apply.  */
27475 char gethostbyname_r ();
27476 int
27477 main ()
27478 {
27479 gethostbyname_r ();
27480   ;
27481   return 0;
27482 }
27483 _ACEOF
27484 rm -f conftest.$ac_objext conftest$ac_exeext
27485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27486   (eval $ac_link) 2>conftest.er1
27487   ac_status=$?
27488   grep -v '^ *+' conftest.er1 >conftest.err
27489   rm -f conftest.er1
27490   cat conftest.err >&5
27491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492   (exit $ac_status); } &&
27493          { ac_try='test -z "$ac_c_werror_flag"
27494                          || test ! -s conftest.err'
27495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27496   (eval $ac_try) 2>&5
27497   ac_status=$?
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); }; } &&
27500          { ac_try='test -s conftest$ac_exeext'
27501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27502   (eval $ac_try) 2>&5
27503   ac_status=$?
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); }; }; then
27506   ac_cv_lib_nsl_gethostbyname_r=yes
27507 else
27508   echo "$as_me: failed program was:" >&5
27509 sed 's/^/| /' conftest.$ac_ext >&5
27510
27511 ac_cv_lib_nsl_gethostbyname_r=no
27512 fi
27513 rm -f conftest.err conftest.$ac_objext \
27514       conftest$ac_exeext conftest.$ac_ext
27515 LIBS=$ac_check_lib_save_LIBS
27516 fi
27517 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27518 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27519 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27520   cat >>confdefs.h <<_ACEOF
27521 #define HAVE_LIBNSL 1
27522 _ACEOF
27523
27524   LIBS="-lnsl $LIBS"
27525
27526 fi
27527
27528
27529 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27530 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27531 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27532   echo $ECHO_N "(cached) $ECHO_C" >&6
27533 else
27534   ac_check_lib_save_LIBS=$LIBS
27535 LIBS="-lresolv  $LIBS"
27536 cat >conftest.$ac_ext <<_ACEOF
27537 /* confdefs.h.  */
27538 _ACEOF
27539 cat confdefs.h >>conftest.$ac_ext
27540 cat >>conftest.$ac_ext <<_ACEOF
27541 /* end confdefs.h.  */
27542
27543 /* Override any gcc2 internal prototype to avoid an error.  */
27544 #ifdef __cplusplus
27545 extern "C"
27546 #endif
27547 /* We use char because int might match the return type of a gcc2
27548    builtin and then its argument prototype would still apply.  */
27549 char gethostbyname_r ();
27550 int
27551 main ()
27552 {
27553 gethostbyname_r ();
27554   ;
27555   return 0;
27556 }
27557 _ACEOF
27558 rm -f conftest.$ac_objext conftest$ac_exeext
27559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27560   (eval $ac_link) 2>conftest.er1
27561   ac_status=$?
27562   grep -v '^ *+' conftest.er1 >conftest.err
27563   rm -f conftest.er1
27564   cat conftest.err >&5
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); } &&
27567          { ac_try='test -z "$ac_c_werror_flag"
27568                          || test ! -s conftest.err'
27569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570   (eval $ac_try) 2>&5
27571   ac_status=$?
27572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573   (exit $ac_status); }; } &&
27574          { ac_try='test -s conftest$ac_exeext'
27575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27576   (eval $ac_try) 2>&5
27577   ac_status=$?
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); }; }; then
27580   ac_cv_lib_resolv_gethostbyname_r=yes
27581 else
27582   echo "$as_me: failed program was:" >&5
27583 sed 's/^/| /' conftest.$ac_ext >&5
27584
27585 ac_cv_lib_resolv_gethostbyname_r=no
27586 fi
27587 rm -f conftest.err conftest.$ac_objext \
27588       conftest$ac_exeext conftest.$ac_ext
27589 LIBS=$ac_check_lib_save_LIBS
27590 fi
27591 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27592 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27593 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27594   cat >>confdefs.h <<_ACEOF
27595 #define HAVE_LIBRESOLV 1
27596 _ACEOF
27597
27598   LIBS="-lresolv $LIBS"
27599
27600 fi
27601
27602 fi
27603
27604
27605
27606
27607
27608 for ac_func in inet_pton
27609 do
27610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27611 echo "$as_me:$LINENO: checking for $ac_func" >&5
27612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27613 if eval "test \"\${$as_ac_var+set}\" = set"; then
27614   echo $ECHO_N "(cached) $ECHO_C" >&6
27615 else
27616   cat >conftest.$ac_ext <<_ACEOF
27617 /* confdefs.h.  */
27618 _ACEOF
27619 cat confdefs.h >>conftest.$ac_ext
27620 cat >>conftest.$ac_ext <<_ACEOF
27621 /* end confdefs.h.  */
27622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27624 #define $ac_func innocuous_$ac_func
27625
27626 /* System header to define __stub macros and hopefully few prototypes,
27627     which can conflict with char $ac_func (); below.
27628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27629     <limits.h> exists even on freestanding compilers.  */
27630
27631 #ifdef __STDC__
27632 # include <limits.h>
27633 #else
27634 # include <assert.h>
27635 #endif
27636
27637 #undef $ac_func
27638
27639 /* Override any gcc2 internal prototype to avoid an error.  */
27640 #ifdef __cplusplus
27641 extern "C"
27642 {
27643 #endif
27644 /* We use char because int might match the return type of a gcc2
27645    builtin and then its argument prototype would still apply.  */
27646 char $ac_func ();
27647 /* The GNU C library defines this for functions which it implements
27648     to always fail with ENOSYS.  Some functions are actually named
27649     something starting with __ and the normal name is an alias.  */
27650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27651 choke me
27652 #else
27653 char (*f) () = $ac_func;
27654 #endif
27655 #ifdef __cplusplus
27656 }
27657 #endif
27658
27659 int
27660 main ()
27661 {
27662 return f != $ac_func;
27663   ;
27664   return 0;
27665 }
27666 _ACEOF
27667 rm -f conftest.$ac_objext conftest$ac_exeext
27668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27669   (eval $ac_link) 2>conftest.er1
27670   ac_status=$?
27671   grep -v '^ *+' conftest.er1 >conftest.err
27672   rm -f conftest.er1
27673   cat conftest.err >&5
27674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27675   (exit $ac_status); } &&
27676          { ac_try='test -z "$ac_c_werror_flag"
27677                          || test ! -s conftest.err'
27678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27679   (eval $ac_try) 2>&5
27680   ac_status=$?
27681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27682   (exit $ac_status); }; } &&
27683          { ac_try='test -s conftest$ac_exeext'
27684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685   (eval $ac_try) 2>&5
27686   ac_status=$?
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); }; }; then
27689   eval "$as_ac_var=yes"
27690 else
27691   echo "$as_me: failed program was:" >&5
27692 sed 's/^/| /' conftest.$ac_ext >&5
27693
27694 eval "$as_ac_var=no"
27695 fi
27696 rm -f conftest.err conftest.$ac_objext \
27697       conftest$ac_exeext conftest.$ac_ext
27698 fi
27699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27701 if test `eval echo '${'$as_ac_var'}'` = yes; then
27702   cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27704 _ACEOF
27705  cat >>confdefs.h <<\_ACEOF
27706 #define HAVE_INET_PTON 1
27707 _ACEOF
27708
27709 fi
27710 done
27711
27712
27713 for ac_func in inet_ntop
27714 do
27715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27716 echo "$as_me:$LINENO: checking for $ac_func" >&5
27717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27718 if eval "test \"\${$as_ac_var+set}\" = set"; then
27719   echo $ECHO_N "(cached) $ECHO_C" >&6
27720 else
27721   cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27729 #define $ac_func innocuous_$ac_func
27730
27731 /* System header to define __stub macros and hopefully few prototypes,
27732     which can conflict with char $ac_func (); below.
27733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734     <limits.h> exists even on freestanding compilers.  */
27735
27736 #ifdef __STDC__
27737 # include <limits.h>
27738 #else
27739 # include <assert.h>
27740 #endif
27741
27742 #undef $ac_func
27743
27744 /* Override any gcc2 internal prototype to avoid an error.  */
27745 #ifdef __cplusplus
27746 extern "C"
27747 {
27748 #endif
27749 /* We use char because int might match the return type of a gcc2
27750    builtin and then its argument prototype would still apply.  */
27751 char $ac_func ();
27752 /* The GNU C library defines this for functions which it implements
27753     to always fail with ENOSYS.  Some functions are actually named
27754     something starting with __ and the normal name is an alias.  */
27755 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27756 choke me
27757 #else
27758 char (*f) () = $ac_func;
27759 #endif
27760 #ifdef __cplusplus
27761 }
27762 #endif
27763
27764 int
27765 main ()
27766 {
27767 return f != $ac_func;
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 rm -f conftest.$ac_objext conftest$ac_exeext
27773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27774   (eval $ac_link) 2>conftest.er1
27775   ac_status=$?
27776   grep -v '^ *+' conftest.er1 >conftest.err
27777   rm -f conftest.er1
27778   cat conftest.err >&5
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); } &&
27781          { ac_try='test -z "$ac_c_werror_flag"
27782                          || test ! -s conftest.err'
27783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784   (eval $ac_try) 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; } &&
27788          { ac_try='test -s conftest$ac_exeext'
27789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27790   (eval $ac_try) 2>&5
27791   ac_status=$?
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); }; }; then
27794   eval "$as_ac_var=yes"
27795 else
27796   echo "$as_me: failed program was:" >&5
27797 sed 's/^/| /' conftest.$ac_ext >&5
27798
27799 eval "$as_ac_var=no"
27800 fi
27801 rm -f conftest.err conftest.$ac_objext \
27802       conftest$ac_exeext conftest.$ac_ext
27803 fi
27804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27805 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27806 if test `eval echo '${'$as_ac_var'}'` = yes; then
27807   cat >>confdefs.h <<_ACEOF
27808 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27809 _ACEOF
27810  cat >>confdefs.h <<\_ACEOF
27811 #define HAVE_INET_NTOP 1
27812 _ACEOF
27813
27814 fi
27815 done
27816
27817
27818 for ac_func in gethostbyname2
27819 do
27820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27821 echo "$as_me:$LINENO: checking for $ac_func" >&5
27822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27823 if eval "test \"\${$as_ac_var+set}\" = set"; then
27824   echo $ECHO_N "(cached) $ECHO_C" >&6
27825 else
27826   cat >conftest.$ac_ext <<_ACEOF
27827 /* confdefs.h.  */
27828 _ACEOF
27829 cat confdefs.h >>conftest.$ac_ext
27830 cat >>conftest.$ac_ext <<_ACEOF
27831 /* end confdefs.h.  */
27832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27833    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27834 #define $ac_func innocuous_$ac_func
27835
27836 /* System header to define __stub macros and hopefully few prototypes,
27837     which can conflict with char $ac_func (); below.
27838     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27839     <limits.h> exists even on freestanding compilers.  */
27840
27841 #ifdef __STDC__
27842 # include <limits.h>
27843 #else
27844 # include <assert.h>
27845 #endif
27846
27847 #undef $ac_func
27848
27849 /* Override any gcc2 internal prototype to avoid an error.  */
27850 #ifdef __cplusplus
27851 extern "C"
27852 {
27853 #endif
27854 /* We use char because int might match the return type of a gcc2
27855    builtin and then its argument prototype would still apply.  */
27856 char $ac_func ();
27857 /* The GNU C library defines this for functions which it implements
27858     to always fail with ENOSYS.  Some functions are actually named
27859     something starting with __ and the normal name is an alias.  */
27860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27861 choke me
27862 #else
27863 char (*f) () = $ac_func;
27864 #endif
27865 #ifdef __cplusplus
27866 }
27867 #endif
27868
27869 int
27870 main ()
27871 {
27872 return f != $ac_func;
27873   ;
27874   return 0;
27875 }
27876 _ACEOF
27877 rm -f conftest.$ac_objext conftest$ac_exeext
27878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27879   (eval $ac_link) 2>conftest.er1
27880   ac_status=$?
27881   grep -v '^ *+' conftest.er1 >conftest.err
27882   rm -f conftest.er1
27883   cat conftest.err >&5
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); } &&
27886          { ac_try='test -z "$ac_c_werror_flag"
27887                          || test ! -s conftest.err'
27888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27889   (eval $ac_try) 2>&5
27890   ac_status=$?
27891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27892   (exit $ac_status); }; } &&
27893          { ac_try='test -s conftest$ac_exeext'
27894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895   (eval $ac_try) 2>&5
27896   ac_status=$?
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); }; }; then
27899   eval "$as_ac_var=yes"
27900 else
27901   echo "$as_me: failed program was:" >&5
27902 sed 's/^/| /' conftest.$ac_ext >&5
27903
27904 eval "$as_ac_var=no"
27905 fi
27906 rm -f conftest.err conftest.$ac_objext \
27907       conftest$ac_exeext conftest.$ac_ext
27908 fi
27909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27911 if test `eval echo '${'$as_ac_var'}'` = yes; then
27912   cat >>confdefs.h <<_ACEOF
27913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27914 _ACEOF
27915  cat >>confdefs.h <<\_ACEOF
27916 #define HAVE_GETHOSTBYNAME2 1
27917 _ACEOF
27918
27919 fi
27920 done
27921
27922
27923 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27924 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27925 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27926   echo $ECHO_N "(cached) $ECHO_C" >&6
27927 else
27928   cat >conftest.$ac_ext <<_ACEOF
27929 /* confdefs.h.  */
27930 _ACEOF
27931 cat confdefs.h >>conftest.$ac_ext
27932 cat >>conftest.$ac_ext <<_ACEOF
27933 /* end confdefs.h.  */
27934 #include <sys/socket.h>
27935 int
27936 main ()
27937 {
27938 struct sockaddr s; s.sa_len;
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 rm -f conftest.$ac_objext
27944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27945   (eval $ac_compile) 2>conftest.er1
27946   ac_status=$?
27947   grep -v '^ *+' conftest.er1 >conftest.err
27948   rm -f conftest.er1
27949   cat conftest.err >&5
27950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951   (exit $ac_status); } &&
27952          { ac_try='test -z "$ac_c_werror_flag"
27953                          || test ! -s conftest.err'
27954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27955   (eval $ac_try) 2>&5
27956   ac_status=$?
27957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27958   (exit $ac_status); }; } &&
27959          { ac_try='test -s conftest.$ac_objext'
27960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961   (eval $ac_try) 2>&5
27962   ac_status=$?
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); }; }; then
27965   ac_cv_struct_sockaddr_sa_len=yes
27966 else
27967   echo "$as_me: failed program was:" >&5
27968 sed 's/^/| /' conftest.$ac_ext >&5
27969
27970 ac_cv_struct_sockaddr_sa_len=no
27971 fi
27972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27973 fi
27974 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27975 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27976
27977  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27978
27979 cat >>confdefs.h <<\_ACEOF
27980 #define HAVE_SA_LEN 1
27981 _ACEOF
27982
27983  fi
27984
27985
27986
27987
27988
27989 for ac_func in strftime
27990 do
27991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27992 echo "$as_me:$LINENO: checking for $ac_func" >&5
27993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27994 if eval "test \"\${$as_ac_var+set}\" = set"; then
27995   echo $ECHO_N "(cached) $ECHO_C" >&6
27996 else
27997   cat >conftest.$ac_ext <<_ACEOF
27998 /* confdefs.h.  */
27999 _ACEOF
28000 cat confdefs.h >>conftest.$ac_ext
28001 cat >>conftest.$ac_ext <<_ACEOF
28002 /* end confdefs.h.  */
28003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28004    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28005 #define $ac_func innocuous_$ac_func
28006
28007 /* System header to define __stub macros and hopefully few prototypes,
28008     which can conflict with char $ac_func (); below.
28009     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28010     <limits.h> exists even on freestanding compilers.  */
28011
28012 #ifdef __STDC__
28013 # include <limits.h>
28014 #else
28015 # include <assert.h>
28016 #endif
28017
28018 #undef $ac_func
28019
28020 /* Override any gcc2 internal prototype to avoid an error.  */
28021 #ifdef __cplusplus
28022 extern "C"
28023 {
28024 #endif
28025 /* We use char because int might match the return type of a gcc2
28026    builtin and then its argument prototype would still apply.  */
28027 char $ac_func ();
28028 /* The GNU C library defines this for functions which it implements
28029     to always fail with ENOSYS.  Some functions are actually named
28030     something starting with __ and the normal name is an alias.  */
28031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28032 choke me
28033 #else
28034 char (*f) () = $ac_func;
28035 #endif
28036 #ifdef __cplusplus
28037 }
28038 #endif
28039
28040 int
28041 main ()
28042 {
28043 return f != $ac_func;
28044   ;
28045   return 0;
28046 }
28047 _ACEOF
28048 rm -f conftest.$ac_objext conftest$ac_exeext
28049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28050   (eval $ac_link) 2>conftest.er1
28051   ac_status=$?
28052   grep -v '^ *+' conftest.er1 >conftest.err
28053   rm -f conftest.er1
28054   cat conftest.err >&5
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); } &&
28057          { ac_try='test -z "$ac_c_werror_flag"
28058                          || test ! -s conftest.err'
28059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28060   (eval $ac_try) 2>&5
28061   ac_status=$?
28062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28063   (exit $ac_status); }; } &&
28064          { ac_try='test -s conftest$ac_exeext'
28065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28066   (eval $ac_try) 2>&5
28067   ac_status=$?
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); }; }; then
28070   eval "$as_ac_var=yes"
28071 else
28072   echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.$ac_ext >&5
28074
28075 eval "$as_ac_var=no"
28076 fi
28077 rm -f conftest.err conftest.$ac_objext \
28078       conftest$ac_exeext conftest.$ac_ext
28079 fi
28080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28081 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28082 if test `eval echo '${'$as_ac_var'}'` = yes; then
28083   cat >>confdefs.h <<_ACEOF
28084 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28085 _ACEOF
28086
28087 else
28088   # strftime is in -lintl on SCO UNIX.
28089 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28090 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28091 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28092   echo $ECHO_N "(cached) $ECHO_C" >&6
28093 else
28094   ac_check_lib_save_LIBS=$LIBS
28095 LIBS="-lintl  $LIBS"
28096 cat >conftest.$ac_ext <<_ACEOF
28097 /* confdefs.h.  */
28098 _ACEOF
28099 cat confdefs.h >>conftest.$ac_ext
28100 cat >>conftest.$ac_ext <<_ACEOF
28101 /* end confdefs.h.  */
28102
28103 /* Override any gcc2 internal prototype to avoid an error.  */
28104 #ifdef __cplusplus
28105 extern "C"
28106 #endif
28107 /* We use char because int might match the return type of a gcc2
28108    builtin and then its argument prototype would still apply.  */
28109 char strftime ();
28110 int
28111 main ()
28112 {
28113 strftime ();
28114   ;
28115   return 0;
28116 }
28117 _ACEOF
28118 rm -f conftest.$ac_objext conftest$ac_exeext
28119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28120   (eval $ac_link) 2>conftest.er1
28121   ac_status=$?
28122   grep -v '^ *+' conftest.er1 >conftest.err
28123   rm -f conftest.er1
28124   cat conftest.err >&5
28125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28126   (exit $ac_status); } &&
28127          { ac_try='test -z "$ac_c_werror_flag"
28128                          || test ! -s conftest.err'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; } &&
28134          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
28140   ac_cv_lib_intl_strftime=yes
28141 else
28142   echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.$ac_ext >&5
28144
28145 ac_cv_lib_intl_strftime=no
28146 fi
28147 rm -f conftest.err conftest.$ac_objext \
28148       conftest$ac_exeext conftest.$ac_ext
28149 LIBS=$ac_check_lib_save_LIBS
28150 fi
28151 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28152 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28153 if test $ac_cv_lib_intl_strftime = yes; then
28154   cat >>confdefs.h <<\_ACEOF
28155 #define HAVE_STRFTIME 1
28156 _ACEOF
28157
28158 LIBS="-lintl $LIBS"
28159 fi
28160
28161 fi
28162 done
28163
28164
28165 for ac_func in vprintf
28166 do
28167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28168 echo "$as_me:$LINENO: checking for $ac_func" >&5
28169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28170 if eval "test \"\${$as_ac_var+set}\" = set"; then
28171   echo $ECHO_N "(cached) $ECHO_C" >&6
28172 else
28173   cat >conftest.$ac_ext <<_ACEOF
28174 /* confdefs.h.  */
28175 _ACEOF
28176 cat confdefs.h >>conftest.$ac_ext
28177 cat >>conftest.$ac_ext <<_ACEOF
28178 /* end confdefs.h.  */
28179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28181 #define $ac_func innocuous_$ac_func
28182
28183 /* System header to define __stub macros and hopefully few prototypes,
28184     which can conflict with char $ac_func (); below.
28185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28186     <limits.h> exists even on freestanding compilers.  */
28187
28188 #ifdef __STDC__
28189 # include <limits.h>
28190 #else
28191 # include <assert.h>
28192 #endif
28193
28194 #undef $ac_func
28195
28196 /* Override any gcc2 internal prototype to avoid an error.  */
28197 #ifdef __cplusplus
28198 extern "C"
28199 {
28200 #endif
28201 /* We use char because int might match the return type of a gcc2
28202    builtin and then its argument prototype would still apply.  */
28203 char $ac_func ();
28204 /* The GNU C library defines this for functions which it implements
28205     to always fail with ENOSYS.  Some functions are actually named
28206     something starting with __ and the normal name is an alias.  */
28207 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28208 choke me
28209 #else
28210 char (*f) () = $ac_func;
28211 #endif
28212 #ifdef __cplusplus
28213 }
28214 #endif
28215
28216 int
28217 main ()
28218 {
28219 return f != $ac_func;
28220   ;
28221   return 0;
28222 }
28223 _ACEOF
28224 rm -f conftest.$ac_objext conftest$ac_exeext
28225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28226   (eval $ac_link) 2>conftest.er1
28227   ac_status=$?
28228   grep -v '^ *+' conftest.er1 >conftest.err
28229   rm -f conftest.er1
28230   cat conftest.err >&5
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); } &&
28233          { ac_try='test -z "$ac_c_werror_flag"
28234                          || test ! -s conftest.err'
28235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28236   (eval $ac_try) 2>&5
28237   ac_status=$?
28238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28239   (exit $ac_status); }; } &&
28240          { ac_try='test -s conftest$ac_exeext'
28241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28242   (eval $ac_try) 2>&5
28243   ac_status=$?
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); }; }; then
28246   eval "$as_ac_var=yes"
28247 else
28248   echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251 eval "$as_ac_var=no"
28252 fi
28253 rm -f conftest.err conftest.$ac_objext \
28254       conftest$ac_exeext conftest.$ac_ext
28255 fi
28256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28258 if test `eval echo '${'$as_ac_var'}'` = yes; then
28259   cat >>confdefs.h <<_ACEOF
28260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28261 _ACEOF
28262
28263 echo "$as_me:$LINENO: checking for _doprnt" >&5
28264 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28265 if test "${ac_cv_func__doprnt+set}" = set; then
28266   echo $ECHO_N "(cached) $ECHO_C" >&6
28267 else
28268   cat >conftest.$ac_ext <<_ACEOF
28269 /* confdefs.h.  */
28270 _ACEOF
28271 cat confdefs.h >>conftest.$ac_ext
28272 cat >>conftest.$ac_ext <<_ACEOF
28273 /* end confdefs.h.  */
28274 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28276 #define _doprnt innocuous__doprnt
28277
28278 /* System header to define __stub macros and hopefully few prototypes,
28279     which can conflict with char _doprnt (); below.
28280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28281     <limits.h> exists even on freestanding compilers.  */
28282
28283 #ifdef __STDC__
28284 # include <limits.h>
28285 #else
28286 # include <assert.h>
28287 #endif
28288
28289 #undef _doprnt
28290
28291 /* Override any gcc2 internal prototype to avoid an error.  */
28292 #ifdef __cplusplus
28293 extern "C"
28294 {
28295 #endif
28296 /* We use char because int might match the return type of a gcc2
28297    builtin and then its argument prototype would still apply.  */
28298 char _doprnt ();
28299 /* The GNU C library defines this for functions which it implements
28300     to always fail with ENOSYS.  Some functions are actually named
28301     something starting with __ and the normal name is an alias.  */
28302 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28303 choke me
28304 #else
28305 char (*f) () = _doprnt;
28306 #endif
28307 #ifdef __cplusplus
28308 }
28309 #endif
28310
28311 int
28312 main ()
28313 {
28314 return f != _doprnt;
28315   ;
28316   return 0;
28317 }
28318 _ACEOF
28319 rm -f conftest.$ac_objext conftest$ac_exeext
28320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28321   (eval $ac_link) 2>conftest.er1
28322   ac_status=$?
28323   grep -v '^ *+' conftest.er1 >conftest.err
28324   rm -f conftest.er1
28325   cat conftest.err >&5
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); } &&
28328          { ac_try='test -z "$ac_c_werror_flag"
28329                          || test ! -s conftest.err'
28330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28331   (eval $ac_try) 2>&5
28332   ac_status=$?
28333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28334   (exit $ac_status); }; } &&
28335          { ac_try='test -s conftest$ac_exeext'
28336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28337   (eval $ac_try) 2>&5
28338   ac_status=$?
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); }; }; then
28341   ac_cv_func__doprnt=yes
28342 else
28343   echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346 ac_cv_func__doprnt=no
28347 fi
28348 rm -f conftest.err conftest.$ac_objext \
28349       conftest$ac_exeext conftest.$ac_ext
28350 fi
28351 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28352 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28353 if test $ac_cv_func__doprnt = yes; then
28354
28355 cat >>confdefs.h <<\_ACEOF
28356 #define HAVE_DOPRNT 1
28357 _ACEOF
28358
28359 fi
28360
28361 fi
28362 done
28363
28364
28365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28366 # for constant arguments.  Useless!
28367 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28368 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28369 if test "${ac_cv_working_alloca_h+set}" = set; then
28370   echo $ECHO_N "(cached) $ECHO_C" >&6
28371 else
28372   cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378 #include <alloca.h>
28379 int
28380 main ()
28381 {
28382 char *p = (char *) alloca (2 * sizeof (int));
28383   ;
28384   return 0;
28385 }
28386 _ACEOF
28387 rm -f conftest.$ac_objext conftest$ac_exeext
28388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28389   (eval $ac_link) 2>conftest.er1
28390   ac_status=$?
28391   grep -v '^ *+' conftest.er1 >conftest.err
28392   rm -f conftest.er1
28393   cat conftest.err >&5
28394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); } &&
28396          { ac_try='test -z "$ac_c_werror_flag"
28397                          || test ! -s conftest.err'
28398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399   (eval $ac_try) 2>&5
28400   ac_status=$?
28401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402   (exit $ac_status); }; } &&
28403          { ac_try='test -s conftest$ac_exeext'
28404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28405   (eval $ac_try) 2>&5
28406   ac_status=$?
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); }; }; then
28409   ac_cv_working_alloca_h=yes
28410 else
28411   echo "$as_me: failed program was:" >&5
28412 sed 's/^/| /' conftest.$ac_ext >&5
28413
28414 ac_cv_working_alloca_h=no
28415 fi
28416 rm -f conftest.err conftest.$ac_objext \
28417       conftest$ac_exeext conftest.$ac_ext
28418 fi
28419 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28421 if test $ac_cv_working_alloca_h = yes; then
28422
28423 cat >>confdefs.h <<\_ACEOF
28424 #define HAVE_ALLOCA_H 1
28425 _ACEOF
28426
28427 fi
28428
28429 echo "$as_me:$LINENO: checking for alloca" >&5
28430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28431 if test "${ac_cv_func_alloca_works+set}" = set; then
28432   echo $ECHO_N "(cached) $ECHO_C" >&6
28433 else
28434   cat >conftest.$ac_ext <<_ACEOF
28435 /* confdefs.h.  */
28436 _ACEOF
28437 cat confdefs.h >>conftest.$ac_ext
28438 cat >>conftest.$ac_ext <<_ACEOF
28439 /* end confdefs.h.  */
28440 #ifdef __GNUC__
28441 # define alloca __builtin_alloca
28442 #else
28443 # ifdef _MSC_VER
28444 #  include <malloc.h>
28445 #  define alloca _alloca
28446 # else
28447 #  if HAVE_ALLOCA_H
28448 #   include <alloca.h>
28449 #  else
28450 #   ifdef _AIX
28451  #pragma alloca
28452 #   else
28453 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28454 char *alloca ();
28455 #    endif
28456 #   endif
28457 #  endif
28458 # endif
28459 #endif
28460
28461 int
28462 main ()
28463 {
28464 char *p = (char *) alloca (1);
28465   ;
28466   return 0;
28467 }
28468 _ACEOF
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28471   (eval $ac_link) 2>conftest.er1
28472   ac_status=$?
28473   grep -v '^ *+' conftest.er1 >conftest.err
28474   rm -f conftest.er1
28475   cat conftest.err >&5
28476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28477   (exit $ac_status); } &&
28478          { ac_try='test -z "$ac_c_werror_flag"
28479                          || test ! -s conftest.err'
28480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28481   (eval $ac_try) 2>&5
28482   ac_status=$?
28483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28484   (exit $ac_status); }; } &&
28485          { ac_try='test -s conftest$ac_exeext'
28486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28487   (eval $ac_try) 2>&5
28488   ac_status=$?
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); }; }; then
28491   ac_cv_func_alloca_works=yes
28492 else
28493   echo "$as_me: failed program was:" >&5
28494 sed 's/^/| /' conftest.$ac_ext >&5
28495
28496 ac_cv_func_alloca_works=no
28497 fi
28498 rm -f conftest.err conftest.$ac_objext \
28499       conftest$ac_exeext conftest.$ac_ext
28500 fi
28501 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28502 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28503
28504 if test $ac_cv_func_alloca_works = yes; then
28505
28506 cat >>confdefs.h <<\_ACEOF
28507 #define HAVE_ALLOCA 1
28508 _ACEOF
28509
28510 else
28511   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28512 # that cause trouble.  Some versions do not even contain alloca or
28513 # contain a buggy version.  If you still want to use their alloca,
28514 # use ar to extract alloca.o from them instead of compiling alloca.c.
28515
28516 ALLOCA=alloca.$ac_objext
28517
28518 cat >>confdefs.h <<\_ACEOF
28519 #define C_ALLOCA 1
28520 _ACEOF
28521
28522
28523 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28524 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28525 if test "${ac_cv_os_cray+set}" = set; then
28526   echo $ECHO_N "(cached) $ECHO_C" >&6
28527 else
28528   cat >conftest.$ac_ext <<_ACEOF
28529 /* confdefs.h.  */
28530 _ACEOF
28531 cat confdefs.h >>conftest.$ac_ext
28532 cat >>conftest.$ac_ext <<_ACEOF
28533 /* end confdefs.h.  */
28534 #if defined(CRAY) && ! defined(CRAY2)
28535 webecray
28536 #else
28537 wenotbecray
28538 #endif
28539
28540 _ACEOF
28541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28542   $EGREP "webecray" >/dev/null 2>&1; then
28543   ac_cv_os_cray=yes
28544 else
28545   ac_cv_os_cray=no
28546 fi
28547 rm -f conftest*
28548
28549 fi
28550 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28551 echo "${ECHO_T}$ac_cv_os_cray" >&6
28552 if test $ac_cv_os_cray = yes; then
28553   for ac_func in _getb67 GETB67 getb67; do
28554     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28555 echo "$as_me:$LINENO: checking for $ac_func" >&5
28556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28557 if eval "test \"\${$as_ac_var+set}\" = set"; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560   cat >conftest.$ac_ext <<_ACEOF
28561 /* confdefs.h.  */
28562 _ACEOF
28563 cat confdefs.h >>conftest.$ac_ext
28564 cat >>conftest.$ac_ext <<_ACEOF
28565 /* end confdefs.h.  */
28566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28568 #define $ac_func innocuous_$ac_func
28569
28570 /* System header to define __stub macros and hopefully few prototypes,
28571     which can conflict with char $ac_func (); below.
28572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28573     <limits.h> exists even on freestanding compilers.  */
28574
28575 #ifdef __STDC__
28576 # include <limits.h>
28577 #else
28578 # include <assert.h>
28579 #endif
28580
28581 #undef $ac_func
28582
28583 /* Override any gcc2 internal prototype to avoid an error.  */
28584 #ifdef __cplusplus
28585 extern "C"
28586 {
28587 #endif
28588 /* We use char because int might match the return type of a gcc2
28589    builtin and then its argument prototype would still apply.  */
28590 char $ac_func ();
28591 /* The GNU C library defines this for functions which it implements
28592     to always fail with ENOSYS.  Some functions are actually named
28593     something starting with __ and the normal name is an alias.  */
28594 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28595 choke me
28596 #else
28597 char (*f) () = $ac_func;
28598 #endif
28599 #ifdef __cplusplus
28600 }
28601 #endif
28602
28603 int
28604 main ()
28605 {
28606 return f != $ac_func;
28607   ;
28608   return 0;
28609 }
28610 _ACEOF
28611 rm -f conftest.$ac_objext conftest$ac_exeext
28612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28613   (eval $ac_link) 2>conftest.er1
28614   ac_status=$?
28615   grep -v '^ *+' conftest.er1 >conftest.err
28616   rm -f conftest.er1
28617   cat conftest.err >&5
28618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619   (exit $ac_status); } &&
28620          { ac_try='test -z "$ac_c_werror_flag"
28621                          || test ! -s conftest.err'
28622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28623   (eval $ac_try) 2>&5
28624   ac_status=$?
28625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28626   (exit $ac_status); }; } &&
28627          { ac_try='test -s conftest$ac_exeext'
28628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28629   (eval $ac_try) 2>&5
28630   ac_status=$?
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); }; }; then
28633   eval "$as_ac_var=yes"
28634 else
28635   echo "$as_me: failed program was:" >&5
28636 sed 's/^/| /' conftest.$ac_ext >&5
28637
28638 eval "$as_ac_var=no"
28639 fi
28640 rm -f conftest.err conftest.$ac_objext \
28641       conftest$ac_exeext conftest.$ac_ext
28642 fi
28643 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28644 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28645 if test `eval echo '${'$as_ac_var'}'` = yes; then
28646
28647 cat >>confdefs.h <<_ACEOF
28648 #define CRAY_STACKSEG_END $ac_func
28649 _ACEOF
28650
28651     break
28652 fi
28653
28654   done
28655 fi
28656
28657 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28658 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28659 if test "${ac_cv_c_stack_direction+set}" = set; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662   if test "$cross_compiling" = yes; then
28663   ac_cv_c_stack_direction=0
28664 else
28665   cat >conftest.$ac_ext <<_ACEOF
28666 /* confdefs.h.  */
28667 _ACEOF
28668 cat confdefs.h >>conftest.$ac_ext
28669 cat >>conftest.$ac_ext <<_ACEOF
28670 /* end confdefs.h.  */
28671 int
28672 find_stack_direction ()
28673 {
28674   static char *addr = 0;
28675   auto char dummy;
28676   if (addr == 0)
28677     {
28678       addr = &dummy;
28679       return find_stack_direction ();
28680     }
28681   else
28682     return (&dummy > addr) ? 1 : -1;
28683 }
28684
28685 int
28686 main ()
28687 {
28688   exit (find_stack_direction () < 0);
28689 }
28690 _ACEOF
28691 rm -f conftest$ac_exeext
28692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28693   (eval $ac_link) 2>&5
28694   ac_status=$?
28695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28698   (eval $ac_try) 2>&5
28699   ac_status=$?
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); }; }; then
28702   ac_cv_c_stack_direction=1
28703 else
28704   echo "$as_me: program exited with status $ac_status" >&5
28705 echo "$as_me: failed program was:" >&5
28706 sed 's/^/| /' conftest.$ac_ext >&5
28707
28708 ( exit $ac_status )
28709 ac_cv_c_stack_direction=-1
28710 fi
28711 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28712 fi
28713 fi
28714 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28715 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28716
28717 cat >>confdefs.h <<_ACEOF
28718 #define STACK_DIRECTION $ac_cv_c_stack_direction
28719 _ACEOF
28720
28721
28722 fi
28723
28724 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28725 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28726 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28727 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28728   echo $ECHO_N "(cached) $ECHO_C" >&6
28729 else
28730   ac_check_lib_save_LIBS=$LIBS
28731 LIBS="-lsun  $LIBS"
28732 cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h.  */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h.  */
28738
28739 /* Override any gcc2 internal prototype to avoid an error.  */
28740 #ifdef __cplusplus
28741 extern "C"
28742 #endif
28743 /* We use char because int might match the return type of a gcc2
28744    builtin and then its argument prototype would still apply.  */
28745 char getmntent ();
28746 int
28747 main ()
28748 {
28749 getmntent ();
28750   ;
28751   return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28756   (eval $ac_link) 2>conftest.er1
28757   ac_status=$?
28758   grep -v '^ *+' conftest.er1 >conftest.err
28759   rm -f conftest.er1
28760   cat conftest.err >&5
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); } &&
28763          { ac_try='test -z "$ac_c_werror_flag"
28764                          || test ! -s conftest.err'
28765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766   (eval $ac_try) 2>&5
28767   ac_status=$?
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); }; } &&
28770          { ac_try='test -s conftest$ac_exeext'
28771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772   (eval $ac_try) 2>&5
28773   ac_status=$?
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); }; }; then
28776   ac_cv_lib_sun_getmntent=yes
28777 else
28778   echo "$as_me: failed program was:" >&5
28779 sed 's/^/| /' conftest.$ac_ext >&5
28780
28781 ac_cv_lib_sun_getmntent=no
28782 fi
28783 rm -f conftest.err conftest.$ac_objext \
28784       conftest$ac_exeext conftest.$ac_ext
28785 LIBS=$ac_check_lib_save_LIBS
28786 fi
28787 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28788 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28789 if test $ac_cv_lib_sun_getmntent = yes; then
28790   LIBS="-lsun $LIBS"
28791 else
28792   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28793 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28794 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28795   echo $ECHO_N "(cached) $ECHO_C" >&6
28796 else
28797   ac_check_lib_save_LIBS=$LIBS
28798 LIBS="-lseq  $LIBS"
28799 cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805
28806 /* Override any gcc2 internal prototype to avoid an error.  */
28807 #ifdef __cplusplus
28808 extern "C"
28809 #endif
28810 /* We use char because int might match the return type of a gcc2
28811    builtin and then its argument prototype would still apply.  */
28812 char getmntent ();
28813 int
28814 main ()
28815 {
28816 getmntent ();
28817   ;
28818   return 0;
28819 }
28820 _ACEOF
28821 rm -f conftest.$ac_objext conftest$ac_exeext
28822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28823   (eval $ac_link) 2>conftest.er1
28824   ac_status=$?
28825   grep -v '^ *+' conftest.er1 >conftest.err
28826   rm -f conftest.er1
28827   cat conftest.err >&5
28828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28829   (exit $ac_status); } &&
28830          { ac_try='test -z "$ac_c_werror_flag"
28831                          || test ! -s conftest.err'
28832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28833   (eval $ac_try) 2>&5
28834   ac_status=$?
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); }; } &&
28837          { ac_try='test -s conftest$ac_exeext'
28838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28839   (eval $ac_try) 2>&5
28840   ac_status=$?
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); }; }; then
28843   ac_cv_lib_seq_getmntent=yes
28844 else
28845   echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28847
28848 ac_cv_lib_seq_getmntent=no
28849 fi
28850 rm -f conftest.err conftest.$ac_objext \
28851       conftest$ac_exeext conftest.$ac_ext
28852 LIBS=$ac_check_lib_save_LIBS
28853 fi
28854 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28855 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28856 if test $ac_cv_lib_seq_getmntent = yes; then
28857   LIBS="-lseq $LIBS"
28858 else
28859   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28860 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28861 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28862   echo $ECHO_N "(cached) $ECHO_C" >&6
28863 else
28864   ac_check_lib_save_LIBS=$LIBS
28865 LIBS="-lgen  $LIBS"
28866 cat >conftest.$ac_ext <<_ACEOF
28867 /* confdefs.h.  */
28868 _ACEOF
28869 cat confdefs.h >>conftest.$ac_ext
28870 cat >>conftest.$ac_ext <<_ACEOF
28871 /* end confdefs.h.  */
28872
28873 /* Override any gcc2 internal prototype to avoid an error.  */
28874 #ifdef __cplusplus
28875 extern "C"
28876 #endif
28877 /* We use char because int might match the return type of a gcc2
28878    builtin and then its argument prototype would still apply.  */
28879 char getmntent ();
28880 int
28881 main ()
28882 {
28883 getmntent ();
28884   ;
28885   return 0;
28886 }
28887 _ACEOF
28888 rm -f conftest.$ac_objext conftest$ac_exeext
28889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28890   (eval $ac_link) 2>conftest.er1
28891   ac_status=$?
28892   grep -v '^ *+' conftest.er1 >conftest.err
28893   rm -f conftest.er1
28894   cat conftest.err >&5
28895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896   (exit $ac_status); } &&
28897          { ac_try='test -z "$ac_c_werror_flag"
28898                          || test ! -s conftest.err'
28899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900   (eval $ac_try) 2>&5
28901   ac_status=$?
28902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903   (exit $ac_status); }; } &&
28904          { ac_try='test -s conftest$ac_exeext'
28905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906   (eval $ac_try) 2>&5
28907   ac_status=$?
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); }; }; then
28910   ac_cv_lib_gen_getmntent=yes
28911 else
28912   echo "$as_me: failed program was:" >&5
28913 sed 's/^/| /' conftest.$ac_ext >&5
28914
28915 ac_cv_lib_gen_getmntent=no
28916 fi
28917 rm -f conftest.err conftest.$ac_objext \
28918       conftest$ac_exeext conftest.$ac_ext
28919 LIBS=$ac_check_lib_save_LIBS
28920 fi
28921 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28922 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28923 if test $ac_cv_lib_gen_getmntent = yes; then
28924   LIBS="-lgen $LIBS"
28925 fi
28926
28927 fi
28928
28929 fi
28930
28931
28932 for ac_func in getmntent
28933 do
28934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28935 echo "$as_me:$LINENO: checking for $ac_func" >&5
28936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28937 if eval "test \"\${$as_ac_var+set}\" = set"; then
28938   echo $ECHO_N "(cached) $ECHO_C" >&6
28939 else
28940   cat >conftest.$ac_ext <<_ACEOF
28941 /* confdefs.h.  */
28942 _ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h.  */
28946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28948 #define $ac_func innocuous_$ac_func
28949
28950 /* System header to define __stub macros and hopefully few prototypes,
28951     which can conflict with char $ac_func (); below.
28952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28953     <limits.h> exists even on freestanding compilers.  */
28954
28955 #ifdef __STDC__
28956 # include <limits.h>
28957 #else
28958 # include <assert.h>
28959 #endif
28960
28961 #undef $ac_func
28962
28963 /* Override any gcc2 internal prototype to avoid an error.  */
28964 #ifdef __cplusplus
28965 extern "C"
28966 {
28967 #endif
28968 /* We use char because int might match the return type of a gcc2
28969    builtin and then its argument prototype would still apply.  */
28970 char $ac_func ();
28971 /* The GNU C library defines this for functions which it implements
28972     to always fail with ENOSYS.  Some functions are actually named
28973     something starting with __ and the normal name is an alias.  */
28974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28975 choke me
28976 #else
28977 char (*f) () = $ac_func;
28978 #endif
28979 #ifdef __cplusplus
28980 }
28981 #endif
28982
28983 int
28984 main ()
28985 {
28986 return f != $ac_func;
28987   ;
28988   return 0;
28989 }
28990 _ACEOF
28991 rm -f conftest.$ac_objext conftest$ac_exeext
28992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28993   (eval $ac_link) 2>conftest.er1
28994   ac_status=$?
28995   grep -v '^ *+' conftest.er1 >conftest.err
28996   rm -f conftest.er1
28997   cat conftest.err >&5
28998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28999   (exit $ac_status); } &&
29000          { ac_try='test -z "$ac_c_werror_flag"
29001                          || test ! -s conftest.err'
29002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29003   (eval $ac_try) 2>&5
29004   ac_status=$?
29005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29006   (exit $ac_status); }; } &&
29007          { ac_try='test -s conftest$ac_exeext'
29008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29009   (eval $ac_try) 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); }; }; then
29013   eval "$as_ac_var=yes"
29014 else
29015   echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29017
29018 eval "$as_ac_var=no"
29019 fi
29020 rm -f conftest.err conftest.$ac_objext \
29021       conftest$ac_exeext conftest.$ac_ext
29022 fi
29023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29024 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29025 if test `eval echo '${'$as_ac_var'}'` = yes; then
29026   cat >>confdefs.h <<_ACEOF
29027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29028 _ACEOF
29029
29030 fi
29031 done
29032
29033
29034 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29035 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
29036 if test "${ac_cv_func_closedir_void+set}" = set; then
29037   echo $ECHO_N "(cached) $ECHO_C" >&6
29038 else
29039   if test "$cross_compiling" = yes; then
29040   ac_cv_func_closedir_void=yes
29041 else
29042   cat >conftest.$ac_ext <<_ACEOF
29043 /* confdefs.h.  */
29044 _ACEOF
29045 cat confdefs.h >>conftest.$ac_ext
29046 cat >>conftest.$ac_ext <<_ACEOF
29047 /* end confdefs.h.  */
29048 $ac_includes_default
29049 #include <$ac_header_dirent>
29050 #ifndef __cplusplus
29051 int closedir ();
29052 #endif
29053
29054 int
29055 main ()
29056 {
29057 exit (closedir (opendir (".")) != 0);
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 rm -f conftest$ac_exeext
29063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29064   (eval $ac_link) 2>&5
29065   ac_status=$?
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29069   (eval $ac_try) 2>&5
29070   ac_status=$?
29071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29072   (exit $ac_status); }; }; then
29073   ac_cv_func_closedir_void=no
29074 else
29075   echo "$as_me: program exited with status $ac_status" >&5
29076 echo "$as_me: failed program was:" >&5
29077 sed 's/^/| /' conftest.$ac_ext >&5
29078
29079 ( exit $ac_status )
29080 ac_cv_func_closedir_void=yes
29081 fi
29082 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29083 fi
29084 fi
29085 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29086 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29087 if test $ac_cv_func_closedir_void = yes; then
29088
29089 cat >>confdefs.h <<\_ACEOF
29090 #define CLOSEDIR_VOID 1
29091 _ACEOF
29092
29093 fi
29094
29095 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29096 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29097 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29098   echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100   if test "$cross_compiling" = yes; then
29101   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29102 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29103    { (exit 1); exit 1; }; }
29104 else
29105   cat >conftest.$ac_ext <<_ACEOF
29106 /* confdefs.h.  */
29107 _ACEOF
29108 cat confdefs.h >>conftest.$ac_ext
29109 cat >>conftest.$ac_ext <<_ACEOF
29110 /* end confdefs.h.  */
29111 #if HAVE_UNISTD_H
29112 # include <unistd.h>
29113 #endif
29114
29115 int
29116 main ()
29117 {
29118 /* If this system has a BSD-style setpgrp which takes arguments,
29119   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29120   exit successfully. */
29121   exit (setpgrp (1,1) == -1 ? 0 : 1);
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 rm -f conftest$ac_exeext
29127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29128   (eval $ac_link) 2>&5
29129   ac_status=$?
29130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29133   (eval $ac_try) 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; }; then
29137   ac_cv_func_setpgrp_void=no
29138 else
29139   echo "$as_me: program exited with status $ac_status" >&5
29140 echo "$as_me: failed program was:" >&5
29141 sed 's/^/| /' conftest.$ac_ext >&5
29142
29143 ( exit $ac_status )
29144 ac_cv_func_setpgrp_void=yes
29145 fi
29146 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29147 fi
29148 fi
29149 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29150 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29151 if test $ac_cv_func_setpgrp_void = yes; then
29152
29153 cat >>confdefs.h <<\_ACEOF
29154 #define SETPGRP_VOID 1
29155 _ACEOF
29156
29157 fi
29158                       # AC_FUNC_FNMATCH    dnl use local version
29159
29160
29161 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29162 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29163 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29164   echo $ECHO_N "(cached) $ECHO_C" >&6
29165 else
29166   ac_check_lib_save_LIBS=$LIBS
29167 LIBS="-lintl  $LIBS"
29168 cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174
29175 /* Override any gcc2 internal prototype to avoid an error.  */
29176 #ifdef __cplusplus
29177 extern "C"
29178 #endif
29179 /* We use char because int might match the return type of a gcc2
29180    builtin and then its argument prototype would still apply.  */
29181 char gettext ();
29182 int
29183 main ()
29184 {
29185 gettext ();
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext conftest$ac_exeext
29191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29192   (eval $ac_link) 2>conftest.er1
29193   ac_status=$?
29194   grep -v '^ *+' conftest.er1 >conftest.err
29195   rm -f conftest.er1
29196   cat conftest.err >&5
29197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29198   (exit $ac_status); } &&
29199          { ac_try='test -z "$ac_c_werror_flag"
29200                          || test ! -s conftest.err'
29201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29202   (eval $ac_try) 2>&5
29203   ac_status=$?
29204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29205   (exit $ac_status); }; } &&
29206          { ac_try='test -s conftest$ac_exeext'
29207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29208   (eval $ac_try) 2>&5
29209   ac_status=$?
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); }; }; then
29212   ac_cv_lib_intl_gettext=yes
29213 else
29214   echo "$as_me: failed program was:" >&5
29215 sed 's/^/| /' conftest.$ac_ext >&5
29216
29217 ac_cv_lib_intl_gettext=no
29218 fi
29219 rm -f conftest.err conftest.$ac_objext \
29220       conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29222 fi
29223 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29224 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29225 if test $ac_cv_lib_intl_gettext = yes; then
29226   LIBS="$LIBS -lintl"
29227 fi
29228
29229
29230
29231
29232 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29233 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29234 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29235   echo $ECHO_N "(cached) $ECHO_C" >&6
29236 else
29237   ac_check_lib_save_LIBS=$LIBS
29238 LIBS="-lsun  $LIBS"
29239 cat >conftest.$ac_ext <<_ACEOF
29240 /* confdefs.h.  */
29241 _ACEOF
29242 cat confdefs.h >>conftest.$ac_ext
29243 cat >>conftest.$ac_ext <<_ACEOF
29244 /* end confdefs.h.  */
29245
29246 /* Override any gcc2 internal prototype to avoid an error.  */
29247 #ifdef __cplusplus
29248 extern "C"
29249 #endif
29250 /* We use char because int might match the return type of a gcc2
29251    builtin and then its argument prototype would still apply.  */
29252 char getpwnam ();
29253 int
29254 main ()
29255 {
29256 getpwnam ();
29257   ;
29258   return 0;
29259 }
29260 _ACEOF
29261 rm -f conftest.$ac_objext conftest$ac_exeext
29262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29263   (eval $ac_link) 2>conftest.er1
29264   ac_status=$?
29265   grep -v '^ *+' conftest.er1 >conftest.err
29266   rm -f conftest.er1
29267   cat conftest.err >&5
29268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29269   (exit $ac_status); } &&
29270          { ac_try='test -z "$ac_c_werror_flag"
29271                          || test ! -s conftest.err'
29272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29273   (eval $ac_try) 2>&5
29274   ac_status=$?
29275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29276   (exit $ac_status); }; } &&
29277          { ac_try='test -s conftest$ac_exeext'
29278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29279   (eval $ac_try) 2>&5
29280   ac_status=$?
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); }; }; then
29283   ac_cv_lib_sun_getpwnam=yes
29284 else
29285   echo "$as_me: failed program was:" >&5
29286 sed 's/^/| /' conftest.$ac_ext >&5
29287
29288 ac_cv_lib_sun_getpwnam=no
29289 fi
29290 rm -f conftest.err conftest.$ac_objext \
29291       conftest$ac_exeext conftest.$ac_ext
29292 LIBS=$ac_check_lib_save_LIBS
29293 fi
29294 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29295 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29296 if test $ac_cv_lib_sun_getpwnam = yes; then
29297   cat >>confdefs.h <<_ACEOF
29298 #define HAVE_LIBSUN 1
29299 _ACEOF
29300
29301   LIBS="-lsun $LIBS"
29302
29303 fi
29304
29305
29306
29307 for ac_header in zlib.h
29308 do
29309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29311   echo "$as_me:$LINENO: checking for $ac_header" >&5
29312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29314   echo $ECHO_N "(cached) $ECHO_C" >&6
29315 fi
29316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29318 else
29319   # Is the header compilable?
29320 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29321 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29322 cat >conftest.$ac_ext <<_ACEOF
29323 /* confdefs.h.  */
29324 _ACEOF
29325 cat confdefs.h >>conftest.$ac_ext
29326 cat >>conftest.$ac_ext <<_ACEOF
29327 /* end confdefs.h.  */
29328 $ac_includes_default
29329 #include <$ac_header>
29330 _ACEOF
29331 rm -f conftest.$ac_objext
29332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29333   (eval $ac_compile) 2>conftest.er1
29334   ac_status=$?
29335   grep -v '^ *+' conftest.er1 >conftest.err
29336   rm -f conftest.er1
29337   cat conftest.err >&5
29338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29339   (exit $ac_status); } &&
29340          { ac_try='test -z "$ac_c_werror_flag"
29341                          || test ! -s conftest.err'
29342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343   (eval $ac_try) 2>&5
29344   ac_status=$?
29345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346   (exit $ac_status); }; } &&
29347          { ac_try='test -s conftest.$ac_objext'
29348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349   (eval $ac_try) 2>&5
29350   ac_status=$?
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); }; }; then
29353   ac_header_compiler=yes
29354 else
29355   echo "$as_me: failed program was:" >&5
29356 sed 's/^/| /' conftest.$ac_ext >&5
29357
29358 ac_header_compiler=no
29359 fi
29360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29361 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29362 echo "${ECHO_T}$ac_header_compiler" >&6
29363
29364 # Is the header present?
29365 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29367 cat >conftest.$ac_ext <<_ACEOF
29368 /* confdefs.h.  */
29369 _ACEOF
29370 cat confdefs.h >>conftest.$ac_ext
29371 cat >>conftest.$ac_ext <<_ACEOF
29372 /* end confdefs.h.  */
29373 #include <$ac_header>
29374 _ACEOF
29375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29377   ac_status=$?
29378   grep -v '^ *+' conftest.er1 >conftest.err
29379   rm -f conftest.er1
29380   cat conftest.err >&5
29381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29382   (exit $ac_status); } >/dev/null; then
29383   if test -s conftest.err; then
29384     ac_cpp_err=$ac_c_preproc_warn_flag
29385     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29386   else
29387     ac_cpp_err=
29388   fi
29389 else
29390   ac_cpp_err=yes
29391 fi
29392 if test -z "$ac_cpp_err"; then
29393   ac_header_preproc=yes
29394 else
29395   echo "$as_me: failed program was:" >&5
29396 sed 's/^/| /' conftest.$ac_ext >&5
29397
29398   ac_header_preproc=no
29399 fi
29400 rm -f conftest.err conftest.$ac_ext
29401 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29402 echo "${ECHO_T}$ac_header_preproc" >&6
29403
29404 # So?  What about this header?
29405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29406   yes:no: )
29407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29411     ac_header_preproc=yes
29412     ;;
29413   no:yes:* )
29414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29426     (
29427       cat <<\_ASBOX
29428 ## ------------------------------------------ ##
29429 ## Report this to the AC_PACKAGE_NAME lists.  ##
29430 ## ------------------------------------------ ##
29431 _ASBOX
29432     ) |
29433       sed "s/^/$as_me: WARNING:     /" >&2
29434     ;;
29435 esac
29436 echo "$as_me:$LINENO: checking for $ac_header" >&5
29437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29439   echo $ECHO_N "(cached) $ECHO_C" >&6
29440 else
29441   eval "$as_ac_Header=\$ac_header_preproc"
29442 fi
29443 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29444 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29445
29446 fi
29447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29448   cat >>confdefs.h <<_ACEOF
29449 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29450 _ACEOF
29451
29452 fi
29453
29454 done
29455
29456 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29457 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29458 if test "${ac_cv_lib_z_deflate+set}" = set; then
29459   echo $ECHO_N "(cached) $ECHO_C" >&6
29460 else
29461   ac_check_lib_save_LIBS=$LIBS
29462 LIBS="-lz  $LIBS"
29463 cat >conftest.$ac_ext <<_ACEOF
29464 /* confdefs.h.  */
29465 _ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h.  */
29469
29470 /* Override any gcc2 internal prototype to avoid an error.  */
29471 #ifdef __cplusplus
29472 extern "C"
29473 #endif
29474 /* We use char because int might match the return type of a gcc2
29475    builtin and then its argument prototype would still apply.  */
29476 char deflate ();
29477 int
29478 main ()
29479 {
29480 deflate ();
29481   ;
29482   return 0;
29483 }
29484 _ACEOF
29485 rm -f conftest.$ac_objext conftest$ac_exeext
29486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29487   (eval $ac_link) 2>conftest.er1
29488   ac_status=$?
29489   grep -v '^ *+' conftest.er1 >conftest.err
29490   rm -f conftest.er1
29491   cat conftest.err >&5
29492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493   (exit $ac_status); } &&
29494          { ac_try='test -z "$ac_c_werror_flag"
29495                          || test ! -s conftest.err'
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); }; } &&
29501          { ac_try='test -s conftest$ac_exeext'
29502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503   (eval $ac_try) 2>&5
29504   ac_status=$?
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); }; }; then
29507   ac_cv_lib_z_deflate=yes
29508 else
29509   echo "$as_me: failed program was:" >&5
29510 sed 's/^/| /' conftest.$ac_ext >&5
29511
29512 ac_cv_lib_z_deflate=no
29513 fi
29514 rm -f conftest.err conftest.$ac_objext \
29515       conftest$ac_exeext conftest.$ac_ext
29516 LIBS=$ac_check_lib_save_LIBS
29517 fi
29518 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29519 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29520 if test $ac_cv_lib_z_deflate = yes; then
29521   FDLIBS="-lz"
29522 fi
29523
29524 have_zlib=no
29525 if test x$FDLIBS = x-lz; then
29526   cat >>confdefs.h <<\_ACEOF
29527 #define HAVE_LIBZ 1
29528 _ACEOF
29529
29530   have_zlib=yes
29531 fi
29532
29533 #
29534 # Check for ACL libraries
29535 #
29536 have_acl=no
29537 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29538   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29539 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29540 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29541   echo $ECHO_N "(cached) $ECHO_C" >&6
29542 fi
29543 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29544 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29545 else
29546   # Is the header compilable?
29547 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29548 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29549 cat >conftest.$ac_ext <<_ACEOF
29550 /* confdefs.h.  */
29551 _ACEOF
29552 cat confdefs.h >>conftest.$ac_ext
29553 cat >>conftest.$ac_ext <<_ACEOF
29554 /* end confdefs.h.  */
29555 $ac_includes_default
29556 #include <sys/acl.h>
29557 _ACEOF
29558 rm -f conftest.$ac_objext
29559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29560   (eval $ac_compile) 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } &&
29567          { ac_try='test -z "$ac_c_werror_flag"
29568                          || test ! -s conftest.err'
29569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29570   (eval $ac_try) 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; } &&
29574          { ac_try='test -s conftest.$ac_objext'
29575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29576   (eval $ac_try) 2>&5
29577   ac_status=$?
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); }; }; then
29580   ac_header_compiler=yes
29581 else
29582   echo "$as_me: failed program was:" >&5
29583 sed 's/^/| /' conftest.$ac_ext >&5
29584
29585 ac_header_compiler=no
29586 fi
29587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29589 echo "${ECHO_T}$ac_header_compiler" >&6
29590
29591 # Is the header present?
29592 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29593 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29594 cat >conftest.$ac_ext <<_ACEOF
29595 /* confdefs.h.  */
29596 _ACEOF
29597 cat confdefs.h >>conftest.$ac_ext
29598 cat >>conftest.$ac_ext <<_ACEOF
29599 /* end confdefs.h.  */
29600 #include <sys/acl.h>
29601 _ACEOF
29602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29604   ac_status=$?
29605   grep -v '^ *+' conftest.er1 >conftest.err
29606   rm -f conftest.er1
29607   cat conftest.err >&5
29608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609   (exit $ac_status); } >/dev/null; then
29610   if test -s conftest.err; then
29611     ac_cpp_err=$ac_c_preproc_warn_flag
29612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29613   else
29614     ac_cpp_err=
29615   fi
29616 else
29617   ac_cpp_err=yes
29618 fi
29619 if test -z "$ac_cpp_err"; then
29620   ac_header_preproc=yes
29621 else
29622   echo "$as_me: failed program was:" >&5
29623 sed 's/^/| /' conftest.$ac_ext >&5
29624
29625   ac_header_preproc=no
29626 fi
29627 rm -f conftest.err conftest.$ac_ext
29628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29629 echo "${ECHO_T}$ac_header_preproc" >&6
29630
29631 # So?  What about this header?
29632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29633   yes:no: )
29634     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29635 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29636     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29637 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29638     ac_header_preproc=yes
29639     ;;
29640   no:yes:* )
29641     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29642 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29643     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29644 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29645     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29646 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29647     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29648 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29649     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29650 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29651     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29652 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29653     (
29654       cat <<\_ASBOX
29655 ## ------------------------------------------ ##
29656 ## Report this to the AC_PACKAGE_NAME lists.  ##
29657 ## ------------------------------------------ ##
29658 _ASBOX
29659     ) |
29660       sed "s/^/$as_me: WARNING:     /" >&2
29661     ;;
29662 esac
29663 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29664 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29665 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29666   echo $ECHO_N "(cached) $ECHO_C" >&6
29667 else
29668   ac_cv_header_sys_acl_h=$ac_header_preproc
29669 fi
29670 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29671 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29672
29673 fi
29674
29675
29676 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29677 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29678 if test "${ac_cv_func_acl_get_file+set}" = set; then
29679   echo $ECHO_N "(cached) $ECHO_C" >&6
29680 else
29681   cat >conftest.$ac_ext <<_ACEOF
29682 /* confdefs.h.  */
29683 _ACEOF
29684 cat confdefs.h >>conftest.$ac_ext
29685 cat >>conftest.$ac_ext <<_ACEOF
29686 /* end confdefs.h.  */
29687 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29688    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29689 #define acl_get_file innocuous_acl_get_file
29690
29691 /* System header to define __stub macros and hopefully few prototypes,
29692     which can conflict with char acl_get_file (); below.
29693     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29694     <limits.h> exists even on freestanding compilers.  */
29695
29696 #ifdef __STDC__
29697 # include <limits.h>
29698 #else
29699 # include <assert.h>
29700 #endif
29701
29702 #undef acl_get_file
29703
29704 /* Override any gcc2 internal prototype to avoid an error.  */
29705 #ifdef __cplusplus
29706 extern "C"
29707 {
29708 #endif
29709 /* We use char because int might match the return type of a gcc2
29710    builtin and then its argument prototype would still apply.  */
29711 char acl_get_file ();
29712 /* The GNU C library defines this for functions which it implements
29713     to always fail with ENOSYS.  Some functions are actually named
29714     something starting with __ and the normal name is an alias.  */
29715 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29716 choke me
29717 #else
29718 char (*f) () = acl_get_file;
29719 #endif
29720 #ifdef __cplusplus
29721 }
29722 #endif
29723
29724 int
29725 main ()
29726 {
29727 return f != acl_get_file;
29728   ;
29729   return 0;
29730 }
29731 _ACEOF
29732 rm -f conftest.$ac_objext conftest$ac_exeext
29733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29734   (eval $ac_link) 2>conftest.er1
29735   ac_status=$?
29736   grep -v '^ *+' conftest.er1 >conftest.err
29737   rm -f conftest.er1
29738   cat conftest.err >&5
29739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740   (exit $ac_status); } &&
29741          { ac_try='test -z "$ac_c_werror_flag"
29742                          || test ! -s conftest.err'
29743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29744   (eval $ac_try) 2>&5
29745   ac_status=$?
29746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747   (exit $ac_status); }; } &&
29748          { ac_try='test -s conftest$ac_exeext'
29749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29750   (eval $ac_try) 2>&5
29751   ac_status=$?
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); }; }; then
29754   ac_cv_func_acl_get_file=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759 ac_cv_func_acl_get_file=no
29760 fi
29761 rm -f conftest.err conftest.$ac_objext \
29762       conftest$ac_exeext conftest.$ac_ext
29763 fi
29764 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29765 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29766 if test $ac_cv_func_acl_get_file = yes; then
29767   have_acl=yes
29768 else
29769   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29770 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29771 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29772   echo $ECHO_N "(cached) $ECHO_C" >&6
29773 else
29774   ac_check_lib_save_LIBS=$LIBS
29775 LIBS="-lacl  $LIBS"
29776 cat >conftest.$ac_ext <<_ACEOF
29777 /* confdefs.h.  */
29778 _ACEOF
29779 cat confdefs.h >>conftest.$ac_ext
29780 cat >>conftest.$ac_ext <<_ACEOF
29781 /* end confdefs.h.  */
29782
29783 /* Override any gcc2 internal prototype to avoid an error.  */
29784 #ifdef __cplusplus
29785 extern "C"
29786 #endif
29787 /* We use char because int might match the return type of a gcc2
29788    builtin and then its argument prototype would still apply.  */
29789 char acl_get_file ();
29790 int
29791 main ()
29792 {
29793 acl_get_file ();
29794   ;
29795   return 0;
29796 }
29797 _ACEOF
29798 rm -f conftest.$ac_objext conftest$ac_exeext
29799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29800   (eval $ac_link) 2>conftest.er1
29801   ac_status=$?
29802   grep -v '^ *+' conftest.er1 >conftest.err
29803   rm -f conftest.er1
29804   cat conftest.err >&5
29805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29806   (exit $ac_status); } &&
29807          { ac_try='test -z "$ac_c_werror_flag"
29808                          || test ! -s conftest.err'
29809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29810   (eval $ac_try) 2>&5
29811   ac_status=$?
29812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29813   (exit $ac_status); }; } &&
29814          { ac_try='test -s conftest$ac_exeext'
29815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29816   (eval $ac_try) 2>&5
29817   ac_status=$?
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); }; }; then
29820   ac_cv_lib_acl_acl_get_file=yes
29821 else
29822   echo "$as_me: failed program was:" >&5
29823 sed 's/^/| /' conftest.$ac_ext >&5
29824
29825 ac_cv_lib_acl_acl_get_file=no
29826 fi
29827 rm -f conftest.err conftest.$ac_objext \
29828       conftest$ac_exeext conftest.$ac_ext
29829 LIBS=$ac_check_lib_save_LIBS
29830 fi
29831 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29832 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29833 if test $ac_cv_lib_acl_acl_get_file = yes; then
29834   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29835 else
29836   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29837 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29838 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29839   echo $ECHO_N "(cached) $ECHO_C" >&6
29840 else
29841   ac_check_lib_save_LIBS=$LIBS
29842 LIBS="-lsec  $LIBS"
29843 cat >conftest.$ac_ext <<_ACEOF
29844 /* confdefs.h.  */
29845 _ACEOF
29846 cat confdefs.h >>conftest.$ac_ext
29847 cat >>conftest.$ac_ext <<_ACEOF
29848 /* end confdefs.h.  */
29849
29850 /* Override any gcc2 internal prototype to avoid an error.  */
29851 #ifdef __cplusplus
29852 extern "C"
29853 #endif
29854 /* We use char because int might match the return type of a gcc2
29855    builtin and then its argument prototype would still apply.  */
29856 char acltotext ();
29857 int
29858 main ()
29859 {
29860 acltotext ();
29861   ;
29862   return 0;
29863 }
29864 _ACEOF
29865 rm -f conftest.$ac_objext conftest$ac_exeext
29866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29867   (eval $ac_link) 2>conftest.er1
29868   ac_status=$?
29869   grep -v '^ *+' conftest.er1 >conftest.err
29870   rm -f conftest.er1
29871   cat conftest.err >&5
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } &&
29874          { ac_try='test -z "$ac_c_werror_flag"
29875                          || test ! -s conftest.err'
29876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29877   (eval $ac_try) 2>&5
29878   ac_status=$?
29879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880   (exit $ac_status); }; } &&
29881          { ac_try='test -s conftest$ac_exeext'
29882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29883   (eval $ac_try) 2>&5
29884   ac_status=$?
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); }; }; then
29887   ac_cv_lib_sec_acltotext=yes
29888 else
29889   echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29891
29892 ac_cv_lib_sec_acltotext=no
29893 fi
29894 rm -f conftest.err conftest.$ac_objext \
29895       conftest$ac_exeext conftest.$ac_ext
29896 LIBS=$ac_check_lib_save_LIBS
29897 fi
29898 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29899 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29900 if test $ac_cv_lib_sec_acltotext = yes; then
29901   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29902 fi
29903
29904
29905 fi
29906
29907
29908 fi
29909
29910 if test $have_acl = yes; then
29911    cat >>confdefs.h <<\_ACEOF
29912 #define HAVE_ACL 1
29913 _ACEOF
29914
29915 fi
29916
29917 PTHREAD_LIB=""
29918 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29919 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29920 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29921   echo $ECHO_N "(cached) $ECHO_C" >&6
29922 else
29923   ac_check_lib_save_LIBS=$LIBS
29924 LIBS="-lpthread  $LIBS"
29925 cat >conftest.$ac_ext <<_ACEOF
29926 /* confdefs.h.  */
29927 _ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h.  */
29931
29932 /* Override any gcc2 internal prototype to avoid an error.  */
29933 #ifdef __cplusplus
29934 extern "C"
29935 #endif
29936 /* We use char because int might match the return type of a gcc2
29937    builtin and then its argument prototype would still apply.  */
29938 char pthread_create ();
29939 int
29940 main ()
29941 {
29942 pthread_create ();
29943   ;
29944   return 0;
29945 }
29946 _ACEOF
29947 rm -f conftest.$ac_objext conftest$ac_exeext
29948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29949   (eval $ac_link) 2>conftest.er1
29950   ac_status=$?
29951   grep -v '^ *+' conftest.er1 >conftest.err
29952   rm -f conftest.er1
29953   cat conftest.err >&5
29954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29955   (exit $ac_status); } &&
29956          { ac_try='test -z "$ac_c_werror_flag"
29957                          || test ! -s conftest.err'
29958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29959   (eval $ac_try) 2>&5
29960   ac_status=$?
29961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29962   (exit $ac_status); }; } &&
29963          { ac_try='test -s conftest$ac_exeext'
29964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29965   (eval $ac_try) 2>&5
29966   ac_status=$?
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); }; }; then
29969   ac_cv_lib_pthread_pthread_create=yes
29970 else
29971   echo "$as_me: failed program was:" >&5
29972 sed 's/^/| /' conftest.$ac_ext >&5
29973
29974 ac_cv_lib_pthread_pthread_create=no
29975 fi
29976 rm -f conftest.err conftest.$ac_objext \
29977       conftest$ac_exeext conftest.$ac_ext
29978 LIBS=$ac_check_lib_save_LIBS
29979 fi
29980 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29981 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29982 if test $ac_cv_lib_pthread_pthread_create = yes; then
29983   PTHREAD_LIB="-lpthread"
29984 else
29985   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29986 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29987 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29988   echo $ECHO_N "(cached) $ECHO_C" >&6
29989 else
29990   ac_check_lib_save_LIBS=$LIBS
29991 LIBS="-lpthreads  $LIBS"
29992 cat >conftest.$ac_ext <<_ACEOF
29993 /* confdefs.h.  */
29994 _ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h.  */
29998
29999 /* Override any gcc2 internal prototype to avoid an error.  */
30000 #ifdef __cplusplus
30001 extern "C"
30002 #endif
30003 /* We use char because int might match the return type of a gcc2
30004    builtin and then its argument prototype would still apply.  */
30005 char pthread_create ();
30006 int
30007 main ()
30008 {
30009 pthread_create ();
30010   ;
30011   return 0;
30012 }
30013 _ACEOF
30014 rm -f conftest.$ac_objext conftest$ac_exeext
30015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30016   (eval $ac_link) 2>conftest.er1
30017   ac_status=$?
30018   grep -v '^ *+' conftest.er1 >conftest.err
30019   rm -f conftest.er1
30020   cat conftest.err >&5
30021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30022   (exit $ac_status); } &&
30023          { ac_try='test -z "$ac_c_werror_flag"
30024                          || test ! -s conftest.err'
30025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30026   (eval $ac_try) 2>&5
30027   ac_status=$?
30028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30029   (exit $ac_status); }; } &&
30030          { ac_try='test -s conftest$ac_exeext'
30031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30032   (eval $ac_try) 2>&5
30033   ac_status=$?
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); }; }; then
30036   ac_cv_lib_pthreads_pthread_create=yes
30037 else
30038   echo "$as_me: failed program was:" >&5
30039 sed 's/^/| /' conftest.$ac_ext >&5
30040
30041 ac_cv_lib_pthreads_pthread_create=no
30042 fi
30043 rm -f conftest.err conftest.$ac_objext \
30044       conftest$ac_exeext conftest.$ac_ext
30045 LIBS=$ac_check_lib_save_LIBS
30046 fi
30047 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30048 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
30049 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30050   PTHREAD_LIB="-lpthreads"
30051 else
30052   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30053 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
30054 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30055   echo $ECHO_N "(cached) $ECHO_C" >&6
30056 else
30057   ac_check_lib_save_LIBS=$LIBS
30058 LIBS="-lc_r  $LIBS"
30059 cat >conftest.$ac_ext <<_ACEOF
30060 /* confdefs.h.  */
30061 _ACEOF
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h.  */
30065
30066 /* Override any gcc2 internal prototype to avoid an error.  */
30067 #ifdef __cplusplus
30068 extern "C"
30069 #endif
30070 /* We use char because int might match the return type of a gcc2
30071    builtin and then its argument prototype would still apply.  */
30072 char pthread_create ();
30073 int
30074 main ()
30075 {
30076 pthread_create ();
30077   ;
30078   return 0;
30079 }
30080 _ACEOF
30081 rm -f conftest.$ac_objext conftest$ac_exeext
30082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30083   (eval $ac_link) 2>conftest.er1
30084   ac_status=$?
30085   grep -v '^ *+' conftest.er1 >conftest.err
30086   rm -f conftest.er1
30087   cat conftest.err >&5
30088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30089   (exit $ac_status); } &&
30090          { ac_try='test -z "$ac_c_werror_flag"
30091                          || test ! -s conftest.err'
30092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30093   (eval $ac_try) 2>&5
30094   ac_status=$?
30095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30096   (exit $ac_status); }; } &&
30097          { ac_try='test -s conftest$ac_exeext'
30098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30099   (eval $ac_try) 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   ac_cv_lib_c_r_pthread_create=yes
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108 ac_cv_lib_c_r_pthread_create=no
30109 fi
30110 rm -f conftest.err conftest.$ac_objext \
30111       conftest$ac_exeext conftest.$ac_ext
30112 LIBS=$ac_check_lib_save_LIBS
30113 fi
30114 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30115 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30116 if test $ac_cv_lib_c_r_pthread_create = yes; then
30117   PTHREAD_LIB="-lc_r"
30118 else
30119   echo "$as_me:$LINENO: checking for pthread_create" >&5
30120 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30121 if test "${ac_cv_func_pthread_create+set}" = set; then
30122   echo $ECHO_N "(cached) $ECHO_C" >&6
30123 else
30124   cat >conftest.$ac_ext <<_ACEOF
30125 /* confdefs.h.  */
30126 _ACEOF
30127 cat confdefs.h >>conftest.$ac_ext
30128 cat >>conftest.$ac_ext <<_ACEOF
30129 /* end confdefs.h.  */
30130 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30132 #define pthread_create innocuous_pthread_create
30133
30134 /* System header to define __stub macros and hopefully few prototypes,
30135     which can conflict with char pthread_create (); below.
30136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30137     <limits.h> exists even on freestanding compilers.  */
30138
30139 #ifdef __STDC__
30140 # include <limits.h>
30141 #else
30142 # include <assert.h>
30143 #endif
30144
30145 #undef pthread_create
30146
30147 /* Override any gcc2 internal prototype to avoid an error.  */
30148 #ifdef __cplusplus
30149 extern "C"
30150 {
30151 #endif
30152 /* We use char because int might match the return type of a gcc2
30153    builtin and then its argument prototype would still apply.  */
30154 char pthread_create ();
30155 /* The GNU C library defines this for functions which it implements
30156     to always fail with ENOSYS.  Some functions are actually named
30157     something starting with __ and the normal name is an alias.  */
30158 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30159 choke me
30160 #else
30161 char (*f) () = pthread_create;
30162 #endif
30163 #ifdef __cplusplus
30164 }
30165 #endif
30166
30167 int
30168 main ()
30169 {
30170 return f != pthread_create;
30171   ;
30172   return 0;
30173 }
30174 _ACEOF
30175 rm -f conftest.$ac_objext conftest$ac_exeext
30176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30177   (eval $ac_link) 2>conftest.er1
30178   ac_status=$?
30179   grep -v '^ *+' conftest.er1 >conftest.err
30180   rm -f conftest.er1
30181   cat conftest.err >&5
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); } &&
30184          { ac_try='test -z "$ac_c_werror_flag"
30185                          || test ! -s conftest.err'
30186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30187   (eval $ac_try) 2>&5
30188   ac_status=$?
30189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30190   (exit $ac_status); }; } &&
30191          { ac_try='test -s conftest$ac_exeext'
30192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30193   (eval $ac_try) 2>&5
30194   ac_status=$?
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); }; }; then
30197   ac_cv_func_pthread_create=yes
30198 else
30199   echo "$as_me: failed program was:" >&5
30200 sed 's/^/| /' conftest.$ac_ext >&5
30201
30202 ac_cv_func_pthread_create=no
30203 fi
30204 rm -f conftest.err conftest.$ac_objext \
30205       conftest$ac_exeext conftest.$ac_ext
30206 fi
30207 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30208 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30209
30210
30211 fi
30212
30213
30214 fi
30215
30216
30217 fi
30218
30219
30220
30221 cat >>confdefs.h <<\_ACEOF
30222 #define FDLIBS 1
30223 _ACEOF
30224
30225
30226
30227 CFLAGS=${CFLAGS--O}
30228
30229 if test x$have_gcc = xyes ; then
30230    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30231    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30232 fi
30233 LDFLAGS=${LDFLAGS--O}
30234 DB_LIBS="${SQL_LFLAGS}"
30235 CPPFLAGS="$CPPFLAGS"
30236 CFLAGS="$CFLAGS"
30237
30238
30239
30240
30241
30242
30243
30244
30245
30246
30247
30248
30249
30250
30251
30252
30253 OBJLIST=
30254
30255
30256 lld="lld"
30257 llu="llu"
30258
30259 WCFLAGS=
30260 WLDFLAGS=
30261
30262 #
30263 # Finally we set appropriate distribution specific
30264 #  variables and defaults
30265 #
30266 # PFILES are platform specific files
30267 PFILES="platforms/Makefile"
30268 PSCMD="ps -e"
30269 WIN32=
30270 MACOSX=
30271 hostname=`uname -n | cut -d '.' -f 1`
30272 if test x${hostname} = x ; then
30273   hostname="localhost"
30274 fi
30275 case "$DISTNAME" in
30276 aix)
30277         DISTVER=`uname -r`
30278         PSCMD="ps -e -o pid,comm"
30279         PFILES="${PFILES} \
30280            platforms/aix/Makefile"
30281         TAPEDRIVE="/dev/rmt0.1"
30282   ;;
30283 alpha)
30284         DISTVER=`uname -r`
30285         PTHREAD_LIB="-lpthread -lexc"
30286         if test "${CC}" = "gcc" ; then
30287            lld="lld"
30288            llu="llu"
30289         else
30290            lld="ld"
30291            llu="lu"
30292         fi
30293         TAPEDRIVE="/dev/nrmt0"
30294   ;;
30295 bsdi)
30296         DISTVER=`uname -a |awk '{print $3}'`
30297         TAPEDRIVE="/dev/nrmt0"
30298         PTHREAD_LIB="-pthread"
30299         CFLAGS="${CFLAGS} -pthread"
30300         PSCMD="ps -ax -o pid,command"
30301         lld="qd"
30302         llu="qu"
30303         PFILES="${PFILES} \
30304             platforms/bsdi/Makefile \
30305             platforms/bsdi/bacula-fd \
30306             platforms/bsdi/bacula-sd \
30307             platforms/bsdi/bacula-dir"
30308         largefile_support="yes"
30309   ;;
30310 cygwin)
30311         DISTVER=`uname -a |awk '{print $3}'`
30312         TAPEDRIVE="/dev/nrst0"
30313         WIN32=win32
30314         WCFLAGS="-mwindows"
30315         WLDFLAGS="-mwindows"
30316   ;;
30317 darwin)
30318         DISTVER=`uname -r`
30319         TAPEDRIVE="/dev/nst0"
30320         PSCMD="ps -e -o pid,command"
30321         MACOSX=macosx
30322         PFILES="${PFILES} \
30323            platforms/darwin/Makefile"
30324   ;;
30325 debian)
30326         DISTVER=`cat /etc/debian_version`
30327         TAPEDRIVE="/dev/nrst0"
30328         PSCMD="ps -e -o pid,command"
30329   ;;
30330 freebsd)
30331         DISTVER=`uname -a |awk '{print $3}'`
30332         VER=`echo $DISTVER | cut -c 1`
30333         if test x$VER = x4 ; then
30334            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30335            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30336         fi
30337         lld="qd"
30338         llu="qu"
30339         TAPEDRIVE="/dev/nrsa0"
30340         PSCMD="ps -ax -o pid,command"
30341         PFILES="${PFILES} \
30342             platforms/freebsd/Makefile \
30343             platforms/freebsd/bacula-fd \
30344             platforms/freebsd/bacula-sd \
30345             platforms/freebsd/bacula-dir"
30346         largefile_support="yes"
30347   ;;
30348 hpux)
30349         PSCMD="UNIX95=1; ps -e -o pid,comm"
30350         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30351         DISTVER=`uname -r`
30352         TAPEDRIVE="/dev/rmt/0hnb"
30353         PTHREAD_LIB="-lpthread"
30354         cat >>confdefs.h <<\_ACEOF
30355 #define _INCLUDE_LONGLONG 1
30356 _ACEOF
30357
30358   ;;
30359 irix)
30360         DISTVER=`uname -r`
30361         TAPEDRIVE="/dev/rmt/0cbn"
30362         PSCMD="ps -e -o pid,comm"
30363         PFILES="${PFILES} \
30364             platforms/irix/Makefile \
30365             platforms/irix/bacula-fd \
30366             platforms/irix/bacula-sd \
30367             platforms/irix/bacula-dir"
30368   ;;
30369 netbsd)
30370         DISTVER=`uname -a |awk '{print $3}'`
30371         lld="qd"
30372         llu="qu"
30373         TAPEDRIVE="/dev/nrst0"
30374         PSCMD="ps -ax -o pid,command"
30375         PTHREAD_LIB="-pthread"
30376         CFLAGS="${CFLAGS} -pthread"
30377   ;;
30378 openbsd)
30379         DISTVER=`uname -a |awk '{print $3}'`
30380         lld="qd"
30381         llu="qu"
30382         TAPEDRIVE="/dev/nrst0"
30383         PSCMD="ps -ax -o pid,command"
30384         PTHREAD_LIB="-pthread"
30385         CFLAGS="${CFLAGS} -pthread"
30386         PFILES="${PFILES} \
30387             platforms/openbsd/Makefile \
30388             platforms/openbsd/bacula-fd \
30389             platforms/openbsd/bacula-sd \
30390             platforms/openbsd/bacula-dir"
30391   ;;
30392 redhat)
30393         if test -f /etc/whitebox-release ; then
30394            f=/etc/whitebox-release
30395         else
30396            f=/etc/redhat-release
30397         fi
30398         if test `cat $f | grep release |\
30399                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30400            DISTVER="Enterprise "`cat $f | grep release |\
30401                     cut -f 6 -d ' '`
30402         else
30403             DISTVER=`cat /etc/redhat-release | grep release |\
30404                      cut -f 5 -d ' '`
30405         fi
30406         TAPEDRIVE="/dev/nst0"
30407         PSCMD="ps -e -o pid,command"
30408         PFILES="${PFILES} \
30409             platforms/redhat/Makefile \
30410             platforms/redhat/bacula-fd \
30411             platforms/redhat/bacula-sd \
30412             platforms/redhat/bacula-dir \
30413             platforms/redhat/bacula.spec \
30414             "
30415   ;;
30416 mandrake)
30417         DISTVER=`cat /etc/mandrake-release | grep release |\
30418            cut -f 5 -d ' '`
30419         TAPEDRIVE="/dev/nst0"
30420         PSCMD="ps -e -o pid,command"
30421         PFILES="${PFILES} \
30422             platforms/mandrake/Makefile \
30423             platforms/mandrake/bacula-fd \
30424             platforms/mandrake/bacula-sd \
30425             platforms/mandrake/bacula-dir \
30426             platforms/mandrake/bacula.spec \
30427             "
30428   ;;
30429 gentoo)
30430         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30431         TAPEDRIVE="/dev/nst0"
30432         PSCMD="ps -e -o pid,command"
30433         PFILES="${PFILES} \
30434             platforms/gentoo/Makefile \
30435          platforms/gentoo/bacula-init \
30436             platforms/gentoo/bacula-fd \
30437             platforms/gentoo/bacula-sd \
30438             platforms/gentoo/bacula-dir"
30439   ;;
30440 slackware)
30441         DISTVER=`cat /etc/slackware-version`
30442         TAPEDRIVE="/dev/nst0"
30443         PSCMD="ps -e -o pid,command"
30444         PFILES="${PFILES} \
30445             platforms/slackware/Makefile \
30446             platforms/slackware/rc.bacula-fd \
30447             platforms/slackware/rc.bacula-sd \
30448             platforms/slackware/rc.bacula-dir\
30449             platforms/slackware/functions.bacula"
30450   ;;
30451 solaris)
30452         DISTVER=`uname -r`
30453         TAPEDRIVE="/dev/rmt/0cbn"
30454         PSCMD="ps -e -o pid,comm"
30455         PFILES="${PFILES} \
30456             platforms/solaris/Makefile \
30457             platforms/solaris/bacula-fd \
30458             platforms/solaris/bacula-sd \
30459             platforms/solaris/bacula-dir"
30460         if test x$DISTVER = x5.6 ; then
30461             cat >>confdefs.h <<\_ACEOF
30462 #define HAVE_OLD_SOCKOPT 1
30463 _ACEOF
30464
30465         fi
30466         LIBS="$LIBS -lresolv"
30467   ;;
30468 suse)
30469         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30470             cut -f 3 -d ' '`
30471         TAPEDRIVE="/dev/nst0"
30472         PSCMD="ps -e -o pid,command"
30473         PFILES="${PFILES} \
30474             platforms/suse/Makefile \
30475             platforms/suse/bacula-fd \
30476             platforms/suse/bacula-sd \
30477             platforms/suse/bacula-dir \
30478             platforms/suse/bacula \
30479             platforms/suse/bacula.spec"
30480   ;;
30481 suse5)
30482         DISTNAME=suse
30483         DISTVER=5.x
30484         TAPEDRIVE="/dev/nst0"
30485         PSCMD="ps -e -o pid,command"
30486         PFILES="${PFILES} \
30487             platforms/suse/Makefile \
30488             platforms/suse/bacula-fd \
30489             platforms/suse/bacula-sd \
30490             platforms/suse/bacula-dir"
30491   ;;
30492 unknown)
30493         DISTVER=unknown
30494         TAPEDRIVE="/dev/nst0"
30495   ;;
30496 *)
30497   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30498   ;;
30499 esac
30500
30501
30502
30503 LIBS="$PTHREAD_LIB $LIBS"
30504
30505 cat >>confdefs.h <<_ACEOF
30506 #define lld "$lld"
30507 _ACEOF
30508
30509 cat >>confdefs.h <<_ACEOF
30510 #define llu "$llu"
30511 _ACEOF
30512
30513
30514
30515
30516
30517
30518
30519
30520 MCOMMON=./autoconf/Make.common
30521
30522
30523 if test "x${subsysdir}" = "x${sbindir}" ; then
30524    echo " "
30525    echo " "
30526    echo "You have set both --sbindir and --with-subsys-dir"
30527    echo "  equal to: ${subsysdir} "
30528    echo "This is not permitted. Please reconfigure."
30529    echo " "
30530    echo "Aborting configuration ..."
30531    echo " "
30532    echo " "
30533    exit 1
30534 fi
30535
30536                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/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/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator 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 scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-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/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 po/Makefile.in $PFILES"
30537           ac_config_commands="$ac_config_commands default"
30538 cat >confcache <<\_ACEOF
30539 # This file is a shell script that caches the results of configure
30540 # tests run on this system so they can be shared between configure
30541 # scripts and configure runs, see configure's option --config-cache.
30542 # It is not useful on other systems.  If it contains results you don't
30543 # want to keep, you may remove or edit it.
30544 #
30545 # config.status only pays attention to the cache file if you give it
30546 # the --recheck option to rerun configure.
30547 #
30548 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30549 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30550 # following values.
30551
30552 _ACEOF
30553
30554 # The following way of writing the cache mishandles newlines in values,
30555 # but we know of no workaround that is simple, portable, and efficient.
30556 # So, don't put newlines in cache variables' values.
30557 # Ultrix sh set writes to stderr and can't be redirected directly,
30558 # and sets the high bit in the cache file unless we assign to the vars.
30559 {
30560   (set) 2>&1 |
30561     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30562     *ac_space=\ *)
30563       # `set' does not quote correctly, so add quotes (double-quote
30564       # substitution turns \\\\ into \\, and sed turns \\ into \).
30565       sed -n \
30566         "s/'/'\\\\''/g;
30567           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30568       ;;
30569     *)
30570       # `set' quotes correctly as required by POSIX, so do not add quotes.
30571       sed -n \
30572         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30573       ;;
30574     esac;
30575 } |
30576   sed '
30577      t clear
30578      : clear
30579      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30580      t end
30581      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30582      : end' >>confcache
30583 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30584   if test -w $cache_file; then
30585     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30586     cat confcache >$cache_file
30587   else
30588     echo "not updating unwritable cache $cache_file"
30589   fi
30590 fi
30591 rm -f confcache
30592
30593 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30594 # Let make expand exec_prefix.
30595 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30596
30597 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30598 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30599 # trailing colons and then remove the whole line if VPATH becomes empty
30600 # (actually we leave an empty line to preserve line numbers).
30601 if test "x$srcdir" = x.; then
30602   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30603 s/:*\$(srcdir):*/:/;
30604 s/:*\${srcdir}:*/:/;
30605 s/:*@srcdir@:*/:/;
30606 s/^\([^=]*=[     ]*\):*/\1/;
30607 s/:*$//;
30608 s/^[^=]*=[       ]*$//;
30609 }'
30610 fi
30611
30612 DEFS=-DHAVE_CONFIG_H
30613
30614 ac_libobjs=
30615 ac_ltlibobjs=
30616 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30617   # 1. Remove the extension, and $U if already installed.
30618   ac_i=`echo "$ac_i" |
30619          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30620   # 2. Add them.
30621   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30622   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30623 done
30624 LIBOBJS=$ac_libobjs
30625
30626 LTLIBOBJS=$ac_ltlibobjs
30627
30628
30629
30630 : ${CONFIG_STATUS=./config.status}
30631 ac_clean_files_save=$ac_clean_files
30632 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30633 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30634 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30635 cat >$CONFIG_STATUS <<_ACEOF
30636 #! $SHELL
30637 # Generated by $as_me.
30638 # Run this file to recreate the current configuration.
30639 # Compiler output produced by configure, useful for debugging
30640 # configure, is in config.log if it exists.
30641
30642 debug=false
30643 ac_cs_recheck=false
30644 ac_cs_silent=false
30645 SHELL=\${CONFIG_SHELL-$SHELL}
30646 _ACEOF
30647
30648 cat >>$CONFIG_STATUS <<\_ACEOF
30649 ## --------------------- ##
30650 ## M4sh Initialization.  ##
30651 ## --------------------- ##
30652
30653 # Be Bourne compatible
30654 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30655   emulate sh
30656   NULLCMD=:
30657   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30658   # is contrary to our usage.  Disable this feature.
30659   alias -g '${1+"$@"}'='"$@"'
30660 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30661   set -o posix
30662 fi
30663 DUALCASE=1; export DUALCASE # for MKS sh
30664
30665 # Support unset when possible.
30666 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30667   as_unset=unset
30668 else
30669   as_unset=false
30670 fi
30671
30672
30673 # Work around bugs in pre-3.0 UWIN ksh.
30674 $as_unset ENV MAIL MAILPATH
30675 PS1='$ '
30676 PS2='> '
30677 PS4='+ '
30678
30679 # NLS nuisances.
30680 for as_var in \
30681   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30682   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30683   LC_TELEPHONE LC_TIME
30684 do
30685   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30686     eval $as_var=C; export $as_var
30687   else
30688     $as_unset $as_var
30689   fi
30690 done
30691
30692 # Required to use basename.
30693 if expr a : '\(a\)' >/dev/null 2>&1; then
30694   as_expr=expr
30695 else
30696   as_expr=false
30697 fi
30698
30699 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30700   as_basename=basename
30701 else
30702   as_basename=false
30703 fi
30704
30705
30706 # Name of the executable.
30707 as_me=`$as_basename "$0" ||
30708 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30709          X"$0" : 'X\(//\)$' \| \
30710          X"$0" : 'X\(/\)$' \| \
30711          .     : '\(.\)' 2>/dev/null ||
30712 echo X/"$0" |
30713     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30714           /^X\/\(\/\/\)$/{ s//\1/; q; }
30715           /^X\/\(\/\).*/{ s//\1/; q; }
30716           s/.*/./; q'`
30717
30718
30719 # PATH needs CR, and LINENO needs CR and PATH.
30720 # Avoid depending upon Character Ranges.
30721 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30722 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30723 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30724 as_cr_digits='0123456789'
30725 as_cr_alnum=$as_cr_Letters$as_cr_digits
30726
30727 # The user is always right.
30728 if test "${PATH_SEPARATOR+set}" != set; then
30729   echo "#! /bin/sh" >conf$$.sh
30730   echo  "exit 0"   >>conf$$.sh
30731   chmod +x conf$$.sh
30732   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30733     PATH_SEPARATOR=';'
30734   else
30735     PATH_SEPARATOR=:
30736   fi
30737   rm -f conf$$.sh
30738 fi
30739
30740
30741   as_lineno_1=$LINENO
30742   as_lineno_2=$LINENO
30743   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30744   test "x$as_lineno_1" != "x$as_lineno_2" &&
30745   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30746   # Find who we are.  Look in the path if we contain no path at all
30747   # relative or not.
30748   case $0 in
30749     *[\\/]* ) as_myself=$0 ;;
30750     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30751 for as_dir in $PATH
30752 do
30753   IFS=$as_save_IFS
30754   test -z "$as_dir" && as_dir=.
30755   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30756 done
30757
30758        ;;
30759   esac
30760   # We did not find ourselves, most probably we were run as `sh COMMAND'
30761   # in which case we are not to be found in the path.
30762   if test "x$as_myself" = x; then
30763     as_myself=$0
30764   fi
30765   if test ! -f "$as_myself"; then
30766     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30767 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30768    { (exit 1); exit 1; }; }
30769   fi
30770   case $CONFIG_SHELL in
30771   '')
30772     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30773 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30774 do
30775   IFS=$as_save_IFS
30776   test -z "$as_dir" && as_dir=.
30777   for as_base in sh bash ksh sh5; do
30778          case $as_dir in
30779          /*)
30780            if ("$as_dir/$as_base" -c '
30781   as_lineno_1=$LINENO
30782   as_lineno_2=$LINENO
30783   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30784   test "x$as_lineno_1" != "x$as_lineno_2" &&
30785   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30786              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30787              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30788              CONFIG_SHELL=$as_dir/$as_base
30789              export CONFIG_SHELL
30790              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30791            fi;;
30792          esac
30793        done
30794 done
30795 ;;
30796   esac
30797
30798   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30799   # uniformly replaced by the line number.  The first 'sed' inserts a
30800   # line-number line before each line; the second 'sed' does the real
30801   # work.  The second script uses 'N' to pair each line-number line
30802   # with the numbered line, and appends trailing '-' during
30803   # substitution so that $LINENO is not a special case at line end.
30804   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30805   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30806   sed '=' <$as_myself |
30807     sed '
30808       N
30809       s,$,-,
30810       : loop
30811       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30812       t loop
30813       s,-$,,
30814       s,^['$as_cr_digits']*\n,,
30815     ' >$as_me.lineno &&
30816   chmod +x $as_me.lineno ||
30817     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30818 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30819    { (exit 1); exit 1; }; }
30820
30821   # Don't try to exec as it changes $[0], causing all sort of problems
30822   # (the dirname of $[0] is not the place where we might find the
30823   # original and so on.  Autoconf is especially sensible to this).
30824   . ./$as_me.lineno
30825   # Exit status is that of the last command.
30826   exit
30827 }
30828
30829
30830 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30831   *c*,-n*) ECHO_N= ECHO_C='
30832 ' ECHO_T='      ' ;;
30833   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30834   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30835 esac
30836
30837 if expr a : '\(a\)' >/dev/null 2>&1; then
30838   as_expr=expr
30839 else
30840   as_expr=false
30841 fi
30842
30843 rm -f conf$$ conf$$.exe conf$$.file
30844 echo >conf$$.file
30845 if ln -s conf$$.file conf$$ 2>/dev/null; then
30846   # We could just check for DJGPP; but this test a) works b) is more generic
30847   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30848   if test -f conf$$.exe; then
30849     # Don't use ln at all; we don't have any links
30850     as_ln_s='cp -p'
30851   else
30852     as_ln_s='ln -s'
30853   fi
30854 elif ln conf$$.file conf$$ 2>/dev/null; then
30855   as_ln_s=ln
30856 else
30857   as_ln_s='cp -p'
30858 fi
30859 rm -f conf$$ conf$$.exe conf$$.file
30860
30861 if mkdir -p . 2>/dev/null; then
30862   as_mkdir_p=:
30863 else
30864   test -d ./-p && rmdir ./-p
30865   as_mkdir_p=false
30866 fi
30867
30868 as_executable_p="test -f"
30869
30870 # Sed expression to map a string onto a valid CPP name.
30871 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30872
30873 # Sed expression to map a string onto a valid variable name.
30874 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30875
30876
30877 # IFS
30878 # We need space, tab and new line, in precisely that order.
30879 as_nl='
30880 '
30881 IFS="   $as_nl"
30882
30883 # CDPATH.
30884 $as_unset CDPATH
30885
30886 exec 6>&1
30887
30888 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30889 # report actual input values of CONFIG_FILES etc. instead of their
30890 # values after options handling.  Logging --version etc. is OK.
30891 exec 5>>config.log
30892 {
30893   echo
30894   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30895 ## Running $as_me. ##
30896 _ASBOX
30897 } >&5
30898 cat >&5 <<_CSEOF
30899
30900 This file was extended by $as_me, which was
30901 generated by GNU Autoconf 2.59.  Invocation command line was
30902
30903   CONFIG_FILES    = $CONFIG_FILES
30904   CONFIG_HEADERS  = $CONFIG_HEADERS
30905   CONFIG_LINKS    = $CONFIG_LINKS
30906   CONFIG_COMMANDS = $CONFIG_COMMANDS
30907   $ $0 $@
30908
30909 _CSEOF
30910 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30911 echo >&5
30912 _ACEOF
30913
30914 # Files that config.status was made for.
30915 if test -n "$ac_config_files"; then
30916   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30917 fi
30918
30919 if test -n "$ac_config_headers"; then
30920   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30921 fi
30922
30923 if test -n "$ac_config_links"; then
30924   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30925 fi
30926
30927 if test -n "$ac_config_commands"; then
30928   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30929 fi
30930
30931 cat >>$CONFIG_STATUS <<\_ACEOF
30932
30933 ac_cs_usage="\
30934 \`$as_me' instantiates files from templates according to the
30935 current configuration.
30936
30937 Usage: $0 [OPTIONS] [FILE]...
30938
30939   -h, --help       print this help, then exit
30940   -V, --version    print version number, then exit
30941   -q, --quiet      do not print progress messages
30942   -d, --debug      don't remove temporary files
30943       --recheck    update $as_me by reconfiguring in the same conditions
30944   --file=FILE[:TEMPLATE]
30945                    instantiate the configuration file FILE
30946   --header=FILE[:TEMPLATE]
30947                    instantiate the configuration header FILE
30948
30949 Configuration files:
30950 $config_files
30951
30952 Configuration headers:
30953 $config_headers
30954
30955 Configuration commands:
30956 $config_commands
30957
30958 Report bugs to <bug-autoconf@gnu.org>."
30959 _ACEOF
30960
30961 cat >>$CONFIG_STATUS <<_ACEOF
30962 ac_cs_version="\\
30963 config.status
30964 configured by $0, generated by GNU Autoconf 2.59,
30965   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30966
30967 Copyright (C) 2003 Free Software Foundation, Inc.
30968 This config.status script is free software; the Free Software Foundation
30969 gives unlimited permission to copy, distribute and modify it."
30970 srcdir=$srcdir
30971 INSTALL="$INSTALL"
30972 _ACEOF
30973
30974 cat >>$CONFIG_STATUS <<\_ACEOF
30975 # If no file are specified by the user, then we need to provide default
30976 # value.  By we need to know if files were specified by the user.
30977 ac_need_defaults=:
30978 while test $# != 0
30979 do
30980   case $1 in
30981   --*=*)
30982     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30983     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30984     ac_shift=:
30985     ;;
30986   -*)
30987     ac_option=$1
30988     ac_optarg=$2
30989     ac_shift=shift
30990     ;;
30991   *) # This is not an option, so the user has probably given explicit
30992      # arguments.
30993      ac_option=$1
30994      ac_need_defaults=false;;
30995   esac
30996
30997   case $ac_option in
30998   # Handling of the options.
30999 _ACEOF
31000 cat >>$CONFIG_STATUS <<\_ACEOF
31001   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31002     ac_cs_recheck=: ;;
31003   --version | --vers* | -V )
31004     echo "$ac_cs_version"; exit 0 ;;
31005   --he | --h)
31006     # Conflict between --help and --header
31007     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31008 Try \`$0 --help' for more information." >&5
31009 echo "$as_me: error: ambiguous option: $1
31010 Try \`$0 --help' for more information." >&2;}
31011    { (exit 1); exit 1; }; };;
31012   --help | --hel | -h )
31013     echo "$ac_cs_usage"; exit 0 ;;
31014   --debug | --d* | -d )
31015     debug=: ;;
31016   --file | --fil | --fi | --f )
31017     $ac_shift
31018     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31019     ac_need_defaults=false;;
31020   --header | --heade | --head | --hea )
31021     $ac_shift
31022     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31023     ac_need_defaults=false;;
31024   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31025   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31026     ac_cs_silent=: ;;
31027
31028   # This is an error.
31029   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31030 Try \`$0 --help' for more information." >&5
31031 echo "$as_me: error: unrecognized option: $1
31032 Try \`$0 --help' for more information." >&2;}
31033    { (exit 1); exit 1; }; } ;;
31034
31035   *) ac_config_targets="$ac_config_targets $1" ;;
31036
31037   esac
31038   shift
31039 done
31040
31041 ac_configure_extra_args=
31042
31043 if $ac_cs_silent; then
31044   exec 6>/dev/null
31045   ac_configure_extra_args="$ac_configure_extra_args --silent"
31046 fi
31047
31048 _ACEOF
31049 cat >>$CONFIG_STATUS <<_ACEOF
31050 if \$ac_cs_recheck; then
31051   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31052   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31053 fi
31054
31055 _ACEOF
31056
31057 cat >>$CONFIG_STATUS <<_ACEOF
31058 #
31059 # INIT-COMMANDS section.
31060 #
31061
31062 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31063     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31064     # from automake.
31065     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31066     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31067     LINGUAS="${LINGUAS-%UNSET%}"
31068
31069
31070 _ACEOF
31071
31072
31073
31074 cat >>$CONFIG_STATUS <<\_ACEOF
31075 for ac_config_target in $ac_config_targets
31076 do
31077   case "$ac_config_target" in
31078   # Handling of arguments.
31079   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31080   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31081   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31082   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31083   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31084   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31085   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31086   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31087   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31088   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31089   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31090   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31091   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31092   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31093   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31094   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31095   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31096   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31097   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31098   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31099   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31100   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31101   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31102   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31103   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31104   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31105   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31106   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31107   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31108   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31109   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31110   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31111   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31112   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31113   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31114   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31115   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31116   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31117   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31118   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31119   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31120   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31121   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31122   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31123   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31124   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31125   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31126   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31127   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31128   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31129   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31130   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31131   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31132   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31133   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31134   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31135   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31136   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31137   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31138   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31139   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31140   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31141   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31142   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31143   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31144   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31145   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31146   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31147   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31148   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31149   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31150   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31151   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31152   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31153   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31154   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31155   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31156   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31157   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31158   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31159   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31160   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31161   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31162   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31163   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31164   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31165   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31166   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31167   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31168   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31169   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31170   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31171   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31172   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31173   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31174   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31175   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31176   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31177   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31178   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31179   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31180   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31181   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31182   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31183   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31184   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31185   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31186 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31187    { (exit 1); exit 1; }; };;
31188   esac
31189 done
31190
31191 # If the user did not use the arguments to specify the items to instantiate,
31192 # then the envvar interface is used.  Set only those that are not.
31193 # We use the long form for the default assignment because of an extremely
31194 # bizarre bug on SunOS 4.1.3.
31195 if $ac_need_defaults; then
31196   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31197   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31198   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31199 fi
31200
31201 # Have a temporary directory for convenience.  Make it in the build tree
31202 # simply because there is no reason to put it here, and in addition,
31203 # creating and moving files from /tmp can sometimes cause problems.
31204 # Create a temporary directory, and hook for its removal unless debugging.
31205 $debug ||
31206 {
31207   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31208   trap '{ (exit 1); exit 1; }' 1 2 13 15
31209 }
31210
31211 # Create a (secure) tmp directory for tmp files.
31212
31213 {
31214   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31215   test -n "$tmp" && test -d "$tmp"
31216 }  ||
31217 {
31218   tmp=./confstat$$-$RANDOM
31219   (umask 077 && mkdir $tmp)
31220 } ||
31221 {
31222    echo "$me: cannot create a temporary directory in ." >&2
31223    { (exit 1); exit 1; }
31224 }
31225
31226 _ACEOF
31227
31228 cat >>$CONFIG_STATUS <<_ACEOF
31229
31230 #
31231 # CONFIG_FILES section.
31232 #
31233
31234 # No need to generate the scripts if there are no CONFIG_FILES.
31235 # This happens for instance when ./config.status config.h
31236 if test -n "\$CONFIG_FILES"; then
31237   # Protect against being on the right side of a sed subst in config.status.
31238   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31239    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31240 s,@SHELL@,$SHELL,;t t
31241 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31242 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31243 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31244 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31245 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31246 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31247 s,@exec_prefix@,$exec_prefix,;t t
31248 s,@prefix@,$prefix,;t t
31249 s,@program_transform_name@,$program_transform_name,;t t
31250 s,@bindir@,$bindir,;t t
31251 s,@sbindir@,$sbindir,;t t
31252 s,@libexecdir@,$libexecdir,;t t
31253 s,@datadir@,$datadir,;t t
31254 s,@sysconfdir@,$sysconfdir,;t t
31255 s,@sharedstatedir@,$sharedstatedir,;t t
31256 s,@localstatedir@,$localstatedir,;t t
31257 s,@libdir@,$libdir,;t t
31258 s,@includedir@,$includedir,;t t
31259 s,@oldincludedir@,$oldincludedir,;t t
31260 s,@infodir@,$infodir,;t t
31261 s,@mandir@,$mandir,;t t
31262 s,@build_alias@,$build_alias,;t t
31263 s,@host_alias@,$host_alias,;t t
31264 s,@target_alias@,$target_alias,;t t
31265 s,@DEFS@,$DEFS,;t t
31266 s,@ECHO_C@,$ECHO_C,;t t
31267 s,@ECHO_N@,$ECHO_N,;t t
31268 s,@ECHO_T@,$ECHO_T,;t t
31269 s,@LIBS@,$LIBS,;t t
31270 s,@BUILD_DIR@,$BUILD_DIR,;t t
31271 s,@TOP_DIR@,$TOP_DIR,;t t
31272 s,@TRUEPRG@,$TRUEPRG,;t t
31273 s,@FALSEPRG@,$FALSEPRG,;t t
31274 s,@VERSION@,$VERSION,;t t
31275 s,@DATE@,$DATE,;t t
31276 s,@LSMDATE@,$LSMDATE,;t t
31277 s,@CC@,$CC,;t t
31278 s,@CFLAGS@,$CFLAGS,;t t
31279 s,@LDFLAGS@,$LDFLAGS,;t t
31280 s,@CPPFLAGS@,$CPPFLAGS,;t t
31281 s,@ac_ct_CC@,$ac_ct_CC,;t t
31282 s,@EXEEXT@,$EXEEXT,;t t
31283 s,@OBJEXT@,$OBJEXT,;t t
31284 s,@CXX@,$CXX,;t t
31285 s,@CXXFLAGS@,$CXXFLAGS,;t t
31286 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31287 s,@CPP@,$CPP,;t t
31288 s,@EGREP@,$EGREP,;t t
31289 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31290 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31291 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31292 s,@RANLIB@,$RANLIB,;t t
31293 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31294 s,@MV@,$MV,;t t
31295 s,@RM@,$RM,;t t
31296 s,@CP@,$CP,;t t
31297 s,@SED@,$SED,;t t
31298 s,@ECHO@,$ECHO,;t t
31299 s,@CMP@,$CMP,;t t
31300 s,@TBL@,$TBL,;t t
31301 s,@AR@,$AR,;t t
31302 s,@OPENSSL@,$OPENSSL,;t t
31303 s,@MTX@,$MTX,;t t
31304 s,@DD@,$DD,;t t
31305 s,@MKISOFS@,$MKISOFS,;t t
31306 s,@PYTHON@,$PYTHON,;t t
31307 s,@GROWISOFS@,$GROWISOFS,;t t
31308 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31309 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31310 s,@PKGCONFIG@,$PKGCONFIG,;t t
31311 s,@QMAKE@,$QMAKE,;t t
31312 s,@QMAKEQT4@,$QMAKEQT4,;t t
31313 s,@WXCONFIG@,$WXCONFIG,;t t
31314 s,@WXFLAGS@,$WXFLAGS,;t t
31315 s,@CDRECORD@,$CDRECORD,;t t
31316 s,@PIDOF@,$PIDOF,;t t
31317 s,@AWK@,$AWK,;t t
31318 s,@ARFLAGS@,$ARFLAGS,;t t
31319 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31320 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31321 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31322 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31323 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31324 s,@build@,$build,;t t
31325 s,@build_cpu@,$build_cpu,;t t
31326 s,@build_vendor@,$build_vendor,;t t
31327 s,@build_os@,$build_os,;t t
31328 s,@host@,$host,;t t
31329 s,@host_cpu@,$host_cpu,;t t
31330 s,@host_vendor@,$host_vendor,;t t
31331 s,@host_os@,$host_os,;t t
31332 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31333 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31334 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31335 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31336 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31337 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31338 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31339 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31340 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31341 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31342 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31343 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31344 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31345 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31346 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31347 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31348 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31349 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31350 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31351 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31352 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31353 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31354 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31355 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31356 s,@SET_MAKE@,$SET_MAKE,;t t
31357 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31358 s,@USE_NLS@,$USE_NLS,;t t
31359 s,@MSGFMT@,$MSGFMT,;t t
31360 s,@GMSGFMT@,$GMSGFMT,;t t
31361 s,@XGETTEXT@,$XGETTEXT,;t t
31362 s,@MSGMERGE@,$MSGMERGE,;t t
31363 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31364 s,@LIBICONV@,$LIBICONV,;t t
31365 s,@LTLIBICONV@,$LTLIBICONV,;t t
31366 s,@INTLLIBS@,$INTLLIBS,;t t
31367 s,@LIBINTL@,$LIBINTL,;t t
31368 s,@LTLIBINTL@,$LTLIBINTL,;t t
31369 s,@POSUB@,$POSUB,;t t
31370 s,@GLIBC2@,$GLIBC2,;t t
31371 s,@ALLOCA@,$ALLOCA,;t t
31372 s,@GLIBC21@,$GLIBC21,;t t
31373 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31374 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31375 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31376 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31377 s,@INTLBISON@,$INTLBISON,;t t
31378 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31379 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31380 s,@CATOBJEXT@,$CATOBJEXT,;t t
31381 s,@DATADIRNAME@,$DATADIRNAME,;t t
31382 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31383 s,@GENCAT@,$GENCAT,;t t
31384 s,@INTLOBJS@,$INTLOBJS,;t t
31385 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31386 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31387 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31388 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31389 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31390 s,@GNOME_DIR@,$GNOME_DIR,;t t
31391 s,@BAT_DIR@,$BAT_DIR,;t t
31392 s,@QWT_INC@,$QWT_INC,;t t
31393 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31394 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31395 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31396 s,@WX_DIR@,$WX_DIR,;t t
31397 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31398 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31399 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31400 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31401 s,@STATIC_FD@,$STATIC_FD,;t t
31402 s,@STATIC_SD@,$STATIC_SD,;t t
31403 s,@STATIC_DIR@,$STATIC_DIR,;t t
31404 s,@STATIC_CONS@,$STATIC_CONS,;t t
31405 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31406 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31407 s,@ALL_DIRS@,$ALL_DIRS,;t t
31408 s,@DIRD_DIR@,$DIRD_DIR,;t t
31409 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31410 s,@STORED_DIR@,$STORED_DIR,;t t
31411 s,@CONS_INC@,$CONS_INC,;t t
31412 s,@CONS_OBJ@,$CONS_OBJ,;t t
31413 s,@CONS_SRC@,$CONS_SRC,;t t
31414 s,@CONS_LIBS@,$CONS_LIBS,;t t
31415 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31416 s,@READLINE_SRC@,$READLINE_SRC,;t t
31417 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31418 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31419 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31420 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31421 s,@working_dir@,$working_dir,;t t
31422 s,@scriptdir@,$scriptdir,;t t
31423 s,@dump_email@,$dump_email,;t t
31424 s,@job_email@,$job_email,;t t
31425 s,@smtp_host@,$smtp_host,;t t
31426 s,@piddir@,$piddir,;t t
31427 s,@subsysdir@,$subsysdir,;t t
31428 s,@baseport@,$baseport,;t t
31429 s,@dir_port@,$dir_port,;t t
31430 s,@fd_port@,$fd_port,;t t
31431 s,@sd_port@,$sd_port,;t t
31432 s,@dir_password@,$dir_password,;t t
31433 s,@fd_password@,$fd_password,;t t
31434 s,@sd_password@,$sd_password,;t t
31435 s,@mon_dir_password@,$mon_dir_password,;t t
31436 s,@mon_fd_password@,$mon_fd_password,;t t
31437 s,@mon_sd_password@,$mon_sd_password,;t t
31438 s,@db_name@,$db_name,;t t
31439 s,@db_user@,$db_user,;t t
31440 s,@dir_user@,$dir_user,;t t
31441 s,@dir_group@,$dir_group,;t t
31442 s,@sd_user@,$sd_user,;t t
31443 s,@sd_group@,$sd_group,;t t
31444 s,@fd_user@,$fd_user,;t t
31445 s,@fd_group@,$fd_group,;t t
31446 s,@SBINPERM@,$SBINPERM,;t t
31447 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31448 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31449 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31450 s,@cats@,$cats,;t t
31451 s,@DB_TYPE@,$DB_TYPE,;t t
31452 s,@GETCONF@,$GETCONF,;t t
31453 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31454 s,@X_CFLAGS@,$X_CFLAGS,;t t
31455 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31456 s,@X_LIBS@,$X_LIBS,;t t
31457 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31458 s,@LIBOBJS@,$LIBOBJS,;t t
31459 s,@FDLIBS@,$FDLIBS,;t t
31460 s,@DEBUG@,$DEBUG,;t t
31461 s,@DINCLUDE@,$DINCLUDE,;t t
31462 s,@DLIB@,$DLIB,;t t
31463 s,@DB_LIBS@,$DB_LIBS,;t t
31464 s,@WCFLAGS@,$WCFLAGS,;t t
31465 s,@WLDFLAGS@,$WLDFLAGS,;t t
31466 s,@WRAPLIBS@,$WRAPLIBS,;t t
31467 s,@OBJLIST@,$OBJLIST,;t t
31468 s,@hostname@,$hostname,;t t
31469 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31470 s,@PSCMD@,$PSCMD,;t t
31471 s,@WIN32@,$WIN32,;t t
31472 s,@MACOSX@,$MACOSX,;t t
31473 s,@DISTNAME@,$DISTNAME,;t t
31474 s,@DISTVER@,$DISTVER,;t t
31475 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31476 /@MCOMMON@/r $MCOMMON
31477 s,@MCOMMON@,,;t t
31478 CEOF
31479
31480 _ACEOF
31481
31482   cat >>$CONFIG_STATUS <<\_ACEOF
31483   # Split the substitutions into bite-sized pieces for seds with
31484   # small command number limits, like on Digital OSF/1 and HP-UX.
31485   ac_max_sed_lines=48
31486   ac_sed_frag=1 # Number of current file.
31487   ac_beg=1 # First line for current file.
31488   ac_end=$ac_max_sed_lines # Line after last line for current file.
31489   ac_more_lines=:
31490   ac_sed_cmds=
31491   while $ac_more_lines; do
31492     if test $ac_beg -gt 1; then
31493       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31494     else
31495       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31496     fi
31497     if test ! -s $tmp/subs.frag; then
31498       ac_more_lines=false
31499     else
31500       # The purpose of the label and of the branching condition is to
31501       # speed up the sed processing (if there are no `@' at all, there
31502       # is no need to browse any of the substitutions).
31503       # These are the two extra sed commands mentioned above.
31504       (echo ':t
31505   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31506       if test -z "$ac_sed_cmds"; then
31507         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31508       else
31509         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31510       fi
31511       ac_sed_frag=`expr $ac_sed_frag + 1`
31512       ac_beg=$ac_end
31513       ac_end=`expr $ac_end + $ac_max_sed_lines`
31514     fi
31515   done
31516   if test -z "$ac_sed_cmds"; then
31517     ac_sed_cmds=cat
31518   fi
31519 fi # test -n "$CONFIG_FILES"
31520
31521 _ACEOF
31522 cat >>$CONFIG_STATUS <<\_ACEOF
31523 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31524   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31525   case $ac_file in
31526   - | *:- | *:-:* ) # input from stdin
31527         cat >$tmp/stdin
31528         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31529         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31530   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31532   * )   ac_file_in=$ac_file.in ;;
31533   esac
31534
31535   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31536   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31537 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31538          X"$ac_file" : 'X\(//\)[^/]' \| \
31539          X"$ac_file" : 'X\(//\)$' \| \
31540          X"$ac_file" : 'X\(/\)' \| \
31541          .     : '\(.\)' 2>/dev/null ||
31542 echo X"$ac_file" |
31543     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31544           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31545           /^X\(\/\/\)$/{ s//\1/; q; }
31546           /^X\(\/\).*/{ s//\1/; q; }
31547           s/.*/./; q'`
31548   { if $as_mkdir_p; then
31549     mkdir -p "$ac_dir"
31550   else
31551     as_dir="$ac_dir"
31552     as_dirs=
31553     while test ! -d "$as_dir"; do
31554       as_dirs="$as_dir $as_dirs"
31555       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31557          X"$as_dir" : 'X\(//\)[^/]' \| \
31558          X"$as_dir" : 'X\(//\)$' \| \
31559          X"$as_dir" : 'X\(/\)' \| \
31560          .     : '\(.\)' 2>/dev/null ||
31561 echo X"$as_dir" |
31562     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31563           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31564           /^X\(\/\/\)$/{ s//\1/; q; }
31565           /^X\(\/\).*/{ s//\1/; q; }
31566           s/.*/./; q'`
31567     done
31568     test ! -n "$as_dirs" || mkdir $as_dirs
31569   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31570 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31571    { (exit 1); exit 1; }; }; }
31572
31573   ac_builddir=.
31574
31575 if test "$ac_dir" != .; then
31576   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31577   # A "../" for each directory in $ac_dir_suffix.
31578   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31579 else
31580   ac_dir_suffix= ac_top_builddir=
31581 fi
31582
31583 case $srcdir in
31584   .)  # No --srcdir option.  We are building in place.
31585     ac_srcdir=.
31586     if test -z "$ac_top_builddir"; then
31587        ac_top_srcdir=.
31588     else
31589        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31590     fi ;;
31591   [\\/]* | ?:[\\/]* )  # Absolute path.
31592     ac_srcdir=$srcdir$ac_dir_suffix;
31593     ac_top_srcdir=$srcdir ;;
31594   *) # Relative path.
31595     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31596     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31597 esac
31598
31599 # Do not use `cd foo && pwd` to compute absolute paths, because
31600 # the directories may not exist.
31601 case `pwd` in
31602 .) ac_abs_builddir="$ac_dir";;
31603 *)
31604   case "$ac_dir" in
31605   .) ac_abs_builddir=`pwd`;;
31606   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31607   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31608   esac;;
31609 esac
31610 case $ac_abs_builddir in
31611 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31612 *)
31613   case ${ac_top_builddir}. in
31614   .) ac_abs_top_builddir=$ac_abs_builddir;;
31615   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31616   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31617   esac;;
31618 esac
31619 case $ac_abs_builddir in
31620 .) ac_abs_srcdir=$ac_srcdir;;
31621 *)
31622   case $ac_srcdir in
31623   .) ac_abs_srcdir=$ac_abs_builddir;;
31624   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31625   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31626   esac;;
31627 esac
31628 case $ac_abs_builddir in
31629 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31630 *)
31631   case $ac_top_srcdir in
31632   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31633   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31634   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31635   esac;;
31636 esac
31637
31638
31639   case $INSTALL in
31640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31641   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31642   esac
31643
31644   if test x"$ac_file" != x-; then
31645     { echo "$as_me:$LINENO: creating $ac_file" >&5
31646 echo "$as_me: creating $ac_file" >&6;}
31647     rm -f "$ac_file"
31648   fi
31649   # Let's still pretend it is `configure' which instantiates (i.e., don't
31650   # use $as_me), people would be surprised to read:
31651   #    /* config.h.  Generated by config.status.  */
31652   if test x"$ac_file" = x-; then
31653     configure_input=
31654   else
31655     configure_input="$ac_file.  "
31656   fi
31657   configure_input=$configure_input"Generated from `echo $ac_file_in |
31658                                      sed 's,.*/,,'` by configure."
31659
31660   # First look for the input files in the build tree, otherwise in the
31661   # src tree.
31662   ac_file_inputs=`IFS=:
31663     for f in $ac_file_in; do
31664       case $f in
31665       -) echo $tmp/stdin ;;
31666       [\\/$]*)
31667          # Absolute (can't be DOS-style, as IFS=:)
31668          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31669 echo "$as_me: error: cannot find input file: $f" >&2;}
31670    { (exit 1); exit 1; }; }
31671          echo "$f";;
31672       *) # Relative
31673          if test -f "$f"; then
31674            # Build tree
31675            echo "$f"
31676          elif test -f "$srcdir/$f"; then
31677            # Source tree
31678            echo "$srcdir/$f"
31679          else
31680            # /dev/null tree
31681            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31682 echo "$as_me: error: cannot find input file: $f" >&2;}
31683    { (exit 1); exit 1; }; }
31684          fi;;
31685       esac
31686     done` || { (exit 1); exit 1; }
31687 _ACEOF
31688 cat >>$CONFIG_STATUS <<_ACEOF
31689   sed "$ac_vpsub
31690 $extrasub
31691 _ACEOF
31692 cat >>$CONFIG_STATUS <<\_ACEOF
31693 :t
31694 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31695 s,@configure_input@,$configure_input,;t t
31696 s,@srcdir@,$ac_srcdir,;t t
31697 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31698 s,@top_srcdir@,$ac_top_srcdir,;t t
31699 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31700 s,@builddir@,$ac_builddir,;t t
31701 s,@abs_builddir@,$ac_abs_builddir,;t t
31702 s,@top_builddir@,$ac_top_builddir,;t t
31703 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31704 s,@INSTALL@,$ac_INSTALL,;t t
31705 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31706   rm -f $tmp/stdin
31707   if test x"$ac_file" != x-; then
31708     mv $tmp/out $ac_file
31709   else
31710     cat $tmp/out
31711     rm -f $tmp/out
31712   fi
31713
31714 done
31715 _ACEOF
31716 cat >>$CONFIG_STATUS <<\_ACEOF
31717
31718 #
31719 # CONFIG_HEADER section.
31720 #
31721
31722 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31723 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31724 #
31725 # ac_d sets the value in "#define NAME VALUE" lines.
31726 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31727 ac_dB='[         ].*$,\1#\2'
31728 ac_dC=' '
31729 ac_dD=',;t'
31730 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31731 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31732 ac_uB='$,\1#\2define\3'
31733 ac_uC=' '
31734 ac_uD=',;t'
31735
31736 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31737   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31738   case $ac_file in
31739   - | *:- | *:-:* ) # input from stdin
31740         cat >$tmp/stdin
31741         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31742         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31743   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31744         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31745   * )   ac_file_in=$ac_file.in ;;
31746   esac
31747
31748   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31749 echo "$as_me: creating $ac_file" >&6;}
31750
31751   # First look for the input files in the build tree, otherwise in the
31752   # src tree.
31753   ac_file_inputs=`IFS=:
31754     for f in $ac_file_in; do
31755       case $f in
31756       -) echo $tmp/stdin ;;
31757       [\\/$]*)
31758          # Absolute (can't be DOS-style, as IFS=:)
31759          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31760 echo "$as_me: error: cannot find input file: $f" >&2;}
31761    { (exit 1); exit 1; }; }
31762          # Do quote $f, to prevent DOS paths from being IFS'd.
31763          echo "$f";;
31764       *) # Relative
31765          if test -f "$f"; then
31766            # Build tree
31767            echo "$f"
31768          elif test -f "$srcdir/$f"; then
31769            # Source tree
31770            echo "$srcdir/$f"
31771          else
31772            # /dev/null tree
31773            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31774 echo "$as_me: error: cannot find input file: $f" >&2;}
31775    { (exit 1); exit 1; }; }
31776          fi;;
31777       esac
31778     done` || { (exit 1); exit 1; }
31779   # Remove the trailing spaces.
31780   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31781
31782 _ACEOF
31783
31784 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31785 # `conftest.undefs', that substitutes the proper values into
31786 # config.h.in to produce config.h.  The first handles `#define'
31787 # templates, and the second `#undef' templates.
31788 # And first: Protect against being on the right side of a sed subst in
31789 # config.status.  Protect against being in an unquoted here document
31790 # in config.status.
31791 rm -f conftest.defines conftest.undefs
31792 # Using a here document instead of a string reduces the quoting nightmare.
31793 # Putting comments in sed scripts is not portable.
31794 #
31795 # `end' is used to avoid that the second main sed command (meant for
31796 # 0-ary CPP macros) applies to n-ary macro definitions.
31797 # See the Autoconf documentation for `clear'.
31798 cat >confdef2sed.sed <<\_ACEOF
31799 s/[\\&,]/\\&/g
31800 s,[\\$`],\\&,g
31801 t clear
31802 : clear
31803 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31804 t end
31805 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31806 : end
31807 _ACEOF
31808 # If some macros were called several times there might be several times
31809 # the same #defines, which is useless.  Nevertheless, we may not want to
31810 # sort them, since we want the *last* AC-DEFINE to be honored.
31811 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31812 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31813 rm -f confdef2sed.sed
31814
31815 # This sed command replaces #undef with comments.  This is necessary, for
31816 # example, in the case of _POSIX_SOURCE, which is predefined and required
31817 # on some systems where configure will not decide to define it.
31818 cat >>conftest.undefs <<\_ACEOF
31819 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31820 _ACEOF
31821
31822 # Break up conftest.defines because some shells have a limit on the size
31823 # of here documents, and old seds have small limits too (100 cmds).
31824 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31825 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31826 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31827 echo '  :' >>$CONFIG_STATUS
31828 rm -f conftest.tail
31829 while grep . conftest.defines >/dev/null
31830 do
31831   # Write a limited-size here document to $tmp/defines.sed.
31832   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31833   # Speed up: don't consider the non `#define' lines.
31834   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31835   # Work around the forget-to-reset-the-flag bug.
31836   echo 't clr' >>$CONFIG_STATUS
31837   echo ': clr' >>$CONFIG_STATUS
31838   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31839   echo 'CEOF
31840   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31841   rm -f $tmp/in
31842   mv $tmp/out $tmp/in
31843 ' >>$CONFIG_STATUS
31844   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31845   rm -f conftest.defines
31846   mv conftest.tail conftest.defines
31847 done
31848 rm -f conftest.defines
31849 echo '  fi # grep' >>$CONFIG_STATUS
31850 echo >>$CONFIG_STATUS
31851
31852 # Break up conftest.undefs because some shells have a limit on the size
31853 # of here documents, and old seds have small limits too (100 cmds).
31854 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31855 rm -f conftest.tail
31856 while grep . conftest.undefs >/dev/null
31857 do
31858   # Write a limited-size here document to $tmp/undefs.sed.
31859   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31860   # Speed up: don't consider the non `#undef'
31861   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31862   # Work around the forget-to-reset-the-flag bug.
31863   echo 't clr' >>$CONFIG_STATUS
31864   echo ': clr' >>$CONFIG_STATUS
31865   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31866   echo 'CEOF
31867   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31868   rm -f $tmp/in
31869   mv $tmp/out $tmp/in
31870 ' >>$CONFIG_STATUS
31871   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31872   rm -f conftest.undefs
31873   mv conftest.tail conftest.undefs
31874 done
31875 rm -f conftest.undefs
31876
31877 cat >>$CONFIG_STATUS <<\_ACEOF
31878   # Let's still pretend it is `configure' which instantiates (i.e., don't
31879   # use $as_me), people would be surprised to read:
31880   #    /* config.h.  Generated by config.status.  */
31881   if test x"$ac_file" = x-; then
31882     echo "/* Generated by configure.  */" >$tmp/config.h
31883   else
31884     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31885   fi
31886   cat $tmp/in >>$tmp/config.h
31887   rm -f $tmp/in
31888   if test x"$ac_file" != x-; then
31889     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31890       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31891 echo "$as_me: $ac_file is unchanged" >&6;}
31892     else
31893       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31894 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31895          X"$ac_file" : 'X\(//\)[^/]' \| \
31896          X"$ac_file" : 'X\(//\)$' \| \
31897          X"$ac_file" : 'X\(/\)' \| \
31898          .     : '\(.\)' 2>/dev/null ||
31899 echo X"$ac_file" |
31900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31901           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31902           /^X\(\/\/\)$/{ s//\1/; q; }
31903           /^X\(\/\).*/{ s//\1/; q; }
31904           s/.*/./; q'`
31905       { if $as_mkdir_p; then
31906     mkdir -p "$ac_dir"
31907   else
31908     as_dir="$ac_dir"
31909     as_dirs=
31910     while test ! -d "$as_dir"; do
31911       as_dirs="$as_dir $as_dirs"
31912       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31914          X"$as_dir" : 'X\(//\)[^/]' \| \
31915          X"$as_dir" : 'X\(//\)$' \| \
31916          X"$as_dir" : 'X\(/\)' \| \
31917          .     : '\(.\)' 2>/dev/null ||
31918 echo X"$as_dir" |
31919     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31920           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31921           /^X\(\/\/\)$/{ s//\1/; q; }
31922           /^X\(\/\).*/{ s//\1/; q; }
31923           s/.*/./; q'`
31924     done
31925     test ! -n "$as_dirs" || mkdir $as_dirs
31926   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31927 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31928    { (exit 1); exit 1; }; }; }
31929
31930       rm -f $ac_file
31931       mv $tmp/config.h $ac_file
31932     fi
31933   else
31934     cat $tmp/config.h
31935     rm -f $tmp/config.h
31936   fi
31937 done
31938 _ACEOF
31939 cat >>$CONFIG_STATUS <<\_ACEOF
31940
31941 #
31942 # CONFIG_COMMANDS section.
31943 #
31944 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31945   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31946   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31947   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31948 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31949          X"$ac_dest" : 'X\(//\)[^/]' \| \
31950          X"$ac_dest" : 'X\(//\)$' \| \
31951          X"$ac_dest" : 'X\(/\)' \| \
31952          .     : '\(.\)' 2>/dev/null ||
31953 echo X"$ac_dest" |
31954     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31955           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31956           /^X\(\/\/\)$/{ s//\1/; q; }
31957           /^X\(\/\).*/{ s//\1/; q; }
31958           s/.*/./; q'`
31959   { if $as_mkdir_p; then
31960     mkdir -p "$ac_dir"
31961   else
31962     as_dir="$ac_dir"
31963     as_dirs=
31964     while test ! -d "$as_dir"; do
31965       as_dirs="$as_dir $as_dirs"
31966       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31967 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31968          X"$as_dir" : 'X\(//\)[^/]' \| \
31969          X"$as_dir" : 'X\(//\)$' \| \
31970          X"$as_dir" : 'X\(/\)' \| \
31971          .     : '\(.\)' 2>/dev/null ||
31972 echo X"$as_dir" |
31973     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31974           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31975           /^X\(\/\/\)$/{ s//\1/; q; }
31976           /^X\(\/\).*/{ s//\1/; q; }
31977           s/.*/./; q'`
31978     done
31979     test ! -n "$as_dirs" || mkdir $as_dirs
31980   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31981 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31982    { (exit 1); exit 1; }; }; }
31983
31984   ac_builddir=.
31985
31986 if test "$ac_dir" != .; then
31987   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31988   # A "../" for each directory in $ac_dir_suffix.
31989   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31990 else
31991   ac_dir_suffix= ac_top_builddir=
31992 fi
31993
31994 case $srcdir in
31995   .)  # No --srcdir option.  We are building in place.
31996     ac_srcdir=.
31997     if test -z "$ac_top_builddir"; then
31998        ac_top_srcdir=.
31999     else
32000        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32001     fi ;;
32002   [\\/]* | ?:[\\/]* )  # Absolute path.
32003     ac_srcdir=$srcdir$ac_dir_suffix;
32004     ac_top_srcdir=$srcdir ;;
32005   *) # Relative path.
32006     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32007     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32008 esac
32009
32010 # Do not use `cd foo && pwd` to compute absolute paths, because
32011 # the directories may not exist.
32012 case `pwd` in
32013 .) ac_abs_builddir="$ac_dir";;
32014 *)
32015   case "$ac_dir" in
32016   .) ac_abs_builddir=`pwd`;;
32017   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32018   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32019   esac;;
32020 esac
32021 case $ac_abs_builddir in
32022 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32023 *)
32024   case ${ac_top_builddir}. in
32025   .) ac_abs_top_builddir=$ac_abs_builddir;;
32026   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32027   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32028   esac;;
32029 esac
32030 case $ac_abs_builddir in
32031 .) ac_abs_srcdir=$ac_srcdir;;
32032 *)
32033   case $ac_srcdir in
32034   .) ac_abs_srcdir=$ac_abs_builddir;;
32035   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32036   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32037   esac;;
32038 esac
32039 case $ac_abs_builddir in
32040 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32041 *)
32042   case $ac_top_srcdir in
32043   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32044   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32045   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32046   esac;;
32047 esac
32048
32049
32050   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32051 echo "$as_me: executing $ac_dest commands" >&6;}
32052   case $ac_dest in
32053     default-1 )
32054     for ac_file in $CONFIG_FILES; do
32055       # Support "outfile[:infile[:infile...]]"
32056       case "$ac_file" in
32057         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32058       esac
32059       # PO directories have a Makefile.in generated from Makefile.in.in.
32060       case "$ac_file" in */Makefile.in)
32061         # Adjust a relative srcdir.
32062         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32063         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32064         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32065         # In autoconf-2.13 it is called $ac_given_srcdir.
32066         # In autoconf-2.50 it is called $srcdir.
32067         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32068         case "$ac_given_srcdir" in
32069           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32070           /*) top_srcdir="$ac_given_srcdir" ;;
32071           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32072         esac
32073         # Treat a directory as a PO directory if and only if it has a
32074         # POTFILES.in file. This allows packages to have multiple PO
32075         # directories under different names or in different locations.
32076         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32077           rm -f "$ac_dir/POTFILES"
32078           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32079           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32080           POMAKEFILEDEPS="POTFILES.in"
32081           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32082           # on $ac_dir but don't depend on user-specified configuration
32083           # parameters.
32084           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32085             # The LINGUAS file contains the set of available languages.
32086             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32087               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32088             fi
32089             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32090             # Hide the ALL_LINGUAS assigment from automake.
32091             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32092             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32093           else
32094             # The set of available languages was given in configure.in.
32095             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32096           fi
32097           # Compute POFILES
32098           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32099           # Compute UPDATEPOFILES
32100           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32101           # Compute DUMMYPOFILES
32102           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32103           # Compute GMOFILES
32104           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32105           case "$ac_given_srcdir" in
32106             .) srcdirpre= ;;
32107             *) srcdirpre='$(srcdir)/' ;;
32108           esac
32109           POFILES=
32110           UPDATEPOFILES=
32111           DUMMYPOFILES=
32112           GMOFILES=
32113           for lang in $ALL_LINGUAS; do
32114             POFILES="$POFILES $srcdirpre$lang.po"
32115             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32116             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32117             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32118           done
32119           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32120           # environment variable.
32121           INST_LINGUAS=
32122           if test -n "$ALL_LINGUAS"; then
32123             for presentlang in $ALL_LINGUAS; do
32124               useit=no
32125               if test "%UNSET%" != "$LINGUAS"; then
32126                 desiredlanguages="$LINGUAS"
32127               else
32128                 desiredlanguages="$ALL_LINGUAS"
32129               fi
32130               for desiredlang in $desiredlanguages; do
32131                 # Use the presentlang catalog if desiredlang is
32132                 #   a. equal to presentlang, or
32133                 #   b. a variant of presentlang (because in this case,
32134                 #      presentlang can be used as a fallback for messages
32135                 #      which are not translated in the desiredlang catalog).
32136                 case "$desiredlang" in
32137                   "$presentlang"*) useit=yes;;
32138                 esac
32139               done
32140               if test $useit = yes; then
32141                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32142               fi
32143             done
32144           fi
32145           CATALOGS=
32146           if test -n "$INST_LINGUAS"; then
32147             for lang in $INST_LINGUAS; do
32148               CATALOGS="$CATALOGS $lang.gmo"
32149             done
32150           fi
32151           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32152           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"
32153           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32154             if test -f "$f"; then
32155               case "$f" in
32156                 *.orig | *.bak | *~) ;;
32157                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32158               esac
32159             fi
32160           done
32161         fi
32162         ;;
32163       esac
32164     done ;;
32165     default )
32166  ;;
32167   esac
32168 done
32169 _ACEOF
32170
32171 cat >>$CONFIG_STATUS <<\_ACEOF
32172
32173 { (exit 0); exit 0; }
32174 _ACEOF
32175 chmod +x $CONFIG_STATUS
32176 ac_clean_files=$ac_clean_files_save
32177
32178
32179 # configure is writing to config.log, and then calls config.status.
32180 # config.status does its own redirection, appending to config.log.
32181 # Unfortunately, on DOS this fails, as config.log is still kept open
32182 # by configure, so config.status won't be able to write to it; its
32183 # output is simply discarded.  So we exec the FD to /dev/null,
32184 # effectively closing config.log, so it can be properly (re)opened and
32185 # appended to by config.status.  When coming back to configure, we
32186 # need to make the FD available again.
32187 if test "$no_create" != yes; then
32188   ac_cs_success=:
32189   ac_config_status_args=
32190   test "$silent" = yes &&
32191     ac_config_status_args="$ac_config_status_args --quiet"
32192   exec 5>/dev/null
32193   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32194   exec 5>>config.log
32195   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32196   # would make configure fail if this is the last instruction.
32197   $ac_cs_success || { (exit 1); exit 1; }
32198 fi
32199
32200
32201 if test "${support_bat}" = "yes" ; then
32202   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32203   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32204   exit 1
32205   fi
32206
32207   QMAKEBIN="qmake"
32208
32209   if test "x$QMAKEQT4" != "xnone"; then
32210     QMAKEBIN=qmake-qt4
32211   fi
32212
32213
32214
32215   cd src/qt-console
32216   chmod 755 install_conf_file build-depkgs-qt-console
32217   echo "Creating bat Makefile"
32218   $QMAKEBIN
32219   cd ${BUILD_DIR}
32220 fi
32221
32222 echo "Doing make of dependencies"
32223 ${MAKE:-make} depend
32224
32225 cd scripts
32226 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32227 chmod 755 dvd-handler dvd-simulator
32228 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32229 cd ..
32230
32231 c=src/cats
32232
32233 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32234 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32235
32236 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32237 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32238
32239 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32240 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32241
32242 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32243 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32244
32245 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32246 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32247
32248 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32249 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32250
32251 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32252 chmod 755 $c/sqlite
32253 chmod 755 $c/mysql
32254
32255 chmod 755 src/win32/build-depkgs-mingw32
32256
32257
32258
32259 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32260    largefile_support="yes"
32261 fi
32262
32263 #
32264 # A whole lot of hand springs to get the compiler version.
32265 #  This is because gcc changed the output in version 3.0
32266 #
32267 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32268 if test "x${CCVERSION}" = "x" ; then
32269   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32270 fi
32271 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32272 if test x"${CXXVERSION}" = x ; then
32273   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32274 fi
32275
32276 if test "x${subsysdir}" = "x${sbindir}" ; then
32277    echo " "
32278    echo " "
32279    echo "You have set --sbindir and --with-subsys-dir"
32280    echo "  both equal to: ${subsysdir} "
32281    echo "  This is not permitted. Please reconfigure."
32282    echo " "
32283    echo "Aborting configuration ..."
32284    echo " "
32285    echo " "
32286    exit 1
32287 fi
32288
32289 if test "x${db_type}" = "xInternal" ; then
32290    echo " "
32291    echo " "
32292    echo "You have not specified either --enable-client-only or one of the"
32293    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32294    echo "  This is not permitted. Please reconfigure."
32295    echo " "
32296    echo "Aborting the configuration ..."
32297    echo " "
32298    echo " "
32299    exit 1
32300 fi
32301
32302 echo "
32303 Configuration on `date`:
32304
32305   Host:                       $host -- ${DISTNAME} ${DISTVER}
32306   Bacula version:             ${VERSION} (${DATE})
32307   Source code location:       ${srcdir}
32308   Install binaries:           ${sbindir}
32309   Install config files:       ${sysconfdir}
32310   Scripts directory:          ${scriptdir}
32311   Archive directory:          ${archivedir}
32312   Working directory:          ${working_dir}
32313   PID directory:              ${piddir}
32314   Subsys directory:           ${subsysdir}
32315   Man directory:              ${mandir}
32316   Data directory:             ${datadir}
32317   C Compiler:                 ${CC} ${CCVERSION}
32318   C++ Compiler:               ${CXX} ${CXXVERSION}
32319   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32320   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32321   Libraries:                  ${LIBS}
32322   Statically Linked Tools:    ${support_static_tools}
32323   Statically Linked FD:       ${support_static_fd}
32324   Statically Linked SD:       ${support_static_sd}
32325   Statically Linked DIR:      ${support_static_dir}
32326   Statically Linked CONS:     ${support_static_cons}
32327   Database type:              ${db_type}
32328   Database lib:               ${DB_LIBS}
32329   Database name:              ${db_name}
32330   Database user:              ${db_user}
32331
32332   Job Output Email:           ${job_email}
32333   Traceback Email:            ${dump_email}
32334   SMTP Host Address:          ${smtp_host}
32335
32336   Director Port:              ${dir_port}
32337   File daemon Port:           ${fd_port}
32338   Storage daemon Port:        ${sd_port}
32339
32340   Director User:              ${dir_user}
32341   Director Group:             ${dir_group}
32342   Storage Daemon User:        ${sd_user}
32343   Storage DaemonGroup:        ${sd_group}
32344   File Daemon User:           ${fd_user}
32345   File Daemon Group:          ${fd_group}
32346
32347   SQL binaries Directory      ${SQL_BINDIR}
32348
32349   Large file support:         $largefile_support
32350   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32351   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32352   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32353   TLS support:                ${support_tls}
32354   Encryption support:         ${support_crypto}
32355   ZLIB support:               ${have_zlib}
32356   enable-smartalloc:          ${support_smartalloc}
32357   bat support:                ${support_bat} ${QWT_LDFLAGS}
32358   enable-gnome:               ${support_gnome} ${gnome_version}
32359   enable-bwx-console:         ${support_wx_console} ${wx_version}
32360   enable-tray-monitor:        ${support_tray_monitor}
32361   client-only:                ${build_client_only}
32362   build-dird:                 ${build_dird}
32363   build-stored:               ${build_stored}
32364   ACL support:                ${have_acl}
32365   Python support:             ${support_python} ${PYTHON_LIBS}
32366   Batch insert enabled:       ${support_batch_insert}
32367
32368   " > config.out
32369
32370 cat config.out