]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
reset DEVELOPER after release
[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 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 #AC_CANONICAL_HOST
1533
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1538
1539
1540
1541 ac_ext=c
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   if test -n "$CC"; then
1555   ac_cv_prog_CC="$CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560   IFS=$as_save_IFS
1561   test -z "$as_dir" && as_dir=.
1562   for ac_exec_ext in '' $ac_executable_extensions; do
1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 CC=$ac_cv_prog_CC
1574 if test -n "$CC"; then
1575   echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 fi
1583 if test -z "$ac_cv_prog_CC"; then
1584   ac_ct_CC=$CC
1585   # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   if test -n "$ac_ct_CC"; then
1593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594 else
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   for ac_exec_ext in '' $ac_executable_extensions; do
1601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602     ac_cv_prog_ac_ct_CC="gcc"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609 fi
1610 fi
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1615 else
1616   echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 fi
1619
1620   CC=$ac_ct_CC
1621 else
1622   CC="$ac_cv_prog_CC"
1623 fi
1624
1625 if test -z "$CC"; then
1626   if test -n "$ac_tool_prefix"; then
1627   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$CC"; then
1635   ac_cv_prog_CC="$CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_CC="${ac_tool_prefix}cc"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 CC=$ac_cv_prog_CC
1654 if test -n "$CC"; then
1655   echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 fi
1663 if test -z "$ac_cv_prog_CC"; then
1664   ac_ct_CC=$CC
1665   # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_CC"; then
1673   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_CC="cc"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700   CC=$ac_ct_CC
1701 else
1702   CC="$ac_cv_prog_CC"
1703 fi
1704
1705 fi
1706 if test -z "$CC"; then
1707   # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717   ac_prog_rejected=no
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726        ac_prog_rejected=yes
1727        continue
1728      fi
1729     ac_cv_prog_CC="cc"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736 if test $ac_prog_rejected = yes; then
1737   # We found a bogon in the path, so make sure we never use it.
1738   set dummy $ac_cv_prog_CC
1739   shift
1740   if test $# != 0; then
1741     # We chose a different compiler from the bogus one.
1742     # However, it has the same basename, so the bogon will be chosen
1743     # first if we set CC to just the basename; use the full file name.
1744     shift
1745     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1746   fi
1747 fi
1748 fi
1749 fi
1750 CC=$ac_cv_prog_CC
1751 if test -n "$CC"; then
1752   echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 fi
1760 if test -z "$CC"; then
1761   if test -n "$ac_tool_prefix"; then
1762   for ac_prog in cl
1763   do
1764     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799     test -n "$CC" && break
1800   done
1801 fi
1802 if test -z "$CC"; then
1803   ac_ct_CC=$CC
1804   for ac_prog in cl
1805 do
1806   # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="$ac_prog"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   test -n "$ac_ct_CC" && break
1842 done
1843
1844   CC=$ac_ct_CC
1845 fi
1846
1847 fi
1848
1849
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854    { (exit 1); exit 1; }; }
1855
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858      "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861   (eval $ac_compiler --version </dev/null >&5) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866   (eval $ac_compiler -v </dev/null >&5) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871   (eval $ac_compiler -V </dev/null >&5) 2>&5
1872   ac_status=$?
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); }
1875
1876 cat >conftest.$ac_ext <<_ACEOF
1877 /* confdefs.h.  */
1878 _ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h.  */
1882
1883 int
1884 main ()
1885 {
1886
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1895 # of exeext.
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900   (eval $ac_link_default) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }; then
1904   # Find the output, starting from the most likely.  This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 # resort.
1907
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 ac_cv_exeext=
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913 do
1914   test -f "$ac_file" || continue
1915   case $ac_file in
1916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917         ;;
1918     conftest.$ac_ext )
1919         # This is the source file.
1920         ;;
1921     [ab].out )
1922         # We found the default executable, but exeext='' is most
1923         # certainly right.
1924         break;;
1925     *.* )
1926         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927         # FIXME: I believe we export ac_cv_exeext for Libtool,
1928         # but it would be cool to find out if it's true.  Does anybody
1929         # maintain Libtool? --akim.
1930         export ac_cv_exeext
1931         break;;
1932     * )
1933         break;;
1934   esac
1935 done
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944    { (exit 77); exit 77; }; }
1945 fi
1946
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1950
1951 # Check the compiler produces executables we can run.  If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958   if { ac_try='./$ac_file'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; }; then
1964     cross_compiling=no
1965   else
1966     if test "$cross_compiling" = maybe; then
1967         cross_compiling=yes
1968     else
1969         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975    { (exit 1); exit 1; }; }
1976     fi
1977   fi
1978 fi
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1981
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run.  If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1990
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994   (eval $ac_link) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }; then
1998   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2001 # `rm'.
2002 for ac_file in conftest.exe conftest conftest.*; do
2003   test -f "$ac_file" || continue
2004   case $ac_file in
2005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007           export ac_cv_exeext
2008           break;;
2009     * ) break;;
2010   esac
2011 done
2012 else
2013   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017    { (exit 1); exit 1; }; }
2018 fi
2019
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2023
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2026 ac_exeext=$EXEEXT
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054   case $ac_file in
2055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057        break;;
2058   esac
2059 done
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2063
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2076 ac_objext=$OBJEXT
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   cat >conftest.$ac_ext <<_ACEOF
2083 /* confdefs.h.  */
2084 _ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h.  */
2088
2089 int
2090 main ()
2091 {
2092 #ifndef __GNUC__
2093        choke me
2094 #endif
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>conftest.er1
2103   ac_status=$?
2104   grep -v '^ *+' conftest.er1 >conftest.err
2105   rm -f conftest.er1
2106   cat conftest.err >&5
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); } &&
2109          { ac_try='test -z "$ac_c_werror_flag"
2110                          || test ! -s conftest.err'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; } &&
2116          { ac_try='test -s conftest.$ac_objext'
2117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   ac_compiler_gnu=yes
2123 else
2124   echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_compiler_gnu=no
2128 fi
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2138 CFLAGS="-g"
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   ac_cv_prog_cc_g=yes
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 ac_cv_prog_cc_g=no
2187 fi
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193   CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195   if test "$GCC" = yes; then
2196     CFLAGS="-g -O2"
2197   else
2198     CFLAGS="-g"
2199   fi
2200 else
2201   if test "$GCC" = yes; then
2202     CFLAGS="-O2"
2203   else
2204     CFLAGS=
2205   fi
2206 fi
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   ac_cv_prog_cc_stdc=no
2213 ac_save_CC=$CC
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h.  */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h.  */
2220 #include <stdarg.h>
2221 #include <stdio.h>
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2228      char **p;
2229      int i;
2230 {
2231   return p[i];
2232 }
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2234 {
2235   char *s;
2236   va_list v;
2237   va_start (v,p);
2238   s = g (p, va_arg (v,int));
2239   va_end (v);
2240   return s;
2241 }
2242
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2244    function prototypes and stuff, but not '\xHH' hex character constants.
2245    These don't provoke an error unfortunately, instead are silently treated
2246    as 'x'.  The following induces an error, until -std1 is added to get
2247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2248    array size at least.  It's necessary to write '\x00'==0 to get something
2249    that's true only with -std1.  */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2256 int argc;
2257 char **argv;
2258 int
2259 main ()
2260 {
2261 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX                   -qlanglvl=ansi
2269 # Ultrix and OSF/1      -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2272 # SVR4                  -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 do
2275   CC="$ac_save_CC $ac_arg"
2276   rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278   (eval $ac_compile) 2>conftest.er1
2279   ac_status=$?
2280   grep -v '^ *+' conftest.er1 >conftest.err
2281   rm -f conftest.er1
2282   cat conftest.err >&5
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -z "$ac_c_werror_flag"
2286                          || test ! -s conftest.err'
2287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288   (eval $ac_try) 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); }; } &&
2292          { ac_try='test -s conftest.$ac_objext'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298   ac_cv_prog_cc_stdc=$ac_arg
2299 break
2300 else
2301   echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 fi
2305 rm -f conftest.err conftest.$ac_objext
2306 done
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2308 CC=$ac_save_CC
2309
2310 fi
2311
2312 case "x$ac_cv_prog_cc_stdc" in
2313   x|xno)
2314     echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2316   *)
2317     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319     CC="$CC $ac_cv_prog_cc_stdc" ;;
2320 esac
2321
2322 # Some people use a C++ compiler to compile C.  Since we use `exit',
2323 # in C++ we need to declare it.  In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #ifndef __cplusplus
2328   choke me
2329 #endif
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>conftest.er1
2334   ac_status=$?
2335   grep -v '^ *+' conftest.er1 >conftest.err
2336   rm -f conftest.er1
2337   cat conftest.err >&5
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); } &&
2340          { ac_try='test -z "$ac_c_werror_flag"
2341                          || test ! -s conftest.err'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   for ac_declaration in \
2354    '' \
2355    'extern "C" void std::exit (int) throw (); using std::exit;' \
2356    'extern "C" void std::exit (int); using std::exit;' \
2357    'extern "C" void exit (int) throw ();' \
2358    'extern "C" void exit (int);' \
2359    'void exit (int);'
2360 do
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 $ac_declaration
2368 #include <stdlib.h>
2369 int
2370 main ()
2371 {
2372 exit (42);
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"
2387                          || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   :
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 continue
2405 fi
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413 $ac_declaration
2414 int
2415 main ()
2416 {
2417 exit (42);
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 done
2452 rm -f conftest*
2453 if test -n "$ac_declaration"; then
2454   echo '#ifdef __cplusplus' >>confdefs.h
2455   echo $ac_declaration      >>confdefs.h
2456   echo '#endif'             >>confdefs.h
2457 fi
2458
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471 ac_ext=cc
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2478   do
2479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$CXX"; then
2487   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502
2503 fi
2504 fi
2505 CXX=$ac_cv_prog_CXX
2506 if test -n "$CXX"; then
2507   echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2509 else
2510   echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2512 fi
2513
2514     test -n "$CXX" && break
2515   done
2516 fi
2517 if test -z "$CXX"; then
2518   ac_ct_CXX=$CXX
2519   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2520 do
2521   # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$ac_ct_CXX"; then
2529   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538     ac_cv_prog_ac_ct_CXX="$ac_prog"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544
2545 fi
2546 fi
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2551 else
2552   echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556   test -n "$ac_ct_CXX" && break
2557 done
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2559
2560   CXX=$ac_ct_CXX
2561 fi
2562
2563
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566      "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569   (eval $ac_compiler --version </dev/null >&5) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574   (eval $ac_compiler -v </dev/null >&5) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579   (eval $ac_compiler -V </dev/null >&5) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595
2596 int
2597 main ()
2598 {
2599 #ifndef __GNUC__
2600        choke me
2601 #endif
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_cxx_werror_flag"
2617                          || test ! -s conftest.err'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_compiler_gnu=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_compiler_gnu=no
2635 fi
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2645 CXXFLAGS="-g"
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_cxx_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_cv_prog_cxx_g=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_cv_prog_cxx_g=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700   CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702   if test "$GXX" = yes; then
2703     CXXFLAGS="-g -O2"
2704   else
2705     CXXFLAGS="-g"
2706   fi
2707 else
2708   if test "$GXX" = yes; then
2709     CXXFLAGS="-O2"
2710   else
2711     CXXFLAGS=
2712   fi
2713 fi
2714 for ac_declaration in \
2715    '' \
2716    'extern "C" void std::exit (int) throw (); using std::exit;' \
2717    'extern "C" void std::exit (int); using std::exit;' \
2718    'extern "C" void exit (int) throw ();' \
2719    'extern "C" void exit (int);' \
2720    'void exit (int);'
2721 do
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728 $ac_declaration
2729 #include <stdlib.h>
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_cxx_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 continue
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 $ac_declaration
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_cxx_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   break
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 rm -f conftest*
2814 if test -n "$ac_declaration"; then
2815   echo '#ifdef __cplusplus' >>confdefs.h
2816   echo $ac_declaration      >>confdefs.h
2817   echo '#endif'             >>confdefs.h
2818 fi
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826 if test "x$CC" != xcc; then
2827   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2829 else
2830   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2832 fi
2833 set dummy $CC; ac_cc=`echo $2 |
2834                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867 then
2868   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869   if test "x$CC" != xcc; then
2870     # Test first that cc exists at all.
2871     if { ac_try='cc -c conftest.$ac_ext >&5'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); };
2888       then
2889         # cc works too.
2890         :
2891       else
2892         # cc exists but doesn't like -o.
2893         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894       fi
2895     fi
2896   fi
2897 else
2898   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904   echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906 else
2907   echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2912 _ACEOF
2913
2914 fi
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2925   CPP=
2926 fi
2927 if test -z "$CPP"; then
2928   if test "${ac_cv_prog_CPP+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931       # Double quotes because CPP needs to be expanded
2932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2933     do
2934       ac_preproc_ok=false
2935 for ac_c_preproc_warn_flag in '' yes
2936 do
2937   # Use a header file that comes with gcc, so configuring glibc
2938   # with a fresh cross-compiler works.
2939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940   # <limits.h> exists even on freestanding compilers.
2941   # On the NeXT, cc -E runs the code through the compiler's parser,
2942   # not just through cpp. "Syntax error" is here to catch this case.
2943   cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 #ifdef __STDC__
2950 # include <limits.h>
2951 #else
2952 # include <assert.h>
2953 #endif
2954                      Syntax error
2955 _ACEOF
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } >/dev/null; then
2964   if test -s conftest.err; then
2965     ac_cpp_err=$ac_c_preproc_warn_flag
2966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967   else
2968     ac_cpp_err=
2969   fi
2970 else
2971   ac_cpp_err=yes
2972 fi
2973 if test -z "$ac_cpp_err"; then
2974   :
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979   # Broken: fails on valid input.
2980 continue
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984   # OK, works on sane cases.  Now check whether non-existent headers
2985   # can be detected and how.
2986   cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992 #include <ac_nonexistent.h>
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } >/dev/null; then
3002   if test -s conftest.err; then
3003     ac_cpp_err=$ac_c_preproc_warn_flag
3004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005   else
3006     ac_cpp_err=
3007   fi
3008 else
3009   ac_cpp_err=yes
3010 fi
3011 if test -z "$ac_cpp_err"; then
3012   # Broken: success on invalid input.
3013 continue
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018   # Passes both tests.
3019 ac_preproc_ok=:
3020 break
3021 fi
3022 rm -f conftest.err conftest.$ac_ext
3023
3024 done
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3028   break
3029 fi
3030
3031     done
3032     ac_cv_prog_CPP=$CPP
3033
3034 fi
3035   CPP=$ac_cv_prog_CPP
3036 else
3037   ac_cv_prog_CPP=$CPP
3038 fi
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3041 ac_preproc_ok=false
3042 for ac_c_preproc_warn_flag in '' yes
3043 do
3044   # Use a header file that comes with gcc, so configuring glibc
3045   # with a fresh cross-compiler works.
3046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047   # <limits.h> exists even on freestanding compilers.
3048   # On the NeXT, cc -E runs the code through the compiler's parser,
3049   # not just through cpp. "Syntax error" is here to catch this case.
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #ifdef __STDC__
3057 # include <limits.h>
3058 #else
3059 # include <assert.h>
3060 #endif
3061                      Syntax error
3062 _ACEOF
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } >/dev/null; then
3071   if test -s conftest.err; then
3072     ac_cpp_err=$ac_c_preproc_warn_flag
3073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   :
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086   # Broken: fails on valid input.
3087 continue
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091   # OK, works on sane cases.  Now check whether non-existent headers
3092   # can be detected and how.
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 #include <ac_nonexistent.h>
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null; then
3109   if test -s conftest.err; then
3110     ac_cpp_err=$ac_c_preproc_warn_flag
3111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   # Broken: success on invalid input.
3120 continue
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125   # Passes both tests.
3126 ac_preproc_ok=:
3127 break
3128 fi
3129 rm -f conftest.err conftest.$ac_ext
3130
3131 done
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3135   :
3136 else
3137   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141    { (exit 1); exit 1; }; }
3142 fi
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157     then ac_cv_prog_egrep='grep -E'
3158     else ac_cv_prog_egrep='egrep'
3159     fi
3160 fi
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163  EGREP=$ac_cv_prog_egrep
3164
3165
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172     ac_pattern="Autoconf.*'x'"
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <sgtty.h>
3180 Autoconf TIOCGETP
3181 _ACEOF
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184   ac_cv_prog_gcc_traditional=yes
3185 else
3186   ac_cv_prog_gcc_traditional=no
3187 fi
3188 rm -f conftest*
3189
3190
3191   if test $ac_cv_prog_gcc_traditional = no; then
3192     cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <termio.h>
3199 Autoconf TCGETA
3200 _ACEOF
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203   ac_cv_prog_gcc_traditional=yes
3204 fi
3205 rm -f conftest*
3206
3207   fi
3208 fi
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211   if test $ac_cv_prog_gcc_traditional = yes; then
3212     CC="$CC -traditional"
3213   fi
3214 fi
3215
3216 BASECC=`basename $CC`
3217 have_gcc=no
3218 if test "x$BASECC" = xgcc; then
3219    cat >>confdefs.h <<\_ACEOF
3220 #define HAVE_GCC 1
3221 _ACEOF
3222
3223    have_gcc=yes
3224 fi
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   case $CXX in
3233   [\\/]* | ?:[\\/]*)
3234   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3235   ;;
3236   *)
3237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3252   ;;
3253 esac
3254 fi
3255 CXX=$ac_cv_path_CXX
3256
3257 if test -n "$CXX"; then
3258   echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3260 else
3261   echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 fi
3264
3265 if test ! -e $CXX; then
3266    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 # Find a good install program.  We prefer a C program (faster),
3272 # so one script is as good as another.  But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3277 # AIX /bin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295   # Account for people who put trailing slashes in PATH elements.
3296 case $as_dir/ in
3297   ./ | .// | /cC/* | \
3298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300   /usr/ucb/* ) ;;
3301   *)
3302     # OSF1 and SCO ODT 3.0 have their own names for install.
3303     # Don't use installbsd from OSF since it installs stuff as root
3304     # by default.
3305     for ac_prog in ginstall scoinst install; do
3306       for ac_exec_ext in '' $ac_executable_extensions; do
3307         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308           if test $ac_prog = install &&
3309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310             # AIX install.  It has an incompatible calling convention.
3311             :
3312           elif test $ac_prog = install &&
3313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314             # program-specific install script used by HP pwplus--don't use.
3315             :
3316           else
3317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318             break 3
3319           fi
3320         fi
3321       done
3322     done
3323     ;;
3324 esac
3325 done
3326
3327
3328 fi
3329   if test "${ac_cv_path_install+set}" = set; then
3330     INSTALL=$ac_cv_path_install
3331   else
3332     # As a last resort, use the slow shell script.  We don't cache a
3333     # path for INSTALL within a source directory, because that will
3334     # break other packages using the cache if that directory is
3335     # removed, or if the path is relative.
3336     INSTALL=$ac_install_sh
3337   fi
3338 fi
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3341
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349
3350 if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$RANLIB"; then
3359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379   echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 fi
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388   ac_ct_RANLIB=$RANLIB
3389   # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$ac_ct_RANLIB"; then
3397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_ac_ct_RANLIB="ranlib"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412
3413   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3414 fi
3415 fi
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425   RANLIB=$ac_ct_RANLIB
3426 else
3427   RANLIB="$ac_cv_prog_RANLIB"
3428 fi
3429
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   case $MV in
3438   [\\/]* | ?:[\\/]*)
3439   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3440   ;;
3441   *)
3442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447   for ac_exec_ext in '' $ac_executable_extensions; do
3448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454 done
3455
3456   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3457   ;;
3458 esac
3459 fi
3460 MV=$ac_cv_path_MV
3461
3462 if test -n "$MV"; then
3463   echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3465 else
3466   echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3468 fi
3469
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   case $RM in
3478   [\\/]* | ?:[\\/]*)
3479   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3480   ;;
3481   *)
3482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for ac_exec_ext in '' $ac_executable_extensions; do
3488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494 done
3495
3496   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3497   ;;
3498 esac
3499 fi
3500 RM=$ac_cv_path_RM
3501
3502 if test -n "$RM"; then
3503   echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3505 else
3506   echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508 fi
3509
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   case $CP in
3518   [\\/]* | ?:[\\/]*)
3519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3520   ;;
3521   *)
3522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3537   ;;
3538 esac
3539 fi
3540 CP=$ac_cv_path_CP
3541
3542 if test -n "$CP"; then
3543   echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3545 else
3546   echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548 fi
3549
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   case $SED in
3558   [\\/]* | ?:[\\/]*)
3559   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3560   ;;
3561   *)
3562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567   for ac_exec_ext in '' $ac_executable_extensions; do
3568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574 done
3575
3576   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3577   ;;
3578 esac
3579 fi
3580 SED=$ac_cv_path_SED
3581
3582 if test -n "$SED"; then
3583   echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3585 else
3586   echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3588 fi
3589
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   case $ECHO in
3598   [\\/]* | ?:[\\/]*)
3599   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3600   ;;
3601   *)
3602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for ac_exec_ext in '' $ac_executable_extensions; do
3608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614 done
3615
3616   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3617   ;;
3618 esac
3619 fi
3620 ECHO=$ac_cv_path_ECHO
3621
3622 if test -n "$ECHO"; then
3623   echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   case $CMP in
3638   [\\/]* | ?:[\\/]*)
3639   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3640   ;;
3641   *)
3642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647   for ac_exec_ext in '' $ac_executable_extensions; do
3648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654 done
3655
3656   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3657   ;;
3658 esac
3659 fi
3660 CMP=$ac_cv_path_CMP
3661
3662 if test -n "$CMP"; then
3663   echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3665 else
3666   echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   case $TBL in
3678   [\\/]* | ?:[\\/]*)
3679   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3680   ;;
3681   *)
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_exec_ext in '' $ac_executable_extensions; do
3688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694 done
3695
3696   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3697   ;;
3698 esac
3699 fi
3700 TBL=$ac_cv_path_TBL
3701
3702 if test -n "$TBL"; then
3703   echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   case $AR in
3718   [\\/]* | ?:[\\/]*)
3719   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3720   ;;
3721   *)
3722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735
3736   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3737   ;;
3738 esac
3739 fi
3740 AR=$ac_cv_path_AR
3741
3742 if test -n "$AR"; then
3743   echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3745 else
3746   echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   case $OPENSSL in
3758   [\\/]* | ?:[\\/]*)
3759   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3760   ;;
3761   *)
3762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774 done
3775
3776   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3777   ;;
3778 esac
3779 fi
3780 OPENSSL=$ac_cv_path_OPENSSL
3781
3782 if test -n "$OPENSSL"; then
3783   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   case $MTX in
3798   [\\/]* | ?:[\\/]*)
3799   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3800   ;;
3801   *)
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807   for ac_exec_ext in '' $ac_executable_extensions; do
3808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814 done
3815
3816   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3817   ;;
3818 esac
3819 fi
3820 MTX=$ac_cv_path_MTX
3821
3822 if test -n "$MTX"; then
3823   echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828 fi
3829
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   case $DD in
3838   [\\/]* | ?:[\\/]*)
3839   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3840   ;;
3841   *)
3842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3857   ;;
3858 esac
3859 fi
3860 DD=$ac_cv_path_DD
3861
3862 if test -n "$DD"; then
3863   echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3865 else
3866   echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868 fi
3869
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   case $MKISOFS in
3878   [\\/]* | ?:[\\/]*)
3879   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3880   ;;
3881   *)
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3897   ;;
3898 esac
3899 fi
3900 MKISOFS=$ac_cv_path_MKISOFS
3901
3902 if test -n "$MKISOFS"; then
3903   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $PYTHON in
3918   [\\/]* | ?:[\\/]*)
3919   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3920   ;;
3921   *)
3922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3937   ;;
3938 esac
3939 fi
3940 PYTHON=$ac_cv_path_PYTHON
3941
3942 if test -n "$PYTHON"; then
3943   echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   case $GROWISOFS in
3958   [\\/]* | ?:[\\/]*)
3959   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3960   ;;
3961   *)
3962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for ac_exec_ext in '' $ac_executable_extensions; do
3968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974 done
3975
3976   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3977   ;;
3978 esac
3979 fi
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3981
3982 if test -n "$GROWISOFS"; then
3983   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   case $DVDRWMEDIAINFO in
3998   [\\/]* | ?:[\\/]*)
3999   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4000   ;;
4001   *)
4002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015
4016   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4017   ;;
4018 esac
4019 fi
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4021
4022 if test -n "$DVDRWMEDIAINFO"; then
4023   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   case $DVDRWFORMAT in
4038   [\\/]* | ?:[\\/]*)
4039   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4040   ;;
4041   *)
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055
4056   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4057   ;;
4058 esac
4059 fi
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4061
4062 if test -n "$DVDRWFORMAT"; then
4063   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   case $PKGCONFIG in
4078   [\\/]* | ?:[\\/]*)
4079   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4080   ;;
4081   *)
4082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095
4096   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4097   ;;
4098 esac
4099 fi
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4101
4102 if test -n "$PKGCONFIG"; then
4103   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110
4111 if test "x$WXCONFIG" = x; then
4112   WXCONFIG=wx-config
4113 fi
4114 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4115 set dummy ${WXCONFIG}; ac_word=$2
4116 echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4118 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4119   echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121   case $WXCONFIG in
4122   [\\/]* | ?:[\\/]*)
4123   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4124   ;;
4125   *)
4126   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4128 do
4129   IFS=$as_save_IFS
4130   test -z "$as_dir" && as_dir=.
4131   for ac_exec_ext in '' $ac_executable_extensions; do
4132   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4134     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135     break 2
4136   fi
4137 done
4138 done
4139
4140   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4141   ;;
4142 esac
4143 fi
4144 WXCONFIG=$ac_cv_path_WXCONFIG
4145
4146 if test -n "$WXCONFIG"; then
4147   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4148 echo "${ECHO_T}$WXCONFIG" >&6
4149 else
4150   echo "$as_me:$LINENO: result: no" >&5
4151 echo "${ECHO_T}no" >&6
4152 fi
4153
4154
4155 # Extract the first word of "cdrecord", so it can be a program name with args.
4156 set dummy cdrecord; ac_word=$2
4157 echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4159 if test "${ac_cv_path_CDRECORD+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   case $CDRECORD in
4163   [\\/]* | ?:[\\/]*)
4164   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4165   ;;
4166   *)
4167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172   for ac_exec_ext in '' $ac_executable_extensions; do
4173   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4175     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4176     break 2
4177   fi
4178 done
4179 done
4180
4181   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4182   ;;
4183 esac
4184 fi
4185 CDRECORD=$ac_cv_path_CDRECORD
4186
4187 if test -n "$CDRECORD"; then
4188   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4189 echo "${ECHO_T}$CDRECORD" >&6
4190 else
4191   echo "$as_me:$LINENO: result: no" >&5
4192 echo "${ECHO_T}no" >&6
4193 fi
4194
4195 # Extract the first word of "pidof", so it can be a program name with args.
4196 set dummy pidof; ac_word=$2
4197 echo "$as_me:$LINENO: checking for $ac_word" >&5
4198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4199 if test "${ac_cv_path_PIDOF+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   case $PIDOF in
4203   [\\/]* | ?:[\\/]*)
4204   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4205   ;;
4206   *)
4207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH
4209 do
4210   IFS=$as_save_IFS
4211   test -z "$as_dir" && as_dir=.
4212   for ac_exec_ext in '' $ac_executable_extensions; do
4213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4214     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216     break 2
4217   fi
4218 done
4219 done
4220
4221   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4222   ;;
4223 esac
4224 fi
4225 PIDOF=$ac_cv_path_PIDOF
4226
4227 if test -n "$PIDOF"; then
4228   echo "$as_me:$LINENO: result: $PIDOF" >&5
4229 echo "${ECHO_T}$PIDOF" >&6
4230 else
4231   echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6
4233 fi
4234
4235 for ac_prog in gawk mawk nawk awk
4236 do
4237   # Extract the first word of "$ac_prog", so it can be a program name with args.
4238 set dummy $ac_prog; ac_word=$2
4239 echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4241 if test "${ac_cv_prog_AWK+set}" = set; then
4242   echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244   if test -n "$AWK"; then
4245   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4246 else
4247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for ac_exec_ext in '' $ac_executable_extensions; do
4253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254     ac_cv_prog_AWK="$ac_prog"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260
4261 fi
4262 fi
4263 AWK=$ac_cv_prog_AWK
4264 if test -n "$AWK"; then
4265   echo "$as_me:$LINENO: result: $AWK" >&5
4266 echo "${ECHO_T}$AWK" >&6
4267 else
4268   echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6
4270 fi
4271
4272   test -n "$AWK" && break
4273 done
4274
4275 # Some AWK programs fail, so test it and warn the user
4276 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4277       { if ((prog == $2) || (("(" prog ")") == $2) ||
4278            (("" prog "") == $2) ||
4279            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4280 else
4281   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4282    The regex engine of $AWK is too broken to be used you
4283    might want to install GNU AWK.
4284    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4285 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4286    The regex engine of $AWK is too broken to be used you
4287    might want to install GNU AWK.
4288    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4289    { (exit 1); exit 1; }; }
4290 fi
4291 THE_AWK=$AWK
4292 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4293 set dummy $THE_AWK; ac_word=$2
4294 echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4296 if test "${ac_cv_path_AWK+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   case $AWK in
4300   [\\/]* | ?:[\\/]*)
4301   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4302   ;;
4303   *)
4304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317
4318   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4319   ;;
4320 esac
4321 fi
4322 AWK=$ac_cv_path_AWK
4323
4324 if test -n "$AWK"; then
4325   echo "$as_me:$LINENO: result: $AWK" >&5
4326 echo "${ECHO_T}$AWK" >&6
4327 else
4328   echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6
4330 fi
4331
4332
4333 test -n "$ARFLAG" || ARFLAGS="cr"
4334
4335
4336 MAKE_SHELL=/bin/sh
4337
4338
4339
4340
4341
4342
4343
4344 # Make sure we can run config.sub.
4345 $ac_config_sub sun4 >/dev/null 2>&1 ||
4346   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4347 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4348    { (exit 1); exit 1; }; }
4349
4350 echo "$as_me:$LINENO: checking build system type" >&5
4351 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4352 if test "${ac_cv_build+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_cv_build_alias=$build_alias
4356 test -z "$ac_cv_build_alias" &&
4357   ac_cv_build_alias=`$ac_config_guess`
4358 test -z "$ac_cv_build_alias" &&
4359   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4360 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4361    { (exit 1); exit 1; }; }
4362 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4363   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4364 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4365    { (exit 1); exit 1; }; }
4366
4367 fi
4368 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4369 echo "${ECHO_T}$ac_cv_build" >&6
4370 build=$ac_cv_build
4371 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4372 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4373 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4374
4375
4376
4377 echo "$as_me:$LINENO: checking host system type" >&5
4378 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4379 if test "${ac_cv_host+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   ac_cv_host_alias=$host_alias
4383 test -z "$ac_cv_host_alias" &&
4384   ac_cv_host_alias=$ac_cv_build_alias
4385 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4386   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4387 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4388    { (exit 1); exit 1; }; }
4389
4390 fi
4391 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4392 echo "${ECHO_T}$ac_cv_host" >&6
4393 host=$ac_cv_host
4394 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4395 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4396 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4397
4398
4399 case $host_os in
4400   *cygwin* ) CYGWIN=yes;;
4401          * ) CYGWIN=no;;
4402 esac
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_SUN_OS_TRUE=
4410   HAVE_SUN_OS_FALSE='#'
4411 else
4412   HAVE_SUN_OS_TRUE='#'
4413   HAVE_SUN_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_SUN_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_SUN_OS_TRUE=
4424   HAVE_SUN_OS_FALSE='#'
4425 else
4426   HAVE_SUN_OS_TRUE='#'
4427   HAVE_SUN_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_OSF1_OS_TRUE=
4437   HAVE_OSF1_OS_FALSE='#'
4438 else
4439   HAVE_OSF1_OS_TRUE='#'
4440   HAVE_OSF1_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_OSF1_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_OSF1_OS_TRUE=
4451   HAVE_OSF1_OS_FALSE='#'
4452 else
4453   HAVE_OSF1_OS_TRUE='#'
4454   HAVE_OSF1_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_AIX_OS_TRUE=
4464   HAVE_AIX_OS_FALSE='#'
4465 else
4466   HAVE_AIX_OS_TRUE='#'
4467   HAVE_AIX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_AIX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_AIX_OS_TRUE=
4478   HAVE_AIX_OS_FALSE='#'
4479 else
4480   HAVE_AIX_OS_TRUE='#'
4481   HAVE_AIX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_HPUX_OS_TRUE=
4491   HAVE_HPUX_OS_FALSE='#'
4492 else
4493   HAVE_HPUX_OS_TRUE='#'
4494   HAVE_HPUX_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_HPUX_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_HPUX_OS_TRUE=
4505   HAVE_HPUX_OS_FALSE='#'
4506 else
4507   HAVE_HPUX_OS_TRUE='#'
4508   HAVE_HPUX_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_LINUX_OS_TRUE=
4518   HAVE_LINUX_OS_FALSE='#'
4519 else
4520   HAVE_LINUX_OS_TRUE='#'
4521   HAVE_LINUX_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_LINUX_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_LINUX_OS_TRUE=
4532   HAVE_LINUX_OS_FALSE='#'
4533 else
4534   HAVE_LINUX_OS_TRUE='#'
4535   HAVE_LINUX_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_FREEBSD_OS_TRUE=
4545   HAVE_FREEBSD_OS_FALSE='#'
4546 else
4547   HAVE_FREEBSD_OS_TRUE='#'
4548   HAVE_FREEBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_FREEBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_FREEBSD_OS_TRUE=
4559   HAVE_FREEBSD_OS_FALSE='#'
4560 else
4561   HAVE_FREEBSD_OS_TRUE='#'
4562   HAVE_FREEBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_NETBSD_OS_TRUE=
4572   HAVE_NETBSD_OS_FALSE='#'
4573 else
4574   HAVE_NETBSD_OS_TRUE='#'
4575   HAVE_NETBSD_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_NETBSD_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_NETBSD_OS_TRUE=
4586   HAVE_NETBSD_OS_FALSE='#'
4587 else
4588   HAVE_NETBSD_OS_TRUE='#'
4589   HAVE_NETBSD_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_OPENBSD_OS_TRUE=
4599   HAVE_OPENBSD_OS_FALSE='#'
4600 else
4601   HAVE_OPENBSD_OS_TRUE='#'
4602   HAVE_OPENBSD_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_OPENBSD_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_OPENBSD_OS_TRUE=
4613   HAVE_OPENBSD_OS_FALSE='#'
4614 else
4615   HAVE_OPENBSD_OS_TRUE='#'
4616   HAVE_OPENBSD_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_BSDI_OS_TRUE=
4626   HAVE_BSDI_OS_FALSE='#'
4627 else
4628   HAVE_BSDI_OS_TRUE='#'
4629   HAVE_BSDI_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_BSDI_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_BSDI_OS_TRUE=
4640   HAVE_BSDI_OS_FALSE='#'
4641 else
4642   HAVE_BSDI_OS_TRUE='#'
4643   HAVE_BSDI_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_SGI_OS_TRUE=
4653   HAVE_SGI_OS_FALSE='#'
4654 else
4655   HAVE_SGI_OS_TRUE='#'
4656   HAVE_SGI_OS_FALSE=
4657 fi
4658         cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_SGI_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_SGI_OS_TRUE=
4667   HAVE_SGI_OS_FALSE='#'
4668 else
4669   HAVE_SGI_OS_TRUE='#'
4670   HAVE_SGI_OS_FALSE=
4671 fi
4672 fi
4673
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4675 then
4676
4677
4678 if $TRUEPRG; then
4679   HAVE_IRIX_OS_TRUE=
4680   HAVE_IRIX_OS_FALSE='#'
4681 else
4682   HAVE_IRIX_OS_TRUE='#'
4683   HAVE_IRIX_OS_FALSE=
4684 fi
4685         cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_IRIX_OS 1
4687 _ACEOF
4688
4689 else
4690
4691
4692 if $FALSEPRG; then
4693   HAVE_IRIX_OS_TRUE=
4694   HAVE_IRIX_OS_FALSE='#'
4695 else
4696   HAVE_IRIX_OS_TRUE='#'
4697   HAVE_IRIX_OS_FALSE=
4698 fi
4699 fi
4700
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4702 then
4703
4704
4705 if $TRUEPRG; then
4706   HAVE_DARWIN_OS_TRUE=
4707   HAVE_DARWIN_OS_FALSE='#'
4708 else
4709   HAVE_DARWIN_OS_TRUE='#'
4710   HAVE_DARWIN_OS_FALSE=
4711 fi
4712     cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_DARWIN_OS 1
4714 _ACEOF
4715
4716 else
4717
4718
4719 if $FALSEPRG; then
4720   HAVE_DARWIN_OS_TRUE=
4721   HAVE_DARWIN_OS_FALSE='#'
4722 else
4723   HAVE_DARWIN_OS_TRUE='#'
4724   HAVE_DARWIN_OS_FALSE=
4725 fi
4726 fi
4727
4728
4729 # -----------------------------------------------------------
4730 # ----------------------------------------------------------
4731 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4732 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4733 if test "x$DISTNAME" != "x"
4734 then
4735         echo "distname set to $DISTNAME"
4736 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4737 then
4738         DISTNAME=alpha
4739 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4740 then
4741         DISTNAME=aix
4742 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4743 then
4744         DISTNAME=hpux
4745 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4746 then
4747         DISTNAME=solaris
4748 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4749 then
4750         DISTNAME=freebsd
4751 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4752 then
4753         DISTNAME=netbsd
4754 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4755 then
4756         DISTNAME=openbsd
4757 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4758 then
4759         DISTNAME=irix
4760 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4761 then
4762         DISTNAME=bsdi
4763 elif test -f /etc/SuSE-release
4764 then
4765         DISTNAME=suse
4766 elif test -d /etc/SuSEconfig
4767 then
4768         DISTNAME=suse5
4769 elif test -f /etc/mandrake-release
4770 then
4771         DISTNAME=mandrake
4772 elif test -f /etc/whitebox-release
4773 then
4774        DISTNAME=redhat
4775 elif test -f /etc/redhat-release
4776 then
4777         DISTNAME=redhat
4778 elif test -f /etc/gentoo-release
4779 then
4780         DISTNAME=gentoo
4781 elif test -f /etc/debian_version
4782 then
4783         DISTNAME=debian
4784 elif test -f /etc/slackware-version
4785 then
4786         DISTNAME=slackware
4787 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4788 then
4789     DISTNAME=darwin
4790 elif test -f /etc/engarde-version
4791 then
4792         DISTNAME=engarde
4793 elif test "$CYGWIN" = yes
4794 then
4795         DISTNAME=cygwin
4796         cat >>confdefs.h <<\_ACEOF
4797 #define HAVE_CYGWIN 1
4798 _ACEOF
4799
4800 else
4801         DISTNAME=unknown
4802 fi
4803 echo "$as_me:$LINENO: result: done" >&5
4804 echo "${ECHO_T}done" >&6
4805
4806
4807 # --------------------------------------------------
4808 # Suppport for gettext (translations)
4809 # By default, $datadir is ${prefix}/share
4810 # --------------------------------------------------
4811 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4812 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4813 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4815   echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817   cat >conftest.make <<\_ACEOF
4818 all:
4819         @echo 'ac_maketemp="$(MAKE)"'
4820 _ACEOF
4821 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4822 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4823 if test -n "$ac_maketemp"; then
4824   eval ac_cv_prog_make_${ac_make}_set=yes
4825 else
4826   eval ac_cv_prog_make_${ac_make}_set=no
4827 fi
4828 rm -f conftest.make
4829 fi
4830 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4831   echo "$as_me:$LINENO: result: yes" >&5
4832 echo "${ECHO_T}yes" >&6
4833   SET_MAKE=
4834 else
4835   echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6
4837   SET_MAKE="MAKE=${MAKE-make}"
4838 fi
4839
4840
4841
4842         MKINSTALLDIRS=
4843   if test -n "$ac_aux_dir"; then
4844     case "$ac_aux_dir" in
4845       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4846       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4847     esac
4848   fi
4849   if test -z "$MKINSTALLDIRS"; then
4850     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4851   fi
4852
4853
4854
4855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4857     # Check whether --enable-nls or --disable-nls was given.
4858 if test "${enable_nls+set}" = set; then
4859   enableval="$enable_nls"
4860   USE_NLS=$enableval
4861 else
4862   USE_NLS=yes
4863 fi;
4864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4865 echo "${ECHO_T}$USE_NLS" >&6
4866
4867
4868
4869
4870
4871
4872 # Prepare PATH_SEPARATOR.
4873 # The user is always right.
4874 if test "${PATH_SEPARATOR+set}" != set; then
4875   echo "#! /bin/sh" >conf$$.sh
4876   echo  "exit 0"   >>conf$$.sh
4877   chmod +x conf$$.sh
4878   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4879     PATH_SEPARATOR=';'
4880   else
4881     PATH_SEPARATOR=:
4882   fi
4883   rm -f conf$$.sh
4884 fi
4885
4886 # Find out how to test for executable files. Don't use a zero-byte file,
4887 # as systems may use methods other than mode bits to determine executability.
4888 cat >conf$$.file <<_ASEOF
4889 #! /bin/sh
4890 exit 0
4891 _ASEOF
4892 chmod +x conf$$.file
4893 if test -x conf$$.file >/dev/null 2>&1; then
4894   ac_executable_p="test -x"
4895 else
4896   ac_executable_p="test -f"
4897 fi
4898 rm -f conf$$.file
4899
4900 # Extract the first word of "msgfmt", so it can be a program name with args.
4901 set dummy msgfmt; ac_word=$2
4902 echo "$as_me:$LINENO: checking for $ac_word" >&5
4903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4904 if test "${ac_cv_path_MSGFMT+set}" = set; then
4905   echo $ECHO_N "(cached) $ECHO_C" >&6
4906 else
4907   case "$MSGFMT" in
4908   [\\/]* | ?:[\\/]*)
4909     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4910     ;;
4911   *)
4912     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4913     for ac_dir in $PATH; do
4914       IFS="$ac_save_IFS"
4915       test -z "$ac_dir" && ac_dir=.
4916       for ac_exec_ext in '' $ac_executable_extensions; do
4917         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4918           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4919           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4920      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4921             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4922             break 2
4923           fi
4924         fi
4925       done
4926     done
4927     IFS="$ac_save_IFS"
4928   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4929     ;;
4930 esac
4931 fi
4932 MSGFMT="$ac_cv_path_MSGFMT"
4933 if test "$MSGFMT" != ":"; then
4934   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4935 echo "${ECHO_T}$MSGFMT" >&6
4936 else
4937   echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6
4939 fi
4940
4941   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4942 set dummy gmsgfmt; ac_word=$2
4943 echo "$as_me:$LINENO: checking for $ac_word" >&5
4944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4945 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4946   echo $ECHO_N "(cached) $ECHO_C" >&6
4947 else
4948   case $GMSGFMT in
4949   [\\/]* | ?:[\\/]*)
4950   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4951   ;;
4952   *)
4953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4955 do
4956   IFS=$as_save_IFS
4957   test -z "$as_dir" && as_dir=.
4958   for ac_exec_ext in '' $ac_executable_extensions; do
4959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4960     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4962     break 2
4963   fi
4964 done
4965 done
4966
4967   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4968   ;;
4969 esac
4970 fi
4971 GMSGFMT=$ac_cv_path_GMSGFMT
4972
4973 if test -n "$GMSGFMT"; then
4974   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4975 echo "${ECHO_T}$GMSGFMT" >&6
4976 else
4977   echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6
4979 fi
4980
4981
4982
4983 # Prepare PATH_SEPARATOR.
4984 # The user is always right.
4985 if test "${PATH_SEPARATOR+set}" != set; then
4986   echo "#! /bin/sh" >conf$$.sh
4987   echo  "exit 0"   >>conf$$.sh
4988   chmod +x conf$$.sh
4989   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4990     PATH_SEPARATOR=';'
4991   else
4992     PATH_SEPARATOR=:
4993   fi
4994   rm -f conf$$.sh
4995 fi
4996
4997 # Find out how to test for executable files. Don't use a zero-byte file,
4998 # as systems may use methods other than mode bits to determine executability.
4999 cat >conf$$.file <<_ASEOF
5000 #! /bin/sh
5001 exit 0
5002 _ASEOF
5003 chmod +x conf$$.file
5004 if test -x conf$$.file >/dev/null 2>&1; then
5005   ac_executable_p="test -x"
5006 else
5007   ac_executable_p="test -f"
5008 fi
5009 rm -f conf$$.file
5010
5011 # Extract the first word of "xgettext", so it can be a program name with args.
5012 set dummy xgettext; ac_word=$2
5013 echo "$as_me:$LINENO: checking for $ac_word" >&5
5014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5015 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018   case "$XGETTEXT" in
5019   [\\/]* | ?:[\\/]*)
5020     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5021     ;;
5022   *)
5023     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5024     for ac_dir in $PATH; do
5025       IFS="$ac_save_IFS"
5026       test -z "$ac_dir" && ac_dir=.
5027       for ac_exec_ext in '' $ac_executable_extensions; do
5028         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5029           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5030           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5031      (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
5032             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5033             break 2
5034           fi
5035         fi
5036       done
5037     done
5038     IFS="$ac_save_IFS"
5039   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5040     ;;
5041 esac
5042 fi
5043 XGETTEXT="$ac_cv_path_XGETTEXT"
5044 if test "$XGETTEXT" != ":"; then
5045   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5046 echo "${ECHO_T}$XGETTEXT" >&6
5047 else
5048   echo "$as_me:$LINENO: result: no" >&5
5049 echo "${ECHO_T}no" >&6
5050 fi
5051
5052     rm -f messages.po
5053
5054
5055 # Prepare PATH_SEPARATOR.
5056 # The user is always right.
5057 if test "${PATH_SEPARATOR+set}" != set; then
5058   echo "#! /bin/sh" >conf$$.sh
5059   echo  "exit 0"   >>conf$$.sh
5060   chmod +x conf$$.sh
5061   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5062     PATH_SEPARATOR=';'
5063   else
5064     PATH_SEPARATOR=:
5065   fi
5066   rm -f conf$$.sh
5067 fi
5068
5069 # Find out how to test for executable files. Don't use a zero-byte file,
5070 # as systems may use methods other than mode bits to determine executability.
5071 cat >conf$$.file <<_ASEOF
5072 #! /bin/sh
5073 exit 0
5074 _ASEOF
5075 chmod +x conf$$.file
5076 if test -x conf$$.file >/dev/null 2>&1; then
5077   ac_executable_p="test -x"
5078 else
5079   ac_executable_p="test -f"
5080 fi
5081 rm -f conf$$.file
5082
5083 # Extract the first word of "msgmerge", so it can be a program name with args.
5084 set dummy msgmerge; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   case "$MSGMERGE" in
5091   [\\/]* | ?:[\\/]*)
5092     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5093     ;;
5094   *)
5095     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5096     for ac_dir in $PATH; do
5097       IFS="$ac_save_IFS"
5098       test -z "$ac_dir" && ac_dir=.
5099       for ac_exec_ext in '' $ac_executable_extensions; do
5100         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5101           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5102           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5103             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5104             break 2
5105           fi
5106         fi
5107       done
5108     done
5109     IFS="$ac_save_IFS"
5110   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5111     ;;
5112 esac
5113 fi
5114 MSGMERGE="$ac_cv_path_MSGMERGE"
5115 if test "$MSGMERGE" != ":"; then
5116   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5117 echo "${ECHO_T}$MSGMERGE" >&6
5118 else
5119   echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6
5121 fi
5122
5123
5124       if test "$GMSGFMT" != ":"; then
5125             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5126        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5127       : ;
5128     else
5129       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5130       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5131 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5132       GMSGFMT=":"
5133     fi
5134   fi
5135
5136       if test "$XGETTEXT" != ":"; then
5137             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5138        (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
5139       : ;
5140     else
5141       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5142 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5143       XGETTEXT=":"
5144     fi
5145         rm -f messages.po
5146   fi
5147
5148             ac_config_commands="$ac_config_commands default-1"
5149
5150
5151
5152       if test "X$prefix" = "XNONE"; then
5153     acl_final_prefix="$ac_default_prefix"
5154   else
5155     acl_final_prefix="$prefix"
5156   fi
5157   if test "X$exec_prefix" = "XNONE"; then
5158     acl_final_exec_prefix='${prefix}'
5159   else
5160     acl_final_exec_prefix="$exec_prefix"
5161   fi
5162   acl_save_prefix="$prefix"
5163   prefix="$acl_final_prefix"
5164   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5165   prefix="$acl_save_prefix"
5166
5167
5168 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5169 if test "${with_gnu_ld+set}" = set; then
5170   withval="$with_gnu_ld"
5171   test "$withval" = no || with_gnu_ld=yes
5172 else
5173   with_gnu_ld=no
5174 fi;
5175 # Prepare PATH_SEPARATOR.
5176 # The user is always right.
5177 if test "${PATH_SEPARATOR+set}" != set; then
5178   echo "#! /bin/sh" >conf$$.sh
5179   echo  "exit 0"   >>conf$$.sh
5180   chmod +x conf$$.sh
5181   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5182     PATH_SEPARATOR=';'
5183   else
5184     PATH_SEPARATOR=:
5185   fi
5186   rm -f conf$$.sh
5187 fi
5188 ac_prog=ld
5189 if test "$GCC" = yes; then
5190   # Check if gcc -print-prog-name=ld gives a path.
5191   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5192 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5193   case $host in
5194   *-*-mingw*)
5195     # gcc leaves a trailing carriage return which upsets mingw
5196     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5197   *)
5198     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5199   esac
5200   case $ac_prog in
5201     # Accept absolute paths.
5202     [\\/]* | [A-Za-z]:[\\/]*)
5203       re_direlt='/[^/][^/]*/\.\./'
5204       # Canonicalize the path of ld
5205       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5206       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5207         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5208       done
5209       test -z "$LD" && LD="$ac_prog"
5210       ;;
5211   "")
5212     # If it fails, then pretend we aren't using GCC.
5213     ac_prog=ld
5214     ;;
5215   *)
5216     # If it is relative, then search for the first ld in PATH.
5217     with_gnu_ld=unknown
5218     ;;
5219   esac
5220 elif test "$with_gnu_ld" = yes; then
5221   echo "$as_me:$LINENO: checking for GNU ld" >&5
5222 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5223 else
5224   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5225 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5226 fi
5227 if test "${acl_cv_path_LD+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   if test -z "$LD"; then
5231   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5232   for ac_dir in $PATH; do
5233     test -z "$ac_dir" && ac_dir=.
5234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5235       acl_cv_path_LD="$ac_dir/$ac_prog"
5236       # Check to see if the program is GNU ld.  I'd rather use --version,
5237       # but apparently some GNU ld's only accept -v.
5238       # Break only if it was the GNU/non-GNU ld that we prefer.
5239       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5240       *GNU* | *'with BFD'*)
5241         test "$with_gnu_ld" != no && break ;;
5242       *)
5243         test "$with_gnu_ld" != yes && break ;;
5244       esac
5245     fi
5246   done
5247   IFS="$ac_save_ifs"
5248 else
5249   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5250 fi
5251 fi
5252
5253 LD="$acl_cv_path_LD"
5254 if test -n "$LD"; then
5255   echo "$as_me:$LINENO: result: $LD" >&5
5256 echo "${ECHO_T}$LD" >&6
5257 else
5258   echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6
5260 fi
5261 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5262 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5263    { (exit 1); exit 1; }; }
5264 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5265 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5266 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5270 case `$LD -v 2>&1 </dev/null` in
5271 *GNU* | *'with BFD'*)
5272   acl_cv_prog_gnu_ld=yes ;;
5273 *)
5274   acl_cv_prog_gnu_ld=no ;;
5275 esac
5276 fi
5277 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5278 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5279 with_gnu_ld=$acl_cv_prog_gnu_ld
5280
5281
5282
5283
5284                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5285 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5286 if test "${acl_cv_rpath+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289
5290     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5291     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5292     . ./conftest.sh
5293     rm -f ./conftest.sh
5294     acl_cv_rpath=done
5295
5296 fi
5297 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5298 echo "${ECHO_T}$acl_cv_rpath" >&6
5299   wl="$acl_cv_wl"
5300   libext="$acl_cv_libext"
5301   shlibext="$acl_cv_shlibext"
5302   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5303   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5304   hardcode_direct="$acl_cv_hardcode_direct"
5305   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5306     # Check whether --enable-rpath or --disable-rpath was given.
5307 if test "${enable_rpath+set}" = set; then
5308   enableval="$enable_rpath"
5309   :
5310 else
5311   enable_rpath=yes
5312 fi;
5313
5314
5315
5316
5317
5318
5319
5320     use_additional=yes
5321
5322   acl_save_prefix="$prefix"
5323   prefix="$acl_final_prefix"
5324   acl_save_exec_prefix="$exec_prefix"
5325   exec_prefix="$acl_final_exec_prefix"
5326
5327     eval additional_includedir=\"$includedir\"
5328     eval additional_libdir=\"$libdir\"
5329
5330   exec_prefix="$acl_save_exec_prefix"
5331   prefix="$acl_save_prefix"
5332
5333
5334 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5335 if test "${with_libiconv_prefix+set}" = set; then
5336   withval="$with_libiconv_prefix"
5337
5338     if test "X$withval" = "Xno"; then
5339       use_additional=no
5340     else
5341       if test "X$withval" = "X"; then
5342
5343   acl_save_prefix="$prefix"
5344   prefix="$acl_final_prefix"
5345   acl_save_exec_prefix="$exec_prefix"
5346   exec_prefix="$acl_final_exec_prefix"
5347
5348           eval additional_includedir=\"$includedir\"
5349           eval additional_libdir=\"$libdir\"
5350
5351   exec_prefix="$acl_save_exec_prefix"
5352   prefix="$acl_save_prefix"
5353
5354       else
5355         additional_includedir="$withval/include"
5356         additional_libdir="$withval/lib"
5357       fi
5358     fi
5359
5360 fi;
5361       LIBICONV=
5362   LTLIBICONV=
5363   INCICONV=
5364   rpathdirs=
5365   ltrpathdirs=
5366   names_already_handled=
5367   names_next_round='iconv '
5368   while test -n "$names_next_round"; do
5369     names_this_round="$names_next_round"
5370     names_next_round=
5371     for name in $names_this_round; do
5372       already_handled=
5373       for n in $names_already_handled; do
5374         if test "$n" = "$name"; then
5375           already_handled=yes
5376           break
5377         fi
5378       done
5379       if test -z "$already_handled"; then
5380         names_already_handled="$names_already_handled $name"
5381                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5382         eval value=\"\$HAVE_LIB$uppername\"
5383         if test -n "$value"; then
5384           if test "$value" = yes; then
5385             eval value=\"\$LIB$uppername\"
5386             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5387             eval value=\"\$LTLIB$uppername\"
5388             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5389           else
5390                                     :
5391           fi
5392         else
5393                               found_dir=
5394           found_la=
5395           found_so=
5396           found_a=
5397           if test $use_additional = yes; then
5398             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5399               found_dir="$additional_libdir"
5400               found_so="$additional_libdir/lib$name.$shlibext"
5401               if test -f "$additional_libdir/lib$name.la"; then
5402                 found_la="$additional_libdir/lib$name.la"
5403               fi
5404             else
5405               if test -f "$additional_libdir/lib$name.$libext"; then
5406                 found_dir="$additional_libdir"
5407                 found_a="$additional_libdir/lib$name.$libext"
5408                 if test -f "$additional_libdir/lib$name.la"; then
5409                   found_la="$additional_libdir/lib$name.la"
5410                 fi
5411               fi
5412             fi
5413           fi
5414           if test "X$found_dir" = "X"; then
5415             for x in $LDFLAGS $LTLIBICONV; do
5416
5417   acl_save_prefix="$prefix"
5418   prefix="$acl_final_prefix"
5419   acl_save_exec_prefix="$exec_prefix"
5420   exec_prefix="$acl_final_exec_prefix"
5421   eval x=\"$x\"
5422   exec_prefix="$acl_save_exec_prefix"
5423   prefix="$acl_save_prefix"
5424
5425               case "$x" in
5426                 -L*)
5427                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5428                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5429                     found_dir="$dir"
5430                     found_so="$dir/lib$name.$shlibext"
5431                     if test -f "$dir/lib$name.la"; then
5432                       found_la="$dir/lib$name.la"
5433                     fi
5434                   else
5435                     if test -f "$dir/lib$name.$libext"; then
5436                       found_dir="$dir"
5437                       found_a="$dir/lib$name.$libext"
5438                       if test -f "$dir/lib$name.la"; then
5439                         found_la="$dir/lib$name.la"
5440                       fi
5441                     fi
5442                   fi
5443                   ;;
5444               esac
5445               if test "X$found_dir" != "X"; then
5446                 break
5447               fi
5448             done
5449           fi
5450           if test "X$found_dir" != "X"; then
5451                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5452             if test "X$found_so" != "X"; then
5453                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5454                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5455               else
5456                                                                                 haveit=
5457                 for x in $ltrpathdirs; do
5458                   if test "X$x" = "X$found_dir"; then
5459                     haveit=yes
5460                     break
5461                   fi
5462                 done
5463                 if test -z "$haveit"; then
5464                   ltrpathdirs="$ltrpathdirs $found_dir"
5465                 fi
5466                                 if test "$hardcode_direct" = yes; then
5467                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5468                 else
5469                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5470                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5471                                                             haveit=
5472                     for x in $rpathdirs; do
5473                       if test "X$x" = "X$found_dir"; then
5474                         haveit=yes
5475                         break
5476                       fi
5477                     done
5478                     if test -z "$haveit"; then
5479                       rpathdirs="$rpathdirs $found_dir"
5480                     fi
5481                   else
5482                                                                                 haveit=
5483                     for x in $LDFLAGS $LIBICONV; do
5484
5485   acl_save_prefix="$prefix"
5486   prefix="$acl_final_prefix"
5487   acl_save_exec_prefix="$exec_prefix"
5488   exec_prefix="$acl_final_exec_prefix"
5489   eval x=\"$x\"
5490   exec_prefix="$acl_save_exec_prefix"
5491   prefix="$acl_save_prefix"
5492
5493                       if test "X$x" = "X-L$found_dir"; then
5494                         haveit=yes
5495                         break
5496                       fi
5497                     done
5498                     if test -z "$haveit"; then
5499                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5500                     fi
5501                     if test "$hardcode_minus_L" != no; then
5502                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5503                     else
5504                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5505                     fi
5506                   fi
5507                 fi
5508               fi
5509             else
5510               if test "X$found_a" != "X"; then
5511                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5512               else
5513                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5514               fi
5515             fi
5516                         additional_includedir=
5517             case "$found_dir" in
5518               */lib | */lib/)
5519                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5520                 additional_includedir="$basedir/include"
5521                 ;;
5522             esac
5523             if test "X$additional_includedir" != "X"; then
5524                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5525                 haveit=
5526                 if test "X$additional_includedir" = "X/usr/local/include"; then
5527                   if test -n "$GCC"; then
5528                     case $host_os in
5529                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5530                     esac
5531                   fi
5532                 fi
5533                 if test -z "$haveit"; then
5534                   for x in $CPPFLAGS $INCICONV; do
5535
5536   acl_save_prefix="$prefix"
5537   prefix="$acl_final_prefix"
5538   acl_save_exec_prefix="$exec_prefix"
5539   exec_prefix="$acl_final_exec_prefix"
5540   eval x=\"$x\"
5541   exec_prefix="$acl_save_exec_prefix"
5542   prefix="$acl_save_prefix"
5543
5544                     if test "X$x" = "X-I$additional_includedir"; then
5545                       haveit=yes
5546                       break
5547                     fi
5548                   done
5549                   if test -z "$haveit"; then
5550                     if test -d "$additional_includedir"; then
5551                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5552                     fi
5553                   fi
5554                 fi
5555               fi
5556             fi
5557                         if test -n "$found_la"; then
5558                                                         save_libdir="$libdir"
5559               case "$found_la" in
5560                 */* | *\\*) . "$found_la" ;;
5561                 *) . "./$found_la" ;;
5562               esac
5563               libdir="$save_libdir"
5564                             for dep in $dependency_libs; do
5565                 case "$dep" in
5566                   -L*)
5567                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5568                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5569                       haveit=
5570                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5571                         if test -n "$GCC"; then
5572                           case $host_os in
5573                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5574                           esac
5575                         fi
5576                       fi
5577                       if test -z "$haveit"; then
5578                         haveit=
5579                         for x in $LDFLAGS $LIBICONV; do
5580
5581   acl_save_prefix="$prefix"
5582   prefix="$acl_final_prefix"
5583   acl_save_exec_prefix="$exec_prefix"
5584   exec_prefix="$acl_final_exec_prefix"
5585   eval x=\"$x\"
5586   exec_prefix="$acl_save_exec_prefix"
5587   prefix="$acl_save_prefix"
5588
5589                           if test "X$x" = "X-L$additional_libdir"; then
5590                             haveit=yes
5591                             break
5592                           fi
5593                         done
5594                         if test -z "$haveit"; then
5595                           if test -d "$additional_libdir"; then
5596                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5597                           fi
5598                         fi
5599                         haveit=
5600                         for x in $LDFLAGS $LTLIBICONV; do
5601
5602   acl_save_prefix="$prefix"
5603   prefix="$acl_final_prefix"
5604   acl_save_exec_prefix="$exec_prefix"
5605   exec_prefix="$acl_final_exec_prefix"
5606   eval x=\"$x\"
5607   exec_prefix="$acl_save_exec_prefix"
5608   prefix="$acl_save_prefix"
5609
5610                           if test "X$x" = "X-L$additional_libdir"; then
5611                             haveit=yes
5612                             break
5613                           fi
5614                         done
5615                         if test -z "$haveit"; then
5616                           if test -d "$additional_libdir"; then
5617                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5618                           fi
5619                         fi
5620                       fi
5621                     fi
5622                     ;;
5623                   -R*)
5624                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5625                     if test "$enable_rpath" != no; then
5626                                                                   haveit=
5627                       for x in $rpathdirs; do
5628                         if test "X$x" = "X$dir"; then
5629                           haveit=yes
5630                           break
5631                         fi
5632                       done
5633                       if test -z "$haveit"; then
5634                         rpathdirs="$rpathdirs $dir"
5635                       fi
5636                                                                   haveit=
5637                       for x in $ltrpathdirs; do
5638                         if test "X$x" = "X$dir"; then
5639                           haveit=yes
5640                           break
5641                         fi
5642                       done
5643                       if test -z "$haveit"; then
5644                         ltrpathdirs="$ltrpathdirs $dir"
5645                       fi
5646                     fi
5647                     ;;
5648                   -l*)
5649                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5650                     ;;
5651                   *.la)
5652                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5653                     ;;
5654                   *)
5655                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5656                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5657                     ;;
5658                 esac
5659               done
5660             fi
5661           else
5662                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5663             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5664           fi
5665         fi
5666       fi
5667     done
5668   done
5669   if test "X$rpathdirs" != "X"; then
5670     if test -n "$hardcode_libdir_separator"; then
5671                         alldirs=
5672       for found_dir in $rpathdirs; do
5673         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5674       done
5675             acl_save_libdir="$libdir"
5676       libdir="$alldirs"
5677       eval flag=\"$hardcode_libdir_flag_spec\"
5678       libdir="$acl_save_libdir"
5679       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680     else
5681             for found_dir in $rpathdirs; do
5682         acl_save_libdir="$libdir"
5683         libdir="$found_dir"
5684         eval flag=\"$hardcode_libdir_flag_spec\"
5685         libdir="$acl_save_libdir"
5686         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5687       done
5688     fi
5689   fi
5690   if test "X$ltrpathdirs" != "X"; then
5691             for found_dir in $ltrpathdirs; do
5692       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5693     done
5694   fi
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5714 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5715 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   gt_save_CPPFLAGS="$CPPFLAGS"
5719      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5720      gt_save_LIBS="$LIBS"
5721      LIBS="$LIBS -framework CoreFoundation"
5722      cat >conftest.$ac_ext <<_ACEOF
5723 /* confdefs.h.  */
5724 _ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h.  */
5728 #include <CFPreferences.h>
5729 int
5730 main ()
5731 {
5732 CFPreferencesCopyAppValue(NULL, NULL)
5733   ;
5734   return 0;
5735 }
5736 _ACEOF
5737 rm -f conftest.$ac_objext conftest$ac_exeext
5738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5739   (eval $ac_link) 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } &&
5746          { ac_try='test -z "$ac_c_werror_flag"
5747                          || test ! -s conftest.err'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; } &&
5753          { ac_try='test -s conftest$ac_exeext'
5754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5755   (eval $ac_try) 2>&5
5756   ac_status=$?
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); }; }; then
5759   gt_cv_func_CFPreferencesCopyAppValue=yes
5760 else
5761   echo "$as_me: failed program was:" >&5
5762 sed 's/^/| /' conftest.$ac_ext >&5
5763
5764 gt_cv_func_CFPreferencesCopyAppValue=no
5765 fi
5766 rm -f conftest.err conftest.$ac_objext \
5767       conftest$ac_exeext conftest.$ac_ext
5768      CPPFLAGS="$gt_save_CPPFLAGS"
5769      LIBS="$gt_save_LIBS"
5770 fi
5771 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5772 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5774
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5777 _ACEOF
5778
5779   fi
5780     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5781 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5782 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   gt_save_CPPFLAGS="$CPPFLAGS"
5786      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5787      gt_save_LIBS="$LIBS"
5788      LIBS="$LIBS -framework CoreFoundation"
5789      cat >conftest.$ac_ext <<_ACEOF
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795 #include <CFLocale.h>
5796 int
5797 main ()
5798 {
5799 CFLocaleCopyCurrent();
5800   ;
5801   return 0;
5802 }
5803 _ACEOF
5804 rm -f conftest.$ac_objext conftest$ac_exeext
5805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5806   (eval $ac_link) 2>conftest.er1
5807   ac_status=$?
5808   grep -v '^ *+' conftest.er1 >conftest.err
5809   rm -f conftest.er1
5810   cat conftest.err >&5
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); } &&
5813          { ac_try='test -z "$ac_c_werror_flag"
5814                          || test ! -s conftest.err'
5815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5816   (eval $ac_try) 2>&5
5817   ac_status=$?
5818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819   (exit $ac_status); }; } &&
5820          { ac_try='test -s conftest$ac_exeext'
5821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5822   (eval $ac_try) 2>&5
5823   ac_status=$?
5824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825   (exit $ac_status); }; }; then
5826   gt_cv_func_CFLocaleCopyCurrent=yes
5827 else
5828   echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 gt_cv_func_CFLocaleCopyCurrent=no
5832 fi
5833 rm -f conftest.err conftest.$ac_objext \
5834       conftest$ac_exeext conftest.$ac_ext
5835      CPPFLAGS="$gt_save_CPPFLAGS"
5836      LIBS="$gt_save_LIBS"
5837 fi
5838 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5839 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5840   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5841
5842 cat >>confdefs.h <<\_ACEOF
5843 #define HAVE_CFLOCALECOPYCURRENT 1
5844 _ACEOF
5845
5846   fi
5847   INTL_MACOSX_LIBS=
5848   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5849     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5850   fi
5851
5852
5853
5854
5855   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5856 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5857     # Check whether --enable-nls or --disable-nls was given.
5858 if test "${enable_nls+set}" = set; then
5859   enableval="$enable_nls"
5860   USE_NLS=$enableval
5861 else
5862   USE_NLS=yes
5863 fi;
5864   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5865 echo "${ECHO_T}$USE_NLS" >&6
5866
5867
5868
5869
5870   LIBINTL=
5871   LTLIBINTL=
5872   POSUB=
5873
5874     if test "$USE_NLS" = "yes"; then
5875     gt_use_preinstalled_gnugettext=no
5876
5877
5878
5879
5880
5881
5882         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5883 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5884 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   cat >conftest.$ac_ext <<_ACEOF
5888 /* confdefs.h.  */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h.  */
5893 #include <libintl.h>
5894 extern int _nl_msg_cat_cntr;
5895 extern int *_nl_domain_bindings;
5896 int
5897 main ()
5898 {
5899 bindtextdomain ("", "");
5900 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5901   ;
5902   return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext conftest$ac_exeext
5906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5907   (eval $ac_link) 2>conftest.er1
5908   ac_status=$?
5909   grep -v '^ *+' conftest.er1 >conftest.err
5910   rm -f conftest.er1
5911   cat conftest.err >&5
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -z "$ac_c_werror_flag"
5915                          || test ! -s conftest.err'
5916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917   (eval $ac_try) 2>&5
5918   ac_status=$?
5919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920   (exit $ac_status); }; } &&
5921          { ac_try='test -s conftest$ac_exeext'
5922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923   (eval $ac_try) 2>&5
5924   ac_status=$?
5925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926   (exit $ac_status); }; }; then
5927   gt_cv_func_gnugettext1_libc=yes
5928 else
5929   echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 gt_cv_func_gnugettext1_libc=no
5933 fi
5934 rm -f conftest.err conftest.$ac_objext \
5935       conftest$ac_exeext conftest.$ac_ext
5936 fi
5937 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5938 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5939
5940         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5941
5942
5943
5944
5945
5946           am_save_CPPFLAGS="$CPPFLAGS"
5947
5948   for element in $INCICONV; do
5949     haveit=
5950     for x in $CPPFLAGS; do
5951
5952   acl_save_prefix="$prefix"
5953   prefix="$acl_final_prefix"
5954   acl_save_exec_prefix="$exec_prefix"
5955   exec_prefix="$acl_final_exec_prefix"
5956   eval x=\"$x\"
5957   exec_prefix="$acl_save_exec_prefix"
5958   prefix="$acl_save_prefix"
5959
5960       if test "X$x" = "X$element"; then
5961         haveit=yes
5962         break
5963       fi
5964     done
5965     if test -z "$haveit"; then
5966       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5967     fi
5968   done
5969
5970
5971   echo "$as_me:$LINENO: checking for iconv" >&5
5972 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5973 if test "${am_cv_func_iconv+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976
5977     am_cv_func_iconv="no, consider installing GNU libiconv"
5978     am_cv_lib_iconv=no
5979     cat >conftest.$ac_ext <<_ACEOF
5980 /* confdefs.h.  */
5981 _ACEOF
5982 cat confdefs.h >>conftest.$ac_ext
5983 cat >>conftest.$ac_ext <<_ACEOF
5984 /* end confdefs.h.  */
5985 #include <stdlib.h>
5986 #include <iconv.h>
5987 int
5988 main ()
5989 {
5990 iconv_t cd = iconv_open("","");
5991        iconv(cd,NULL,NULL,NULL,NULL);
5992        iconv_close(cd);
5993   ;
5994   return 0;
5995 }
5996 _ACEOF
5997 rm -f conftest.$ac_objext conftest$ac_exeext
5998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5999   (eval $ac_link) 2>conftest.er1
6000   ac_status=$?
6001   grep -v '^ *+' conftest.er1 >conftest.err
6002   rm -f conftest.er1
6003   cat conftest.err >&5
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); } &&
6006          { ac_try='test -z "$ac_c_werror_flag"
6007                          || test ! -s conftest.err'
6008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6009   (eval $ac_try) 2>&5
6010   ac_status=$?
6011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); }; } &&
6013          { ac_try='test -s conftest$ac_exeext'
6014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015   (eval $ac_try) 2>&5
6016   ac_status=$?
6017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018   (exit $ac_status); }; }; then
6019   am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027     if test "$am_cv_func_iconv" != yes; then
6028       am_save_LIBS="$LIBS"
6029       LIBS="$LIBS $LIBICONV"
6030       cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h.  */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h.  */
6036 #include <stdlib.h>
6037 #include <iconv.h>
6038 int
6039 main ()
6040 {
6041 iconv_t cd = iconv_open("","");
6042          iconv(cd,NULL,NULL,NULL,NULL);
6043          iconv_close(cd);
6044   ;
6045   return 0;
6046 }
6047 _ACEOF
6048 rm -f conftest.$ac_objext conftest$ac_exeext
6049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6050   (eval $ac_link) 2>conftest.er1
6051   ac_status=$?
6052   grep -v '^ *+' conftest.er1 >conftest.err
6053   rm -f conftest.er1
6054   cat conftest.err >&5
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); } &&
6057          { ac_try='test -z "$ac_c_werror_flag"
6058                          || test ! -s conftest.err'
6059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6060   (eval $ac_try) 2>&5
6061   ac_status=$?
6062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6063   (exit $ac_status); }; } &&
6064          { ac_try='test -s conftest$ac_exeext'
6065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6066   (eval $ac_try) 2>&5
6067   ac_status=$?
6068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069   (exit $ac_status); }; }; then
6070   am_cv_lib_iconv=yes
6071         am_cv_func_iconv=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 fi
6077 rm -f conftest.err conftest.$ac_objext \
6078       conftest$ac_exeext conftest.$ac_ext
6079       LIBS="$am_save_LIBS"
6080     fi
6081
6082 fi
6083 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6084 echo "${ECHO_T}$am_cv_func_iconv" >&6
6085   if test "$am_cv_func_iconv" = yes; then
6086
6087 cat >>confdefs.h <<\_ACEOF
6088 #define HAVE_ICONV 1
6089 _ACEOF
6090
6091   fi
6092   if test "$am_cv_lib_iconv" = yes; then
6093     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6094 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6095     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6096 echo "${ECHO_T}$LIBICONV" >&6
6097   else
6098             CPPFLAGS="$am_save_CPPFLAGS"
6099     LIBICONV=
6100     LTLIBICONV=
6101   fi
6102
6103
6104
6105
6106
6107
6108     use_additional=yes
6109
6110   acl_save_prefix="$prefix"
6111   prefix="$acl_final_prefix"
6112   acl_save_exec_prefix="$exec_prefix"
6113   exec_prefix="$acl_final_exec_prefix"
6114
6115     eval additional_includedir=\"$includedir\"
6116     eval additional_libdir=\"$libdir\"
6117
6118   exec_prefix="$acl_save_exec_prefix"
6119   prefix="$acl_save_prefix"
6120
6121
6122 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6123 if test "${with_libintl_prefix+set}" = set; then
6124   withval="$with_libintl_prefix"
6125
6126     if test "X$withval" = "Xno"; then
6127       use_additional=no
6128     else
6129       if test "X$withval" = "X"; then
6130
6131   acl_save_prefix="$prefix"
6132   prefix="$acl_final_prefix"
6133   acl_save_exec_prefix="$exec_prefix"
6134   exec_prefix="$acl_final_exec_prefix"
6135
6136           eval additional_includedir=\"$includedir\"
6137           eval additional_libdir=\"$libdir\"
6138
6139   exec_prefix="$acl_save_exec_prefix"
6140   prefix="$acl_save_prefix"
6141
6142       else
6143         additional_includedir="$withval/include"
6144         additional_libdir="$withval/lib"
6145       fi
6146     fi
6147
6148 fi;
6149       LIBINTL=
6150   LTLIBINTL=
6151   INCINTL=
6152   rpathdirs=
6153   ltrpathdirs=
6154   names_already_handled=
6155   names_next_round='intl '
6156   while test -n "$names_next_round"; do
6157     names_this_round="$names_next_round"
6158     names_next_round=
6159     for name in $names_this_round; do
6160       already_handled=
6161       for n in $names_already_handled; do
6162         if test "$n" = "$name"; then
6163           already_handled=yes
6164           break
6165         fi
6166       done
6167       if test -z "$already_handled"; then
6168         names_already_handled="$names_already_handled $name"
6169                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6170         eval value=\"\$HAVE_LIB$uppername\"
6171         if test -n "$value"; then
6172           if test "$value" = yes; then
6173             eval value=\"\$LIB$uppername\"
6174             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6175             eval value=\"\$LTLIB$uppername\"
6176             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6177           else
6178                                     :
6179           fi
6180         else
6181                               found_dir=
6182           found_la=
6183           found_so=
6184           found_a=
6185           if test $use_additional = yes; then
6186             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6187               found_dir="$additional_libdir"
6188               found_so="$additional_libdir/lib$name.$shlibext"
6189               if test -f "$additional_libdir/lib$name.la"; then
6190                 found_la="$additional_libdir/lib$name.la"
6191               fi
6192             else
6193               if test -f "$additional_libdir/lib$name.$libext"; then
6194                 found_dir="$additional_libdir"
6195                 found_a="$additional_libdir/lib$name.$libext"
6196                 if test -f "$additional_libdir/lib$name.la"; then
6197                   found_la="$additional_libdir/lib$name.la"
6198                 fi
6199               fi
6200             fi
6201           fi
6202           if test "X$found_dir" = "X"; then
6203             for x in $LDFLAGS $LTLIBINTL; do
6204
6205   acl_save_prefix="$prefix"
6206   prefix="$acl_final_prefix"
6207   acl_save_exec_prefix="$exec_prefix"
6208   exec_prefix="$acl_final_exec_prefix"
6209   eval x=\"$x\"
6210   exec_prefix="$acl_save_exec_prefix"
6211   prefix="$acl_save_prefix"
6212
6213               case "$x" in
6214                 -L*)
6215                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6216                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6217                     found_dir="$dir"
6218                     found_so="$dir/lib$name.$shlibext"
6219                     if test -f "$dir/lib$name.la"; then
6220                       found_la="$dir/lib$name.la"
6221                     fi
6222                   else
6223                     if test -f "$dir/lib$name.$libext"; then
6224                       found_dir="$dir"
6225                       found_a="$dir/lib$name.$libext"
6226                       if test -f "$dir/lib$name.la"; then
6227                         found_la="$dir/lib$name.la"
6228                       fi
6229                     fi
6230                   fi
6231                   ;;
6232               esac
6233               if test "X$found_dir" != "X"; then
6234                 break
6235               fi
6236             done
6237           fi
6238           if test "X$found_dir" != "X"; then
6239                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6240             if test "X$found_so" != "X"; then
6241                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6242                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6243               else
6244                                                                                 haveit=
6245                 for x in $ltrpathdirs; do
6246                   if test "X$x" = "X$found_dir"; then
6247                     haveit=yes
6248                     break
6249                   fi
6250                 done
6251                 if test -z "$haveit"; then
6252                   ltrpathdirs="$ltrpathdirs $found_dir"
6253                 fi
6254                                 if test "$hardcode_direct" = yes; then
6255                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6256                 else
6257                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6258                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6259                                                             haveit=
6260                     for x in $rpathdirs; do
6261                       if test "X$x" = "X$found_dir"; then
6262                         haveit=yes
6263                         break
6264                       fi
6265                     done
6266                     if test -z "$haveit"; then
6267                       rpathdirs="$rpathdirs $found_dir"
6268                     fi
6269                   else
6270                                                                                 haveit=
6271                     for x in $LDFLAGS $LIBINTL; do
6272
6273   acl_save_prefix="$prefix"
6274   prefix="$acl_final_prefix"
6275   acl_save_exec_prefix="$exec_prefix"
6276   exec_prefix="$acl_final_exec_prefix"
6277   eval x=\"$x\"
6278   exec_prefix="$acl_save_exec_prefix"
6279   prefix="$acl_save_prefix"
6280
6281                       if test "X$x" = "X-L$found_dir"; then
6282                         haveit=yes
6283                         break
6284                       fi
6285                     done
6286                     if test -z "$haveit"; then
6287                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6288                     fi
6289                     if test "$hardcode_minus_L" != no; then
6290                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6291                     else
6292                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6293                     fi
6294                   fi
6295                 fi
6296               fi
6297             else
6298               if test "X$found_a" != "X"; then
6299                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6300               else
6301                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6302               fi
6303             fi
6304                         additional_includedir=
6305             case "$found_dir" in
6306               */lib | */lib/)
6307                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6308                 additional_includedir="$basedir/include"
6309                 ;;
6310             esac
6311             if test "X$additional_includedir" != "X"; then
6312                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6313                 haveit=
6314                 if test "X$additional_includedir" = "X/usr/local/include"; then
6315                   if test -n "$GCC"; then
6316                     case $host_os in
6317                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6318                     esac
6319                   fi
6320                 fi
6321                 if test -z "$haveit"; then
6322                   for x in $CPPFLAGS $INCINTL; do
6323
6324   acl_save_prefix="$prefix"
6325   prefix="$acl_final_prefix"
6326   acl_save_exec_prefix="$exec_prefix"
6327   exec_prefix="$acl_final_exec_prefix"
6328   eval x=\"$x\"
6329   exec_prefix="$acl_save_exec_prefix"
6330   prefix="$acl_save_prefix"
6331
6332                     if test "X$x" = "X-I$additional_includedir"; then
6333                       haveit=yes
6334                       break
6335                     fi
6336                   done
6337                   if test -z "$haveit"; then
6338                     if test -d "$additional_includedir"; then
6339                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6340                     fi
6341                   fi
6342                 fi
6343               fi
6344             fi
6345                         if test -n "$found_la"; then
6346                                                         save_libdir="$libdir"
6347               case "$found_la" in
6348                 */* | *\\*) . "$found_la" ;;
6349                 *) . "./$found_la" ;;
6350               esac
6351               libdir="$save_libdir"
6352                             for dep in $dependency_libs; do
6353                 case "$dep" in
6354                   -L*)
6355                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6356                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6357                       haveit=
6358                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6359                         if test -n "$GCC"; then
6360                           case $host_os in
6361                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6362                           esac
6363                         fi
6364                       fi
6365                       if test -z "$haveit"; then
6366                         haveit=
6367                         for x in $LDFLAGS $LIBINTL; do
6368
6369   acl_save_prefix="$prefix"
6370   prefix="$acl_final_prefix"
6371   acl_save_exec_prefix="$exec_prefix"
6372   exec_prefix="$acl_final_exec_prefix"
6373   eval x=\"$x\"
6374   exec_prefix="$acl_save_exec_prefix"
6375   prefix="$acl_save_prefix"
6376
6377                           if test "X$x" = "X-L$additional_libdir"; then
6378                             haveit=yes
6379                             break
6380                           fi
6381                         done
6382                         if test -z "$haveit"; then
6383                           if test -d "$additional_libdir"; then
6384                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6385                           fi
6386                         fi
6387                         haveit=
6388                         for x in $LDFLAGS $LTLIBINTL; do
6389
6390   acl_save_prefix="$prefix"
6391   prefix="$acl_final_prefix"
6392   acl_save_exec_prefix="$exec_prefix"
6393   exec_prefix="$acl_final_exec_prefix"
6394   eval x=\"$x\"
6395   exec_prefix="$acl_save_exec_prefix"
6396   prefix="$acl_save_prefix"
6397
6398                           if test "X$x" = "X-L$additional_libdir"; then
6399                             haveit=yes
6400                             break
6401                           fi
6402                         done
6403                         if test -z "$haveit"; then
6404                           if test -d "$additional_libdir"; then
6405                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6406                           fi
6407                         fi
6408                       fi
6409                     fi
6410                     ;;
6411                   -R*)
6412                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6413                     if test "$enable_rpath" != no; then
6414                                                                   haveit=
6415                       for x in $rpathdirs; do
6416                         if test "X$x" = "X$dir"; then
6417                           haveit=yes
6418                           break
6419                         fi
6420                       done
6421                       if test -z "$haveit"; then
6422                         rpathdirs="$rpathdirs $dir"
6423                       fi
6424                                                                   haveit=
6425                       for x in $ltrpathdirs; do
6426                         if test "X$x" = "X$dir"; then
6427                           haveit=yes
6428                           break
6429                         fi
6430                       done
6431                       if test -z "$haveit"; then
6432                         ltrpathdirs="$ltrpathdirs $dir"
6433                       fi
6434                     fi
6435                     ;;
6436                   -l*)
6437                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6438                     ;;
6439                   *.la)
6440                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6441                     ;;
6442                   *)
6443                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6444                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6445                     ;;
6446                 esac
6447               done
6448             fi
6449           else
6450                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6451             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6452           fi
6453         fi
6454       fi
6455     done
6456   done
6457   if test "X$rpathdirs" != "X"; then
6458     if test -n "$hardcode_libdir_separator"; then
6459                         alldirs=
6460       for found_dir in $rpathdirs; do
6461         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6462       done
6463             acl_save_libdir="$libdir"
6464       libdir="$alldirs"
6465       eval flag=\"$hardcode_libdir_flag_spec\"
6466       libdir="$acl_save_libdir"
6467       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468     else
6469             for found_dir in $rpathdirs; do
6470         acl_save_libdir="$libdir"
6471         libdir="$found_dir"
6472         eval flag=\"$hardcode_libdir_flag_spec\"
6473         libdir="$acl_save_libdir"
6474         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6475       done
6476     fi
6477   fi
6478   if test "X$ltrpathdirs" != "X"; then
6479             for found_dir in $ltrpathdirs; do
6480       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6481     done
6482   fi
6483
6484           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6485 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6486 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   gt_save_CPPFLAGS="$CPPFLAGS"
6490             CPPFLAGS="$CPPFLAGS $INCINTL"
6491             gt_save_LIBS="$LIBS"
6492             LIBS="$LIBS $LIBINTL"
6493                         cat >conftest.$ac_ext <<_ACEOF
6494 /* confdefs.h.  */
6495 _ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h.  */
6499 #include <libintl.h>
6500 extern int _nl_msg_cat_cntr;
6501 extern
6502 #ifdef __cplusplus
6503 "C"
6504 #endif
6505 const char *_nl_expand_alias (const char *);
6506 int
6507 main ()
6508 {
6509 bindtextdomain ("", "");
6510 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6511   ;
6512   return 0;
6513 }
6514 _ACEOF
6515 rm -f conftest.$ac_objext conftest$ac_exeext
6516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6517   (eval $ac_link) 2>conftest.er1
6518   ac_status=$?
6519   grep -v '^ *+' conftest.er1 >conftest.err
6520   rm -f conftest.er1
6521   cat conftest.err >&5
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); } &&
6524          { ac_try='test -z "$ac_c_werror_flag"
6525                          || test ! -s conftest.err'
6526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6527   (eval $ac_try) 2>&5
6528   ac_status=$?
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); }; } &&
6531          { ac_try='test -s conftest$ac_exeext'
6532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533   (eval $ac_try) 2>&5
6534   ac_status=$?
6535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536   (exit $ac_status); }; }; then
6537   gt_cv_func_gnugettext1_libintl=yes
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 gt_cv_func_gnugettext1_libintl=no
6543 fi
6544 rm -f conftest.err conftest.$ac_objext \
6545       conftest$ac_exeext conftest.$ac_ext
6546                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6547               LIBS="$LIBS $LIBICONV"
6548               cat >conftest.$ac_ext <<_ACEOF
6549 /* confdefs.h.  */
6550 _ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h.  */
6554 #include <libintl.h>
6555 extern int _nl_msg_cat_cntr;
6556 extern
6557 #ifdef __cplusplus
6558 "C"
6559 #endif
6560 const char *_nl_expand_alias (const char *);
6561 int
6562 main ()
6563 {
6564 bindtextdomain ("", "");
6565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6566   ;
6567   return 0;
6568 }
6569 _ACEOF
6570 rm -f conftest.$ac_objext conftest$ac_exeext
6571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6572   (eval $ac_link) 2>conftest.er1
6573   ac_status=$?
6574   grep -v '^ *+' conftest.er1 >conftest.err
6575   rm -f conftest.er1
6576   cat conftest.err >&5
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); } &&
6579          { ac_try='test -z "$ac_c_werror_flag"
6580                          || test ! -s conftest.err'
6581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6582   (eval $ac_try) 2>&5
6583   ac_status=$?
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); }; } &&
6586          { ac_try='test -s conftest$ac_exeext'
6587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6588   (eval $ac_try) 2>&5
6589   ac_status=$?
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); }; }; then
6592   LIBINTL="$LIBINTL $LIBICONV"
6593                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6594                 gt_cv_func_gnugettext1_libintl=yes
6595
6596 else
6597   echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 fi
6601 rm -f conftest.err conftest.$ac_objext \
6602       conftest$ac_exeext conftest.$ac_ext
6603             fi
6604             CPPFLAGS="$gt_save_CPPFLAGS"
6605             LIBS="$gt_save_LIBS"
6606 fi
6607 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6608 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6609         fi
6610
6611                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6612            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6613                 && test "$PACKAGE" != gettext-runtime \
6614                 && test "$PACKAGE" != gettext-tools; }; then
6615           gt_use_preinstalled_gnugettext=yes
6616         else
6617                     LIBINTL=
6618           LTLIBINTL=
6619           INCINTL=
6620         fi
6621
6622
6623
6624     if test -n "$INTL_MACOSX_LIBS"; then
6625       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6628         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6629       fi
6630     fi
6631
6632     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6633        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6634
6635 cat >>confdefs.h <<\_ACEOF
6636 #define ENABLE_NLS 1
6637 _ACEOF
6638
6639     else
6640       USE_NLS=no
6641     fi
6642   fi
6643
6644   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6645 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6646   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6647 echo "${ECHO_T}$USE_NLS" >&6
6648   if test "$USE_NLS" = "yes"; then
6649     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6650 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6651     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6652       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6653         gt_source="external libintl"
6654       else
6655         gt_source="libc"
6656       fi
6657     else
6658       gt_source="included intl directory"
6659     fi
6660     echo "$as_me:$LINENO: result: $gt_source" >&5
6661 echo "${ECHO_T}$gt_source" >&6
6662   fi
6663
6664   if test "$USE_NLS" = "yes"; then
6665
6666     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6667       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6668         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6669 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6670         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6671 echo "${ECHO_T}$LIBINTL" >&6
6672
6673   for element in $INCINTL; do
6674     haveit=
6675     for x in $CPPFLAGS; do
6676
6677   acl_save_prefix="$prefix"
6678   prefix="$acl_final_prefix"
6679   acl_save_exec_prefix="$exec_prefix"
6680   exec_prefix="$acl_final_exec_prefix"
6681   eval x=\"$x\"
6682   exec_prefix="$acl_save_exec_prefix"
6683   prefix="$acl_save_prefix"
6684
6685       if test "X$x" = "X$element"; then
6686         haveit=yes
6687         break
6688       fi
6689     done
6690     if test -z "$haveit"; then
6691       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6692     fi
6693   done
6694
6695       fi
6696
6697
6698 cat >>confdefs.h <<\_ACEOF
6699 #define HAVE_GETTEXT 1
6700 _ACEOF
6701
6702
6703 cat >>confdefs.h <<\_ACEOF
6704 #define HAVE_DCGETTEXT 1
6705 _ACEOF
6706
6707     fi
6708
6709         POSUB=po
6710   fi
6711
6712
6713
6714     INTLLIBS="$LIBINTL"
6715
6716
6717
6718
6719
6720
6721 if test x${prefix} = xNONE ; then
6722    if test `eval echo ${datadir}` = NONE/share ; then
6723       datadir=/usr/share
6724    fi
6725 fi
6726
6727 # ------------------------------------------------------------------
6728 #  If the user has not set --prefix, we set our default to nothing.
6729 #  In this case, if the user has not set --sysconfdir, we set it
6730 #  to the package default of /etc/bacula.  If either --prefix or
6731 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6732 # ------------------------------------------------------------------
6733 if test x${prefix} = xNONE ; then
6734     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6735         sysconfdir=/etc/bacula
6736     fi
6737     prefix=
6738 fi
6739 sysconfdir=`eval echo ${sysconfdir}`
6740 datadir=`eval echo ${datadir}`
6741 localedir=`eval echo ${datadir}/locale`
6742 cat >>confdefs.h <<_ACEOF
6743 #define LOCALEDIR "$localedir"
6744 _ACEOF
6745
6746 cat >>confdefs.h <<_ACEOF
6747 #define SYSCONFDIR "$sysconfdir"
6748 _ACEOF
6749
6750
6751 # -------------------------------------------------------------------------
6752 #  If the user has not set --exec-prefix, we default to ${prefix}
6753 # -------------------------------------------------------------------------
6754 if test x${exec_prefix} = xNONE ; then
6755     exec_prefix=${prefix}
6756 fi
6757
6758 # ------------------------------------------------------------------
6759 # If the user has not set --sbindir, we set our default as /sbin
6760 # ------------------------------------------------------------------
6761 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6762     sbindir=${exec_prefix}/sbin
6763 fi
6764 sbindir=`eval echo ${sbindir}`
6765
6766 # -------------------------------------------------------------------------
6767 #  If the user has not set --mandir, we default to /usr/share/man
6768 # -------------------------------------------------------------------------
6769 if test x$mandir = x'${prefix}/man' ; then
6770    mandir=/usr/share/man
6771 fi
6772
6773
6774 # ------------------------------------------------------------------
6775 # All list of languages for which a translation exist. Each
6776 #  language is separated by a space.
6777 # ------------------------------------------------------------------
6778 ALL_LINGUAS=""
6779
6780 for ac_prog in msgfmt
6781 do
6782   # Extract the first word of "$ac_prog", so it can be a program name with args.
6783 set dummy $ac_prog; ac_word=$2
6784 echo "$as_me:$LINENO: checking for $ac_word" >&5
6785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6786 if test "${ac_cv_path_MSGFMT+set}" = set; then
6787   echo $ECHO_N "(cached) $ECHO_C" >&6
6788 else
6789   case $MSGFMT in
6790   [\\/]* | ?:[\\/]*)
6791   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6792   ;;
6793   *)
6794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795 for as_dir in $PATH
6796 do
6797   IFS=$as_save_IFS
6798   test -z "$as_dir" && as_dir=.
6799   for ac_exec_ext in '' $ac_executable_extensions; do
6800   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6801     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6802     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803     break 2
6804   fi
6805 done
6806 done
6807
6808   ;;
6809 esac
6810 fi
6811 MSGFMT=$ac_cv_path_MSGFMT
6812
6813 if test -n "$MSGFMT"; then
6814   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6815 echo "${ECHO_T}$MSGFMT" >&6
6816 else
6817   echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6
6819 fi
6820
6821   test -n "$MSGFMT" && break
6822 done
6823 test -n "$MSGFMT" || MSGFMT="no"
6824
6825 if test "$MSGFMT" = "no"
6826 then
6827    echo 'msgfmt program not found, disabling NLS !'
6828    USE_NLS=no
6829    USE_INCLUDED_LIBINTL=no
6830 #else
6831
6832     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6833 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6834 if test "${ac_cv_gnu_library_2+set}" = set; then
6835   echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837   cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843
6844 #include <features.h>
6845 #ifdef __GNU_LIBRARY__
6846  #if (__GLIBC__ >= 2)
6847   Lucky GNU user
6848  #endif
6849 #endif
6850
6851 _ACEOF
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6854   ac_cv_gnu_library_2=yes
6855 else
6856   ac_cv_gnu_library_2=no
6857 fi
6858 rm -f conftest*
6859
6860
6861
6862 fi
6863 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6864 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6865
6866     GLIBC2="$ac_cv_gnu_library_2"
6867
6868
6869
6870         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6871 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6872 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   ac_check_lib_save_LIBS=$LIBS
6876 LIBS="-lcposix  $LIBS"
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h.  */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h.  */
6883
6884 /* Override any gcc2 internal prototype to avoid an error.  */
6885 #ifdef __cplusplus
6886 extern "C"
6887 #endif
6888 /* We use char because int might match the return type of a gcc2
6889    builtin and then its argument prototype would still apply.  */
6890 char strerror ();
6891 int
6892 main ()
6893 {
6894 strerror ();
6895   ;
6896   return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext conftest$ac_exeext
6900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6901   (eval $ac_link) 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } &&
6908          { ac_try='test -z "$ac_c_werror_flag"
6909                          || test ! -s conftest.err'
6910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911   (eval $ac_try) 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; } &&
6915          { ac_try='test -s conftest$ac_exeext'
6916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917   (eval $ac_try) 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; }; then
6921   ac_cv_lib_cposix_strerror=yes
6922 else
6923   echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_cv_lib_cposix_strerror=no
6927 fi
6928 rm -f conftest.err conftest.$ac_objext \
6929       conftest$ac_exeext conftest.$ac_ext
6930 LIBS=$ac_check_lib_save_LIBS
6931 fi
6932 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
6933 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
6934 if test $ac_cv_lib_cposix_strerror = yes; then
6935   LIBS="$LIBS -lcposix"
6936 fi
6937
6938
6939
6940 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6941 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6942 if test "${ac_cv_header_stdc+set}" = set; then
6943   echo $ECHO_N "(cached) $ECHO_C" >&6
6944 else
6945   cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h.  */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h.  */
6951 #include <stdlib.h>
6952 #include <stdarg.h>
6953 #include <string.h>
6954 #include <float.h>
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 rm -f conftest.$ac_objext
6965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6966   (eval $ac_compile) 2>conftest.er1
6967   ac_status=$?
6968   grep -v '^ *+' conftest.er1 >conftest.err
6969   rm -f conftest.er1
6970   cat conftest.err >&5
6971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6972   (exit $ac_status); } &&
6973          { ac_try='test -z "$ac_c_werror_flag"
6974                          || test ! -s conftest.err'
6975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6976   (eval $ac_try) 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; }; then
6986   ac_cv_header_stdc=yes
6987 else
6988   echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6990
6991 ac_cv_header_stdc=no
6992 fi
6993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6994
6995 if test $ac_cv_header_stdc = yes; then
6996   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6997   cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 #include <string.h>
7004
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007   $EGREP "memchr" >/dev/null 2>&1; then
7008   :
7009 else
7010   ac_cv_header_stdc=no
7011 fi
7012 rm -f conftest*
7013
7014 fi
7015
7016 if test $ac_cv_header_stdc = yes; then
7017   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7018   cat >conftest.$ac_ext <<_ACEOF
7019 /* confdefs.h.  */
7020 _ACEOF
7021 cat confdefs.h >>conftest.$ac_ext
7022 cat >>conftest.$ac_ext <<_ACEOF
7023 /* end confdefs.h.  */
7024 #include <stdlib.h>
7025
7026 _ACEOF
7027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7028   $EGREP "free" >/dev/null 2>&1; then
7029   :
7030 else
7031   ac_cv_header_stdc=no
7032 fi
7033 rm -f conftest*
7034
7035 fi
7036
7037 if test $ac_cv_header_stdc = yes; then
7038   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7039   if test "$cross_compiling" = yes; then
7040   :
7041 else
7042   cat >conftest.$ac_ext <<_ACEOF
7043 /* confdefs.h.  */
7044 _ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h.  */
7048 #include <ctype.h>
7049 #if ((' ' & 0x0FF) == 0x020)
7050 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7051 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7052 #else
7053 # define ISLOWER(c) \
7054                    (('a' <= (c) && (c) <= 'i') \
7055                      || ('j' <= (c) && (c) <= 'r') \
7056                      || ('s' <= (c) && (c) <= 'z'))
7057 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7058 #endif
7059
7060 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7061 int
7062 main ()
7063 {
7064   int i;
7065   for (i = 0; i < 256; i++)
7066     if (XOR (islower (i), ISLOWER (i))
7067         || toupper (i) != TOUPPER (i))
7068       exit(2);
7069   exit (0);
7070 }
7071 _ACEOF
7072 rm -f conftest$ac_exeext
7073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7074   (eval $ac_link) 2>&5
7075   ac_status=$?
7076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7079   (eval $ac_try) 2>&5
7080   ac_status=$?
7081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7082   (exit $ac_status); }; }; then
7083   :
7084 else
7085   echo "$as_me: program exited with status $ac_status" >&5
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7088
7089 ( exit $ac_status )
7090 ac_cv_header_stdc=no
7091 fi
7092 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7093 fi
7094 fi
7095 fi
7096 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7097 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7098 if test $ac_cv_header_stdc = yes; then
7099
7100 cat >>confdefs.h <<\_ACEOF
7101 #define STDC_HEADERS 1
7102 _ACEOF
7103
7104 fi
7105
7106 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7107 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7108 if test "${ac_cv_c_const+set}" = set; then
7109   echo $ECHO_N "(cached) $ECHO_C" >&6
7110 else
7111   cat >conftest.$ac_ext <<_ACEOF
7112 /* confdefs.h.  */
7113 _ACEOF
7114 cat confdefs.h >>conftest.$ac_ext
7115 cat >>conftest.$ac_ext <<_ACEOF
7116 /* end confdefs.h.  */
7117
7118 int
7119 main ()
7120 {
7121 /* FIXME: Include the comments suggested by Paul. */
7122 #ifndef __cplusplus
7123   /* Ultrix mips cc rejects this.  */
7124   typedef int charset[2];
7125   const charset x;
7126   /* SunOS 4.1.1 cc rejects this.  */
7127   char const *const *ccp;
7128   char **p;
7129   /* NEC SVR4.0.2 mips cc rejects this.  */
7130   struct point {int x, y;};
7131   static struct point const zero = {0,0};
7132   /* AIX XL C 1.02.0.0 rejects this.
7133      It does not let you subtract one const X* pointer from another in
7134      an arm of an if-expression whose if-part is not a constant
7135      expression */
7136   const char *g = "string";
7137   ccp = &g + (g ? g-g : 0);
7138   /* HPUX 7.0 cc rejects these. */
7139   ++ccp;
7140   p = (char**) ccp;
7141   ccp = (char const *const *) p;
7142   { /* SCO 3.2v4 cc rejects this.  */
7143     char *t;
7144     char const *s = 0 ? (char *) 0 : (char const *) 0;
7145
7146     *t++ = 0;
7147   }
7148   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7149     int x[] = {25, 17};
7150     const int *foo = &x[0];
7151     ++foo;
7152   }
7153   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7154     typedef const int *iptr;
7155     iptr p = 0;
7156     ++p;
7157   }
7158   { /* AIX XL C 1.02.0.0 rejects this saying
7159        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7160     struct s { int j; const int *ap[3]; };
7161     struct s *b; b->j = 5;
7162   }
7163   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7164     const int foo = 10;
7165   }
7166 #endif
7167
7168   ;
7169   return 0;
7170 }
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7174   (eval $ac_compile) 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } &&
7181          { ac_try='test -z "$ac_c_werror_flag"
7182                          || test ! -s conftest.err'
7183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7184   (eval $ac_try) 2>&5
7185   ac_status=$?
7186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7187   (exit $ac_status); }; } &&
7188          { ac_try='test -s conftest.$ac_objext'
7189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7190   (eval $ac_try) 2>&5
7191   ac_status=$?
7192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193   (exit $ac_status); }; }; then
7194   ac_cv_c_const=yes
7195 else
7196   echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 ac_cv_c_const=no
7200 fi
7201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7204 echo "${ECHO_T}$ac_cv_c_const" >&6
7205 if test $ac_cv_c_const = no; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define const
7209 _ACEOF
7210
7211 fi
7212
7213
7214   echo "$as_me:$LINENO: checking for signed" >&5
7215 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7216 if test "${bh_cv_c_signed+set}" = set; then
7217   echo $ECHO_N "(cached) $ECHO_C" >&6
7218 else
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229 signed char x;
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236   (eval $ac_compile) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest.$ac_objext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256   bh_cv_c_signed=yes
7257 else
7258   echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7260
7261 bh_cv_c_signed=no
7262 fi
7263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7264 fi
7265 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7266 echo "${ECHO_T}$bh_cv_c_signed" >&6
7267   if test $bh_cv_c_signed = no; then
7268
7269 cat >>confdefs.h <<\_ACEOF
7270 #define signed
7271 _ACEOF
7272
7273   fi
7274
7275 echo "$as_me:$LINENO: checking for inline" >&5
7276 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7277 if test "${ac_cv_c_inline+set}" = set; then
7278   echo $ECHO_N "(cached) $ECHO_C" >&6
7279 else
7280   ac_cv_c_inline=no
7281 for ac_kw in inline __inline__ __inline; do
7282   cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 #ifndef __cplusplus
7289 typedef int foo_t;
7290 static $ac_kw foo_t static_foo () {return 0; }
7291 $ac_kw foo_t foo () {return 0; }
7292 #endif
7293
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297   (eval $ac_compile) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest.$ac_objext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317   ac_cv_c_inline=$ac_kw; break
7318 else
7319   echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322 fi
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324 done
7325
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7328 echo "${ECHO_T}$ac_cv_c_inline" >&6
7329
7330
7331 case $ac_cv_c_inline in
7332   inline | yes) ;;
7333   *)
7334     case $ac_cv_c_inline in
7335       no) ac_val=;;
7336       *) ac_val=$ac_cv_c_inline;;
7337     esac
7338     cat >>confdefs.h <<_ACEOF
7339 #ifndef __cplusplus
7340 #define inline $ac_val
7341 #endif
7342 _ACEOF
7343     ;;
7344 esac
7345
7346 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7357                   inttypes.h stdint.h unistd.h
7358 do
7359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7360 echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7363   echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365   cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 $ac_includes_default
7372
7373 #include <$ac_header>
7374 _ACEOF
7375 rm -f conftest.$ac_objext
7376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7377   (eval $ac_compile) 2>conftest.er1
7378   ac_status=$?
7379   grep -v '^ *+' conftest.er1 >conftest.err
7380   rm -f conftest.er1
7381   cat conftest.err >&5
7382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383   (exit $ac_status); } &&
7384          { ac_try='test -z "$ac_c_werror_flag"
7385                          || test ! -s conftest.err'
7386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7387   (eval $ac_try) 2>&5
7388   ac_status=$?
7389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390   (exit $ac_status); }; } &&
7391          { ac_try='test -s conftest.$ac_objext'
7392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7393   (eval $ac_try) 2>&5
7394   ac_status=$?
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); }; }; then
7397   eval "$as_ac_Header=yes"
7398 else
7399   echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 eval "$as_ac_Header=no"
7403 fi
7404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7407 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7409   cat >>confdefs.h <<_ACEOF
7410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7411 _ACEOF
7412
7413 fi
7414
7415 done
7416
7417
7418 echo "$as_me:$LINENO: checking for off_t" >&5
7419 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7420 if test "${ac_cv_type_off_t+set}" = set; then
7421   echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423   cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h.  */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h.  */
7429 $ac_includes_default
7430 int
7431 main ()
7432 {
7433 if ((off_t *) 0)
7434   return 0;
7435 if (sizeof (off_t))
7436   return 0;
7437   ;
7438   return 0;
7439 }
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"
7451                          || test ! -s conftest.err'
7452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453   (eval $ac_try) 2>&5
7454   ac_status=$?
7455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456   (exit $ac_status); }; } &&
7457          { ac_try='test -s conftest.$ac_objext'
7458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7459   (eval $ac_try) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); }; }; then
7463   ac_cv_type_off_t=yes
7464 else
7465   echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7467
7468 ac_cv_type_off_t=no
7469 fi
7470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7471 fi
7472 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7473 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7474 if test $ac_cv_type_off_t = yes; then
7475   :
7476 else
7477
7478 cat >>confdefs.h <<_ACEOF
7479 #define off_t long
7480 _ACEOF
7481
7482 fi
7483
7484 echo "$as_me:$LINENO: checking for size_t" >&5
7485 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7486 if test "${ac_cv_type_size_t+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h.  */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h.  */
7495 $ac_includes_default
7496 int
7497 main ()
7498 {
7499 if ((size_t *) 0)
7500   return 0;
7501 if (sizeof (size_t))
7502   return 0;
7503   ;
7504   return 0;
7505 }
7506 _ACEOF
7507 rm -f conftest.$ac_objext
7508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509   (eval $ac_compile) 2>conftest.er1
7510   ac_status=$?
7511   grep -v '^ *+' conftest.er1 >conftest.err
7512   rm -f conftest.er1
7513   cat conftest.err >&5
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } &&
7516          { ac_try='test -z "$ac_c_werror_flag"
7517                          || test ! -s conftest.err'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; } &&
7523          { ac_try='test -s conftest.$ac_objext'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; }; then
7529   ac_cv_type_size_t=yes
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534 ac_cv_type_size_t=no
7535 fi
7536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7537 fi
7538 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7539 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7540 if test $ac_cv_type_size_t = yes; then
7541   :
7542 else
7543
7544 cat >>confdefs.h <<_ACEOF
7545 #define size_t unsigned
7546 _ACEOF
7547
7548 fi
7549
7550
7551   echo "$as_me:$LINENO: checking for long long" >&5
7552 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7553 if test "${ac_cv_type_long_long+set}" = set; then
7554   echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556   cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h.  */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h.  */
7562 long long ll = 1LL; int i = 63;
7563 int
7564 main ()
7565 {
7566 long long llmax = (long long) -1;
7567      return ll << i | ll >> i | llmax / ll | llmax % ll;
7568   ;
7569   return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext conftest$ac_exeext
7573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574   (eval $ac_link) 2>conftest.er1
7575   ac_status=$?
7576   grep -v '^ *+' conftest.er1 >conftest.err
7577   rm -f conftest.er1
7578   cat conftest.err >&5
7579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580   (exit $ac_status); } &&
7581          { ac_try='test -z "$ac_c_werror_flag"
7582                          || test ! -s conftest.err'
7583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584   (eval $ac_try) 2>&5
7585   ac_status=$?
7586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); }; } &&
7588          { ac_try='test -s conftest$ac_exeext'
7589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590   (eval $ac_try) 2>&5
7591   ac_status=$?
7592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593   (exit $ac_status); }; }; then
7594   ac_cv_type_long_long=yes
7595 else
7596   echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599 ac_cv_type_long_long=no
7600 fi
7601 rm -f conftest.err conftest.$ac_objext \
7602       conftest$ac_exeext conftest.$ac_ext
7603 fi
7604 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7605 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7606   if test $ac_cv_type_long_long = yes; then
7607
7608 cat >>confdefs.h <<\_ACEOF
7609 #define HAVE_LONG_LONG 1
7610 _ACEOF
7611
7612   fi
7613
7614
7615   echo "$as_me:$LINENO: checking for long double" >&5
7616 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7617 if test "${gt_cv_c_long_double+set}" = set; then
7618   echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620   if test "$GCC" = yes; then
7621        gt_cv_c_long_double=yes
7622      else
7623        cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h.  */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h.  */
7629
7630          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7631          long double foo = 0.0;
7632          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7633          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7634
7635 int
7636 main ()
7637 {
7638
7639   ;
7640   return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7645   (eval $ac_compile) 2>conftest.er1
7646   ac_status=$?
7647   grep -v '^ *+' conftest.er1 >conftest.err
7648   rm -f conftest.er1
7649   cat conftest.err >&5
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } &&
7652          { ac_try='test -z "$ac_c_werror_flag"
7653                          || test ! -s conftest.err'
7654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655   (eval $ac_try) 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); }; } &&
7659          { ac_try='test -s conftest.$ac_objext'
7660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661   (eval $ac_try) 2>&5
7662   ac_status=$?
7663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7664   (exit $ac_status); }; }; then
7665   gt_cv_c_long_double=yes
7666 else
7667   echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670 gt_cv_c_long_double=no
7671 fi
7672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7673      fi
7674 fi
7675 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7676 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7677   if test $gt_cv_c_long_double = yes; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define HAVE_LONG_DOUBLE 1
7681 _ACEOF
7682
7683   fi
7684
7685
7686   echo "$as_me:$LINENO: checking for wchar_t" >&5
7687 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7688 if test "${gt_cv_c_wchar_t+set}" = set; then
7689   echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <stddef.h>
7698        wchar_t foo = (wchar_t)'\0';
7699 int
7700 main ()
7701 {
7702
7703   ;
7704   return 0;
7705 }
7706 _ACEOF
7707 rm -f conftest.$ac_objext
7708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7709   (eval $ac_compile) 2>conftest.er1
7710   ac_status=$?
7711   grep -v '^ *+' conftest.er1 >conftest.err
7712   rm -f conftest.er1
7713   cat conftest.err >&5
7714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7715   (exit $ac_status); } &&
7716          { ac_try='test -z "$ac_c_werror_flag"
7717                          || test ! -s conftest.err'
7718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719   (eval $ac_try) 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7725   (eval $ac_try) 2>&5
7726   ac_status=$?
7727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728   (exit $ac_status); }; }; then
7729   gt_cv_c_wchar_t=yes
7730 else
7731   echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.$ac_ext >&5
7733
7734 gt_cv_c_wchar_t=no
7735 fi
7736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7737 fi
7738 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7739 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7740   if test $gt_cv_c_wchar_t = yes; then
7741
7742 cat >>confdefs.h <<\_ACEOF
7743 #define HAVE_WCHAR_T 1
7744 _ACEOF
7745
7746   fi
7747
7748
7749   echo "$as_me:$LINENO: checking for wint_t" >&5
7750 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7751 if test "${gt_cv_c_wint_t+set}" = set; then
7752   echo $ECHO_N "(cached) $ECHO_C" >&6
7753 else
7754   cat >conftest.$ac_ext <<_ACEOF
7755 /* confdefs.h.  */
7756 _ACEOF
7757 cat confdefs.h >>conftest.$ac_ext
7758 cat >>conftest.$ac_ext <<_ACEOF
7759 /* end confdefs.h.  */
7760 #include <wchar.h>
7761        wint_t foo = (wchar_t)'\0';
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 rm -f conftest.$ac_objext
7771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772   (eval $ac_compile) 2>conftest.er1
7773   ac_status=$?
7774   grep -v '^ *+' conftest.er1 >conftest.err
7775   rm -f conftest.er1
7776   cat conftest.err >&5
7777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778   (exit $ac_status); } &&
7779          { ac_try='test -z "$ac_c_werror_flag"
7780                          || test ! -s conftest.err'
7781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782   (eval $ac_try) 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; } &&
7786          { ac_try='test -s conftest.$ac_objext'
7787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788   (eval $ac_try) 2>&5
7789   ac_status=$?
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); }; }; then
7792   gt_cv_c_wint_t=yes
7793 else
7794   echo "$as_me: failed program was:" >&5
7795 sed 's/^/| /' conftest.$ac_ext >&5
7796
7797 gt_cv_c_wint_t=no
7798 fi
7799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7800 fi
7801 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7802 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7803   if test $gt_cv_c_wint_t = yes; then
7804
7805 cat >>confdefs.h <<\_ACEOF
7806 #define HAVE_WINT_T 1
7807 _ACEOF
7808
7809   fi
7810
7811
7812   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7813 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7814 if test "${gl_cv_header_inttypes_h+set}" = set; then
7815   echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817   cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h.  */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h.  */
7823 #include <sys/types.h>
7824 #include <inttypes.h>
7825 int
7826 main ()
7827 {
7828 uintmax_t i = (uintmax_t) -1;
7829   ;
7830   return 0;
7831 }
7832 _ACEOF
7833 rm -f conftest.$ac_objext
7834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7835   (eval $ac_compile) 2>conftest.er1
7836   ac_status=$?
7837   grep -v '^ *+' conftest.er1 >conftest.err
7838   rm -f conftest.er1
7839   cat conftest.err >&5
7840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841   (exit $ac_status); } &&
7842          { ac_try='test -z "$ac_c_werror_flag"
7843                          || test ! -s conftest.err'
7844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845   (eval $ac_try) 2>&5
7846   ac_status=$?
7847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848   (exit $ac_status); }; } &&
7849          { ac_try='test -s conftest.$ac_objext'
7850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851   (eval $ac_try) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); }; }; then
7855   gl_cv_header_inttypes_h=yes
7856 else
7857   echo "$as_me: failed program was:" >&5
7858 sed 's/^/| /' conftest.$ac_ext >&5
7859
7860 gl_cv_header_inttypes_h=no
7861 fi
7862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7863 fi
7864 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7865 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7866   if test $gl_cv_header_inttypes_h = yes; then
7867
7868 cat >>confdefs.h <<_ACEOF
7869 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7870 _ACEOF
7871
7872   fi
7873
7874
7875   echo "$as_me:$LINENO: checking for stdint.h" >&5
7876 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7877 if test "${gl_cv_header_stdint_h+set}" = set; then
7878   echo $ECHO_N "(cached) $ECHO_C" >&6
7879 else
7880   cat >conftest.$ac_ext <<_ACEOF
7881 /* confdefs.h.  */
7882 _ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h.  */
7886 #include <sys/types.h>
7887 #include <stdint.h>
7888 int
7889 main ()
7890 {
7891 uintmax_t i = (uintmax_t) -1;
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest.$ac_objext
7897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7898   (eval $ac_compile) 2>conftest.er1
7899   ac_status=$?
7900   grep -v '^ *+' conftest.er1 >conftest.err
7901   rm -f conftest.er1
7902   cat conftest.err >&5
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } &&
7905          { ac_try='test -z "$ac_c_werror_flag"
7906                          || test ! -s conftest.err'
7907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7908   (eval $ac_try) 2>&5
7909   ac_status=$?
7910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911   (exit $ac_status); }; } &&
7912          { ac_try='test -s conftest.$ac_objext'
7913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7914   (eval $ac_try) 2>&5
7915   ac_status=$?
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   gl_cv_header_stdint_h=yes
7919 else
7920   echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 gl_cv_header_stdint_h=no
7924 fi
7925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7926 fi
7927 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7928 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7929   if test $gl_cv_header_stdint_h = yes; then
7930
7931 cat >>confdefs.h <<_ACEOF
7932 #define HAVE_STDINT_H_WITH_UINTMAX 1
7933 _ACEOF
7934
7935   fi
7936
7937
7938
7939
7940   echo "$as_me:$LINENO: checking for intmax_t" >&5
7941 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7942 if test "${gt_cv_c_intmax_t+set}" = set; then
7943   echo $ECHO_N "(cached) $ECHO_C" >&6
7944 else
7945   cat >conftest.$ac_ext <<_ACEOF
7946 /* confdefs.h.  */
7947 _ACEOF
7948 cat confdefs.h >>conftest.$ac_ext
7949 cat >>conftest.$ac_ext <<_ACEOF
7950 /* end confdefs.h.  */
7951
7952 #include <stddef.h>
7953 #include <stdlib.h>
7954 #if HAVE_STDINT_H_WITH_UINTMAX
7955 #include <stdint.h>
7956 #endif
7957 #if HAVE_INTTYPES_H_WITH_UINTMAX
7958 #include <inttypes.h>
7959 #endif
7960
7961 int
7962 main ()
7963 {
7964 intmax_t x = -1;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag"
7979                          || test ! -s conftest.err'
7980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981   (eval $ac_try) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest.$ac_objext'
7986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987   (eval $ac_try) 2>&5
7988   ac_status=$?
7989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990   (exit $ac_status); }; }; then
7991   gt_cv_c_intmax_t=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996 gt_cv_c_intmax_t=no
7997 fi
7998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8001 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8002   if test $gt_cv_c_intmax_t = yes; then
8003
8004 cat >>confdefs.h <<\_ACEOF
8005 #define HAVE_INTMAX_T 1
8006 _ACEOF
8007
8008   fi
8009
8010
8011
8012   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8013 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8014 if test "${gt_cv_func_printf_posix+set}" = set; then
8015   echo $ECHO_N "(cached) $ECHO_C" >&6
8016 else
8017
8018       if test "$cross_compiling" = yes; then
8019
8020         cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026
8027 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8028   notposix
8029 #endif
8030
8031 _ACEOF
8032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8033   $EGREP "notposix" >/dev/null 2>&1; then
8034   gt_cv_func_printf_posix="guessing no"
8035 else
8036   gt_cv_func_printf_posix="guessing yes"
8037 fi
8038 rm -f conftest*
8039
8040
8041 else
8042   cat >conftest.$ac_ext <<_ACEOF
8043 /* confdefs.h.  */
8044 _ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h.  */
8048
8049 #include <stdio.h>
8050 #include <string.h>
8051 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8052    dollar expansion (possibly an autoconf bug).  */
8053 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8054 static char buf[100];
8055 int main ()
8056 {
8057   sprintf (buf, format, 33, 55);
8058   return (strcmp (buf, "55 33") != 0);
8059 }
8060 _ACEOF
8061 rm -f conftest$ac_exeext
8062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8063   (eval $ac_link) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068   (eval $ac_try) 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   gt_cv_func_printf_posix=yes
8073 else
8074   echo "$as_me: program exited with status $ac_status" >&5
8075 echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078 ( exit $ac_status )
8079 gt_cv_func_printf_posix=no
8080 fi
8081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8082 fi
8083
8084 fi
8085 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8086 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8087   case $gt_cv_func_printf_posix in
8088     *yes)
8089
8090 cat >>confdefs.h <<\_ACEOF
8091 #define HAVE_POSIX_PRINTF 1
8092 _ACEOF
8093
8094       ;;
8095   esac
8096
8097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8098 # for constant arguments.  Useless!
8099 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8100 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8101 if test "${ac_cv_working_alloca_h+set}" = set; then
8102   echo $ECHO_N "(cached) $ECHO_C" >&6
8103 else
8104   cat >conftest.$ac_ext <<_ACEOF
8105 /* confdefs.h.  */
8106 _ACEOF
8107 cat confdefs.h >>conftest.$ac_ext
8108 cat >>conftest.$ac_ext <<_ACEOF
8109 /* end confdefs.h.  */
8110 #include <alloca.h>
8111 int
8112 main ()
8113 {
8114 char *p = (char *) alloca (2 * sizeof (int));
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } &&
8128          { ac_try='test -z "$ac_c_werror_flag"
8129                          || test ! -s conftest.err'
8130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131   (eval $ac_try) 2>&5
8132   ac_status=$?
8133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134   (exit $ac_status); }; } &&
8135          { ac_try='test -s conftest$ac_exeext'
8136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137   (eval $ac_try) 2>&5
8138   ac_status=$?
8139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140   (exit $ac_status); }; }; then
8141   ac_cv_working_alloca_h=yes
8142 else
8143   echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8145
8146 ac_cv_working_alloca_h=no
8147 fi
8148 rm -f conftest.err conftest.$ac_objext \
8149       conftest$ac_exeext conftest.$ac_ext
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8153 if test $ac_cv_working_alloca_h = yes; then
8154
8155 cat >>confdefs.h <<\_ACEOF
8156 #define HAVE_ALLOCA_H 1
8157 _ACEOF
8158
8159 fi
8160
8161 echo "$as_me:$LINENO: checking for alloca" >&5
8162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8163 if test "${ac_cv_func_alloca_works+set}" = set; then
8164   echo $ECHO_N "(cached) $ECHO_C" >&6
8165 else
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifdef __GNUC__
8173 # define alloca __builtin_alloca
8174 #else
8175 # ifdef _MSC_VER
8176 #  include <malloc.h>
8177 #  define alloca _alloca
8178 # else
8179 #  if HAVE_ALLOCA_H
8180 #   include <alloca.h>
8181 #  else
8182 #   ifdef _AIX
8183  #pragma alloca
8184 #   else
8185 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8186 char *alloca ();
8187 #    endif
8188 #   endif
8189 #  endif
8190 # endif
8191 #endif
8192
8193 int
8194 main ()
8195 {
8196 char *p = (char *) alloca (1);
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_func_alloca_works=yes
8224 else
8225   echo "$as_me: failed program was:" >&5
8226 sed 's/^/| /' conftest.$ac_ext >&5
8227
8228 ac_cv_func_alloca_works=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_func_alloca_works" >&5
8234 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8235
8236 if test $ac_cv_func_alloca_works = yes; then
8237
8238 cat >>confdefs.h <<\_ACEOF
8239 #define HAVE_ALLOCA 1
8240 _ACEOF
8241
8242 else
8243   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8244 # that cause trouble.  Some versions do not even contain alloca or
8245 # contain a buggy version.  If you still want to use their alloca,
8246 # use ar to extract alloca.o from them instead of compiling alloca.c.
8247
8248 ALLOCA=alloca.$ac_objext
8249
8250 cat >>confdefs.h <<\_ACEOF
8251 #define C_ALLOCA 1
8252 _ACEOF
8253
8254
8255 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8256 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8257 if test "${ac_cv_os_cray+set}" = set; then
8258   echo $ECHO_N "(cached) $ECHO_C" >&6
8259 else
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 #if defined(CRAY) && ! defined(CRAY2)
8267 webecray
8268 #else
8269 wenotbecray
8270 #endif
8271
8272 _ACEOF
8273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8274   $EGREP "webecray" >/dev/null 2>&1; then
8275   ac_cv_os_cray=yes
8276 else
8277   ac_cv_os_cray=no
8278 fi
8279 rm -f conftest*
8280
8281 fi
8282 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8283 echo "${ECHO_T}$ac_cv_os_cray" >&6
8284 if test $ac_cv_os_cray = yes; then
8285   for ac_func in _getb67 GETB67 getb67; do
8286     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8287 echo "$as_me:$LINENO: checking for $ac_func" >&5
8288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8289 if eval "test \"\${$as_ac_var+set}\" = set"; then
8290   echo $ECHO_N "(cached) $ECHO_C" >&6
8291 else
8292   cat >conftest.$ac_ext <<_ACEOF
8293 /* confdefs.h.  */
8294 _ACEOF
8295 cat confdefs.h >>conftest.$ac_ext
8296 cat >>conftest.$ac_ext <<_ACEOF
8297 /* end confdefs.h.  */
8298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8300 #define $ac_func innocuous_$ac_func
8301
8302 /* System header to define __stub macros and hopefully few prototypes,
8303     which can conflict with char $ac_func (); below.
8304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8305     <limits.h> exists even on freestanding compilers.  */
8306
8307 #ifdef __STDC__
8308 # include <limits.h>
8309 #else
8310 # include <assert.h>
8311 #endif
8312
8313 #undef $ac_func
8314
8315 /* Override any gcc2 internal prototype to avoid an error.  */
8316 #ifdef __cplusplus
8317 extern "C"
8318 {
8319 #endif
8320 /* We use char because int might match the return type of a gcc2
8321    builtin and then its argument prototype would still apply.  */
8322 char $ac_func ();
8323 /* The GNU C library defines this for functions which it implements
8324     to always fail with ENOSYS.  Some functions are actually named
8325     something starting with __ and the normal name is an alias.  */
8326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8327 choke me
8328 #else
8329 char (*f) () = $ac_func;
8330 #endif
8331 #ifdef __cplusplus
8332 }
8333 #endif
8334
8335 int
8336 main ()
8337 {
8338 return f != $ac_func;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext conftest$ac_exeext
8344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8345   (eval $ac_link) 2>conftest.er1
8346   ac_status=$?
8347   grep -v '^ *+' conftest.er1 >conftest.err
8348   rm -f conftest.er1
8349   cat conftest.err >&5
8350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351   (exit $ac_status); } &&
8352          { ac_try='test -z "$ac_c_werror_flag"
8353                          || test ! -s conftest.err'
8354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355   (eval $ac_try) 2>&5
8356   ac_status=$?
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); }; } &&
8359          { ac_try='test -s conftest$ac_exeext'
8360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361   (eval $ac_try) 2>&5
8362   ac_status=$?
8363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364   (exit $ac_status); }; }; then
8365   eval "$as_ac_var=yes"
8366 else
8367   echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 eval "$as_ac_var=no"
8371 fi
8372 rm -f conftest.err conftest.$ac_objext \
8373       conftest$ac_exeext conftest.$ac_ext
8374 fi
8375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8376 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8377 if test `eval echo '${'$as_ac_var'}'` = yes; then
8378
8379 cat >>confdefs.h <<_ACEOF
8380 #define CRAY_STACKSEG_END $ac_func
8381 _ACEOF
8382
8383     break
8384 fi
8385
8386   done
8387 fi
8388
8389 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8390 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8391 if test "${ac_cv_c_stack_direction+set}" = set; then
8392   echo $ECHO_N "(cached) $ECHO_C" >&6
8393 else
8394   if test "$cross_compiling" = yes; then
8395   ac_cv_c_stack_direction=0
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 /* confdefs.h.  */
8399 _ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h.  */
8403 int
8404 find_stack_direction ()
8405 {
8406   static char *addr = 0;
8407   auto char dummy;
8408   if (addr == 0)
8409     {
8410       addr = &dummy;
8411       return find_stack_direction ();
8412     }
8413   else
8414     return (&dummy > addr) ? 1 : -1;
8415 }
8416
8417 int
8418 main ()
8419 {
8420   exit (find_stack_direction () < 0);
8421 }
8422 _ACEOF
8423 rm -f conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425   (eval $ac_link) 2>&5
8426   ac_status=$?
8427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8430   (eval $ac_try) 2>&5
8431   ac_status=$?
8432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433   (exit $ac_status); }; }; then
8434   ac_cv_c_stack_direction=1
8435 else
8436   echo "$as_me: program exited with status $ac_status" >&5
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8439
8440 ( exit $ac_status )
8441 ac_cv_c_stack_direction=-1
8442 fi
8443 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8444 fi
8445 fi
8446 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8447 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8448
8449 cat >>confdefs.h <<_ACEOF
8450 #define STACK_DIRECTION $ac_cv_c_stack_direction
8451 _ACEOF
8452
8453
8454 fi
8455
8456
8457
8458 for ac_header in stdlib.h unistd.h
8459 do
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462   echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465   echo $ECHO_N "(cached) $ECHO_C" >&6
8466 fi
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8469 else
8470   # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 $ac_includes_default
8480 #include <$ac_header>
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484   (eval $ac_compile) 2>conftest.er1
8485   ac_status=$?
8486   grep -v '^ *+' conftest.er1 >conftest.err
8487   rm -f conftest.er1
8488   cat conftest.err >&5
8489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490   (exit $ac_status); } &&
8491          { ac_try='test -z "$ac_c_werror_flag"
8492                          || test ! -s conftest.err'
8493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8494   (eval $ac_try) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); }; } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_header_compiler=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_compiler=no
8510 fi
8511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8514
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 /* confdefs.h.  */
8520 _ACEOF
8521 cat confdefs.h >>conftest.$ac_ext
8522 cat >>conftest.$ac_ext <<_ACEOF
8523 /* end confdefs.h.  */
8524 #include <$ac_header>
8525 _ACEOF
8526 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8527   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } >/dev/null; then
8534   if test -s conftest.err; then
8535     ac_cpp_err=$ac_c_preproc_warn_flag
8536     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8537   else
8538     ac_cpp_err=
8539   fi
8540 else
8541   ac_cpp_err=yes
8542 fi
8543 if test -z "$ac_cpp_err"; then
8544   ac_header_preproc=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549   ac_header_preproc=no
8550 fi
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8554
8555 # So?  What about this header?
8556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557   yes:no: )
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8562     ac_header_preproc=yes
8563     ;;
8564   no:yes:* )
8565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8577     (
8578       cat <<\_ASBOX
8579 ## ------------------------------------------ ##
8580 ## Report this to the AC_PACKAGE_NAME lists.  ##
8581 ## ------------------------------------------ ##
8582 _ASBOX
8583     ) |
8584       sed "s/^/$as_me: WARNING:     /" >&2
8585     ;;
8586 esac
8587 echo "$as_me:$LINENO: checking for $ac_header" >&5
8588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8589 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8590   echo $ECHO_N "(cached) $ECHO_C" >&6
8591 else
8592   eval "$as_ac_Header=\$ac_header_preproc"
8593 fi
8594 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8595 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8596
8597 fi
8598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8599   cat >>confdefs.h <<_ACEOF
8600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8601 _ACEOF
8602
8603 fi
8604
8605 done
8606
8607
8608 for ac_func in getpagesize
8609 do
8610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8611 echo "$as_me:$LINENO: checking for $ac_func" >&5
8612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8613 if eval "test \"\${$as_ac_var+set}\" = set"; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8624 #define $ac_func innocuous_$ac_func
8625
8626 /* System header to define __stub macros and hopefully few prototypes,
8627     which can conflict with char $ac_func (); below.
8628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8629     <limits.h> exists even on freestanding compilers.  */
8630
8631 #ifdef __STDC__
8632 # include <limits.h>
8633 #else
8634 # include <assert.h>
8635 #endif
8636
8637 #undef $ac_func
8638
8639 /* Override any gcc2 internal prototype to avoid an error.  */
8640 #ifdef __cplusplus
8641 extern "C"
8642 {
8643 #endif
8644 /* We use char because int might match the return type of a gcc2
8645    builtin and then its argument prototype would still apply.  */
8646 char $ac_func ();
8647 /* The GNU C library defines this for functions which it implements
8648     to always fail with ENOSYS.  Some functions are actually named
8649     something starting with __ and the normal name is an alias.  */
8650 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8651 choke me
8652 #else
8653 char (*f) () = $ac_func;
8654 #endif
8655 #ifdef __cplusplus
8656 }
8657 #endif
8658
8659 int
8660 main ()
8661 {
8662 return f != $ac_func;
8663   ;
8664   return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext conftest$ac_exeext
8668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8669   (eval $ac_link) 2>conftest.er1
8670   ac_status=$?
8671   grep -v '^ *+' conftest.er1 >conftest.err
8672   rm -f conftest.er1
8673   cat conftest.err >&5
8674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675   (exit $ac_status); } &&
8676          { ac_try='test -z "$ac_c_werror_flag"
8677                          || test ! -s conftest.err'
8678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679   (eval $ac_try) 2>&5
8680   ac_status=$?
8681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682   (exit $ac_status); }; } &&
8683          { ac_try='test -s conftest$ac_exeext'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; }; then
8689   eval "$as_ac_var=yes"
8690 else
8691   echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 eval "$as_ac_var=no"
8695 fi
8696 rm -f conftest.err conftest.$ac_objext \
8697       conftest$ac_exeext conftest.$ac_ext
8698 fi
8699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8700 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8701 if test `eval echo '${'$as_ac_var'}'` = yes; then
8702   cat >>confdefs.h <<_ACEOF
8703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8704 _ACEOF
8705
8706 fi
8707 done
8708
8709 echo "$as_me:$LINENO: checking for working mmap" >&5
8710 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8711 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8712   echo $ECHO_N "(cached) $ECHO_C" >&6
8713 else
8714   if test "$cross_compiling" = yes; then
8715   ac_cv_func_mmap_fixed_mapped=no
8716 else
8717   cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h.  */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h.  */
8723 $ac_includes_default
8724 /* malloc might have been renamed as rpl_malloc. */
8725 #undef malloc
8726
8727 /* Thanks to Mike Haertel and Jim Avera for this test.
8728    Here is a matrix of mmap possibilities:
8729         mmap private not fixed
8730         mmap private fixed at somewhere currently unmapped
8731         mmap private fixed at somewhere already mapped
8732         mmap shared not fixed
8733         mmap shared fixed at somewhere currently unmapped
8734         mmap shared fixed at somewhere already mapped
8735    For private mappings, we should verify that changes cannot be read()
8736    back from the file, nor mmap's back from the file at a different
8737    address.  (There have been systems where private was not correctly
8738    implemented like the infamous i386 svr4.0, and systems where the
8739    VM page cache was not coherent with the file system buffer cache
8740    like early versions of FreeBSD and possibly contemporary NetBSD.)
8741    For shared mappings, we should conversely verify that changes get
8742    propagated back to all the places they're supposed to be.
8743
8744    Grep wants private fixed already mapped.
8745    The main things grep needs to know about mmap are:
8746    * does it exist and is it safe to write into the mmap'd area
8747    * how to use it (BSD variants)  */
8748
8749 #include <fcntl.h>
8750 #include <sys/mman.h>
8751
8752 #if !STDC_HEADERS && !HAVE_STDLIB_H
8753 char *malloc ();
8754 #endif
8755
8756 /* This mess was copied from the GNU getpagesize.h.  */
8757 #if !HAVE_GETPAGESIZE
8758 /* Assume that all systems that can run configure have sys/param.h.  */
8759 # if !HAVE_SYS_PARAM_H
8760 #  define HAVE_SYS_PARAM_H 1
8761 # endif
8762
8763 # ifdef _SC_PAGESIZE
8764 #  define getpagesize() sysconf(_SC_PAGESIZE)
8765 # else /* no _SC_PAGESIZE */
8766 #  if HAVE_SYS_PARAM_H
8767 #   include <sys/param.h>
8768 #   ifdef EXEC_PAGESIZE
8769 #    define getpagesize() EXEC_PAGESIZE
8770 #   else /* no EXEC_PAGESIZE */
8771 #    ifdef NBPG
8772 #     define getpagesize() NBPG * CLSIZE
8773 #     ifndef CLSIZE
8774 #      define CLSIZE 1
8775 #     endif /* no CLSIZE */
8776 #    else /* no NBPG */
8777 #     ifdef NBPC
8778 #      define getpagesize() NBPC
8779 #     else /* no NBPC */
8780 #      ifdef PAGESIZE
8781 #       define getpagesize() PAGESIZE
8782 #      endif /* PAGESIZE */
8783 #     endif /* no NBPC */
8784 #    endif /* no NBPG */
8785 #   endif /* no EXEC_PAGESIZE */
8786 #  else /* no HAVE_SYS_PARAM_H */
8787 #   define getpagesize() 8192   /* punt totally */
8788 #  endif /* no HAVE_SYS_PARAM_H */
8789 # endif /* no _SC_PAGESIZE */
8790
8791 #endif /* no HAVE_GETPAGESIZE */
8792
8793 int
8794 main ()
8795 {
8796   char *data, *data2, *data3;
8797   int i, pagesize;
8798   int fd;
8799
8800   pagesize = getpagesize ();
8801
8802   /* First, make a file with some known garbage in it. */
8803   data = (char *) malloc (pagesize);
8804   if (!data)
8805     exit (1);
8806   for (i = 0; i < pagesize; ++i)
8807     *(data + i) = rand ();
8808   umask (0);
8809   fd = creat ("conftest.mmap", 0600);
8810   if (fd < 0)
8811     exit (1);
8812   if (write (fd, data, pagesize) != pagesize)
8813     exit (1);
8814   close (fd);
8815
8816   /* Next, try to mmap the file at a fixed address which already has
8817      something else allocated at it.  If we can, also make sure that
8818      we see the same garbage.  */
8819   fd = open ("conftest.mmap", O_RDWR);
8820   if (fd < 0)
8821     exit (1);
8822   data2 = (char *) malloc (2 * pagesize);
8823   if (!data2)
8824     exit (1);
8825   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8826   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8827                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8828     exit (1);
8829   for (i = 0; i < pagesize; ++i)
8830     if (*(data + i) != *(data2 + i))
8831       exit (1);
8832
8833   /* Finally, make sure that changes to the mapped area do not
8834      percolate back to the file as seen by read().  (This is a bug on
8835      some variants of i386 svr4.0.)  */
8836   for (i = 0; i < pagesize; ++i)
8837     *(data2 + i) = *(data2 + i) + 1;
8838   data3 = (char *) malloc (pagesize);
8839   if (!data3)
8840     exit (1);
8841   if (read (fd, data3, pagesize) != pagesize)
8842     exit (1);
8843   for (i = 0; i < pagesize; ++i)
8844     if (*(data + i) != *(data3 + i))
8845       exit (1);
8846   close (fd);
8847   exit (0);
8848 }
8849 _ACEOF
8850 rm -f conftest$ac_exeext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8852   (eval $ac_link) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   ac_cv_func_mmap_fixed_mapped=yes
8862 else
8863   echo "$as_me: program exited with status $ac_status" >&5
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ( exit $ac_status )
8868 ac_cv_func_mmap_fixed_mapped=no
8869 fi
8870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 fi
8873 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8874 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8875 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8876
8877 cat >>confdefs.h <<\_ACEOF
8878 #define HAVE_MMAP 1
8879 _ACEOF
8880
8881 fi
8882 rm -f conftest.mmap
8883
8884
8885     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8886 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8887 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 #include <features.h>
8898 #ifdef __GNU_LIBRARY__
8899  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8900   Lucky GNU user
8901  #endif
8902 #endif
8903
8904 _ACEOF
8905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8906   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8907   ac_cv_gnu_library_2_1=yes
8908 else
8909   ac_cv_gnu_library_2_1=no
8910 fi
8911 rm -f conftest*
8912
8913
8914
8915 fi
8916 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8917 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8918
8919     GLIBC21="$ac_cv_gnu_library_2_1"
8920
8921
8922
8923
8924   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8925 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8926 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8927   echo $ECHO_N "(cached) $ECHO_C" >&6
8928 else
8929
8930       if test "$cross_compiling" = yes; then
8931
8932           # Guess based on the CPU.
8933           case "$host_cpu" in
8934             alpha* | i3456786 | m68k | s390*)
8935               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8936             *)
8937               gt_cv_int_divbyzero_sigfpe="guessing no";;
8938           esac
8939
8940 else
8941   cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h.  */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h.  */
8947
8948 #include <stdlib.h>
8949 #include <signal.h>
8950
8951 static void
8952 #ifdef __cplusplus
8953 sigfpe_handler (int sig)
8954 #else
8955 sigfpe_handler (sig) int sig;
8956 #endif
8957 {
8958   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
8959   exit (sig != SIGFPE);
8960 }
8961
8962 int x = 1;
8963 int y = 0;
8964 int z;
8965 int nan;
8966
8967 int main ()
8968 {
8969   signal (SIGFPE, sigfpe_handler);
8970 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
8971 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
8972   signal (SIGTRAP, sigfpe_handler);
8973 #endif
8974 /* Linux/SPARC yields signal SIGILL.  */
8975 #if defined (__sparc__) && defined (__linux__)
8976   signal (SIGILL, sigfpe_handler);
8977 #endif
8978
8979   z = x / y;
8980   nan = y / y;
8981   exit (1);
8982 }
8983
8984 _ACEOF
8985 rm -f conftest$ac_exeext
8986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8987   (eval $ac_link) 2>&5
8988   ac_status=$?
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992   (eval $ac_try) 2>&5
8993   ac_status=$?
8994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995   (exit $ac_status); }; }; then
8996   gt_cv_int_divbyzero_sigfpe=yes
8997 else
8998   echo "$as_me: program exited with status $ac_status" >&5
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ( exit $ac_status )
9003 gt_cv_int_divbyzero_sigfpe=no
9004 fi
9005 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9006 fi
9007
9008 fi
9009 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9010 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9011   case "$gt_cv_int_divbyzero_sigfpe" in
9012     *yes) value=1;;
9013     *) value=0;;
9014   esac
9015
9016 cat >>confdefs.h <<_ACEOF
9017 #define INTDIV0_RAISES_SIGFPE $value
9018 _ACEOF
9019
9020
9021
9022   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9023 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9024 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9025   echo $ECHO_N "(cached) $ECHO_C" >&6
9026 else
9027   cat >conftest.$ac_ext <<_ACEOF
9028 /* confdefs.h.  */
9029 _ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h.  */
9033 unsigned long long ull = 1ULL; int i = 63;
9034 int
9035 main ()
9036 {
9037 unsigned long long ullmax = (unsigned long long) -1;
9038      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9039   ;
9040   return 0;
9041 }
9042 _ACEOF
9043 rm -f conftest.$ac_objext conftest$ac_exeext
9044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9045   (eval $ac_link) 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -z "$ac_c_werror_flag"
9053                          || test ! -s conftest.err'
9054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055   (eval $ac_try) 2>&5
9056   ac_status=$?
9057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058   (exit $ac_status); }; } &&
9059          { ac_try='test -s conftest$ac_exeext'
9060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9061   (eval $ac_try) 2>&5
9062   ac_status=$?
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); }; }; then
9065   ac_cv_type_unsigned_long_long=yes
9066 else
9067   echo "$as_me: failed program was:" >&5
9068 sed 's/^/| /' conftest.$ac_ext >&5
9069
9070 ac_cv_type_unsigned_long_long=no
9071 fi
9072 rm -f conftest.err conftest.$ac_objext \
9073       conftest$ac_exeext conftest.$ac_ext
9074 fi
9075 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9076 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9077   if test $ac_cv_type_unsigned_long_long = yes; then
9078
9079 cat >>confdefs.h <<\_ACEOF
9080 #define HAVE_UNSIGNED_LONG_LONG 1
9081 _ACEOF
9082
9083   fi
9084
9085
9086
9087
9088   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9089
9090     test $ac_cv_type_unsigned_long_long = yes \
9091       && ac_type='unsigned long long' \
9092       || ac_type='unsigned long'
9093
9094 cat >>confdefs.h <<_ACEOF
9095 #define uintmax_t $ac_type
9096 _ACEOF
9097
9098   else
9099
9100 cat >>confdefs.h <<\_ACEOF
9101 #define HAVE_UINTMAX_T 1
9102 _ACEOF
9103
9104   fi
9105
9106
9107   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9108 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9109 if test "${gt_cv_header_inttypes_h+set}" = set; then
9110   echo $ECHO_N "(cached) $ECHO_C" >&6
9111 else
9112
9113     cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #include <sys/types.h>
9120 #include <inttypes.h>
9121 int
9122 main ()
9123 {
9124
9125   ;
9126   return 0;
9127 }
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9131   (eval $ac_compile) 2>conftest.er1
9132   ac_status=$?
9133   grep -v '^ *+' conftest.er1 >conftest.err
9134   rm -f conftest.er1
9135   cat conftest.err >&5
9136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9137   (exit $ac_status); } &&
9138          { ac_try='test -z "$ac_c_werror_flag"
9139                          || test ! -s conftest.err'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; } &&
9145          { ac_try='test -s conftest.$ac_objext'
9146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147   (eval $ac_try) 2>&5
9148   ac_status=$?
9149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150   (exit $ac_status); }; }; then
9151   gt_cv_header_inttypes_h=yes
9152 else
9153   echo "$as_me: failed program was:" >&5
9154 sed 's/^/| /' conftest.$ac_ext >&5
9155
9156 gt_cv_header_inttypes_h=no
9157 fi
9158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159
9160 fi
9161 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9162 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9163   if test $gt_cv_header_inttypes_h = yes; then
9164
9165 cat >>confdefs.h <<_ACEOF
9166 #define HAVE_INTTYPES_H 1
9167 _ACEOF
9168
9169   fi
9170
9171
9172
9173   if test $gt_cv_header_inttypes_h = yes; then
9174     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9175 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9176 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9177   echo $ECHO_N "(cached) $ECHO_C" >&6
9178 else
9179
9180         cat >conftest.$ac_ext <<_ACEOF
9181 /* confdefs.h.  */
9182 _ACEOF
9183 cat confdefs.h >>conftest.$ac_ext
9184 cat >>conftest.$ac_ext <<_ACEOF
9185 /* end confdefs.h.  */
9186 #include <inttypes.h>
9187 #ifdef PRId32
9188 char *p = PRId32;
9189 #endif
9190
9191 int
9192 main ()
9193 {
9194
9195   ;
9196   return 0;
9197 }
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9201   (eval $ac_compile) 2>conftest.er1
9202   ac_status=$?
9203   grep -v '^ *+' conftest.er1 >conftest.err
9204   rm -f conftest.er1
9205   cat conftest.err >&5
9206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207   (exit $ac_status); } &&
9208          { ac_try='test -z "$ac_c_werror_flag"
9209                          || test ! -s conftest.err'
9210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211   (eval $ac_try) 2>&5
9212   ac_status=$?
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); }; } &&
9215          { ac_try='test -s conftest.$ac_objext'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; }; then
9221   gt_cv_inttypes_pri_broken=no
9222 else
9223   echo "$as_me: failed program was:" >&5
9224 sed 's/^/| /' conftest.$ac_ext >&5
9225
9226 gt_cv_inttypes_pri_broken=yes
9227 fi
9228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9229
9230 fi
9231 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9232 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9233   fi
9234   if test "$gt_cv_inttypes_pri_broken" = yes; then
9235
9236 cat >>confdefs.h <<_ACEOF
9237 #define PRI_MACROS_BROKEN 1
9238 _ACEOF
9239
9240   fi
9241
9242
9243
9244 for ac_header in stdint.h
9245 do
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9248   echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9251   echo $ECHO_N "(cached) $ECHO_C" >&6
9252 fi
9253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9255 else
9256   # Is the header compilable?
9257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9259 cat >conftest.$ac_ext <<_ACEOF
9260 /* confdefs.h.  */
9261 _ACEOF
9262 cat confdefs.h >>conftest.$ac_ext
9263 cat >>conftest.$ac_ext <<_ACEOF
9264 /* end confdefs.h.  */
9265 $ac_includes_default
9266 #include <$ac_header>
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9270   (eval $ac_compile) 2>conftest.er1
9271   ac_status=$?
9272   grep -v '^ *+' conftest.er1 >conftest.err
9273   rm -f conftest.er1
9274   cat conftest.err >&5
9275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276   (exit $ac_status); } &&
9277          { ac_try='test -z "$ac_c_werror_flag"
9278                          || test ! -s conftest.err'
9279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9280   (eval $ac_try) 2>&5
9281   ac_status=$?
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); }; } &&
9284          { ac_try='test -s conftest.$ac_objext'
9285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286   (eval $ac_try) 2>&5
9287   ac_status=$?
9288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289   (exit $ac_status); }; }; then
9290   ac_header_compiler=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_header_compiler=no
9296 fi
9297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9298 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9299 echo "${ECHO_T}$ac_header_compiler" >&6
9300
9301 # Is the header present?
9302 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9303 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310 #include <$ac_header>
9311 _ACEOF
9312 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9313   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314   ac_status=$?
9315   grep -v '^ *+' conftest.er1 >conftest.err
9316   rm -f conftest.er1
9317   cat conftest.err >&5
9318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319   (exit $ac_status); } >/dev/null; then
9320   if test -s conftest.err; then
9321     ac_cpp_err=$ac_c_preproc_warn_flag
9322     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9323   else
9324     ac_cpp_err=
9325   fi
9326 else
9327   ac_cpp_err=yes
9328 fi
9329 if test -z "$ac_cpp_err"; then
9330   ac_header_preproc=yes
9331 else
9332   echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9334
9335   ac_header_preproc=no
9336 fi
9337 rm -f conftest.err conftest.$ac_ext
9338 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6
9340
9341 # So?  What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343   yes:no: )
9344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348     ac_header_preproc=yes
9349     ;;
9350   no:yes:* )
9351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9363     (
9364       cat <<\_ASBOX
9365 ## ------------------------------------------ ##
9366 ## Report this to the AC_PACKAGE_NAME lists.  ##
9367 ## ------------------------------------------ ##
9368 _ASBOX
9369     ) |
9370       sed "s/^/$as_me: WARNING:     /" >&2
9371     ;;
9372 esac
9373 echo "$as_me:$LINENO: checking for $ac_header" >&5
9374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9375 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9376   echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378   eval "$as_ac_Header=\$ac_header_preproc"
9379 fi
9380 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9381 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9382
9383 fi
9384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9385   cat >>confdefs.h <<_ACEOF
9386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9387 _ACEOF
9388
9389 fi
9390
9391 done
9392
9393     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9394 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9395   result=
9396   cat >conftest.$ac_ext <<_ACEOF
9397 /* confdefs.h.  */
9398 _ACEOF
9399 cat confdefs.h >>conftest.$ac_ext
9400 cat >>conftest.$ac_ext <<_ACEOF
9401 /* end confdefs.h.  */
9402
9403 #include <limits.h>
9404 #if HAVE_STDINT_H
9405 #include <stdint.h>
9406 #endif
9407 #ifdef SIZE_MAX
9408 Found it
9409 #endif
9410
9411 _ACEOF
9412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9413   $EGREP "Found it" >/dev/null 2>&1; then
9414   result=yes
9415 fi
9416 rm -f conftest*
9417
9418   if test -z "$result"; then
9419                     if test "$cross_compiling" = yes; then
9420   # Depending upon the size, compute the lo and hi bounds.
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427 #include <stddef.h>
9428 int
9429 main ()
9430 {
9431 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9432 test_array [0] = 0
9433
9434   ;
9435   return 0;
9436 }
9437 _ACEOF
9438 rm -f conftest.$ac_objext
9439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9440   (eval $ac_compile) 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag"
9448                          || test ! -s conftest.err'
9449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450   (eval $ac_try) 2>&5
9451   ac_status=$?
9452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453   (exit $ac_status); }; } &&
9454          { ac_try='test -s conftest.$ac_objext'
9455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456   (eval $ac_try) 2>&5
9457   ac_status=$?
9458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459   (exit $ac_status); }; }; then
9460   ac_lo=0 ac_mid=0
9461   while :; do
9462     cat >conftest.$ac_ext <<_ACEOF
9463 /* confdefs.h.  */
9464 _ACEOF
9465 cat confdefs.h >>conftest.$ac_ext
9466 cat >>conftest.$ac_ext <<_ACEOF
9467 /* end confdefs.h.  */
9468 #include <stddef.h>
9469 int
9470 main ()
9471 {
9472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9473 test_array [0] = 0
9474
9475   ;
9476   return 0;
9477 }
9478 _ACEOF
9479 rm -f conftest.$ac_objext
9480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481   (eval $ac_compile) 2>conftest.er1
9482   ac_status=$?
9483   grep -v '^ *+' conftest.er1 >conftest.err
9484   rm -f conftest.er1
9485   cat conftest.err >&5
9486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487   (exit $ac_status); } &&
9488          { ac_try='test -z "$ac_c_werror_flag"
9489                          || test ! -s conftest.err'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; } &&
9495          { ac_try='test -s conftest.$ac_objext'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; }; then
9501   ac_hi=$ac_mid; break
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_lo=`expr $ac_mid + 1`
9507                     if test $ac_lo -le $ac_mid; then
9508                       ac_lo= ac_hi=
9509                       break
9510                     fi
9511                     ac_mid=`expr 2 '*' $ac_mid + 1`
9512 fi
9513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514   done
9515 else
9516   echo "$as_me: failed program was:" >&5
9517 sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 cat >conftest.$ac_ext <<_ACEOF
9520 /* confdefs.h.  */
9521 _ACEOF
9522 cat confdefs.h >>conftest.$ac_ext
9523 cat >>conftest.$ac_ext <<_ACEOF
9524 /* end confdefs.h.  */
9525 #include <stddef.h>
9526 int
9527 main ()
9528 {
9529 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9530 test_array [0] = 0
9531
9532   ;
9533   return 0;
9534 }
9535 _ACEOF
9536 rm -f conftest.$ac_objext
9537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9538   (eval $ac_compile) 2>conftest.er1
9539   ac_status=$?
9540   grep -v '^ *+' conftest.er1 >conftest.err
9541   rm -f conftest.er1
9542   cat conftest.err >&5
9543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544   (exit $ac_status); } &&
9545          { ac_try='test -z "$ac_c_werror_flag"
9546                          || test ! -s conftest.err'
9547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548   (eval $ac_try) 2>&5
9549   ac_status=$?
9550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; } &&
9552          { ac_try='test -s conftest.$ac_objext'
9553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9554   (eval $ac_try) 2>&5
9555   ac_status=$?
9556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557   (exit $ac_status); }; }; then
9558   ac_hi=-1 ac_mid=-1
9559   while :; do
9560     cat >conftest.$ac_ext <<_ACEOF
9561 /* confdefs.h.  */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h.  */
9566 #include <stddef.h>
9567 int
9568 main ()
9569 {
9570 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9571 test_array [0] = 0
9572
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9579   (eval $ac_compile) 2>conftest.er1
9580   ac_status=$?
9581   grep -v '^ *+' conftest.er1 >conftest.err
9582   rm -f conftest.er1
9583   cat conftest.err >&5
9584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585   (exit $ac_status); } &&
9586          { ac_try='test -z "$ac_c_werror_flag"
9587                          || test ! -s conftest.err'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; } &&
9593          { ac_try='test -s conftest.$ac_objext'
9594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595   (eval $ac_try) 2>&5
9596   ac_status=$?
9597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9598   (exit $ac_status); }; }; then
9599   ac_lo=$ac_mid; break
9600 else
9601   echo "$as_me: failed program was:" >&5
9602 sed 's/^/| /' conftest.$ac_ext >&5
9603
9604 ac_hi=`expr '(' $ac_mid ')' - 1`
9605                        if test $ac_mid -le $ac_hi; then
9606                          ac_lo= ac_hi=
9607                          break
9608                        fi
9609                        ac_mid=`expr 2 '*' $ac_mid`
9610 fi
9611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612   done
9613 else
9614   echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9616
9617 ac_lo= ac_hi=
9618 fi
9619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9620 fi
9621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9622 # Binary search between lo and hi bounds.
9623 while test "x$ac_lo" != "x$ac_hi"; do
9624   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9625   cat >conftest.$ac_ext <<_ACEOF
9626 /* confdefs.h.  */
9627 _ACEOF
9628 cat confdefs.h >>conftest.$ac_ext
9629 cat >>conftest.$ac_ext <<_ACEOF
9630 /* end confdefs.h.  */
9631 #include <stddef.h>
9632 int
9633 main ()
9634 {
9635 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9636 test_array [0] = 0
9637
9638   ;
9639   return 0;
9640 }
9641 _ACEOF
9642 rm -f conftest.$ac_objext
9643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9644   (eval $ac_compile) 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } &&
9651          { ac_try='test -z "$ac_c_werror_flag"
9652                          || test ! -s conftest.err'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; } &&
9658          { ac_try='test -s conftest.$ac_objext'
9659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9660   (eval $ac_try) 2>&5
9661   ac_status=$?
9662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9663   (exit $ac_status); }; }; then
9664   ac_hi=$ac_mid
9665 else
9666   echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9668
9669 ac_lo=`expr '(' $ac_mid ')' + 1`
9670 fi
9671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9672 done
9673 case $ac_lo in
9674 ?*) res_hi=$ac_lo;;
9675 '') result=? ;;
9676 esac
9677 else
9678   if test "$cross_compiling" = yes; then
9679   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9680 See \`config.log' for more details." >&5
9681 echo "$as_me: error: cannot run test program while cross compiling
9682 See \`config.log' for more details." >&2;}
9683    { (exit 1); exit 1; }; }
9684 else
9685   cat >conftest.$ac_ext <<_ACEOF
9686 /* confdefs.h.  */
9687 _ACEOF
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h.  */
9691 #include <stddef.h>
9692 long longval () { return ~(size_t)0 / 10; }
9693 unsigned long ulongval () { return ~(size_t)0 / 10; }
9694 #include <stdio.h>
9695 #include <stdlib.h>
9696 int
9697 main ()
9698 {
9699
9700   FILE *f = fopen ("conftest.val", "w");
9701   if (! f)
9702     exit (1);
9703   if ((~(size_t)0 / 10) < 0)
9704     {
9705       long i = longval ();
9706       if (i != (~(size_t)0 / 10))
9707         exit (1);
9708       fprintf (f, "%ld\n", i);
9709     }
9710   else
9711     {
9712       unsigned long i = ulongval ();
9713       if (i != (~(size_t)0 / 10))
9714         exit (1);
9715       fprintf (f, "%lu\n", i);
9716     }
9717   exit (ferror (f) || fclose (f) != 0);
9718
9719   ;
9720   return 0;
9721 }
9722 _ACEOF
9723 rm -f conftest$ac_exeext
9724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9725   (eval $ac_link) 2>&5
9726   ac_status=$?
9727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; }; then
9734   res_hi=`cat conftest.val`
9735 else
9736   echo "$as_me: program exited with status $ac_status" >&5
9737 echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740 ( exit $ac_status )
9741 result=?
9742 fi
9743 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 fi
9746 rm -f conftest.val
9747     if test "$cross_compiling" = yes; then
9748   # Depending upon the size, compute the lo and hi bounds.
9749 cat >conftest.$ac_ext <<_ACEOF
9750 /* confdefs.h.  */
9751 _ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h.  */
9755 #include <stddef.h>
9756 int
9757 main ()
9758 {
9759 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9760 test_array [0] = 0
9761
9762   ;
9763   return 0;
9764 }
9765 _ACEOF
9766 rm -f conftest.$ac_objext
9767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9768   (eval $ac_compile) 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } &&
9775          { ac_try='test -z "$ac_c_werror_flag"
9776                          || test ! -s conftest.err'
9777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778   (eval $ac_try) 2>&5
9779   ac_status=$?
9780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781   (exit $ac_status); }; } &&
9782          { ac_try='test -s conftest.$ac_objext'
9783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9784   (eval $ac_try) 2>&5
9785   ac_status=$?
9786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787   (exit $ac_status); }; }; then
9788   ac_lo=0 ac_mid=0
9789   while :; do
9790     cat >conftest.$ac_ext <<_ACEOF
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796 #include <stddef.h>
9797 int
9798 main ()
9799 {
9800 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9801 test_array [0] = 0
9802
9803   ;
9804   return 0;
9805 }
9806 _ACEOF
9807 rm -f conftest.$ac_objext
9808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9809   (eval $ac_compile) 2>conftest.er1
9810   ac_status=$?
9811   grep -v '^ *+' conftest.er1 >conftest.err
9812   rm -f conftest.er1
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   (exit $ac_status); } &&
9816          { ac_try='test -z "$ac_c_werror_flag"
9817                          || test ! -s conftest.err'
9818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819   (eval $ac_try) 2>&5
9820   ac_status=$?
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); }; } &&
9823          { ac_try='test -s conftest.$ac_objext'
9824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825   (eval $ac_try) 2>&5
9826   ac_status=$?
9827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828   (exit $ac_status); }; }; then
9829   ac_hi=$ac_mid; break
9830 else
9831   echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.$ac_ext >&5
9833
9834 ac_lo=`expr $ac_mid + 1`
9835                     if test $ac_lo -le $ac_mid; then
9836                       ac_lo= ac_hi=
9837                       break
9838                     fi
9839                     ac_mid=`expr 2 '*' $ac_mid + 1`
9840 fi
9841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9842   done
9843 else
9844   echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 cat >conftest.$ac_ext <<_ACEOF
9848 /* confdefs.h.  */
9849 _ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h.  */
9853 #include <stddef.h>
9854 int
9855 main ()
9856 {
9857 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9858 test_array [0] = 0
9859
9860   ;
9861   return 0;
9862 }
9863 _ACEOF
9864 rm -f conftest.$ac_objext
9865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866   (eval $ac_compile) 2>conftest.er1
9867   ac_status=$?
9868   grep -v '^ *+' conftest.er1 >conftest.err
9869   rm -f conftest.er1
9870   cat conftest.err >&5
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); } &&
9873          { ac_try='test -z "$ac_c_werror_flag"
9874                          || test ! -s conftest.err'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; } &&
9880          { ac_try='test -s conftest.$ac_objext'
9881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882   (eval $ac_try) 2>&5
9883   ac_status=$?
9884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885   (exit $ac_status); }; }; then
9886   ac_hi=-1 ac_mid=-1
9887   while :; do
9888     cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 #include <stddef.h>
9895 int
9896 main ()
9897 {
9898 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9899 test_array [0] = 0
9900
9901   ;
9902   return 0;
9903 }
9904 _ACEOF
9905 rm -f conftest.$ac_objext
9906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9907   (eval $ac_compile) 2>conftest.er1
9908   ac_status=$?
9909   grep -v '^ *+' conftest.er1 >conftest.err
9910   rm -f conftest.er1
9911   cat conftest.err >&5
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); } &&
9914          { ac_try='test -z "$ac_c_werror_flag"
9915                          || test ! -s conftest.err'
9916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917   (eval $ac_try) 2>&5
9918   ac_status=$?
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); }; } &&
9921          { ac_try='test -s conftest.$ac_objext'
9922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9923   (eval $ac_try) 2>&5
9924   ac_status=$?
9925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926   (exit $ac_status); }; }; then
9927   ac_lo=$ac_mid; break
9928 else
9929   echo "$as_me: failed program was:" >&5
9930 sed 's/^/| /' conftest.$ac_ext >&5
9931
9932 ac_hi=`expr '(' $ac_mid ')' - 1`
9933                        if test $ac_mid -le $ac_hi; then
9934                          ac_lo= ac_hi=
9935                          break
9936                        fi
9937                        ac_mid=`expr 2 '*' $ac_mid`
9938 fi
9939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9940   done
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_lo= ac_hi=
9946 fi
9947 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9948 fi
9949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9950 # Binary search between lo and hi bounds.
9951 while test "x$ac_lo" != "x$ac_hi"; do
9952   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9953   cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h.  */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h.  */
9959 #include <stddef.h>
9960 int
9961 main ()
9962 {
9963 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9964 test_array [0] = 0
9965
9966   ;
9967   return 0;
9968 }
9969 _ACEOF
9970 rm -f conftest.$ac_objext
9971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9972   (eval $ac_compile) 2>conftest.er1
9973   ac_status=$?
9974   grep -v '^ *+' conftest.er1 >conftest.err
9975   rm -f conftest.er1
9976   cat conftest.err >&5
9977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978   (exit $ac_status); } &&
9979          { ac_try='test -z "$ac_c_werror_flag"
9980                          || test ! -s conftest.err'
9981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9982   (eval $ac_try) 2>&5
9983   ac_status=$?
9984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985   (exit $ac_status); }; } &&
9986          { ac_try='test -s conftest.$ac_objext'
9987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9988   (eval $ac_try) 2>&5
9989   ac_status=$?
9990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991   (exit $ac_status); }; }; then
9992   ac_hi=$ac_mid
9993 else
9994   echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_lo=`expr '(' $ac_mid ')' + 1`
9998 fi
9999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10000 done
10001 case $ac_lo in
10002 ?*) res_lo=$ac_lo;;
10003 '') result=? ;;
10004 esac
10005 else
10006   if test "$cross_compiling" = yes; then
10007   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10008 See \`config.log' for more details." >&5
10009 echo "$as_me: error: cannot run test program while cross compiling
10010 See \`config.log' for more details." >&2;}
10011    { (exit 1); exit 1; }; }
10012 else
10013   cat >conftest.$ac_ext <<_ACEOF
10014 /* confdefs.h.  */
10015 _ACEOF
10016 cat confdefs.h >>conftest.$ac_ext
10017 cat >>conftest.$ac_ext <<_ACEOF
10018 /* end confdefs.h.  */
10019 #include <stddef.h>
10020 long longval () { return ~(size_t)0 % 10; }
10021 unsigned long ulongval () { return ~(size_t)0 % 10; }
10022 #include <stdio.h>
10023 #include <stdlib.h>
10024 int
10025 main ()
10026 {
10027
10028   FILE *f = fopen ("conftest.val", "w");
10029   if (! f)
10030     exit (1);
10031   if ((~(size_t)0 % 10) < 0)
10032     {
10033       long i = longval ();
10034       if (i != (~(size_t)0 % 10))
10035         exit (1);
10036       fprintf (f, "%ld\n", i);
10037     }
10038   else
10039     {
10040       unsigned long i = ulongval ();
10041       if (i != (~(size_t)0 % 10))
10042         exit (1);
10043       fprintf (f, "%lu\n", i);
10044     }
10045   exit (ferror (f) || fclose (f) != 0);
10046
10047   ;
10048   return 0;
10049 }
10050 _ACEOF
10051 rm -f conftest$ac_exeext
10052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10053   (eval $ac_link) 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; }; then
10062   res_lo=`cat conftest.val`
10063 else
10064   echo "$as_me: program exited with status $ac_status" >&5
10065 echo "$as_me: failed program was:" >&5
10066 sed 's/^/| /' conftest.$ac_ext >&5
10067
10068 ( exit $ac_status )
10069 result=?
10070 fi
10071 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10072 fi
10073 fi
10074 rm -f conftest.val
10075     if test "$cross_compiling" = yes; then
10076   # Depending upon the size, compute the lo and hi bounds.
10077 cat >conftest.$ac_ext <<_ACEOF
10078 /* confdefs.h.  */
10079 _ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h.  */
10083 #include <stddef.h>
10084 int
10085 main ()
10086 {
10087 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10088 test_array [0] = 0
10089
10090   ;
10091   return 0;
10092 }
10093 _ACEOF
10094 rm -f conftest.$ac_objext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096   (eval $ac_compile) 2>conftest.er1
10097   ac_status=$?
10098   grep -v '^ *+' conftest.er1 >conftest.err
10099   rm -f conftest.er1
10100   cat conftest.err >&5
10101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102   (exit $ac_status); } &&
10103          { ac_try='test -z "$ac_c_werror_flag"
10104                          || test ! -s conftest.err'
10105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106   (eval $ac_try) 2>&5
10107   ac_status=$?
10108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109   (exit $ac_status); }; } &&
10110          { ac_try='test -s conftest.$ac_objext'
10111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112   (eval $ac_try) 2>&5
10113   ac_status=$?
10114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115   (exit $ac_status); }; }; then
10116   ac_lo=0 ac_mid=0
10117   while :; do
10118     cat >conftest.$ac_ext <<_ACEOF
10119 /* confdefs.h.  */
10120 _ACEOF
10121 cat confdefs.h >>conftest.$ac_ext
10122 cat >>conftest.$ac_ext <<_ACEOF
10123 /* end confdefs.h.  */
10124 #include <stddef.h>
10125 int
10126 main ()
10127 {
10128 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10129 test_array [0] = 0
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 rm -f conftest.$ac_objext
10136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10137   (eval $ac_compile) 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } &&
10144          { ac_try='test -z "$ac_c_werror_flag"
10145                          || test ! -s conftest.err'
10146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10147   (eval $ac_try) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); }; } &&
10151          { ac_try='test -s conftest.$ac_objext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   ac_hi=$ac_mid; break
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 ac_lo=`expr $ac_mid + 1`
10163                     if test $ac_lo -le $ac_mid; then
10164                       ac_lo= ac_hi=
10165                       break
10166                     fi
10167                     ac_mid=`expr 2 '*' $ac_mid + 1`
10168 fi
10169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10170   done
10171 else
10172   echo "$as_me: failed program was:" >&5
10173 sed 's/^/| /' conftest.$ac_ext >&5
10174
10175 cat >conftest.$ac_ext <<_ACEOF
10176 /* confdefs.h.  */
10177 _ACEOF
10178 cat confdefs.h >>conftest.$ac_ext
10179 cat >>conftest.$ac_ext <<_ACEOF
10180 /* end confdefs.h.  */
10181 #include <stddef.h>
10182 int
10183 main ()
10184 {
10185 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10186 test_array [0] = 0
10187
10188   ;
10189   return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10194   (eval $ac_compile) 2>conftest.er1
10195   ac_status=$?
10196   grep -v '^ *+' conftest.er1 >conftest.err
10197   rm -f conftest.er1
10198   cat conftest.err >&5
10199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200   (exit $ac_status); } &&
10201          { ac_try='test -z "$ac_c_werror_flag"
10202                          || test ! -s conftest.err'
10203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204   (eval $ac_try) 2>&5
10205   ac_status=$?
10206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207   (exit $ac_status); }; } &&
10208          { ac_try='test -s conftest.$ac_objext'
10209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210   (eval $ac_try) 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); }; }; then
10214   ac_hi=-1 ac_mid=-1
10215   while :; do
10216     cat >conftest.$ac_ext <<_ACEOF
10217 /* confdefs.h.  */
10218 _ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h.  */
10222 #include <stddef.h>
10223 int
10224 main ()
10225 {
10226 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10227 test_array [0] = 0
10228
10229   ;
10230   return 0;
10231 }
10232 _ACEOF
10233 rm -f conftest.$ac_objext
10234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10235   (eval $ac_compile) 2>conftest.er1
10236   ac_status=$?
10237   grep -v '^ *+' conftest.er1 >conftest.err
10238   rm -f conftest.er1
10239   cat conftest.err >&5
10240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241   (exit $ac_status); } &&
10242          { ac_try='test -z "$ac_c_werror_flag"
10243                          || test ! -s conftest.err'
10244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10245   (eval $ac_try) 2>&5
10246   ac_status=$?
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); }; } &&
10249          { ac_try='test -s conftest.$ac_objext'
10250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10251   (eval $ac_try) 2>&5
10252   ac_status=$?
10253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10254   (exit $ac_status); }; }; then
10255   ac_lo=$ac_mid; break
10256 else
10257   echo "$as_me: failed program was:" >&5
10258 sed 's/^/| /' conftest.$ac_ext >&5
10259
10260 ac_hi=`expr '(' $ac_mid ')' - 1`
10261                        if test $ac_mid -le $ac_hi; then
10262                          ac_lo= ac_hi=
10263                          break
10264                        fi
10265                        ac_mid=`expr 2 '*' $ac_mid`
10266 fi
10267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10268   done
10269 else
10270   echo "$as_me: failed program was:" >&5
10271 sed 's/^/| /' conftest.$ac_ext >&5
10272
10273 ac_lo= ac_hi=
10274 fi
10275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10276 fi
10277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 # Binary search between lo and hi bounds.
10279 while test "x$ac_lo" != "x$ac_hi"; do
10280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10281   cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h.  */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h.  */
10287 #include <stddef.h>
10288 int
10289 main ()
10290 {
10291 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10292 test_array [0] = 0
10293
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10300   (eval $ac_compile) 2>conftest.er1
10301   ac_status=$?
10302   grep -v '^ *+' conftest.er1 >conftest.err
10303   rm -f conftest.er1
10304   cat conftest.err >&5
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); } &&
10307          { ac_try='test -z "$ac_c_werror_flag"
10308                          || test ! -s conftest.err'
10309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310   (eval $ac_try) 2>&5
10311   ac_status=$?
10312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313   (exit $ac_status); }; } &&
10314          { ac_try='test -s conftest.$ac_objext'
10315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316   (eval $ac_try) 2>&5
10317   ac_status=$?
10318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319   (exit $ac_status); }; }; then
10320   ac_hi=$ac_mid
10321 else
10322   echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10324
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10326 fi
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10328 done
10329 case $ac_lo in
10330 ?*) fits_in_uint=$ac_lo;;
10331 '') result=? ;;
10332 esac
10333 else
10334   if test "$cross_compiling" = yes; then
10335   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10336 See \`config.log' for more details." >&5
10337 echo "$as_me: error: cannot run test program while cross compiling
10338 See \`config.log' for more details." >&2;}
10339    { (exit 1); exit 1; }; }
10340 else
10341   cat >conftest.$ac_ext <<_ACEOF
10342 /* confdefs.h.  */
10343 _ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h.  */
10347 #include <stddef.h>
10348 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10349 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10350 #include <stdio.h>
10351 #include <stdlib.h>
10352 int
10353 main ()
10354 {
10355
10356   FILE *f = fopen ("conftest.val", "w");
10357   if (! f)
10358     exit (1);
10359   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10360     {
10361       long i = longval ();
10362       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10363         exit (1);
10364       fprintf (f, "%ld\n", i);
10365     }
10366   else
10367     {
10368       unsigned long i = ulongval ();
10369       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10370         exit (1);
10371       fprintf (f, "%lu\n", i);
10372     }
10373   exit (ferror (f) || fclose (f) != 0);
10374
10375   ;
10376   return 0;
10377 }
10378 _ACEOF
10379 rm -f conftest$ac_exeext
10380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381   (eval $ac_link) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; }; then
10390   fits_in_uint=`cat conftest.val`
10391 else
10392   echo "$as_me: program exited with status $ac_status" >&5
10393 echo "$as_me: failed program was:" >&5
10394 sed 's/^/| /' conftest.$ac_ext >&5
10395
10396 ( exit $ac_status )
10397 result=?
10398 fi
10399 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10400 fi
10401 fi
10402 rm -f conftest.val
10403     if test "$fits_in_uint" = 1; then
10404                   cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stddef.h>
10411         extern size_t foo;
10412         extern unsigned long foo;
10413
10414 int
10415 main ()
10416 {
10417
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424   (eval $ac_compile) 2>conftest.er1
10425   ac_status=$?
10426   grep -v '^ *+' conftest.er1 >conftest.err
10427   rm -f conftest.er1
10428   cat conftest.err >&5
10429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430   (exit $ac_status); } &&
10431          { ac_try='test -z "$ac_c_werror_flag"
10432                          || test ! -s conftest.err'
10433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10434   (eval $ac_try) 2>&5
10435   ac_status=$?
10436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437   (exit $ac_status); }; } &&
10438          { ac_try='test -s conftest.$ac_objext'
10439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440   (eval $ac_try) 2>&5
10441   ac_status=$?
10442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443   (exit $ac_status); }; }; then
10444   fits_in_uint=0
10445 else
10446   echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10448
10449 fi
10450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10451     fi
10452     if test -z "$result"; then
10453       if test "$fits_in_uint" = 1; then
10454         result="$res_hi$res_lo"U
10455       else
10456         result="$res_hi$res_lo"UL
10457       fi
10458     else
10459             result='~(size_t)0'
10460     fi
10461   fi
10462   echo "$as_me:$LINENO: result: $result" >&5
10463 echo "${ECHO_T}$result" >&6
10464   if test "$result" != yes; then
10465
10466 cat >>confdefs.h <<_ACEOF
10467 #define SIZE_MAX $result
10468 _ACEOF
10469
10470   fi
10471
10472
10473
10474
10475
10476 for ac_header in stdint.h
10477 do
10478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10480   echo "$as_me:$LINENO: checking for $ac_header" >&5
10481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10483   echo $ECHO_N "(cached) $ECHO_C" >&6
10484 fi
10485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10487 else
10488   # Is the header compilable?
10489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10491 cat >conftest.$ac_ext <<_ACEOF
10492 /* confdefs.h.  */
10493 _ACEOF
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h.  */
10497 $ac_includes_default
10498 #include <$ac_header>
10499 _ACEOF
10500 rm -f conftest.$ac_objext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10502   (eval $ac_compile) 2>conftest.er1
10503   ac_status=$?
10504   grep -v '^ *+' conftest.er1 >conftest.err
10505   rm -f conftest.er1
10506   cat conftest.err >&5
10507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508   (exit $ac_status); } &&
10509          { ac_try='test -z "$ac_c_werror_flag"
10510                          || test ! -s conftest.err'
10511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512   (eval $ac_try) 2>&5
10513   ac_status=$?
10514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515   (exit $ac_status); }; } &&
10516          { ac_try='test -s conftest.$ac_objext'
10517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518   (eval $ac_try) 2>&5
10519   ac_status=$?
10520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521   (exit $ac_status); }; }; then
10522   ac_header_compiler=yes
10523 else
10524   echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10526
10527 ac_header_compiler=no
10528 fi
10529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10530 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10531 echo "${ECHO_T}$ac_header_compiler" >&6
10532
10533 # Is the header present?
10534 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10536 cat >conftest.$ac_ext <<_ACEOF
10537 /* confdefs.h.  */
10538 _ACEOF
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h.  */
10542 #include <$ac_header>
10543 _ACEOF
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10546   ac_status=$?
10547   grep -v '^ *+' conftest.er1 >conftest.err
10548   rm -f conftest.er1
10549   cat conftest.err >&5
10550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551   (exit $ac_status); } >/dev/null; then
10552   if test -s conftest.err; then
10553     ac_cpp_err=$ac_c_preproc_warn_flag
10554     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10555   else
10556     ac_cpp_err=
10557   fi
10558 else
10559   ac_cpp_err=yes
10560 fi
10561 if test -z "$ac_cpp_err"; then
10562   ac_header_preproc=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567   ac_header_preproc=no
10568 fi
10569 rm -f conftest.err conftest.$ac_ext
10570 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10571 echo "${ECHO_T}$ac_header_preproc" >&6
10572
10573 # So?  What about this header?
10574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10575   yes:no: )
10576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10580     ac_header_preproc=yes
10581     ;;
10582   no:yes:* )
10583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10595     (
10596       cat <<\_ASBOX
10597 ## ------------------------------------------ ##
10598 ## Report this to the AC_PACKAGE_NAME lists.  ##
10599 ## ------------------------------------------ ##
10600 _ASBOX
10601     ) |
10602       sed "s/^/$as_me: WARNING:     /" >&2
10603     ;;
10604 esac
10605 echo "$as_me:$LINENO: checking for $ac_header" >&5
10606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10608   echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610   eval "$as_ac_Header=\$ac_header_preproc"
10611 fi
10612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10614
10615 fi
10616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10617   cat >>confdefs.h <<_ACEOF
10618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10619 _ACEOF
10620
10621 fi
10622
10623 done
10624
10625
10626
10627
10628
10629
10630
10631
10632   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10633 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10634 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10635   echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637   cat >conftest.$ac_ext <<_ACEOF
10638 /* confdefs.h.  */
10639 _ACEOF
10640 cat confdefs.h >>conftest.$ac_ext
10641 cat >>conftest.$ac_ext <<_ACEOF
10642 /* end confdefs.h.  */
10643 $ac_includes_default
10644 int
10645 main ()
10646 {
10647 if ((ptrdiff_t *) 0)
10648   return 0;
10649 if (sizeof (ptrdiff_t))
10650   return 0;
10651   ;
10652   return 0;
10653 }
10654 _ACEOF
10655 rm -f conftest.$ac_objext
10656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10657   (eval $ac_compile) 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } &&
10664          { ac_try='test -z "$ac_c_werror_flag"
10665                          || test ! -s conftest.err'
10666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10667   (eval $ac_try) 2>&5
10668   ac_status=$?
10669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670   (exit $ac_status); }; } &&
10671          { ac_try='test -s conftest.$ac_objext'
10672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673   (eval $ac_try) 2>&5
10674   ac_status=$?
10675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676   (exit $ac_status); }; }; then
10677   ac_cv_type_ptrdiff_t=yes
10678 else
10679   echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10681
10682 ac_cv_type_ptrdiff_t=no
10683 fi
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10687 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10688 if test $ac_cv_type_ptrdiff_t = yes; then
10689   :
10690 else
10691
10692 cat >>confdefs.h <<\_ACEOF
10693 #define ptrdiff_t long
10694 _ACEOF
10695
10696
10697 fi
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10710 stdlib.h string.h unistd.h sys/param.h
10711 do
10712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10714   echo "$as_me:$LINENO: checking for $ac_header" >&5
10715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10716 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 fi
10719 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10720 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10721 else
10722   # Is the header compilable?
10723 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 /* confdefs.h.  */
10727 _ACEOF
10728 cat confdefs.h >>conftest.$ac_ext
10729 cat >>conftest.$ac_ext <<_ACEOF
10730 /* end confdefs.h.  */
10731 $ac_includes_default
10732 #include <$ac_header>
10733 _ACEOF
10734 rm -f conftest.$ac_objext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10736   (eval $ac_compile) 2>conftest.er1
10737   ac_status=$?
10738   grep -v '^ *+' conftest.er1 >conftest.err
10739   rm -f conftest.er1
10740   cat conftest.err >&5
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); } &&
10743          { ac_try='test -z "$ac_c_werror_flag"
10744                          || test ! -s conftest.err'
10745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10746   (eval $ac_try) 2>&5
10747   ac_status=$?
10748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10749   (exit $ac_status); }; } &&
10750          { ac_try='test -s conftest.$ac_objext'
10751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10752   (eval $ac_try) 2>&5
10753   ac_status=$?
10754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755   (exit $ac_status); }; }; then
10756   ac_header_compiler=yes
10757 else
10758   echo "$as_me: failed program was:" >&5
10759 sed 's/^/| /' conftest.$ac_ext >&5
10760
10761 ac_header_compiler=no
10762 fi
10763 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10765 echo "${ECHO_T}$ac_header_compiler" >&6
10766
10767 # Is the header present?
10768 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <$ac_header>
10777 _ACEOF
10778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10779   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } >/dev/null; then
10786   if test -s conftest.err; then
10787     ac_cpp_err=$ac_c_preproc_warn_flag
10788     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10789   else
10790     ac_cpp_err=
10791   fi
10792 else
10793   ac_cpp_err=yes
10794 fi
10795 if test -z "$ac_cpp_err"; then
10796   ac_header_preproc=yes
10797 else
10798   echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.$ac_ext >&5
10800
10801   ac_header_preproc=no
10802 fi
10803 rm -f conftest.err conftest.$ac_ext
10804 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10805 echo "${ECHO_T}$ac_header_preproc" >&6
10806
10807 # So?  What about this header?
10808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10809   yes:no: )
10810     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10811 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10813 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10814     ac_header_preproc=yes
10815     ;;
10816   no:yes:* )
10817     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10818 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10819     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10820 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10821     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10822 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10823     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10824 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10825     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10826 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10827     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10828 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10829     (
10830       cat <<\_ASBOX
10831 ## ------------------------------------------ ##
10832 ## Report this to the AC_PACKAGE_NAME lists.  ##
10833 ## ------------------------------------------ ##
10834 _ASBOX
10835     ) |
10836       sed "s/^/$as_me: WARNING:     /" >&2
10837     ;;
10838 esac
10839 echo "$as_me:$LINENO: checking for $ac_header" >&5
10840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10841 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10842   echo $ECHO_N "(cached) $ECHO_C" >&6
10843 else
10844   eval "$as_ac_Header=\$ac_header_preproc"
10845 fi
10846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10848
10849 fi
10850 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10851   cat >>confdefs.h <<_ACEOF
10852 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10853 _ACEOF
10854
10855 fi
10856
10857 done
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10883 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10884 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10885 __fsetlocking
10886 do
10887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888 echo "$as_me:$LINENO: checking for $ac_func" >&5
10889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10890 if eval "test \"\${$as_ac_var+set}\" = set"; then
10891   echo $ECHO_N "(cached) $ECHO_C" >&6
10892 else
10893   cat >conftest.$ac_ext <<_ACEOF
10894 /* confdefs.h.  */
10895 _ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h.  */
10899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10901 #define $ac_func innocuous_$ac_func
10902
10903 /* System header to define __stub macros and hopefully few prototypes,
10904     which can conflict with char $ac_func (); below.
10905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10906     <limits.h> exists even on freestanding compilers.  */
10907
10908 #ifdef __STDC__
10909 # include <limits.h>
10910 #else
10911 # include <assert.h>
10912 #endif
10913
10914 #undef $ac_func
10915
10916 /* Override any gcc2 internal prototype to avoid an error.  */
10917 #ifdef __cplusplus
10918 extern "C"
10919 {
10920 #endif
10921 /* We use char because int might match the return type of a gcc2
10922    builtin and then its argument prototype would still apply.  */
10923 char $ac_func ();
10924 /* The GNU C library defines this for functions which it implements
10925     to always fail with ENOSYS.  Some functions are actually named
10926     something starting with __ and the normal name is an alias.  */
10927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10928 choke me
10929 #else
10930 char (*f) () = $ac_func;
10931 #endif
10932 #ifdef __cplusplus
10933 }
10934 #endif
10935
10936 int
10937 main ()
10938 {
10939 return f != $ac_func;
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10946   (eval $ac_link) 2>conftest.er1
10947   ac_status=$?
10948   grep -v '^ *+' conftest.er1 >conftest.err
10949   rm -f conftest.er1
10950   cat conftest.err >&5
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); } &&
10953          { ac_try='test -z "$ac_c_werror_flag"
10954                          || test ! -s conftest.err'
10955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956   (eval $ac_try) 2>&5
10957   ac_status=$?
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); }; } &&
10960          { ac_try='test -s conftest$ac_exeext'
10961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962   (eval $ac_try) 2>&5
10963   ac_status=$?
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; }; then
10966   eval "$as_ac_var=yes"
10967 else
10968   echo "$as_me: failed program was:" >&5
10969 sed 's/^/| /' conftest.$ac_ext >&5
10970
10971 eval "$as_ac_var=no"
10972 fi
10973 rm -f conftest.err conftest.$ac_objext \
10974       conftest$ac_exeext conftest.$ac_ext
10975 fi
10976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10978 if test `eval echo '${'$as_ac_var'}'` = yes; then
10979   cat >>confdefs.h <<_ACEOF
10980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10981 _ACEOF
10982
10983 fi
10984 done
10985
10986
10987
10988   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10989 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
10990 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10991   echo $ECHO_N "(cached) $ECHO_C" >&6
10992 else
10993   cat >conftest.$ac_ext <<_ACEOF
10994 /* confdefs.h.  */
10995 _ACEOF
10996 cat confdefs.h >>conftest.$ac_ext
10997 cat >>conftest.$ac_ext <<_ACEOF
10998 /* end confdefs.h.  */
10999 #include <stdio.h>
11000 int
11001 main ()
11002 {
11003
11004 #ifndef _snprintf
11005   char *p = (char *) _snprintf;
11006 #endif
11007
11008   ;
11009   return 0;
11010 }
11011 _ACEOF
11012 rm -f conftest.$ac_objext
11013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11014   (eval $ac_compile) 2>conftest.er1
11015   ac_status=$?
11016   grep -v '^ *+' conftest.er1 >conftest.err
11017   rm -f conftest.er1
11018   cat conftest.err >&5
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); } &&
11021          { ac_try='test -z "$ac_c_werror_flag"
11022                          || test ! -s conftest.err'
11023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024   (eval $ac_try) 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; } &&
11028          { ac_try='test -s conftest.$ac_objext'
11029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11030   (eval $ac_try) 2>&5
11031   ac_status=$?
11032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); }; }; then
11034   ac_cv_have_decl__snprintf=yes
11035 else
11036   echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11038
11039 ac_cv_have_decl__snprintf=no
11040 fi
11041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11042 fi
11043 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11044 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11045   if test $ac_cv_have_decl__snprintf = yes; then
11046     gt_value=1
11047   else
11048     gt_value=0
11049   fi
11050
11051 cat >>confdefs.h <<_ACEOF
11052 #define HAVE_DECL__SNPRINTF $gt_value
11053 _ACEOF
11054
11055
11056
11057   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11058 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11059 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11060   echo $ECHO_N "(cached) $ECHO_C" >&6
11061 else
11062   cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068 #include <stdio.h>
11069 int
11070 main ()
11071 {
11072
11073 #ifndef _snwprintf
11074   char *p = (char *) _snwprintf;
11075 #endif
11076
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 rm -f conftest.$ac_objext
11082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11083   (eval $ac_compile) 2>conftest.er1
11084   ac_status=$?
11085   grep -v '^ *+' conftest.er1 >conftest.err
11086   rm -f conftest.er1
11087   cat conftest.err >&5
11088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089   (exit $ac_status); } &&
11090          { ac_try='test -z "$ac_c_werror_flag"
11091                          || test ! -s conftest.err'
11092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11093   (eval $ac_try) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }; } &&
11097          { ac_try='test -s conftest.$ac_objext'
11098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11099   (eval $ac_try) 2>&5
11100   ac_status=$?
11101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102   (exit $ac_status); }; }; then
11103   ac_cv_have_decl__snwprintf=yes
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108 ac_cv_have_decl__snwprintf=no
11109 fi
11110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11111 fi
11112 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11113 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11114   if test $ac_cv_have_decl__snwprintf = yes; then
11115     gt_value=1
11116   else
11117     gt_value=0
11118   fi
11119
11120 cat >>confdefs.h <<_ACEOF
11121 #define HAVE_DECL__SNWPRINTF $gt_value
11122 _ACEOF
11123
11124
11125
11126
11127   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11128 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11129 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11130   echo $ECHO_N "(cached) $ECHO_C" >&6
11131 else
11132   cat >conftest.$ac_ext <<_ACEOF
11133 /* confdefs.h.  */
11134 _ACEOF
11135 cat confdefs.h >>conftest.$ac_ext
11136 cat >>conftest.$ac_ext <<_ACEOF
11137 /* end confdefs.h.  */
11138 #include <stdio.h>
11139 int
11140 main ()
11141 {
11142
11143 #ifndef feof_unlocked
11144   char *p = (char *) feof_unlocked;
11145 #endif
11146
11147   ;
11148   return 0;
11149 }
11150 _ACEOF
11151 rm -f conftest.$ac_objext
11152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11153   (eval $ac_compile) 2>conftest.er1
11154   ac_status=$?
11155   grep -v '^ *+' conftest.er1 >conftest.err
11156   rm -f conftest.er1
11157   cat conftest.err >&5
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); } &&
11160          { ac_try='test -z "$ac_c_werror_flag"
11161                          || test ! -s conftest.err'
11162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11163   (eval $ac_try) 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); }; } &&
11167          { ac_try='test -s conftest.$ac_objext'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; }; then
11173   ac_cv_have_decl_feof_unlocked=yes
11174 else
11175   echo "$as_me: failed program was:" >&5
11176 sed 's/^/| /' conftest.$ac_ext >&5
11177
11178 ac_cv_have_decl_feof_unlocked=no
11179 fi
11180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11181 fi
11182 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11183 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11184   if test $ac_cv_have_decl_feof_unlocked = yes; then
11185     gt_value=1
11186   else
11187     gt_value=0
11188   fi
11189
11190 cat >>confdefs.h <<_ACEOF
11191 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11192 _ACEOF
11193
11194
11195
11196   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11197 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11198 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11199   echo $ECHO_N "(cached) $ECHO_C" >&6
11200 else
11201   cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 #include <stdio.h>
11208 int
11209 main ()
11210 {
11211
11212 #ifndef fgets_unlocked
11213   char *p = (char *) fgets_unlocked;
11214 #endif
11215
11216   ;
11217   return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext
11221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11222   (eval $ac_compile) 2>conftest.er1
11223   ac_status=$?
11224   grep -v '^ *+' conftest.er1 >conftest.err
11225   rm -f conftest.er1
11226   cat conftest.err >&5
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); } &&
11229          { ac_try='test -z "$ac_c_werror_flag"
11230                          || test ! -s conftest.err'
11231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232   (eval $ac_try) 2>&5
11233   ac_status=$?
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); }; } &&
11236          { ac_try='test -s conftest.$ac_objext'
11237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11238   (eval $ac_try) 2>&5
11239   ac_status=$?
11240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241   (exit $ac_status); }; }; then
11242   ac_cv_have_decl_fgets_unlocked=yes
11243 else
11244   echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.$ac_ext >&5
11246
11247 ac_cv_have_decl_fgets_unlocked=no
11248 fi
11249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11250 fi
11251 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11252 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11253   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11254     gt_value=1
11255   else
11256     gt_value=0
11257   fi
11258
11259 cat >>confdefs.h <<_ACEOF
11260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11261 _ACEOF
11262
11263
11264
11265   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11266 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11268   echo $ECHO_N "(cached) $ECHO_C" >&6
11269 else
11270   cat >conftest.$ac_ext <<_ACEOF
11271 /* confdefs.h.  */
11272 _ACEOF
11273 cat confdefs.h >>conftest.$ac_ext
11274 cat >>conftest.$ac_ext <<_ACEOF
11275 /* end confdefs.h.  */
11276 #include <stdio.h>
11277 int
11278 main ()
11279 {
11280
11281 #ifndef getc_unlocked
11282   char *p = (char *) getc_unlocked;
11283 #endif
11284
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291   (eval $ac_compile) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"
11299                          || test ! -s conftest.err'
11300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11301   (eval $ac_try) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); }; } &&
11305          { ac_try='test -s conftest.$ac_objext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   ac_cv_have_decl_getc_unlocked=yes
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 ac_cv_have_decl_getc_unlocked=no
11317 fi
11318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11319 fi
11320 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11321 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11322   if test $ac_cv_have_decl_getc_unlocked = yes; then
11323     gt_value=1
11324   else
11325     gt_value=0
11326   fi
11327
11328 cat >>confdefs.h <<_ACEOF
11329 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11330 _ACEOF
11331
11332
11333
11334   case $gt_cv_func_printf_posix in
11335     *yes) HAVE_POSIX_PRINTF=1 ;;
11336     *) HAVE_POSIX_PRINTF=0 ;;
11337   esac
11338
11339   if test "$ac_cv_func_asprintf" = yes; then
11340     HAVE_ASPRINTF=1
11341   else
11342     HAVE_ASPRINTF=0
11343   fi
11344
11345   if test "$ac_cv_func_snprintf" = yes; then
11346     HAVE_SNPRINTF=1
11347   else
11348     HAVE_SNPRINTF=0
11349   fi
11350
11351   if test "$ac_cv_func_wprintf" = yes; then
11352     HAVE_WPRINTF=1
11353   else
11354     HAVE_WPRINTF=0
11355   fi
11356
11357
11358
11359
11360
11361
11362
11363           am_save_CPPFLAGS="$CPPFLAGS"
11364
11365   for element in $INCICONV; do
11366     haveit=
11367     for x in $CPPFLAGS; do
11368
11369   acl_save_prefix="$prefix"
11370   prefix="$acl_final_prefix"
11371   acl_save_exec_prefix="$exec_prefix"
11372   exec_prefix="$acl_final_exec_prefix"
11373   eval x=\"$x\"
11374   exec_prefix="$acl_save_exec_prefix"
11375   prefix="$acl_save_prefix"
11376
11377       if test "X$x" = "X$element"; then
11378         haveit=yes
11379         break
11380       fi
11381     done
11382     if test -z "$haveit"; then
11383       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11384     fi
11385   done
11386
11387
11388   echo "$as_me:$LINENO: checking for iconv" >&5
11389 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11390 if test "${am_cv_func_iconv+set}" = set; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393
11394     am_cv_func_iconv="no, consider installing GNU libiconv"
11395     am_cv_lib_iconv=no
11396     cat >conftest.$ac_ext <<_ACEOF
11397 /* confdefs.h.  */
11398 _ACEOF
11399 cat confdefs.h >>conftest.$ac_ext
11400 cat >>conftest.$ac_ext <<_ACEOF
11401 /* end confdefs.h.  */
11402 #include <stdlib.h>
11403 #include <iconv.h>
11404 int
11405 main ()
11406 {
11407 iconv_t cd = iconv_open("","");
11408        iconv(cd,NULL,NULL,NULL,NULL);
11409        iconv_close(cd);
11410   ;
11411   return 0;
11412 }
11413 _ACEOF
11414 rm -f conftest.$ac_objext conftest$ac_exeext
11415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416   (eval $ac_link) 2>conftest.er1
11417   ac_status=$?
11418   grep -v '^ *+' conftest.er1 >conftest.err
11419   rm -f conftest.er1
11420   cat conftest.err >&5
11421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11422   (exit $ac_status); } &&
11423          { ac_try='test -z "$ac_c_werror_flag"
11424                          || test ! -s conftest.err'
11425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426   (eval $ac_try) 2>&5
11427   ac_status=$?
11428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429   (exit $ac_status); }; } &&
11430          { ac_try='test -s conftest$ac_exeext'
11431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11432   (eval $ac_try) 2>&5
11433   ac_status=$?
11434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11435   (exit $ac_status); }; }; then
11436   am_cv_func_iconv=yes
11437 else
11438   echo "$as_me: failed program was:" >&5
11439 sed 's/^/| /' conftest.$ac_ext >&5
11440
11441 fi
11442 rm -f conftest.err conftest.$ac_objext \
11443       conftest$ac_exeext conftest.$ac_ext
11444     if test "$am_cv_func_iconv" != yes; then
11445       am_save_LIBS="$LIBS"
11446       LIBS="$LIBS $LIBICONV"
11447       cat >conftest.$ac_ext <<_ACEOF
11448 /* confdefs.h.  */
11449 _ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h.  */
11453 #include <stdlib.h>
11454 #include <iconv.h>
11455 int
11456 main ()
11457 {
11458 iconv_t cd = iconv_open("","");
11459          iconv(cd,NULL,NULL,NULL,NULL);
11460          iconv_close(cd);
11461   ;
11462   return 0;
11463 }
11464 _ACEOF
11465 rm -f conftest.$ac_objext conftest$ac_exeext
11466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11467   (eval $ac_link) 2>conftest.er1
11468   ac_status=$?
11469   grep -v '^ *+' conftest.er1 >conftest.err
11470   rm -f conftest.er1
11471   cat conftest.err >&5
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); } &&
11474          { ac_try='test -z "$ac_c_werror_flag"
11475                          || test ! -s conftest.err'
11476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11477   (eval $ac_try) 2>&5
11478   ac_status=$?
11479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480   (exit $ac_status); }; } &&
11481          { ac_try='test -s conftest$ac_exeext'
11482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483   (eval $ac_try) 2>&5
11484   ac_status=$?
11485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486   (exit $ac_status); }; }; then
11487   am_cv_lib_iconv=yes
11488         am_cv_func_iconv=yes
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493 fi
11494 rm -f conftest.err conftest.$ac_objext \
11495       conftest$ac_exeext conftest.$ac_ext
11496       LIBS="$am_save_LIBS"
11497     fi
11498
11499 fi
11500 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11501 echo "${ECHO_T}$am_cv_func_iconv" >&6
11502   if test "$am_cv_func_iconv" = yes; then
11503
11504 cat >>confdefs.h <<\_ACEOF
11505 #define HAVE_ICONV 1
11506 _ACEOF
11507
11508   fi
11509   if test "$am_cv_lib_iconv" = yes; then
11510     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11511 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11512     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11513 echo "${ECHO_T}$LIBICONV" >&6
11514   else
11515             CPPFLAGS="$am_save_CPPFLAGS"
11516     LIBICONV=
11517     LTLIBICONV=
11518   fi
11519
11520
11521
11522   if test "$am_cv_func_iconv" = yes; then
11523     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11524 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11525     if test "${am_cv_proto_iconv+set}" = set; then
11526   echo $ECHO_N "(cached) $ECHO_C" >&6
11527 else
11528
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
11536 #include <stdlib.h>
11537 #include <iconv.h>
11538 extern
11539 #ifdef __cplusplus
11540 "C"
11541 #endif
11542 #if defined(__STDC__) || defined(__cplusplus)
11543 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11544 #else
11545 size_t iconv();
11546 #endif
11547
11548 int
11549 main ()
11550 {
11551
11552   ;
11553   return 0;
11554 }
11555 _ACEOF
11556 rm -f conftest.$ac_objext
11557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11558   (eval $ac_compile) 2>conftest.er1
11559   ac_status=$?
11560   grep -v '^ *+' conftest.er1 >conftest.err
11561   rm -f conftest.er1
11562   cat conftest.err >&5
11563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564   (exit $ac_status); } &&
11565          { ac_try='test -z "$ac_c_werror_flag"
11566                          || test ! -s conftest.err'
11567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11568   (eval $ac_try) 2>&5
11569   ac_status=$?
11570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571   (exit $ac_status); }; } &&
11572          { ac_try='test -s conftest.$ac_objext'
11573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11574   (eval $ac_try) 2>&5
11575   ac_status=$?
11576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577   (exit $ac_status); }; }; then
11578   am_cv_proto_iconv_arg1=""
11579 else
11580   echo "$as_me: failed program was:" >&5
11581 sed 's/^/| /' conftest.$ac_ext >&5
11582
11583 am_cv_proto_iconv_arg1="const"
11584 fi
11585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11586       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);"
11587 fi
11588
11589     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11590     echo "$as_me:$LINENO: result: ${ac_t:-
11591          }$am_cv_proto_iconv" >&5
11592 echo "${ECHO_T}${ac_t:-
11593          }$am_cv_proto_iconv" >&6
11594
11595 cat >>confdefs.h <<_ACEOF
11596 #define ICONV_CONST $am_cv_proto_iconv_arg1
11597 _ACEOF
11598
11599   fi
11600
11601
11602   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11603 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11604 if test "${am_cv_langinfo_codeset+set}" = set; then
11605   echo $ECHO_N "(cached) $ECHO_C" >&6
11606 else
11607   cat >conftest.$ac_ext <<_ACEOF
11608 /* confdefs.h.  */
11609 _ACEOF
11610 cat confdefs.h >>conftest.$ac_ext
11611 cat >>conftest.$ac_ext <<_ACEOF
11612 /* end confdefs.h.  */
11613 #include <langinfo.h>
11614 int
11615 main ()
11616 {
11617 char* cs = nl_langinfo(CODESET);
11618   ;
11619   return 0;
11620 }
11621 _ACEOF
11622 rm -f conftest.$ac_objext conftest$ac_exeext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11624   (eval $ac_link) 2>conftest.er1
11625   ac_status=$?
11626   grep -v '^ *+' conftest.er1 >conftest.err
11627   rm -f conftest.er1
11628   cat conftest.err >&5
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); } &&
11631          { ac_try='test -z "$ac_c_werror_flag"
11632                          || test ! -s conftest.err'
11633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11634   (eval $ac_try) 2>&5
11635   ac_status=$?
11636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11637   (exit $ac_status); }; } &&
11638          { ac_try='test -s conftest$ac_exeext'
11639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640   (eval $ac_try) 2>&5
11641   ac_status=$?
11642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643   (exit $ac_status); }; }; then
11644   am_cv_langinfo_codeset=yes
11645 else
11646   echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 am_cv_langinfo_codeset=no
11650 fi
11651 rm -f conftest.err conftest.$ac_objext \
11652       conftest$ac_exeext conftest.$ac_ext
11653
11654 fi
11655 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11656 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11657   if test $am_cv_langinfo_codeset = yes; then
11658
11659 cat >>confdefs.h <<\_ACEOF
11660 #define HAVE_LANGINFO_CODESET 1
11661 _ACEOF
11662
11663   fi
11664
11665   if test $ac_cv_header_locale_h = yes; then
11666
11667   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11668 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11669 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   cat >conftest.$ac_ext <<_ACEOF
11673 /* confdefs.h.  */
11674 _ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h.  */
11678 #include <locale.h>
11679 int
11680 main ()
11681 {
11682 return LC_MESSAGES
11683   ;
11684   return 0;
11685 }
11686 _ACEOF
11687 rm -f conftest.$ac_objext conftest$ac_exeext
11688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11689   (eval $ac_link) 2>conftest.er1
11690   ac_status=$?
11691   grep -v '^ *+' conftest.er1 >conftest.err
11692   rm -f conftest.er1
11693   cat conftest.err >&5
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); } &&
11696          { ac_try='test -z "$ac_c_werror_flag"
11697                          || test ! -s conftest.err'
11698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699   (eval $ac_try) 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; } &&
11703          { ac_try='test -s conftest$ac_exeext'
11704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705   (eval $ac_try) 2>&5
11706   ac_status=$?
11707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708   (exit $ac_status); }; }; then
11709   gt_cv_val_LC_MESSAGES=yes
11710 else
11711   echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11713
11714 gt_cv_val_LC_MESSAGES=no
11715 fi
11716 rm -f conftest.err conftest.$ac_objext \
11717       conftest$ac_exeext conftest.$ac_ext
11718 fi
11719 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11720 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11721   if test $gt_cv_val_LC_MESSAGES = yes; then
11722
11723 cat >>confdefs.h <<\_ACEOF
11724 #define HAVE_LC_MESSAGES 1
11725 _ACEOF
11726
11727   fi
11728
11729   fi
11730
11731   if test -n "$INTL_MACOSX_LIBS"; then
11732     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11733   fi
11734
11735                       for ac_prog in bison
11736 do
11737   # Extract the first word of "$ac_prog", so it can be a program name with args.
11738 set dummy $ac_prog; ac_word=$2
11739 echo "$as_me:$LINENO: checking for $ac_word" >&5
11740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11741 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11742   echo $ECHO_N "(cached) $ECHO_C" >&6
11743 else
11744   if test -n "$INTLBISON"; then
11745   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11746 else
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11749 do
11750   IFS=$as_save_IFS
11751   test -z "$as_dir" && as_dir=.
11752   for ac_exec_ext in '' $ac_executable_extensions; do
11753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754     ac_cv_prog_INTLBISON="$ac_prog"
11755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11756     break 2
11757   fi
11758 done
11759 done
11760
11761 fi
11762 fi
11763 INTLBISON=$ac_cv_prog_INTLBISON
11764 if test -n "$INTLBISON"; then
11765   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11766 echo "${ECHO_T}$INTLBISON" >&6
11767 else
11768   echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11770 fi
11771
11772   test -n "$INTLBISON" && break
11773 done
11774
11775   if test -z "$INTLBISON"; then
11776     ac_verc_fail=yes
11777   else
11778         echo "$as_me:$LINENO: checking version of bison" >&5
11779 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11780     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11781     case $ac_prog_version in
11782       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11783       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11784          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11785       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11786     esac
11787     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11788 echo "${ECHO_T}$ac_prog_version" >&6
11789   fi
11790   if test $ac_verc_fail = yes; then
11791     INTLBISON=:
11792   fi
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11810 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11811 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11812   echo $ECHO_N "(cached) $ECHO_C" >&6
11813 else
11814   gt_save_CPPFLAGS="$CPPFLAGS"
11815      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11816      gt_save_LIBS="$LIBS"
11817      LIBS="$LIBS -framework CoreFoundation"
11818      cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <CFPreferences.h>
11825 int
11826 main ()
11827 {
11828 CFPreferencesCopyAppValue(NULL, NULL)
11829   ;
11830   return 0;
11831 }
11832 _ACEOF
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835   (eval $ac_link) 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag"
11843                          || test ! -s conftest.err'
11844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845   (eval $ac_try) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); }; } &&
11849          { ac_try='test -s conftest$ac_exeext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   gt_cv_func_CFPreferencesCopyAppValue=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 gt_cv_func_CFPreferencesCopyAppValue=no
11861 fi
11862 rm -f conftest.err conftest.$ac_objext \
11863       conftest$ac_exeext conftest.$ac_ext
11864      CPPFLAGS="$gt_save_CPPFLAGS"
11865      LIBS="$gt_save_LIBS"
11866 fi
11867 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11868 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11869   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11870
11871 cat >>confdefs.h <<\_ACEOF
11872 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11873 _ACEOF
11874
11875   fi
11876     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11877 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11878 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11879   echo $ECHO_N "(cached) $ECHO_C" >&6
11880 else
11881   gt_save_CPPFLAGS="$CPPFLAGS"
11882      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11883      gt_save_LIBS="$LIBS"
11884      LIBS="$LIBS -framework CoreFoundation"
11885      cat >conftest.$ac_ext <<_ACEOF
11886 /* confdefs.h.  */
11887 _ACEOF
11888 cat confdefs.h >>conftest.$ac_ext
11889 cat >>conftest.$ac_ext <<_ACEOF
11890 /* end confdefs.h.  */
11891 #include <CFLocale.h>
11892 int
11893 main ()
11894 {
11895 CFLocaleCopyCurrent();
11896   ;
11897   return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11902   (eval $ac_link) 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } &&
11909          { ac_try='test -z "$ac_c_werror_flag"
11910                          || test ! -s conftest.err'
11911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912   (eval $ac_try) 2>&5
11913   ac_status=$?
11914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915   (exit $ac_status); }; } &&
11916          { ac_try='test -s conftest$ac_exeext'
11917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918   (eval $ac_try) 2>&5
11919   ac_status=$?
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); }; }; then
11922   gt_cv_func_CFLocaleCopyCurrent=yes
11923 else
11924   echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11926
11927 gt_cv_func_CFLocaleCopyCurrent=no
11928 fi
11929 rm -f conftest.err conftest.$ac_objext \
11930       conftest$ac_exeext conftest.$ac_ext
11931      CPPFLAGS="$gt_save_CPPFLAGS"
11932      LIBS="$gt_save_LIBS"
11933 fi
11934 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11935 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11936   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11937
11938 cat >>confdefs.h <<\_ACEOF
11939 #define HAVE_CFLOCALECOPYCURRENT 1
11940 _ACEOF
11941
11942   fi
11943   INTL_MACOSX_LIBS=
11944   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11945     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11946   fi
11947
11948
11949
11950
11951   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11952 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
11953     # Check whether --enable-nls or --disable-nls was given.
11954 if test "${enable_nls+set}" = set; then
11955   enableval="$enable_nls"
11956   USE_NLS=$enableval
11957 else
11958   USE_NLS=yes
11959 fi;
11960   echo "$as_me:$LINENO: result: $USE_NLS" >&5
11961 echo "${ECHO_T}$USE_NLS" >&6
11962
11963
11964
11965
11966     BUILD_INCLUDED_LIBINTL=no
11967     USE_INCLUDED_LIBINTL=no
11968
11969   LIBINTL=
11970   LTLIBINTL=
11971   POSUB=
11972
11973     if test "$USE_NLS" = "yes"; then
11974     gt_use_preinstalled_gnugettext=no
11975
11976       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11977 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
11978
11979 # Check whether --with-included-gettext or --without-included-gettext was given.
11980 if test "${with_included_gettext+set}" = set; then
11981   withval="$with_included_gettext"
11982   nls_cv_force_use_gnu_gettext=$withval
11983 else
11984   nls_cv_force_use_gnu_gettext=no
11985 fi;
11986       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11987 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
11988
11989       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11990       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11991
11992
11993
11994
11995
11996
11997         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11998 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
11999 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12000   echo $ECHO_N "(cached) $ECHO_C" >&6
12001 else
12002   cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h.  */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h.  */
12008 #include <libintl.h>
12009 extern int _nl_msg_cat_cntr;
12010 extern int *_nl_domain_bindings;
12011 int
12012 main ()
12013 {
12014 bindtextdomain ("", "");
12015 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12016   ;
12017   return 0;
12018 }
12019 _ACEOF
12020 rm -f conftest.$ac_objext conftest$ac_exeext
12021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12022   (eval $ac_link) 2>conftest.er1
12023   ac_status=$?
12024   grep -v '^ *+' conftest.er1 >conftest.err
12025   rm -f conftest.er1
12026   cat conftest.err >&5
12027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028   (exit $ac_status); } &&
12029          { ac_try='test -z "$ac_c_werror_flag"
12030                          || test ! -s conftest.err'
12031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032   (eval $ac_try) 2>&5
12033   ac_status=$?
12034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035   (exit $ac_status); }; } &&
12036          { ac_try='test -s conftest$ac_exeext'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; }; then
12042   gt_cv_func_gnugettext1_libc=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 gt_cv_func_gnugettext1_libc=no
12048 fi
12049 rm -f conftest.err conftest.$ac_objext \
12050       conftest$ac_exeext conftest.$ac_ext
12051 fi
12052 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12053 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12054
12055         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12056
12057
12058
12059     use_additional=yes
12060
12061   acl_save_prefix="$prefix"
12062   prefix="$acl_final_prefix"
12063   acl_save_exec_prefix="$exec_prefix"
12064   exec_prefix="$acl_final_exec_prefix"
12065
12066     eval additional_includedir=\"$includedir\"
12067     eval additional_libdir=\"$libdir\"
12068
12069   exec_prefix="$acl_save_exec_prefix"
12070   prefix="$acl_save_prefix"
12071
12072
12073 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12074 if test "${with_libintl_prefix+set}" = set; then
12075   withval="$with_libintl_prefix"
12076
12077     if test "X$withval" = "Xno"; then
12078       use_additional=no
12079     else
12080       if test "X$withval" = "X"; then
12081
12082   acl_save_prefix="$prefix"
12083   prefix="$acl_final_prefix"
12084   acl_save_exec_prefix="$exec_prefix"
12085   exec_prefix="$acl_final_exec_prefix"
12086
12087           eval additional_includedir=\"$includedir\"
12088           eval additional_libdir=\"$libdir\"
12089
12090   exec_prefix="$acl_save_exec_prefix"
12091   prefix="$acl_save_prefix"
12092
12093       else
12094         additional_includedir="$withval/include"
12095         additional_libdir="$withval/lib"
12096       fi
12097     fi
12098
12099 fi;
12100       LIBINTL=
12101   LTLIBINTL=
12102   INCINTL=
12103   rpathdirs=
12104   ltrpathdirs=
12105   names_already_handled=
12106   names_next_round='intl '
12107   while test -n "$names_next_round"; do
12108     names_this_round="$names_next_round"
12109     names_next_round=
12110     for name in $names_this_round; do
12111       already_handled=
12112       for n in $names_already_handled; do
12113         if test "$n" = "$name"; then
12114           already_handled=yes
12115           break
12116         fi
12117       done
12118       if test -z "$already_handled"; then
12119         names_already_handled="$names_already_handled $name"
12120                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12121         eval value=\"\$HAVE_LIB$uppername\"
12122         if test -n "$value"; then
12123           if test "$value" = yes; then
12124             eval value=\"\$LIB$uppername\"
12125             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12126             eval value=\"\$LTLIB$uppername\"
12127             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12128           else
12129                                     :
12130           fi
12131         else
12132                               found_dir=
12133           found_la=
12134           found_so=
12135           found_a=
12136           if test $use_additional = yes; then
12137             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12138               found_dir="$additional_libdir"
12139               found_so="$additional_libdir/lib$name.$shlibext"
12140               if test -f "$additional_libdir/lib$name.la"; then
12141                 found_la="$additional_libdir/lib$name.la"
12142               fi
12143             else
12144               if test -f "$additional_libdir/lib$name.$libext"; then
12145                 found_dir="$additional_libdir"
12146                 found_a="$additional_libdir/lib$name.$libext"
12147                 if test -f "$additional_libdir/lib$name.la"; then
12148                   found_la="$additional_libdir/lib$name.la"
12149                 fi
12150               fi
12151             fi
12152           fi
12153           if test "X$found_dir" = "X"; then
12154             for x in $LDFLAGS $LTLIBINTL; do
12155
12156   acl_save_prefix="$prefix"
12157   prefix="$acl_final_prefix"
12158   acl_save_exec_prefix="$exec_prefix"
12159   exec_prefix="$acl_final_exec_prefix"
12160   eval x=\"$x\"
12161   exec_prefix="$acl_save_exec_prefix"
12162   prefix="$acl_save_prefix"
12163
12164               case "$x" in
12165                 -L*)
12166                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12167                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12168                     found_dir="$dir"
12169                     found_so="$dir/lib$name.$shlibext"
12170                     if test -f "$dir/lib$name.la"; then
12171                       found_la="$dir/lib$name.la"
12172                     fi
12173                   else
12174                     if test -f "$dir/lib$name.$libext"; then
12175                       found_dir="$dir"
12176                       found_a="$dir/lib$name.$libext"
12177                       if test -f "$dir/lib$name.la"; then
12178                         found_la="$dir/lib$name.la"
12179                       fi
12180                     fi
12181                   fi
12182                   ;;
12183               esac
12184               if test "X$found_dir" != "X"; then
12185                 break
12186               fi
12187             done
12188           fi
12189           if test "X$found_dir" != "X"; then
12190                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12191             if test "X$found_so" != "X"; then
12192                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12193                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12194               else
12195                                                                                 haveit=
12196                 for x in $ltrpathdirs; do
12197                   if test "X$x" = "X$found_dir"; then
12198                     haveit=yes
12199                     break
12200                   fi
12201                 done
12202                 if test -z "$haveit"; then
12203                   ltrpathdirs="$ltrpathdirs $found_dir"
12204                 fi
12205                                 if test "$hardcode_direct" = yes; then
12206                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12207                 else
12208                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12209                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12210                                                             haveit=
12211                     for x in $rpathdirs; do
12212                       if test "X$x" = "X$found_dir"; then
12213                         haveit=yes
12214                         break
12215                       fi
12216                     done
12217                     if test -z "$haveit"; then
12218                       rpathdirs="$rpathdirs $found_dir"
12219                     fi
12220                   else
12221                                                                                 haveit=
12222                     for x in $LDFLAGS $LIBINTL; do
12223
12224   acl_save_prefix="$prefix"
12225   prefix="$acl_final_prefix"
12226   acl_save_exec_prefix="$exec_prefix"
12227   exec_prefix="$acl_final_exec_prefix"
12228   eval x=\"$x\"
12229   exec_prefix="$acl_save_exec_prefix"
12230   prefix="$acl_save_prefix"
12231
12232                       if test "X$x" = "X-L$found_dir"; then
12233                         haveit=yes
12234                         break
12235                       fi
12236                     done
12237                     if test -z "$haveit"; then
12238                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12239                     fi
12240                     if test "$hardcode_minus_L" != no; then
12241                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12242                     else
12243                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12244                     fi
12245                   fi
12246                 fi
12247               fi
12248             else
12249               if test "X$found_a" != "X"; then
12250                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12251               else
12252                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12253               fi
12254             fi
12255                         additional_includedir=
12256             case "$found_dir" in
12257               */lib | */lib/)
12258                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12259                 additional_includedir="$basedir/include"
12260                 ;;
12261             esac
12262             if test "X$additional_includedir" != "X"; then
12263                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12264                 haveit=
12265                 if test "X$additional_includedir" = "X/usr/local/include"; then
12266                   if test -n "$GCC"; then
12267                     case $host_os in
12268                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12269                     esac
12270                   fi
12271                 fi
12272                 if test -z "$haveit"; then
12273                   for x in $CPPFLAGS $INCINTL; do
12274
12275   acl_save_prefix="$prefix"
12276   prefix="$acl_final_prefix"
12277   acl_save_exec_prefix="$exec_prefix"
12278   exec_prefix="$acl_final_exec_prefix"
12279   eval x=\"$x\"
12280   exec_prefix="$acl_save_exec_prefix"
12281   prefix="$acl_save_prefix"
12282
12283                     if test "X$x" = "X-I$additional_includedir"; then
12284                       haveit=yes
12285                       break
12286                     fi
12287                   done
12288                   if test -z "$haveit"; then
12289                     if test -d "$additional_includedir"; then
12290                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12291                     fi
12292                   fi
12293                 fi
12294               fi
12295             fi
12296                         if test -n "$found_la"; then
12297                                                         save_libdir="$libdir"
12298               case "$found_la" in
12299                 */* | *\\*) . "$found_la" ;;
12300                 *) . "./$found_la" ;;
12301               esac
12302               libdir="$save_libdir"
12303                             for dep in $dependency_libs; do
12304                 case "$dep" in
12305                   -L*)
12306                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12307                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12308                       haveit=
12309                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12310                         if test -n "$GCC"; then
12311                           case $host_os in
12312                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12313                           esac
12314                         fi
12315                       fi
12316                       if test -z "$haveit"; then
12317                         haveit=
12318                         for x in $LDFLAGS $LIBINTL; do
12319
12320   acl_save_prefix="$prefix"
12321   prefix="$acl_final_prefix"
12322   acl_save_exec_prefix="$exec_prefix"
12323   exec_prefix="$acl_final_exec_prefix"
12324   eval x=\"$x\"
12325   exec_prefix="$acl_save_exec_prefix"
12326   prefix="$acl_save_prefix"
12327
12328                           if test "X$x" = "X-L$additional_libdir"; then
12329                             haveit=yes
12330                             break
12331                           fi
12332                         done
12333                         if test -z "$haveit"; then
12334                           if test -d "$additional_libdir"; then
12335                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12336                           fi
12337                         fi
12338                         haveit=
12339                         for x in $LDFLAGS $LTLIBINTL; do
12340
12341   acl_save_prefix="$prefix"
12342   prefix="$acl_final_prefix"
12343   acl_save_exec_prefix="$exec_prefix"
12344   exec_prefix="$acl_final_exec_prefix"
12345   eval x=\"$x\"
12346   exec_prefix="$acl_save_exec_prefix"
12347   prefix="$acl_save_prefix"
12348
12349                           if test "X$x" = "X-L$additional_libdir"; then
12350                             haveit=yes
12351                             break
12352                           fi
12353                         done
12354                         if test -z "$haveit"; then
12355                           if test -d "$additional_libdir"; then
12356                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12357                           fi
12358                         fi
12359                       fi
12360                     fi
12361                     ;;
12362                   -R*)
12363                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12364                     if test "$enable_rpath" != no; then
12365                                                                   haveit=
12366                       for x in $rpathdirs; do
12367                         if test "X$x" = "X$dir"; then
12368                           haveit=yes
12369                           break
12370                         fi
12371                       done
12372                       if test -z "$haveit"; then
12373                         rpathdirs="$rpathdirs $dir"
12374                       fi
12375                                                                   haveit=
12376                       for x in $ltrpathdirs; do
12377                         if test "X$x" = "X$dir"; then
12378                           haveit=yes
12379                           break
12380                         fi
12381                       done
12382                       if test -z "$haveit"; then
12383                         ltrpathdirs="$ltrpathdirs $dir"
12384                       fi
12385                     fi
12386                     ;;
12387                   -l*)
12388                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12389                     ;;
12390                   *.la)
12391                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12392                     ;;
12393                   *)
12394                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12395                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12396                     ;;
12397                 esac
12398               done
12399             fi
12400           else
12401                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12402             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12403           fi
12404         fi
12405       fi
12406     done
12407   done
12408   if test "X$rpathdirs" != "X"; then
12409     if test -n "$hardcode_libdir_separator"; then
12410                         alldirs=
12411       for found_dir in $rpathdirs; do
12412         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12413       done
12414             acl_save_libdir="$libdir"
12415       libdir="$alldirs"
12416       eval flag=\"$hardcode_libdir_flag_spec\"
12417       libdir="$acl_save_libdir"
12418       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12419     else
12420             for found_dir in $rpathdirs; do
12421         acl_save_libdir="$libdir"
12422         libdir="$found_dir"
12423         eval flag=\"$hardcode_libdir_flag_spec\"
12424         libdir="$acl_save_libdir"
12425         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12426       done
12427     fi
12428   fi
12429   if test "X$ltrpathdirs" != "X"; then
12430             for found_dir in $ltrpathdirs; do
12431       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12432     done
12433   fi
12434
12435           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12436 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12437 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12438   echo $ECHO_N "(cached) $ECHO_C" >&6
12439 else
12440   gt_save_CPPFLAGS="$CPPFLAGS"
12441             CPPFLAGS="$CPPFLAGS $INCINTL"
12442             gt_save_LIBS="$LIBS"
12443             LIBS="$LIBS $LIBINTL"
12444                         cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h.  */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h.  */
12450 #include <libintl.h>
12451 extern int _nl_msg_cat_cntr;
12452 extern
12453 #ifdef __cplusplus
12454 "C"
12455 #endif
12456 const char *_nl_expand_alias (const char *);
12457 int
12458 main ()
12459 {
12460 bindtextdomain ("", "");
12461 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12462   ;
12463   return 0;
12464 }
12465 _ACEOF
12466 rm -f conftest.$ac_objext conftest$ac_exeext
12467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12468   (eval $ac_link) 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } &&
12475          { ac_try='test -z "$ac_c_werror_flag"
12476                          || test ! -s conftest.err'
12477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12478   (eval $ac_try) 2>&5
12479   ac_status=$?
12480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12481   (exit $ac_status); }; } &&
12482          { ac_try='test -s conftest$ac_exeext'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; }; then
12488   gt_cv_func_gnugettext1_libintl=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493 gt_cv_func_gnugettext1_libintl=no
12494 fi
12495 rm -f conftest.err conftest.$ac_objext \
12496       conftest$ac_exeext conftest.$ac_ext
12497                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12498               LIBS="$LIBS $LIBICONV"
12499               cat >conftest.$ac_ext <<_ACEOF
12500 /* confdefs.h.  */
12501 _ACEOF
12502 cat confdefs.h >>conftest.$ac_ext
12503 cat >>conftest.$ac_ext <<_ACEOF
12504 /* end confdefs.h.  */
12505 #include <libintl.h>
12506 extern int _nl_msg_cat_cntr;
12507 extern
12508 #ifdef __cplusplus
12509 "C"
12510 #endif
12511 const char *_nl_expand_alias (const char *);
12512 int
12513 main ()
12514 {
12515 bindtextdomain ("", "");
12516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12517   ;
12518   return 0;
12519 }
12520 _ACEOF
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523   (eval $ac_link) 2>conftest.er1
12524   ac_status=$?
12525   grep -v '^ *+' conftest.er1 >conftest.err
12526   rm -f conftest.er1
12527   cat conftest.err >&5
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); } &&
12530          { ac_try='test -z "$ac_c_werror_flag"
12531                          || test ! -s conftest.err'
12532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533   (eval $ac_try) 2>&5
12534   ac_status=$?
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); }; } &&
12537          { ac_try='test -s conftest$ac_exeext'
12538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539   (eval $ac_try) 2>&5
12540   ac_status=$?
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); }; }; then
12543   LIBINTL="$LIBINTL $LIBICONV"
12544                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12545                 gt_cv_func_gnugettext1_libintl=yes
12546
12547 else
12548   echo "$as_me: failed program was:" >&5
12549 sed 's/^/| /' conftest.$ac_ext >&5
12550
12551 fi
12552 rm -f conftest.err conftest.$ac_objext \
12553       conftest$ac_exeext conftest.$ac_ext
12554             fi
12555             CPPFLAGS="$gt_save_CPPFLAGS"
12556             LIBS="$gt_save_LIBS"
12557 fi
12558 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12559 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12560         fi
12561
12562                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12563            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12564                 && test "$PACKAGE" != gettext-runtime \
12565                 && test "$PACKAGE" != gettext-tools; }; then
12566           gt_use_preinstalled_gnugettext=yes
12567         else
12568                     LIBINTL=
12569           LTLIBINTL=
12570           INCINTL=
12571         fi
12572
12573
12574         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12575                               nls_cv_use_gnu_gettext=yes
12576         fi
12577       fi
12578
12579       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12580                 BUILD_INCLUDED_LIBINTL=yes
12581         USE_INCLUDED_LIBINTL=yes
12582         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12583         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12584         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12585       fi
12586
12587       CATOBJEXT=
12588       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12589          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12590                 CATOBJEXT=.gmo
12591       fi
12592
12593
12594     if test -n "$INTL_MACOSX_LIBS"; then
12595       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12596          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12597                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12598         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12599       fi
12600     fi
12601
12602     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12603        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12604
12605 cat >>confdefs.h <<\_ACEOF
12606 #define ENABLE_NLS 1
12607 _ACEOF
12608
12609     else
12610       USE_NLS=no
12611     fi
12612   fi
12613
12614   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12615 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12616   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12617 echo "${ECHO_T}$USE_NLS" >&6
12618   if test "$USE_NLS" = "yes"; then
12619     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12620 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12621     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12622       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12623         gt_source="external libintl"
12624       else
12625         gt_source="libc"
12626       fi
12627     else
12628       gt_source="included intl directory"
12629     fi
12630     echo "$as_me:$LINENO: result: $gt_source" >&5
12631 echo "${ECHO_T}$gt_source" >&6
12632   fi
12633
12634   if test "$USE_NLS" = "yes"; then
12635
12636     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12637       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12638         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12639 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12640         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12641 echo "${ECHO_T}$LIBINTL" >&6
12642
12643   for element in $INCINTL; do
12644     haveit=
12645     for x in $CPPFLAGS; do
12646
12647   acl_save_prefix="$prefix"
12648   prefix="$acl_final_prefix"
12649   acl_save_exec_prefix="$exec_prefix"
12650   exec_prefix="$acl_final_exec_prefix"
12651   eval x=\"$x\"
12652   exec_prefix="$acl_save_exec_prefix"
12653   prefix="$acl_save_prefix"
12654
12655       if test "X$x" = "X$element"; then
12656         haveit=yes
12657         break
12658       fi
12659     done
12660     if test -z "$haveit"; then
12661       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12662     fi
12663   done
12664
12665       fi
12666
12667
12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GETTEXT 1
12670 _ACEOF
12671
12672
12673 cat >>confdefs.h <<\_ACEOF
12674 #define HAVE_DCGETTEXT 1
12675 _ACEOF
12676
12677     fi
12678
12679         POSUB=po
12680   fi
12681
12682
12683             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12684       BUILD_INCLUDED_LIBINTL=yes
12685     fi
12686
12687
12688
12689
12690
12691         nls_cv_header_intl=
12692     nls_cv_header_libgt=
12693
12694         DATADIRNAME=share
12695
12696
12697         INSTOBJEXT=.mo
12698
12699
12700         GENCAT=gencat
12701
12702
12703         INTLOBJS=
12704     if test "$USE_INCLUDED_LIBINTL" = yes; then
12705       INTLOBJS="\$(GETTOBJS)"
12706     fi
12707
12708
12709         INTL_LIBTOOL_SUFFIX_PREFIX=
12710
12711
12712
12713     INTLLIBS="$LIBINTL"
12714
12715
12716
12717
12718
12719
12720 fi
12721
12722
12723 support_mysql=no
12724 support_sqlite=no
12725 support_sqlite3=no
12726 support_postgresql=no
12727 support_smartalloc=yes
12728 support_readline=yes
12729 support_conio=yes
12730 support_gnome=no
12731 support_bat=no
12732 support_wx_console=no
12733 support_tls=no
12734 support_crypto=no
12735 gnome_version=
12736 wx_version=
12737 support_static_tools=no
12738 support_static_fd=no
12739 support_static_sd=no
12740 support_static_dir=no
12741 support_static_cons=no
12742 support_python=no
12743 build_client_only=no
12744 build_dird=yes
12745 build_stored=yes
12746 cats=
12747 db_type=Internal
12748 DB_TYPE=bdb
12749
12750
12751 # -------------------------------------------
12752 # gnome (default off)
12753 # -------------------------------------------
12754 # Check whether --enable-gnome or --disable-gnome was given.
12755 if test "${enable_gnome+set}" = set; then
12756   enableval="$enable_gnome"
12757   if test x$enableval = xyes; then
12758     support_gnome=yes
12759   fi
12760 fi;
12761
12762 GNOME_DIR=
12763 if test x$support_gnome = xyes; then
12764   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12765   pkg=$?
12766   if test $pkg = 0; then
12767      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12768      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12769      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12770      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12771
12772
12773
12774
12775      GNOME_DIR=src/gnome2-console
12776      gnome_version="Version 2.x"
12777   else
12778      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12779 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12780    { (exit 1); exit 1; }; }
12781   fi
12782 fi
12783
12784
12785 # -------------------------------------------
12786 # bat (default off)
12787 # -------------------------------------------
12788 # Check whether --enable-bat or --disable-bat was given.
12789 if test "${enable_bat+set}" = set; then
12790   enableval="$enable_bat"
12791   if test x$enableval = xyes; then
12792
12793 cat >>confdefs.h <<\_ACEOF
12794 #define HAVE_BAT 1
12795 _ACEOF
12796
12797     support_bat=yes
12798   fi
12799 fi;
12800
12801 BAT_DIR=
12802 if test x$support_bat = xyes; then
12803   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12804   pkg=$?
12805   if test $pkg = 0; then
12806      BAT_DIR=src/qt-console
12807   else
12808      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12809 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12810    { (exit 1); exit 1; }; }
12811   fi
12812 fi
12813
12814 #
12815 #  If bat is enabled, we need the qwt library
12816 got_qwt=no
12817 QWT_INC=
12818 QWT_LDFLAGS=
12819 if test x$support_bat = xyes; then
12820    echo "$as_me:$LINENO: checking for qwt support" >&5
12821 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12822
12823 # Check whether --with-qwt or --without-qwt was given.
12824 if test "${with_qwt+set}" = set; then
12825   withval="$with_qwt"
12826
12827         case "$with_qwt" in
12828         no)
12829           ;;
12830         yes|*)
12831           if test -f ${with_qwt}/include/qwt.h; then
12832              QWT_INC="${with_qwt}/include"
12833              QWT_LDFLAGS="-L${with_qwt}/lib"
12834           fi
12835           ;;
12836         esac
12837
12838
12839 fi;
12840 #
12841 # Search in standard places, or --with-qwt not specified
12842 #
12843    if test x$QWT_INC = x; then
12844       for root in /usr /usr/local; do
12845          for ver in qwt qwt5; do
12846             if test -f ${root}/include/${ver}/qwt.h; then
12847                QWT_INC="${root}/include/${ver}"
12848                if test -d ${root}/lib64/; then
12849                   QWT_LDFLAGS="-L${root}/lib64"
12850                else
12851                   QWT_LDFLAGS="-L${root}/lib"
12852                fi
12853                got_qwt=yes
12854                break;
12855             fi
12856          done
12857       done
12858    fi
12859    if test x$QWT_INC = x; then
12860       echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6
12862       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12863 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12864    { (exit 1); exit 1; }; }
12865       BAT_DIR=
12866       support_bat=no
12867    else
12868       echo "$as_me:$LINENO: result: yes" >&5
12869 echo "${ECHO_T}yes" >&6
12870    fi
12871 fi
12872
12873
12874
12875
12876
12877
12878 # -------------------------------------------
12879 # bwx-console (default off)
12880 # -------------------------------------------
12881 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12882 if test "${enable_bwx_console+set}" = set; then
12883   enableval="$enable_bwx_console"
12884   if test x$enableval = xyes; then
12885     support_wx_console=yes
12886   fi
12887 fi;
12888
12889 WX_DIR=
12890 if test x$support_wx_console = xyes; then
12891   abc=`$WXCONFIG $WXFLAGS --cppflags`
12892   pkg=$?
12893   if test $pkg = 0; then
12894      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12895      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12896      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12897
12898
12899
12900      WX_DIR=src/wx-console
12901   else
12902      echo " "
12903      echo "wx-config program not found. bwx-console disabled."
12904      echo " "
12905      support_wx_console=no
12906   fi
12907 fi
12908
12909
12910
12911 # -------------------------------------------
12912 # tray-monitor (default off)
12913 # -------------------------------------------
12914 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12915 if test "${enable_tray_monitor+set}" = set; then
12916   enableval="$enable_tray_monitor"
12917   if test x$enableval = xyes; then
12918     support_tray_monitor=yes
12919   fi
12920 fi;
12921
12922 TRAY_MONITOR_DIR=
12923 if test x$support_tray_monitor = xyes; then
12924   abc=`$PKGCONFIG --exists gtk+-2.0`
12925   pkg=$?
12926   if test $pkg = 0; then
12927      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12928      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12929
12930
12931      TRAY_MONITOR_DIR=src/tray-monitor
12932      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12933      pkg=$?
12934      if test $pkg = 0; then
12935      cat >>confdefs.h <<\_ACEOF
12936 #define HAVE_GTK_2_4 1
12937 _ACEOF
12938
12939      fi
12940   fi
12941 fi
12942
12943
12944 # -------------------------------------------
12945 # smartalloc (default off)
12946 # -------------------------------------------
12947 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12948 if test "${enable_smartalloc+set}" = set; then
12949   enableval="$enable_smartalloc"
12950   if test x$enableval = xno; then
12951     support_smartalloc=no
12952   fi
12953 fi;
12954
12955 if test x$support_smartalloc = xyes; then
12956    cat >>confdefs.h <<\_ACEOF
12957 #define SMARTALLOC 1
12958 _ACEOF
12959
12960 fi
12961
12962 # -------------------------------------------
12963 # static-tools (default off)
12964 # -------------------------------------------
12965 # Check whether --enable-static-tools or --disable-static-tools was given.
12966 if test "${enable_static_tools+set}" = set; then
12967   enableval="$enable_static_tools"
12968   if test x$enableval = xyes; then
12969      support_static_tools=yes
12970    fi
12971 fi;
12972
12973 TTOOL_LDFLAGS=
12974 if test x$support_static_tools = xyes; then
12975    TTOOL_LDFLAGS="-static"
12976 fi
12977
12978
12979 # -------------------------------------------
12980 # static-fd    (default off)
12981 # -------------------------------------------
12982 # Check whether --enable-static-fd or --disable-static-fd was given.
12983 if test "${enable_static_fd+set}" = set; then
12984   enableval="$enable_static_fd"
12985   if test x$enableval = xyes; then
12986      support_static_fd=yes
12987    fi
12988 fi;
12989
12990 STATIC_FD=
12991 if test x$support_static_fd = xyes; then
12992    STATIC_FD="static-bacula-fd"
12993 fi
12994
12995
12996 # -------------------------------------------
12997 # static-sd    (default off)
12998 # -------------------------------------------
12999 # Check whether --enable-static-sd or --disable-static-sd was given.
13000 if test "${enable_static_sd+set}" = set; then
13001   enableval="$enable_static_sd"
13002   if test x$enableval = xyes; then
13003      support_static_sd=yes
13004    fi
13005 fi;
13006
13007 STATIC_SD=
13008 if test x$support_static_sd = xyes; then
13009    STATIC_SD="static-bacula-sd"
13010 fi
13011
13012
13013 # -------------------------------------------
13014 # static-dir   (default off)
13015 # -------------------------------------------
13016 # Check whether --enable-static-dir or --disable-static-dir was given.
13017 if test "${enable_static_dir+set}" = set; then
13018   enableval="$enable_static_dir"
13019   if test x$enableval = xyes; then
13020      support_static_dir=yes
13021    fi
13022 fi;
13023
13024 STATIC_DIR=
13025 if test x$support_static_dir = xyes; then
13026    STATIC_DIR="static-bacula-dir"
13027 fi
13028
13029
13030 # -------------------------------------------
13031 # static-cons  (default off)
13032 # -------------------------------------------
13033 # Check whether --enable-static-cons or --disable-static-cons was given.
13034 if test "${enable_static_cons+set}" = set; then
13035   enableval="$enable_static_cons"
13036   if test x$enableval = xyes; then
13037      support_static_cons=yes
13038    fi
13039 fi;
13040
13041 STATIC_CONS=
13042 STATIC_GNOME_CONS=
13043 STATIC_WX_CONS=
13044 if test x$support_static_cons = xyes; then
13045    STATIC_CONS="static-bconsole"
13046    STATIC_GNOME_CONS="static-bgnome-console"
13047    STATIC_WX_CONS="static-bwx-console"
13048 fi
13049
13050
13051
13052
13053 # -------------------------------------------
13054 # client_only  (default off)
13055 # -------------------------------------------
13056 # Check whether --enable-client-only or --disable-client-only was given.
13057 if test "${enable_client_only+set}" = set; then
13058   enableval="$enable_client_only"
13059   if test x$enableval = xyes; then
13060       build_client_only=yes
13061       db_type=None
13062       DB_TYPE=none
13063    fi
13064 fi;
13065 if test x$build_client_only = xno; then
13066    ALL_DIRS="subdirs"
13067 else
13068    ALL_DIRS=""
13069 fi
13070
13071
13072 # -------------------------------------------
13073 # director  (default on)
13074 # -------------------------------------------
13075 # Check whether --enable-build-dird or --disable-build-dird was given.
13076 if test "${enable_build_dird+set}" = set; then
13077   enableval="$enable_build_dird"
13078   if test x$enableval = xno; then
13079       build_dird=no
13080    fi
13081 fi;
13082 if test x$build_dird = xyes; then
13083    DIRD_DIR="src/dird"
13084    DIR_TOOLS="DIRTOOLS"
13085 else
13086    DIRD_DIR=""
13087    DIR_TOOLS="NODIRTOOLS"
13088 fi
13089
13090
13091
13092 # -------------------------------------------
13093 # stored  (default on)
13094 # -------------------------------------------
13095 # Check whether --enable-build-stored or --disable-build-stored was given.
13096 if test "${enable_build_stored+set}" = set; then
13097   enableval="$enable_build_stored"
13098   if test x$enableval = xno; then
13099       build_stored=no
13100    fi
13101 fi;
13102 if test x$build_stored = xyes; then
13103    STORED_DIR="src/stored"
13104 else
13105    STORED_DIR=""
13106 fi
13107
13108
13109 # ---------------------------------------------------
13110 # Check for conio (Bacula readline substitute)(
13111 # ---------------------------------------------------
13112 # this allows you to turn it completely off
13113 # Check whether --enable-conio or --disable-conio was given.
13114 if test "${enable_conio+set}" = set; then
13115   enableval="$enable_conio"
13116   if test x$enableval = xno; then
13117      support_conio=no
13118   fi
13119
13120 fi;
13121
13122
13123 # ---------------------------------------------------
13124 # Check for IPv6 support
13125 # ---------------------------------------------------
13126 # this allows you to turn it completely off
13127 support_ipv6=yes
13128 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13129 if test "${enable_ipv6+set}" = set; then
13130   enableval="$enable_ipv6"
13131   if test x$enableval = xno; then
13132      support_ipv6=no
13133   fi
13134
13135 fi;
13136
13137 if test x$support_ipv6 = xyes; then
13138     cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144  #include <sys/types.h>
13145 #include <sys/socket.h>
13146 #include <netinet/in.h>
13147 int
13148 main ()
13149 {
13150 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13151   ;
13152   return 0;
13153 }
13154 _ACEOF
13155 rm -f conftest.$ac_objext conftest$ac_exeext
13156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13157   (eval $ac_link) 2>conftest.er1
13158   ac_status=$?
13159   grep -v '^ *+' conftest.er1 >conftest.err
13160   rm -f conftest.er1
13161   cat conftest.err >&5
13162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163   (exit $ac_status); } &&
13164          { ac_try='test -z "$ac_c_werror_flag"
13165                          || test ! -s conftest.err'
13166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13167   (eval $ac_try) 2>&5
13168   ac_status=$?
13169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170   (exit $ac_status); }; } &&
13171          { ac_try='test -s conftest$ac_exeext'
13172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173   (eval $ac_try) 2>&5
13174   ac_status=$?
13175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176   (exit $ac_status); }; }; then
13177   support_ipv6=yes
13178 else
13179   echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13181
13182 support_ipv6=no
13183 fi
13184 rm -f conftest.err conftest.$ac_objext \
13185       conftest$ac_exeext conftest.$ac_ext
13186 fi
13187
13188 if test x$support_ipv6 = xyes; then
13189
13190 cat >>confdefs.h <<\_ACEOF
13191 #define HAVE_IPV6 1
13192 _ACEOF
13193
13194 fi
13195
13196
13197
13198 got_conio="no"
13199 if test x$support_conio = xyes; then
13200    if test "${ac_cv_header_termcap_h+set}" = set; then
13201   echo "$as_me:$LINENO: checking for termcap.h" >&5
13202 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13203 if test "${ac_cv_header_termcap_h+set}" = set; then
13204   echo $ECHO_N "(cached) $ECHO_C" >&6
13205 fi
13206 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13207 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13208 else
13209   # Is the header compilable?
13210 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13211 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13213 /* confdefs.h.  */
13214 _ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h.  */
13218 $ac_includes_default
13219 #include <termcap.h>
13220 _ACEOF
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223   (eval $ac_compile) 2>conftest.er1
13224   ac_status=$?
13225   grep -v '^ *+' conftest.er1 >conftest.err
13226   rm -f conftest.er1
13227   cat conftest.err >&5
13228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229   (exit $ac_status); } &&
13230          { ac_try='test -z "$ac_c_werror_flag"
13231                          || test ! -s conftest.err'
13232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13233   (eval $ac_try) 2>&5
13234   ac_status=$?
13235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236   (exit $ac_status); }; } &&
13237          { ac_try='test -s conftest.$ac_objext'
13238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13239   (eval $ac_try) 2>&5
13240   ac_status=$?
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); }; }; then
13243   ac_header_compiler=yes
13244 else
13245   echo "$as_me: failed program was:" >&5
13246 sed 's/^/| /' conftest.$ac_ext >&5
13247
13248 ac_header_compiler=no
13249 fi
13250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13251 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13252 echo "${ECHO_T}$ac_header_compiler" >&6
13253
13254 # Is the header present?
13255 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13256 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13257 cat >conftest.$ac_ext <<_ACEOF
13258 /* confdefs.h.  */
13259 _ACEOF
13260 cat confdefs.h >>conftest.$ac_ext
13261 cat >>conftest.$ac_ext <<_ACEOF
13262 /* end confdefs.h.  */
13263 #include <termcap.h>
13264 _ACEOF
13265 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13266   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267   ac_status=$?
13268   grep -v '^ *+' conftest.er1 >conftest.err
13269   rm -f conftest.er1
13270   cat conftest.err >&5
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); } >/dev/null; then
13273   if test -s conftest.err; then
13274     ac_cpp_err=$ac_c_preproc_warn_flag
13275     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13276   else
13277     ac_cpp_err=
13278   fi
13279 else
13280   ac_cpp_err=yes
13281 fi
13282 if test -z "$ac_cpp_err"; then
13283   ac_header_preproc=yes
13284 else
13285   echo "$as_me: failed program was:" >&5
13286 sed 's/^/| /' conftest.$ac_ext >&5
13287
13288   ac_header_preproc=no
13289 fi
13290 rm -f conftest.err conftest.$ac_ext
13291 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13292 echo "${ECHO_T}$ac_header_preproc" >&6
13293
13294 # So?  What about this header?
13295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296   yes:no: )
13297     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13298 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13299     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13300 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13301     ac_header_preproc=yes
13302     ;;
13303   no:yes:* )
13304     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13305 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13306     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13307 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13308     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13309 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13310     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13311 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13312     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13313 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13314     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13315 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13316     (
13317       cat <<\_ASBOX
13318 ## ------------------------------------------ ##
13319 ## Report this to the AC_PACKAGE_NAME lists.  ##
13320 ## ------------------------------------------ ##
13321 _ASBOX
13322     ) |
13323       sed "s/^/$as_me: WARNING:     /" >&2
13324     ;;
13325 esac
13326 echo "$as_me:$LINENO: checking for termcap.h" >&5
13327 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13328 if test "${ac_cv_header_termcap_h+set}" = set; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   ac_cv_header_termcap_h=$ac_header_preproc
13332 fi
13333 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13334 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13335
13336 fi
13337 if test $ac_cv_header_termcap_h = yes; then
13338    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13339 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13340 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   ac_check_lib_save_LIBS=$LIBS
13344 LIBS="-ltermcap  $LIBS"
13345 cat >conftest.$ac_ext <<_ACEOF
13346 /* confdefs.h.  */
13347 _ACEOF
13348 cat confdefs.h >>conftest.$ac_ext
13349 cat >>conftest.$ac_ext <<_ACEOF
13350 /* end confdefs.h.  */
13351
13352 /* Override any gcc2 internal prototype to avoid an error.  */
13353 #ifdef __cplusplus
13354 extern "C"
13355 #endif
13356 /* We use char because int might match the return type of a gcc2
13357    builtin and then its argument prototype would still apply.  */
13358 char tgetent ();
13359 int
13360 main ()
13361 {
13362 tgetent ();
13363   ;
13364   return 0;
13365 }
13366 _ACEOF
13367 rm -f conftest.$ac_objext conftest$ac_exeext
13368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13369   (eval $ac_link) 2>conftest.er1
13370   ac_status=$?
13371   grep -v '^ *+' conftest.er1 >conftest.err
13372   rm -f conftest.er1
13373   cat conftest.err >&5
13374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375   (exit $ac_status); } &&
13376          { ac_try='test -z "$ac_c_werror_flag"
13377                          || test ! -s conftest.err'
13378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379   (eval $ac_try) 2>&5
13380   ac_status=$?
13381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382   (exit $ac_status); }; } &&
13383          { ac_try='test -s conftest$ac_exeext'
13384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385   (eval $ac_try) 2>&5
13386   ac_status=$?
13387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388   (exit $ac_status); }; }; then
13389   ac_cv_lib_termcap_tgetent=yes
13390 else
13391   echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13393
13394 ac_cv_lib_termcap_tgetent=no
13395 fi
13396 rm -f conftest.err conftest.$ac_objext \
13397       conftest$ac_exeext conftest.$ac_ext
13398 LIBS=$ac_check_lib_save_LIBS
13399 fi
13400 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13401 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13402 if test $ac_cv_lib_termcap_tgetent = yes; then
13403    CONS_LIBS="-ltermcap"
13404          CONS_OBJ="conio.o"
13405          CONS_SRC="conio.c"
13406          got_conio="yes"
13407          support_readline=no
13408
13409 cat >>confdefs.h <<\_ACEOF
13410 #define HAVE_CONIO 1
13411 _ACEOF
13412
13413
13414 else
13415    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13416 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13417 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13418   echo $ECHO_N "(cached) $ECHO_C" >&6
13419 else
13420   ac_check_lib_save_LIBS=$LIBS
13421 LIBS="-lncurses  $LIBS"
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h.  */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h.  */
13428
13429 /* Override any gcc2 internal prototype to avoid an error.  */
13430 #ifdef __cplusplus
13431 extern "C"
13432 #endif
13433 /* We use char because int might match the return type of a gcc2
13434    builtin and then its argument prototype would still apply.  */
13435 char tgetent ();
13436 int
13437 main ()
13438 {
13439 tgetent ();
13440   ;
13441   return 0;
13442 }
13443 _ACEOF
13444 rm -f conftest.$ac_objext conftest$ac_exeext
13445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13446   (eval $ac_link) 2>conftest.er1
13447   ac_status=$?
13448   grep -v '^ *+' conftest.er1 >conftest.err
13449   rm -f conftest.er1
13450   cat conftest.err >&5
13451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452   (exit $ac_status); } &&
13453          { ac_try='test -z "$ac_c_werror_flag"
13454                          || test ! -s conftest.err'
13455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456   (eval $ac_try) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; } &&
13460          { ac_try='test -s conftest$ac_exeext'
13461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462   (eval $ac_try) 2>&5
13463   ac_status=$?
13464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465   (exit $ac_status); }; }; then
13466   ac_cv_lib_ncurses_tgetent=yes
13467 else
13468   echo "$as_me: failed program was:" >&5
13469 sed 's/^/| /' conftest.$ac_ext >&5
13470
13471 ac_cv_lib_ncurses_tgetent=no
13472 fi
13473 rm -f conftest.err conftest.$ac_objext \
13474       conftest$ac_exeext conftest.$ac_ext
13475 LIBS=$ac_check_lib_save_LIBS
13476 fi
13477 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13478 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13479 if test $ac_cv_lib_ncurses_tgetent = yes; then
13480    CONS_LIBS="-lncurses"
13481            CONS_OBJ="conio.o"
13482            CONS_SRC="conio.c"
13483            got_conio="yes"
13484            support_readline=no
13485
13486 cat >>confdefs.h <<\_ACEOF
13487 #define HAVE_CONIO 1
13488 _ACEOF
13489
13490
13491 fi
13492
13493
13494 fi
13495
13496
13497 else
13498
13499
13500 for ac_header in curses.h
13501 do
13502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13503 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13504   echo "$as_me:$LINENO: checking for $ac_header" >&5
13505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13507   echo $ECHO_N "(cached) $ECHO_C" >&6
13508 fi
13509 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13510 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13511 else
13512   # Is the header compilable?
13513 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13515 cat >conftest.$ac_ext <<_ACEOF
13516 /* confdefs.h.  */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h.  */
13521 $ac_includes_default
13522 #include <$ac_header>
13523 _ACEOF
13524 rm -f conftest.$ac_objext
13525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13526   (eval $ac_compile) 2>conftest.er1
13527   ac_status=$?
13528   grep -v '^ *+' conftest.er1 >conftest.err
13529   rm -f conftest.er1
13530   cat conftest.err >&5
13531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532   (exit $ac_status); } &&
13533          { ac_try='test -z "$ac_c_werror_flag"
13534                          || test ! -s conftest.err'
13535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13536   (eval $ac_try) 2>&5
13537   ac_status=$?
13538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539   (exit $ac_status); }; } &&
13540          { ac_try='test -s conftest.$ac_objext'
13541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542   (eval $ac_try) 2>&5
13543   ac_status=$?
13544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545   (exit $ac_status); }; }; then
13546   ac_header_compiler=yes
13547 else
13548   echo "$as_me: failed program was:" >&5
13549 sed 's/^/| /' conftest.$ac_ext >&5
13550
13551 ac_header_compiler=no
13552 fi
13553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13554 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13555 echo "${ECHO_T}$ac_header_compiler" >&6
13556
13557 # Is the header present?
13558 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13559 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h.  */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h.  */
13566 #include <$ac_header>
13567 _ACEOF
13568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13569   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13570   ac_status=$?
13571   grep -v '^ *+' conftest.er1 >conftest.err
13572   rm -f conftest.er1
13573   cat conftest.err >&5
13574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575   (exit $ac_status); } >/dev/null; then
13576   if test -s conftest.err; then
13577     ac_cpp_err=$ac_c_preproc_warn_flag
13578     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13579   else
13580     ac_cpp_err=
13581   fi
13582 else
13583   ac_cpp_err=yes
13584 fi
13585 if test -z "$ac_cpp_err"; then
13586   ac_header_preproc=yes
13587 else
13588   echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591   ac_header_preproc=no
13592 fi
13593 rm -f conftest.err conftest.$ac_ext
13594 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13595 echo "${ECHO_T}$ac_header_preproc" >&6
13596
13597 # So?  What about this header?
13598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13599   yes:no: )
13600     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13604     ac_header_preproc=yes
13605     ;;
13606   no:yes:* )
13607     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13609     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13610 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13611     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13613     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13614 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13617     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13619     (
13620       cat <<\_ASBOX
13621 ## ------------------------------------------ ##
13622 ## Report this to the AC_PACKAGE_NAME lists.  ##
13623 ## ------------------------------------------ ##
13624 _ASBOX
13625     ) |
13626       sed "s/^/$as_me: WARNING:     /" >&2
13627     ;;
13628 esac
13629 echo "$as_me:$LINENO: checking for $ac_header" >&5
13630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13631 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13632   echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634   eval "$as_ac_Header=\$ac_header_preproc"
13635 fi
13636 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13637 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13638
13639 fi
13640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13641   cat >>confdefs.h <<_ACEOF
13642 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13643 _ACEOF
13644
13645 fi
13646
13647 done
13648
13649          echo "$as_me:$LINENO: checking for term.h" >&5
13650 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13651 if test "${ac_cv_header_term_h+set}" = set; then
13652   echo $ECHO_N "(cached) $ECHO_C" >&6
13653 else
13654   cat >conftest.$ac_ext <<_ACEOF
13655 /* confdefs.h.  */
13656 _ACEOF
13657 cat confdefs.h >>conftest.$ac_ext
13658 cat >>conftest.$ac_ext <<_ACEOF
13659 /* end confdefs.h.  */
13660 #if HAVE_CURSES_H
13661 #include <curses.h>
13662 #endif
13663
13664
13665 #include <term.h>
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13669   (eval $ac_compile) 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } &&
13676          { ac_try='test -z "$ac_c_werror_flag"
13677                          || test ! -s conftest.err'
13678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679   (eval $ac_try) 2>&5
13680   ac_status=$?
13681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682   (exit $ac_status); }; } &&
13683          { ac_try='test -s conftest.$ac_objext'
13684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685   (eval $ac_try) 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   ac_cv_header_term_h=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694 ac_cv_header_term_h=no
13695 fi
13696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13697 fi
13698 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13699 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13700 if test $ac_cv_header_term_h = yes; then
13701    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13702 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13703 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13704   echo $ECHO_N "(cached) $ECHO_C" >&6
13705 else
13706   ac_check_lib_save_LIBS=$LIBS
13707 LIBS="-lcurses  $LIBS"
13708 cat >conftest.$ac_ext <<_ACEOF
13709 /* confdefs.h.  */
13710 _ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h.  */
13714
13715 /* Override any gcc2 internal prototype to avoid an error.  */
13716 #ifdef __cplusplus
13717 extern "C"
13718 #endif
13719 /* We use char because int might match the return type of a gcc2
13720    builtin and then its argument prototype would still apply.  */
13721 char tgetent ();
13722 int
13723 main ()
13724 {
13725 tgetent ();
13726   ;
13727   return 0;
13728 }
13729 _ACEOF
13730 rm -f conftest.$ac_objext conftest$ac_exeext
13731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13732   (eval $ac_link) 2>conftest.er1
13733   ac_status=$?
13734   grep -v '^ *+' conftest.er1 >conftest.err
13735   rm -f conftest.er1
13736   cat conftest.err >&5
13737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738   (exit $ac_status); } &&
13739          { ac_try='test -z "$ac_c_werror_flag"
13740                          || test ! -s conftest.err'
13741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13742   (eval $ac_try) 2>&5
13743   ac_status=$?
13744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13745   (exit $ac_status); }; } &&
13746          { ac_try='test -s conftest$ac_exeext'
13747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13748   (eval $ac_try) 2>&5
13749   ac_status=$?
13750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751   (exit $ac_status); }; }; then
13752   ac_cv_lib_curses_tgetent=yes
13753 else
13754   echo "$as_me: failed program was:" >&5
13755 sed 's/^/| /' conftest.$ac_ext >&5
13756
13757 ac_cv_lib_curses_tgetent=no
13758 fi
13759 rm -f conftest.err conftest.$ac_objext \
13760       conftest$ac_exeext conftest.$ac_ext
13761 LIBS=$ac_check_lib_save_LIBS
13762 fi
13763 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13764 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13765 if test $ac_cv_lib_curses_tgetent = yes; then
13766    CONS_LIBS="-lcurses"
13767                    CONS_OBJ="conio.o"
13768                    CONS_SRC="conio.c"
13769                    got_conio="yes"
13770                    support_readline=no
13771
13772 cat >>confdefs.h <<\_ACEOF
13773 #define HAVE_CONIO 1
13774 _ACEOF
13775
13776
13777 fi
13778
13779
13780 else
13781    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13782 fi
13783
13784
13785
13786 fi
13787
13788
13789 fi
13790
13791
13792 # ---------------------------------------------------
13793 # Check for readline support/directory (default off)
13794 # ---------------------------------------------------
13795 # this allows you to turn it completely off
13796 # Check whether --enable-readline or --disable-readline was given.
13797 if test "${enable_readline+set}" = set; then
13798   enableval="$enable_readline"
13799   if test x$enableval = xno; then
13800     support_readline=no
13801   fi
13802 fi;
13803
13804 got_readline="no"
13805 READLINE_SRC=
13806 if test x$support_readline = xyes; then
13807
13808 # Check whether --with-readline or --without-readline was given.
13809 if test "${with_readline+set}" = set; then
13810   withval="$with_readline"
13811
13812         case "$with_readline" in
13813         no) : ;;
13814         yes|*)
13815           if test -f ${with_readline}/readline.h; then
13816              CONS_INC="-I${with_readline}"
13817              CONS_LDFLAGS="-L$with_readline"
13818           elif test -f ${with_readline}/include/readline/readline.h; then
13819              CONS_INC="-I${with_readline}/include/readline"
13820              CONS_LDFLAGS="-L${with_readline}/lib"
13821              with_readline="${with_readline}/include/readline"
13822           else
13823              with_readline="/usr/include/readline"
13824           fi
13825           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13827   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13828 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13829 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13830   echo $ECHO_N "(cached) $ECHO_C" >&6
13831 fi
13832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13833 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13834 else
13835   # Is the header compilable?
13836 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13837 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13838 cat >conftest.$ac_ext <<_ACEOF
13839 /* confdefs.h.  */
13840 _ACEOF
13841 cat confdefs.h >>conftest.$ac_ext
13842 cat >>conftest.$ac_ext <<_ACEOF
13843 /* end confdefs.h.  */
13844 $ac_includes_default
13845 #include <${with_readline}/readline.h>
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13849   (eval $ac_compile) 2>conftest.er1
13850   ac_status=$?
13851   grep -v '^ *+' conftest.er1 >conftest.err
13852   rm -f conftest.er1
13853   cat conftest.err >&5
13854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855   (exit $ac_status); } &&
13856          { ac_try='test -z "$ac_c_werror_flag"
13857                          || test ! -s conftest.err'
13858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859   (eval $ac_try) 2>&5
13860   ac_status=$?
13861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862   (exit $ac_status); }; } &&
13863          { ac_try='test -s conftest.$ac_objext'
13864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13865   (eval $ac_try) 2>&5
13866   ac_status=$?
13867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868   (exit $ac_status); }; }; then
13869   ac_header_compiler=yes
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 ac_header_compiler=no
13875 fi
13876 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13877 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13878 echo "${ECHO_T}$ac_header_compiler" >&6
13879
13880 # Is the header present?
13881 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13882 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13883 cat >conftest.$ac_ext <<_ACEOF
13884 /* confdefs.h.  */
13885 _ACEOF
13886 cat confdefs.h >>conftest.$ac_ext
13887 cat >>conftest.$ac_ext <<_ACEOF
13888 /* end confdefs.h.  */
13889 #include <${with_readline}/readline.h>
13890 _ACEOF
13891 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13892   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } >/dev/null; then
13899   if test -s conftest.err; then
13900     ac_cpp_err=$ac_c_preproc_warn_flag
13901     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13902   else
13903     ac_cpp_err=
13904   fi
13905 else
13906   ac_cpp_err=yes
13907 fi
13908 if test -z "$ac_cpp_err"; then
13909   ac_header_preproc=yes
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914   ac_header_preproc=no
13915 fi
13916 rm -f conftest.err conftest.$ac_ext
13917 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13918 echo "${ECHO_T}$ac_header_preproc" >&6
13919
13920 # So?  What about this header?
13921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13922   yes:no: )
13923     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13924 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13925     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13926 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13927     ac_header_preproc=yes
13928     ;;
13929   no:yes:* )
13930     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13931 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13932     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13933 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13934     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13935 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13936     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13937 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13938     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13939 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13940     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13941 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13942     (
13943       cat <<\_ASBOX
13944 ## ------------------------------------------ ##
13945 ## Report this to the AC_PACKAGE_NAME lists.  ##
13946 ## ------------------------------------------ ##
13947 _ASBOX
13948     ) |
13949       sed "s/^/$as_me: WARNING:     /" >&2
13950     ;;
13951 esac
13952 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13953 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13954 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13955   echo $ECHO_N "(cached) $ECHO_C" >&6
13956 else
13957   eval "$as_ac_Header=\$ac_header_preproc"
13958 fi
13959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13961
13962 fi
13963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13964    cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_READLINE 1
13966 _ACEOF
13967
13968                CONS_LIBS="-lreadline -lhistory -ltermcap"
13969                got_readline="yes"
13970
13971 else
13972    echo " "
13973                echo "readline.h not found. readline turned off ..."
13974                echo " "
13975
13976
13977 fi
13978
13979
13980           ;;
13981         esac
13982
13983 else
13984
13985        # check for standard readline library
13986        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13987   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13988 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13989 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13990   echo $ECHO_N "(cached) $ECHO_C" >&6
13991 fi
13992 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13993 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13994 else
13995   # Is the header compilable?
13996 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13997 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13998 cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h.  */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h.  */
14004 $ac_includes_default
14005 #include </usr/include/readline/readline.h>
14006 _ACEOF
14007 rm -f conftest.$ac_objext
14008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14009   (eval $ac_compile) 2>conftest.er1
14010   ac_status=$?
14011   grep -v '^ *+' conftest.er1 >conftest.err
14012   rm -f conftest.er1
14013   cat conftest.err >&5
14014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015   (exit $ac_status); } &&
14016          { ac_try='test -z "$ac_c_werror_flag"
14017                          || test ! -s conftest.err'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; } &&
14023          { ac_try='test -s conftest.$ac_objext'
14024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025   (eval $ac_try) 2>&5
14026   ac_status=$?
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); }; }; then
14029   ac_header_compiler=yes
14030 else
14031   echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14033
14034 ac_header_compiler=no
14035 fi
14036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14038 echo "${ECHO_T}$ac_header_compiler" >&6
14039
14040 # Is the header present?
14041 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14042 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h.  */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h.  */
14049 #include </usr/include/readline/readline.h>
14050 _ACEOF
14051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14053   ac_status=$?
14054   grep -v '^ *+' conftest.er1 >conftest.err
14055   rm -f conftest.er1
14056   cat conftest.err >&5
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); } >/dev/null; then
14059   if test -s conftest.err; then
14060     ac_cpp_err=$ac_c_preproc_warn_flag
14061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14062   else
14063     ac_cpp_err=
14064   fi
14065 else
14066   ac_cpp_err=yes
14067 fi
14068 if test -z "$ac_cpp_err"; then
14069   ac_header_preproc=yes
14070 else
14071   echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14073
14074   ac_header_preproc=no
14075 fi
14076 rm -f conftest.err conftest.$ac_ext
14077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14078 echo "${ECHO_T}$ac_header_preproc" >&6
14079
14080 # So?  What about this header?
14081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14082   yes:no: )
14083     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14084 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14085     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14086 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14087     ac_header_preproc=yes
14088     ;;
14089   no:yes:* )
14090     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14091 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14092     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14093 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14094     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14095 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14096     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14097 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14098     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14099 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14100     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14101 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14102     (
14103       cat <<\_ASBOX
14104 ## ------------------------------------------ ##
14105 ## Report this to the AC_PACKAGE_NAME lists.  ##
14106 ## ------------------------------------------ ##
14107 _ASBOX
14108     ) |
14109       sed "s/^/$as_me: WARNING:     /" >&2
14110     ;;
14111 esac
14112 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14113 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14114 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14115   echo $ECHO_N "(cached) $ECHO_C" >&6
14116 else
14117   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14118 fi
14119 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14120 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14121
14122 fi
14123 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14124    cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_READLINE 1
14126 _ACEOF
14127
14128            got_readline="yes"
14129            CONS_INC="-I/usr/include/readline"
14130            CONS_LIBS="-lreadline -ltermcap"
14131
14132 else
14133
14134            # Did not find standard library, so try Bacula's default
14135             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14137   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14138 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 fi
14142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14144 else
14145   # Is the header compilable?
14146 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14147 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 /* confdefs.h.  */
14150 _ACEOF
14151 cat confdefs.h >>conftest.$ac_ext
14152 cat >>conftest.$ac_ext <<_ACEOF
14153 /* end confdefs.h.  */
14154 $ac_includes_default
14155 #include <${TOP_DIR}/depkgs/readline/readline.h>
14156 _ACEOF
14157 rm -f conftest.$ac_objext
14158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14159   (eval $ac_compile) 2>conftest.er1
14160   ac_status=$?
14161   grep -v '^ *+' conftest.er1 >conftest.err
14162   rm -f conftest.er1
14163   cat conftest.err >&5
14164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165   (exit $ac_status); } &&
14166          { ac_try='test -z "$ac_c_werror_flag"
14167                          || test ! -s conftest.err'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; } &&
14173          { ac_try='test -s conftest.$ac_objext'
14174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14175   (eval $ac_try) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; }; then
14179   ac_header_compiler=yes
14180 else
14181   echo "$as_me: failed program was:" >&5
14182 sed 's/^/| /' conftest.$ac_ext >&5
14183
14184 ac_header_compiler=no
14185 fi
14186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14188 echo "${ECHO_T}$ac_header_compiler" >&6
14189
14190 # Is the header present?
14191 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14192 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14193 cat >conftest.$ac_ext <<_ACEOF
14194 /* confdefs.h.  */
14195 _ACEOF
14196 cat confdefs.h >>conftest.$ac_ext
14197 cat >>conftest.$ac_ext <<_ACEOF
14198 /* end confdefs.h.  */
14199 #include <${TOP_DIR}/depkgs/readline/readline.h>
14200 _ACEOF
14201 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14202   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } >/dev/null; then
14209   if test -s conftest.err; then
14210     ac_cpp_err=$ac_c_preproc_warn_flag
14211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14212   else
14213     ac_cpp_err=
14214   fi
14215 else
14216   ac_cpp_err=yes
14217 fi
14218 if test -z "$ac_cpp_err"; then
14219   ac_header_preproc=yes
14220 else
14221   echo "$as_me: failed program was:" >&5
14222 sed 's/^/| /' conftest.$ac_ext >&5
14223
14224   ac_header_preproc=no
14225 fi
14226 rm -f conftest.err conftest.$ac_ext
14227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14228 echo "${ECHO_T}$ac_header_preproc" >&6
14229
14230 # So?  What about this header?
14231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14232   yes:no: )
14233     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14234 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14235     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14236 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14237     ac_header_preproc=yes
14238     ;;
14239   no:yes:* )
14240     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14241 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14242     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14243 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14244     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14246     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14248     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14250     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14252     (
14253       cat <<\_ASBOX
14254 ## ------------------------------------------ ##
14255 ## Report this to the AC_PACKAGE_NAME lists.  ##
14256 ## ------------------------------------------ ##
14257 _ASBOX
14258     ) |
14259       sed "s/^/$as_me: WARNING:     /" >&2
14260     ;;
14261 esac
14262 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14263 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14265   echo $ECHO_N "(cached) $ECHO_C" >&6
14266 else
14267   eval "$as_ac_Header=\$ac_header_preproc"
14268 fi
14269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14270 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14271
14272 fi
14273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14274    cat >>confdefs.h <<\_ACEOF
14275 #define HAVE_READLINE 1
14276 _ACEOF
14277
14278                  got_readline="yes"
14279                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14280                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14281                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14282                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14283
14284 else
14285    echo " "
14286                 echo "readline.h not found. readline turned off ..."
14287                 echo " "
14288
14289
14290 fi
14291
14292
14293
14294
14295 fi
14296
14297
14298
14299
14300 fi;
14301 fi
14302
14303
14304
14305
14306
14307
14308
14309
14310
14311
14312 # Minimal stuff for readline Makefile configuration
14313 MAKE_SHELL=/bin/sh
14314
14315 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14316 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14317 if test "${ac_cv_header_stat_broken+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 #include <sys/types.h>
14327 #include <sys/stat.h>
14328
14329 #if defined(S_ISBLK) && defined(S_IFDIR)
14330 # if S_ISBLK (S_IFDIR)
14331 You lose.
14332 # endif
14333 #endif
14334
14335 #if defined(S_ISBLK) && defined(S_IFCHR)
14336 # if S_ISBLK (S_IFCHR)
14337 You lose.
14338 # endif
14339 #endif
14340
14341 #if defined(S_ISLNK) && defined(S_IFREG)
14342 # if S_ISLNK (S_IFREG)
14343 You lose.
14344 # endif
14345 #endif
14346
14347 #if defined(S_ISSOCK) && defined(S_IFREG)
14348 # if S_ISSOCK (S_IFREG)
14349 You lose.
14350 # endif
14351 #endif
14352
14353 _ACEOF
14354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14355   $EGREP "You lose" >/dev/null 2>&1; then
14356   ac_cv_header_stat_broken=yes
14357 else
14358   ac_cv_header_stat_broken=no
14359 fi
14360 rm -f conftest*
14361
14362 fi
14363 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14364 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14365 if test $ac_cv_header_stat_broken = yes; then
14366
14367 cat >>confdefs.h <<\_ACEOF
14368 #define STAT_MACROS_BROKEN 1
14369 _ACEOF
14370
14371 fi
14372
14373
14374
14375
14376
14377
14378 ac_header_dirent=no
14379 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14380   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14381 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14382 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14384   echo $ECHO_N "(cached) $ECHO_C" >&6
14385 else
14386   cat >conftest.$ac_ext <<_ACEOF
14387 /* confdefs.h.  */
14388 _ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h.  */
14392 #include <sys/types.h>
14393 #include <$ac_hdr>
14394
14395 int
14396 main ()
14397 {
14398 if ((DIR *) 0)
14399 return 0;
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14406   (eval $ac_compile) 2>conftest.er1
14407   ac_status=$?
14408   grep -v '^ *+' conftest.er1 >conftest.err
14409   rm -f conftest.er1
14410   cat conftest.err >&5
14411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412   (exit $ac_status); } &&
14413          { ac_try='test -z "$ac_c_werror_flag"
14414                          || test ! -s conftest.err'
14415   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416   (eval $ac_try) 2>&5
14417   ac_status=$?
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); }; } &&
14420          { ac_try='test -s conftest.$ac_objext'
14421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14422   (eval $ac_try) 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; }; then
14426   eval "$as_ac_Header=yes"
14427 else
14428   echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14430
14431 eval "$as_ac_Header=no"
14432 fi
14433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14434 fi
14435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14438   cat >>confdefs.h <<_ACEOF
14439 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14440 _ACEOF
14441
14442 ac_header_dirent=$ac_hdr; break
14443 fi
14444
14445 done
14446 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14447 if test $ac_header_dirent = dirent.h; then
14448   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14449 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14450 if test "${ac_cv_search_opendir+set}" = set; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453   ac_func_search_save_LIBS=$LIBS
14454 ac_cv_search_opendir=no
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h.  */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h.  */
14461
14462 /* Override any gcc2 internal prototype to avoid an error.  */
14463 #ifdef __cplusplus
14464 extern "C"
14465 #endif
14466 /* We use char because int might match the return type of a gcc2
14467    builtin and then its argument prototype would still apply.  */
14468 char opendir ();
14469 int
14470 main ()
14471 {
14472 opendir ();
14473   ;
14474   return 0;
14475 }
14476 _ACEOF
14477 rm -f conftest.$ac_objext conftest$ac_exeext
14478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14479   (eval $ac_link) 2>conftest.er1
14480   ac_status=$?
14481   grep -v '^ *+' conftest.er1 >conftest.err
14482   rm -f conftest.er1
14483   cat conftest.err >&5
14484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485   (exit $ac_status); } &&
14486          { ac_try='test -z "$ac_c_werror_flag"
14487                          || test ! -s conftest.err'
14488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14489   (eval $ac_try) 2>&5
14490   ac_status=$?
14491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492   (exit $ac_status); }; } &&
14493          { ac_try='test -s conftest$ac_exeext'
14494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495   (eval $ac_try) 2>&5
14496   ac_status=$?
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); }; }; then
14499   ac_cv_search_opendir="none required"
14500 else
14501   echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 fi
14505 rm -f conftest.err conftest.$ac_objext \
14506       conftest$ac_exeext conftest.$ac_ext
14507 if test "$ac_cv_search_opendir" = no; then
14508   for ac_lib in dir; do
14509     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14510     cat >conftest.$ac_ext <<_ACEOF
14511 /* confdefs.h.  */
14512 _ACEOF
14513 cat confdefs.h >>conftest.$ac_ext
14514 cat >>conftest.$ac_ext <<_ACEOF
14515 /* end confdefs.h.  */
14516
14517 /* Override any gcc2 internal prototype to avoid an error.  */
14518 #ifdef __cplusplus
14519 extern "C"
14520 #endif
14521 /* We use char because int might match the return type of a gcc2
14522    builtin and then its argument prototype would still apply.  */
14523 char opendir ();
14524 int
14525 main ()
14526 {
14527 opendir ();
14528   ;
14529   return 0;
14530 }
14531 _ACEOF
14532 rm -f conftest.$ac_objext conftest$ac_exeext
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534   (eval $ac_link) 2>conftest.er1
14535   ac_status=$?
14536   grep -v '^ *+' conftest.er1 >conftest.err
14537   rm -f conftest.er1
14538   cat conftest.err >&5
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); } &&
14541          { ac_try='test -z "$ac_c_werror_flag"
14542                          || test ! -s conftest.err'
14543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544   (eval $ac_try) 2>&5
14545   ac_status=$?
14546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547   (exit $ac_status); }; } &&
14548          { ac_try='test -s conftest$ac_exeext'
14549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550   (eval $ac_try) 2>&5
14551   ac_status=$?
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); }; }; then
14554   ac_cv_search_opendir="-l$ac_lib"
14555 break
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 fi
14561 rm -f conftest.err conftest.$ac_objext \
14562       conftest$ac_exeext conftest.$ac_ext
14563   done
14564 fi
14565 LIBS=$ac_func_search_save_LIBS
14566 fi
14567 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14568 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14569 if test "$ac_cv_search_opendir" != no; then
14570   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14571
14572 fi
14573
14574 else
14575   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14576 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14577 if test "${ac_cv_search_opendir+set}" = set; then
14578   echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580   ac_func_search_save_LIBS=$LIBS
14581 ac_cv_search_opendir=no
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h.  */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h.  */
14588
14589 /* Override any gcc2 internal prototype to avoid an error.  */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 /* We use char because int might match the return type of a gcc2
14594    builtin and then its argument prototype would still apply.  */
14595 char opendir ();
14596 int
14597 main ()
14598 {
14599 opendir ();
14600   ;
14601   return 0;
14602 }
14603 _ACEOF
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14606   (eval $ac_link) 2>conftest.er1
14607   ac_status=$?
14608   grep -v '^ *+' conftest.er1 >conftest.err
14609   rm -f conftest.er1
14610   cat conftest.err >&5
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); } &&
14613          { ac_try='test -z "$ac_c_werror_flag"
14614                          || test ! -s conftest.err'
14615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14616   (eval $ac_try) 2>&5
14617   ac_status=$?
14618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619   (exit $ac_status); }; } &&
14620          { ac_try='test -s conftest$ac_exeext'
14621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622   (eval $ac_try) 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; }; then
14626   ac_cv_search_opendir="none required"
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631 fi
14632 rm -f conftest.err conftest.$ac_objext \
14633       conftest$ac_exeext conftest.$ac_ext
14634 if test "$ac_cv_search_opendir" = no; then
14635   for ac_lib in x; do
14636     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14637     cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h.  */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h.  */
14643
14644 /* Override any gcc2 internal prototype to avoid an error.  */
14645 #ifdef __cplusplus
14646 extern "C"
14647 #endif
14648 /* We use char because int might match the return type of a gcc2
14649    builtin and then its argument prototype would still apply.  */
14650 char opendir ();
14651 int
14652 main ()
14653 {
14654 opendir ();
14655   ;
14656   return 0;
14657 }
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14661   (eval $ac_link) 2>conftest.er1
14662   ac_status=$?
14663   grep -v '^ *+' conftest.er1 >conftest.err
14664   rm -f conftest.er1
14665   cat conftest.err >&5
14666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667   (exit $ac_status); } &&
14668          { ac_try='test -z "$ac_c_werror_flag"
14669                          || test ! -s conftest.err'
14670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671   (eval $ac_try) 2>&5
14672   ac_status=$?
14673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674   (exit $ac_status); }; } &&
14675          { ac_try='test -s conftest$ac_exeext'
14676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677   (eval $ac_try) 2>&5
14678   ac_status=$?
14679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680   (exit $ac_status); }; }; then
14681   ac_cv_search_opendir="-l$ac_lib"
14682 break
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 fi
14688 rm -f conftest.err conftest.$ac_objext \
14689       conftest$ac_exeext conftest.$ac_ext
14690   done
14691 fi
14692 LIBS=$ac_func_search_save_LIBS
14693 fi
14694 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14695 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14696 if test "$ac_cv_search_opendir" != no; then
14697   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14698
14699 fi
14700
14701 fi
14702
14703
14704
14705
14706
14707
14708
14709
14710 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14711 do
14712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 echo "$as_me:$LINENO: checking for $ac_func" >&5
14714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14715 if eval "test \"\${$as_ac_var+set}\" = set"; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14725    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14726 #define $ac_func innocuous_$ac_func
14727
14728 /* System header to define __stub macros and hopefully few prototypes,
14729     which can conflict with char $ac_func (); below.
14730     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14731     <limits.h> exists even on freestanding compilers.  */
14732
14733 #ifdef __STDC__
14734 # include <limits.h>
14735 #else
14736 # include <assert.h>
14737 #endif
14738
14739 #undef $ac_func
14740
14741 /* Override any gcc2 internal prototype to avoid an error.  */
14742 #ifdef __cplusplus
14743 extern "C"
14744 {
14745 #endif
14746 /* We use char because int might match the return type of a gcc2
14747    builtin and then its argument prototype would still apply.  */
14748 char $ac_func ();
14749 /* The GNU C library defines this for functions which it implements
14750     to always fail with ENOSYS.  Some functions are actually named
14751     something starting with __ and the normal name is an alias.  */
14752 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14753 choke me
14754 #else
14755 char (*f) () = $ac_func;
14756 #endif
14757 #ifdef __cplusplus
14758 }
14759 #endif
14760
14761 int
14762 main ()
14763 {
14764 return f != $ac_func;
14765   ;
14766   return 0;
14767 }
14768 _ACEOF
14769 rm -f conftest.$ac_objext conftest$ac_exeext
14770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14771   (eval $ac_link) 2>conftest.er1
14772   ac_status=$?
14773   grep -v '^ *+' conftest.er1 >conftest.err
14774   rm -f conftest.er1
14775   cat conftest.err >&5
14776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777   (exit $ac_status); } &&
14778          { ac_try='test -z "$ac_c_werror_flag"
14779                          || test ! -s conftest.err'
14780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781   (eval $ac_try) 2>&5
14782   ac_status=$?
14783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784   (exit $ac_status); }; } &&
14785          { ac_try='test -s conftest$ac_exeext'
14786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14787   (eval $ac_try) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; }; then
14791   eval "$as_ac_var=yes"
14792 else
14793   echo "$as_me: failed program was:" >&5
14794 sed 's/^/| /' conftest.$ac_ext >&5
14795
14796 eval "$as_ac_var=no"
14797 fi
14798 rm -f conftest.err conftest.$ac_objext \
14799       conftest$ac_exeext conftest.$ac_ext
14800 fi
14801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14803 if test `eval echo '${'$as_ac_var'}'` = yes; then
14804   cat >>confdefs.h <<_ACEOF
14805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 _ACEOF
14807
14808 fi
14809 done
14810
14811
14812
14813 for ac_func in nanosleep nl_langinfo
14814 do
14815 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14816 echo "$as_me:$LINENO: checking for $ac_func" >&5
14817 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14818 if eval "test \"\${$as_ac_var+set}\" = set"; then
14819   echo $ECHO_N "(cached) $ECHO_C" >&6
14820 else
14821   cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14829 #define $ac_func innocuous_$ac_func
14830
14831 /* System header to define __stub macros and hopefully few prototypes,
14832     which can conflict with char $ac_func (); below.
14833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14834     <limits.h> exists even on freestanding compilers.  */
14835
14836 #ifdef __STDC__
14837 # include <limits.h>
14838 #else
14839 # include <assert.h>
14840 #endif
14841
14842 #undef $ac_func
14843
14844 /* Override any gcc2 internal prototype to avoid an error.  */
14845 #ifdef __cplusplus
14846 extern "C"
14847 {
14848 #endif
14849 /* We use char because int might match the return type of a gcc2
14850    builtin and then its argument prototype would still apply.  */
14851 char $ac_func ();
14852 /* The GNU C library defines this for functions which it implements
14853     to always fail with ENOSYS.  Some functions are actually named
14854     something starting with __ and the normal name is an alias.  */
14855 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14856 choke me
14857 #else
14858 char (*f) () = $ac_func;
14859 #endif
14860 #ifdef __cplusplus
14861 }
14862 #endif
14863
14864 int
14865 main ()
14866 {
14867 return f != $ac_func;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext conftest$ac_exeext
14873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14874   (eval $ac_link) 2>conftest.er1
14875   ac_status=$?
14876   grep -v '^ *+' conftest.er1 >conftest.err
14877   rm -f conftest.er1
14878   cat conftest.err >&5
14879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880   (exit $ac_status); } &&
14881          { ac_try='test -z "$ac_c_werror_flag"
14882                          || test ! -s conftest.err'
14883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884   (eval $ac_try) 2>&5
14885   ac_status=$?
14886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887   (exit $ac_status); }; } &&
14888          { ac_try='test -s conftest$ac_exeext'
14889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890   (eval $ac_try) 2>&5
14891   ac_status=$?
14892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893   (exit $ac_status); }; }; then
14894   eval "$as_ac_var=yes"
14895 else
14896   echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14898
14899 eval "$as_ac_var=no"
14900 fi
14901 rm -f conftest.err conftest.$ac_objext \
14902       conftest$ac_exeext conftest.$ac_ext
14903 fi
14904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14905 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14906 if test `eval echo '${'$as_ac_var'}'` = yes; then
14907   cat >>confdefs.h <<_ACEOF
14908 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14909 _ACEOF
14910
14911 fi
14912 done
14913
14914
14915 for ac_header in varargs.h
14916 do
14917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14918 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14919   echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14922   echo $ECHO_N "(cached) $ECHO_C" >&6
14923 fi
14924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14925 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14926 else
14927   # Is the header compilable?
14928 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14929 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h.  */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h.  */
14936 $ac_includes_default
14937 #include <$ac_header>
14938 _ACEOF
14939 rm -f conftest.$ac_objext
14940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14941   (eval $ac_compile) 2>conftest.er1
14942   ac_status=$?
14943   grep -v '^ *+' conftest.er1 >conftest.err
14944   rm -f conftest.er1
14945   cat conftest.err >&5
14946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947   (exit $ac_status); } &&
14948          { ac_try='test -z "$ac_c_werror_flag"
14949                          || test ! -s conftest.err'
14950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951   (eval $ac_try) 2>&5
14952   ac_status=$?
14953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954   (exit $ac_status); }; } &&
14955          { ac_try='test -s conftest.$ac_objext'
14956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14957   (eval $ac_try) 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_header_compiler=yes
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966 ac_header_compiler=no
14967 fi
14968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14969 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14970 echo "${ECHO_T}$ac_header_compiler" >&6
14971
14972 # Is the header present?
14973 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14974 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 /* confdefs.h.  */
14977 _ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h.  */
14981 #include <$ac_header>
14982 _ACEOF
14983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14985   ac_status=$?
14986   grep -v '^ *+' conftest.er1 >conftest.err
14987   rm -f conftest.er1
14988   cat conftest.err >&5
14989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990   (exit $ac_status); } >/dev/null; then
14991   if test -s conftest.err; then
14992     ac_cpp_err=$ac_c_preproc_warn_flag
14993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14994   else
14995     ac_cpp_err=
14996   fi
14997 else
14998   ac_cpp_err=yes
14999 fi
15000 if test -z "$ac_cpp_err"; then
15001   ac_header_preproc=yes
15002 else
15003   echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15005
15006   ac_header_preproc=no
15007 fi
15008 rm -f conftest.err conftest.$ac_ext
15009 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15010 echo "${ECHO_T}$ac_header_preproc" >&6
15011
15012 # So?  What about this header?
15013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15014   yes:no: )
15015     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15017     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15019     ac_header_preproc=yes
15020     ;;
15021   no:yes:* )
15022     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15024     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15025 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15026     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15028     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15029 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15030     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15032     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15034     (
15035       cat <<\_ASBOX
15036 ## ------------------------------------------ ##
15037 ## Report this to the AC_PACKAGE_NAME lists.  ##
15038 ## ------------------------------------------ ##
15039 _ASBOX
15040     ) |
15041       sed "s/^/$as_me: WARNING:     /" >&2
15042     ;;
15043 esac
15044 echo "$as_me:$LINENO: checking for $ac_header" >&5
15045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15047   echo $ECHO_N "(cached) $ECHO_C" >&6
15048 else
15049   eval "$as_ac_Header=\$ac_header_preproc"
15050 fi
15051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15053
15054 fi
15055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15056   cat >>confdefs.h <<_ACEOF
15057 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15058 _ACEOF
15059
15060 fi
15061
15062 done
15063
15064
15065 # End of readline/conio stuff
15066 # -----------------------------------------------------------------------
15067
15068 # -----------------------------------------------------------------------
15069 #  Check for Python support
15070 #
15071 echo "$as_me:$LINENO: checking for Python support" >&5
15072 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15073
15074 # Check whether --with-python or --without-python was given.
15075 if test "${with_python+set}" = set; then
15076   withval="$with_python"
15077
15078   PYTHON_INCDIR=
15079   PYTHON_LIBS=
15080   if test "$withval" != "no"; then
15081      if test "$withval" = "yes"; then
15082         for python_root in /usr /usr/local /usr/sfw; do
15083           for ver in python2.2 python2.3 python2.4 python2.5; do
15084              if test -f $python_root/include/${ver}/Python.h; then
15085                 PYTHON_INCDIR=-I$python_root/include/${ver}
15086                 if test -d $python_root/lib64/${ver}/config; then
15087                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15088                 else
15089                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15090                 fi
15091                 break
15092              fi
15093           done
15094         done
15095         if test x$PYTHON_INCDIR = x; then
15096           if test -f $prefix/include/Python.h; then
15097              PYTHON_INCDIR=-I$prefix/include
15098              if test -d $prefix/lib64/config; then
15099                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15100              else
15101                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15102              fi
15103           else
15104            echo "$as_me:$LINENO: result: no" >&5
15105 echo "${ECHO_T}no" >&6
15106            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15107 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15108    { (exit 1); exit 1; }; }
15109           fi
15110         fi
15111      else
15112         if test -f $withval/Python.h; then
15113            PYTHON_INCDIR=-I$withval
15114            PYTHON_LIBS="-L$withval/config -lpython"
15115         elif test -f $withval/include/Python.h; then
15116            PYTHON_INCDIR=-I$withval/include
15117            if test -d $withval/lib64/config; then
15118               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15119            else
15120               PYTHON_LIBS="-L$withval/lib/config -lpython"
15121            fi
15122         elif test -f $withval/include/python/Python.h; then
15123            PYTHON_INCDIR=-I$withval/include/python
15124            if test -d $withval/lib64/python/config; then
15125               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15126            else
15127               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15128            fi
15129         else
15130            echo "$as_me:$LINENO: result: no" >&5
15131 echo "${ECHO_T}no" >&6
15132            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15133 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15134    { (exit 1); exit 1; }; }
15135         fi
15136      fi
15137      cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_PYTHON 1
15139 _ACEOF
15140
15141      echo "$as_me:$LINENO: result: yes" >&5
15142 echo "${ECHO_T}yes" >&6
15143      support_python=yes
15144      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15145 echo "$as_me: checking for more Python libs" >&6;}
15146      saved_LIBS="$LIBS"; LIBS=
15147      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15148 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15149 if test "${ac_cv_search_shm_open+set}" = set; then
15150   echo $ECHO_N "(cached) $ECHO_C" >&6
15151 else
15152   ac_func_search_save_LIBS=$LIBS
15153 ac_cv_search_shm_open=no
15154 cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160
15161 /* Override any gcc2 internal prototype to avoid an error.  */
15162 #ifdef __cplusplus
15163 extern "C"
15164 #endif
15165 /* We use char because int might match the return type of a gcc2
15166    builtin and then its argument prototype would still apply.  */
15167 char shm_open ();
15168 int
15169 main ()
15170 {
15171 shm_open ();
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15178   (eval $ac_link) 2>conftest.er1
15179   ac_status=$?
15180   grep -v '^ *+' conftest.er1 >conftest.err
15181   rm -f conftest.er1
15182   cat conftest.err >&5
15183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184   (exit $ac_status); } &&
15185          { ac_try='test -z "$ac_c_werror_flag"
15186                          || test ! -s conftest.err'
15187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188   (eval $ac_try) 2>&5
15189   ac_status=$?
15190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191   (exit $ac_status); }; } &&
15192          { ac_try='test -s conftest$ac_exeext'
15193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15194   (eval $ac_try) 2>&5
15195   ac_status=$?
15196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197   (exit $ac_status); }; }; then
15198   ac_cv_search_shm_open="none required"
15199 else
15200   echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15202
15203 fi
15204 rm -f conftest.err conftest.$ac_objext \
15205       conftest$ac_exeext conftest.$ac_ext
15206 if test "$ac_cv_search_shm_open" = no; then
15207   for ac_lib in rt; do
15208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15209     cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215
15216 /* Override any gcc2 internal prototype to avoid an error.  */
15217 #ifdef __cplusplus
15218 extern "C"
15219 #endif
15220 /* We use char because int might match the return type of a gcc2
15221    builtin and then its argument prototype would still apply.  */
15222 char shm_open ();
15223 int
15224 main ()
15225 {
15226 shm_open ();
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 rm -f conftest.$ac_objext conftest$ac_exeext
15232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15233   (eval $ac_link) 2>conftest.er1
15234   ac_status=$?
15235   grep -v '^ *+' conftest.er1 >conftest.err
15236   rm -f conftest.er1
15237   cat conftest.err >&5
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); } &&
15240          { ac_try='test -z "$ac_c_werror_flag"
15241                          || test ! -s conftest.err'
15242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15243   (eval $ac_try) 2>&5
15244   ac_status=$?
15245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246   (exit $ac_status); }; } &&
15247          { ac_try='test -s conftest$ac_exeext'
15248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249   (eval $ac_try) 2>&5
15250   ac_status=$?
15251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252   (exit $ac_status); }; }; then
15253   ac_cv_search_shm_open="-l$ac_lib"
15254 break
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259 fi
15260 rm -f conftest.err conftest.$ac_objext \
15261       conftest$ac_exeext conftest.$ac_ext
15262   done
15263 fi
15264 LIBS=$ac_func_search_save_LIBS
15265 fi
15266 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15267 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15268 if test "$ac_cv_search_shm_open" != no; then
15269   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15270
15271 fi
15272
15273
15274 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15275 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15276 if test "${ac_cv_lib_util_openpty+set}" = set; then
15277   echo $ECHO_N "(cached) $ECHO_C" >&6
15278 else
15279   ac_check_lib_save_LIBS=$LIBS
15280 LIBS="-lutil  $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287
15288 /* Override any gcc2 internal prototype to avoid an error.  */
15289 #ifdef __cplusplus
15290 extern "C"
15291 #endif
15292 /* We use char because int might match the return type of a gcc2
15293    builtin and then its argument prototype would still apply.  */
15294 char openpty ();
15295 int
15296 main ()
15297 {
15298 openpty ();
15299   ;
15300   return 0;
15301 }
15302 _ACEOF
15303 rm -f conftest.$ac_objext conftest$ac_exeext
15304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15305   (eval $ac_link) 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } &&
15312          { ac_try='test -z "$ac_c_werror_flag"
15313                          || test ! -s conftest.err'
15314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15315   (eval $ac_try) 2>&5
15316   ac_status=$?
15317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318   (exit $ac_status); }; } &&
15319          { ac_try='test -s conftest$ac_exeext'
15320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321   (eval $ac_try) 2>&5
15322   ac_status=$?
15323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324   (exit $ac_status); }; }; then
15325   ac_cv_lib_util_openpty=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_cv_lib_util_openpty=no
15331 fi
15332 rm -f conftest.err conftest.$ac_objext \
15333       conftest$ac_exeext conftest.$ac_ext
15334 LIBS=$ac_check_lib_save_LIBS
15335 fi
15336 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15337 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15338 if test $ac_cv_lib_util_openpty = yes; then
15339   cat >>confdefs.h <<_ACEOF
15340 #define HAVE_LIBUTIL 1
15341 _ACEOF
15342
15343   LIBS="-lutil $LIBS"
15344
15345 fi
15346
15347      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15348      LIBS="$saved_LIBS"
15349   else
15350      echo "$as_me:$LINENO: result: no" >&5
15351 echo "${ECHO_T}no" >&6
15352   fi
15353
15354 else
15355
15356   echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15358
15359 fi;
15360
15361
15362
15363 #
15364 # Find where sockets are (especially for Solaris)
15365 # Do this before the TCP Wrappers test since tcp wrappers
15366 # uses the socket library and some linkers are stupid.
15367 #
15368 echo "$as_me:$LINENO: checking for socket" >&5
15369 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15370 if test "${ac_cv_func_socket+set}" = set; then
15371   echo $ECHO_N "(cached) $ECHO_C" >&6
15372 else
15373   cat >conftest.$ac_ext <<_ACEOF
15374 /* confdefs.h.  */
15375 _ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h.  */
15379 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15381 #define socket innocuous_socket
15382
15383 /* System header to define __stub macros and hopefully few prototypes,
15384     which can conflict with char socket (); below.
15385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386     <limits.h> exists even on freestanding compilers.  */
15387
15388 #ifdef __STDC__
15389 # include <limits.h>
15390 #else
15391 # include <assert.h>
15392 #endif
15393
15394 #undef socket
15395
15396 /* Override any gcc2 internal prototype to avoid an error.  */
15397 #ifdef __cplusplus
15398 extern "C"
15399 {
15400 #endif
15401 /* We use char because int might match the return type of a gcc2
15402    builtin and then its argument prototype would still apply.  */
15403 char socket ();
15404 /* The GNU C library defines this for functions which it implements
15405     to always fail with ENOSYS.  Some functions are actually named
15406     something starting with __ and the normal name is an alias.  */
15407 #if defined (__stub_socket) || defined (__stub___socket)
15408 choke me
15409 #else
15410 char (*f) () = socket;
15411 #endif
15412 #ifdef __cplusplus
15413 }
15414 #endif
15415
15416 int
15417 main ()
15418 {
15419 return f != socket;
15420   ;
15421   return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426   (eval $ac_link) 2>conftest.er1
15427   ac_status=$?
15428   grep -v '^ *+' conftest.er1 >conftest.err
15429   rm -f conftest.er1
15430   cat conftest.err >&5
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); } &&
15433          { ac_try='test -z "$ac_c_werror_flag"
15434                          || test ! -s conftest.err'
15435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15436   (eval $ac_try) 2>&5
15437   ac_status=$?
15438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439   (exit $ac_status); }; } &&
15440          { ac_try='test -s conftest$ac_exeext'
15441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15442   (eval $ac_try) 2>&5
15443   ac_status=$?
15444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446   ac_cv_func_socket=yes
15447 else
15448   echo "$as_me: failed program was:" >&5
15449 sed 's/^/| /' conftest.$ac_ext >&5
15450
15451 ac_cv_func_socket=no
15452 fi
15453 rm -f conftest.err conftest.$ac_objext \
15454       conftest$ac_exeext conftest.$ac_ext
15455 fi
15456 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15457 echo "${ECHO_T}$ac_cv_func_socket" >&6
15458 if test $ac_cv_func_socket = yes; then
15459   echo "$as_me:$LINENO: result: using libc's socket" >&5
15460 echo "${ECHO_T}using libc's socket" >&6
15461 else
15462
15463 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15464 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15465 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15466   echo $ECHO_N "(cached) $ECHO_C" >&6
15467 else
15468   ac_check_lib_save_LIBS=$LIBS
15469 LIBS="-lxnet  $LIBS"
15470 cat >conftest.$ac_ext <<_ACEOF
15471 /* confdefs.h.  */
15472 _ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h.  */
15476
15477 /* Override any gcc2 internal prototype to avoid an error.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 #endif
15481 /* We use char because int might match the return type of a gcc2
15482    builtin and then its argument prototype would still apply.  */
15483 char socket ();
15484 int
15485 main ()
15486 {
15487 socket ();
15488   ;
15489   return 0;
15490 }
15491 _ACEOF
15492 rm -f conftest.$ac_objext conftest$ac_exeext
15493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15494   (eval $ac_link) 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } &&
15501          { ac_try='test -z "$ac_c_werror_flag"
15502                          || test ! -s conftest.err'
15503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504   (eval $ac_try) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; } &&
15508          { ac_try='test -s conftest$ac_exeext'
15509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15510   (eval $ac_try) 2>&5
15511   ac_status=$?
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); }; }; then
15514   ac_cv_lib_xnet_socket=yes
15515 else
15516   echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15518
15519 ac_cv_lib_xnet_socket=no
15520 fi
15521 rm -f conftest.err conftest.$ac_objext \
15522       conftest$ac_exeext conftest.$ac_ext
15523 LIBS=$ac_check_lib_save_LIBS
15524 fi
15525 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15526 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15527 if test $ac_cv_lib_xnet_socket = yes; then
15528   cat >>confdefs.h <<_ACEOF
15529 #define HAVE_LIBXNET 1
15530 _ACEOF
15531
15532   LIBS="-lxnet $LIBS"
15533
15534 fi
15535
15536
15537 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15538 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15539 if test "${ac_cv_lib_socket_socket+set}" = set; then
15540   echo $ECHO_N "(cached) $ECHO_C" >&6
15541 else
15542   ac_check_lib_save_LIBS=$LIBS
15543 LIBS="-lsocket  $LIBS"
15544 cat >conftest.$ac_ext <<_ACEOF
15545 /* confdefs.h.  */
15546 _ACEOF
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h.  */
15550
15551 /* Override any gcc2 internal prototype to avoid an error.  */
15552 #ifdef __cplusplus
15553 extern "C"
15554 #endif
15555 /* We use char because int might match the return type of a gcc2
15556    builtin and then its argument prototype would still apply.  */
15557 char socket ();
15558 int
15559 main ()
15560 {
15561 socket ();
15562   ;
15563   return 0;
15564 }
15565 _ACEOF
15566 rm -f conftest.$ac_objext conftest$ac_exeext
15567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15568   (eval $ac_link) 2>conftest.er1
15569   ac_status=$?
15570   grep -v '^ *+' conftest.er1 >conftest.err
15571   rm -f conftest.er1
15572   cat conftest.err >&5
15573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574   (exit $ac_status); } &&
15575          { ac_try='test -z "$ac_c_werror_flag"
15576                          || test ! -s conftest.err'
15577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15578   (eval $ac_try) 2>&5
15579   ac_status=$?
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); }; } &&
15582          { ac_try='test -s conftest$ac_exeext'
15583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15584   (eval $ac_try) 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; }; then
15588   ac_cv_lib_socket_socket=yes
15589 else
15590   echo "$as_me: failed program was:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15592
15593 ac_cv_lib_socket_socket=no
15594 fi
15595 rm -f conftest.err conftest.$ac_objext \
15596       conftest$ac_exeext conftest.$ac_ext
15597 LIBS=$ac_check_lib_save_LIBS
15598 fi
15599 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15600 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15601 if test $ac_cv_lib_socket_socket = yes; then
15602   cat >>confdefs.h <<_ACEOF
15603 #define HAVE_LIBSOCKET 1
15604 _ACEOF
15605
15606   LIBS="-lsocket $LIBS"
15607
15608 fi
15609
15610
15611 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15612 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15613 if test "${ac_cv_lib_inet_socket+set}" = set; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-linet  $LIBS"
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624
15625 /* Override any gcc2 internal prototype to avoid an error.  */
15626 #ifdef __cplusplus
15627 extern "C"
15628 #endif
15629 /* We use char because int might match the return type of a gcc2
15630    builtin and then its argument prototype would still apply.  */
15631 char socket ();
15632 int
15633 main ()
15634 {
15635 socket ();
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15642   (eval $ac_link) 2>conftest.er1
15643   ac_status=$?
15644   grep -v '^ *+' conftest.er1 >conftest.err
15645   rm -f conftest.er1
15646   cat conftest.err >&5
15647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648   (exit $ac_status); } &&
15649          { ac_try='test -z "$ac_c_werror_flag"
15650                          || test ! -s conftest.err'
15651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15652   (eval $ac_try) 2>&5
15653   ac_status=$?
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); }; } &&
15656          { ac_try='test -s conftest$ac_exeext'
15657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15658   (eval $ac_try) 2>&5
15659   ac_status=$?
15660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661   (exit $ac_status); }; }; then
15662   ac_cv_lib_inet_socket=yes
15663 else
15664   echo "$as_me: failed program was:" >&5
15665 sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 ac_cv_lib_inet_socket=no
15668 fi
15669 rm -f conftest.err conftest.$ac_objext \
15670       conftest$ac_exeext conftest.$ac_ext
15671 LIBS=$ac_check_lib_save_LIBS
15672 fi
15673 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15674 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15675 if test $ac_cv_lib_inet_socket = yes; then
15676   cat >>confdefs.h <<_ACEOF
15677 #define HAVE_LIBINET 1
15678 _ACEOF
15679
15680   LIBS="-linet $LIBS"
15681
15682 fi
15683
15684 fi
15685
15686
15687
15688 # -----------------------------------------------------------
15689 # Check whether user wants TCP wrappers support (default off)
15690 # -----------------------------------------------------------
15691 TCPW_MSG="no"
15692 WRAPLIBS=""
15693
15694 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15695 if test "${with_tcp_wrappers+set}" = set; then
15696   withval="$with_tcp_wrappers"
15697
15698     if test "x$withval" != "xno" ; then
15699        saved_LIBS="$LIBS"
15700        LIBS="$saved_LIBS -lwrap"
15701        echo "$as_me:$LINENO: checking for libwrap" >&5
15702 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15703        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15704 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15705 if test "${ac_cv_search_nanosleep+set}" = set; then
15706   echo $ECHO_N "(cached) $ECHO_C" >&6
15707 else
15708   ac_func_search_save_LIBS=$LIBS
15709 ac_cv_search_nanosleep=no
15710 cat >conftest.$ac_ext <<_ACEOF
15711 /* confdefs.h.  */
15712 _ACEOF
15713 cat confdefs.h >>conftest.$ac_ext
15714 cat >>conftest.$ac_ext <<_ACEOF
15715 /* end confdefs.h.  */
15716
15717 /* Override any gcc2 internal prototype to avoid an error.  */
15718 #ifdef __cplusplus
15719 extern "C"
15720 #endif
15721 /* We use char because int might match the return type of a gcc2
15722    builtin and then its argument prototype would still apply.  */
15723 char nanosleep ();
15724 int
15725 main ()
15726 {
15727 nanosleep ();
15728   ;
15729   return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15734   (eval $ac_link) 2>conftest.er1
15735   ac_status=$?
15736   grep -v '^ *+' conftest.er1 >conftest.err
15737   rm -f conftest.er1
15738   cat conftest.err >&5
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); } &&
15741          { ac_try='test -z "$ac_c_werror_flag"
15742                          || test ! -s conftest.err'
15743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744   (eval $ac_try) 2>&5
15745   ac_status=$?
15746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747   (exit $ac_status); }; } &&
15748          { ac_try='test -s conftest$ac_exeext'
15749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15750   (eval $ac_try) 2>&5
15751   ac_status=$?
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); }; }; then
15754   ac_cv_search_nanosleep="none required"
15755 else
15756   echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15758
15759 fi
15760 rm -f conftest.err conftest.$ac_objext \
15761       conftest$ac_exeext conftest.$ac_ext
15762 if test "$ac_cv_search_nanosleep" = no; then
15763   for ac_lib in rt; do
15764     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15765     cat >conftest.$ac_ext <<_ACEOF
15766 /* confdefs.h.  */
15767 _ACEOF
15768 cat confdefs.h >>conftest.$ac_ext
15769 cat >>conftest.$ac_ext <<_ACEOF
15770 /* end confdefs.h.  */
15771
15772 /* Override any gcc2 internal prototype to avoid an error.  */
15773 #ifdef __cplusplus
15774 extern "C"
15775 #endif
15776 /* We use char because int might match the return type of a gcc2
15777    builtin and then its argument prototype would still apply.  */
15778 char nanosleep ();
15779 int
15780 main ()
15781 {
15782 nanosleep ();
15783   ;
15784   return 0;
15785 }
15786 _ACEOF
15787 rm -f conftest.$ac_objext conftest$ac_exeext
15788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15789   (eval $ac_link) 2>conftest.er1
15790   ac_status=$?
15791   grep -v '^ *+' conftest.er1 >conftest.err
15792   rm -f conftest.er1
15793   cat conftest.err >&5
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } &&
15796          { ac_try='test -z "$ac_c_werror_flag"
15797                          || test ! -s conftest.err'
15798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799   (eval $ac_try) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); }; } &&
15803          { ac_try='test -s conftest$ac_exeext'
15804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15805   (eval $ac_try) 2>&5
15806   ac_status=$?
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); }; }; then
15809   ac_cv_search_nanosleep="-l$ac_lib"
15810 break
15811 else
15812   echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15814
15815 fi
15816 rm -f conftest.err conftest.$ac_objext \
15817       conftest$ac_exeext conftest.$ac_ext
15818   done
15819 fi
15820 LIBS=$ac_func_search_save_LIBS
15821 fi
15822 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15823 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15824 if test "$ac_cv_search_nanosleep" != no; then
15825   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15826
15827 fi
15828
15829        cat >conftest.$ac_ext <<_ACEOF
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835  #include <sys/types.h>
15836             #include <tcpd.h>
15837              int deny_severity = 0;
15838              int allow_severity = 0;
15839              struct request_info *req;
15840 int
15841 main ()
15842 {
15843  hosts_access(req);
15844   ;
15845   return 0;
15846 }
15847 _ACEOF
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850   (eval $ac_link) 2>conftest.er1
15851   ac_status=$?
15852   grep -v '^ *+' conftest.er1 >conftest.err
15853   rm -f conftest.er1
15854   cat conftest.err >&5
15855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856   (exit $ac_status); } &&
15857          { ac_try='test -z "$ac_c_werror_flag"
15858                          || test ! -s conftest.err'
15859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860   (eval $ac_try) 2>&5
15861   ac_status=$?
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); }; } &&
15864          { ac_try='test -s conftest$ac_exeext'
15865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866   (eval $ac_try) 2>&5
15867   ac_status=$?
15868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869   (exit $ac_status); }; }; then
15870
15871             echo "$as_me:$LINENO: result: yes" >&5
15872 echo "${ECHO_T}yes" >&6
15873             cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_LIBWRAP 1
15875 _ACEOF
15876
15877             TCPW_MSG="yes"
15878             LIBS="$saved_LIBS"
15879             WRAPLIBS="-lwrap"
15880
15881 else
15882   echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15884
15885
15886             LIBS="$saved_LIBS -lwrap -lnsl"
15887             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15888             cat >conftest.$ac_ext <<_ACEOF
15889 /* confdefs.h.  */
15890 _ACEOF
15891 cat confdefs.h >>conftest.$ac_ext
15892 cat >>conftest.$ac_ext <<_ACEOF
15893 /* end confdefs.h.  */
15894  #include <sys/types.h>
15895                  #include <tcpd.h>
15896                  int deny_severity = 0;
15897                  int allow_severity = 0;
15898                  struct request_info *req;
15899 int
15900 main ()
15901 {
15902  hosts_access(req);
15903   ;
15904   return 0;
15905 }
15906 _ACEOF
15907 rm -f conftest.$ac_objext conftest$ac_exeext
15908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15909   (eval $ac_link) 2>conftest.er1
15910   ac_status=$?
15911   grep -v '^ *+' conftest.er1 >conftest.err
15912   rm -f conftest.er1
15913   cat conftest.err >&5
15914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915   (exit $ac_status); } &&
15916          { ac_try='test -z "$ac_c_werror_flag"
15917                          || test ! -s conftest.err'
15918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15919   (eval $ac_try) 2>&5
15920   ac_status=$?
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); }; } &&
15923          { ac_try='test -s conftest$ac_exeext'
15924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15925   (eval $ac_try) 2>&5
15926   ac_status=$?
15927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15928   (exit $ac_status); }; }; then
15929
15930                  echo "$as_me:$LINENO: result: yes" >&5
15931 echo "${ECHO_T}yes" >&6
15932                  cat >>confdefs.h <<\_ACEOF
15933 #define HAVE_LIBWRAP 1
15934 _ACEOF
15935
15936                  TCPW_MSG="yes"
15937                  LIBS="$saved_LIBS"
15938                  WRAPLIBS="-lwrap"
15939
15940 else
15941   echo "$as_me: failed program was:" >&5
15942 sed 's/^/| /' conftest.$ac_ext >&5
15943
15944 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15945 echo "$as_me: error: *** libwrap missing" >&2;}
15946    { (exit 1); exit 1; }; }
15947
15948 fi
15949 rm -f conftest.err conftest.$ac_objext \
15950       conftest$ac_exeext conftest.$ac_ext
15951
15952 fi
15953 rm -f conftest.err conftest.$ac_objext \
15954       conftest$ac_exeext conftest.$ac_ext
15955     fi
15956
15957
15958 fi;
15959
15960 # -----------------------------------------------------------
15961 # Check whether OpenSSL is available
15962 # -----------------------------------------------------------
15963 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15964 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15965
15966 # Check whether --with-openssl or --without-openssl was given.
15967 if test "${with_openssl+set}" = set; then
15968   withval="$with_openssl"
15969   with_openssl_directory=${withval}
15970 fi;
15971
15972 if test "x$with_openssl_directory" != "x"; then
15973         OPENSSL_LIBS="-lssl -lcrypto"
15974         OPENSSL_INC=""
15975
15976         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15977                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15978                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15979         fi
15980
15981         saved_LIBS="${LIBS}"
15982         saved_CFLAGS="${CFLAGS}"
15983         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15984         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15985
15986         cat >conftest.$ac_ext <<_ACEOF
15987 /* confdefs.h.  */
15988 _ACEOF
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h.  */
15992  #include <openssl/ssl.h>
15993 int
15994 main ()
15995 {
15996  CRYPTO_set_id_callback(NULL);
15997   ;
15998   return 0;
15999 }
16000 _ACEOF
16001 rm -f conftest.$ac_objext conftest$ac_exeext
16002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16003   (eval $ac_link) 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } &&
16010          { ac_try='test -z "$ac_c_werror_flag"
16011                          || test ! -s conftest.err'
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); }; } &&
16017          { ac_try='test -s conftest$ac_exeext'
16018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019   (eval $ac_try) 2>&5
16020   ac_status=$?
16021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022   (exit $ac_status); }; }; then
16023
16024                         support_tls="yes"
16025                         support_crypto="yes"
16026
16027 else
16028   echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16030
16031  support_tls="no"
16032
16033 fi
16034 rm -f conftest.err conftest.$ac_objext \
16035       conftest$ac_exeext conftest.$ac_ext
16036
16037         cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043  #include <openssl/evp.h>
16044 int
16045 main ()
16046 {
16047  EVP_sha512();
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext conftest$ac_exeext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16054   (eval $ac_link) 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } &&
16061          { ac_try='test -z "$ac_c_werror_flag"
16062                          || test ! -s conftest.err'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; } &&
16068          { ac_try='test -s conftest$ac_exeext'
16069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070   (eval $ac_try) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074    ac_cv_openssl_sha2="yes"
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079  ac_cv_openssl_sha2="no"
16080
16081 fi
16082 rm -f conftest.err conftest.$ac_objext \
16083       conftest$ac_exeext conftest.$ac_ext
16084
16085         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16086         # implementation, presumably for export reasons. If 192bit AES
16087         # is available, we assume that we're running with a 'non-export'
16088         # openssl library.
16089         cat >conftest.$ac_ext <<_ACEOF
16090 /* confdefs.h.  */
16091 _ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h.  */
16095  #include <openssl/evp.h>
16096 int
16097 main ()
16098 {
16099  EVP_aes_192_cbc();
16100   ;
16101   return 0;
16102 }
16103 _ACEOF
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106   (eval $ac_link) 2>conftest.er1
16107   ac_status=$?
16108   grep -v '^ *+' conftest.er1 >conftest.err
16109   rm -f conftest.er1
16110   cat conftest.err >&5
16111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112   (exit $ac_status); } &&
16113          { ac_try='test -z "$ac_c_werror_flag"
16114                          || test ! -s conftest.err'
16115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16116   (eval $ac_try) 2>&5
16117   ac_status=$?
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); }; } &&
16120          { ac_try='test -s conftest$ac_exeext'
16121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122   (eval $ac_try) 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; }; then
16126    ac_cv_openssl_export="no"
16127 else
16128   echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131  ac_cv_openssl_export="yes"
16132
16133 fi
16134 rm -f conftest.err conftest.$ac_objext \
16135       conftest$ac_exeext conftest.$ac_ext
16136
16137         LIBS="${saved_LIBS}"
16138         CFLAGS="${saved_CFLAGS}"
16139
16140         if test "$support_tls" = "yes"; then
16141
16142 cat >>confdefs.h <<\_ACEOF
16143 #define HAVE_OPENSSL 1
16144 _ACEOF
16145
16146
16147 cat >>confdefs.h <<\_ACEOF
16148 #define HAVE_TLS 1
16149 _ACEOF
16150
16151
16152 cat >>confdefs.h <<\_ACEOF
16153 #define HAVE_CRYPTO 1
16154 _ACEOF
16155
16156         fi
16157
16158         if test "$ac_cv_openssl_sha2" = "yes"; then
16159
16160 cat >>confdefs.h <<\_ACEOF
16161 #define HAVE_SHA2 1
16162 _ACEOF
16163
16164         fi
16165
16166         if test "$ac_cv_openssl_export" = "yes"; then
16167
16168 cat >>confdefs.h <<\_ACEOF
16169 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16170 _ACEOF
16171
16172         fi
16173 else
16174         support_tls="no"
16175         support_crypto="no"
16176         OPENSSL_LIBS=""
16177         OPENSSL_INC=""
16178 fi
16179
16180 echo "$as_me:$LINENO: result: $support_tls" >&5
16181 echo "${ECHO_T}$support_tls" >&6
16182
16183
16184
16185
16186 # -----------------------------------------------------------
16187 # Python and OpenSSL are using dlopen
16188 # -----------------------------------------------------------
16189
16190 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16191    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16192 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16193 if test "${ac_cv_search_dlopen+set}" = set; then
16194   echo $ECHO_N "(cached) $ECHO_C" >&6
16195 else
16196   ac_func_search_save_LIBS=$LIBS
16197 ac_cv_search_dlopen=no
16198 cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204
16205 /* Override any gcc2 internal prototype to avoid an error.  */
16206 #ifdef __cplusplus
16207 extern "C"
16208 #endif
16209 /* We use char because int might match the return type of a gcc2
16210    builtin and then its argument prototype would still apply.  */
16211 char dlopen ();
16212 int
16213 main ()
16214 {
16215 dlopen ();
16216   ;
16217   return 0;
16218 }
16219 _ACEOF
16220 rm -f conftest.$ac_objext conftest$ac_exeext
16221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16222   (eval $ac_link) 2>conftest.er1
16223   ac_status=$?
16224   grep -v '^ *+' conftest.er1 >conftest.err
16225   rm -f conftest.er1
16226   cat conftest.err >&5
16227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228   (exit $ac_status); } &&
16229          { ac_try='test -z "$ac_c_werror_flag"
16230                          || test ! -s conftest.err'
16231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16232   (eval $ac_try) 2>&5
16233   ac_status=$?
16234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235   (exit $ac_status); }; } &&
16236          { ac_try='test -s conftest$ac_exeext'
16237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16238   (eval $ac_try) 2>&5
16239   ac_status=$?
16240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241   (exit $ac_status); }; }; then
16242   ac_cv_search_dlopen="none required"
16243 else
16244   echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16246
16247 fi
16248 rm -f conftest.err conftest.$ac_objext \
16249       conftest$ac_exeext conftest.$ac_ext
16250 if test "$ac_cv_search_dlopen" = no; then
16251   for ac_lib in dl; do
16252     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16253     cat >conftest.$ac_ext <<_ACEOF
16254 /* confdefs.h.  */
16255 _ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h.  */
16259
16260 /* Override any gcc2 internal prototype to avoid an error.  */
16261 #ifdef __cplusplus
16262 extern "C"
16263 #endif
16264 /* We use char because int might match the return type of a gcc2
16265    builtin and then its argument prototype would still apply.  */
16266 char dlopen ();
16267 int
16268 main ()
16269 {
16270 dlopen ();
16271   ;
16272   return 0;
16273 }
16274 _ACEOF
16275 rm -f conftest.$ac_objext conftest$ac_exeext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16277   (eval $ac_link) 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } &&
16284          { ac_try='test -z "$ac_c_werror_flag"
16285                          || test ! -s conftest.err'
16286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287   (eval $ac_try) 2>&5
16288   ac_status=$?
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); }; } &&
16291          { ac_try='test -s conftest$ac_exeext'
16292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293   (eval $ac_try) 2>&5
16294   ac_status=$?
16295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296   (exit $ac_status); }; }; then
16297   ac_cv_search_dlopen="-l$ac_lib"
16298 break
16299 else
16300   echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16302
16303 fi
16304 rm -f conftest.err conftest.$ac_objext \
16305       conftest$ac_exeext conftest.$ac_ext
16306   done
16307 fi
16308 LIBS=$ac_func_search_save_LIBS
16309 fi
16310 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16311 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16312 if test "$ac_cv_search_dlopen" != no; then
16313   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16314
16315 fi
16316
16317 fi
16318
16319 # ------------------------------------------
16320 # Where to place working dir
16321 # ------------------------------------------
16322 working_dir=`eval echo ${prefix}/var/bacula/working`
16323
16324 # Check whether --with-working-dir or --without-working-dir was given.
16325 if test "${with_working_dir+set}" = set; then
16326   withval="$with_working_dir"
16327
16328        if test "x$withval" != "xno" ; then
16329               working_dir=$withval
16330        fi
16331
16332
16333 fi;
16334
16335
16336
16337
16338 # ------------------------------------------
16339 # Where to place scriptdir (script files)
16340 # ------------------------------------------
16341 scriptdir=`eval echo ${sysconfdir}`
16342
16343 # Check whether --with-scriptdir or --without-scriptdir was given.
16344 if test "${with_scriptdir+set}" = set; then
16345   withval="$with_scriptdir"
16346
16347        if test "x$withval" != "xno" ; then
16348               scriptdir=$withval
16349        fi
16350
16351
16352 fi;
16353
16354
16355
16356
16357 # ------------------------------------------
16358 # Where to send dump email
16359 # ------------------------------------------
16360 dump_email=root@localhost
16361
16362 # Check whether --with-dump-email or --without-dump-email was given.
16363 if test "${with_dump_email+set}" = set; then
16364   withval="$with_dump_email"
16365
16366        if test "x$withval" != "xno" ; then
16367               dump_email=$withval
16368        fi
16369
16370
16371 fi;
16372
16373
16374
16375 # ------------------------------------------
16376 # Where to send job email
16377 # ------------------------------------------
16378 job_email=root@localhost
16379
16380 # Check whether --with-job-email or --without-job-email was given.
16381 if test "${with_job_email+set}" = set; then
16382   withval="$with_job_email"
16383
16384        if test "x$withval" != "xno" ; then
16385               job_email=$withval
16386        fi
16387
16388
16389 fi;
16390
16391
16392
16393 # ------------------------------------------
16394 # Where to find smtp host
16395 # ------------------------------------------
16396 smtp_host=localhost
16397
16398 # Check whether --with-smtp_host or --without-smtp_host was given.
16399 if test "${with_smtp_host+set}" = set; then
16400   withval="$with_smtp_host"
16401
16402        if test "x$withval" != "xno" ; then
16403               smtp_host=$withval
16404        fi
16405
16406
16407 fi;
16408
16409
16410
16411
16412 # ------------------------------------
16413 # Where to place pid files
16414 # ------------------------------------
16415 piddir=/var/run
16416
16417 # Check whether --with-pid-dir or --without-pid-dir was given.
16418 if test "${with_pid_dir+set}" = set; then
16419   withval="$with_pid_dir"
16420
16421         if test "x$withval" != "xno" ; then
16422             piddir=$withval
16423         fi
16424
16425
16426 fi;
16427
16428 cat >>confdefs.h <<_ACEOF
16429 #define _PATH_BACULA_PIDDIR "$piddir"
16430 _ACEOF
16431
16432
16433
16434
16435 # ------------------------------------
16436 # Where to place subsys "lock file"
16437 # ------------------------------------
16438 subsysdir=/var/run/subsys
16439 if test -d /var/run/subsys; then
16440    subsysdir=/var/run/subsys
16441 elif test -d /var/lock/subsys; then
16442    subsysdir=/var/lock/subsys
16443 else
16444    subsysdir=/var/run/subsys
16445 fi
16446
16447 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16448 if test "${with_subsys_dir+set}" = set; then
16449   withval="$with_subsys_dir"
16450
16451         if test "x$withval" != "xno" ; then
16452             subsysdir=$withval
16453         fi
16454
16455
16456 fi;
16457
16458
16459
16460
16461
16462 # ------------------------------------
16463 # Where to start assigning ports
16464 # ------------------------------------
16465 baseport=9101
16466
16467 # Check whether --with-baseport or --without-baseport was given.
16468 if test "${with_baseport+set}" = set; then
16469   withval="$with_baseport"
16470
16471         if test "x$withval" != "xno" ; then
16472              baseport=$withval
16473         fi
16474
16475
16476 fi;
16477
16478
16479 dir_port=`expr $baseport`
16480 fd_port=`expr $baseport + 1`
16481 sd_port=`expr $fd_port + 1`
16482
16483
16484
16485
16486
16487
16488 # ------------------------------------------
16489 # Generate passwords
16490 # ------------------------------------------
16491 dir_password=
16492
16493 # Check whether --with-dir-password or --without-dir-password was given.
16494 if test "${with_dir_password+set}" = set; then
16495   withval="$with_dir_password"
16496
16497        if test "x$withval" != "xno" ; then
16498            dir_password=$withval
16499        fi
16500
16501
16502 fi;
16503
16504 if test "x$dir_password" = "x" ; then
16505    if test "x$OPENSSL" = "xnone" ; then
16506       key=`autoconf/randpass 33`
16507    else
16508       key=`openssl rand -base64 33`
16509    fi
16510    dir_password=$key
16511 fi
16512
16513 fd_password=
16514
16515 # Check whether --with-fd-password or --without-fd-password was given.
16516 if test "${with_fd_password+set}" = set; then
16517   withval="$with_fd_password"
16518
16519        if test "x$withval" != "xno" ; then
16520            fd_password=$withval
16521        fi
16522
16523
16524 fi;
16525
16526 if test "x$fd_password" = "x" ; then
16527    if test "x$OPENSSL" = "xnone" ; then
16528       key=`autoconf/randpass 37`
16529    else
16530       key=`openssl rand -base64 33`
16531    fi
16532    fd_password=$key
16533 fi
16534
16535 sd_password=
16536
16537 # Check whether --with-sd-password or --without-sd-password was given.
16538 if test "${with_sd_password+set}" = set; then
16539   withval="$with_sd_password"
16540
16541        if test "x$withval" != "xno" ; then
16542            sd_password=$withval
16543        fi
16544
16545
16546 fi;
16547
16548 if test "x$sd_password" = "x" ; then
16549    if test "x$OPENSSL" = "xnone" ; then
16550       key=`autoconf/randpass 41`
16551    else
16552       key=`openssl rand -base64 33`
16553    fi
16554    sd_password=$key
16555 fi
16556
16557 mon_dir_password=
16558
16559 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16560 if test "${with_mon_dir_password+set}" = set; then
16561   withval="$with_mon_dir_password"
16562
16563        if test "x$withval" != "xno" ; then
16564            mon_dir_password=$withval
16565        fi
16566
16567
16568 fi;
16569
16570 if test "x$mon_dir_password" = "x" ; then
16571    if test "x$OPENSSL" = "xnone" ; then
16572       key=`autoconf/randpass 33`
16573    else
16574       key=`openssl rand -base64 33`
16575    fi
16576    mon_dir_password=$key
16577 fi
16578
16579 mon_fd_password=
16580
16581 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16582 if test "${with_mon_fd_password+set}" = set; then
16583   withval="$with_mon_fd_password"
16584
16585        if test "x$withval" != "xno" ; then
16586            mon_fd_password=$withval
16587        fi
16588
16589
16590 fi;
16591
16592 if test "x$mon_fd_password" = "x" ; then
16593    if test "x$OPENSSL" = "xnone" ; then
16594       key=`autoconf/randpass 37`
16595    else
16596       key=`openssl rand -base64 33`
16597    fi
16598    mon_fd_password=$key
16599 fi
16600
16601 mon_sd_password=
16602
16603 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16604 if test "${with_mon_sd_password+set}" = set; then
16605   withval="$with_mon_sd_password"
16606
16607        if test "x$withval" != "xno" ; then
16608            mon_sd_password=$withval
16609        fi
16610
16611
16612 fi;
16613
16614 if test "x$mon_sd_password" = "x" ; then
16615    if test "x$OPENSSL" = "xnone" ; then
16616       key=`autoconf/randpass 41`
16617    else
16618       key=`openssl rand -base64 33`
16619    fi
16620    mon_sd_password=$key
16621 fi
16622
16623
16624
16625
16626
16627
16628
16629
16630 #
16631 # Pickup any database name
16632 #
16633 db_name=bacula
16634
16635 # Check whether --with-db_name or --without-db_name was given.
16636 if test "${with_db_name+set}" = set; then
16637   withval="$with_db_name"
16638
16639         if test "x$withval" != "x" ; then
16640              db_name=$withval
16641         fi
16642
16643
16644 fi;
16645
16646
16647 db_user=bacula
16648
16649 # Check whether --with-db_user or --without-db_user was given.
16650 if test "${with_db_user+set}" = set; then
16651   withval="$with_db_user"
16652
16653         if test "x$withval" != "x" ; then
16654              db_user=$withval
16655         fi
16656
16657
16658 fi;
16659
16660
16661
16662 #
16663 # Handle users and groups for each daemon
16664 #
16665 dir_user=
16666
16667 # Check whether --with-dir_user or --without-dir_user was given.
16668 if test "${with_dir_user+set}" = set; then
16669   withval="$with_dir_user"
16670
16671         if test "x$withval" != "x" ; then
16672              dir_user=$withval
16673         fi
16674
16675
16676 fi;
16677
16678 dir_group=
16679
16680 # Check whether --with-dir_group or --without-dir_group was given.
16681 if test "${with_dir_group+set}" = set; then
16682   withval="$with_dir_group"
16683
16684         if test "x$withval" != "x" ; then
16685              dir_group=$withval
16686         fi
16687
16688
16689 fi;
16690
16691 sd_user=
16692
16693 # Check whether --with-sd_user or --without-sd_user was given.
16694 if test "${with_sd_user+set}" = set; then
16695   withval="$with_sd_user"
16696
16697         if test "x$withval" != "x" ; then
16698              sd_user=$withval
16699         fi
16700
16701
16702 fi;
16703
16704 sd_group=
16705
16706 # Check whether --with-sd_group or --without-sd_group was given.
16707 if test "${with_sd_group+set}" = set; then
16708   withval="$with_sd_group"
16709
16710         if test "x$withval" != "x" ; then
16711              sd_group=$withval
16712         fi
16713
16714
16715 fi;
16716
16717 fd_user=
16718
16719 # Check whether --with-fd_user or --without-fd_user was given.
16720 if test "${with_fd_user+set}" = set; then
16721   withval="$with_fd_user"
16722
16723         if test "x$withval" != "x" ; then
16724              fd_user=$withval
16725         fi
16726
16727
16728 fi;
16729
16730 fd_group=
16731
16732 # Check whether --with-fd_group or --without-fd_group was given.
16733 if test "${with_fd_group+set}" = set; then
16734   withval="$with_fd_group"
16735
16736         if test "x$withval" != "x" ; then
16737              fd_group=$withval
16738         fi
16739
16740
16741 fi;
16742
16743
16744
16745
16746
16747
16748
16749
16750 #
16751 # allow setting default executable permissions
16752 #
16753 SBINPERM=0754
16754
16755 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16756 if test "${with_sbin_perm+set}" = set; then
16757   withval="$with_sbin_perm"
16758
16759         if test "x$withval" != "x" ; then
16760             SBINPERM=$withval
16761         fi
16762
16763
16764 fi;
16765
16766
16767
16768 # ------------------------------------------------
16769 # Bacula check for various SQL database engines
16770 # ------------------------------------------------
16771 SQL_LIB=
16772
16773 db_found=no
16774 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16775 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16776
16777 # Check whether --with-postgresql or --without-postgresql was given.
16778 if test "${with_postgresql+set}" = set; then
16779   withval="$with_postgresql"
16780
16781   if test "$withval" != "no"; then
16782       if test "$db_found" = "yes"; then
16783           echo "$as_me:$LINENO: result: error" >&5
16784 echo "${ECHO_T}error" >&6
16785           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16786 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16787    { (exit 1); exit 1; }; };
16788       fi
16789       if test "$withval" = "yes"; then
16790           PG_CONFIG=`which pg_config`
16791           if test -n "$PG_CONFIG";then
16792               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16793               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16794               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16795           elif test -f /usr/local/include/libpq-fe.h; then
16796               POSTGRESQL_INCDIR=/usr/local/include
16797               if test -d /usr/local/lib64; then
16798                  POSTGRESQL_LIBDIR=/usr/local/lib64
16799               else
16800                  POSTGRESQL_LIBDIR=/usr/local/lib
16801               fi
16802               POSTGRESQL_BINDIR=/usr/local/bin
16803           elif test -f /usr/include/libpq-fe.h; then
16804               POSTGRESQL_INCDIR=/usr/include
16805               if test -d /usr/lib64; then
16806                  POSTGRESQL_LIBDIR=/usr/lib64
16807               else
16808                  POSTGRESQL_LIBDIR=/usr/lib
16809               fi
16810               POSTGRESQL_BINDIR=/usr/bin
16811           elif test -f /usr/include/pgsql/libpq-fe.h; then
16812               POSTGRESQL_INCDIR=/usr/include/pgsql
16813               if test -d /usr/lib64/pgsql; then
16814                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16815               else
16816                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16817               fi
16818               POSTGRESQL_BINDIR=/usr/bin
16819           elif test -f /usr/include/postgresql/libpq-fe.h; then
16820               POSTGRESQL_INCDIR=/usr/include/postgresql
16821               if test -d /usr/lib64/postgresql; then
16822                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16823               else
16824                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16825               fi
16826               POSTGRESQL_BINDIR=/usr/bin
16827           else
16828               echo "$as_me:$LINENO: result: no" >&5
16829 echo "${ECHO_T}no" >&6
16830               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16831 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16832    { (exit 1); exit 1; }; }
16833           fi
16834       elif test -f $withval/include/libpq-fe.h; then
16835           POSTGRESQL_INCDIR=$withval/include
16836           POSTGRESQL_LIBDIR=$withval/lib
16837           POSTGRESQL_BINDIR=$withval/bin
16838       elif test -f $withval/include/postgresql/libpq-fe.h; then
16839           POSTGRESQL_INCDIR=$withval/include/postgresql
16840      if test -d $withval/lib64; then
16841          POSTGRESQL_LIBDIR=$withval/lib64
16842      else
16843          POSTGRESQL_LIBDIR=$withval/lib
16844      fi
16845           POSTGRESQL_BINDIR=$withval/bin
16846       else
16847           echo "$as_me:$LINENO: result: no" >&5
16848 echo "${ECHO_T}no" >&6
16849           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16850 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16851    { (exit 1); exit 1; }; }
16852       fi
16853       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16854       echo "$as_me:$LINENO: checking for crypt" >&5
16855 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16856 if test "${ac_cv_func_crypt+set}" = set; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16866    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16867 #define crypt innocuous_crypt
16868
16869 /* System header to define __stub macros and hopefully few prototypes,
16870     which can conflict with char crypt (); below.
16871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16872     <limits.h> exists even on freestanding compilers.  */
16873
16874 #ifdef __STDC__
16875 # include <limits.h>
16876 #else
16877 # include <assert.h>
16878 #endif
16879
16880 #undef crypt
16881
16882 /* Override any gcc2 internal prototype to avoid an error.  */
16883 #ifdef __cplusplus
16884 extern "C"
16885 {
16886 #endif
16887 /* We use char because int might match the return type of a gcc2
16888    builtin and then its argument prototype would still apply.  */
16889 char crypt ();
16890 /* The GNU C library defines this for functions which it implements
16891     to always fail with ENOSYS.  Some functions are actually named
16892     something starting with __ and the normal name is an alias.  */
16893 #if defined (__stub_crypt) || defined (__stub___crypt)
16894 choke me
16895 #else
16896 char (*f) () = crypt;
16897 #endif
16898 #ifdef __cplusplus
16899 }
16900 #endif
16901
16902 int
16903 main ()
16904 {
16905 return f != crypt;
16906   ;
16907   return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16912   (eval $ac_link) 2>conftest.er1
16913   ac_status=$?
16914   grep -v '^ *+' conftest.er1 >conftest.err
16915   rm -f conftest.er1
16916   cat conftest.err >&5
16917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918   (exit $ac_status); } &&
16919          { ac_try='test -z "$ac_c_werror_flag"
16920                          || test ! -s conftest.err'
16921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16922   (eval $ac_try) 2>&5
16923   ac_status=$?
16924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925   (exit $ac_status); }; } &&
16926          { ac_try='test -s conftest$ac_exeext'
16927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928   (eval $ac_try) 2>&5
16929   ac_status=$?
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); }; }; then
16932   ac_cv_func_crypt=yes
16933 else
16934   echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_cv_func_crypt=no
16938 fi
16939 rm -f conftest.err conftest.$ac_objext \
16940       conftest$ac_exeext conftest.$ac_ext
16941 fi
16942 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16943 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16944 if test $ac_cv_func_crypt = yes; then
16945   :
16946 else
16947   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16948 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16949 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16950   echo $ECHO_N "(cached) $ECHO_C" >&6
16951 else
16952   ac_check_lib_save_LIBS=$LIBS
16953 LIBS="-lcrypt  $LIBS"
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h.  */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h.  */
16960
16961 /* Override any gcc2 internal prototype to avoid an error.  */
16962 #ifdef __cplusplus
16963 extern "C"
16964 #endif
16965 /* We use char because int might match the return type of a gcc2
16966    builtin and then its argument prototype would still apply.  */
16967 char crypt ();
16968 int
16969 main ()
16970 {
16971 crypt ();
16972   ;
16973   return 0;
16974 }
16975 _ACEOF
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978   (eval $ac_link) 2>conftest.er1
16979   ac_status=$?
16980   grep -v '^ *+' conftest.er1 >conftest.err
16981   rm -f conftest.er1
16982   cat conftest.err >&5
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } &&
16985          { ac_try='test -z "$ac_c_werror_flag"
16986                          || test ! -s conftest.err'
16987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988   (eval $ac_try) 2>&5
16989   ac_status=$?
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); }; } &&
16992          { ac_try='test -s conftest$ac_exeext'
16993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16994   (eval $ac_try) 2>&5
16995   ac_status=$?
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); }; }; then
16998   ac_cv_lib_crypt_crypt=yes
16999 else
17000   echo "$as_me: failed program was:" >&5
17001 sed 's/^/| /' conftest.$ac_ext >&5
17002
17003 ac_cv_lib_crypt_crypt=no
17004 fi
17005 rm -f conftest.err conftest.$ac_objext \
17006       conftest$ac_exeext conftest.$ac_ext
17007 LIBS=$ac_check_lib_save_LIBS
17008 fi
17009 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17010 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17011 if test $ac_cv_lib_crypt_crypt = yes; then
17012   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17013 fi
17014
17015 fi
17016
17017       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17018       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17019       SQL_BINDIR=$POSTGRESQL_BINDIR
17020       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17021
17022       cat >>confdefs.h <<\_ACEOF
17023 #define HAVE_POSTGRESQL 1
17024 _ACEOF
17025
17026       echo "$as_me:$LINENO: result: yes" >&5
17027 echo "${ECHO_T}yes" >&6
17028       db_found=yes
17029       support_postgresql=yes
17030       db_type=PostgreSQL
17031       DB_TYPE=postgresql
17032   else
17033       echo "$as_me:$LINENO: result: no" >&5
17034 echo "${ECHO_T}no" >&6
17035   fi
17036
17037 else
17038
17039   echo "$as_me:$LINENO: result: no" >&5
17040 echo "${ECHO_T}no" >&6
17041
17042 fi;
17043
17044
17045
17046
17047
17048
17049
17050 db_found=no
17051 echo "$as_me:$LINENO: checking for MySQL support" >&5
17052 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17053
17054 # Check whether --with-mysql or --without-mysql was given.
17055 if test "${with_mysql+set}" = set; then
17056   withval="$with_mysql"
17057
17058   if test "$withval" != "no"; then
17059         if test "$withval" = "yes"; then
17060            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17061                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17062                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17063                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17064                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17065                    else
17066                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17067                    fi
17068                    MYSQL_BINDIR=/usr/local/mysql/bin
17069            elif test -f /usr/include/mysql/mysql.h; then
17070                    MYSQL_INCDIR=/usr/include/mysql
17071                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17072                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17073                            MYSQL_LIBDIR=/usr/lib64/mysql
17074                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17075                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17076                            MYSQL_LIBDIR=/usr/lib/mysql
17077                    else
17078                            MYSQL_LIBDIR=/usr/lib
17079                    fi
17080                    MYSQL_BINDIR=/usr/bin
17081            elif test -f /usr/include/mysql.h; then
17082                    MYSQL_INCDIR=/usr/include
17083                    if test -f /usr/lib64/libmysqlclient_r.a \
17084                         -o -f /usr/lib64/libmysqlclient_r.so; then
17085                            MYSQL_LIBDIR=/usr/lib64
17086                    else
17087                            MYSQL_LIBDIR=/usr/lib
17088                    fi
17089                    MYSQL_BINDIR=/usr/bin
17090            elif test -f /usr/local/include/mysql/mysql.h; then
17091                    MYSQL_INCDIR=/usr/local/include/mysql
17092                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17093                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17094                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17095                    else
17096                            MYSQL_LIBDIR=/usr/local/lib/mysql
17097                    fi
17098                    MYSQL_BINDIR=/usr/local/bin
17099            elif test -f /usr/local/include/mysql.h; then
17100                    MYSQL_INCDIR=/usr/local/include
17101                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17102                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17103                            MYSQL_LIBDIR=/usr/local/lib64
17104                    else
17105                            MYSQL_LIBDIR=/usr/local/lib
17106                    fi
17107                    MYSQL_BINDIR=/usr/local/bin
17108            else
17109               echo "$as_me:$LINENO: result: no" >&5
17110 echo "${ECHO_T}no" >&6
17111               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17112 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17113    { (exit 1); exit 1; }; }
17114            fi
17115         else
17116            if test -f $withval/include/mysql/mysql.h; then
17117               MYSQL_INCDIR=$withval/include/mysql
17118               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17119                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17120                  MYSQL_LIBDIR=$withval/lib64/mysql
17121               else
17122                  MYSQL_LIBDIR=$withval/lib/mysql
17123                  # Solaris ...
17124                  if test -f $withval/lib/libmysqlclient_r.so; then
17125                     MYSQL_LIBDIR=$withval/lib
17126                  fi
17127               fi
17128               MYSQL_BINDIR=$withval/bin
17129            elif test -f $withval/include/mysql.h; then
17130               MYSQL_INCDIR=$withval/include
17131               if test -f $withval/lib64/libmysqlclient_r.a \
17132                    -o -f $withval/lib64/libmysqlclient_r.so; then
17133                  MYSQL_LIBDIR=$withval/lib64
17134               else
17135                  MYSQL_LIBDIR=$withval/lib
17136               fi
17137               MYSQL_BINDIR=$withval/bin
17138            else
17139               echo "$as_me:$LINENO: result: no" >&5
17140 echo "${ECHO_T}no" >&6
17141               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17142 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17143    { (exit 1); exit 1; }; }
17144            fi
17145         fi
17146     SQL_INCLUDE=-I$MYSQL_INCDIR
17147     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17148          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17149        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17150        cat >>confdefs.h <<\_ACEOF
17151 #define HAVE_THREAD_SAFE_MYSQL 1
17152 _ACEOF
17153
17154     fi
17155     SQL_BINDIR=$MYSQL_BINDIR
17156     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17157
17158     cat >>confdefs.h <<\_ACEOF
17159 #define HAVE_MYSQL 1
17160 _ACEOF
17161
17162     echo "$as_me:$LINENO: result: yes" >&5
17163 echo "${ECHO_T}yes" >&6
17164     db_found=yes
17165     support_mysql=yes
17166     db_type=MySQL
17167     DB_TYPE=mysql
17168
17169   else
17170         echo "$as_me:$LINENO: result: no" >&5
17171 echo "${ECHO_T}no" >&6
17172   fi
17173
17174
17175 fi;
17176
17177
17178 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17179 if test "${with_embedded_mysql+set}" = set; then
17180   withval="$with_embedded_mysql"
17181
17182   if test "$withval" != "no"; then
17183         if test "$withval" = "yes"; then
17184                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17185                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17186                         if test -d /usr/local/mysql/lib64/mysql; then
17187                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17188                         else
17189                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17190                         fi
17191                         MYSQL_BINDIR=/usr/local/mysql/bin
17192                 elif test -f /usr/include/mysql/mysql.h; then
17193                         MYSQL_INCDIR=/usr/include/mysql
17194                         if test -d /usr/lib64/mysql; then
17195                                 MYSQL_LIBDIR=/usr/lib64/mysql
17196                         else
17197                                 MYSQL_LIBDIR=/usr/lib/mysql
17198                         fi
17199                         MYSQL_BINDIR=/usr/bin
17200                 elif test -f /usr/include/mysql.h; then
17201                         MYSQL_INCDIR=/usr/include
17202                         if test -d /usr/lib64; then
17203                                 MYSQL_LIBDIR=/usr/lib64
17204                         else
17205                                 MYSQL_LIBDIR=/usr/lib
17206                         fi
17207                         MYSQL_BINDIR=/usr/bin
17208                 elif test -f /usr/local/include/mysql/mysql.h; then
17209                         MYSQL_INCDIR=/usr/local/include/mysql
17210                         if test -d /usr/local/lib64/mysql; then
17211                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17212                         else
17213                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17214                         fi
17215                         MYSQL_BINDIR=/usr/local/bin
17216                 elif test -f /usr/local/include/mysql.h; then
17217                         MYSQL_INCDIR=/usr/local/include
17218                         if test -d /usr/local/lib64; then
17219                                 MYSQL_LIBDIR=/usr/local/lib64
17220                         else
17221                                 MYSQL_LIBDIR=/usr/local/lib
17222                         fi
17223                         MYSQL_BINDIR=/usr/local/bin
17224                 else
17225                    echo "$as_me:$LINENO: result: no" >&5
17226 echo "${ECHO_T}no" >&6
17227                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17228 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17229    { (exit 1); exit 1; }; }
17230                 fi
17231         else
17232                 if test -f $withval/include/mysql/mysql.h; then
17233                         MYSQL_INCDIR=$withval/include/mysql
17234                         if test -d $withval/lib64/mysql; then
17235                                 MYSQL_LIBDIR=$withval/lib64/mysql
17236                         else
17237                                 MYSQL_LIBDIR=$withval/lib/mysql
17238                         fi
17239                         MYSQL_BINDIR=$withval/bin
17240                 elif test -f $withval/include/mysql.h; then
17241                         MYSQL_INCDIR=$withval/include
17242                         if test -d $withval/lib64; then
17243                                 MYSQL_LIBDIR=$withval/lib64
17244                         else
17245                                 MYSQL_LIBDIR=$withval/lib
17246                         fi
17247                         MYSQL_BINDIR=$withval/bin
17248                 else
17249                    echo "$as_me:$LINENO: result: no" >&5
17250 echo "${ECHO_T}no" >&6
17251                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17252 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17253    { (exit 1); exit 1; }; }
17254                 fi
17255         fi
17256     SQL_INCLUDE=-I$MYSQL_INCDIR
17257     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17258     SQL_BINDIR=$MYSQL_BINDIR
17259     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17260
17261     cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_MYSQL 1
17263 _ACEOF
17264
17265     cat >>confdefs.h <<\_ACEOF
17266 #define HAVE_EMBEDDED_MYSQL 1
17267 _ACEOF
17268
17269     echo "$as_me:$LINENO: result: yes" >&5
17270 echo "${ECHO_T}yes" >&6
17271     db_found=yes
17272     support_mysql=yes
17273     db_type=MySQL
17274     DB_TYPE=mysql
17275
17276   else
17277         echo "$as_me:$LINENO: result: no" >&5
17278 echo "${ECHO_T}no" >&6
17279   fi
17280
17281
17282 fi;
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292 db_found=no
17293 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17294 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17295
17296 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17297 if test "${with_sqlite3+set}" = set; then
17298   withval="$with_sqlite3"
17299
17300   if test "$withval" != "no"; then
17301      if test "$withval" = "yes"; then
17302         if test -f /usr/local/include/sqlite3.h; then
17303            SQLITE_INCDIR=/usr/local/include
17304            if test -d /usr/local/lib64; then
17305               SQLITE_LIBDIR=/usr/local/lib64
17306            else
17307               SQLITE_LIBDIR=/usr/local/lib
17308            fi
17309            SQLITE_BINDIR=/usr/local/bin
17310         elif test -f /usr/include/sqlite3.h; then
17311            SQLITE_INCDIR=/usr/include
17312            if test -d /usr/lib64; then
17313               SQLITE_LIBDIR=/usr/lib64
17314            else
17315               SQLITE_LIBDIR=/usr/lib
17316            fi
17317            SQLITE_BINDIR=/usr/bin
17318         elif test -f $prefix/include/sqlite3.h; then
17319            SQLITE_INCDIR=$prefix/include
17320            if test -d $prefix/lib64; then
17321               SQLITE_LIBDIR=$prefix/lib64
17322            else
17323               SQLITE_LIBDIR=$prefix/lib
17324            fi
17325            SQLITE_BINDIR=$prefix/bin
17326         else
17327            echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17329            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17330 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17331    { (exit 1); exit 1; }; }
17332         fi
17333      else
17334         if test -f $withval/sqlite3.h; then
17335            SQLITE_INCDIR=$withval
17336            SQLITE_LIBDIR=$withval
17337            SQLITE_BINDIR=$withval
17338         elif test -f $withval/include/sqlite3.h; then
17339            SQLITE_INCDIR=$withval/include
17340            if test -d $withval/lib64; then
17341               SQLITE_LIBDIR=$withval/lib64
17342            else
17343               SQLITE_LIBDIR=$withval/lib
17344            fi
17345            SQLITE_BINDIR=$withval/bin
17346         else
17347            echo "$as_me:$LINENO: result: no" >&5
17348 echo "${ECHO_T}no" >&6
17349            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17350 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17351    { (exit 1); exit 1; }; }
17352         fi
17353      fi
17354      SQL_INCLUDE=-I$SQLITE_INCDIR
17355      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17356      SQL_BINDIR=$SQLITE_BINDIR
17357      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17358
17359      cat >>confdefs.h <<\_ACEOF
17360 #define HAVE_SQLITE3 1
17361 _ACEOF
17362
17363      echo "$as_me:$LINENO: result: yes" >&5
17364 echo "${ECHO_T}yes" >&6
17365      db_found=yes
17366      support_sqlite3=yes
17367      db_type=SQLite3
17368      DB_TYPE=sqlite3
17369
17370   else
17371      echo "$as_me:$LINENO: result: no" >&5
17372 echo "${ECHO_T}no" >&6
17373   fi
17374
17375 else
17376
17377   echo "$as_me:$LINENO: result: no" >&5
17378 echo "${ECHO_T}no" >&6
17379
17380 fi;
17381
17382
17383
17384
17385
17386
17387
17388 db_found=no
17389 echo "$as_me:$LINENO: checking for SQLite support" >&5
17390 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17391
17392 # Check whether --with-sqlite or --without-sqlite was given.
17393 if test "${with_sqlite+set}" = set; then
17394   withval="$with_sqlite"
17395
17396   if test "$withval" != "no"; then
17397      if test "$withval" = "yes"; then
17398         if test -f /usr/local/include/sqlite.h; then
17399            SQLITE_INCDIR=/usr/local/include
17400            if test -d /usr/local/lib64; then
17401               SQLITE_LIBDIR=/usr/local/lib64
17402            else
17403               SQLITE_LIBDIR=/usr/local/lib
17404            fi
17405            SQLITE_BINDIR=/usr/local/bin
17406         elif test -f /usr/include/sqlite.h; then
17407            SQLITE_INCDIR=/usr/include
17408            if test -d /usr/lib64; then
17409               SQLITE_LIBDIR=/usr/lib64
17410            else
17411               SQLITE_LIBDIR=/usr/lib
17412            fi
17413            SQLITE_BINDIR=/usr/bin
17414         elif test -f $prefix/include/sqlite.h; then
17415            SQLITE_INCDIR=$prefix/include
17416            if test -d $prefix/lib64; then
17417               SQLITE_LIBDIR=$prefix/lib64
17418            else
17419               SQLITE_LIBDIR=$prefix/lib
17420            fi
17421            SQLITE_BINDIR=$prefix/bin
17422         else
17423            echo "$as_me:$LINENO: result: no" >&5
17424 echo "${ECHO_T}no" >&6
17425            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17426 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17427    { (exit 1); exit 1; }; }
17428         fi
17429      else
17430         if test -f $withval/sqlite.h; then
17431            SQLITE_INCDIR=$withval
17432            SQLITE_LIBDIR=$withval
17433            SQLITE_BINDIR=$withval
17434         elif test -f $withval/include/sqlite.h; then
17435            SQLITE_INCDIR=$withval/include
17436            if test -d $withval/lib64; then
17437               SQLITE_LIBDIR=$withval/lib64
17438            else
17439               SQLITE_LIBDIR=$withval/lib
17440            fi
17441            SQLITE_BINDIR=$withval/bin
17442         else
17443            echo "$as_me:$LINENO: result: no" >&5
17444 echo "${ECHO_T}no" >&6
17445            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17446 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17447    { (exit 1); exit 1; }; }
17448         fi
17449      fi
17450      SQL_INCLUDE=-I$SQLITE_INCDIR
17451      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17452      SQL_BINDIR=$SQLITE_BINDIR
17453      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17454
17455      cat >>confdefs.h <<\_ACEOF
17456 #define HAVE_SQLITE 1
17457 _ACEOF
17458
17459      echo "$as_me:$LINENO: result: yes" >&5
17460 echo "${ECHO_T}yes" >&6
17461      db_found=yes
17462      support_sqlite=yes
17463      db_type=SQLite
17464      DB_TYPE=sqlite
17465
17466   else
17467      echo "$as_me:$LINENO: result: no" >&5
17468 echo "${ECHO_T}no" >&6
17469   fi
17470
17471 else
17472
17473   echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17475
17476 fi;
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486 # -------------------------------------------
17487 # enable batch attribute DB insert (default on)
17488 # -------------------------------------------
17489 support_batch_insert=no
17490 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17491 pkg=$?
17492 if test $pkg = 0; then
17493    support_batch_insert=yes
17494    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17495 if test "${enable_batch_insert+set}" = set; then
17496   enableval="$enable_batch_insert"
17497   if test x$enableval = xno; then
17498        support_batch_insert=no
17499       else
17500        support_batch_insert=yes
17501      fi
17502 fi;
17503 fi
17504
17505 if test $support_batch_insert = yes ; then
17506
17507 cat >>confdefs.h <<\_ACEOF
17508 #define HAVE_BATCH_FILE_INSERT 1
17509 _ACEOF
17510
17511 fi
17512
17513
17514 cat >>confdefs.h <<\_ACEOF
17515 #define PROTOTYPES 1
17516 _ACEOF
17517
17518
17519 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17520     if test -z "$CCOPTS"; then
17521         CCOPTS='-g -O2 -Wall'
17522     fi
17523     CFLAGS="$CCOPTS"
17524 fi
17525
17526
17527
17528
17529 largefile_support="no"
17530
17531    # Check whether --enable-largefile or --disable-largefile was given.
17532 if test "${enable_largefile+set}" = set; then
17533   enableval="$enable_largefile"
17534
17535 fi;
17536    if test "$enable_largefile" != no; then
17537      if test -n "$ac_tool_prefix"; then
17538   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17539 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17540 echo "$as_me:$LINENO: checking for $ac_word" >&5
17541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17542 if test "${ac_cv_prog_GETCONF+set}" = set; then
17543   echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545   if test -n "$GETCONF"; then
17546   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17547 else
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17550 do
17551   IFS=$as_save_IFS
17552   test -z "$as_dir" && as_dir=.
17553   for ac_exec_ext in '' $ac_executable_extensions; do
17554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17557     break 2
17558   fi
17559 done
17560 done
17561
17562 fi
17563 fi
17564 GETCONF=$ac_cv_prog_GETCONF
17565 if test -n "$GETCONF"; then
17566   echo "$as_me:$LINENO: result: $GETCONF" >&5
17567 echo "${ECHO_T}$GETCONF" >&6
17568 else
17569   echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17571 fi
17572
17573 fi
17574 if test -z "$ac_cv_prog_GETCONF"; then
17575   ac_ct_GETCONF=$GETCONF
17576   # Extract the first word of "getconf", so it can be a program name with args.
17577 set dummy getconf; ac_word=$2
17578 echo "$as_me:$LINENO: checking for $ac_word" >&5
17579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17580 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17581   echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583   if test -n "$ac_ct_GETCONF"; then
17584   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17585 else
17586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17587 for as_dir in $PATH
17588 do
17589   IFS=$as_save_IFS
17590   test -z "$as_dir" && as_dir=.
17591   for ac_exec_ext in '' $ac_executable_extensions; do
17592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17593     ac_cv_prog_ac_ct_GETCONF="getconf"
17594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17595     break 2
17596   fi
17597 done
17598 done
17599
17600 fi
17601 fi
17602 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17603 if test -n "$ac_ct_GETCONF"; then
17604   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17605 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17606 else
17607   echo "$as_me:$LINENO: result: no" >&5
17608 echo "${ECHO_T}no" >&6
17609 fi
17610
17611   GETCONF=$ac_ct_GETCONF
17612 else
17613   GETCONF="$ac_cv_prog_GETCONF"
17614 fi
17615
17616      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17617 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17618 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17619   echo $ECHO_N "(cached) $ECHO_C" >&6
17620 else
17621   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17622         ac_cv_sys_largefile_CFLAGS=no
17623         case "$host_os" in
17624            # IRIX 6.2 and later require cc -n32.
17625            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17626              if test "$GCC" != yes; then
17627                ac_cv_sys_largefile_CFLAGS=-n32
17628              fi
17629              ac_save_CC="$CC"
17630              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17631              cat >conftest.$ac_ext <<_ACEOF
17632 /* confdefs.h.  */
17633 _ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h.  */
17637
17638 int
17639 main ()
17640 {
17641
17642   ;
17643   return 0;
17644 }
17645 _ACEOF
17646 rm -f conftest.$ac_objext conftest$ac_exeext
17647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17648   (eval $ac_link) 2>conftest.er1
17649   ac_status=$?
17650   grep -v '^ *+' conftest.er1 >conftest.err
17651   rm -f conftest.er1
17652   cat conftest.err >&5
17653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654   (exit $ac_status); } &&
17655          { ac_try='test -z "$ac_c_werror_flag"
17656                          || test ! -s conftest.err'
17657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17658   (eval $ac_try) 2>&5
17659   ac_status=$?
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); }; } &&
17662          { ac_try='test -s conftest$ac_exeext'
17663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664   (eval $ac_try) 2>&5
17665   ac_status=$?
17666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667   (exit $ac_status); }; }; then
17668   :
17669 else
17670   echo "$as_me: failed program was:" >&5
17671 sed 's/^/| /' conftest.$ac_ext >&5
17672
17673 ac_cv_sys_largefile_CFLAGS=no
17674 fi
17675 rm -f conftest.err conftest.$ac_objext \
17676       conftest$ac_exeext conftest.$ac_ext
17677              CC="$ac_save_CC"
17678            esac
17679       }
17680 fi
17681 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17682 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17683      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17684 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17685 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17689         ac_cv_sys_largefile_LDFLAGS=no
17690
17691       }
17692 fi
17693 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17694 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17695      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17696 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17697 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17698   echo $ECHO_N "(cached) $ECHO_C" >&6
17699 else
17700   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17701         ac_cv_sys_largefile_LIBS=no
17702
17703       }
17704 fi
17705 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17706 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17707
17708      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17709        case "$ac_flag" in
17710        no) ;;
17711        -D_FILE_OFFSET_BITS=*) ;;
17712        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17713        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17714        -D?* | -I?*)
17715          case "$ac_flag" in
17716    no) ;;
17717    ?*)
17718      case "$CPPFLAGS" in
17719      '') CPPFLAGS="$ac_flag" ;;
17720      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17721      esac ;;
17722    esac ;;
17723        *)
17724          case "$ac_flag" in
17725    no) ;;
17726    ?*)
17727      case "$CFLAGS" in
17728      '') CFLAGS="$ac_flag" ;;
17729      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17730      esac ;;
17731    esac ;;
17732        esac
17733      done
17734      case "$ac_cv_sys_largefile_LDFLAGS" in
17735    no) ;;
17736    ?*)
17737      case "$LDFLAGS" in
17738      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17739      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17740      esac ;;
17741    esac
17742      case "$ac_cv_sys_largefile_LIBS" in
17743    no) ;;
17744    ?*)
17745      case "$LIBS" in
17746      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17747      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17748      esac ;;
17749    esac
17750      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17751 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17752 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17753   echo $ECHO_N "(cached) $ECHO_C" >&6
17754 else
17755   ac_cv_sys_file_offset_bits=no
17756       ac_cv_sys_file_offset_bits=64
17757       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17758         case "$ac_flag" in
17759         -D_FILE_OFFSET_BITS)
17760           ac_cv_sys_file_offset_bits=1 ;;
17761         -D_FILE_OFFSET_BITS=*)
17762           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17763         esac
17764       done
17765
17766 fi
17767 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17768 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17769    if test "$ac_cv_sys_file_offset_bits" != no; then
17770
17771 cat >>confdefs.h <<_ACEOF
17772 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17773 _ACEOF
17774
17775    fi
17776      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17777 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17778 if test "${ac_cv_sys_largefile_source+set}" = set; then
17779   echo $ECHO_N "(cached) $ECHO_C" >&6
17780 else
17781   ac_cv_sys_largefile_source=no
17782       ac_cv_sys_largefile_source=1
17783       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17784         case "$ac_flag" in
17785         -D_LARGEFILE_SOURCE)
17786           ac_cv_sys_largefile_source=1 ;;
17787         -D_LARGEFILE_SOURCE=*)
17788           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17789         esac
17790       done
17791
17792 fi
17793 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17794 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17795    if test "$ac_cv_sys_largefile_source" != no; then
17796
17797 cat >>confdefs.h <<_ACEOF
17798 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17799 _ACEOF
17800
17801    fi
17802      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17803 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17804 if test "${ac_cv_sys_large_files+set}" = set; then
17805   echo $ECHO_N "(cached) $ECHO_C" >&6
17806 else
17807   ac_cv_sys_large_files=no
17808       ac_cv_sys_large_files=1
17809       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17810         case "$ac_flag" in
17811         -D_LARGE_FILES)
17812           ac_cv_sys_large_files=1 ;;
17813         -D_LARGE_FILES=*)
17814           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17815         esac
17816       done
17817
17818 fi
17819 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17820 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17821    if test "$ac_cv_sys_large_files" != no; then
17822
17823 cat >>confdefs.h <<_ACEOF
17824 #define _LARGE_FILES $ac_cv_sys_large_files
17825 _ACEOF
17826
17827    fi
17828    fi
17829
17830
17831
17832 echo "$as_me:$LINENO: checking for X" >&5
17833 echo $ECHO_N "checking for X... $ECHO_C" >&6
17834
17835
17836 # Check whether --with-x or --without-x was given.
17837 if test "${with_x+set}" = set; then
17838   withval="$with_x"
17839
17840 fi;
17841 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17842 if test "x$with_x" = xno; then
17843   # The user explicitly disabled X.
17844   have_x=disabled
17845 else
17846   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17847     # Both variables are already set.
17848     have_x=yes
17849   else
17850     if test "${ac_cv_have_x+set}" = set; then
17851   echo $ECHO_N "(cached) $ECHO_C" >&6
17852 else
17853   # One or both of the vars are not set, and there is no cached value.
17854 ac_x_includes=no ac_x_libraries=no
17855 rm -fr conftest.dir
17856 if mkdir conftest.dir; then
17857   cd conftest.dir
17858   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17859   cat >Imakefile <<'_ACEOF'
17860 acfindx:
17861         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17862 _ACEOF
17863   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17864     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17865     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17866     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17867     for ac_extension in a so sl; do
17868       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17869          test -f $ac_im_libdir/libX11.$ac_extension; then
17870         ac_im_usrlibdir=$ac_im_libdir; break
17871       fi
17872     done
17873     # Screen out bogus values from the imake configuration.  They are
17874     # bogus both because they are the default anyway, and because
17875     # using them would break gcc on systems where it needs fixed includes.
17876     case $ac_im_incroot in
17877         /usr/include) ;;
17878         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17879     esac
17880     case $ac_im_usrlibdir in
17881         /usr/lib | /lib) ;;
17882         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17883     esac
17884   fi
17885   cd ..
17886   rm -fr conftest.dir
17887 fi
17888
17889 # Standard set of common directories for X headers.
17890 # Check X11 before X11Rn because it is often a symlink to the current release.
17891 ac_x_header_dirs='
17892 /usr/X11/include
17893 /usr/X11R6/include
17894 /usr/X11R5/include
17895 /usr/X11R4/include
17896
17897 /usr/include/X11
17898 /usr/include/X11R6
17899 /usr/include/X11R5
17900 /usr/include/X11R4
17901
17902 /usr/local/X11/include
17903 /usr/local/X11R6/include
17904 /usr/local/X11R5/include
17905 /usr/local/X11R4/include
17906
17907 /usr/local/include/X11
17908 /usr/local/include/X11R6
17909 /usr/local/include/X11R5
17910 /usr/local/include/X11R4
17911
17912 /usr/X386/include
17913 /usr/x386/include
17914 /usr/XFree86/include/X11
17915
17916 /usr/include
17917 /usr/local/include
17918 /usr/unsupported/include
17919 /usr/athena/include
17920 /usr/local/x11r5/include
17921 /usr/lpp/Xamples/include
17922
17923 /usr/openwin/include
17924 /usr/openwin/share/include'
17925
17926 if test "$ac_x_includes" = no; then
17927   # Guess where to find include files, by looking for Xlib.h.
17928   # First, try using that file with no special directory specified.
17929   cat >conftest.$ac_ext <<_ACEOF
17930 /* confdefs.h.  */
17931 _ACEOF
17932 cat confdefs.h >>conftest.$ac_ext
17933 cat >>conftest.$ac_ext <<_ACEOF
17934 /* end confdefs.h.  */
17935 #include <X11/Xlib.h>
17936 _ACEOF
17937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17939   ac_status=$?
17940   grep -v '^ *+' conftest.er1 >conftest.err
17941   rm -f conftest.er1
17942   cat conftest.err >&5
17943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17944   (exit $ac_status); } >/dev/null; then
17945   if test -s conftest.err; then
17946     ac_cpp_err=$ac_c_preproc_warn_flag
17947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17948   else
17949     ac_cpp_err=
17950   fi
17951 else
17952   ac_cpp_err=yes
17953 fi
17954 if test -z "$ac_cpp_err"; then
17955   # We can compile using X headers with no special include directory.
17956 ac_x_includes=
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961   for ac_dir in $ac_x_header_dirs; do
17962   if test -r "$ac_dir/X11/Xlib.h"; then
17963     ac_x_includes=$ac_dir
17964     break
17965   fi
17966 done
17967 fi
17968 rm -f conftest.err conftest.$ac_ext
17969 fi # $ac_x_includes = no
17970
17971 if test "$ac_x_libraries" = no; then
17972   # Check for the libraries.
17973   # See if we find them without any special options.
17974   # Don't add to $LIBS permanently.
17975   ac_save_LIBS=$LIBS
17976   LIBS="-lX11 $LIBS"
17977   cat >conftest.$ac_ext <<_ACEOF
17978 /* confdefs.h.  */
17979 _ACEOF
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h.  */
17983 #include <X11/Xlib.h>
17984 int
17985 main ()
17986 {
17987 XrmInitialize ()
17988   ;
17989   return 0;
17990 }
17991 _ACEOF
17992 rm -f conftest.$ac_objext conftest$ac_exeext
17993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17994   (eval $ac_link) 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } &&
18001          { ac_try='test -z "$ac_c_werror_flag"
18002                          || test ! -s conftest.err'
18003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18004   (eval $ac_try) 2>&5
18005   ac_status=$?
18006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007   (exit $ac_status); }; } &&
18008          { ac_try='test -s conftest$ac_exeext'
18009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18010   (eval $ac_try) 2>&5
18011   ac_status=$?
18012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18013   (exit $ac_status); }; }; then
18014   LIBS=$ac_save_LIBS
18015 # We can link X programs with no special library path.
18016 ac_x_libraries=
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021 LIBS=$ac_save_LIBS
18022 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18023 do
18024   # Don't even attempt the hair of trying to link an X program!
18025   for ac_extension in a so sl; do
18026     if test -r $ac_dir/libXt.$ac_extension; then
18027       ac_x_libraries=$ac_dir
18028       break 2
18029     fi
18030   done
18031 done
18032 fi
18033 rm -f conftest.err conftest.$ac_objext \
18034       conftest$ac_exeext conftest.$ac_ext
18035 fi # $ac_x_libraries = no
18036
18037 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18038   # Didn't find X anywhere.  Cache the known absence of X.
18039   ac_cv_have_x="have_x=no"
18040 else
18041   # Record where we found X for the cache.
18042   ac_cv_have_x="have_x=yes \
18043                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18044 fi
18045 fi
18046
18047   fi
18048   eval "$ac_cv_have_x"
18049 fi # $with_x != no
18050
18051 if test "$have_x" != yes; then
18052   echo "$as_me:$LINENO: result: $have_x" >&5
18053 echo "${ECHO_T}$have_x" >&6
18054   no_x=yes
18055 else
18056   # If each of the values was on the command line, it overrides each guess.
18057   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18058   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18059   # Update the cache value to reflect the command line values.
18060   ac_cv_have_x="have_x=yes \
18061                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18062   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18063 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18064 fi
18065
18066 if test "$no_x" = yes; then
18067   # Not all programs may use this symbol, but it does not hurt to define it.
18068
18069 cat >>confdefs.h <<\_ACEOF
18070 #define X_DISPLAY_MISSING 1
18071 _ACEOF
18072
18073   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18074 else
18075   if test -n "$x_includes"; then
18076     X_CFLAGS="$X_CFLAGS -I$x_includes"
18077   fi
18078
18079   # It would also be nice to do this for all -L options, not just this one.
18080   if test -n "$x_libraries"; then
18081     X_LIBS="$X_LIBS -L$x_libraries"
18082     # For Solaris; some versions of Sun CC require a space after -R and
18083     # others require no space.  Words are not sufficient . . . .
18084     case `(uname -sr) 2>/dev/null` in
18085     "SunOS 5"*)
18086       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18087 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18088       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18089       cat >conftest.$ac_ext <<_ACEOF
18090 /* confdefs.h.  */
18091 _ACEOF
18092 cat confdefs.h >>conftest.$ac_ext
18093 cat >>conftest.$ac_ext <<_ACEOF
18094 /* end confdefs.h.  */
18095
18096 int
18097 main ()
18098 {
18099
18100   ;
18101   return 0;
18102 }
18103 _ACEOF
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106   (eval $ac_link) 2>conftest.er1
18107   ac_status=$?
18108   grep -v '^ *+' conftest.er1 >conftest.err
18109   rm -f conftest.er1
18110   cat conftest.err >&5
18111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112   (exit $ac_status); } &&
18113          { ac_try='test -z "$ac_c_werror_flag"
18114                          || test ! -s conftest.err'
18115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18116   (eval $ac_try) 2>&5
18117   ac_status=$?
18118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119   (exit $ac_status); }; } &&
18120          { ac_try='test -s conftest$ac_exeext'
18121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122   (eval $ac_try) 2>&5
18123   ac_status=$?
18124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125   (exit $ac_status); }; }; then
18126   ac_R_nospace=yes
18127 else
18128   echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 ac_R_nospace=no
18132 fi
18133 rm -f conftest.err conftest.$ac_objext \
18134       conftest$ac_exeext conftest.$ac_ext
18135       if test $ac_R_nospace = yes; then
18136         echo "$as_me:$LINENO: result: no" >&5
18137 echo "${ECHO_T}no" >&6
18138         X_LIBS="$X_LIBS -R$x_libraries"
18139       else
18140         LIBS="$ac_xsave_LIBS -R $x_libraries"
18141         cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h.  */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h.  */
18147
18148 int
18149 main ()
18150 {
18151
18152   ;
18153   return 0;
18154 }
18155 _ACEOF
18156 rm -f conftest.$ac_objext conftest$ac_exeext
18157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18158   (eval $ac_link) 2>conftest.er1
18159   ac_status=$?
18160   grep -v '^ *+' conftest.er1 >conftest.err
18161   rm -f conftest.er1
18162   cat conftest.err >&5
18163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164   (exit $ac_status); } &&
18165          { ac_try='test -z "$ac_c_werror_flag"
18166                          || test ! -s conftest.err'
18167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18168   (eval $ac_try) 2>&5
18169   ac_status=$?
18170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171   (exit $ac_status); }; } &&
18172          { ac_try='test -s conftest$ac_exeext'
18173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174   (eval $ac_try) 2>&5
18175   ac_status=$?
18176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177   (exit $ac_status); }; }; then
18178   ac_R_space=yes
18179 else
18180   echo "$as_me: failed program was:" >&5
18181 sed 's/^/| /' conftest.$ac_ext >&5
18182
18183 ac_R_space=no
18184 fi
18185 rm -f conftest.err conftest.$ac_objext \
18186       conftest$ac_exeext conftest.$ac_ext
18187         if test $ac_R_space = yes; then
18188           echo "$as_me:$LINENO: result: yes" >&5
18189 echo "${ECHO_T}yes" >&6
18190           X_LIBS="$X_LIBS -R $x_libraries"
18191         else
18192           echo "$as_me:$LINENO: result: neither works" >&5
18193 echo "${ECHO_T}neither works" >&6
18194         fi
18195       fi
18196       LIBS=$ac_xsave_LIBS
18197     esac
18198   fi
18199
18200   # Check for system-dependent libraries X programs must link with.
18201   # Do this before checking for the system-independent R6 libraries
18202   # (-lICE), since we may need -lsocket or whatever for X linking.
18203
18204   if test "$ISC" = yes; then
18205     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18206   else
18207     # Martyn Johnson says this is needed for Ultrix, if the X
18208     # libraries were built with DECnet support.  And Karl Berry says
18209     # the Alpha needs dnet_stub (dnet does not exist).
18210     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18211     cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217
18218 /* Override any gcc2 internal prototype to avoid an error.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 /* We use char because int might match the return type of a gcc2
18223    builtin and then its argument prototype would still apply.  */
18224 char XOpenDisplay ();
18225 int
18226 main ()
18227 {
18228 XOpenDisplay ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 rm -f conftest.$ac_objext conftest$ac_exeext
18234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18235   (eval $ac_link) 2>conftest.er1
18236   ac_status=$?
18237   grep -v '^ *+' conftest.er1 >conftest.err
18238   rm -f conftest.er1
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   (exit $ac_status); } &&
18242          { ac_try='test -z "$ac_c_werror_flag"
18243                          || test ! -s conftest.err'
18244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18245   (eval $ac_try) 2>&5
18246   ac_status=$?
18247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248   (exit $ac_status); }; } &&
18249          { ac_try='test -s conftest$ac_exeext'
18250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18251   (eval $ac_try) 2>&5
18252   ac_status=$?
18253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254   (exit $ac_status); }; }; then
18255   :
18256 else
18257   echo "$as_me: failed program was:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18259
18260 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18261 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18262 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18263   echo $ECHO_N "(cached) $ECHO_C" >&6
18264 else
18265   ac_check_lib_save_LIBS=$LIBS
18266 LIBS="-ldnet  $LIBS"
18267 cat >conftest.$ac_ext <<_ACEOF
18268 /* confdefs.h.  */
18269 _ACEOF
18270 cat confdefs.h >>conftest.$ac_ext
18271 cat >>conftest.$ac_ext <<_ACEOF
18272 /* end confdefs.h.  */
18273
18274 /* Override any gcc2 internal prototype to avoid an error.  */
18275 #ifdef __cplusplus
18276 extern "C"
18277 #endif
18278 /* We use char because int might match the return type of a gcc2
18279    builtin and then its argument prototype would still apply.  */
18280 char dnet_ntoa ();
18281 int
18282 main ()
18283 {
18284 dnet_ntoa ();
18285   ;
18286   return 0;
18287 }
18288 _ACEOF
18289 rm -f conftest.$ac_objext conftest$ac_exeext
18290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18291   (eval $ac_link) 2>conftest.er1
18292   ac_status=$?
18293   grep -v '^ *+' conftest.er1 >conftest.err
18294   rm -f conftest.er1
18295   cat conftest.err >&5
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); } &&
18298          { ac_try='test -z "$ac_c_werror_flag"
18299                          || test ! -s conftest.err'
18300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18301   (eval $ac_try) 2>&5
18302   ac_status=$?
18303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304   (exit $ac_status); }; } &&
18305          { ac_try='test -s conftest$ac_exeext'
18306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18307   (eval $ac_try) 2>&5
18308   ac_status=$?
18309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18310   (exit $ac_status); }; }; then
18311   ac_cv_lib_dnet_dnet_ntoa=yes
18312 else
18313   echo "$as_me: failed program was:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18315
18316 ac_cv_lib_dnet_dnet_ntoa=no
18317 fi
18318 rm -f conftest.err conftest.$ac_objext \
18319       conftest$ac_exeext conftest.$ac_ext
18320 LIBS=$ac_check_lib_save_LIBS
18321 fi
18322 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18323 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18324 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18325   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18326 fi
18327
18328     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18329       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18330 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18331 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   ac_check_lib_save_LIBS=$LIBS
18335 LIBS="-ldnet_stub  $LIBS"
18336 cat >conftest.$ac_ext <<_ACEOF
18337 /* confdefs.h.  */
18338 _ACEOF
18339 cat confdefs.h >>conftest.$ac_ext
18340 cat >>conftest.$ac_ext <<_ACEOF
18341 /* end confdefs.h.  */
18342
18343 /* Override any gcc2 internal prototype to avoid an error.  */
18344 #ifdef __cplusplus
18345 extern "C"
18346 #endif
18347 /* We use char because int might match the return type of a gcc2
18348    builtin and then its argument prototype would still apply.  */
18349 char dnet_ntoa ();
18350 int
18351 main ()
18352 {
18353 dnet_ntoa ();
18354   ;
18355   return 0;
18356 }
18357 _ACEOF
18358 rm -f conftest.$ac_objext conftest$ac_exeext
18359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18360   (eval $ac_link) 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } &&
18367          { ac_try='test -z "$ac_c_werror_flag"
18368                          || test ! -s conftest.err'
18369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370   (eval $ac_try) 2>&5
18371   ac_status=$?
18372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373   (exit $ac_status); }; } &&
18374          { ac_try='test -s conftest$ac_exeext'
18375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376   (eval $ac_try) 2>&5
18377   ac_status=$?
18378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379   (exit $ac_status); }; }; then
18380   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18381 else
18382   echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18384
18385 ac_cv_lib_dnet_stub_dnet_ntoa=no
18386 fi
18387 rm -f conftest.err conftest.$ac_objext \
18388       conftest$ac_exeext conftest.$ac_ext
18389 LIBS=$ac_check_lib_save_LIBS
18390 fi
18391 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18392 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18393 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18394   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18395 fi
18396
18397     fi
18398 fi
18399 rm -f conftest.err conftest.$ac_objext \
18400       conftest$ac_exeext conftest.$ac_ext
18401     LIBS="$ac_xsave_LIBS"
18402
18403     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18404     # to get the SysV transport functions.
18405     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18406     # needs -lnsl.
18407     # The nsl library prevents programs from opening the X display
18408     # on Irix 5.2, according to T.E. Dickey.
18409     # The functions gethostbyname, getservbyname, and inet_addr are
18410     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18411     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18412 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18413 if test "${ac_cv_func_gethostbyname+set}" = set; then
18414   echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416   cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h.  */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h.  */
18422 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18424 #define gethostbyname innocuous_gethostbyname
18425
18426 /* System header to define __stub macros and hopefully few prototypes,
18427     which can conflict with char gethostbyname (); below.
18428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429     <limits.h> exists even on freestanding compilers.  */
18430
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436
18437 #undef gethostbyname
18438
18439 /* Override any gcc2 internal prototype to avoid an error.  */
18440 #ifdef __cplusplus
18441 extern "C"
18442 {
18443 #endif
18444 /* We use char because int might match the return type of a gcc2
18445    builtin and then its argument prototype would still apply.  */
18446 char gethostbyname ();
18447 /* The GNU C library defines this for functions which it implements
18448     to always fail with ENOSYS.  Some functions are actually named
18449     something starting with __ and the normal name is an alias.  */
18450 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18451 choke me
18452 #else
18453 char (*f) () = gethostbyname;
18454 #endif
18455 #ifdef __cplusplus
18456 }
18457 #endif
18458
18459 int
18460 main ()
18461 {
18462 return f != gethostbyname;
18463   ;
18464   return 0;
18465 }
18466 _ACEOF
18467 rm -f conftest.$ac_objext conftest$ac_exeext
18468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18469   (eval $ac_link) 2>conftest.er1
18470   ac_status=$?
18471   grep -v '^ *+' conftest.er1 >conftest.err
18472   rm -f conftest.er1
18473   cat conftest.err >&5
18474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475   (exit $ac_status); } &&
18476          { ac_try='test -z "$ac_c_werror_flag"
18477                          || test ! -s conftest.err'
18478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479   (eval $ac_try) 2>&5
18480   ac_status=$?
18481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482   (exit $ac_status); }; } &&
18483          { ac_try='test -s conftest$ac_exeext'
18484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18485   (eval $ac_try) 2>&5
18486   ac_status=$?
18487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18488   (exit $ac_status); }; }; then
18489   ac_cv_func_gethostbyname=yes
18490 else
18491   echo "$as_me: failed program was:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18493
18494 ac_cv_func_gethostbyname=no
18495 fi
18496 rm -f conftest.err conftest.$ac_objext \
18497       conftest$ac_exeext conftest.$ac_ext
18498 fi
18499 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18500 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18501
18502     if test $ac_cv_func_gethostbyname = no; then
18503       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18504 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18505 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   ac_check_lib_save_LIBS=$LIBS
18509 LIBS="-lnsl  $LIBS"
18510 cat >conftest.$ac_ext <<_ACEOF
18511 /* confdefs.h.  */
18512 _ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h.  */
18516
18517 /* Override any gcc2 internal prototype to avoid an error.  */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 /* We use char because int might match the return type of a gcc2
18522    builtin and then its argument prototype would still apply.  */
18523 char gethostbyname ();
18524 int
18525 main ()
18526 {
18527 gethostbyname ();
18528   ;
18529   return 0;
18530 }
18531 _ACEOF
18532 rm -f conftest.$ac_objext conftest$ac_exeext
18533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18534   (eval $ac_link) 2>conftest.er1
18535   ac_status=$?
18536   grep -v '^ *+' conftest.er1 >conftest.err
18537   rm -f conftest.er1
18538   cat conftest.err >&5
18539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540   (exit $ac_status); } &&
18541          { ac_try='test -z "$ac_c_werror_flag"
18542                          || test ! -s conftest.err'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; } &&
18548          { ac_try='test -s conftest$ac_exeext'
18549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18550   (eval $ac_try) 2>&5
18551   ac_status=$?
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); }; }; then
18554   ac_cv_lib_nsl_gethostbyname=yes
18555 else
18556   echo "$as_me: failed program was:" >&5
18557 sed 's/^/| /' conftest.$ac_ext >&5
18558
18559 ac_cv_lib_nsl_gethostbyname=no
18560 fi
18561 rm -f conftest.err conftest.$ac_objext \
18562       conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
18565 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18566 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18567 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18568   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18569 fi
18570
18571       if test $ac_cv_lib_nsl_gethostbyname = no; then
18572         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18573 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18574 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18575   echo $ECHO_N "(cached) $ECHO_C" >&6
18576 else
18577   ac_check_lib_save_LIBS=$LIBS
18578 LIBS="-lbsd  $LIBS"
18579 cat >conftest.$ac_ext <<_ACEOF
18580 /* confdefs.h.  */
18581 _ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h.  */
18585
18586 /* Override any gcc2 internal prototype to avoid an error.  */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 /* We use char because int might match the return type of a gcc2
18591    builtin and then its argument prototype would still apply.  */
18592 char gethostbyname ();
18593 int
18594 main ()
18595 {
18596 gethostbyname ();
18597   ;
18598   return 0;
18599 }
18600 _ACEOF
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603   (eval $ac_link) 2>conftest.er1
18604   ac_status=$?
18605   grep -v '^ *+' conftest.er1 >conftest.err
18606   rm -f conftest.er1
18607   cat conftest.err >&5
18608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609   (exit $ac_status); } &&
18610          { ac_try='test -z "$ac_c_werror_flag"
18611                          || test ! -s conftest.err'
18612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613   (eval $ac_try) 2>&5
18614   ac_status=$?
18615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616   (exit $ac_status); }; } &&
18617          { ac_try='test -s conftest$ac_exeext'
18618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619   (eval $ac_try) 2>&5
18620   ac_status=$?
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); }; }; then
18623   ac_cv_lib_bsd_gethostbyname=yes
18624 else
18625   echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18627
18628 ac_cv_lib_bsd_gethostbyname=no
18629 fi
18630 rm -f conftest.err conftest.$ac_objext \
18631       conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18633 fi
18634 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18635 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18636 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18637   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18638 fi
18639
18640       fi
18641     fi
18642
18643     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18644     # socket/setsockopt and other routines are undefined under SCO ODT
18645     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18646     # on later versions), says Simon Leinen: it contains gethostby*
18647     # variants that don't use the name server (or something).  -lsocket
18648     # must be given before -lnsl if both are needed.  We assume that
18649     # if connect needs -lnsl, so does gethostbyname.
18650     echo "$as_me:$LINENO: checking for connect" >&5
18651 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18652 if test "${ac_cv_func_connect+set}" = set; then
18653   echo $ECHO_N "(cached) $ECHO_C" >&6
18654 else
18655   cat >conftest.$ac_ext <<_ACEOF
18656 /* confdefs.h.  */
18657 _ACEOF
18658 cat confdefs.h >>conftest.$ac_ext
18659 cat >>conftest.$ac_ext <<_ACEOF
18660 /* end confdefs.h.  */
18661 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18662    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18663 #define connect innocuous_connect
18664
18665 /* System header to define __stub macros and hopefully few prototypes,
18666     which can conflict with char connect (); below.
18667     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18668     <limits.h> exists even on freestanding compilers.  */
18669
18670 #ifdef __STDC__
18671 # include <limits.h>
18672 #else
18673 # include <assert.h>
18674 #endif
18675
18676 #undef connect
18677
18678 /* Override any gcc2 internal prototype to avoid an error.  */
18679 #ifdef __cplusplus
18680 extern "C"
18681 {
18682 #endif
18683 /* We use char because int might match the return type of a gcc2
18684    builtin and then its argument prototype would still apply.  */
18685 char connect ();
18686 /* The GNU C library defines this for functions which it implements
18687     to always fail with ENOSYS.  Some functions are actually named
18688     something starting with __ and the normal name is an alias.  */
18689 #if defined (__stub_connect) || defined (__stub___connect)
18690 choke me
18691 #else
18692 char (*f) () = connect;
18693 #endif
18694 #ifdef __cplusplus
18695 }
18696 #endif
18697
18698 int
18699 main ()
18700 {
18701 return f != connect;
18702   ;
18703   return 0;
18704 }
18705 _ACEOF
18706 rm -f conftest.$ac_objext conftest$ac_exeext
18707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18708   (eval $ac_link) 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } &&
18715          { ac_try='test -z "$ac_c_werror_flag"
18716                          || test ! -s conftest.err'
18717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18718   (eval $ac_try) 2>&5
18719   ac_status=$?
18720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721   (exit $ac_status); }; } &&
18722          { ac_try='test -s conftest$ac_exeext'
18723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724   (eval $ac_try) 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; }; then
18728   ac_cv_func_connect=yes
18729 else
18730   echo "$as_me: failed program was:" >&5
18731 sed 's/^/| /' conftest.$ac_ext >&5
18732
18733 ac_cv_func_connect=no
18734 fi
18735 rm -f conftest.err conftest.$ac_objext \
18736       conftest$ac_exeext conftest.$ac_ext
18737 fi
18738 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18739 echo "${ECHO_T}$ac_cv_func_connect" >&6
18740
18741     if test $ac_cv_func_connect = no; then
18742       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18743 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18744 if test "${ac_cv_lib_socket_connect+set}" = set; then
18745   echo $ECHO_N "(cached) $ECHO_C" >&6
18746 else
18747   ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18749 cat >conftest.$ac_ext <<_ACEOF
18750 /* confdefs.h.  */
18751 _ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h.  */
18755
18756 /* Override any gcc2 internal prototype to avoid an error.  */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 /* We use char because int might match the return type of a gcc2
18761    builtin and then its argument prototype would still apply.  */
18762 char connect ();
18763 int
18764 main ()
18765 {
18766 connect ();
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18773   (eval $ac_link) 2>conftest.er1
18774   ac_status=$?
18775   grep -v '^ *+' conftest.er1 >conftest.err
18776   rm -f conftest.er1
18777   cat conftest.err >&5
18778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18779   (exit $ac_status); } &&
18780          { ac_try='test -z "$ac_c_werror_flag"
18781                          || test ! -s conftest.err'
18782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18783   (eval $ac_try) 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; } &&
18787          { ac_try='test -s conftest$ac_exeext'
18788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18789   (eval $ac_try) 2>&5
18790   ac_status=$?
18791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792   (exit $ac_status); }; }; then
18793   ac_cv_lib_socket_connect=yes
18794 else
18795   echo "$as_me: failed program was:" >&5
18796 sed 's/^/| /' conftest.$ac_ext >&5
18797
18798 ac_cv_lib_socket_connect=no
18799 fi
18800 rm -f conftest.err conftest.$ac_objext \
18801       conftest$ac_exeext conftest.$ac_ext
18802 LIBS=$ac_check_lib_save_LIBS
18803 fi
18804 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18805 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18806 if test $ac_cv_lib_socket_connect = yes; then
18807   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18808 fi
18809
18810     fi
18811
18812     # Guillermo Gomez says -lposix is necessary on A/UX.
18813     echo "$as_me:$LINENO: checking for remove" >&5
18814 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18815 if test "${ac_cv_func_remove+set}" = set; then
18816   echo $ECHO_N "(cached) $ECHO_C" >&6
18817 else
18818   cat >conftest.$ac_ext <<_ACEOF
18819 /* confdefs.h.  */
18820 _ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h.  */
18824 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18826 #define remove innocuous_remove
18827
18828 /* System header to define __stub macros and hopefully few prototypes,
18829     which can conflict with char remove (); below.
18830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18831     <limits.h> exists even on freestanding compilers.  */
18832
18833 #ifdef __STDC__
18834 # include <limits.h>
18835 #else
18836 # include <assert.h>
18837 #endif
18838
18839 #undef remove
18840
18841 /* Override any gcc2 internal prototype to avoid an error.  */
18842 #ifdef __cplusplus
18843 extern "C"
18844 {
18845 #endif
18846 /* We use char because int might match the return type of a gcc2
18847    builtin and then its argument prototype would still apply.  */
18848 char remove ();
18849 /* The GNU C library defines this for functions which it implements
18850     to always fail with ENOSYS.  Some functions are actually named
18851     something starting with __ and the normal name is an alias.  */
18852 #if defined (__stub_remove) || defined (__stub___remove)
18853 choke me
18854 #else
18855 char (*f) () = remove;
18856 #endif
18857 #ifdef __cplusplus
18858 }
18859 #endif
18860
18861 int
18862 main ()
18863 {
18864 return f != remove;
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_func_remove=yes
18892 else
18893   echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_cv_func_remove=no
18897 fi
18898 rm -f conftest.err conftest.$ac_objext \
18899       conftest$ac_exeext conftest.$ac_ext
18900 fi
18901 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18902 echo "${ECHO_T}$ac_cv_func_remove" >&6
18903
18904     if test $ac_cv_func_remove = no; then
18905       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18906 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18907 if test "${ac_cv_lib_posix_remove+set}" = set; then
18908   echo $ECHO_N "(cached) $ECHO_C" >&6
18909 else
18910   ac_check_lib_save_LIBS=$LIBS
18911 LIBS="-lposix  $LIBS"
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h.  */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h.  */
18918
18919 /* Override any gcc2 internal prototype to avoid an error.  */
18920 #ifdef __cplusplus
18921 extern "C"
18922 #endif
18923 /* We use char because int might match the return type of a gcc2
18924    builtin and then its argument prototype would still apply.  */
18925 char remove ();
18926 int
18927 main ()
18928 {
18929 remove ();
18930   ;
18931   return 0;
18932 }
18933 _ACEOF
18934 rm -f conftest.$ac_objext conftest$ac_exeext
18935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18936   (eval $ac_link) 2>conftest.er1
18937   ac_status=$?
18938   grep -v '^ *+' conftest.er1 >conftest.err
18939   rm -f conftest.er1
18940   cat conftest.err >&5
18941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942   (exit $ac_status); } &&
18943          { ac_try='test -z "$ac_c_werror_flag"
18944                          || test ! -s conftest.err'
18945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946   (eval $ac_try) 2>&5
18947   ac_status=$?
18948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949   (exit $ac_status); }; } &&
18950          { ac_try='test -s conftest$ac_exeext'
18951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952   (eval $ac_try) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; }; then
18956   ac_cv_lib_posix_remove=yes
18957 else
18958   echo "$as_me: failed program was:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18960
18961 ac_cv_lib_posix_remove=no
18962 fi
18963 rm -f conftest.err conftest.$ac_objext \
18964       conftest$ac_exeext conftest.$ac_ext
18965 LIBS=$ac_check_lib_save_LIBS
18966 fi
18967 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18968 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18969 if test $ac_cv_lib_posix_remove = yes; then
18970   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18971 fi
18972
18973     fi
18974
18975     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18976     echo "$as_me:$LINENO: checking for shmat" >&5
18977 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18978 if test "${ac_cv_func_shmat+set}" = set; then
18979   echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981   cat >conftest.$ac_ext <<_ACEOF
18982 /* confdefs.h.  */
18983 _ACEOF
18984 cat confdefs.h >>conftest.$ac_ext
18985 cat >>conftest.$ac_ext <<_ACEOF
18986 /* end confdefs.h.  */
18987 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18989 #define shmat innocuous_shmat
18990
18991 /* System header to define __stub macros and hopefully few prototypes,
18992     which can conflict with char shmat (); below.
18993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18994     <limits.h> exists even on freestanding compilers.  */
18995
18996 #ifdef __STDC__
18997 # include <limits.h>
18998 #else
18999 # include <assert.h>
19000 #endif
19001
19002 #undef shmat
19003
19004 /* Override any gcc2 internal prototype to avoid an error.  */
19005 #ifdef __cplusplus
19006 extern "C"
19007 {
19008 #endif
19009 /* We use char because int might match the return type of a gcc2
19010    builtin and then its argument prototype would still apply.  */
19011 char shmat ();
19012 /* The GNU C library defines this for functions which it implements
19013     to always fail with ENOSYS.  Some functions are actually named
19014     something starting with __ and the normal name is an alias.  */
19015 #if defined (__stub_shmat) || defined (__stub___shmat)
19016 choke me
19017 #else
19018 char (*f) () = shmat;
19019 #endif
19020 #ifdef __cplusplus
19021 }
19022 #endif
19023
19024 int
19025 main ()
19026 {
19027 return f != shmat;
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_func_shmat=yes
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 ac_cv_func_shmat=no
19060 fi
19061 rm -f conftest.err conftest.$ac_objext \
19062       conftest$ac_exeext conftest.$ac_ext
19063 fi
19064 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19065 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19066
19067     if test $ac_cv_func_shmat = no; then
19068       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19069 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19070 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19071   echo $ECHO_N "(cached) $ECHO_C" >&6
19072 else
19073   ac_check_lib_save_LIBS=$LIBS
19074 LIBS="-lipc  $LIBS"
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h.  */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h.  */
19081
19082 /* Override any gcc2 internal prototype to avoid an error.  */
19083 #ifdef __cplusplus
19084 extern "C"
19085 #endif
19086 /* We use char because int might match the return type of a gcc2
19087    builtin and then its argument prototype would still apply.  */
19088 char shmat ();
19089 int
19090 main ()
19091 {
19092 shmat ();
19093   ;
19094   return 0;
19095 }
19096 _ACEOF
19097 rm -f conftest.$ac_objext conftest$ac_exeext
19098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19099   (eval $ac_link) 2>conftest.er1
19100   ac_status=$?
19101   grep -v '^ *+' conftest.er1 >conftest.err
19102   rm -f conftest.er1
19103   cat conftest.err >&5
19104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19105   (exit $ac_status); } &&
19106          { ac_try='test -z "$ac_c_werror_flag"
19107                          || test ! -s conftest.err'
19108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109   (eval $ac_try) 2>&5
19110   ac_status=$?
19111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); }; } &&
19113          { ac_try='test -s conftest$ac_exeext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   ac_cv_lib_ipc_shmat=yes
19120 else
19121   echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.$ac_ext >&5
19123
19124 ac_cv_lib_ipc_shmat=no
19125 fi
19126 rm -f conftest.err conftest.$ac_objext \
19127       conftest$ac_exeext conftest.$ac_ext
19128 LIBS=$ac_check_lib_save_LIBS
19129 fi
19130 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19131 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19132 if test $ac_cv_lib_ipc_shmat = yes; then
19133   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19134 fi
19135
19136     fi
19137   fi
19138
19139   # Check for libraries that X11R6 Xt/Xaw programs need.
19140   ac_save_LDFLAGS=$LDFLAGS
19141   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19142   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19143   # check for ICE first), but we must link in the order -lSM -lICE or
19144   # we get undefined symbols.  So assume we have SM if we have ICE.
19145   # These have to be linked with before -lX11, unlike the other
19146   # libraries we check for below, so use a different variable.
19147   # John Interrante, Karl Berry
19148   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19149 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19150 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19151   echo $ECHO_N "(cached) $ECHO_C" >&6
19152 else
19153   ac_check_lib_save_LIBS=$LIBS
19154 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19155 cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161
19162 /* Override any gcc2 internal prototype to avoid an error.  */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 /* We use char because int might match the return type of a gcc2
19167    builtin and then its argument prototype would still apply.  */
19168 char IceConnectionNumber ();
19169 int
19170 main ()
19171 {
19172 IceConnectionNumber ();
19173   ;
19174   return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19179   (eval $ac_link) 2>conftest.er1
19180   ac_status=$?
19181   grep -v '^ *+' conftest.er1 >conftest.err
19182   rm -f conftest.er1
19183   cat conftest.err >&5
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); } &&
19186          { ac_try='test -z "$ac_c_werror_flag"
19187                          || test ! -s conftest.err'
19188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19189   (eval $ac_try) 2>&5
19190   ac_status=$?
19191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192   (exit $ac_status); }; } &&
19193          { ac_try='test -s conftest$ac_exeext'
19194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19195   (eval $ac_try) 2>&5
19196   ac_status=$?
19197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198   (exit $ac_status); }; }; then
19199   ac_cv_lib_ICE_IceConnectionNumber=yes
19200 else
19201   echo "$as_me: failed program was:" >&5
19202 sed 's/^/| /' conftest.$ac_ext >&5
19203
19204 ac_cv_lib_ICE_IceConnectionNumber=no
19205 fi
19206 rm -f conftest.err conftest.$ac_objext \
19207       conftest$ac_exeext conftest.$ac_ext
19208 LIBS=$ac_check_lib_save_LIBS
19209 fi
19210 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19211 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19212 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19213   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19214 fi
19215
19216   LDFLAGS=$ac_save_LDFLAGS
19217
19218 fi
19219
19220
19221
19222
19223
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248 for ac_header in \
19249         assert.h \
19250         fcntl.h \
19251         grp.h \
19252         pwd.h \
19253         libc.h \
19254         limits.h \
19255         stdarg.h \
19256         stdlib.h \
19257         stdint.h \
19258         string.h \
19259         termios.h \
19260         termcap.h \
19261         term.h \
19262         unistd.h \
19263         sys/bitypes.h \
19264         sys/byteorder.h \
19265         sys/ioctl.h \
19266         sys/select.h \
19267         sys/sockio.h \
19268         sys/time.h \
19269         sys/socket.h \
19270         arpa/nameser.h \
19271         resolv.h \
19272         mtio.h \
19273         sys/mtio.h \
19274         sys/tape.h \
19275         regex.h \
19276
19277 do
19278 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19280   echo "$as_me:$LINENO: checking for $ac_header" >&5
19281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19282 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19283   echo $ECHO_N "(cached) $ECHO_C" >&6
19284 fi
19285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19287 else
19288   # Is the header compilable?
19289 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19290 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 $ac_includes_default
19298 #include <$ac_header>
19299 _ACEOF
19300 rm -f conftest.$ac_objext
19301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19302   (eval $ac_compile) 2>conftest.er1
19303   ac_status=$?
19304   grep -v '^ *+' conftest.er1 >conftest.err
19305   rm -f conftest.er1
19306   cat conftest.err >&5
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); } &&
19309          { ac_try='test -z "$ac_c_werror_flag"
19310                          || test ! -s conftest.err'
19311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19312   (eval $ac_try) 2>&5
19313   ac_status=$?
19314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); }; } &&
19316          { ac_try='test -s conftest.$ac_objext'
19317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19318   (eval $ac_try) 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); }; }; then
19322   ac_header_compiler=yes
19323 else
19324   echo "$as_me: failed program was:" >&5
19325 sed 's/^/| /' conftest.$ac_ext >&5
19326
19327 ac_header_compiler=no
19328 fi
19329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19331 echo "${ECHO_T}$ac_header_compiler" >&6
19332
19333 # Is the header present?
19334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19336 cat >conftest.$ac_ext <<_ACEOF
19337 /* confdefs.h.  */
19338 _ACEOF
19339 cat confdefs.h >>conftest.$ac_ext
19340 cat >>conftest.$ac_ext <<_ACEOF
19341 /* end confdefs.h.  */
19342 #include <$ac_header>
19343 _ACEOF
19344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19346   ac_status=$?
19347   grep -v '^ *+' conftest.er1 >conftest.err
19348   rm -f conftest.er1
19349   cat conftest.err >&5
19350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351   (exit $ac_status); } >/dev/null; then
19352   if test -s conftest.err; then
19353     ac_cpp_err=$ac_c_preproc_warn_flag
19354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19355   else
19356     ac_cpp_err=
19357   fi
19358 else
19359   ac_cpp_err=yes
19360 fi
19361 if test -z "$ac_cpp_err"; then
19362   ac_header_preproc=yes
19363 else
19364   echo "$as_me: failed program was:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19366
19367   ac_header_preproc=no
19368 fi
19369 rm -f conftest.err conftest.$ac_ext
19370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19371 echo "${ECHO_T}$ac_header_preproc" >&6
19372
19373 # So?  What about this header?
19374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19375   yes:no: )
19376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19380     ac_header_preproc=yes
19381     ;;
19382   no:yes:* )
19383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19395     (
19396       cat <<\_ASBOX
19397 ## ------------------------------------------ ##
19398 ## Report this to the AC_PACKAGE_NAME lists.  ##
19399 ## ------------------------------------------ ##
19400 _ASBOX
19401     ) |
19402       sed "s/^/$as_me: WARNING:     /" >&2
19403     ;;
19404 esac
19405 echo "$as_me:$LINENO: checking for $ac_header" >&5
19406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19408   echo $ECHO_N "(cached) $ECHO_C" >&6
19409 else
19410   eval "$as_ac_Header=\$ac_header_preproc"
19411 fi
19412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19414
19415 fi
19416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19417   cat >>confdefs.h <<_ACEOF
19418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19419 _ACEOF
19420
19421 fi
19422
19423 done
19424
19425 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19426 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19427 if test "${ac_cv_header_stdc+set}" = set; then
19428   echo $ECHO_N "(cached) $ECHO_C" >&6
19429 else
19430   cat >conftest.$ac_ext <<_ACEOF
19431 /* confdefs.h.  */
19432 _ACEOF
19433 cat confdefs.h >>conftest.$ac_ext
19434 cat >>conftest.$ac_ext <<_ACEOF
19435 /* end confdefs.h.  */
19436 #include <stdlib.h>
19437 #include <stdarg.h>
19438 #include <string.h>
19439 #include <float.h>
19440
19441 int
19442 main ()
19443 {
19444
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 rm -f conftest.$ac_objext
19450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19451   (eval $ac_compile) 2>conftest.er1
19452   ac_status=$?
19453   grep -v '^ *+' conftest.er1 >conftest.err
19454   rm -f conftest.er1
19455   cat conftest.err >&5
19456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457   (exit $ac_status); } &&
19458          { ac_try='test -z "$ac_c_werror_flag"
19459                          || test ! -s conftest.err'
19460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461   (eval $ac_try) 2>&5
19462   ac_status=$?
19463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464   (exit $ac_status); }; } &&
19465          { ac_try='test -s conftest.$ac_objext'
19466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19467   (eval $ac_try) 2>&5
19468   ac_status=$?
19469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19470   (exit $ac_status); }; }; then
19471   ac_cv_header_stdc=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476 ac_cv_header_stdc=no
19477 fi
19478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19479
19480 if test $ac_cv_header_stdc = yes; then
19481   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19482   cat >conftest.$ac_ext <<_ACEOF
19483 /* confdefs.h.  */
19484 _ACEOF
19485 cat confdefs.h >>conftest.$ac_ext
19486 cat >>conftest.$ac_ext <<_ACEOF
19487 /* end confdefs.h.  */
19488 #include <string.h>
19489
19490 _ACEOF
19491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19492   $EGREP "memchr" >/dev/null 2>&1; then
19493   :
19494 else
19495   ac_cv_header_stdc=no
19496 fi
19497 rm -f conftest*
19498
19499 fi
19500
19501 if test $ac_cv_header_stdc = yes; then
19502   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19503   cat >conftest.$ac_ext <<_ACEOF
19504 /* confdefs.h.  */
19505 _ACEOF
19506 cat confdefs.h >>conftest.$ac_ext
19507 cat >>conftest.$ac_ext <<_ACEOF
19508 /* end confdefs.h.  */
19509 #include <stdlib.h>
19510
19511 _ACEOF
19512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19513   $EGREP "free" >/dev/null 2>&1; then
19514   :
19515 else
19516   ac_cv_header_stdc=no
19517 fi
19518 rm -f conftest*
19519
19520 fi
19521
19522 if test $ac_cv_header_stdc = yes; then
19523   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19524   if test "$cross_compiling" = yes; then
19525   :
19526 else
19527   cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533 #include <ctype.h>
19534 #if ((' ' & 0x0FF) == 0x020)
19535 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19536 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19537 #else
19538 # define ISLOWER(c) \
19539                    (('a' <= (c) && (c) <= 'i') \
19540                      || ('j' <= (c) && (c) <= 'r') \
19541                      || ('s' <= (c) && (c) <= 'z'))
19542 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19543 #endif
19544
19545 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19546 int
19547 main ()
19548 {
19549   int i;
19550   for (i = 0; i < 256; i++)
19551     if (XOR (islower (i), ISLOWER (i))
19552         || toupper (i) != TOUPPER (i))
19553       exit(2);
19554   exit (0);
19555 }
19556 _ACEOF
19557 rm -f conftest$ac_exeext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19559   (eval $ac_link) 2>&5
19560   ac_status=$?
19561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564   (eval $ac_try) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   :
19569 else
19570   echo "$as_me: program exited with status $ac_status" >&5
19571 echo "$as_me: failed program was:" >&5
19572 sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 ( exit $ac_status )
19575 ac_cv_header_stdc=no
19576 fi
19577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19578 fi
19579 fi
19580 fi
19581 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19582 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19583 if test $ac_cv_header_stdc = yes; then
19584
19585 cat >>confdefs.h <<\_ACEOF
19586 #define STDC_HEADERS 1
19587 _ACEOF
19588
19589 fi
19590
19591 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19592 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19593 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19594   echo $ECHO_N "(cached) $ECHO_C" >&6
19595 else
19596   cat >conftest.$ac_ext <<_ACEOF
19597 /* confdefs.h.  */
19598 _ACEOF
19599 cat confdefs.h >>conftest.$ac_ext
19600 cat >>conftest.$ac_ext <<_ACEOF
19601 /* end confdefs.h.  */
19602 #include <sys/types.h>
19603 int
19604 main ()
19605 {
19606 return makedev(0, 0);
19607   ;
19608   return 0;
19609 }
19610 _ACEOF
19611 rm -f conftest.$ac_objext conftest$ac_exeext
19612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19613   (eval $ac_link) 2>conftest.er1
19614   ac_status=$?
19615   grep -v '^ *+' conftest.er1 >conftest.err
19616   rm -f conftest.er1
19617   cat conftest.err >&5
19618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619   (exit $ac_status); } &&
19620          { ac_try='test -z "$ac_c_werror_flag"
19621                          || test ! -s conftest.err'
19622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623   (eval $ac_try) 2>&5
19624   ac_status=$?
19625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626   (exit $ac_status); }; } &&
19627          { ac_try='test -s conftest$ac_exeext'
19628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629   (eval $ac_try) 2>&5
19630   ac_status=$?
19631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632   (exit $ac_status); }; }; then
19633   ac_cv_header_sys_types_h_makedev=yes
19634 else
19635   echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_header_sys_types_h_makedev=no
19639 fi
19640 rm -f conftest.err conftest.$ac_objext \
19641       conftest$ac_exeext conftest.$ac_ext
19642
19643 fi
19644 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19645 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19646
19647 if test $ac_cv_header_sys_types_h_makedev = no; then
19648 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19649   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19650 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19651 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 fi
19654 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19655 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19656 else
19657   # Is the header compilable?
19658 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19659 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h.  */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h.  */
19666 $ac_includes_default
19667 #include <sys/mkdev.h>
19668 _ACEOF
19669 rm -f conftest.$ac_objext
19670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19671   (eval $ac_compile) 2>conftest.er1
19672   ac_status=$?
19673   grep -v '^ *+' conftest.er1 >conftest.err
19674   rm -f conftest.er1
19675   cat conftest.err >&5
19676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677   (exit $ac_status); } &&
19678          { ac_try='test -z "$ac_c_werror_flag"
19679                          || test ! -s conftest.err'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; } &&
19685          { ac_try='test -s conftest.$ac_objext'
19686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687   (eval $ac_try) 2>&5
19688   ac_status=$?
19689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690   (exit $ac_status); }; }; then
19691   ac_header_compiler=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696 ac_header_compiler=no
19697 fi
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19700 echo "${ECHO_T}$ac_header_compiler" >&6
19701
19702 # Is the header present?
19703 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19704 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711 #include <sys/mkdev.h>
19712 _ACEOF
19713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19715   ac_status=$?
19716   grep -v '^ *+' conftest.er1 >conftest.err
19717   rm -f conftest.er1
19718   cat conftest.err >&5
19719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720   (exit $ac_status); } >/dev/null; then
19721   if test -s conftest.err; then
19722     ac_cpp_err=$ac_c_preproc_warn_flag
19723     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19724   else
19725     ac_cpp_err=
19726   fi
19727 else
19728   ac_cpp_err=yes
19729 fi
19730 if test -z "$ac_cpp_err"; then
19731   ac_header_preproc=yes
19732 else
19733   echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736   ac_header_preproc=no
19737 fi
19738 rm -f conftest.err conftest.$ac_ext
19739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19740 echo "${ECHO_T}$ac_header_preproc" >&6
19741
19742 # So?  What about this header?
19743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19744   yes:no: )
19745     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19746 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19747     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19748 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19749     ac_header_preproc=yes
19750     ;;
19751   no:yes:* )
19752     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19753 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19754     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19755 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19756     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19757 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19758     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19759 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19760     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19761 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19762     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19763 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19764     (
19765       cat <<\_ASBOX
19766 ## ------------------------------------------ ##
19767 ## Report this to the AC_PACKAGE_NAME lists.  ##
19768 ## ------------------------------------------ ##
19769 _ASBOX
19770     ) |
19771       sed "s/^/$as_me: WARNING:     /" >&2
19772     ;;
19773 esac
19774 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19775 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19776 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19777   echo $ECHO_N "(cached) $ECHO_C" >&6
19778 else
19779   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19780 fi
19781 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19782 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19783
19784 fi
19785 if test $ac_cv_header_sys_mkdev_h = yes; then
19786
19787 cat >>confdefs.h <<\_ACEOF
19788 #define MAJOR_IN_MKDEV 1
19789 _ACEOF
19790
19791 fi
19792
19793
19794
19795   if test $ac_cv_header_sys_mkdev_h = no; then
19796     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19797   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19798 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19799 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19800   echo $ECHO_N "(cached) $ECHO_C" >&6
19801 fi
19802 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19803 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19804 else
19805   # Is the header compilable?
19806 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19807 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19808 cat >conftest.$ac_ext <<_ACEOF
19809 /* confdefs.h.  */
19810 _ACEOF
19811 cat confdefs.h >>conftest.$ac_ext
19812 cat >>conftest.$ac_ext <<_ACEOF
19813 /* end confdefs.h.  */
19814 $ac_includes_default
19815 #include <sys/sysmacros.h>
19816 _ACEOF
19817 rm -f conftest.$ac_objext
19818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19819   (eval $ac_compile) 2>conftest.er1
19820   ac_status=$?
19821   grep -v '^ *+' conftest.er1 >conftest.err
19822   rm -f conftest.er1
19823   cat conftest.err >&5
19824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825   (exit $ac_status); } &&
19826          { ac_try='test -z "$ac_c_werror_flag"
19827                          || test ! -s conftest.err'
19828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19829   (eval $ac_try) 2>&5
19830   ac_status=$?
19831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19832   (exit $ac_status); }; } &&
19833          { ac_try='test -s conftest.$ac_objext'
19834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19835   (eval $ac_try) 2>&5
19836   ac_status=$?
19837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838   (exit $ac_status); }; }; then
19839   ac_header_compiler=yes
19840 else
19841   echo "$as_me: failed program was:" >&5
19842 sed 's/^/| /' conftest.$ac_ext >&5
19843
19844 ac_header_compiler=no
19845 fi
19846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19848 echo "${ECHO_T}$ac_header_compiler" >&6
19849
19850 # Is the header present?
19851 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19852 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19853 cat >conftest.$ac_ext <<_ACEOF
19854 /* confdefs.h.  */
19855 _ACEOF
19856 cat confdefs.h >>conftest.$ac_ext
19857 cat >>conftest.$ac_ext <<_ACEOF
19858 /* end confdefs.h.  */
19859 #include <sys/sysmacros.h>
19860 _ACEOF
19861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19863   ac_status=$?
19864   grep -v '^ *+' conftest.er1 >conftest.err
19865   rm -f conftest.er1
19866   cat conftest.err >&5
19867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868   (exit $ac_status); } >/dev/null; then
19869   if test -s conftest.err; then
19870     ac_cpp_err=$ac_c_preproc_warn_flag
19871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19872   else
19873     ac_cpp_err=
19874   fi
19875 else
19876   ac_cpp_err=yes
19877 fi
19878 if test -z "$ac_cpp_err"; then
19879   ac_header_preproc=yes
19880 else
19881   echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19883
19884   ac_header_preproc=no
19885 fi
19886 rm -f conftest.err conftest.$ac_ext
19887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19888 echo "${ECHO_T}$ac_header_preproc" >&6
19889
19890 # So?  What about this header?
19891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19892   yes:no: )
19893     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19894 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19895     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19896 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19897     ac_header_preproc=yes
19898     ;;
19899   no:yes:* )
19900     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19901 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19902     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19903 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19904     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19905 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19906     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19907 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19908     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19909 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19910     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19911 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19912     (
19913       cat <<\_ASBOX
19914 ## ------------------------------------------ ##
19915 ## Report this to the AC_PACKAGE_NAME lists.  ##
19916 ## ------------------------------------------ ##
19917 _ASBOX
19918     ) |
19919       sed "s/^/$as_me: WARNING:     /" >&2
19920     ;;
19921 esac
19922 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19923 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19924 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19925   echo $ECHO_N "(cached) $ECHO_C" >&6
19926 else
19927   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19928 fi
19929 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19930 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19931
19932 fi
19933 if test $ac_cv_header_sys_sysmacros_h = yes; then
19934
19935 cat >>confdefs.h <<\_ACEOF
19936 #define MAJOR_IN_SYSMACROS 1
19937 _ACEOF
19938
19939 fi
19940
19941
19942   fi
19943 fi
19944
19945
19946
19947
19948
19949
19950 ac_header_dirent=no
19951 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19952   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19953 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19954 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19956   echo $ECHO_N "(cached) $ECHO_C" >&6
19957 else
19958   cat >conftest.$ac_ext <<_ACEOF
19959 /* confdefs.h.  */
19960 _ACEOF
19961 cat confdefs.h >>conftest.$ac_ext
19962 cat >>conftest.$ac_ext <<_ACEOF
19963 /* end confdefs.h.  */
19964 #include <sys/types.h>
19965 #include <$ac_hdr>
19966
19967 int
19968 main ()
19969 {
19970 if ((DIR *) 0)
19971 return 0;
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext
19977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19978   (eval $ac_compile) 2>conftest.er1
19979   ac_status=$?
19980   grep -v '^ *+' conftest.er1 >conftest.err
19981   rm -f conftest.er1
19982   cat conftest.err >&5
19983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984   (exit $ac_status); } &&
19985          { ac_try='test -z "$ac_c_werror_flag"
19986                          || test ! -s conftest.err'
19987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19988   (eval $ac_try) 2>&5
19989   ac_status=$?
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); }; } &&
19992          { ac_try='test -s conftest.$ac_objext'
19993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994   (eval $ac_try) 2>&5
19995   ac_status=$?
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); }; }; then
19998   eval "$as_ac_Header=yes"
19999 else
20000   echo "$as_me: failed program was:" >&5
20001 sed 's/^/| /' conftest.$ac_ext >&5
20002
20003 eval "$as_ac_Header=no"
20004 fi
20005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20006 fi
20007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20010   cat >>confdefs.h <<_ACEOF
20011 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20012 _ACEOF
20013
20014 ac_header_dirent=$ac_hdr; break
20015 fi
20016
20017 done
20018 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20019 if test $ac_header_dirent = dirent.h; then
20020   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20021 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20022 if test "${ac_cv_search_opendir+set}" = set; then
20023   echo $ECHO_N "(cached) $ECHO_C" >&6
20024 else
20025   ac_func_search_save_LIBS=$LIBS
20026 ac_cv_search_opendir=no
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h.  */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h.  */
20033
20034 /* Override any gcc2 internal prototype to avoid an error.  */
20035 #ifdef __cplusplus
20036 extern "C"
20037 #endif
20038 /* We use char because int might match the return type of a gcc2
20039    builtin and then its argument prototype would still apply.  */
20040 char opendir ();
20041 int
20042 main ()
20043 {
20044 opendir ();
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20051   (eval $ac_link) 2>conftest.er1
20052   ac_status=$?
20053   grep -v '^ *+' conftest.er1 >conftest.err
20054   rm -f conftest.er1
20055   cat conftest.err >&5
20056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057   (exit $ac_status); } &&
20058          { ac_try='test -z "$ac_c_werror_flag"
20059                          || test ! -s conftest.err'
20060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20061   (eval $ac_try) 2>&5
20062   ac_status=$?
20063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064   (exit $ac_status); }; } &&
20065          { ac_try='test -s conftest$ac_exeext'
20066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20067   (eval $ac_try) 2>&5
20068   ac_status=$?
20069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070   (exit $ac_status); }; }; then
20071   ac_cv_search_opendir="none required"
20072 else
20073   echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.$ac_ext >&5
20075
20076 fi
20077 rm -f conftest.err conftest.$ac_objext \
20078       conftest$ac_exeext conftest.$ac_ext
20079 if test "$ac_cv_search_opendir" = no; then
20080   for ac_lib in dir; do
20081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20082     cat >conftest.$ac_ext <<_ACEOF
20083 /* confdefs.h.  */
20084 _ACEOF
20085 cat confdefs.h >>conftest.$ac_ext
20086 cat >>conftest.$ac_ext <<_ACEOF
20087 /* end confdefs.h.  */
20088
20089 /* Override any gcc2 internal prototype to avoid an error.  */
20090 #ifdef __cplusplus
20091 extern "C"
20092 #endif
20093 /* We use char because int might match the return type of a gcc2
20094    builtin and then its argument prototype would still apply.  */
20095 char opendir ();
20096 int
20097 main ()
20098 {
20099 opendir ();
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext conftest$ac_exeext
20105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20106   (eval $ac_link) 2>conftest.er1
20107   ac_status=$?
20108   grep -v '^ *+' conftest.er1 >conftest.err
20109   rm -f conftest.er1
20110   cat conftest.err >&5
20111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20112   (exit $ac_status); } &&
20113          { ac_try='test -z "$ac_c_werror_flag"
20114                          || test ! -s conftest.err'
20115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20116   (eval $ac_try) 2>&5
20117   ac_status=$?
20118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119   (exit $ac_status); }; } &&
20120          { ac_try='test -s conftest$ac_exeext'
20121   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122   (eval $ac_try) 2>&5
20123   ac_status=$?
20124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125   (exit $ac_status); }; }; then
20126   ac_cv_search_opendir="-l$ac_lib"
20127 break
20128 else
20129   echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 fi
20133 rm -f conftest.err conftest.$ac_objext \
20134       conftest$ac_exeext conftest.$ac_ext
20135   done
20136 fi
20137 LIBS=$ac_func_search_save_LIBS
20138 fi
20139 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20140 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20141 if test "$ac_cv_search_opendir" != no; then
20142   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20143
20144 fi
20145
20146 else
20147   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20148 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20149 if test "${ac_cv_search_opendir+set}" = set; then
20150   echo $ECHO_N "(cached) $ECHO_C" >&6
20151 else
20152   ac_func_search_save_LIBS=$LIBS
20153 ac_cv_search_opendir=no
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h.  */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h.  */
20160
20161 /* Override any gcc2 internal prototype to avoid an error.  */
20162 #ifdef __cplusplus
20163 extern "C"
20164 #endif
20165 /* We use char because int might match the return type of a gcc2
20166    builtin and then its argument prototype would still apply.  */
20167 char opendir ();
20168 int
20169 main ()
20170 {
20171 opendir ();
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20178   (eval $ac_link) 2>conftest.er1
20179   ac_status=$?
20180   grep -v '^ *+' conftest.er1 >conftest.err
20181   rm -f conftest.er1
20182   cat conftest.err >&5
20183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20184   (exit $ac_status); } &&
20185          { ac_try='test -z "$ac_c_werror_flag"
20186                          || test ! -s conftest.err'
20187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188   (eval $ac_try) 2>&5
20189   ac_status=$?
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); }; } &&
20192          { ac_try='test -s conftest$ac_exeext'
20193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20194   (eval $ac_try) 2>&5
20195   ac_status=$?
20196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197   (exit $ac_status); }; }; then
20198   ac_cv_search_opendir="none required"
20199 else
20200   echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 fi
20204 rm -f conftest.err conftest.$ac_objext \
20205       conftest$ac_exeext conftest.$ac_ext
20206 if test "$ac_cv_search_opendir" = no; then
20207   for ac_lib in x; do
20208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20209     cat >conftest.$ac_ext <<_ACEOF
20210 /* confdefs.h.  */
20211 _ACEOF
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h.  */
20215
20216 /* Override any gcc2 internal prototype to avoid an error.  */
20217 #ifdef __cplusplus
20218 extern "C"
20219 #endif
20220 /* We use char because int might match the return type of a gcc2
20221    builtin and then its argument prototype would still apply.  */
20222 char opendir ();
20223 int
20224 main ()
20225 {
20226 opendir ();
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233   (eval $ac_link) 2>conftest.er1
20234   ac_status=$?
20235   grep -v '^ *+' conftest.er1 >conftest.err
20236   rm -f conftest.er1
20237   cat conftest.err >&5
20238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239   (exit $ac_status); } &&
20240          { ac_try='test -z "$ac_c_werror_flag"
20241                          || test ! -s conftest.err'
20242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20243   (eval $ac_try) 2>&5
20244   ac_status=$?
20245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246   (exit $ac_status); }; } &&
20247          { ac_try='test -s conftest$ac_exeext'
20248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20249   (eval $ac_try) 2>&5
20250   ac_status=$?
20251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252   (exit $ac_status); }; }; then
20253   ac_cv_search_opendir="-l$ac_lib"
20254 break
20255 else
20256   echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 fi
20260 rm -f conftest.err conftest.$ac_objext \
20261       conftest$ac_exeext conftest.$ac_ext
20262   done
20263 fi
20264 LIBS=$ac_func_search_save_LIBS
20265 fi
20266 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20267 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20268 if test "$ac_cv_search_opendir" != no; then
20269   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20270
20271 fi
20272
20273 fi
20274
20275 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20276 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20277 if test "${ac_cv_header_stat_broken+set}" = set; then
20278   echo $ECHO_N "(cached) $ECHO_C" >&6
20279 else
20280   cat >conftest.$ac_ext <<_ACEOF
20281 /* confdefs.h.  */
20282 _ACEOF
20283 cat confdefs.h >>conftest.$ac_ext
20284 cat >>conftest.$ac_ext <<_ACEOF
20285 /* end confdefs.h.  */
20286 #include <sys/types.h>
20287 #include <sys/stat.h>
20288
20289 #if defined(S_ISBLK) && defined(S_IFDIR)
20290 # if S_ISBLK (S_IFDIR)
20291 You lose.
20292 # endif
20293 #endif
20294
20295 #if defined(S_ISBLK) && defined(S_IFCHR)
20296 # if S_ISBLK (S_IFCHR)
20297 You lose.
20298 # endif
20299 #endif
20300
20301 #if defined(S_ISLNK) && defined(S_IFREG)
20302 # if S_ISLNK (S_IFREG)
20303 You lose.
20304 # endif
20305 #endif
20306
20307 #if defined(S_ISSOCK) && defined(S_IFREG)
20308 # if S_ISSOCK (S_IFREG)
20309 You lose.
20310 # endif
20311 #endif
20312
20313 _ACEOF
20314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20315   $EGREP "You lose" >/dev/null 2>&1; then
20316   ac_cv_header_stat_broken=yes
20317 else
20318   ac_cv_header_stat_broken=no
20319 fi
20320 rm -f conftest*
20321
20322 fi
20323 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20324 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20325 if test $ac_cv_header_stat_broken = yes; then
20326
20327 cat >>confdefs.h <<\_ACEOF
20328 #define STAT_MACROS_BROKEN 1
20329 _ACEOF
20330
20331 fi
20332
20333 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20334 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20335 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 else
20338   cat >conftest.$ac_ext <<_ACEOF
20339 /* confdefs.h.  */
20340 _ACEOF
20341 cat confdefs.h >>conftest.$ac_ext
20342 cat >>conftest.$ac_ext <<_ACEOF
20343 /* end confdefs.h.  */
20344 #include <sys/types.h>
20345 #include <sys/wait.h>
20346 #ifndef WEXITSTATUS
20347 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20348 #endif
20349 #ifndef WIFEXITED
20350 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20351 #endif
20352
20353 int
20354 main ()
20355 {
20356   int s;
20357   wait (&s);
20358   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20359   ;
20360   return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext
20364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20365   (eval $ac_compile) 2>conftest.er1
20366   ac_status=$?
20367   grep -v '^ *+' conftest.er1 >conftest.err
20368   rm -f conftest.er1
20369   cat conftest.err >&5
20370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); } &&
20372          { ac_try='test -z "$ac_c_werror_flag"
20373                          || test ! -s conftest.err'
20374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20375   (eval $ac_try) 2>&5
20376   ac_status=$?
20377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378   (exit $ac_status); }; } &&
20379          { ac_try='test -s conftest.$ac_objext'
20380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20381   (eval $ac_try) 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; }; then
20385   ac_cv_header_sys_wait_h=yes
20386 else
20387   echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20389
20390 ac_cv_header_sys_wait_h=no
20391 fi
20392 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20395 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20396 if test $ac_cv_header_sys_wait_h = yes; then
20397
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_SYS_WAIT_H 1
20400 _ACEOF
20401
20402 fi
20403
20404 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20405 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20406 if test "${ac_cv_header_time+set}" = set; then
20407   echo $ECHO_N "(cached) $ECHO_C" >&6
20408 else
20409   cat >conftest.$ac_ext <<_ACEOF
20410 /* confdefs.h.  */
20411 _ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h.  */
20415 #include <sys/types.h>
20416 #include <sys/time.h>
20417 #include <time.h>
20418
20419 int
20420 main ()
20421 {
20422 if ((struct tm *) 0)
20423 return 0;
20424   ;
20425   return 0;
20426 }
20427 _ACEOF
20428 rm -f conftest.$ac_objext
20429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20430   (eval $ac_compile) 2>conftest.er1
20431   ac_status=$?
20432   grep -v '^ *+' conftest.er1 >conftest.err
20433   rm -f conftest.er1
20434   cat conftest.err >&5
20435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436   (exit $ac_status); } &&
20437          { ac_try='test -z "$ac_c_werror_flag"
20438                          || test ! -s conftest.err'
20439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440   (eval $ac_try) 2>&5
20441   ac_status=$?
20442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443   (exit $ac_status); }; } &&
20444          { ac_try='test -s conftest.$ac_objext'
20445   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20446   (eval $ac_try) 2>&5
20447   ac_status=$?
20448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449   (exit $ac_status); }; }; then
20450   ac_cv_header_time=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455 ac_cv_header_time=no
20456 fi
20457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20458 fi
20459 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20460 echo "${ECHO_T}$ac_cv_header_time" >&6
20461 if test $ac_cv_header_time = yes; then
20462
20463 cat >>confdefs.h <<\_ACEOF
20464 #define TIME_WITH_SYS_TIME 1
20465 _ACEOF
20466
20467 fi
20468
20469
20470 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20471 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20472 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20473   echo $ECHO_N "(cached) $ECHO_C" >&6
20474 else
20475   cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482 int
20483 main ()
20484 {
20485 static struct stat ac_aggr;
20486 if (ac_aggr.st_blksize)
20487 return 0;
20488   ;
20489   return 0;
20490 }
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20494   (eval $ac_compile) 2>conftest.er1
20495   ac_status=$?
20496   grep -v '^ *+' conftest.er1 >conftest.err
20497   rm -f conftest.er1
20498   cat conftest.err >&5
20499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500   (exit $ac_status); } &&
20501          { ac_try='test -z "$ac_c_werror_flag"
20502                          || test ! -s conftest.err'
20503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20504   (eval $ac_try) 2>&5
20505   ac_status=$?
20506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507   (exit $ac_status); }; } &&
20508          { ac_try='test -s conftest.$ac_objext'
20509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20510   (eval $ac_try) 2>&5
20511   ac_status=$?
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); }; }; then
20514   ac_cv_member_struct_stat_st_blksize=yes
20515 else
20516   echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.$ac_ext >&5
20518
20519 cat >conftest.$ac_ext <<_ACEOF
20520 /* confdefs.h.  */
20521 _ACEOF
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h.  */
20525 $ac_includes_default
20526 int
20527 main ()
20528 {
20529 static struct stat ac_aggr;
20530 if (sizeof ac_aggr.st_blksize)
20531 return 0;
20532   ;
20533   return 0;
20534 }
20535 _ACEOF
20536 rm -f conftest.$ac_objext
20537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20538   (eval $ac_compile) 2>conftest.er1
20539   ac_status=$?
20540   grep -v '^ *+' conftest.er1 >conftest.err
20541   rm -f conftest.er1
20542   cat conftest.err >&5
20543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544   (exit $ac_status); } &&
20545          { ac_try='test -z "$ac_c_werror_flag"
20546                          || test ! -s conftest.err'
20547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20548   (eval $ac_try) 2>&5
20549   ac_status=$?
20550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551   (exit $ac_status); }; } &&
20552          { ac_try='test -s conftest.$ac_objext'
20553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554   (eval $ac_try) 2>&5
20555   ac_status=$?
20556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557   (exit $ac_status); }; }; then
20558   ac_cv_member_struct_stat_st_blksize=yes
20559 else
20560   echo "$as_me: failed program was:" >&5
20561 sed 's/^/| /' conftest.$ac_ext >&5
20562
20563 ac_cv_member_struct_stat_st_blksize=no
20564 fi
20565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20566 fi
20567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20571 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20572
20573 cat >>confdefs.h <<_ACEOF
20574 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20575 _ACEOF
20576
20577
20578 cat >>confdefs.h <<\_ACEOF
20579 #define HAVE_ST_BLKSIZE 1
20580 _ACEOF
20581
20582 fi
20583
20584
20585 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20586 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20587 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20588   echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590   cat >conftest.$ac_ext <<_ACEOF
20591 /* confdefs.h.  */
20592 _ACEOF
20593 cat confdefs.h >>conftest.$ac_ext
20594 cat >>conftest.$ac_ext <<_ACEOF
20595 /* end confdefs.h.  */
20596 $ac_includes_default
20597 int
20598 main ()
20599 {
20600 static struct stat ac_aggr;
20601 if (ac_aggr.st_blocks)
20602 return 0;
20603   ;
20604   return 0;
20605 }
20606 _ACEOF
20607 rm -f conftest.$ac_objext
20608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20609   (eval $ac_compile) 2>conftest.er1
20610   ac_status=$?
20611   grep -v '^ *+' conftest.er1 >conftest.err
20612   rm -f conftest.er1
20613   cat conftest.err >&5
20614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615   (exit $ac_status); } &&
20616          { ac_try='test -z "$ac_c_werror_flag"
20617                          || test ! -s conftest.err'
20618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20619   (eval $ac_try) 2>&5
20620   ac_status=$?
20621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622   (exit $ac_status); }; } &&
20623          { ac_try='test -s conftest.$ac_objext'
20624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20625   (eval $ac_try) 2>&5
20626   ac_status=$?
20627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20628   (exit $ac_status); }; }; then
20629   ac_cv_member_struct_stat_st_blocks=yes
20630 else
20631   echo "$as_me: failed program was:" >&5
20632 sed 's/^/| /' conftest.$ac_ext >&5
20633
20634 cat >conftest.$ac_ext <<_ACEOF
20635 /* confdefs.h.  */
20636 _ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h.  */
20640 $ac_includes_default
20641 int
20642 main ()
20643 {
20644 static struct stat ac_aggr;
20645 if (sizeof ac_aggr.st_blocks)
20646 return 0;
20647   ;
20648   return 0;
20649 }
20650 _ACEOF
20651 rm -f conftest.$ac_objext
20652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20653   (eval $ac_compile) 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } &&
20660          { ac_try='test -z "$ac_c_werror_flag"
20661                          || test ! -s conftest.err'
20662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20663   (eval $ac_try) 2>&5
20664   ac_status=$?
20665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666   (exit $ac_status); }; } &&
20667          { ac_try='test -s conftest.$ac_objext'
20668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20669   (eval $ac_try) 2>&5
20670   ac_status=$?
20671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20672   (exit $ac_status); }; }; then
20673   ac_cv_member_struct_stat_st_blocks=yes
20674 else
20675   echo "$as_me: failed program was:" >&5
20676 sed 's/^/| /' conftest.$ac_ext >&5
20677
20678 ac_cv_member_struct_stat_st_blocks=no
20679 fi
20680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20681 fi
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20683 fi
20684 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20685 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20686 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20687
20688 cat >>confdefs.h <<_ACEOF
20689 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20690 _ACEOF
20691
20692
20693 cat >>confdefs.h <<\_ACEOF
20694 #define HAVE_ST_BLOCKS 1
20695 _ACEOF
20696
20697 else
20698   case $LIBOBJS in
20699     "fileblocks.$ac_objext"   | \
20700   *" fileblocks.$ac_objext"   | \
20701     "fileblocks.$ac_objext "* | \
20702   *" fileblocks.$ac_objext "* ) ;;
20703   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20704 esac
20705
20706 fi
20707
20708
20709 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20710 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20711 if test "${ac_cv_struct_tm+set}" = set; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 #include <sys/types.h>
20721 #include <time.h>
20722
20723 int
20724 main ()
20725 {
20726 struct tm *tp; tp->tm_sec;
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20733   (eval $ac_compile) 2>conftest.er1
20734   ac_status=$?
20735   grep -v '^ *+' conftest.er1 >conftest.err
20736   rm -f conftest.er1
20737   cat conftest.err >&5
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); } &&
20740          { ac_try='test -z "$ac_c_werror_flag"
20741                          || test ! -s conftest.err'
20742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20743   (eval $ac_try) 2>&5
20744   ac_status=$?
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); }; } &&
20747          { ac_try='test -s conftest.$ac_objext'
20748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20749   (eval $ac_try) 2>&5
20750   ac_status=$?
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); }; }; then
20753   ac_cv_struct_tm=time.h
20754 else
20755   echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.$ac_ext >&5
20757
20758 ac_cv_struct_tm=sys/time.h
20759 fi
20760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20761 fi
20762 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20763 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20764 if test $ac_cv_struct_tm = sys/time.h; then
20765
20766 cat >>confdefs.h <<\_ACEOF
20767 #define TM_IN_SYS_TIME 1
20768 _ACEOF
20769
20770 fi
20771
20772 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20773 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20774 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20775   echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777   cat >conftest.$ac_ext <<_ACEOF
20778 /* confdefs.h.  */
20779 _ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h.  */
20783 #include <sys/types.h>
20784 #include <$ac_cv_struct_tm>
20785
20786
20787 int
20788 main ()
20789 {
20790 static struct tm ac_aggr;
20791 if (ac_aggr.tm_zone)
20792 return 0;
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20799   (eval $ac_compile) 2>conftest.er1
20800   ac_status=$?
20801   grep -v '^ *+' conftest.er1 >conftest.err
20802   rm -f conftest.er1
20803   cat conftest.err >&5
20804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805   (exit $ac_status); } &&
20806          { ac_try='test -z "$ac_c_werror_flag"
20807                          || test ! -s conftest.err'
20808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809   (eval $ac_try) 2>&5
20810   ac_status=$?
20811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812   (exit $ac_status); }; } &&
20813          { ac_try='test -s conftest.$ac_objext'
20814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20815   (eval $ac_try) 2>&5
20816   ac_status=$?
20817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818   (exit $ac_status); }; }; then
20819   ac_cv_member_struct_tm_tm_zone=yes
20820 else
20821   echo "$as_me: failed program was:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20823
20824 cat >conftest.$ac_ext <<_ACEOF
20825 /* confdefs.h.  */
20826 _ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h.  */
20830 #include <sys/types.h>
20831 #include <$ac_cv_struct_tm>
20832
20833
20834 int
20835 main ()
20836 {
20837 static struct tm ac_aggr;
20838 if (sizeof ac_aggr.tm_zone)
20839 return 0;
20840   ;
20841   return 0;
20842 }
20843 _ACEOF
20844 rm -f conftest.$ac_objext
20845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20846   (eval $ac_compile) 2>conftest.er1
20847   ac_status=$?
20848   grep -v '^ *+' conftest.er1 >conftest.err
20849   rm -f conftest.er1
20850   cat conftest.err >&5
20851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852   (exit $ac_status); } &&
20853          { ac_try='test -z "$ac_c_werror_flag"
20854                          || test ! -s conftest.err'
20855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856   (eval $ac_try) 2>&5
20857   ac_status=$?
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); }; } &&
20860          { ac_try='test -s conftest.$ac_objext'
20861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862   (eval $ac_try) 2>&5
20863   ac_status=$?
20864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865   (exit $ac_status); }; }; then
20866   ac_cv_member_struct_tm_tm_zone=yes
20867 else
20868   echo "$as_me: failed program was:" >&5
20869 sed 's/^/| /' conftest.$ac_ext >&5
20870
20871 ac_cv_member_struct_tm_tm_zone=no
20872 fi
20873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20874 fi
20875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20876 fi
20877 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20878 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20879 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20880
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE_STRUCT_TM_TM_ZONE 1
20883 _ACEOF
20884
20885
20886 fi
20887
20888 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20889
20890 cat >>confdefs.h <<\_ACEOF
20891 #define HAVE_TM_ZONE 1
20892 _ACEOF
20893
20894 else
20895   echo "$as_me:$LINENO: checking for tzname" >&5
20896 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20897 if test "${ac_cv_var_tzname+set}" = set; then
20898   echo $ECHO_N "(cached) $ECHO_C" >&6
20899 else
20900   cat >conftest.$ac_ext <<_ACEOF
20901 /* confdefs.h.  */
20902 _ACEOF
20903 cat confdefs.h >>conftest.$ac_ext
20904 cat >>conftest.$ac_ext <<_ACEOF
20905 /* end confdefs.h.  */
20906 #include <time.h>
20907 #ifndef tzname /* For SGI.  */
20908 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20909 #endif
20910
20911 int
20912 main ()
20913 {
20914 atoi(*tzname);
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20921   (eval $ac_link) 2>conftest.er1
20922   ac_status=$?
20923   grep -v '^ *+' conftest.er1 >conftest.err
20924   rm -f conftest.er1
20925   cat conftest.err >&5
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); } &&
20928          { ac_try='test -z "$ac_c_werror_flag"
20929                          || test ! -s conftest.err'
20930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931   (eval $ac_try) 2>&5
20932   ac_status=$?
20933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934   (exit $ac_status); }; } &&
20935          { ac_try='test -s conftest$ac_exeext'
20936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937   (eval $ac_try) 2>&5
20938   ac_status=$?
20939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940   (exit $ac_status); }; }; then
20941   ac_cv_var_tzname=yes
20942 else
20943   echo "$as_me: failed program was:" >&5
20944 sed 's/^/| /' conftest.$ac_ext >&5
20945
20946 ac_cv_var_tzname=no
20947 fi
20948 rm -f conftest.err conftest.$ac_objext \
20949       conftest$ac_exeext conftest.$ac_ext
20950 fi
20951 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20952 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20953   if test $ac_cv_var_tzname = yes; then
20954
20955 cat >>confdefs.h <<\_ACEOF
20956 #define HAVE_TZNAME 1
20957 _ACEOF
20958
20959   fi
20960 fi
20961
20962
20963 echo "$as_me:$LINENO: checking for utime.h" >&5
20964 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20965 if test "${ba_cv_header_utime_h+set}" = set; then
20966   echo $ECHO_N "(cached) $ECHO_C" >&6
20967 else
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974
20975 #include <sys/types.h>
20976 #include <utime.h>
20977 int
20978 main ()
20979 {
20980 struct utimbuf foo
20981   ;
20982   return 0;
20983 }
20984 _ACEOF
20985 rm -f conftest.$ac_objext
20986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20987   (eval $ac_compile) 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } &&
20994          { ac_try='test -z "$ac_c_werror_flag"
20995                          || test ! -s conftest.err'
20996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20997   (eval $ac_try) 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); }; } &&
21001          { ac_try='test -s conftest.$ac_objext'
21002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21003   (eval $ac_try) 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); }; }; then
21007   ba_cv_header_utime_h=yes
21008 else
21009   echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21011
21012 ba_cv_header_utime_h=no
21013 fi
21014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21015 fi
21016 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21017 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21018 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
21019 #define HAVE_UTIME_H 1
21020 _ACEOF
21021
21022
21023 echo "$as_me:$LINENO: checking for socklen_t" >&5
21024 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21025 if test "${ba_cv_header_socklen_t+set}" = set; then
21026   echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028   cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h.  */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h.  */
21034
21035 #include <sys/types.h>
21036 #include <sys/socket.h>
21037 int
21038 main ()
21039 {
21040 socklen_t x
21041   ;
21042   return 0;
21043 }
21044 _ACEOF
21045 rm -f conftest.$ac_objext
21046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21047   (eval $ac_compile) 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } &&
21054          { ac_try='test -z "$ac_c_werror_flag"
21055                          || test ! -s conftest.err'
21056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057   (eval $ac_try) 2>&5
21058   ac_status=$?
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); }; } &&
21061          { ac_try='test -s conftest.$ac_objext'
21062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21063   (eval $ac_try) 2>&5
21064   ac_status=$?
21065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066   (exit $ac_status); }; }; then
21067   ba_cv_header_socklen_t=yes
21068 else
21069   echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21071
21072 ba_cv_header_socklen_t=no
21073 fi
21074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21075 fi
21076 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21077 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21078 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_SOCKLEN_T 1
21080 _ACEOF
21081
21082
21083 echo "$as_me:$LINENO: checking for bigendian" >&5
21084 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21085 if test "${ba_cv_bigendian+set}" = set; then
21086   echo $ECHO_N "(cached) $ECHO_C" >&6
21087 else
21088   if test "$cross_compiling" = yes; then
21089   ba_cv_bigendian=no
21090 else
21091   cat >conftest.$ac_ext <<_ACEOF
21092 /* confdefs.h.  */
21093 _ACEOF
21094 cat confdefs.h >>conftest.$ac_ext
21095 cat >>conftest.$ac_ext <<_ACEOF
21096 /* end confdefs.h.  */
21097 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21098 _ACEOF
21099 rm -f conftest$ac_exeext
21100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21101   (eval $ac_link) 2>&5
21102   ac_status=$?
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; }; then
21110   ba_cv_bigendian=yes
21111 else
21112   echo "$as_me: program exited with status $ac_status" >&5
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116 ( exit $ac_status )
21117 ba_cv_bigendian=no
21118 fi
21119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21120 fi
21121 fi
21122 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21123 echo "${ECHO_T}$ba_cv_bigendian" >&6
21124 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21125 #define HAVE_BIGENDIAN 1
21126 _ACEOF
21127
21128
21129 ac_ext=cc
21130 ac_cpp='$CXXCPP $CPPFLAGS'
21131 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21132 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21133 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21134
21135
21136 echo "$as_me:$LINENO: checking for typeof" >&5
21137 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21138 if test "${ba_cv_have_typeof+set}" = set; then
21139   echo $ECHO_N "(cached) $ECHO_C" >&6
21140 else
21141   if test "$cross_compiling" = yes; then
21142   ba_cv_have_typeof=no
21143 else
21144   cat >conftest.$ac_ext <<_ACEOF
21145 /* confdefs.h.  */
21146 _ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h.  */
21150 main(){char *a = 0; a = (typeof a)a;}
21151 _ACEOF
21152 rm -f conftest$ac_exeext
21153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21154   (eval $ac_link) 2>&5
21155   ac_status=$?
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21159   (eval $ac_try) 2>&5
21160   ac_status=$?
21161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162   (exit $ac_status); }; }; then
21163   ba_cv_have_typeof=yes
21164 else
21165   echo "$as_me: program exited with status $ac_status" >&5
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21168
21169 ( exit $ac_status )
21170 ba_cv_have_typeof=no
21171 fi
21172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21173 fi
21174 fi
21175 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21176 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21177 test $ba_cv_have_typeof = yes &&
21178 cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_TYPEOF 1
21180 _ACEOF
21181
21182 ac_ext=c
21183 ac_cpp='$CPP $CPPFLAGS'
21184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21187
21188
21189 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21190 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21191 if test "${ac_cv_c_const+set}" = set; then
21192   echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194   cat >conftest.$ac_ext <<_ACEOF
21195 /* confdefs.h.  */
21196 _ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h.  */
21200
21201 int
21202 main ()
21203 {
21204 /* FIXME: Include the comments suggested by Paul. */
21205 #ifndef __cplusplus
21206   /* Ultrix mips cc rejects this.  */
21207   typedef int charset[2];
21208   const charset x;
21209   /* SunOS 4.1.1 cc rejects this.  */
21210   char const *const *ccp;
21211   char **p;
21212   /* NEC SVR4.0.2 mips cc rejects this.  */
21213   struct point {int x, y;};
21214   static struct point const zero = {0,0};
21215   /* AIX XL C 1.02.0.0 rejects this.
21216      It does not let you subtract one const X* pointer from another in
21217      an arm of an if-expression whose if-part is not a constant
21218      expression */
21219   const char *g = "string";
21220   ccp = &g + (g ? g-g : 0);
21221   /* HPUX 7.0 cc rejects these. */
21222   ++ccp;
21223   p = (char**) ccp;
21224   ccp = (char const *const *) p;
21225   { /* SCO 3.2v4 cc rejects this.  */
21226     char *t;
21227     char const *s = 0 ? (char *) 0 : (char const *) 0;
21228
21229     *t++ = 0;
21230   }
21231   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21232     int x[] = {25, 17};
21233     const int *foo = &x[0];
21234     ++foo;
21235   }
21236   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21237     typedef const int *iptr;
21238     iptr p = 0;
21239     ++p;
21240   }
21241   { /* AIX XL C 1.02.0.0 rejects this saying
21242        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21243     struct s { int j; const int *ap[3]; };
21244     struct s *b; b->j = 5;
21245   }
21246   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21247     const int foo = 10;
21248   }
21249 #endif
21250
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257   (eval $ac_compile) 2>conftest.er1
21258   ac_status=$?
21259   grep -v '^ *+' conftest.er1 >conftest.err
21260   rm -f conftest.er1
21261   cat conftest.err >&5
21262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263   (exit $ac_status); } &&
21264          { ac_try='test -z "$ac_c_werror_flag"
21265                          || test ! -s conftest.err'
21266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267   (eval $ac_try) 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); }; } &&
21271          { ac_try='test -s conftest.$ac_objext'
21272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21273   (eval $ac_try) 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); }; }; then
21277   ac_cv_c_const=yes
21278 else
21279   echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21281
21282 ac_cv_c_const=no
21283 fi
21284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21285 fi
21286 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21287 echo "${ECHO_T}$ac_cv_c_const" >&6
21288 if test $ac_cv_c_const = no; then
21289
21290 cat >>confdefs.h <<\_ACEOF
21291 #define const
21292 _ACEOF
21293
21294 fi
21295
21296
21297
21298 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21299 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21300 fstype=no
21301 # The order of these tests is important.
21302 cat >conftest.$ac_ext <<_ACEOF
21303 /* confdefs.h.  */
21304 _ACEOF
21305 cat confdefs.h >>conftest.$ac_ext
21306 cat >>conftest.$ac_ext <<_ACEOF
21307 /* end confdefs.h.  */
21308 #include <sys/statvfs.h>
21309 #include <sys/fstyp.h>
21310 _ACEOF
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21313   ac_status=$?
21314   grep -v '^ *+' conftest.er1 >conftest.err
21315   rm -f conftest.er1
21316   cat conftest.err >&5
21317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318   (exit $ac_status); } >/dev/null; then
21319   if test -s conftest.err; then
21320     ac_cpp_err=$ac_c_preproc_warn_flag
21321     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21322   else
21323     ac_cpp_err=
21324   fi
21325 else
21326   ac_cpp_err=yes
21327 fi
21328 if test -z "$ac_cpp_err"; then
21329   cat >>confdefs.h <<\_ACEOF
21330 #define FSTYPE_STATVFS 1
21331 _ACEOF
21332  fstype=SVR4
21333 else
21334   echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21336
21337
21338 fi
21339 rm -f conftest.err conftest.$ac_ext
21340 if test $fstype = no; then
21341 cat >conftest.$ac_ext <<_ACEOF
21342 /* confdefs.h.  */
21343 _ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h.  */
21347 #include <sys/statfs.h>
21348 #include <sys/fstyp.h>
21349 _ACEOF
21350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21351   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21352   ac_status=$?
21353   grep -v '^ *+' conftest.er1 >conftest.err
21354   rm -f conftest.er1
21355   cat conftest.err >&5
21356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357   (exit $ac_status); } >/dev/null; then
21358   if test -s conftest.err; then
21359     ac_cpp_err=$ac_c_preproc_warn_flag
21360     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21361   else
21362     ac_cpp_err=
21363   fi
21364 else
21365   ac_cpp_err=yes
21366 fi
21367 if test -z "$ac_cpp_err"; then
21368   cat >>confdefs.h <<\_ACEOF
21369 #define FSTYPE_USG_STATFS 1
21370 _ACEOF
21371  fstype=SVR3
21372 else
21373   echo "$as_me: failed program was:" >&5
21374 sed 's/^/| /' conftest.$ac_ext >&5
21375
21376
21377 fi
21378 rm -f conftest.err conftest.$ac_ext
21379 fi
21380 if test $fstype = no; then
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 #include <sys/statfs.h>
21388 #include <sys/vmount.h>
21389 _ACEOF
21390 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21391   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21392   ac_status=$?
21393   grep -v '^ *+' conftest.er1 >conftest.err
21394   rm -f conftest.er1
21395   cat conftest.err >&5
21396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397   (exit $ac_status); } >/dev/null; then
21398   if test -s conftest.err; then
21399     ac_cpp_err=$ac_c_preproc_warn_flag
21400     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21401   else
21402     ac_cpp_err=
21403   fi
21404 else
21405   ac_cpp_err=yes
21406 fi
21407 if test -z "$ac_cpp_err"; then
21408   cat >>confdefs.h <<\_ACEOF
21409 #define FSTYPE_AIX_STATFS 1
21410 _ACEOF
21411  fstype=AIX
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416
21417 fi
21418 rm -f conftest.err conftest.$ac_ext
21419 fi
21420 if test $fstype = no; then
21421 cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427 #include <mntent.h>
21428 _ACEOF
21429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } >/dev/null; then
21437   if test -s conftest.err; then
21438     ac_cpp_err=$ac_c_preproc_warn_flag
21439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21440   else
21441     ac_cpp_err=
21442   fi
21443 else
21444   ac_cpp_err=yes
21445 fi
21446 if test -z "$ac_cpp_err"; then
21447   cat >>confdefs.h <<\_ACEOF
21448 #define FSTYPE_MNTENT 1
21449 _ACEOF
21450  fstype=4.3BSD
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455
21456 fi
21457 rm -f conftest.err conftest.$ac_ext
21458 fi
21459 if test $fstype = no; then
21460 cat >conftest.$ac_ext <<_ACEOF
21461 /* confdefs.h.  */
21462 _ACEOF
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h.  */
21466 #include <sys/mount.h>
21467
21468 _ACEOF
21469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21470   $EGREP "f_type;" >/dev/null 2>&1; then
21471   cat >>confdefs.h <<\_ACEOF
21472 #define FSTYPE_STATFS 1
21473 _ACEOF
21474  fstype=4.4BSD/OSF1
21475 fi
21476 rm -f conftest*
21477
21478 fi
21479 if test $fstype = no; then
21480 cat >conftest.$ac_ext <<_ACEOF
21481 /* confdefs.h.  */
21482 _ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h.  */
21486 #include <sys/mount.h>
21487 #include <sys/fs_types.h>
21488 _ACEOF
21489 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21490   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } >/dev/null; then
21497   if test -s conftest.err; then
21498     ac_cpp_err=$ac_c_preproc_warn_flag
21499     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21500   else
21501     ac_cpp_err=
21502   fi
21503 else
21504   ac_cpp_err=yes
21505 fi
21506 if test -z "$ac_cpp_err"; then
21507   cat >>confdefs.h <<\_ACEOF
21508 #define FSTYPE_GETMNT 1
21509 _ACEOF
21510  fstype=Ultrix
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515
21516 fi
21517 rm -f conftest.err conftest.$ac_ext
21518 fi
21519 echo "$as_me:$LINENO: result: $fstype" >&5
21520 echo "${ECHO_T}$fstype" >&6
21521
21522 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21523   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21524 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21525 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21526   echo $ECHO_N "(cached) $ECHO_C" >&6
21527 fi
21528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21529 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21530 else
21531   # Is the header compilable?
21532 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21533 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21534 cat >conftest.$ac_ext <<_ACEOF
21535 /* confdefs.h.  */
21536 _ACEOF
21537 cat confdefs.h >>conftest.$ac_ext
21538 cat >>conftest.$ac_ext <<_ACEOF
21539 /* end confdefs.h.  */
21540 $ac_includes_default
21541 #include <sys/statvfs.h>
21542 _ACEOF
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545   (eval $ac_compile) 2>conftest.er1
21546   ac_status=$?
21547   grep -v '^ *+' conftest.er1 >conftest.err
21548   rm -f conftest.er1
21549   cat conftest.err >&5
21550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21551   (exit $ac_status); } &&
21552          { ac_try='test -z "$ac_c_werror_flag"
21553                          || test ! -s conftest.err'
21554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21555   (eval $ac_try) 2>&5
21556   ac_status=$?
21557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558   (exit $ac_status); }; } &&
21559          { ac_try='test -s conftest.$ac_objext'
21560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21561   (eval $ac_try) 2>&5
21562   ac_status=$?
21563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); }; }; then
21565   ac_header_compiler=yes
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570 ac_header_compiler=no
21571 fi
21572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21573 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21574 echo "${ECHO_T}$ac_header_compiler" >&6
21575
21576 # Is the header present?
21577 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21578 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 #include <sys/statvfs.h>
21586 _ACEOF
21587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21588   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21589   ac_status=$?
21590   grep -v '^ *+' conftest.er1 >conftest.err
21591   rm -f conftest.er1
21592   cat conftest.err >&5
21593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594   (exit $ac_status); } >/dev/null; then
21595   if test -s conftest.err; then
21596     ac_cpp_err=$ac_c_preproc_warn_flag
21597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21598   else
21599     ac_cpp_err=
21600   fi
21601 else
21602   ac_cpp_err=yes
21603 fi
21604 if test -z "$ac_cpp_err"; then
21605   ac_header_preproc=yes
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610   ac_header_preproc=no
21611 fi
21612 rm -f conftest.err conftest.$ac_ext
21613 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21614 echo "${ECHO_T}$ac_header_preproc" >&6
21615
21616 # So?  What about this header?
21617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21618   yes:no: )
21619     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21620 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21621     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21622 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21623     ac_header_preproc=yes
21624     ;;
21625   no:yes:* )
21626     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21627 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21628     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21629 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21630     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21631 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21632     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21633 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21634     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21635 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21636     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21637 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21638     (
21639       cat <<\_ASBOX
21640 ## ------------------------------------------ ##
21641 ## Report this to the AC_PACKAGE_NAME lists.  ##
21642 ## ------------------------------------------ ##
21643 _ASBOX
21644     ) |
21645       sed "s/^/$as_me: WARNING:     /" >&2
21646     ;;
21647 esac
21648 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21649 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21650 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21654 fi
21655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21656 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21657
21658 fi
21659 if test $ac_cv_header_sys_statvfs_h = yes; then
21660
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_SYS_STATVFS_H 1
21663 _ACEOF
21664
21665 fi
21666
21667
21668
21669 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21670 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21671 if test "${ac_cv_type_signal+set}" = set; then
21672   echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674   cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h.  */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h.  */
21680 #include <sys/types.h>
21681 #include <signal.h>
21682 #ifdef signal
21683 # undef signal
21684 #endif
21685 #ifdef __cplusplus
21686 extern "C" void (*signal (int, void (*)(int)))(int);
21687 #else
21688 void (*signal ()) ();
21689 #endif
21690
21691 int
21692 main ()
21693 {
21694 int i;
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701   (eval $ac_compile) 2>conftest.er1
21702   ac_status=$?
21703   grep -v '^ *+' conftest.er1 >conftest.err
21704   rm -f conftest.er1
21705   cat conftest.err >&5
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); } &&
21708          { ac_try='test -z "$ac_c_werror_flag"
21709                          || test ! -s conftest.err'
21710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711   (eval $ac_try) 2>&5
21712   ac_status=$?
21713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); }; } &&
21715          { ac_try='test -s conftest.$ac_objext'
21716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21717   (eval $ac_try) 2>&5
21718   ac_status=$?
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); }; }; then
21721   ac_cv_type_signal=void
21722 else
21723   echo "$as_me: failed program was:" >&5
21724 sed 's/^/| /' conftest.$ac_ext >&5
21725
21726 ac_cv_type_signal=int
21727 fi
21728 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21729 fi
21730 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21731 echo "${ECHO_T}$ac_cv_type_signal" >&6
21732
21733 cat >>confdefs.h <<_ACEOF
21734 #define RETSIGTYPE $ac_cv_type_signal
21735 _ACEOF
21736
21737
21738
21739   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21740 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21741   if test "${bash_cv_signal_vintage+set}" = set; then
21742   echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744
21745     cat >conftest.$ac_ext <<_ACEOF
21746 /* confdefs.h.  */
21747 _ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h.  */
21751 #include <signal.h>
21752 int
21753 main ()
21754 {
21755
21756       sigset_t ss;
21757       struct sigaction sa;
21758       sigemptyset(&ss); sigsuspend(&ss);
21759       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21760       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21761
21762   ;
21763   return 0;
21764 }
21765 _ACEOF
21766 rm -f conftest.$ac_objext conftest$ac_exeext
21767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21768   (eval $ac_link) 2>conftest.er1
21769   ac_status=$?
21770   grep -v '^ *+' conftest.er1 >conftest.err
21771   rm -f conftest.er1
21772   cat conftest.err >&5
21773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774   (exit $ac_status); } &&
21775          { ac_try='test -z "$ac_c_werror_flag"
21776                          || test ! -s conftest.err'
21777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21778   (eval $ac_try) 2>&5
21779   ac_status=$?
21780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21781   (exit $ac_status); }; } &&
21782          { ac_try='test -s conftest$ac_exeext'
21783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21784   (eval $ac_try) 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; }; then
21788   bash_cv_signal_vintage="posix"
21789 else
21790   echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793
21794       cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h.  */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h.  */
21800 #include <signal.h>
21801 int
21802 main ()
21803 {
21804
21805           int mask = sigmask(SIGINT);
21806           sigsetmask(mask); sigblock(mask); sigpause(mask);
21807
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 rm -f conftest.$ac_objext conftest$ac_exeext
21813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21814   (eval $ac_link) 2>conftest.er1
21815   ac_status=$?
21816   grep -v '^ *+' conftest.er1 >conftest.err
21817   rm -f conftest.er1
21818   cat conftest.err >&5
21819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820   (exit $ac_status); } &&
21821          { ac_try='test -z "$ac_c_werror_flag"
21822                          || test ! -s conftest.err'
21823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824   (eval $ac_try) 2>&5
21825   ac_status=$?
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); }; } &&
21828          { ac_try='test -s conftest$ac_exeext'
21829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830   (eval $ac_try) 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; }; then
21834   bash_cv_signal_vintage="4.2bsd"
21835 else
21836   echo "$as_me: failed program was:" >&5
21837 sed 's/^/| /' conftest.$ac_ext >&5
21838
21839
21840         cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846
21847           #include <signal.h>
21848           RETSIGTYPE foo() { }
21849 int
21850 main ()
21851 {
21852
21853                   int mask = sigmask(SIGINT);
21854                   sigset(SIGINT, foo); sigrelse(SIGINT);
21855                   sighold(SIGINT); sigpause(SIGINT);
21856
21857   ;
21858   return 0;
21859 }
21860 _ACEOF
21861 rm -f conftest.$ac_objext conftest$ac_exeext
21862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21863   (eval $ac_link) 2>conftest.er1
21864   ac_status=$?
21865   grep -v '^ *+' conftest.er1 >conftest.err
21866   rm -f conftest.er1
21867   cat conftest.err >&5
21868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869   (exit $ac_status); } &&
21870          { ac_try='test -z "$ac_c_werror_flag"
21871                          || test ! -s conftest.err'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; } &&
21877          { ac_try='test -s conftest$ac_exeext'
21878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21879   (eval $ac_try) 2>&5
21880   ac_status=$?
21881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21882   (exit $ac_status); }; }; then
21883   bash_cv_signal_vintage="svr3"
21884 else
21885   echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 bash_cv_signal_vintage="v7"
21889
21890 fi
21891 rm -f conftest.err conftest.$ac_objext \
21892       conftest$ac_exeext conftest.$ac_ext
21893
21894 fi
21895 rm -f conftest.err conftest.$ac_objext \
21896       conftest$ac_exeext conftest.$ac_ext
21897
21898 fi
21899 rm -f conftest.err conftest.$ac_objext \
21900       conftest$ac_exeext conftest.$ac_ext
21901
21902 fi
21903
21904   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21905 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21906   if test "$bash_cv_signal_vintage" = "posix"; then
21907     cat >>confdefs.h <<\_ACEOF
21908 #define HAVE_POSIX_SIGNALS 1
21909 _ACEOF
21910
21911   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21912     cat >>confdefs.h <<\_ACEOF
21913 #define HAVE_BSD_SIGNALS 1
21914 _ACEOF
21915
21916   elif test "$bash_cv_signal_vintage" = "svr3"; then
21917     cat >>confdefs.h <<\_ACEOF
21918 #define HAVE_USG_SIGHOLD 1
21919 _ACEOF
21920
21921   fi
21922
21923 echo "$as_me:$LINENO: checking for mode_t" >&5
21924 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21925 if test "${ac_cv_type_mode_t+set}" = set; then
21926   echo $ECHO_N "(cached) $ECHO_C" >&6
21927 else
21928   cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934 $ac_includes_default
21935 int
21936 main ()
21937 {
21938 if ((mode_t *) 0)
21939   return 0;
21940 if (sizeof (mode_t))
21941   return 0;
21942   ;
21943   return 0;
21944 }
21945 _ACEOF
21946 rm -f conftest.$ac_objext
21947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21948   (eval $ac_compile) 2>conftest.er1
21949   ac_status=$?
21950   grep -v '^ *+' conftest.er1 >conftest.err
21951   rm -f conftest.er1
21952   cat conftest.err >&5
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); } &&
21955          { ac_try='test -z "$ac_c_werror_flag"
21956                          || test ! -s conftest.err'
21957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21958   (eval $ac_try) 2>&5
21959   ac_status=$?
21960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961   (exit $ac_status); }; } &&
21962          { ac_try='test -s conftest.$ac_objext'
21963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21964   (eval $ac_try) 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); }; }; then
21968   ac_cv_type_mode_t=yes
21969 else
21970   echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_cv_type_mode_t=no
21974 fi
21975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21976 fi
21977 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21978 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21979 if test $ac_cv_type_mode_t = yes; then
21980   :
21981 else
21982
21983 cat >>confdefs.h <<_ACEOF
21984 #define mode_t int
21985 _ACEOF
21986
21987 fi
21988
21989 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21990 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21991 if test "${ac_cv_type_uid_t+set}" = set; then
21992   echo $ECHO_N "(cached) $ECHO_C" >&6
21993 else
21994   cat >conftest.$ac_ext <<_ACEOF
21995 /* confdefs.h.  */
21996 _ACEOF
21997 cat confdefs.h >>conftest.$ac_ext
21998 cat >>conftest.$ac_ext <<_ACEOF
21999 /* end confdefs.h.  */
22000 #include <sys/types.h>
22001
22002 _ACEOF
22003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22004   $EGREP "uid_t" >/dev/null 2>&1; then
22005   ac_cv_type_uid_t=yes
22006 else
22007   ac_cv_type_uid_t=no
22008 fi
22009 rm -f conftest*
22010
22011 fi
22012 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22013 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22014 if test $ac_cv_type_uid_t = no; then
22015
22016 cat >>confdefs.h <<\_ACEOF
22017 #define uid_t int
22018 _ACEOF
22019
22020
22021 cat >>confdefs.h <<\_ACEOF
22022 #define gid_t int
22023 _ACEOF
22024
22025 fi
22026
22027 echo "$as_me:$LINENO: checking for size_t" >&5
22028 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22029 if test "${ac_cv_type_size_t+set}" = set; then
22030   echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032   cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 $ac_includes_default
22039 int
22040 main ()
22041 {
22042 if ((size_t *) 0)
22043   return 0;
22044 if (sizeof (size_t))
22045   return 0;
22046   ;
22047   return 0;
22048 }
22049 _ACEOF
22050 rm -f conftest.$ac_objext
22051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22052   (eval $ac_compile) 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } &&
22059          { ac_try='test -z "$ac_c_werror_flag"
22060                          || test ! -s conftest.err'
22061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22062   (eval $ac_try) 2>&5
22063   ac_status=$?
22064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065   (exit $ac_status); }; } &&
22066          { ac_try='test -s conftest.$ac_objext'
22067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22068   (eval $ac_try) 2>&5
22069   ac_status=$?
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); }; }; then
22072   ac_cv_type_size_t=yes
22073 else
22074   echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077 ac_cv_type_size_t=no
22078 fi
22079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22080 fi
22081 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22082 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22083 if test $ac_cv_type_size_t = yes; then
22084   :
22085 else
22086
22087 cat >>confdefs.h <<_ACEOF
22088 #define size_t unsigned
22089 _ACEOF
22090
22091 fi
22092
22093 echo "$as_me:$LINENO: checking for pid_t" >&5
22094 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22095 if test "${ac_cv_type_pid_t+set}" = set; then
22096   echo $ECHO_N "(cached) $ECHO_C" >&6
22097 else
22098   cat >conftest.$ac_ext <<_ACEOF
22099 /* confdefs.h.  */
22100 _ACEOF
22101 cat confdefs.h >>conftest.$ac_ext
22102 cat >>conftest.$ac_ext <<_ACEOF
22103 /* end confdefs.h.  */
22104 $ac_includes_default
22105 int
22106 main ()
22107 {
22108 if ((pid_t *) 0)
22109   return 0;
22110 if (sizeof (pid_t))
22111   return 0;
22112   ;
22113   return 0;
22114 }
22115 _ACEOF
22116 rm -f conftest.$ac_objext
22117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22118   (eval $ac_compile) 2>conftest.er1
22119   ac_status=$?
22120   grep -v '^ *+' conftest.er1 >conftest.err
22121   rm -f conftest.er1
22122   cat conftest.err >&5
22123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124   (exit $ac_status); } &&
22125          { ac_try='test -z "$ac_c_werror_flag"
22126                          || test ! -s conftest.err'
22127   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22128   (eval $ac_try) 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; } &&
22132          { ac_try='test -s conftest.$ac_objext'
22133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134   (eval $ac_try) 2>&5
22135   ac_status=$?
22136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137   (exit $ac_status); }; }; then
22138   ac_cv_type_pid_t=yes
22139 else
22140   echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 ac_cv_type_pid_t=no
22144 fi
22145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22146 fi
22147 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22148 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22149 if test $ac_cv_type_pid_t = yes; then
22150   :
22151 else
22152
22153 cat >>confdefs.h <<_ACEOF
22154 #define pid_t int
22155 _ACEOF
22156
22157 fi
22158
22159 echo "$as_me:$LINENO: checking for off_t" >&5
22160 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22161 if test "${ac_cv_type_off_t+set}" = set; then
22162   echo $ECHO_N "(cached) $ECHO_C" >&6
22163 else
22164   cat >conftest.$ac_ext <<_ACEOF
22165 /* confdefs.h.  */
22166 _ACEOF
22167 cat confdefs.h >>conftest.$ac_ext
22168 cat >>conftest.$ac_ext <<_ACEOF
22169 /* end confdefs.h.  */
22170 $ac_includes_default
22171 int
22172 main ()
22173 {
22174 if ((off_t *) 0)
22175   return 0;
22176 if (sizeof (off_t))
22177   return 0;
22178   ;
22179   return 0;
22180 }
22181 _ACEOF
22182 rm -f conftest.$ac_objext
22183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22184   (eval $ac_compile) 2>conftest.er1
22185   ac_status=$?
22186   grep -v '^ *+' conftest.er1 >conftest.err
22187   rm -f conftest.er1
22188   cat conftest.err >&5
22189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22190   (exit $ac_status); } &&
22191          { ac_try='test -z "$ac_c_werror_flag"
22192                          || test ! -s conftest.err'
22193   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22194   (eval $ac_try) 2>&5
22195   ac_status=$?
22196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197   (exit $ac_status); }; } &&
22198          { ac_try='test -s conftest.$ac_objext'
22199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22200   (eval $ac_try) 2>&5
22201   ac_status=$?
22202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22203   (exit $ac_status); }; }; then
22204   ac_cv_type_off_t=yes
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209 ac_cv_type_off_t=no
22210 fi
22211 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22212 fi
22213 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22214 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22215 if test $ac_cv_type_off_t = yes; then
22216   :
22217 else
22218
22219 cat >>confdefs.h <<_ACEOF
22220 #define off_t long
22221 _ACEOF
22222
22223 fi
22224
22225 echo "$as_me:$LINENO: checking for ino_t" >&5
22226 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22227 if test "${ac_cv_type_ino_t+set}" = set; then
22228   echo $ECHO_N "(cached) $ECHO_C" >&6
22229 else
22230   cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h.  */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h.  */
22236 $ac_includes_default
22237 int
22238 main ()
22239 {
22240 if ((ino_t *) 0)
22241   return 0;
22242 if (sizeof (ino_t))
22243   return 0;
22244   ;
22245   return 0;
22246 }
22247 _ACEOF
22248 rm -f conftest.$ac_objext
22249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22250   (eval $ac_compile) 2>conftest.er1
22251   ac_status=$?
22252   grep -v '^ *+' conftest.er1 >conftest.err
22253   rm -f conftest.er1
22254   cat conftest.err >&5
22255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256   (exit $ac_status); } &&
22257          { ac_try='test -z "$ac_c_werror_flag"
22258                          || test ! -s conftest.err'
22259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22260   (eval $ac_try) 2>&5
22261   ac_status=$?
22262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22263   (exit $ac_status); }; } &&
22264          { ac_try='test -s conftest.$ac_objext'
22265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22266   (eval $ac_try) 2>&5
22267   ac_status=$?
22268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22269   (exit $ac_status); }; }; then
22270   ac_cv_type_ino_t=yes
22271 else
22272   echo "$as_me: failed program was:" >&5
22273 sed 's/^/| /' conftest.$ac_ext >&5
22274
22275 ac_cv_type_ino_t=no
22276 fi
22277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22278 fi
22279 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22280 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22281 if test $ac_cv_type_ino_t = yes; then
22282   :
22283 else
22284
22285 cat >>confdefs.h <<_ACEOF
22286 #define ino_t unsigned long
22287 _ACEOF
22288
22289 fi
22290
22291 echo "$as_me:$LINENO: checking for dev_t" >&5
22292 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22293 if test "${ac_cv_type_dev_t+set}" = set; then
22294   echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296   cat >conftest.$ac_ext <<_ACEOF
22297 /* confdefs.h.  */
22298 _ACEOF
22299 cat confdefs.h >>conftest.$ac_ext
22300 cat >>conftest.$ac_ext <<_ACEOF
22301 /* end confdefs.h.  */
22302 $ac_includes_default
22303 int
22304 main ()
22305 {
22306 if ((dev_t *) 0)
22307   return 0;
22308 if (sizeof (dev_t))
22309   return 0;
22310   ;
22311   return 0;
22312 }
22313 _ACEOF
22314 rm -f conftest.$ac_objext
22315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22316   (eval $ac_compile) 2>conftest.er1
22317   ac_status=$?
22318   grep -v '^ *+' conftest.er1 >conftest.err
22319   rm -f conftest.er1
22320   cat conftest.err >&5
22321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22322   (exit $ac_status); } &&
22323          { ac_try='test -z "$ac_c_werror_flag"
22324                          || test ! -s conftest.err'
22325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22326   (eval $ac_try) 2>&5
22327   ac_status=$?
22328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22329   (exit $ac_status); }; } &&
22330          { ac_try='test -s conftest.$ac_objext'
22331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22332   (eval $ac_try) 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; }; then
22336   ac_cv_type_dev_t=yes
22337 else
22338   echo "$as_me: failed program was:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22340
22341 ac_cv_type_dev_t=no
22342 fi
22343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22344 fi
22345 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22346 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22347 if test $ac_cv_type_dev_t = yes; then
22348   :
22349 else
22350
22351 cat >>confdefs.h <<_ACEOF
22352 #define dev_t unsigned long
22353 _ACEOF
22354
22355 fi
22356
22357 echo "$as_me:$LINENO: checking for daddr_t" >&5
22358 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22359 if test "${ac_cv_type_daddr_t+set}" = set; then
22360   echo $ECHO_N "(cached) $ECHO_C" >&6
22361 else
22362   cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h.  */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h.  */
22368 $ac_includes_default
22369 int
22370 main ()
22371 {
22372 if ((daddr_t *) 0)
22373   return 0;
22374 if (sizeof (daddr_t))
22375   return 0;
22376   ;
22377   return 0;
22378 }
22379 _ACEOF
22380 rm -f conftest.$ac_objext
22381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22382   (eval $ac_compile) 2>conftest.er1
22383   ac_status=$?
22384   grep -v '^ *+' conftest.er1 >conftest.err
22385   rm -f conftest.er1
22386   cat conftest.err >&5
22387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22388   (exit $ac_status); } &&
22389          { ac_try='test -z "$ac_c_werror_flag"
22390                          || test ! -s conftest.err'
22391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22392   (eval $ac_try) 2>&5
22393   ac_status=$?
22394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395   (exit $ac_status); }; } &&
22396          { ac_try='test -s conftest.$ac_objext'
22397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22398   (eval $ac_try) 2>&5
22399   ac_status=$?
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); }; }; then
22402   ac_cv_type_daddr_t=yes
22403 else
22404   echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_cv_type_daddr_t=no
22408 fi
22409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22410 fi
22411 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22412 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22413 if test $ac_cv_type_daddr_t = yes; then
22414   :
22415 else
22416
22417 cat >>confdefs.h <<_ACEOF
22418 #define daddr_t long
22419 _ACEOF
22420
22421 fi
22422
22423 echo "$as_me:$LINENO: checking for major_t" >&5
22424 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22425 if test "${ac_cv_type_major_t+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   cat >conftest.$ac_ext <<_ACEOF
22429 /* confdefs.h.  */
22430 _ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h.  */
22434 $ac_includes_default
22435 int
22436 main ()
22437 {
22438 if ((major_t *) 0)
22439   return 0;
22440 if (sizeof (major_t))
22441   return 0;
22442   ;
22443   return 0;
22444 }
22445 _ACEOF
22446 rm -f conftest.$ac_objext
22447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22448   (eval $ac_compile) 2>conftest.er1
22449   ac_status=$?
22450   grep -v '^ *+' conftest.er1 >conftest.err
22451   rm -f conftest.er1
22452   cat conftest.err >&5
22453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454   (exit $ac_status); } &&
22455          { ac_try='test -z "$ac_c_werror_flag"
22456                          || test ! -s conftest.err'
22457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22458   (eval $ac_try) 2>&5
22459   ac_status=$?
22460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461   (exit $ac_status); }; } &&
22462          { ac_try='test -s conftest.$ac_objext'
22463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464   (eval $ac_try) 2>&5
22465   ac_status=$?
22466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467   (exit $ac_status); }; }; then
22468   ac_cv_type_major_t=yes
22469 else
22470   echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 ac_cv_type_major_t=no
22474 fi
22475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22476 fi
22477 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22478 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22479 if test $ac_cv_type_major_t = yes; then
22480   :
22481 else
22482
22483 cat >>confdefs.h <<_ACEOF
22484 #define major_t int
22485 _ACEOF
22486
22487 fi
22488
22489 echo "$as_me:$LINENO: checking for minor_t" >&5
22490 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22491 if test "${ac_cv_type_minor_t+set}" = set; then
22492   echo $ECHO_N "(cached) $ECHO_C" >&6
22493 else
22494   cat >conftest.$ac_ext <<_ACEOF
22495 /* confdefs.h.  */
22496 _ACEOF
22497 cat confdefs.h >>conftest.$ac_ext
22498 cat >>conftest.$ac_ext <<_ACEOF
22499 /* end confdefs.h.  */
22500 $ac_includes_default
22501 int
22502 main ()
22503 {
22504 if ((minor_t *) 0)
22505   return 0;
22506 if (sizeof (minor_t))
22507   return 0;
22508   ;
22509   return 0;
22510 }
22511 _ACEOF
22512 rm -f conftest.$ac_objext
22513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22514   (eval $ac_compile) 2>conftest.er1
22515   ac_status=$?
22516   grep -v '^ *+' conftest.er1 >conftest.err
22517   rm -f conftest.er1
22518   cat conftest.err >&5
22519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22520   (exit $ac_status); } &&
22521          { ac_try='test -z "$ac_c_werror_flag"
22522                          || test ! -s conftest.err'
22523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524   (eval $ac_try) 2>&5
22525   ac_status=$?
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); }; } &&
22528          { ac_try='test -s conftest.$ac_objext'
22529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22530   (eval $ac_try) 2>&5
22531   ac_status=$?
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   (exit $ac_status); }; }; then
22534   ac_cv_type_minor_t=yes
22535 else
22536   echo "$as_me: failed program was:" >&5
22537 sed 's/^/| /' conftest.$ac_ext >&5
22538
22539 ac_cv_type_minor_t=no
22540 fi
22541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22542 fi
22543 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22544 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22545 if test $ac_cv_type_minor_t = yes; then
22546   :
22547 else
22548
22549 cat >>confdefs.h <<_ACEOF
22550 #define minor_t int
22551 _ACEOF
22552
22553 fi
22554
22555 echo "$as_me:$LINENO: checking for ssize_t" >&5
22556 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22557 if test "${ac_cv_type_ssize_t+set}" = set; then
22558   echo $ECHO_N "(cached) $ECHO_C" >&6
22559 else
22560   cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 $ac_includes_default
22567 int
22568 main ()
22569 {
22570 if ((ssize_t *) 0)
22571   return 0;
22572 if (sizeof (ssize_t))
22573   return 0;
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22580   (eval $ac_compile) 2>conftest.er1
22581   ac_status=$?
22582   grep -v '^ *+' conftest.er1 >conftest.err
22583   rm -f conftest.er1
22584   cat conftest.err >&5
22585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586   (exit $ac_status); } &&
22587          { ac_try='test -z "$ac_c_werror_flag"
22588                          || test ! -s conftest.err'
22589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590   (eval $ac_try) 2>&5
22591   ac_status=$?
22592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593   (exit $ac_status); }; } &&
22594          { ac_try='test -s conftest.$ac_objext'
22595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596   (eval $ac_try) 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   ac_cv_type_ssize_t=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605 ac_cv_type_ssize_t=no
22606 fi
22607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22608 fi
22609 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22610 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22611 if test $ac_cv_type_ssize_t = yes; then
22612   :
22613 else
22614
22615 cat >>confdefs.h <<_ACEOF
22616 #define ssize_t int
22617 _ACEOF
22618
22619 fi
22620
22621 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22622 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22623 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22624   echo $ECHO_N "(cached) $ECHO_C" >&6
22625 else
22626   cat >conftest.$ac_ext <<_ACEOF
22627 /* confdefs.h.  */
22628 _ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h.  */
22632 $ac_includes_default
22633 int
22634 main ()
22635 {
22636 static struct stat ac_aggr;
22637 if (ac_aggr.st_blocks)
22638 return 0;
22639   ;
22640   return 0;
22641 }
22642 _ACEOF
22643 rm -f conftest.$ac_objext
22644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22645   (eval $ac_compile) 2>conftest.er1
22646   ac_status=$?
22647   grep -v '^ *+' conftest.er1 >conftest.err
22648   rm -f conftest.er1
22649   cat conftest.err >&5
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); } &&
22652          { ac_try='test -z "$ac_c_werror_flag"
22653                          || test ! -s conftest.err'
22654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22655   (eval $ac_try) 2>&5
22656   ac_status=$?
22657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658   (exit $ac_status); }; } &&
22659          { ac_try='test -s conftest.$ac_objext'
22660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22661   (eval $ac_try) 2>&5
22662   ac_status=$?
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); }; }; then
22665   ac_cv_member_struct_stat_st_blocks=yes
22666 else
22667   echo "$as_me: failed program was:" >&5
22668 sed 's/^/| /' conftest.$ac_ext >&5
22669
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h.  */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h.  */
22676 $ac_includes_default
22677 int
22678 main ()
22679 {
22680 static struct stat ac_aggr;
22681 if (sizeof ac_aggr.st_blocks)
22682 return 0;
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext
22688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22689   (eval $ac_compile) 2>conftest.er1
22690   ac_status=$?
22691   grep -v '^ *+' conftest.er1 >conftest.err
22692   rm -f conftest.er1
22693   cat conftest.err >&5
22694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22695   (exit $ac_status); } &&
22696          { ac_try='test -z "$ac_c_werror_flag"
22697                          || test ! -s conftest.err'
22698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22699   (eval $ac_try) 2>&5
22700   ac_status=$?
22701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702   (exit $ac_status); }; } &&
22703          { ac_try='test -s conftest.$ac_objext'
22704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705   (eval $ac_try) 2>&5
22706   ac_status=$?
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); }; }; then
22709   ac_cv_member_struct_stat_st_blocks=yes
22710 else
22711   echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ac_cv_member_struct_stat_st_blocks=no
22715 fi
22716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717 fi
22718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22719 fi
22720 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22721 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22722 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22723
22724 cat >>confdefs.h <<_ACEOF
22725 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22726 _ACEOF
22727
22728
22729 cat >>confdefs.h <<\_ACEOF
22730 #define HAVE_ST_BLOCKS 1
22731 _ACEOF
22732
22733 else
22734   case $LIBOBJS in
22735     "fileblocks.$ac_objext"   | \
22736   *" fileblocks.$ac_objext"   | \
22737     "fileblocks.$ac_objext "* | \
22738   *" fileblocks.$ac_objext "* ) ;;
22739   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22740 esac
22741
22742 fi
22743
22744
22745
22746 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22747 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22748 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22749   echo $ECHO_N "(cached) $ECHO_C" >&6
22750 else
22751   cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h.  */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h.  */
22757 $ac_includes_default
22758 int
22759 main ()
22760 {
22761 static struct stat ac_aggr;
22762 if (ac_aggr.st_rdev)
22763 return 0;
22764   ;
22765   return 0;
22766 }
22767 _ACEOF
22768 rm -f conftest.$ac_objext
22769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22770   (eval $ac_compile) 2>conftest.er1
22771   ac_status=$?
22772   grep -v '^ *+' conftest.er1 >conftest.err
22773   rm -f conftest.er1
22774   cat conftest.err >&5
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); } &&
22777          { ac_try='test -z "$ac_c_werror_flag"
22778                          || test ! -s conftest.err'
22779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22780   (eval $ac_try) 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; } &&
22784          { ac_try='test -s conftest.$ac_objext'
22785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22786   (eval $ac_try) 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); }; }; then
22790   ac_cv_member_struct_stat_st_rdev=yes
22791 else
22792   echo "$as_me: failed program was:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22794
22795 cat >conftest.$ac_ext <<_ACEOF
22796 /* confdefs.h.  */
22797 _ACEOF
22798 cat confdefs.h >>conftest.$ac_ext
22799 cat >>conftest.$ac_ext <<_ACEOF
22800 /* end confdefs.h.  */
22801 $ac_includes_default
22802 int
22803 main ()
22804 {
22805 static struct stat ac_aggr;
22806 if (sizeof ac_aggr.st_rdev)
22807 return 0;
22808   ;
22809   return 0;
22810 }
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22814   (eval $ac_compile) 2>conftest.er1
22815   ac_status=$?
22816   grep -v '^ *+' conftest.er1 >conftest.err
22817   rm -f conftest.er1
22818   cat conftest.err >&5
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); } &&
22821          { ac_try='test -z "$ac_c_werror_flag"
22822                          || test ! -s conftest.err'
22823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824   (eval $ac_try) 2>&5
22825   ac_status=$?
22826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827   (exit $ac_status); }; } &&
22828          { ac_try='test -s conftest.$ac_objext'
22829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22830   (eval $ac_try) 2>&5
22831   ac_status=$?
22832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22833   (exit $ac_status); }; }; then
22834   ac_cv_member_struct_stat_st_rdev=yes
22835 else
22836   echo "$as_me: failed program was:" >&5
22837 sed 's/^/| /' conftest.$ac_ext >&5
22838
22839 ac_cv_member_struct_stat_st_rdev=no
22840 fi
22841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22842 fi
22843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22844 fi
22845 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22846 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22847 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22848
22849 cat >>confdefs.h <<_ACEOF
22850 #define HAVE_STRUCT_STAT_ST_RDEV 1
22851 _ACEOF
22852
22853
22854 cat >>confdefs.h <<\_ACEOF
22855 #define HAVE_ST_RDEV 1
22856 _ACEOF
22857
22858 fi
22859
22860
22861 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22862 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22863 if test "${ac_cv_struct_tm+set}" = set; then
22864   echo $ECHO_N "(cached) $ECHO_C" >&6
22865 else
22866   cat >conftest.$ac_ext <<_ACEOF
22867 /* confdefs.h.  */
22868 _ACEOF
22869 cat confdefs.h >>conftest.$ac_ext
22870 cat >>conftest.$ac_ext <<_ACEOF
22871 /* end confdefs.h.  */
22872 #include <sys/types.h>
22873 #include <time.h>
22874
22875 int
22876 main ()
22877 {
22878 struct tm *tp; tp->tm_sec;
22879   ;
22880   return 0;
22881 }
22882 _ACEOF
22883 rm -f conftest.$ac_objext
22884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22885   (eval $ac_compile) 2>conftest.er1
22886   ac_status=$?
22887   grep -v '^ *+' conftest.er1 >conftest.err
22888   rm -f conftest.er1
22889   cat conftest.err >&5
22890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891   (exit $ac_status); } &&
22892          { ac_try='test -z "$ac_c_werror_flag"
22893                          || test ! -s conftest.err'
22894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895   (eval $ac_try) 2>&5
22896   ac_status=$?
22897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898   (exit $ac_status); }; } &&
22899          { ac_try='test -s conftest.$ac_objext'
22900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22901   (eval $ac_try) 2>&5
22902   ac_status=$?
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); }; }; then
22905   ac_cv_struct_tm=time.h
22906 else
22907   echo "$as_me: failed program was:" >&5
22908 sed 's/^/| /' conftest.$ac_ext >&5
22909
22910 ac_cv_struct_tm=sys/time.h
22911 fi
22912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22913 fi
22914 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22915 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22916 if test $ac_cv_struct_tm = sys/time.h; then
22917
22918 cat >>confdefs.h <<\_ACEOF
22919 #define TM_IN_SYS_TIME 1
22920 _ACEOF
22921
22922 fi
22923
22924 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22925 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22926 if test "${ac_cv_c_const+set}" = set; then
22927   echo $ECHO_N "(cached) $ECHO_C" >&6
22928 else
22929   cat >conftest.$ac_ext <<_ACEOF
22930 /* confdefs.h.  */
22931 _ACEOF
22932 cat confdefs.h >>conftest.$ac_ext
22933 cat >>conftest.$ac_ext <<_ACEOF
22934 /* end confdefs.h.  */
22935
22936 int
22937 main ()
22938 {
22939 /* FIXME: Include the comments suggested by Paul. */
22940 #ifndef __cplusplus
22941   /* Ultrix mips cc rejects this.  */
22942   typedef int charset[2];
22943   const charset x;
22944   /* SunOS 4.1.1 cc rejects this.  */
22945   char const *const *ccp;
22946   char **p;
22947   /* NEC SVR4.0.2 mips cc rejects this.  */
22948   struct point {int x, y;};
22949   static struct point const zero = {0,0};
22950   /* AIX XL C 1.02.0.0 rejects this.
22951      It does not let you subtract one const X* pointer from another in
22952      an arm of an if-expression whose if-part is not a constant
22953      expression */
22954   const char *g = "string";
22955   ccp = &g + (g ? g-g : 0);
22956   /* HPUX 7.0 cc rejects these. */
22957   ++ccp;
22958   p = (char**) ccp;
22959   ccp = (char const *const *) p;
22960   { /* SCO 3.2v4 cc rejects this.  */
22961     char *t;
22962     char const *s = 0 ? (char *) 0 : (char const *) 0;
22963
22964     *t++ = 0;
22965   }
22966   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22967     int x[] = {25, 17};
22968     const int *foo = &x[0];
22969     ++foo;
22970   }
22971   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22972     typedef const int *iptr;
22973     iptr p = 0;
22974     ++p;
22975   }
22976   { /* AIX XL C 1.02.0.0 rejects this saying
22977        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22978     struct s { int j; const int *ap[3]; };
22979     struct s *b; b->j = 5;
22980   }
22981   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22982     const int foo = 10;
22983   }
22984 #endif
22985
22986   ;
22987   return 0;
22988 }
22989 _ACEOF
22990 rm -f conftest.$ac_objext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22992   (eval $ac_compile) 2>conftest.er1
22993   ac_status=$?
22994   grep -v '^ *+' conftest.er1 >conftest.err
22995   rm -f conftest.er1
22996   cat conftest.err >&5
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); } &&
22999          { ac_try='test -z "$ac_c_werror_flag"
23000                          || test ! -s conftest.err'
23001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23002   (eval $ac_try) 2>&5
23003   ac_status=$?
23004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23005   (exit $ac_status); }; } &&
23006          { ac_try='test -s conftest.$ac_objext'
23007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23008   (eval $ac_try) 2>&5
23009   ac_status=$?
23010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011   (exit $ac_status); }; }; then
23012   ac_cv_c_const=yes
23013 else
23014   echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 ac_cv_c_const=no
23018 fi
23019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23020 fi
23021 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23022 echo "${ECHO_T}$ac_cv_c_const" >&6
23023 if test $ac_cv_c_const = no; then
23024
23025 cat >>confdefs.h <<\_ACEOF
23026 #define const
23027 _ACEOF
23028
23029 fi
23030
23031
23032
23033 echo "$as_me:$LINENO: checking for char" >&5
23034 echo $ECHO_N "checking for char... $ECHO_C" >&6
23035 if test "${ac_cv_type_char+set}" = set; then
23036   echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038   cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 $ac_includes_default
23045 int
23046 main ()
23047 {
23048 if ((char *) 0)
23049   return 0;
23050 if (sizeof (char))
23051   return 0;
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 rm -f conftest.$ac_objext
23057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23058   (eval $ac_compile) 2>conftest.er1
23059   ac_status=$?
23060   grep -v '^ *+' conftest.er1 >conftest.err
23061   rm -f conftest.er1
23062   cat conftest.err >&5
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); } &&
23065          { ac_try='test -z "$ac_c_werror_flag"
23066                          || test ! -s conftest.err'
23067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23068   (eval $ac_try) 2>&5
23069   ac_status=$?
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); }; } &&
23072          { ac_try='test -s conftest.$ac_objext'
23073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074   (eval $ac_try) 2>&5
23075   ac_status=$?
23076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077   (exit $ac_status); }; }; then
23078   ac_cv_type_char=yes
23079 else
23080   echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ac_cv_type_char=no
23084 fi
23085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23086 fi
23087 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23088 echo "${ECHO_T}$ac_cv_type_char" >&6
23089
23090 echo "$as_me:$LINENO: checking size of char" >&5
23091 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23092 if test "${ac_cv_sizeof_char+set}" = set; then
23093   echo $ECHO_N "(cached) $ECHO_C" >&6
23094 else
23095   if test "$ac_cv_type_char" = yes; then
23096   # The cast to unsigned long works around a bug in the HP C Compiler
23097   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23098   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23099   # This bug is HP SR number 8606223364.
23100   if test "$cross_compiling" = yes; then
23101   # Depending upon the size, compute the lo and hi bounds.
23102 cat >conftest.$ac_ext <<_ACEOF
23103 /* confdefs.h.  */
23104 _ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h.  */
23108 $ac_includes_default
23109 int
23110 main ()
23111 {
23112 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23113 test_array [0] = 0
23114
23115   ;
23116   return 0;
23117 }
23118 _ACEOF
23119 rm -f conftest.$ac_objext
23120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23121   (eval $ac_compile) 2>conftest.er1
23122   ac_status=$?
23123   grep -v '^ *+' conftest.er1 >conftest.err
23124   rm -f conftest.er1
23125   cat conftest.err >&5
23126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127   (exit $ac_status); } &&
23128          { ac_try='test -z "$ac_c_werror_flag"
23129                          || test ! -s conftest.err'
23130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131   (eval $ac_try) 2>&5
23132   ac_status=$?
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); }; } &&
23135          { ac_try='test -s conftest.$ac_objext'
23136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23137   (eval $ac_try) 2>&5
23138   ac_status=$?
23139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23140   (exit $ac_status); }; }; then
23141   ac_lo=0 ac_mid=0
23142   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23154 test_array [0] = 0
23155
23156   ;
23157   return 0;
23158 }
23159 _ACEOF
23160 rm -f conftest.$ac_objext
23161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23162   (eval $ac_compile) 2>conftest.er1
23163   ac_status=$?
23164   grep -v '^ *+' conftest.er1 >conftest.err
23165   rm -f conftest.er1
23166   cat conftest.err >&5
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); } &&
23169          { ac_try='test -z "$ac_c_werror_flag"
23170                          || test ! -s conftest.err'
23171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23172   (eval $ac_try) 2>&5
23173   ac_status=$?
23174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175   (exit $ac_status); }; } &&
23176          { ac_try='test -s conftest.$ac_objext'
23177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178   (eval $ac_try) 2>&5
23179   ac_status=$?
23180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181   (exit $ac_status); }; }; then
23182   ac_hi=$ac_mid; break
23183 else
23184   echo "$as_me: failed program was:" >&5
23185 sed 's/^/| /' conftest.$ac_ext >&5
23186
23187 ac_lo=`expr $ac_mid + 1`
23188                     if test $ac_lo -le $ac_mid; then
23189                       ac_lo= ac_hi=
23190                       break
23191                     fi
23192                     ac_mid=`expr 2 '*' $ac_mid + 1`
23193 fi
23194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23195   done
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200 cat >conftest.$ac_ext <<_ACEOF
23201 /* confdefs.h.  */
23202 _ACEOF
23203 cat confdefs.h >>conftest.$ac_ext
23204 cat >>conftest.$ac_ext <<_ACEOF
23205 /* end confdefs.h.  */
23206 $ac_includes_default
23207 int
23208 main ()
23209 {
23210 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23211 test_array [0] = 0
23212
23213   ;
23214   return 0;
23215 }
23216 _ACEOF
23217 rm -f conftest.$ac_objext
23218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23219   (eval $ac_compile) 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } &&
23226          { ac_try='test -z "$ac_c_werror_flag"
23227                          || test ! -s conftest.err'
23228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23229   (eval $ac_try) 2>&5
23230   ac_status=$?
23231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232   (exit $ac_status); }; } &&
23233          { ac_try='test -s conftest.$ac_objext'
23234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23235   (eval $ac_try) 2>&5
23236   ac_status=$?
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); }; }; then
23239   ac_hi=-1 ac_mid=-1
23240   while :; do
23241     cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h.  */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h.  */
23247 $ac_includes_default
23248 int
23249 main ()
23250 {
23251 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23252 test_array [0] = 0
23253
23254   ;
23255   return 0;
23256 }
23257 _ACEOF
23258 rm -f conftest.$ac_objext
23259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23260   (eval $ac_compile) 2>conftest.er1
23261   ac_status=$?
23262   grep -v '^ *+' conftest.er1 >conftest.err
23263   rm -f conftest.er1
23264   cat conftest.err >&5
23265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23266   (exit $ac_status); } &&
23267          { ac_try='test -z "$ac_c_werror_flag"
23268                          || test ! -s conftest.err'
23269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23270   (eval $ac_try) 2>&5
23271   ac_status=$?
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); }; } &&
23274          { ac_try='test -s conftest.$ac_objext'
23275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276   (eval $ac_try) 2>&5
23277   ac_status=$?
23278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279   (exit $ac_status); }; }; then
23280   ac_lo=$ac_mid; break
23281 else
23282   echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23284
23285 ac_hi=`expr '(' $ac_mid ')' - 1`
23286                        if test $ac_mid -le $ac_hi; then
23287                          ac_lo= ac_hi=
23288                          break
23289                        fi
23290                        ac_mid=`expr 2 '*' $ac_mid`
23291 fi
23292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23293   done
23294 else
23295   echo "$as_me: failed program was:" >&5
23296 sed 's/^/| /' conftest.$ac_ext >&5
23297
23298 ac_lo= ac_hi=
23299 fi
23300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23301 fi
23302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 # Binary search between lo and hi bounds.
23304 while test "x$ac_lo" != "x$ac_hi"; do
23305   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23306   cat >conftest.$ac_ext <<_ACEOF
23307 /* confdefs.h.  */
23308 _ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h.  */
23312 $ac_includes_default
23313 int
23314 main ()
23315 {
23316 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23317 test_array [0] = 0
23318
23319   ;
23320   return 0;
23321 }
23322 _ACEOF
23323 rm -f conftest.$ac_objext
23324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23325   (eval $ac_compile) 2>conftest.er1
23326   ac_status=$?
23327   grep -v '^ *+' conftest.er1 >conftest.err
23328   rm -f conftest.er1
23329   cat conftest.err >&5
23330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331   (exit $ac_status); } &&
23332          { ac_try='test -z "$ac_c_werror_flag"
23333                          || test ! -s conftest.err'
23334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23335   (eval $ac_try) 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; } &&
23339          { ac_try='test -s conftest.$ac_objext'
23340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341   (eval $ac_try) 2>&5
23342   ac_status=$?
23343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344   (exit $ac_status); }; }; then
23345   ac_hi=$ac_mid
23346 else
23347   echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23349
23350 ac_lo=`expr '(' $ac_mid ')' + 1`
23351 fi
23352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23353 done
23354 case $ac_lo in
23355 ?*) ac_cv_sizeof_char=$ac_lo;;
23356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23357 See \`config.log' for more details." >&5
23358 echo "$as_me: error: cannot compute sizeof (char), 77
23359 See \`config.log' for more details." >&2;}
23360    { (exit 1); exit 1; }; } ;;
23361 esac
23362 else
23363   if test "$cross_compiling" = yes; then
23364   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23365 See \`config.log' for more details." >&5
23366 echo "$as_me: error: cannot run test program while cross compiling
23367 See \`config.log' for more details." >&2;}
23368    { (exit 1); exit 1; }; }
23369 else
23370   cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377 long longval () { return (long) (sizeof (char)); }
23378 unsigned long ulongval () { return (long) (sizeof (char)); }
23379 #include <stdio.h>
23380 #include <stdlib.h>
23381 int
23382 main ()
23383 {
23384
23385   FILE *f = fopen ("conftest.val", "w");
23386   if (! f)
23387     exit (1);
23388   if (((long) (sizeof (char))) < 0)
23389     {
23390       long i = longval ();
23391       if (i != ((long) (sizeof (char))))
23392         exit (1);
23393       fprintf (f, "%ld\n", i);
23394     }
23395   else
23396     {
23397       unsigned long i = ulongval ();
23398       if (i != ((long) (sizeof (char))))
23399         exit (1);
23400       fprintf (f, "%lu\n", i);
23401     }
23402   exit (ferror (f) || fclose (f) != 0);
23403
23404   ;
23405   return 0;
23406 }
23407 _ACEOF
23408 rm -f conftest$ac_exeext
23409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23410   (eval $ac_link) 2>&5
23411   ac_status=$?
23412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415   (eval $ac_try) 2>&5
23416   ac_status=$?
23417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418   (exit $ac_status); }; }; then
23419   ac_cv_sizeof_char=`cat conftest.val`
23420 else
23421   echo "$as_me: program exited with status $ac_status" >&5
23422 echo "$as_me: failed program was:" >&5
23423 sed 's/^/| /' conftest.$ac_ext >&5
23424
23425 ( exit $ac_status )
23426 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23427 See \`config.log' for more details." >&5
23428 echo "$as_me: error: cannot compute sizeof (char), 77
23429 See \`config.log' for more details." >&2;}
23430    { (exit 1); exit 1; }; }
23431 fi
23432 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23433 fi
23434 fi
23435 rm -f conftest.val
23436 else
23437   ac_cv_sizeof_char=0
23438 fi
23439 fi
23440 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23441 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23442 cat >>confdefs.h <<_ACEOF
23443 #define SIZEOF_CHAR $ac_cv_sizeof_char
23444 _ACEOF
23445
23446
23447 echo "$as_me:$LINENO: checking for short int" >&5
23448 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23449 if test "${ac_cv_type_short_int+set}" = set; then
23450   echo $ECHO_N "(cached) $ECHO_C" >&6
23451 else
23452   cat >conftest.$ac_ext <<_ACEOF
23453 /* confdefs.h.  */
23454 _ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h.  */
23458 $ac_includes_default
23459 int
23460 main ()
23461 {
23462 if ((short int *) 0)
23463   return 0;
23464 if (sizeof (short int))
23465   return 0;
23466   ;
23467   return 0;
23468 }
23469 _ACEOF
23470 rm -f conftest.$ac_objext
23471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23472   (eval $ac_compile) 2>conftest.er1
23473   ac_status=$?
23474   grep -v '^ *+' conftest.er1 >conftest.err
23475   rm -f conftest.er1
23476   cat conftest.err >&5
23477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478   (exit $ac_status); } &&
23479          { ac_try='test -z "$ac_c_werror_flag"
23480                          || test ! -s conftest.err'
23481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482   (eval $ac_try) 2>&5
23483   ac_status=$?
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); }; } &&
23486          { ac_try='test -s conftest.$ac_objext'
23487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23488   (eval $ac_try) 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   ac_cv_type_short_int=yes
23493 else
23494   echo "$as_me: failed program was:" >&5
23495 sed 's/^/| /' conftest.$ac_ext >&5
23496
23497 ac_cv_type_short_int=no
23498 fi
23499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23500 fi
23501 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23502 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23503
23504 echo "$as_me:$LINENO: checking size of short int" >&5
23505 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23506 if test "${ac_cv_sizeof_short_int+set}" = set; then
23507   echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509   if test "$ac_cv_type_short_int" = yes; then
23510   # The cast to unsigned long works around a bug in the HP C Compiler
23511   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23512   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23513   # This bug is HP SR number 8606223364.
23514   if test "$cross_compiling" = yes; then
23515   # Depending upon the size, compute the lo and hi bounds.
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h.  */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h.  */
23522 $ac_includes_default
23523 int
23524 main ()
23525 {
23526 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23527 test_array [0] = 0
23528
23529   ;
23530   return 0;
23531 }
23532 _ACEOF
23533 rm -f conftest.$ac_objext
23534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23535   (eval $ac_compile) 2>conftest.er1
23536   ac_status=$?
23537   grep -v '^ *+' conftest.er1 >conftest.err
23538   rm -f conftest.er1
23539   cat conftest.err >&5
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } &&
23542          { ac_try='test -z "$ac_c_werror_flag"
23543                          || test ! -s conftest.err'
23544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545   (eval $ac_try) 2>&5
23546   ac_status=$?
23547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548   (exit $ac_status); }; } &&
23549          { ac_try='test -s conftest.$ac_objext'
23550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551   (eval $ac_try) 2>&5
23552   ac_status=$?
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); }; }; then
23555   ac_lo=0 ac_mid=0
23556   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23568 test_array [0] = 0
23569
23570   ;
23571   return 0;
23572 }
23573 _ACEOF
23574 rm -f conftest.$ac_objext
23575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576   (eval $ac_compile) 2>conftest.er1
23577   ac_status=$?
23578   grep -v '^ *+' conftest.er1 >conftest.err
23579   rm -f conftest.er1
23580   cat conftest.err >&5
23581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582   (exit $ac_status); } &&
23583          { ac_try='test -z "$ac_c_werror_flag"
23584                          || test ! -s conftest.err'
23585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586   (eval $ac_try) 2>&5
23587   ac_status=$?
23588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589   (exit $ac_status); }; } &&
23590          { ac_try='test -s conftest.$ac_objext'
23591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592   (eval $ac_try) 2>&5
23593   ac_status=$?
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); }; }; then
23596   ac_hi=$ac_mid; break
23597 else
23598   echo "$as_me: failed program was:" >&5
23599 sed 's/^/| /' conftest.$ac_ext >&5
23600
23601 ac_lo=`expr $ac_mid + 1`
23602                     if test $ac_lo -le $ac_mid; then
23603                       ac_lo= ac_hi=
23604                       break
23605                     fi
23606                     ac_mid=`expr 2 '*' $ac_mid + 1`
23607 fi
23608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23609   done
23610 else
23611   echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614 cat >conftest.$ac_ext <<_ACEOF
23615 /* confdefs.h.  */
23616 _ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h.  */
23620 $ac_includes_default
23621 int
23622 main ()
23623 {
23624 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23625 test_array [0] = 0
23626
23627   ;
23628   return 0;
23629 }
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23633   (eval $ac_compile) 2>conftest.er1
23634   ac_status=$?
23635   grep -v '^ *+' conftest.er1 >conftest.err
23636   rm -f conftest.er1
23637   cat conftest.err >&5
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); } &&
23640          { ac_try='test -z "$ac_c_werror_flag"
23641                          || test ! -s conftest.err'
23642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643   (eval $ac_try) 2>&5
23644   ac_status=$?
23645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646   (exit $ac_status); }; } &&
23647          { ac_try='test -s conftest.$ac_objext'
23648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23649   (eval $ac_try) 2>&5
23650   ac_status=$?
23651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652   (exit $ac_status); }; }; then
23653   ac_hi=-1 ac_mid=-1
23654   while :; do
23655     cat >conftest.$ac_ext <<_ACEOF
23656 /* confdefs.h.  */
23657 _ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h.  */
23661 $ac_includes_default
23662 int
23663 main ()
23664 {
23665 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23666 test_array [0] = 0
23667
23668   ;
23669   return 0;
23670 }
23671 _ACEOF
23672 rm -f conftest.$ac_objext
23673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23674   (eval $ac_compile) 2>conftest.er1
23675   ac_status=$?
23676   grep -v '^ *+' conftest.er1 >conftest.err
23677   rm -f conftest.er1
23678   cat conftest.err >&5
23679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680   (exit $ac_status); } &&
23681          { ac_try='test -z "$ac_c_werror_flag"
23682                          || test ! -s conftest.err'
23683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23684   (eval $ac_try) 2>&5
23685   ac_status=$?
23686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23687   (exit $ac_status); }; } &&
23688          { ac_try='test -s conftest.$ac_objext'
23689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23690   (eval $ac_try) 2>&5
23691   ac_status=$?
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); }; }; then
23694   ac_lo=$ac_mid; break
23695 else
23696   echo "$as_me: failed program was:" >&5
23697 sed 's/^/| /' conftest.$ac_ext >&5
23698
23699 ac_hi=`expr '(' $ac_mid ')' - 1`
23700                        if test $ac_mid -le $ac_hi; then
23701                          ac_lo= ac_hi=
23702                          break
23703                        fi
23704                        ac_mid=`expr 2 '*' $ac_mid`
23705 fi
23706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23707   done
23708 else
23709   echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712 ac_lo= ac_hi=
23713 fi
23714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23715 fi
23716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23717 # Binary search between lo and hi bounds.
23718 while test "x$ac_lo" != "x$ac_hi"; do
23719   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23720   cat >conftest.$ac_ext <<_ACEOF
23721 /* confdefs.h.  */
23722 _ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h.  */
23726 $ac_includes_default
23727 int
23728 main ()
23729 {
23730 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23731 test_array [0] = 0
23732
23733   ;
23734   return 0;
23735 }
23736 _ACEOF
23737 rm -f conftest.$ac_objext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23739   (eval $ac_compile) 2>conftest.er1
23740   ac_status=$?
23741   grep -v '^ *+' conftest.er1 >conftest.err
23742   rm -f conftest.er1
23743   cat conftest.err >&5
23744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745   (exit $ac_status); } &&
23746          { ac_try='test -z "$ac_c_werror_flag"
23747                          || test ! -s conftest.err'
23748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749   (eval $ac_try) 2>&5
23750   ac_status=$?
23751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752   (exit $ac_status); }; } &&
23753          { ac_try='test -s conftest.$ac_objext'
23754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755   (eval $ac_try) 2>&5
23756   ac_status=$?
23757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758   (exit $ac_status); }; }; then
23759   ac_hi=$ac_mid
23760 else
23761   echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23763
23764 ac_lo=`expr '(' $ac_mid ')' + 1`
23765 fi
23766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23767 done
23768 case $ac_lo in
23769 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23770 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23771 See \`config.log' for more details." >&5
23772 echo "$as_me: error: cannot compute sizeof (short int), 77
23773 See \`config.log' for more details." >&2;}
23774    { (exit 1); exit 1; }; } ;;
23775 esac
23776 else
23777   if test "$cross_compiling" = yes; then
23778   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23779 See \`config.log' for more details." >&5
23780 echo "$as_me: error: cannot run test program while cross compiling
23781 See \`config.log' for more details." >&2;}
23782    { (exit 1); exit 1; }; }
23783 else
23784   cat >conftest.$ac_ext <<_ACEOF
23785 /* confdefs.h.  */
23786 _ACEOF
23787 cat confdefs.h >>conftest.$ac_ext
23788 cat >>conftest.$ac_ext <<_ACEOF
23789 /* end confdefs.h.  */
23790 $ac_includes_default
23791 long longval () { return (long) (sizeof (short int)); }
23792 unsigned long ulongval () { return (long) (sizeof (short int)); }
23793 #include <stdio.h>
23794 #include <stdlib.h>
23795 int
23796 main ()
23797 {
23798
23799   FILE *f = fopen ("conftest.val", "w");
23800   if (! f)
23801     exit (1);
23802   if (((long) (sizeof (short int))) < 0)
23803     {
23804       long i = longval ();
23805       if (i != ((long) (sizeof (short int))))
23806         exit (1);
23807       fprintf (f, "%ld\n", i);
23808     }
23809   else
23810     {
23811       unsigned long i = ulongval ();
23812       if (i != ((long) (sizeof (short int))))
23813         exit (1);
23814       fprintf (f, "%lu\n", i);
23815     }
23816   exit (ferror (f) || fclose (f) != 0);
23817
23818   ;
23819   return 0;
23820 }
23821 _ACEOF
23822 rm -f conftest$ac_exeext
23823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23824   (eval $ac_link) 2>&5
23825   ac_status=$?
23826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829   (eval $ac_try) 2>&5
23830   ac_status=$?
23831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832   (exit $ac_status); }; }; then
23833   ac_cv_sizeof_short_int=`cat conftest.val`
23834 else
23835   echo "$as_me: program exited with status $ac_status" >&5
23836 echo "$as_me: failed program was:" >&5
23837 sed 's/^/| /' conftest.$ac_ext >&5
23838
23839 ( exit $ac_status )
23840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23841 See \`config.log' for more details." >&5
23842 echo "$as_me: error: cannot compute sizeof (short int), 77
23843 See \`config.log' for more details." >&2;}
23844    { (exit 1); exit 1; }; }
23845 fi
23846 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23847 fi
23848 fi
23849 rm -f conftest.val
23850 else
23851   ac_cv_sizeof_short_int=0
23852 fi
23853 fi
23854 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23855 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23856 cat >>confdefs.h <<_ACEOF
23857 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23858 _ACEOF
23859
23860
23861 echo "$as_me:$LINENO: checking for int" >&5
23862 echo $ECHO_N "checking for int... $ECHO_C" >&6
23863 if test "${ac_cv_type_int+set}" = set; then
23864   echo $ECHO_N "(cached) $ECHO_C" >&6
23865 else
23866   cat >conftest.$ac_ext <<_ACEOF
23867 /* confdefs.h.  */
23868 _ACEOF
23869 cat confdefs.h >>conftest.$ac_ext
23870 cat >>conftest.$ac_ext <<_ACEOF
23871 /* end confdefs.h.  */
23872 $ac_includes_default
23873 int
23874 main ()
23875 {
23876 if ((int *) 0)
23877   return 0;
23878 if (sizeof (int))
23879   return 0;
23880   ;
23881   return 0;
23882 }
23883 _ACEOF
23884 rm -f conftest.$ac_objext
23885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23886   (eval $ac_compile) 2>conftest.er1
23887   ac_status=$?
23888   grep -v '^ *+' conftest.er1 >conftest.err
23889   rm -f conftest.er1
23890   cat conftest.err >&5
23891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23892   (exit $ac_status); } &&
23893          { ac_try='test -z "$ac_c_werror_flag"
23894                          || test ! -s conftest.err'
23895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23896   (eval $ac_try) 2>&5
23897   ac_status=$?
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); }; } &&
23900          { ac_try='test -s conftest.$ac_objext'
23901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23902   (eval $ac_try) 2>&5
23903   ac_status=$?
23904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905   (exit $ac_status); }; }; then
23906   ac_cv_type_int=yes
23907 else
23908   echo "$as_me: failed program was:" >&5
23909 sed 's/^/| /' conftest.$ac_ext >&5
23910
23911 ac_cv_type_int=no
23912 fi
23913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23914 fi
23915 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23916 echo "${ECHO_T}$ac_cv_type_int" >&6
23917
23918 echo "$as_me:$LINENO: checking size of int" >&5
23919 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23920 if test "${ac_cv_sizeof_int+set}" = set; then
23921   echo $ECHO_N "(cached) $ECHO_C" >&6
23922 else
23923   if test "$ac_cv_type_int" = yes; then
23924   # The cast to unsigned long works around a bug in the HP C Compiler
23925   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23926   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23927   # This bug is HP SR number 8606223364.
23928   if test "$cross_compiling" = yes; then
23929   # Depending upon the size, compute the lo and hi bounds.
23930 cat >conftest.$ac_ext <<_ACEOF
23931 /* confdefs.h.  */
23932 _ACEOF
23933 cat confdefs.h >>conftest.$ac_ext
23934 cat >>conftest.$ac_ext <<_ACEOF
23935 /* end confdefs.h.  */
23936 $ac_includes_default
23937 int
23938 main ()
23939 {
23940 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23941 test_array [0] = 0
23942
23943   ;
23944   return 0;
23945 }
23946 _ACEOF
23947 rm -f conftest.$ac_objext
23948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23949   (eval $ac_compile) 2>conftest.er1
23950   ac_status=$?
23951   grep -v '^ *+' conftest.er1 >conftest.err
23952   rm -f conftest.er1
23953   cat conftest.err >&5
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); } &&
23956          { ac_try='test -z "$ac_c_werror_flag"
23957                          || test ! -s conftest.err'
23958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959   (eval $ac_try) 2>&5
23960   ac_status=$?
23961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962   (exit $ac_status); }; } &&
23963          { ac_try='test -s conftest.$ac_objext'
23964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965   (eval $ac_try) 2>&5
23966   ac_status=$?
23967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); }; }; then
23969   ac_lo=0 ac_mid=0
23970   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23982 test_array [0] = 0
23983
23984   ;
23985   return 0;
23986 }
23987 _ACEOF
23988 rm -f conftest.$ac_objext
23989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23990   (eval $ac_compile) 2>conftest.er1
23991   ac_status=$?
23992   grep -v '^ *+' conftest.er1 >conftest.err
23993   rm -f conftest.er1
23994   cat conftest.err >&5
23995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23996   (exit $ac_status); } &&
23997          { ac_try='test -z "$ac_c_werror_flag"
23998                          || test ! -s conftest.err'
23999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24000   (eval $ac_try) 2>&5
24001   ac_status=$?
24002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24003   (exit $ac_status); }; } &&
24004          { ac_try='test -s conftest.$ac_objext'
24005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006   (eval $ac_try) 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010   ac_hi=$ac_mid; break
24011 else
24012   echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015 ac_lo=`expr $ac_mid + 1`
24016                     if test $ac_lo -le $ac_mid; then
24017                       ac_lo= ac_hi=
24018                       break
24019                     fi
24020                     ac_mid=`expr 2 '*' $ac_mid + 1`
24021 fi
24022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24023   done
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028 cat >conftest.$ac_ext <<_ACEOF
24029 /* confdefs.h.  */
24030 _ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h.  */
24034 $ac_includes_default
24035 int
24036 main ()
24037 {
24038 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24039 test_array [0] = 0
24040
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext
24046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24047   (eval $ac_compile) 2>conftest.er1
24048   ac_status=$?
24049   grep -v '^ *+' conftest.er1 >conftest.err
24050   rm -f conftest.er1
24051   cat conftest.err >&5
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); } &&
24054          { ac_try='test -z "$ac_c_werror_flag"
24055                          || test ! -s conftest.err'
24056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24057   (eval $ac_try) 2>&5
24058   ac_status=$?
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); }; } &&
24061          { ac_try='test -s conftest.$ac_objext'
24062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24063   (eval $ac_try) 2>&5
24064   ac_status=$?
24065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24066   (exit $ac_status); }; }; then
24067   ac_hi=-1 ac_mid=-1
24068   while :; do
24069     cat >conftest.$ac_ext <<_ACEOF
24070 /* confdefs.h.  */
24071 _ACEOF
24072 cat confdefs.h >>conftest.$ac_ext
24073 cat >>conftest.$ac_ext <<_ACEOF
24074 /* end confdefs.h.  */
24075 $ac_includes_default
24076 int
24077 main ()
24078 {
24079 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24080 test_array [0] = 0
24081
24082   ;
24083   return 0;
24084 }
24085 _ACEOF
24086 rm -f conftest.$ac_objext
24087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24088   (eval $ac_compile) 2>conftest.er1
24089   ac_status=$?
24090   grep -v '^ *+' conftest.er1 >conftest.err
24091   rm -f conftest.er1
24092   cat conftest.err >&5
24093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094   (exit $ac_status); } &&
24095          { ac_try='test -z "$ac_c_werror_flag"
24096                          || test ! -s conftest.err'
24097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098   (eval $ac_try) 2>&5
24099   ac_status=$?
24100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101   (exit $ac_status); }; } &&
24102          { ac_try='test -s conftest.$ac_objext'
24103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104   (eval $ac_try) 2>&5
24105   ac_status=$?
24106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107   (exit $ac_status); }; }; then
24108   ac_lo=$ac_mid; break
24109 else
24110   echo "$as_me: failed program was:" >&5
24111 sed 's/^/| /' conftest.$ac_ext >&5
24112
24113 ac_hi=`expr '(' $ac_mid ')' - 1`
24114                        if test $ac_mid -le $ac_hi; then
24115                          ac_lo= ac_hi=
24116                          break
24117                        fi
24118                        ac_mid=`expr 2 '*' $ac_mid`
24119 fi
24120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24121   done
24122 else
24123   echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24125
24126 ac_lo= ac_hi=
24127 fi
24128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24129 fi
24130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24131 # Binary search between lo and hi bounds.
24132 while test "x$ac_lo" != "x$ac_hi"; do
24133   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24134   cat >conftest.$ac_ext <<_ACEOF
24135 /* confdefs.h.  */
24136 _ACEOF
24137 cat confdefs.h >>conftest.$ac_ext
24138 cat >>conftest.$ac_ext <<_ACEOF
24139 /* end confdefs.h.  */
24140 $ac_includes_default
24141 int
24142 main ()
24143 {
24144 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24145 test_array [0] = 0
24146
24147   ;
24148   return 0;
24149 }
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24153   (eval $ac_compile) 2>conftest.er1
24154   ac_status=$?
24155   grep -v '^ *+' conftest.er1 >conftest.err
24156   rm -f conftest.er1
24157   cat conftest.err >&5
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); } &&
24160          { ac_try='test -z "$ac_c_werror_flag"
24161                          || test ! -s conftest.err'
24162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24163   (eval $ac_try) 2>&5
24164   ac_status=$?
24165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24166   (exit $ac_status); }; } &&
24167          { ac_try='test -s conftest.$ac_objext'
24168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24169   (eval $ac_try) 2>&5
24170   ac_status=$?
24171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172   (exit $ac_status); }; }; then
24173   ac_hi=$ac_mid
24174 else
24175   echo "$as_me: failed program was:" >&5
24176 sed 's/^/| /' conftest.$ac_ext >&5
24177
24178 ac_lo=`expr '(' $ac_mid ')' + 1`
24179 fi
24180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24181 done
24182 case $ac_lo in
24183 ?*) ac_cv_sizeof_int=$ac_lo;;
24184 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24185 See \`config.log' for more details." >&5
24186 echo "$as_me: error: cannot compute sizeof (int), 77
24187 See \`config.log' for more details." >&2;}
24188    { (exit 1); exit 1; }; } ;;
24189 esac
24190 else
24191   if test "$cross_compiling" = yes; then
24192   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24193 See \`config.log' for more details." >&5
24194 echo "$as_me: error: cannot run test program while cross compiling
24195 See \`config.log' for more details." >&2;}
24196    { (exit 1); exit 1; }; }
24197 else
24198   cat >conftest.$ac_ext <<_ACEOF
24199 /* confdefs.h.  */
24200 _ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h.  */
24204 $ac_includes_default
24205 long longval () { return (long) (sizeof (int)); }
24206 unsigned long ulongval () { return (long) (sizeof (int)); }
24207 #include <stdio.h>
24208 #include <stdlib.h>
24209 int
24210 main ()
24211 {
24212
24213   FILE *f = fopen ("conftest.val", "w");
24214   if (! f)
24215     exit (1);
24216   if (((long) (sizeof (int))) < 0)
24217     {
24218       long i = longval ();
24219       if (i != ((long) (sizeof (int))))
24220         exit (1);
24221       fprintf (f, "%ld\n", i);
24222     }
24223   else
24224     {
24225       unsigned long i = ulongval ();
24226       if (i != ((long) (sizeof (int))))
24227         exit (1);
24228       fprintf (f, "%lu\n", i);
24229     }
24230   exit (ferror (f) || fclose (f) != 0);
24231
24232   ;
24233   return 0;
24234 }
24235 _ACEOF
24236 rm -f conftest$ac_exeext
24237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24238   (eval $ac_link) 2>&5
24239   ac_status=$?
24240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243   (eval $ac_try) 2>&5
24244   ac_status=$?
24245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246   (exit $ac_status); }; }; then
24247   ac_cv_sizeof_int=`cat conftest.val`
24248 else
24249   echo "$as_me: program exited with status $ac_status" >&5
24250 echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253 ( exit $ac_status )
24254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24255 See \`config.log' for more details." >&5
24256 echo "$as_me: error: cannot compute sizeof (int), 77
24257 See \`config.log' for more details." >&2;}
24258    { (exit 1); exit 1; }; }
24259 fi
24260 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24261 fi
24262 fi
24263 rm -f conftest.val
24264 else
24265   ac_cv_sizeof_int=0
24266 fi
24267 fi
24268 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24269 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24270 cat >>confdefs.h <<_ACEOF
24271 #define SIZEOF_INT $ac_cv_sizeof_int
24272 _ACEOF
24273
24274
24275 echo "$as_me:$LINENO: checking for long int" >&5
24276 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24277 if test "${ac_cv_type_long_int+set}" = set; then
24278   echo $ECHO_N "(cached) $ECHO_C" >&6
24279 else
24280   cat >conftest.$ac_ext <<_ACEOF
24281 /* confdefs.h.  */
24282 _ACEOF
24283 cat confdefs.h >>conftest.$ac_ext
24284 cat >>conftest.$ac_ext <<_ACEOF
24285 /* end confdefs.h.  */
24286 $ac_includes_default
24287 int
24288 main ()
24289 {
24290 if ((long int *) 0)
24291   return 0;
24292 if (sizeof (long int))
24293   return 0;
24294   ;
24295   return 0;
24296 }
24297 _ACEOF
24298 rm -f conftest.$ac_objext
24299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24300   (eval $ac_compile) 2>conftest.er1
24301   ac_status=$?
24302   grep -v '^ *+' conftest.er1 >conftest.err
24303   rm -f conftest.er1
24304   cat conftest.err >&5
24305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306   (exit $ac_status); } &&
24307          { ac_try='test -z "$ac_c_werror_flag"
24308                          || test ! -s conftest.err'
24309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24310   (eval $ac_try) 2>&5
24311   ac_status=$?
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); }; } &&
24314          { ac_try='test -s conftest.$ac_objext'
24315   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24316   (eval $ac_try) 2>&5
24317   ac_status=$?
24318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319   (exit $ac_status); }; }; then
24320   ac_cv_type_long_int=yes
24321 else
24322   echo "$as_me: failed program was:" >&5
24323 sed 's/^/| /' conftest.$ac_ext >&5
24324
24325 ac_cv_type_long_int=no
24326 fi
24327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24328 fi
24329 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24330 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24331
24332 echo "$as_me:$LINENO: checking size of long int" >&5
24333 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24334 if test "${ac_cv_sizeof_long_int+set}" = set; then
24335   echo $ECHO_N "(cached) $ECHO_C" >&6
24336 else
24337   if test "$ac_cv_type_long_int" = yes; then
24338   # The cast to unsigned long works around a bug in the HP C Compiler
24339   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24340   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24341   # This bug is HP SR number 8606223364.
24342   if test "$cross_compiling" = yes; then
24343   # Depending upon the size, compute the lo and hi bounds.
24344 cat >conftest.$ac_ext <<_ACEOF
24345 /* confdefs.h.  */
24346 _ACEOF
24347 cat confdefs.h >>conftest.$ac_ext
24348 cat >>conftest.$ac_ext <<_ACEOF
24349 /* end confdefs.h.  */
24350 $ac_includes_default
24351 int
24352 main ()
24353 {
24354 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24355 test_array [0] = 0
24356
24357   ;
24358   return 0;
24359 }
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24363   (eval $ac_compile) 2>conftest.er1
24364   ac_status=$?
24365   grep -v '^ *+' conftest.er1 >conftest.err
24366   rm -f conftest.er1
24367   cat conftest.err >&5
24368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24369   (exit $ac_status); } &&
24370          { ac_try='test -z "$ac_c_werror_flag"
24371                          || test ! -s conftest.err'
24372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24373   (eval $ac_try) 2>&5
24374   ac_status=$?
24375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24376   (exit $ac_status); }; } &&
24377          { ac_try='test -s conftest.$ac_objext'
24378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24379   (eval $ac_try) 2>&5
24380   ac_status=$?
24381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24382   (exit $ac_status); }; }; then
24383   ac_lo=0 ac_mid=0
24384   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24396 test_array [0] = 0
24397
24398   ;
24399   return 0;
24400 }
24401 _ACEOF
24402 rm -f conftest.$ac_objext
24403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24404   (eval $ac_compile) 2>conftest.er1
24405   ac_status=$?
24406   grep -v '^ *+' conftest.er1 >conftest.err
24407   rm -f conftest.er1
24408   cat conftest.err >&5
24409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410   (exit $ac_status); } &&
24411          { ac_try='test -z "$ac_c_werror_flag"
24412                          || test ! -s conftest.err'
24413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24414   (eval $ac_try) 2>&5
24415   ac_status=$?
24416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417   (exit $ac_status); }; } &&
24418          { ac_try='test -s conftest.$ac_objext'
24419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24420   (eval $ac_try) 2>&5
24421   ac_status=$?
24422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24423   (exit $ac_status); }; }; then
24424   ac_hi=$ac_mid; break
24425 else
24426   echo "$as_me: failed program was:" >&5
24427 sed 's/^/| /' conftest.$ac_ext >&5
24428
24429 ac_lo=`expr $ac_mid + 1`
24430                     if test $ac_lo -le $ac_mid; then
24431                       ac_lo= ac_hi=
24432                       break
24433                     fi
24434                     ac_mid=`expr 2 '*' $ac_mid + 1`
24435 fi
24436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24437   done
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442 cat >conftest.$ac_ext <<_ACEOF
24443 /* confdefs.h.  */
24444 _ACEOF
24445 cat confdefs.h >>conftest.$ac_ext
24446 cat >>conftest.$ac_ext <<_ACEOF
24447 /* end confdefs.h.  */
24448 $ac_includes_default
24449 int
24450 main ()
24451 {
24452 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24453 test_array [0] = 0
24454
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext
24460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24461   (eval $ac_compile) 2>conftest.er1
24462   ac_status=$?
24463   grep -v '^ *+' conftest.er1 >conftest.err
24464   rm -f conftest.er1
24465   cat conftest.err >&5
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); } &&
24468          { ac_try='test -z "$ac_c_werror_flag"
24469                          || test ! -s conftest.err'
24470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24471   (eval $ac_try) 2>&5
24472   ac_status=$?
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); }; } &&
24475          { ac_try='test -s conftest.$ac_objext'
24476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24477   (eval $ac_try) 2>&5
24478   ac_status=$?
24479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24480   (exit $ac_status); }; }; then
24481   ac_hi=-1 ac_mid=-1
24482   while :; do
24483     cat >conftest.$ac_ext <<_ACEOF
24484 /* confdefs.h.  */
24485 _ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h.  */
24489 $ac_includes_default
24490 int
24491 main ()
24492 {
24493 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24494 test_array [0] = 0
24495
24496   ;
24497   return 0;
24498 }
24499 _ACEOF
24500 rm -f conftest.$ac_objext
24501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24502   (eval $ac_compile) 2>conftest.er1
24503   ac_status=$?
24504   grep -v '^ *+' conftest.er1 >conftest.err
24505   rm -f conftest.er1
24506   cat conftest.err >&5
24507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24508   (exit $ac_status); } &&
24509          { ac_try='test -z "$ac_c_werror_flag"
24510                          || test ! -s conftest.err'
24511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24512   (eval $ac_try) 2>&5
24513   ac_status=$?
24514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515   (exit $ac_status); }; } &&
24516          { ac_try='test -s conftest.$ac_objext'
24517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24518   (eval $ac_try) 2>&5
24519   ac_status=$?
24520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24521   (exit $ac_status); }; }; then
24522   ac_lo=$ac_mid; break
24523 else
24524   echo "$as_me: failed program was:" >&5
24525 sed 's/^/| /' conftest.$ac_ext >&5
24526
24527 ac_hi=`expr '(' $ac_mid ')' - 1`
24528                        if test $ac_mid -le $ac_hi; then
24529                          ac_lo= ac_hi=
24530                          break
24531                        fi
24532                        ac_mid=`expr 2 '*' $ac_mid`
24533 fi
24534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24535   done
24536 else
24537   echo "$as_me: failed program was:" >&5
24538 sed 's/^/| /' conftest.$ac_ext >&5
24539
24540 ac_lo= ac_hi=
24541 fi
24542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24543 fi
24544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24545 # Binary search between lo and hi bounds.
24546 while test "x$ac_lo" != "x$ac_hi"; do
24547   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24548   cat >conftest.$ac_ext <<_ACEOF
24549 /* confdefs.h.  */
24550 _ACEOF
24551 cat confdefs.h >>conftest.$ac_ext
24552 cat >>conftest.$ac_ext <<_ACEOF
24553 /* end confdefs.h.  */
24554 $ac_includes_default
24555 int
24556 main ()
24557 {
24558 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24559 test_array [0] = 0
24560
24561   ;
24562   return 0;
24563 }
24564 _ACEOF
24565 rm -f conftest.$ac_objext
24566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24567   (eval $ac_compile) 2>conftest.er1
24568   ac_status=$?
24569   grep -v '^ *+' conftest.er1 >conftest.err
24570   rm -f conftest.er1
24571   cat conftest.err >&5
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); } &&
24574          { ac_try='test -z "$ac_c_werror_flag"
24575                          || test ! -s conftest.err'
24576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24577   (eval $ac_try) 2>&5
24578   ac_status=$?
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); }; } &&
24581          { ac_try='test -s conftest.$ac_objext'
24582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24583   (eval $ac_try) 2>&5
24584   ac_status=$?
24585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24586   (exit $ac_status); }; }; then
24587   ac_hi=$ac_mid
24588 else
24589   echo "$as_me: failed program was:" >&5
24590 sed 's/^/| /' conftest.$ac_ext >&5
24591
24592 ac_lo=`expr '(' $ac_mid ')' + 1`
24593 fi
24594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24595 done
24596 case $ac_lo in
24597 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24598 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24599 See \`config.log' for more details." >&5
24600 echo "$as_me: error: cannot compute sizeof (long int), 77
24601 See \`config.log' for more details." >&2;}
24602    { (exit 1); exit 1; }; } ;;
24603 esac
24604 else
24605   if test "$cross_compiling" = yes; then
24606   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24607 See \`config.log' for more details." >&5
24608 echo "$as_me: error: cannot run test program while cross compiling
24609 See \`config.log' for more details." >&2;}
24610    { (exit 1); exit 1; }; }
24611 else
24612   cat >conftest.$ac_ext <<_ACEOF
24613 /* confdefs.h.  */
24614 _ACEOF
24615 cat confdefs.h >>conftest.$ac_ext
24616 cat >>conftest.$ac_ext <<_ACEOF
24617 /* end confdefs.h.  */
24618 $ac_includes_default
24619 long longval () { return (long) (sizeof (long int)); }
24620 unsigned long ulongval () { return (long) (sizeof (long int)); }
24621 #include <stdio.h>
24622 #include <stdlib.h>
24623 int
24624 main ()
24625 {
24626
24627   FILE *f = fopen ("conftest.val", "w");
24628   if (! f)
24629     exit (1);
24630   if (((long) (sizeof (long int))) < 0)
24631     {
24632       long i = longval ();
24633       if (i != ((long) (sizeof (long int))))
24634         exit (1);
24635       fprintf (f, "%ld\n", i);
24636     }
24637   else
24638     {
24639       unsigned long i = ulongval ();
24640       if (i != ((long) (sizeof (long int))))
24641         exit (1);
24642       fprintf (f, "%lu\n", i);
24643     }
24644   exit (ferror (f) || fclose (f) != 0);
24645
24646   ;
24647   return 0;
24648 }
24649 _ACEOF
24650 rm -f conftest$ac_exeext
24651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24652   (eval $ac_link) 2>&5
24653   ac_status=$?
24654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24655   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24657   (eval $ac_try) 2>&5
24658   ac_status=$?
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); }; }; then
24661   ac_cv_sizeof_long_int=`cat conftest.val`
24662 else
24663   echo "$as_me: program exited with status $ac_status" >&5
24664 echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 ( exit $ac_status )
24668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24669 See \`config.log' for more details." >&5
24670 echo "$as_me: error: cannot compute sizeof (long int), 77
24671 See \`config.log' for more details." >&2;}
24672    { (exit 1); exit 1; }; }
24673 fi
24674 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24675 fi
24676 fi
24677 rm -f conftest.val
24678 else
24679   ac_cv_sizeof_long_int=0
24680 fi
24681 fi
24682 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24683 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24684 cat >>confdefs.h <<_ACEOF
24685 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24686 _ACEOF
24687
24688
24689 echo "$as_me:$LINENO: checking for long long int" >&5
24690 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24691 if test "${ac_cv_type_long_long_int+set}" = set; then
24692   echo $ECHO_N "(cached) $ECHO_C" >&6
24693 else
24694   cat >conftest.$ac_ext <<_ACEOF
24695 /* confdefs.h.  */
24696 _ACEOF
24697 cat confdefs.h >>conftest.$ac_ext
24698 cat >>conftest.$ac_ext <<_ACEOF
24699 /* end confdefs.h.  */
24700 $ac_includes_default
24701 int
24702 main ()
24703 {
24704 if ((long long int *) 0)
24705   return 0;
24706 if (sizeof (long long int))
24707   return 0;
24708   ;
24709   return 0;
24710 }
24711 _ACEOF
24712 rm -f conftest.$ac_objext
24713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24714   (eval $ac_compile) 2>conftest.er1
24715   ac_status=$?
24716   grep -v '^ *+' conftest.er1 >conftest.err
24717   rm -f conftest.er1
24718   cat conftest.err >&5
24719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24720   (exit $ac_status); } &&
24721          { ac_try='test -z "$ac_c_werror_flag"
24722                          || test ! -s conftest.err'
24723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24724   (eval $ac_try) 2>&5
24725   ac_status=$?
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); }; } &&
24728          { ac_try='test -s conftest.$ac_objext'
24729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730   (eval $ac_try) 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; }; then
24734   ac_cv_type_long_long_int=yes
24735 else
24736   echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739 ac_cv_type_long_long_int=no
24740 fi
24741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24742 fi
24743 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24744 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24745
24746 echo "$as_me:$LINENO: checking size of long long int" >&5
24747 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24748 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24749   echo $ECHO_N "(cached) $ECHO_C" >&6
24750 else
24751   if test "$ac_cv_type_long_long_int" = yes; then
24752   # The cast to unsigned long works around a bug in the HP C Compiler
24753   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24754   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24755   # This bug is HP SR number 8606223364.
24756   if test "$cross_compiling" = yes; then
24757   # Depending upon the size, compute the lo and hi bounds.
24758 cat >conftest.$ac_ext <<_ACEOF
24759 /* confdefs.h.  */
24760 _ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h.  */
24764 $ac_includes_default
24765 int
24766 main ()
24767 {
24768 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24769 test_array [0] = 0
24770
24771   ;
24772   return 0;
24773 }
24774 _ACEOF
24775 rm -f conftest.$ac_objext
24776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24777   (eval $ac_compile) 2>conftest.er1
24778   ac_status=$?
24779   grep -v '^ *+' conftest.er1 >conftest.err
24780   rm -f conftest.er1
24781   cat conftest.err >&5
24782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24783   (exit $ac_status); } &&
24784          { ac_try='test -z "$ac_c_werror_flag"
24785                          || test ! -s conftest.err'
24786   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24787   (eval $ac_try) 2>&5
24788   ac_status=$?
24789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790   (exit $ac_status); }; } &&
24791          { ac_try='test -s conftest.$ac_objext'
24792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24793   (eval $ac_try) 2>&5
24794   ac_status=$?
24795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796   (exit $ac_status); }; }; then
24797   ac_lo=0 ac_mid=0
24798   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24810 test_array [0] = 0
24811
24812   ;
24813   return 0;
24814 }
24815 _ACEOF
24816 rm -f conftest.$ac_objext
24817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24818   (eval $ac_compile) 2>conftest.er1
24819   ac_status=$?
24820   grep -v '^ *+' conftest.er1 >conftest.err
24821   rm -f conftest.er1
24822   cat conftest.err >&5
24823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824   (exit $ac_status); } &&
24825          { ac_try='test -z "$ac_c_werror_flag"
24826                          || test ! -s conftest.err'
24827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24828   (eval $ac_try) 2>&5
24829   ac_status=$?
24830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24831   (exit $ac_status); }; } &&
24832          { ac_try='test -s conftest.$ac_objext'
24833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834   (eval $ac_try) 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); }; }; then
24838   ac_hi=$ac_mid; break
24839 else
24840   echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 ac_lo=`expr $ac_mid + 1`
24844                     if test $ac_lo -le $ac_mid; then
24845                       ac_lo= ac_hi=
24846                       break
24847                     fi
24848                     ac_mid=`expr 2 '*' $ac_mid + 1`
24849 fi
24850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24851   done
24852 else
24853   echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24855
24856 cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 $ac_includes_default
24863 int
24864 main ()
24865 {
24866 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24867 test_array [0] = 0
24868
24869   ;
24870   return 0;
24871 }
24872 _ACEOF
24873 rm -f conftest.$ac_objext
24874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24875   (eval $ac_compile) 2>conftest.er1
24876   ac_status=$?
24877   grep -v '^ *+' conftest.er1 >conftest.err
24878   rm -f conftest.er1
24879   cat conftest.err >&5
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); } &&
24882          { ac_try='test -z "$ac_c_werror_flag"
24883                          || test ! -s conftest.err'
24884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24885   (eval $ac_try) 2>&5
24886   ac_status=$?
24887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24888   (exit $ac_status); }; } &&
24889          { ac_try='test -s conftest.$ac_objext'
24890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24891   (eval $ac_try) 2>&5
24892   ac_status=$?
24893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24894   (exit $ac_status); }; }; then
24895   ac_hi=-1 ac_mid=-1
24896   while :; do
24897     cat >conftest.$ac_ext <<_ACEOF
24898 /* confdefs.h.  */
24899 _ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h.  */
24903 $ac_includes_default
24904 int
24905 main ()
24906 {
24907 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24908 test_array [0] = 0
24909
24910   ;
24911   return 0;
24912 }
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24916   (eval $ac_compile) 2>conftest.er1
24917   ac_status=$?
24918   grep -v '^ *+' conftest.er1 >conftest.err
24919   rm -f conftest.er1
24920   cat conftest.err >&5
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); } &&
24923          { ac_try='test -z "$ac_c_werror_flag"
24924                          || test ! -s conftest.err'
24925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24926   (eval $ac_try) 2>&5
24927   ac_status=$?
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); }; } &&
24930          { ac_try='test -s conftest.$ac_objext'
24931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24932   (eval $ac_try) 2>&5
24933   ac_status=$?
24934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935   (exit $ac_status); }; }; then
24936   ac_lo=$ac_mid; break
24937 else
24938   echo "$as_me: failed program was:" >&5
24939 sed 's/^/| /' conftest.$ac_ext >&5
24940
24941 ac_hi=`expr '(' $ac_mid ')' - 1`
24942                        if test $ac_mid -le $ac_hi; then
24943                          ac_lo= ac_hi=
24944                          break
24945                        fi
24946                        ac_mid=`expr 2 '*' $ac_mid`
24947 fi
24948 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24949   done
24950 else
24951   echo "$as_me: failed program was:" >&5
24952 sed 's/^/| /' conftest.$ac_ext >&5
24953
24954 ac_lo= ac_hi=
24955 fi
24956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24957 fi
24958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24959 # Binary search between lo and hi bounds.
24960 while test "x$ac_lo" != "x$ac_hi"; do
24961   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24962   cat >conftest.$ac_ext <<_ACEOF
24963 /* confdefs.h.  */
24964 _ACEOF
24965 cat confdefs.h >>conftest.$ac_ext
24966 cat >>conftest.$ac_ext <<_ACEOF
24967 /* end confdefs.h.  */
24968 $ac_includes_default
24969 int
24970 main ()
24971 {
24972 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24973 test_array [0] = 0
24974
24975   ;
24976   return 0;
24977 }
24978 _ACEOF
24979 rm -f conftest.$ac_objext
24980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24981   (eval $ac_compile) 2>conftest.er1
24982   ac_status=$?
24983   grep -v '^ *+' conftest.er1 >conftest.err
24984   rm -f conftest.er1
24985   cat conftest.err >&5
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); } &&
24988          { ac_try='test -z "$ac_c_werror_flag"
24989                          || test ! -s conftest.err'
24990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24991   (eval $ac_try) 2>&5
24992   ac_status=$?
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); }; } &&
24995          { ac_try='test -s conftest.$ac_objext'
24996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24997   (eval $ac_try) 2>&5
24998   ac_status=$?
24999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25000   (exit $ac_status); }; }; then
25001   ac_hi=$ac_mid
25002 else
25003   echo "$as_me: failed program was:" >&5
25004 sed 's/^/| /' conftest.$ac_ext >&5
25005
25006 ac_lo=`expr '(' $ac_mid ')' + 1`
25007 fi
25008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25009 done
25010 case $ac_lo in
25011 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25013 See \`config.log' for more details." >&5
25014 echo "$as_me: error: cannot compute sizeof (long long int), 77
25015 See \`config.log' for more details." >&2;}
25016    { (exit 1); exit 1; }; } ;;
25017 esac
25018 else
25019   if test "$cross_compiling" = yes; then
25020   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25021 See \`config.log' for more details." >&5
25022 echo "$as_me: error: cannot run test program while cross compiling
25023 See \`config.log' for more details." >&2;}
25024    { (exit 1); exit 1; }; }
25025 else
25026   cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h.  */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h.  */
25032 $ac_includes_default
25033 long longval () { return (long) (sizeof (long long int)); }
25034 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25035 #include <stdio.h>
25036 #include <stdlib.h>
25037 int
25038 main ()
25039 {
25040
25041   FILE *f = fopen ("conftest.val", "w");
25042   if (! f)
25043     exit (1);
25044   if (((long) (sizeof (long long int))) < 0)
25045     {
25046       long i = longval ();
25047       if (i != ((long) (sizeof (long long int))))
25048         exit (1);
25049       fprintf (f, "%ld\n", i);
25050     }
25051   else
25052     {
25053       unsigned long i = ulongval ();
25054       if (i != ((long) (sizeof (long long int))))
25055         exit (1);
25056       fprintf (f, "%lu\n", i);
25057     }
25058   exit (ferror (f) || fclose (f) != 0);
25059
25060   ;
25061   return 0;
25062 }
25063 _ACEOF
25064 rm -f conftest$ac_exeext
25065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25066   (eval $ac_link) 2>&5
25067   ac_status=$?
25068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071   (eval $ac_try) 2>&5
25072   ac_status=$?
25073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074   (exit $ac_status); }; }; then
25075   ac_cv_sizeof_long_long_int=`cat conftest.val`
25076 else
25077   echo "$as_me: program exited with status $ac_status" >&5
25078 echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.$ac_ext >&5
25080
25081 ( exit $ac_status )
25082 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25083 See \`config.log' for more details." >&5
25084 echo "$as_me: error: cannot compute sizeof (long long int), 77
25085 See \`config.log' for more details." >&2;}
25086    { (exit 1); exit 1; }; }
25087 fi
25088 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25089 fi
25090 fi
25091 rm -f conftest.val
25092 else
25093   ac_cv_sizeof_long_long_int=0
25094 fi
25095 fi
25096 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25097 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25098 cat >>confdefs.h <<_ACEOF
25099 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25100 _ACEOF
25101
25102
25103 echo "$as_me:$LINENO: checking for int *" >&5
25104 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25105 if test "${ac_cv_type_int_p+set}" = set; then
25106   echo $ECHO_N "(cached) $ECHO_C" >&6
25107 else
25108   cat >conftest.$ac_ext <<_ACEOF
25109 /* confdefs.h.  */
25110 _ACEOF
25111 cat confdefs.h >>conftest.$ac_ext
25112 cat >>conftest.$ac_ext <<_ACEOF
25113 /* end confdefs.h.  */
25114 $ac_includes_default
25115 int
25116 main ()
25117 {
25118 if ((int * *) 0)
25119   return 0;
25120 if (sizeof (int *))
25121   return 0;
25122   ;
25123   return 0;
25124 }
25125 _ACEOF
25126 rm -f conftest.$ac_objext
25127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128   (eval $ac_compile) 2>conftest.er1
25129   ac_status=$?
25130   grep -v '^ *+' conftest.er1 >conftest.err
25131   rm -f conftest.er1
25132   cat conftest.err >&5
25133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134   (exit $ac_status); } &&
25135          { ac_try='test -z "$ac_c_werror_flag"
25136                          || test ! -s conftest.err'
25137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138   (eval $ac_try) 2>&5
25139   ac_status=$?
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); }; } &&
25142          { ac_try='test -s conftest.$ac_objext'
25143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144   (eval $ac_try) 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; }; then
25148   ac_cv_type_int_p=yes
25149 else
25150   echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25152
25153 ac_cv_type_int_p=no
25154 fi
25155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25156 fi
25157 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25158 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25159
25160 echo "$as_me:$LINENO: checking size of int *" >&5
25161 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25162 if test "${ac_cv_sizeof_int_p+set}" = set; then
25163   echo $ECHO_N "(cached) $ECHO_C" >&6
25164 else
25165   if test "$ac_cv_type_int_p" = yes; then
25166   # The cast to unsigned long works around a bug in the HP C Compiler
25167   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25168   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25169   # This bug is HP SR number 8606223364.
25170   if test "$cross_compiling" = yes; then
25171   # Depending upon the size, compute the lo and hi bounds.
25172 cat >conftest.$ac_ext <<_ACEOF
25173 /* confdefs.h.  */
25174 _ACEOF
25175 cat confdefs.h >>conftest.$ac_ext
25176 cat >>conftest.$ac_ext <<_ACEOF
25177 /* end confdefs.h.  */
25178 $ac_includes_default
25179 int
25180 main ()
25181 {
25182 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25183 test_array [0] = 0
25184
25185   ;
25186   return 0;
25187 }
25188 _ACEOF
25189 rm -f conftest.$ac_objext
25190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25191   (eval $ac_compile) 2>conftest.er1
25192   ac_status=$?
25193   grep -v '^ *+' conftest.er1 >conftest.err
25194   rm -f conftest.er1
25195   cat conftest.err >&5
25196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25197   (exit $ac_status); } &&
25198          { ac_try='test -z "$ac_c_werror_flag"
25199                          || test ! -s conftest.err'
25200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201   (eval $ac_try) 2>&5
25202   ac_status=$?
25203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204   (exit $ac_status); }; } &&
25205          { ac_try='test -s conftest.$ac_objext'
25206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25207   (eval $ac_try) 2>&5
25208   ac_status=$?
25209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); }; }; then
25211   ac_lo=0 ac_mid=0
25212   while :; do
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 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25224 test_array [0] = 0
25225
25226   ;
25227   return 0;
25228 }
25229 _ACEOF
25230 rm -f conftest.$ac_objext
25231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25232   (eval $ac_compile) 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } &&
25239          { ac_try='test -z "$ac_c_werror_flag"
25240                          || test ! -s conftest.err'
25241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25242   (eval $ac_try) 2>&5
25243   ac_status=$?
25244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25245   (exit $ac_status); }; } &&
25246          { ac_try='test -s conftest.$ac_objext'
25247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25248   (eval $ac_try) 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; }; then
25252   ac_hi=$ac_mid; break
25253 else
25254   echo "$as_me: failed program was:" >&5
25255 sed 's/^/| /' conftest.$ac_ext >&5
25256
25257 ac_lo=`expr $ac_mid + 1`
25258                     if test $ac_lo -le $ac_mid; then
25259                       ac_lo= ac_hi=
25260                       break
25261                     fi
25262                     ac_mid=`expr 2 '*' $ac_mid + 1`
25263 fi
25264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25265   done
25266 else
25267   echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.$ac_ext >&5
25269
25270 cat >conftest.$ac_ext <<_ACEOF
25271 /* confdefs.h.  */
25272 _ACEOF
25273 cat confdefs.h >>conftest.$ac_ext
25274 cat >>conftest.$ac_ext <<_ACEOF
25275 /* end confdefs.h.  */
25276 $ac_includes_default
25277 int
25278 main ()
25279 {
25280 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25281 test_array [0] = 0
25282
25283   ;
25284   return 0;
25285 }
25286 _ACEOF
25287 rm -f conftest.$ac_objext
25288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25289   (eval $ac_compile) 2>conftest.er1
25290   ac_status=$?
25291   grep -v '^ *+' conftest.er1 >conftest.err
25292   rm -f conftest.er1
25293   cat conftest.err >&5
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); } &&
25296          { ac_try='test -z "$ac_c_werror_flag"
25297                          || test ! -s conftest.err'
25298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25299   (eval $ac_try) 2>&5
25300   ac_status=$?
25301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302   (exit $ac_status); }; } &&
25303          { ac_try='test -s conftest.$ac_objext'
25304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305   (eval $ac_try) 2>&5
25306   ac_status=$?
25307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308   (exit $ac_status); }; }; then
25309   ac_hi=-1 ac_mid=-1
25310   while :; do
25311     cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317 $ac_includes_default
25318 int
25319 main ()
25320 {
25321 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25322 test_array [0] = 0
25323
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330   (eval $ac_compile) 2>conftest.er1
25331   ac_status=$?
25332   grep -v '^ *+' conftest.er1 >conftest.err
25333   rm -f conftest.er1
25334   cat conftest.err >&5
25335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336   (exit $ac_status); } &&
25337          { ac_try='test -z "$ac_c_werror_flag"
25338                          || test ! -s conftest.err'
25339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340   (eval $ac_try) 2>&5
25341   ac_status=$?
25342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343   (exit $ac_status); }; } &&
25344          { ac_try='test -s conftest.$ac_objext'
25345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346   (eval $ac_try) 2>&5
25347   ac_status=$?
25348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349   (exit $ac_status); }; }; then
25350   ac_lo=$ac_mid; break
25351 else
25352   echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.$ac_ext >&5
25354
25355 ac_hi=`expr '(' $ac_mid ')' - 1`
25356                        if test $ac_mid -le $ac_hi; then
25357                          ac_lo= ac_hi=
25358                          break
25359                        fi
25360                        ac_mid=`expr 2 '*' $ac_mid`
25361 fi
25362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25363   done
25364 else
25365   echo "$as_me: failed program was:" >&5
25366 sed 's/^/| /' conftest.$ac_ext >&5
25367
25368 ac_lo= ac_hi=
25369 fi
25370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25371 fi
25372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25373 # Binary search between lo and hi bounds.
25374 while test "x$ac_lo" != "x$ac_hi"; do
25375   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25376   cat >conftest.$ac_ext <<_ACEOF
25377 /* confdefs.h.  */
25378 _ACEOF
25379 cat confdefs.h >>conftest.$ac_ext
25380 cat >>conftest.$ac_ext <<_ACEOF
25381 /* end confdefs.h.  */
25382 $ac_includes_default
25383 int
25384 main ()
25385 {
25386 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25387 test_array [0] = 0
25388
25389   ;
25390   return 0;
25391 }
25392 _ACEOF
25393 rm -f conftest.$ac_objext
25394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25395   (eval $ac_compile) 2>conftest.er1
25396   ac_status=$?
25397   grep -v '^ *+' conftest.er1 >conftest.err
25398   rm -f conftest.er1
25399   cat conftest.err >&5
25400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401   (exit $ac_status); } &&
25402          { ac_try='test -z "$ac_c_werror_flag"
25403                          || test ! -s conftest.err'
25404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25405   (eval $ac_try) 2>&5
25406   ac_status=$?
25407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); }; } &&
25409          { ac_try='test -s conftest.$ac_objext'
25410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411   (eval $ac_try) 2>&5
25412   ac_status=$?
25413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414   (exit $ac_status); }; }; then
25415   ac_hi=$ac_mid
25416 else
25417   echo "$as_me: failed program was:" >&5
25418 sed 's/^/| /' conftest.$ac_ext >&5
25419
25420 ac_lo=`expr '(' $ac_mid ')' + 1`
25421 fi
25422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25423 done
25424 case $ac_lo in
25425 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25426 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25427 See \`config.log' for more details." >&5
25428 echo "$as_me: error: cannot compute sizeof (int *), 77
25429 See \`config.log' for more details." >&2;}
25430    { (exit 1); exit 1; }; } ;;
25431 esac
25432 else
25433   if test "$cross_compiling" = yes; then
25434   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25435 See \`config.log' for more details." >&5
25436 echo "$as_me: error: cannot run test program while cross compiling
25437 See \`config.log' for more details." >&2;}
25438    { (exit 1); exit 1; }; }
25439 else
25440   cat >conftest.$ac_ext <<_ACEOF
25441 /* confdefs.h.  */
25442 _ACEOF
25443 cat confdefs.h >>conftest.$ac_ext
25444 cat >>conftest.$ac_ext <<_ACEOF
25445 /* end confdefs.h.  */
25446 $ac_includes_default
25447 long longval () { return (long) (sizeof (int *)); }
25448 unsigned long ulongval () { return (long) (sizeof (int *)); }
25449 #include <stdio.h>
25450 #include <stdlib.h>
25451 int
25452 main ()
25453 {
25454
25455   FILE *f = fopen ("conftest.val", "w");
25456   if (! f)
25457     exit (1);
25458   if (((long) (sizeof (int *))) < 0)
25459     {
25460       long i = longval ();
25461       if (i != ((long) (sizeof (int *))))
25462         exit (1);
25463       fprintf (f, "%ld\n", i);
25464     }
25465   else
25466     {
25467       unsigned long i = ulongval ();
25468       if (i != ((long) (sizeof (int *))))
25469         exit (1);
25470       fprintf (f, "%lu\n", i);
25471     }
25472   exit (ferror (f) || fclose (f) != 0);
25473
25474   ;
25475   return 0;
25476 }
25477 _ACEOF
25478 rm -f conftest$ac_exeext
25479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25480   (eval $ac_link) 2>&5
25481   ac_status=$?
25482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485   (eval $ac_try) 2>&5
25486   ac_status=$?
25487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488   (exit $ac_status); }; }; then
25489   ac_cv_sizeof_int_p=`cat conftest.val`
25490 else
25491   echo "$as_me: program exited with status $ac_status" >&5
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.$ac_ext >&5
25494
25495 ( exit $ac_status )
25496 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25497 See \`config.log' for more details." >&5
25498 echo "$as_me: error: cannot compute sizeof (int *), 77
25499 See \`config.log' for more details." >&2;}
25500    { (exit 1); exit 1; }; }
25501 fi
25502 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25503 fi
25504 fi
25505 rm -f conftest.val
25506 else
25507   ac_cv_sizeof_int_p=0
25508 fi
25509 fi
25510 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25511 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25512 cat >>confdefs.h <<_ACEOF
25513 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25514 _ACEOF
25515
25516
25517
25518 # Check for sys/types.h types
25519 echo "$as_me:$LINENO: checking for u_int type" >&5
25520 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25521 if test "${ac_cv_have_u_int+set}" = set; then
25522   echo $ECHO_N "(cached) $ECHO_C" >&6
25523 else
25524
25525     cat >conftest.$ac_ext <<_ACEOF
25526 /* confdefs.h.  */
25527 _ACEOF
25528 cat confdefs.h >>conftest.$ac_ext
25529 cat >>conftest.$ac_ext <<_ACEOF
25530 /* end confdefs.h.  */
25531  #include <sys/types.h>
25532 int
25533 main ()
25534 {
25535  u_int a; a = 1;
25536   ;
25537   return 0;
25538 }
25539 _ACEOF
25540 rm -f conftest.$ac_objext
25541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25542   (eval $ac_compile) 2>conftest.er1
25543   ac_status=$?
25544   grep -v '^ *+' conftest.er1 >conftest.err
25545   rm -f conftest.er1
25546   cat conftest.err >&5
25547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548   (exit $ac_status); } &&
25549          { ac_try='test -z "$ac_c_werror_flag"
25550                          || test ! -s conftest.err'
25551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552   (eval $ac_try) 2>&5
25553   ac_status=$?
25554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555   (exit $ac_status); }; } &&
25556          { ac_try='test -s conftest.$ac_objext'
25557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558   (eval $ac_try) 2>&5
25559   ac_status=$?
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); }; }; then
25562    ac_cv_have_u_int="yes"
25563 else
25564   echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25566
25567  ac_cv_have_u_int="no"
25568
25569 fi
25570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25571
25572 fi
25573 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25574 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25575 if test "x$ac_cv_have_u_int" = "xyes" ; then
25576    cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_U_INT 1
25578 _ACEOF
25579
25580    have_u_int=1
25581 fi
25582
25583 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25584 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25585 if test "${ac_cv_have_intmax_t+set}" = set; then
25586   echo $ECHO_N "(cached) $ECHO_C" >&6
25587 else
25588
25589    cat >conftest.$ac_ext <<_ACEOF
25590 /* confdefs.h.  */
25591 _ACEOF
25592 cat confdefs.h >>conftest.$ac_ext
25593 cat >>conftest.$ac_ext <<_ACEOF
25594 /* end confdefs.h.  */
25595  #include <sys/types.h>
25596 int
25597 main ()
25598 {
25599  intmax_t a; a = 1;
25600   ;
25601   return 0;
25602 }
25603 _ACEOF
25604 rm -f conftest.$ac_objext
25605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25606   (eval $ac_compile) 2>conftest.er1
25607   ac_status=$?
25608   grep -v '^ *+' conftest.er1 >conftest.err
25609   rm -f conftest.er1
25610   cat conftest.err >&5
25611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612   (exit $ac_status); } &&
25613          { ac_try='test -z "$ac_c_werror_flag"
25614                          || test ! -s conftest.err'
25615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25616   (eval $ac_try) 2>&5
25617   ac_status=$?
25618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25619   (exit $ac_status); }; } &&
25620          { ac_try='test -s conftest.$ac_objext'
25621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25622   (eval $ac_try) 2>&5
25623   ac_status=$?
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); }; }; then
25626    ac_cv_have_intmax_t="yes"
25627 else
25628   echo "$as_me: failed program was:" >&5
25629 sed 's/^/| /' conftest.$ac_ext >&5
25630
25631
25632          cat >conftest.$ac_ext <<_ACEOF
25633 /* confdefs.h.  */
25634 _ACEOF
25635 cat confdefs.h >>conftest.$ac_ext
25636 cat >>conftest.$ac_ext <<_ACEOF
25637 /* end confdefs.h.  */
25638  #include <stdint.h>
25639 int
25640 main ()
25641 {
25642  intmax_t a; a = 1;
25643   ;
25644   return 0;
25645 }
25646 _ACEOF
25647 rm -f conftest.$ac_objext
25648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25649   (eval $ac_compile) 2>conftest.er1
25650   ac_status=$?
25651   grep -v '^ *+' conftest.er1 >conftest.err
25652   rm -f conftest.er1
25653   cat conftest.err >&5
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); } &&
25656          { ac_try='test -z "$ac_c_werror_flag"
25657                          || test ! -s conftest.err'
25658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25659   (eval $ac_try) 2>&5
25660   ac_status=$?
25661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662   (exit $ac_status); }; } &&
25663          { ac_try='test -s conftest.$ac_objext'
25664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25665   (eval $ac_try) 2>&5
25666   ac_status=$?
25667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25668   (exit $ac_status); }; }; then
25669    ac_cv_have_intmax_t="yes"
25670 else
25671   echo "$as_me: failed program was:" >&5
25672 sed 's/^/| /' conftest.$ac_ext >&5
25673
25674  ac_cv_have_intmax_t="no"
25675
25676 fi
25677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25678
25679
25680 fi
25681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25682
25683
25684 fi
25685 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25686 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25687 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25688    cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_INTMAX_T 1
25690 _ACEOF
25691
25692    have_intmax_t=1
25693 fi
25694
25695
25696 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25697 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25698 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25699   echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701
25702    cat >conftest.$ac_ext <<_ACEOF
25703 /* confdefs.h.  */
25704 _ACEOF
25705 cat confdefs.h >>conftest.$ac_ext
25706 cat >>conftest.$ac_ext <<_ACEOF
25707 /* end confdefs.h.  */
25708  #include <sys/types.h>
25709 int
25710 main ()
25711 {
25712  u_intmax_t a; a = 1;
25713   ;
25714   return 0;
25715 }
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25719   (eval $ac_compile) 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } &&
25726          { ac_try='test -z "$ac_c_werror_flag"
25727                          || test ! -s conftest.err'
25728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25729   (eval $ac_try) 2>&5
25730   ac_status=$?
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); }; } &&
25733          { ac_try='test -s conftest.$ac_objext'
25734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25735   (eval $ac_try) 2>&5
25736   ac_status=$?
25737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738   (exit $ac_status); }; }; then
25739    ac_cv_have_u_intmax_t="yes"
25740 else
25741   echo "$as_me: failed program was:" >&5
25742 sed 's/^/| /' conftest.$ac_ext >&5
25743
25744
25745          cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751  #include <stdint.h>
25752 int
25753 main ()
25754 {
25755  u_intmax_t a; a = 1;
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 rm -f conftest.$ac_objext
25761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25762   (eval $ac_compile) 2>conftest.er1
25763   ac_status=$?
25764   grep -v '^ *+' conftest.er1 >conftest.err
25765   rm -f conftest.er1
25766   cat conftest.err >&5
25767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25768   (exit $ac_status); } &&
25769          { ac_try='test -z "$ac_c_werror_flag"
25770                          || test ! -s conftest.err'
25771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25772   (eval $ac_try) 2>&5
25773   ac_status=$?
25774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775   (exit $ac_status); }; } &&
25776          { ac_try='test -s conftest.$ac_objext'
25777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25778   (eval $ac_try) 2>&5
25779   ac_status=$?
25780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781   (exit $ac_status); }; }; then
25782    ac_cv_have_u_intmax_t="yes"
25783 else
25784   echo "$as_me: failed program was:" >&5
25785 sed 's/^/| /' conftest.$ac_ext >&5
25786
25787  ac_cv_have_u_intmax_t="no"
25788
25789 fi
25790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25791
25792
25793 fi
25794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25795
25796 fi
25797 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25798 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25799 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25800    cat >>confdefs.h <<\_ACEOF
25801 #define HAVE_U_INTMAX_T 1
25802 _ACEOF
25803
25804    have_u_intmax_t=1
25805 fi
25806
25807
25808 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25809 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25810 if test "${ac_cv_have_intxx_t+set}" = set; then
25811   echo $ECHO_N "(cached) $ECHO_C" >&6
25812 else
25813
25814    cat >conftest.$ac_ext <<_ACEOF
25815 /* confdefs.h.  */
25816 _ACEOF
25817 cat confdefs.h >>conftest.$ac_ext
25818 cat >>conftest.$ac_ext <<_ACEOF
25819 /* end confdefs.h.  */
25820  #include <sys/types.h>
25821 int
25822 main ()
25823 {
25824  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25825   ;
25826   return 0;
25827 }
25828 _ACEOF
25829 rm -f conftest.$ac_objext
25830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25831   (eval $ac_compile) 2>conftest.er1
25832   ac_status=$?
25833   grep -v '^ *+' conftest.er1 >conftest.err
25834   rm -f conftest.er1
25835   cat conftest.err >&5
25836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25837   (exit $ac_status); } &&
25838          { ac_try='test -z "$ac_c_werror_flag"
25839                          || test ! -s conftest.err'
25840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25841   (eval $ac_try) 2>&5
25842   ac_status=$?
25843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25844   (exit $ac_status); }; } &&
25845          { ac_try='test -s conftest.$ac_objext'
25846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847   (eval $ac_try) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; }; then
25851    ac_cv_have_intxx_t="yes"
25852 else
25853   echo "$as_me: failed program was:" >&5
25854 sed 's/^/| /' conftest.$ac_ext >&5
25855
25856  ac_cv_have_intxx_t="no"
25857
25858 fi
25859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25860
25861 fi
25862 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25863 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25864 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25865    cat >>confdefs.h <<\_ACEOF
25866 #define HAVE_INTXX_T 1
25867 _ACEOF
25868
25869    have_intxx_t=1
25870 fi
25871
25872 echo "$as_me:$LINENO: checking for int64_t type" >&5
25873 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25874 if test "${ac_cv_have_int64_t+set}" = set; then
25875   echo $ECHO_N "(cached) $ECHO_C" >&6
25876 else
25877
25878    cat >conftest.$ac_ext <<_ACEOF
25879 /* confdefs.h.  */
25880 _ACEOF
25881 cat confdefs.h >>conftest.$ac_ext
25882 cat >>conftest.$ac_ext <<_ACEOF
25883 /* end confdefs.h.  */
25884  #include <sys/types.h>
25885 int
25886 main ()
25887 {
25888  int64_t a; a = 1;
25889   ;
25890   return 0;
25891 }
25892 _ACEOF
25893 rm -f conftest.$ac_objext
25894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25895   (eval $ac_compile) 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } &&
25902          { ac_try='test -z "$ac_c_werror_flag"
25903                          || test ! -s conftest.err'
25904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25905   (eval $ac_try) 2>&5
25906   ac_status=$?
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); }; } &&
25909          { ac_try='test -s conftest.$ac_objext'
25910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25911   (eval $ac_try) 2>&5
25912   ac_status=$?
25913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25914   (exit $ac_status); }; }; then
25915    ac_cv_have_int64_t="yes"
25916 else
25917   echo "$as_me: failed program was:" >&5
25918 sed 's/^/| /' conftest.$ac_ext >&5
25919
25920  ac_cv_have_int64_t="no"
25921
25922 fi
25923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25924
25925 fi
25926 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25927 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25928 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25929    cat >>confdefs.h <<\_ACEOF
25930 #define HAVE_INT64_T 1
25931 _ACEOF
25932
25933    have_int64_t=1
25934 fi
25935
25936 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25937 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25938 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25939   echo $ECHO_N "(cached) $ECHO_C" >&6
25940 else
25941
25942    cat >conftest.$ac_ext <<_ACEOF
25943 /* confdefs.h.  */
25944 _ACEOF
25945 cat confdefs.h >>conftest.$ac_ext
25946 cat >>conftest.$ac_ext <<_ACEOF
25947 /* end confdefs.h.  */
25948  #include <sys/types.h>
25949 int
25950 main ()
25951 {
25952  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25953   ;
25954   return 0;
25955 }
25956 _ACEOF
25957 rm -f conftest.$ac_objext
25958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25959   (eval $ac_compile) 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } &&
25966          { ac_try='test -z "$ac_c_werror_flag"
25967                          || test ! -s conftest.err'
25968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25969   (eval $ac_try) 2>&5
25970   ac_status=$?
25971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972   (exit $ac_status); }; } &&
25973          { ac_try='test -s conftest.$ac_objext'
25974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25975   (eval $ac_try) 2>&5
25976   ac_status=$?
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); }; }; then
25979    ac_cv_have_u_intxx_t="yes"
25980 else
25981   echo "$as_me: failed program was:" >&5
25982 sed 's/^/| /' conftest.$ac_ext >&5
25983
25984  ac_cv_have_u_intxx_t="no"
25985
25986 fi
25987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25988
25989 fi
25990 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25991 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25992 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25993    cat >>confdefs.h <<\_ACEOF
25994 #define HAVE_U_INTXX_T 1
25995 _ACEOF
25996
25997    have_u_intxx_t=1
25998 fi
25999
26000 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26001 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26002 if test "${ac_cv_have_u_int64_t+set}" = set; then
26003   echo $ECHO_N "(cached) $ECHO_C" >&6
26004 else
26005
26006    cat >conftest.$ac_ext <<_ACEOF
26007 /* confdefs.h.  */
26008 _ACEOF
26009 cat confdefs.h >>conftest.$ac_ext
26010 cat >>conftest.$ac_ext <<_ACEOF
26011 /* end confdefs.h.  */
26012  #include <sys/types.h>
26013 int
26014 main ()
26015 {
26016  u_int64_t a; a = 1;
26017   ;
26018   return 0;
26019 }
26020 _ACEOF
26021 rm -f conftest.$ac_objext
26022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26023   (eval $ac_compile) 2>conftest.er1
26024   ac_status=$?
26025   grep -v '^ *+' conftest.er1 >conftest.err
26026   rm -f conftest.er1
26027   cat conftest.err >&5
26028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029   (exit $ac_status); } &&
26030          { ac_try='test -z "$ac_c_werror_flag"
26031                          || test ! -s conftest.err'
26032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033   (eval $ac_try) 2>&5
26034   ac_status=$?
26035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036   (exit $ac_status); }; } &&
26037          { ac_try='test -s conftest.$ac_objext'
26038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039   (eval $ac_try) 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); }; }; then
26043    ac_cv_have_u_int64_t="yes"
26044 else
26045   echo "$as_me: failed program was:" >&5
26046 sed 's/^/| /' conftest.$ac_ext >&5
26047
26048  ac_cv_have_u_int64_t="no"
26049
26050 fi
26051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26052
26053 fi
26054 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26055 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26056 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26057    cat >>confdefs.h <<\_ACEOF
26058 #define HAVE_U_INT64_T 1
26059 _ACEOF
26060
26061    have_u_int64_t=1
26062 fi
26063
26064 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26065            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26066 then
26067    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26068 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26069    cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h.  */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h.  */
26075  #include <sys/bitypes.h>
26076 int
26077 main ()
26078 {
26079  int8_t a; int16_t b; int32_t c;
26080         u_int8_t e; u_int16_t f; u_int32_t g;
26081         a = b = c = e = f = g = 1;
26082   ;
26083   return 0;
26084 }
26085 _ACEOF
26086 rm -f conftest.$ac_objext
26087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26088   (eval $ac_compile) 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } &&
26095          { ac_try='test -z "$ac_c_werror_flag"
26096                          || test ! -s conftest.err'
26097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26098   (eval $ac_try) 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; } &&
26102          { ac_try='test -s conftest.$ac_objext'
26103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104   (eval $ac_try) 2>&5
26105   ac_status=$?
26106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107   (exit $ac_status); }; }; then
26108    cat >>confdefs.h <<\_ACEOF
26109 #define HAVE_U_INTXX_T 1
26110 _ACEOF
26111
26112         cat >>confdefs.h <<\_ACEOF
26113 #define HAVE_INTXX_T 1
26114 _ACEOF
26115
26116         cat >>confdefs.h <<\_ACEOF
26117 #define HAVE_SYS_BITYPES_H 1
26118 _ACEOF
26119
26120         echo "$as_me:$LINENO: result: yes" >&5
26121 echo "${ECHO_T}yes" >&6
26122 else
26123   echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26125
26126  echo "$as_me:$LINENO: result: no" >&5
26127 echo "${ECHO_T}no" >&6
26128
26129 fi
26130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26131 fi
26132
26133 if test -z "$have_u_intxx_t" ; then
26134    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26135 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26136 if test "${ac_cv_have_uintxx_t+set}" = set; then
26137   echo $ECHO_N "(cached) $ECHO_C" >&6
26138 else
26139
26140       cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146  #include <sys/types.h>
26147 int
26148 main ()
26149 {
26150  uint8_t a; uint16_t b;
26151            uint32_t c; a = b = c = 1;
26152   ;
26153   return 0;
26154 }
26155 _ACEOF
26156 rm -f conftest.$ac_objext
26157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26158   (eval $ac_compile) 2>conftest.er1
26159   ac_status=$?
26160   grep -v '^ *+' conftest.er1 >conftest.err
26161   rm -f conftest.er1
26162   cat conftest.err >&5
26163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164   (exit $ac_status); } &&
26165          { ac_try='test -z "$ac_c_werror_flag"
26166                          || test ! -s conftest.err'
26167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168   (eval $ac_try) 2>&5
26169   ac_status=$?
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); }; } &&
26172          { ac_try='test -s conftest.$ac_objext'
26173   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26174   (eval $ac_try) 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; }; then
26178    ac_cv_have_uintxx_t="yes"
26179 else
26180   echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26182
26183  ac_cv_have_uintxx_t="no"
26184
26185 fi
26186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26187
26188 fi
26189 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26190 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26191    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26192       cat >>confdefs.h <<\_ACEOF
26193 #define HAVE_UINTXX_T 1
26194 _ACEOF
26195
26196    fi
26197 fi
26198
26199 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26200           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26201 then
26202    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26203 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26204    cat >conftest.$ac_ext <<_ACEOF
26205 /* confdefs.h.  */
26206 _ACEOF
26207 cat confdefs.h >>conftest.$ac_ext
26208 cat >>conftest.$ac_ext <<_ACEOF
26209 /* end confdefs.h.  */
26210  #include <sys/bitypes.h>
26211 int
26212 main ()
26213 {
26214  int64_t a; u_int64_t b;
26215        a = b = 1;
26216   ;
26217   return 0;
26218 }
26219 _ACEOF
26220 rm -f conftest.$ac_objext
26221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26222   (eval $ac_compile) 2>conftest.er1
26223   ac_status=$?
26224   grep -v '^ *+' conftest.er1 >conftest.err
26225   rm -f conftest.er1
26226   cat conftest.err >&5
26227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228   (exit $ac_status); } &&
26229          { ac_try='test -z "$ac_c_werror_flag"
26230                          || test ! -s conftest.err'
26231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26232   (eval $ac_try) 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; } &&
26236          { ac_try='test -s conftest.$ac_objext'
26237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26238   (eval $ac_try) 2>&5
26239   ac_status=$?
26240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26241   (exit $ac_status); }; }; then
26242    cat >>confdefs.h <<\_ACEOF
26243 #define HAVE_U_INT64_T 1
26244 _ACEOF
26245
26246        cat >>confdefs.h <<\_ACEOF
26247 #define HAVE_INT64_T 1
26248 _ACEOF
26249
26250        echo "$as_me:$LINENO: result: yes" >&5
26251 echo "${ECHO_T}yes" >&6
26252 else
26253   echo "$as_me: failed program was:" >&5
26254 sed 's/^/| /' conftest.$ac_ext >&5
26255
26256  echo "$as_me:$LINENO: result: no" >&5
26257 echo "${ECHO_T}no" >&6
26258
26259 fi
26260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26261 fi
26262
26263 if (test -z "$have_uintxx_t" && \
26264           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26265 then
26266    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26267 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26268    cat >conftest.$ac_ext <<_ACEOF
26269 /* confdefs.h.  */
26270 _ACEOF
26271 cat confdefs.h >>conftest.$ac_ext
26272 cat >>conftest.$ac_ext <<_ACEOF
26273 /* end confdefs.h.  */
26274  #include <sys/bitypes.h>
26275 int
26276 main ()
26277 {
26278  uint8_t a; uint16_t b;
26279           uint32_t c; a = b = c = 1;
26280   ;
26281   return 0;
26282 }
26283 _ACEOF
26284 rm -f conftest.$ac_objext
26285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26286   (eval $ac_compile) 2>conftest.er1
26287   ac_status=$?
26288   grep -v '^ *+' conftest.er1 >conftest.err
26289   rm -f conftest.er1
26290   cat conftest.err >&5
26291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292   (exit $ac_status); } &&
26293          { ac_try='test -z "$ac_c_werror_flag"
26294                          || test ! -s conftest.err'
26295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26296   (eval $ac_try) 2>&5
26297   ac_status=$?
26298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26299   (exit $ac_status); }; } &&
26300          { ac_try='test -s conftest.$ac_objext'
26301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26302   (eval $ac_try) 2>&5
26303   ac_status=$?
26304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305   (exit $ac_status); }; }; then
26306    cat >>confdefs.h <<\_ACEOF
26307 #define HAVE_UINTXX_T 1
26308 _ACEOF
26309
26310        echo "$as_me:$LINENO: result: yes" >&5
26311 echo "${ECHO_T}yes" >&6
26312 else
26313   echo "$as_me: failed program was:" >&5
26314 sed 's/^/| /' conftest.$ac_ext >&5
26315
26316  echo "$as_me:$LINENO: result: no" >&5
26317 echo "${ECHO_T}no" >&6
26318
26319 fi
26320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26321
26322 fi
26323
26324
26325
26326
26327
26328
26329
26330
26331
26332
26333
26334
26335
26336
26337
26338
26339
26340 for ac_func in \
26341         fork \
26342         getcwd \
26343         gethostname \
26344         getpid \
26345         gettimeofday \
26346         setpgid \
26347         setpgrp \
26348         setsid \
26349         signal \
26350         strerror \
26351         strncmp \
26352         strncpy \
26353         vfprintf \
26354
26355 do
26356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26357 echo "$as_me:$LINENO: checking for $ac_func" >&5
26358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26359 if eval "test \"\${$as_ac_var+set}\" = set"; then
26360   echo $ECHO_N "(cached) $ECHO_C" >&6
26361 else
26362   cat >conftest.$ac_ext <<_ACEOF
26363 /* confdefs.h.  */
26364 _ACEOF
26365 cat confdefs.h >>conftest.$ac_ext
26366 cat >>conftest.$ac_ext <<_ACEOF
26367 /* end confdefs.h.  */
26368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26370 #define $ac_func innocuous_$ac_func
26371
26372 /* System header to define __stub macros and hopefully few prototypes,
26373     which can conflict with char $ac_func (); below.
26374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26375     <limits.h> exists even on freestanding compilers.  */
26376
26377 #ifdef __STDC__
26378 # include <limits.h>
26379 #else
26380 # include <assert.h>
26381 #endif
26382
26383 #undef $ac_func
26384
26385 /* Override any gcc2 internal prototype to avoid an error.  */
26386 #ifdef __cplusplus
26387 extern "C"
26388 {
26389 #endif
26390 /* We use char because int might match the return type of a gcc2
26391    builtin and then its argument prototype would still apply.  */
26392 char $ac_func ();
26393 /* The GNU C library defines this for functions which it implements
26394     to always fail with ENOSYS.  Some functions are actually named
26395     something starting with __ and the normal name is an alias.  */
26396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26397 choke me
26398 #else
26399 char (*f) () = $ac_func;
26400 #endif
26401 #ifdef __cplusplus
26402 }
26403 #endif
26404
26405 int
26406 main ()
26407 {
26408 return f != $ac_func;
26409   ;
26410   return 0;
26411 }
26412 _ACEOF
26413 rm -f conftest.$ac_objext conftest$ac_exeext
26414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26415   (eval $ac_link) 2>conftest.er1
26416   ac_status=$?
26417   grep -v '^ *+' conftest.er1 >conftest.err
26418   rm -f conftest.er1
26419   cat conftest.err >&5
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); } &&
26422          { ac_try='test -z "$ac_c_werror_flag"
26423                          || test ! -s conftest.err'
26424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26425   (eval $ac_try) 2>&5
26426   ac_status=$?
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); }; } &&
26429          { ac_try='test -s conftest$ac_exeext'
26430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26431   (eval $ac_try) 2>&5
26432   ac_status=$?
26433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434   (exit $ac_status); }; }; then
26435   eval "$as_ac_var=yes"
26436 else
26437   echo "$as_me: failed program was:" >&5
26438 sed 's/^/| /' conftest.$ac_ext >&5
26439
26440 eval "$as_ac_var=no"
26441 fi
26442 rm -f conftest.err conftest.$ac_objext \
26443       conftest$ac_exeext conftest.$ac_ext
26444 fi
26445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26446 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26447 if test `eval echo '${'$as_ac_var'}'` = yes; then
26448   cat >>confdefs.h <<_ACEOF
26449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26450 _ACEOF
26451
26452 else
26453   echo 'configure: cannot find needed function.'; exit 1
26454
26455 fi
26456 done
26457
26458
26459
26460 for ac_func in fchdir
26461 do
26462 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26463 echo "$as_me:$LINENO: checking for $ac_func" >&5
26464 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26465 if eval "test \"\${$as_ac_var+set}\" = set"; then
26466   echo $ECHO_N "(cached) $ECHO_C" >&6
26467 else
26468   cat >conftest.$ac_ext <<_ACEOF
26469 /* confdefs.h.  */
26470 _ACEOF
26471 cat confdefs.h >>conftest.$ac_ext
26472 cat >>conftest.$ac_ext <<_ACEOF
26473 /* end confdefs.h.  */
26474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26475    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26476 #define $ac_func innocuous_$ac_func
26477
26478 /* System header to define __stub macros and hopefully few prototypes,
26479     which can conflict with char $ac_func (); below.
26480     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26481     <limits.h> exists even on freestanding compilers.  */
26482
26483 #ifdef __STDC__
26484 # include <limits.h>
26485 #else
26486 # include <assert.h>
26487 #endif
26488
26489 #undef $ac_func
26490
26491 /* Override any gcc2 internal prototype to avoid an error.  */
26492 #ifdef __cplusplus
26493 extern "C"
26494 {
26495 #endif
26496 /* We use char because int might match the return type of a gcc2
26497    builtin and then its argument prototype would still apply.  */
26498 char $ac_func ();
26499 /* The GNU C library defines this for functions which it implements
26500     to always fail with ENOSYS.  Some functions are actually named
26501     something starting with __ and the normal name is an alias.  */
26502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26503 choke me
26504 #else
26505 char (*f) () = $ac_func;
26506 #endif
26507 #ifdef __cplusplus
26508 }
26509 #endif
26510
26511 int
26512 main ()
26513 {
26514 return f != $ac_func;
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext conftest$ac_exeext
26520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26521   (eval $ac_link) 2>conftest.er1
26522   ac_status=$?
26523   grep -v '^ *+' conftest.er1 >conftest.err
26524   rm -f conftest.er1
26525   cat conftest.err >&5
26526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527   (exit $ac_status); } &&
26528          { ac_try='test -z "$ac_c_werror_flag"
26529                          || test ! -s conftest.err'
26530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26531   (eval $ac_try) 2>&5
26532   ac_status=$?
26533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534   (exit $ac_status); }; } &&
26535          { ac_try='test -s conftest$ac_exeext'
26536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26537   (eval $ac_try) 2>&5
26538   ac_status=$?
26539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26540   (exit $ac_status); }; }; then
26541   eval "$as_ac_var=yes"
26542 else
26543   echo "$as_me: failed program was:" >&5
26544 sed 's/^/| /' conftest.$ac_ext >&5
26545
26546 eval "$as_ac_var=no"
26547 fi
26548 rm -f conftest.err conftest.$ac_objext \
26549       conftest$ac_exeext conftest.$ac_ext
26550 fi
26551 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26552 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26553 if test `eval echo '${'$as_ac_var'}'` = yes; then
26554   cat >>confdefs.h <<_ACEOF
26555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26556 _ACEOF
26557  cat >>confdefs.h <<\_ACEOF
26558 #define HAVE_FCHDIR 1
26559 _ACEOF
26560
26561 fi
26562 done
26563
26564
26565 for ac_func in strtoll
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_STRTOLL 1
26664 _ACEOF
26665
26666 fi
26667 done
26668
26669
26670 for ac_func in posix_fadvise
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
26768 fi
26769 done
26770
26771
26772 for ac_func in fdatasync
26773 do
26774 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26775 echo "$as_me:$LINENO: checking for $ac_func" >&5
26776 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26777 if eval "test \"\${$as_ac_var+set}\" = set"; then
26778   echo $ECHO_N "(cached) $ECHO_C" >&6
26779 else
26780   cat >conftest.$ac_ext <<_ACEOF
26781 /* confdefs.h.  */
26782 _ACEOF
26783 cat confdefs.h >>conftest.$ac_ext
26784 cat >>conftest.$ac_ext <<_ACEOF
26785 /* end confdefs.h.  */
26786 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26788 #define $ac_func innocuous_$ac_func
26789
26790 /* System header to define __stub macros and hopefully few prototypes,
26791     which can conflict with char $ac_func (); below.
26792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26793     <limits.h> exists even on freestanding compilers.  */
26794
26795 #ifdef __STDC__
26796 # include <limits.h>
26797 #else
26798 # include <assert.h>
26799 #endif
26800
26801 #undef $ac_func
26802
26803 /* Override any gcc2 internal prototype to avoid an error.  */
26804 #ifdef __cplusplus
26805 extern "C"
26806 {
26807 #endif
26808 /* We use char because int might match the return type of a gcc2
26809    builtin and then its argument prototype would still apply.  */
26810 char $ac_func ();
26811 /* The GNU C library defines this for functions which it implements
26812     to always fail with ENOSYS.  Some functions are actually named
26813     something starting with __ and the normal name is an alias.  */
26814 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26815 choke me
26816 #else
26817 char (*f) () = $ac_func;
26818 #endif
26819 #ifdef __cplusplus
26820 }
26821 #endif
26822
26823 int
26824 main ()
26825 {
26826 return f != $ac_func;
26827   ;
26828   return 0;
26829 }
26830 _ACEOF
26831 rm -f conftest.$ac_objext conftest$ac_exeext
26832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26833   (eval $ac_link) 2>conftest.er1
26834   ac_status=$?
26835   grep -v '^ *+' conftest.er1 >conftest.err
26836   rm -f conftest.er1
26837   cat conftest.err >&5
26838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26839   (exit $ac_status); } &&
26840          { ac_try='test -z "$ac_c_werror_flag"
26841                          || test ! -s conftest.err'
26842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26843   (eval $ac_try) 2>&5
26844   ac_status=$?
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); }; } &&
26847          { ac_try='test -s conftest$ac_exeext'
26848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26849   (eval $ac_try) 2>&5
26850   ac_status=$?
26851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26852   (exit $ac_status); }; }; then
26853   eval "$as_ac_var=yes"
26854 else
26855   echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.$ac_ext >&5
26857
26858 eval "$as_ac_var=no"
26859 fi
26860 rm -f conftest.err conftest.$ac_objext \
26861       conftest$ac_exeext conftest.$ac_ext
26862 fi
26863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26865 if test `eval echo '${'$as_ac_var'}'` = yes; then
26866   cat >>confdefs.h <<_ACEOF
26867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26868 _ACEOF
26869
26870 fi
26871 done
26872
26873
26874
26875 for ac_func in chflags
26876 do
26877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26878 echo "$as_me:$LINENO: checking for $ac_func" >&5
26879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26880 if eval "test \"\${$as_ac_var+set}\" = set"; then
26881   echo $ECHO_N "(cached) $ECHO_C" >&6
26882 else
26883   cat >conftest.$ac_ext <<_ACEOF
26884 /* confdefs.h.  */
26885 _ACEOF
26886 cat confdefs.h >>conftest.$ac_ext
26887 cat >>conftest.$ac_ext <<_ACEOF
26888 /* end confdefs.h.  */
26889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26890    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26891 #define $ac_func innocuous_$ac_func
26892
26893 /* System header to define __stub macros and hopefully few prototypes,
26894     which can conflict with char $ac_func (); below.
26895     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26896     <limits.h> exists even on freestanding compilers.  */
26897
26898 #ifdef __STDC__
26899 # include <limits.h>
26900 #else
26901 # include <assert.h>
26902 #endif
26903
26904 #undef $ac_func
26905
26906 /* Override any gcc2 internal prototype to avoid an error.  */
26907 #ifdef __cplusplus
26908 extern "C"
26909 {
26910 #endif
26911 /* We use char because int might match the return type of a gcc2
26912    builtin and then its argument prototype would still apply.  */
26913 char $ac_func ();
26914 /* The GNU C library defines this for functions which it implements
26915     to always fail with ENOSYS.  Some functions are actually named
26916     something starting with __ and the normal name is an alias.  */
26917 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26918 choke me
26919 #else
26920 char (*f) () = $ac_func;
26921 #endif
26922 #ifdef __cplusplus
26923 }
26924 #endif
26925
26926 int
26927 main ()
26928 {
26929 return f != $ac_func;
26930   ;
26931   return 0;
26932 }
26933 _ACEOF
26934 rm -f conftest.$ac_objext conftest$ac_exeext
26935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26936   (eval $ac_link) 2>conftest.er1
26937   ac_status=$?
26938   grep -v '^ *+' conftest.er1 >conftest.err
26939   rm -f conftest.er1
26940   cat conftest.err >&5
26941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942   (exit $ac_status); } &&
26943          { ac_try='test -z "$ac_c_werror_flag"
26944                          || test ! -s conftest.err'
26945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26946   (eval $ac_try) 2>&5
26947   ac_status=$?
26948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26949   (exit $ac_status); }; } &&
26950          { ac_try='test -s conftest$ac_exeext'
26951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26952   (eval $ac_try) 2>&5
26953   ac_status=$?
26954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26955   (exit $ac_status); }; }; then
26956   eval "$as_ac_var=yes"
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961 eval "$as_ac_var=no"
26962 fi
26963 rm -f conftest.err conftest.$ac_objext \
26964       conftest$ac_exeext conftest.$ac_ext
26965 fi
26966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26967 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26968 if test `eval echo '${'$as_ac_var'}'` = yes; then
26969   cat >>confdefs.h <<_ACEOF
26970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26971 _ACEOF
26972
26973 fi
26974 done
26975
26976
26977
26978
26979
26980
26981 for ac_func in snprintf vsnprintf gethostid fseeko
26982 do
26983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26984 echo "$as_me:$LINENO: checking for $ac_func" >&5
26985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26986 if eval "test \"\${$as_ac_var+set}\" = set"; then
26987   echo $ECHO_N "(cached) $ECHO_C" >&6
26988 else
26989   cat >conftest.$ac_ext <<_ACEOF
26990 /* confdefs.h.  */
26991 _ACEOF
26992 cat confdefs.h >>conftest.$ac_ext
26993 cat >>conftest.$ac_ext <<_ACEOF
26994 /* end confdefs.h.  */
26995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26996    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26997 #define $ac_func innocuous_$ac_func
26998
26999 /* System header to define __stub macros and hopefully few prototypes,
27000     which can conflict with char $ac_func (); below.
27001     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27002     <limits.h> exists even on freestanding compilers.  */
27003
27004 #ifdef __STDC__
27005 # include <limits.h>
27006 #else
27007 # include <assert.h>
27008 #endif
27009
27010 #undef $ac_func
27011
27012 /* Override any gcc2 internal prototype to avoid an error.  */
27013 #ifdef __cplusplus
27014 extern "C"
27015 {
27016 #endif
27017 /* We use char because int might match the return type of a gcc2
27018    builtin and then its argument prototype would still apply.  */
27019 char $ac_func ();
27020 /* The GNU C library defines this for functions which it implements
27021     to always fail with ENOSYS.  Some functions are actually named
27022     something starting with __ and the normal name is an alias.  */
27023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27024 choke me
27025 #else
27026 char (*f) () = $ac_func;
27027 #endif
27028 #ifdef __cplusplus
27029 }
27030 #endif
27031
27032 int
27033 main ()
27034 {
27035 return f != $ac_func;
27036   ;
27037   return 0;
27038 }
27039 _ACEOF
27040 rm -f conftest.$ac_objext conftest$ac_exeext
27041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27042   (eval $ac_link) 2>conftest.er1
27043   ac_status=$?
27044   grep -v '^ *+' conftest.er1 >conftest.err
27045   rm -f conftest.er1
27046   cat conftest.err >&5
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); } &&
27049          { ac_try='test -z "$ac_c_werror_flag"
27050                          || test ! -s conftest.err'
27051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052   (eval $ac_try) 2>&5
27053   ac_status=$?
27054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055   (exit $ac_status); }; } &&
27056          { ac_try='test -s conftest$ac_exeext'
27057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27058   (eval $ac_try) 2>&5
27059   ac_status=$?
27060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27061   (exit $ac_status); }; }; then
27062   eval "$as_ac_var=yes"
27063 else
27064   echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.$ac_ext >&5
27066
27067 eval "$as_ac_var=no"
27068 fi
27069 rm -f conftest.err conftest.$ac_objext \
27070       conftest$ac_exeext conftest.$ac_ext
27071 fi
27072 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27073 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27074 if test `eval echo '${'$as_ac_var'}'` = yes; then
27075   cat >>confdefs.h <<_ACEOF
27076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27077 _ACEOF
27078
27079 fi
27080 done
27081
27082
27083
27084
27085
27086
27087 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27088 do
27089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27090 echo "$as_me:$LINENO: checking for $ac_func" >&5
27091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27092 if eval "test \"\${$as_ac_var+set}\" = set"; then
27093   echo $ECHO_N "(cached) $ECHO_C" >&6
27094 else
27095   cat >conftest.$ac_ext <<_ACEOF
27096 /* confdefs.h.  */
27097 _ACEOF
27098 cat confdefs.h >>conftest.$ac_ext
27099 cat >>conftest.$ac_ext <<_ACEOF
27100 /* end confdefs.h.  */
27101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27103 #define $ac_func innocuous_$ac_func
27104
27105 /* System header to define __stub macros and hopefully few prototypes,
27106     which can conflict with char $ac_func (); below.
27107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27108     <limits.h> exists even on freestanding compilers.  */
27109
27110 #ifdef __STDC__
27111 # include <limits.h>
27112 #else
27113 # include <assert.h>
27114 #endif
27115
27116 #undef $ac_func
27117
27118 /* Override any gcc2 internal prototype to avoid an error.  */
27119 #ifdef __cplusplus
27120 extern "C"
27121 {
27122 #endif
27123 /* We use char because int might match the return type of a gcc2
27124    builtin and then its argument prototype would still apply.  */
27125 char $ac_func ();
27126 /* The GNU C library defines this for functions which it implements
27127     to always fail with ENOSYS.  Some functions are actually named
27128     something starting with __ and the normal name is an alias.  */
27129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27130 choke me
27131 #else
27132 char (*f) () = $ac_func;
27133 #endif
27134 #ifdef __cplusplus
27135 }
27136 #endif
27137
27138 int
27139 main ()
27140 {
27141 return f != $ac_func;
27142   ;
27143   return 0;
27144 }
27145 _ACEOF
27146 rm -f conftest.$ac_objext conftest$ac_exeext
27147 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27148   (eval $ac_link) 2>conftest.er1
27149   ac_status=$?
27150   grep -v '^ *+' conftest.er1 >conftest.err
27151   rm -f conftest.er1
27152   cat conftest.err >&5
27153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154   (exit $ac_status); } &&
27155          { ac_try='test -z "$ac_c_werror_flag"
27156                          || test ! -s conftest.err'
27157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27158   (eval $ac_try) 2>&5
27159   ac_status=$?
27160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161   (exit $ac_status); }; } &&
27162          { ac_try='test -s conftest$ac_exeext'
27163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27164   (eval $ac_try) 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; }; then
27168   eval "$as_ac_var=yes"
27169 else
27170   echo "$as_me: failed program was:" >&5
27171 sed 's/^/| /' conftest.$ac_ext >&5
27172
27173 eval "$as_ac_var=no"
27174 fi
27175 rm -f conftest.err conftest.$ac_objext \
27176       conftest$ac_exeext conftest.$ac_ext
27177 fi
27178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27180 if test `eval echo '${'$as_ac_var'}'` = yes; then
27181   cat >>confdefs.h <<_ACEOF
27182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27183 _ACEOF
27184
27185 fi
27186 done
27187
27188
27189 # If resolver functions are not in libc check for -lnsl or -lresolv.
27190 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27191 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27192 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27193   echo $ECHO_N "(cached) $ECHO_C" >&6
27194 else
27195   cat >conftest.$ac_ext <<_ACEOF
27196 /* confdefs.h.  */
27197 _ACEOF
27198 cat confdefs.h >>conftest.$ac_ext
27199 cat >>conftest.$ac_ext <<_ACEOF
27200 /* end confdefs.h.  */
27201 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27202    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27203 #define gethostbyname_r innocuous_gethostbyname_r
27204
27205 /* System header to define __stub macros and hopefully few prototypes,
27206     which can conflict with char gethostbyname_r (); below.
27207     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27208     <limits.h> exists even on freestanding compilers.  */
27209
27210 #ifdef __STDC__
27211 # include <limits.h>
27212 #else
27213 # include <assert.h>
27214 #endif
27215
27216 #undef gethostbyname_r
27217
27218 /* Override any gcc2 internal prototype to avoid an error.  */
27219 #ifdef __cplusplus
27220 extern "C"
27221 {
27222 #endif
27223 /* We use char because int might match the return type of a gcc2
27224    builtin and then its argument prototype would still apply.  */
27225 char gethostbyname_r ();
27226 /* The GNU C library defines this for functions which it implements
27227     to always fail with ENOSYS.  Some functions are actually named
27228     something starting with __ and the normal name is an alias.  */
27229 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27230 choke me
27231 #else
27232 char (*f) () = gethostbyname_r;
27233 #endif
27234 #ifdef __cplusplus
27235 }
27236 #endif
27237
27238 int
27239 main ()
27240 {
27241 return f != gethostbyname_r;
27242   ;
27243   return 0;
27244 }
27245 _ACEOF
27246 rm -f conftest.$ac_objext conftest$ac_exeext
27247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27248   (eval $ac_link) 2>conftest.er1
27249   ac_status=$?
27250   grep -v '^ *+' conftest.er1 >conftest.err
27251   rm -f conftest.er1
27252   cat conftest.err >&5
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); } &&
27255          { ac_try='test -z "$ac_c_werror_flag"
27256                          || test ! -s conftest.err'
27257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27258   (eval $ac_try) 2>&5
27259   ac_status=$?
27260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27261   (exit $ac_status); }; } &&
27262          { ac_try='test -s conftest$ac_exeext'
27263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27264   (eval $ac_try) 2>&5
27265   ac_status=$?
27266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27267   (exit $ac_status); }; }; then
27268   ac_cv_func_gethostbyname_r=yes
27269 else
27270   echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 ac_cv_func_gethostbyname_r=no
27274 fi
27275 rm -f conftest.err conftest.$ac_objext \
27276       conftest$ac_exeext conftest.$ac_ext
27277 fi
27278 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27279 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27280 if test $ac_cv_func_gethostbyname_r = yes; then
27281   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27282 echo "${ECHO_T}using libc's resolver" >&6
27283 else
27284
27285 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27286 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27287 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27288   echo $ECHO_N "(cached) $ECHO_C" >&6
27289 else
27290   ac_check_lib_save_LIBS=$LIBS
27291 LIBS="-lnsl  $LIBS"
27292 cat >conftest.$ac_ext <<_ACEOF
27293 /* confdefs.h.  */
27294 _ACEOF
27295 cat confdefs.h >>conftest.$ac_ext
27296 cat >>conftest.$ac_ext <<_ACEOF
27297 /* end confdefs.h.  */
27298
27299 /* Override any gcc2 internal prototype to avoid an error.  */
27300 #ifdef __cplusplus
27301 extern "C"
27302 #endif
27303 /* We use char because int might match the return type of a gcc2
27304    builtin and then its argument prototype would still apply.  */
27305 char gethostbyname_r ();
27306 int
27307 main ()
27308 {
27309 gethostbyname_r ();
27310   ;
27311   return 0;
27312 }
27313 _ACEOF
27314 rm -f conftest.$ac_objext conftest$ac_exeext
27315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27316   (eval $ac_link) 2>conftest.er1
27317   ac_status=$?
27318   grep -v '^ *+' conftest.er1 >conftest.err
27319   rm -f conftest.er1
27320   cat conftest.err >&5
27321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322   (exit $ac_status); } &&
27323          { ac_try='test -z "$ac_c_werror_flag"
27324                          || test ! -s conftest.err'
27325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27326   (eval $ac_try) 2>&5
27327   ac_status=$?
27328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27329   (exit $ac_status); }; } &&
27330          { ac_try='test -s conftest$ac_exeext'
27331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27332   (eval $ac_try) 2>&5
27333   ac_status=$?
27334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27335   (exit $ac_status); }; }; then
27336   ac_cv_lib_nsl_gethostbyname_r=yes
27337 else
27338   echo "$as_me: failed program was:" >&5
27339 sed 's/^/| /' conftest.$ac_ext >&5
27340
27341 ac_cv_lib_nsl_gethostbyname_r=no
27342 fi
27343 rm -f conftest.err conftest.$ac_objext \
27344       conftest$ac_exeext conftest.$ac_ext
27345 LIBS=$ac_check_lib_save_LIBS
27346 fi
27347 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27348 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27349 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27350   cat >>confdefs.h <<_ACEOF
27351 #define HAVE_LIBNSL 1
27352 _ACEOF
27353
27354   LIBS="-lnsl $LIBS"
27355
27356 fi
27357
27358
27359 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27360 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27361 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27362   echo $ECHO_N "(cached) $ECHO_C" >&6
27363 else
27364   ac_check_lib_save_LIBS=$LIBS
27365 LIBS="-lresolv  $LIBS"
27366 cat >conftest.$ac_ext <<_ACEOF
27367 /* confdefs.h.  */
27368 _ACEOF
27369 cat confdefs.h >>conftest.$ac_ext
27370 cat >>conftest.$ac_ext <<_ACEOF
27371 /* end confdefs.h.  */
27372
27373 /* Override any gcc2 internal prototype to avoid an error.  */
27374 #ifdef __cplusplus
27375 extern "C"
27376 #endif
27377 /* We use char because int might match the return type of a gcc2
27378    builtin and then its argument prototype would still apply.  */
27379 char gethostbyname_r ();
27380 int
27381 main ()
27382 {
27383 gethostbyname_r ();
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
27388 rm -f conftest.$ac_objext conftest$ac_exeext
27389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27390   (eval $ac_link) 2>conftest.er1
27391   ac_status=$?
27392   grep -v '^ *+' conftest.er1 >conftest.err
27393   rm -f conftest.er1
27394   cat conftest.err >&5
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); } &&
27397          { ac_try='test -z "$ac_c_werror_flag"
27398                          || test ! -s conftest.err'
27399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27400   (eval $ac_try) 2>&5
27401   ac_status=$?
27402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27403   (exit $ac_status); }; } &&
27404          { ac_try='test -s conftest$ac_exeext'
27405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27406   (eval $ac_try) 2>&5
27407   ac_status=$?
27408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409   (exit $ac_status); }; }; then
27410   ac_cv_lib_resolv_gethostbyname_r=yes
27411 else
27412   echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415 ac_cv_lib_resolv_gethostbyname_r=no
27416 fi
27417 rm -f conftest.err conftest.$ac_objext \
27418       conftest$ac_exeext conftest.$ac_ext
27419 LIBS=$ac_check_lib_save_LIBS
27420 fi
27421 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27422 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27423 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27424   cat >>confdefs.h <<_ACEOF
27425 #define HAVE_LIBRESOLV 1
27426 _ACEOF
27427
27428   LIBS="-lresolv $LIBS"
27429
27430 fi
27431
27432 fi
27433
27434
27435
27436
27437
27438 for ac_func in inet_pton
27439 do
27440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27441 echo "$as_me:$LINENO: checking for $ac_func" >&5
27442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27443 if eval "test \"\${$as_ac_var+set}\" = set"; then
27444   echo $ECHO_N "(cached) $ECHO_C" >&6
27445 else
27446   cat >conftest.$ac_ext <<_ACEOF
27447 /* confdefs.h.  */
27448 _ACEOF
27449 cat confdefs.h >>conftest.$ac_ext
27450 cat >>conftest.$ac_ext <<_ACEOF
27451 /* end confdefs.h.  */
27452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27454 #define $ac_func innocuous_$ac_func
27455
27456 /* System header to define __stub macros and hopefully few prototypes,
27457     which can conflict with char $ac_func (); below.
27458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27459     <limits.h> exists even on freestanding compilers.  */
27460
27461 #ifdef __STDC__
27462 # include <limits.h>
27463 #else
27464 # include <assert.h>
27465 #endif
27466
27467 #undef $ac_func
27468
27469 /* Override any gcc2 internal prototype to avoid an error.  */
27470 #ifdef __cplusplus
27471 extern "C"
27472 {
27473 #endif
27474 /* We use char because int might match the return type of a gcc2
27475    builtin and then its argument prototype would still apply.  */
27476 char $ac_func ();
27477 /* The GNU C library defines this for functions which it implements
27478     to always fail with ENOSYS.  Some functions are actually named
27479     something starting with __ and the normal name is an alias.  */
27480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27481 choke me
27482 #else
27483 char (*f) () = $ac_func;
27484 #endif
27485 #ifdef __cplusplus
27486 }
27487 #endif
27488
27489 int
27490 main ()
27491 {
27492 return f != $ac_func;
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27499   (eval $ac_link) 2>conftest.er1
27500   ac_status=$?
27501   grep -v '^ *+' conftest.er1 >conftest.err
27502   rm -f conftest.er1
27503   cat conftest.err >&5
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); } &&
27506          { ac_try='test -z "$ac_c_werror_flag"
27507                          || test ! -s conftest.err'
27508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509   (eval $ac_try) 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; } &&
27513          { ac_try='test -s conftest$ac_exeext'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; }; then
27519   eval "$as_ac_var=yes"
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524 eval "$as_ac_var=no"
27525 fi
27526 rm -f conftest.err conftest.$ac_objext \
27527       conftest$ac_exeext conftest.$ac_ext
27528 fi
27529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27530 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27531 if test `eval echo '${'$as_ac_var'}'` = yes; then
27532   cat >>confdefs.h <<_ACEOF
27533 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27534 _ACEOF
27535  cat >>confdefs.h <<\_ACEOF
27536 #define HAVE_INET_PTON 1
27537 _ACEOF
27538
27539 fi
27540 done
27541
27542
27543 for ac_func in inet_ntop
27544 do
27545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27546 echo "$as_me:$LINENO: checking for $ac_func" >&5
27547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27548 if eval "test \"\${$as_ac_var+set}\" = set"; then
27549   echo $ECHO_N "(cached) $ECHO_C" >&6
27550 else
27551   cat >conftest.$ac_ext <<_ACEOF
27552 /* confdefs.h.  */
27553 _ACEOF
27554 cat confdefs.h >>conftest.$ac_ext
27555 cat >>conftest.$ac_ext <<_ACEOF
27556 /* end confdefs.h.  */
27557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27558    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27559 #define $ac_func innocuous_$ac_func
27560
27561 /* System header to define __stub macros and hopefully few prototypes,
27562     which can conflict with char $ac_func (); below.
27563     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27564     <limits.h> exists even on freestanding compilers.  */
27565
27566 #ifdef __STDC__
27567 # include <limits.h>
27568 #else
27569 # include <assert.h>
27570 #endif
27571
27572 #undef $ac_func
27573
27574 /* Override any gcc2 internal prototype to avoid an error.  */
27575 #ifdef __cplusplus
27576 extern "C"
27577 {
27578 #endif
27579 /* We use char because int might match the return type of a gcc2
27580    builtin and then its argument prototype would still apply.  */
27581 char $ac_func ();
27582 /* The GNU C library defines this for functions which it implements
27583     to always fail with ENOSYS.  Some functions are actually named
27584     something starting with __ and the normal name is an alias.  */
27585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27586 choke me
27587 #else
27588 char (*f) () = $ac_func;
27589 #endif
27590 #ifdef __cplusplus
27591 }
27592 #endif
27593
27594 int
27595 main ()
27596 {
27597 return f != $ac_func;
27598   ;
27599   return 0;
27600 }
27601 _ACEOF
27602 rm -f conftest.$ac_objext conftest$ac_exeext
27603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27604   (eval $ac_link) 2>conftest.er1
27605   ac_status=$?
27606   grep -v '^ *+' conftest.er1 >conftest.err
27607   rm -f conftest.er1
27608   cat conftest.err >&5
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); } &&
27611          { ac_try='test -z "$ac_c_werror_flag"
27612                          || test ! -s conftest.err'
27613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27614   (eval $ac_try) 2>&5
27615   ac_status=$?
27616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27617   (exit $ac_status); }; } &&
27618          { ac_try='test -s conftest$ac_exeext'
27619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27620   (eval $ac_try) 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; }; then
27624   eval "$as_ac_var=yes"
27625 else
27626   echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.$ac_ext >&5
27628
27629 eval "$as_ac_var=no"
27630 fi
27631 rm -f conftest.err conftest.$ac_objext \
27632       conftest$ac_exeext conftest.$ac_ext
27633 fi
27634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27636 if test `eval echo '${'$as_ac_var'}'` = yes; then
27637   cat >>confdefs.h <<_ACEOF
27638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27639 _ACEOF
27640  cat >>confdefs.h <<\_ACEOF
27641 #define HAVE_INET_NTOP 1
27642 _ACEOF
27643
27644 fi
27645 done
27646
27647
27648 for ac_func in gethostbyname2
27649 do
27650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27651 echo "$as_me:$LINENO: checking for $ac_func" >&5
27652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27653 if eval "test \"\${$as_ac_var+set}\" = set"; then
27654   echo $ECHO_N "(cached) $ECHO_C" >&6
27655 else
27656   cat >conftest.$ac_ext <<_ACEOF
27657 /* confdefs.h.  */
27658 _ACEOF
27659 cat confdefs.h >>conftest.$ac_ext
27660 cat >>conftest.$ac_ext <<_ACEOF
27661 /* end confdefs.h.  */
27662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27663    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27664 #define $ac_func innocuous_$ac_func
27665
27666 /* System header to define __stub macros and hopefully few prototypes,
27667     which can conflict with char $ac_func (); below.
27668     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27669     <limits.h> exists even on freestanding compilers.  */
27670
27671 #ifdef __STDC__
27672 # include <limits.h>
27673 #else
27674 # include <assert.h>
27675 #endif
27676
27677 #undef $ac_func
27678
27679 /* Override any gcc2 internal prototype to avoid an error.  */
27680 #ifdef __cplusplus
27681 extern "C"
27682 {
27683 #endif
27684 /* We use char because int might match the return type of a gcc2
27685    builtin and then its argument prototype would still apply.  */
27686 char $ac_func ();
27687 /* The GNU C library defines this for functions which it implements
27688     to always fail with ENOSYS.  Some functions are actually named
27689     something starting with __ and the normal name is an alias.  */
27690 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27691 choke me
27692 #else
27693 char (*f) () = $ac_func;
27694 #endif
27695 #ifdef __cplusplus
27696 }
27697 #endif
27698
27699 int
27700 main ()
27701 {
27702 return f != $ac_func;
27703   ;
27704   return 0;
27705 }
27706 _ACEOF
27707 rm -f conftest.$ac_objext conftest$ac_exeext
27708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27709   (eval $ac_link) 2>conftest.er1
27710   ac_status=$?
27711   grep -v '^ *+' conftest.er1 >conftest.err
27712   rm -f conftest.er1
27713   cat conftest.err >&5
27714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715   (exit $ac_status); } &&
27716          { ac_try='test -z "$ac_c_werror_flag"
27717                          || test ! -s conftest.err'
27718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719   (eval $ac_try) 2>&5
27720   ac_status=$?
27721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722   (exit $ac_status); }; } &&
27723          { ac_try='test -s conftest$ac_exeext'
27724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27725   (eval $ac_try) 2>&5
27726   ac_status=$?
27727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27728   (exit $ac_status); }; }; then
27729   eval "$as_ac_var=yes"
27730 else
27731   echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.$ac_ext >&5
27733
27734 eval "$as_ac_var=no"
27735 fi
27736 rm -f conftest.err conftest.$ac_objext \
27737       conftest$ac_exeext conftest.$ac_ext
27738 fi
27739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27741 if test `eval echo '${'$as_ac_var'}'` = yes; then
27742   cat >>confdefs.h <<_ACEOF
27743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27744 _ACEOF
27745  cat >>confdefs.h <<\_ACEOF
27746 #define HAVE_GETHOSTBYNAME2 1
27747 _ACEOF
27748
27749 fi
27750 done
27751
27752
27753 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27754 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27755 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27756   echo $ECHO_N "(cached) $ECHO_C" >&6
27757 else
27758   cat >conftest.$ac_ext <<_ACEOF
27759 /* confdefs.h.  */
27760 _ACEOF
27761 cat confdefs.h >>conftest.$ac_ext
27762 cat >>conftest.$ac_ext <<_ACEOF
27763 /* end confdefs.h.  */
27764 #include <sys/socket.h>
27765 int
27766 main ()
27767 {
27768 struct sockaddr s; s.sa_len;
27769   ;
27770   return 0;
27771 }
27772 _ACEOF
27773 rm -f conftest.$ac_objext
27774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27775   (eval $ac_compile) 2>conftest.er1
27776   ac_status=$?
27777   grep -v '^ *+' conftest.er1 >conftest.err
27778   rm -f conftest.er1
27779   cat conftest.err >&5
27780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781   (exit $ac_status); } &&
27782          { ac_try='test -z "$ac_c_werror_flag"
27783                          || test ! -s conftest.err'
27784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27785   (eval $ac_try) 2>&5
27786   ac_status=$?
27787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27788   (exit $ac_status); }; } &&
27789          { ac_try='test -s conftest.$ac_objext'
27790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27791   (eval $ac_try) 2>&5
27792   ac_status=$?
27793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794   (exit $ac_status); }; }; then
27795   ac_cv_struct_sockaddr_sa_len=yes
27796 else
27797   echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27799
27800 ac_cv_struct_sockaddr_sa_len=no
27801 fi
27802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27803 fi
27804 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27805 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27806
27807  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27808
27809 cat >>confdefs.h <<\_ACEOF
27810 #define HAVE_SA_LEN 1
27811 _ACEOF
27812
27813  fi
27814
27815
27816
27817
27818
27819 for ac_func in strftime
27820 do
27821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27822 echo "$as_me:$LINENO: checking for $ac_func" >&5
27823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27824 if eval "test \"\${$as_ac_var+set}\" = set"; then
27825   echo $ECHO_N "(cached) $ECHO_C" >&6
27826 else
27827   cat >conftest.$ac_ext <<_ACEOF
27828 /* confdefs.h.  */
27829 _ACEOF
27830 cat confdefs.h >>conftest.$ac_ext
27831 cat >>conftest.$ac_ext <<_ACEOF
27832 /* end confdefs.h.  */
27833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27835 #define $ac_func innocuous_$ac_func
27836
27837 /* System header to define __stub macros and hopefully few prototypes,
27838     which can conflict with char $ac_func (); below.
27839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27840     <limits.h> exists even on freestanding compilers.  */
27841
27842 #ifdef __STDC__
27843 # include <limits.h>
27844 #else
27845 # include <assert.h>
27846 #endif
27847
27848 #undef $ac_func
27849
27850 /* Override any gcc2 internal prototype to avoid an error.  */
27851 #ifdef __cplusplus
27852 extern "C"
27853 {
27854 #endif
27855 /* We use char because int might match the return type of a gcc2
27856    builtin and then its argument prototype would still apply.  */
27857 char $ac_func ();
27858 /* The GNU C library defines this for functions which it implements
27859     to always fail with ENOSYS.  Some functions are actually named
27860     something starting with __ and the normal name is an alias.  */
27861 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27862 choke me
27863 #else
27864 char (*f) () = $ac_func;
27865 #endif
27866 #ifdef __cplusplus
27867 }
27868 #endif
27869
27870 int
27871 main ()
27872 {
27873 return f != $ac_func;
27874   ;
27875   return 0;
27876 }
27877 _ACEOF
27878 rm -f conftest.$ac_objext conftest$ac_exeext
27879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27880   (eval $ac_link) 2>conftest.er1
27881   ac_status=$?
27882   grep -v '^ *+' conftest.er1 >conftest.err
27883   rm -f conftest.er1
27884   cat conftest.err >&5
27885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27886   (exit $ac_status); } &&
27887          { ac_try='test -z "$ac_c_werror_flag"
27888                          || test ! -s conftest.err'
27889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27890   (eval $ac_try) 2>&5
27891   ac_status=$?
27892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27893   (exit $ac_status); }; } &&
27894          { ac_try='test -s conftest$ac_exeext'
27895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27896   (eval $ac_try) 2>&5
27897   ac_status=$?
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); }; }; then
27900   eval "$as_ac_var=yes"
27901 else
27902   echo "$as_me: failed program was:" >&5
27903 sed 's/^/| /' conftest.$ac_ext >&5
27904
27905 eval "$as_ac_var=no"
27906 fi
27907 rm -f conftest.err conftest.$ac_objext \
27908       conftest$ac_exeext conftest.$ac_ext
27909 fi
27910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27912 if test `eval echo '${'$as_ac_var'}'` = yes; then
27913   cat >>confdefs.h <<_ACEOF
27914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27915 _ACEOF
27916
27917 else
27918   # strftime is in -lintl on SCO UNIX.
27919 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27920 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27921 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27922   echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924   ac_check_lib_save_LIBS=$LIBS
27925 LIBS="-lintl  $LIBS"
27926 cat >conftest.$ac_ext <<_ACEOF
27927 /* confdefs.h.  */
27928 _ACEOF
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h.  */
27932
27933 /* Override any gcc2 internal prototype to avoid an error.  */
27934 #ifdef __cplusplus
27935 extern "C"
27936 #endif
27937 /* We use char because int might match the return type of a gcc2
27938    builtin and then its argument prototype would still apply.  */
27939 char strftime ();
27940 int
27941 main ()
27942 {
27943 strftime ();
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 rm -f conftest.$ac_objext conftest$ac_exeext
27949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27950   (eval $ac_link) 2>conftest.er1
27951   ac_status=$?
27952   grep -v '^ *+' conftest.er1 >conftest.err
27953   rm -f conftest.er1
27954   cat conftest.err >&5
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); } &&
27957          { ac_try='test -z "$ac_c_werror_flag"
27958                          || test ! -s conftest.err'
27959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960   (eval $ac_try) 2>&5
27961   ac_status=$?
27962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963   (exit $ac_status); }; } &&
27964          { ac_try='test -s conftest$ac_exeext'
27965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966   (eval $ac_try) 2>&5
27967   ac_status=$?
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); }; }; then
27970   ac_cv_lib_intl_strftime=yes
27971 else
27972   echo "$as_me: failed program was:" >&5
27973 sed 's/^/| /' conftest.$ac_ext >&5
27974
27975 ac_cv_lib_intl_strftime=no
27976 fi
27977 rm -f conftest.err conftest.$ac_objext \
27978       conftest$ac_exeext conftest.$ac_ext
27979 LIBS=$ac_check_lib_save_LIBS
27980 fi
27981 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27982 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27983 if test $ac_cv_lib_intl_strftime = yes; then
27984   cat >>confdefs.h <<\_ACEOF
27985 #define HAVE_STRFTIME 1
27986 _ACEOF
27987
27988 LIBS="-lintl $LIBS"
27989 fi
27990
27991 fi
27992 done
27993
27994
27995 for ac_func in vprintf
27996 do
27997 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27998 echo "$as_me:$LINENO: checking for $ac_func" >&5
27999 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28000 if eval "test \"\${$as_ac_var+set}\" = set"; then
28001   echo $ECHO_N "(cached) $ECHO_C" >&6
28002 else
28003   cat >conftest.$ac_ext <<_ACEOF
28004 /* confdefs.h.  */
28005 _ACEOF
28006 cat confdefs.h >>conftest.$ac_ext
28007 cat >>conftest.$ac_ext <<_ACEOF
28008 /* end confdefs.h.  */
28009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28011 #define $ac_func innocuous_$ac_func
28012
28013 /* System header to define __stub macros and hopefully few prototypes,
28014     which can conflict with char $ac_func (); below.
28015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28016     <limits.h> exists even on freestanding compilers.  */
28017
28018 #ifdef __STDC__
28019 # include <limits.h>
28020 #else
28021 # include <assert.h>
28022 #endif
28023
28024 #undef $ac_func
28025
28026 /* Override any gcc2 internal prototype to avoid an error.  */
28027 #ifdef __cplusplus
28028 extern "C"
28029 {
28030 #endif
28031 /* We use char because int might match the return type of a gcc2
28032    builtin and then its argument prototype would still apply.  */
28033 char $ac_func ();
28034 /* The GNU C library defines this for functions which it implements
28035     to always fail with ENOSYS.  Some functions are actually named
28036     something starting with __ and the normal name is an alias.  */
28037 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28038 choke me
28039 #else
28040 char (*f) () = $ac_func;
28041 #endif
28042 #ifdef __cplusplus
28043 }
28044 #endif
28045
28046 int
28047 main ()
28048 {
28049 return f != $ac_func;
28050   ;
28051   return 0;
28052 }
28053 _ACEOF
28054 rm -f conftest.$ac_objext conftest$ac_exeext
28055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28056   (eval $ac_link) 2>conftest.er1
28057   ac_status=$?
28058   grep -v '^ *+' conftest.er1 >conftest.err
28059   rm -f conftest.er1
28060   cat conftest.err >&5
28061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28062   (exit $ac_status); } &&
28063          { ac_try='test -z "$ac_c_werror_flag"
28064                          || test ! -s conftest.err'
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); }; } &&
28070          { ac_try='test -s conftest$ac_exeext'
28071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28072   (eval $ac_try) 2>&5
28073   ac_status=$?
28074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28075   (exit $ac_status); }; }; then
28076   eval "$as_ac_var=yes"
28077 else
28078   echo "$as_me: failed program was:" >&5
28079 sed 's/^/| /' conftest.$ac_ext >&5
28080
28081 eval "$as_ac_var=no"
28082 fi
28083 rm -f conftest.err conftest.$ac_objext \
28084       conftest$ac_exeext conftest.$ac_ext
28085 fi
28086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28087 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28088 if test `eval echo '${'$as_ac_var'}'` = yes; then
28089   cat >>confdefs.h <<_ACEOF
28090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28091 _ACEOF
28092
28093 echo "$as_me:$LINENO: checking for _doprnt" >&5
28094 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28095 if test "${ac_cv_func__doprnt+set}" = set; then
28096   echo $ECHO_N "(cached) $ECHO_C" >&6
28097 else
28098   cat >conftest.$ac_ext <<_ACEOF
28099 /* confdefs.h.  */
28100 _ACEOF
28101 cat confdefs.h >>conftest.$ac_ext
28102 cat >>conftest.$ac_ext <<_ACEOF
28103 /* end confdefs.h.  */
28104 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28106 #define _doprnt innocuous__doprnt
28107
28108 /* System header to define __stub macros and hopefully few prototypes,
28109     which can conflict with char _doprnt (); below.
28110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28111     <limits.h> exists even on freestanding compilers.  */
28112
28113 #ifdef __STDC__
28114 # include <limits.h>
28115 #else
28116 # include <assert.h>
28117 #endif
28118
28119 #undef _doprnt
28120
28121 /* Override any gcc2 internal prototype to avoid an error.  */
28122 #ifdef __cplusplus
28123 extern "C"
28124 {
28125 #endif
28126 /* We use char because int might match the return type of a gcc2
28127    builtin and then its argument prototype would still apply.  */
28128 char _doprnt ();
28129 /* The GNU C library defines this for functions which it implements
28130     to always fail with ENOSYS.  Some functions are actually named
28131     something starting with __ and the normal name is an alias.  */
28132 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28133 choke me
28134 #else
28135 char (*f) () = _doprnt;
28136 #endif
28137 #ifdef __cplusplus
28138 }
28139 #endif
28140
28141 int
28142 main ()
28143 {
28144 return f != _doprnt;
28145   ;
28146   return 0;
28147 }
28148 _ACEOF
28149 rm -f conftest.$ac_objext conftest$ac_exeext
28150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28151   (eval $ac_link) 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } &&
28158          { ac_try='test -z "$ac_c_werror_flag"
28159                          || test ! -s conftest.err'
28160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28161   (eval $ac_try) 2>&5
28162   ac_status=$?
28163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28164   (exit $ac_status); }; } &&
28165          { ac_try='test -s conftest$ac_exeext'
28166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28167   (eval $ac_try) 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); }; }; then
28171   ac_cv_func__doprnt=yes
28172 else
28173   echo "$as_me: failed program was:" >&5
28174 sed 's/^/| /' conftest.$ac_ext >&5
28175
28176 ac_cv_func__doprnt=no
28177 fi
28178 rm -f conftest.err conftest.$ac_objext \
28179       conftest$ac_exeext conftest.$ac_ext
28180 fi
28181 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28182 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28183 if test $ac_cv_func__doprnt = yes; then
28184
28185 cat >>confdefs.h <<\_ACEOF
28186 #define HAVE_DOPRNT 1
28187 _ACEOF
28188
28189 fi
28190
28191 fi
28192 done
28193
28194
28195 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28196 # for constant arguments.  Useless!
28197 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28198 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28199 if test "${ac_cv_working_alloca_h+set}" = set; then
28200   echo $ECHO_N "(cached) $ECHO_C" >&6
28201 else
28202   cat >conftest.$ac_ext <<_ACEOF
28203 /* confdefs.h.  */
28204 _ACEOF
28205 cat confdefs.h >>conftest.$ac_ext
28206 cat >>conftest.$ac_ext <<_ACEOF
28207 /* end confdefs.h.  */
28208 #include <alloca.h>
28209 int
28210 main ()
28211 {
28212 char *p = (char *) alloca (2 * sizeof (int));
28213   ;
28214   return 0;
28215 }
28216 _ACEOF
28217 rm -f conftest.$ac_objext conftest$ac_exeext
28218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28219   (eval $ac_link) 2>conftest.er1
28220   ac_status=$?
28221   grep -v '^ *+' conftest.er1 >conftest.err
28222   rm -f conftest.er1
28223   cat conftest.err >&5
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); } &&
28226          { ac_try='test -z "$ac_c_werror_flag"
28227                          || test ! -s conftest.err'
28228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28229   (eval $ac_try) 2>&5
28230   ac_status=$?
28231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28232   (exit $ac_status); }; } &&
28233          { ac_try='test -s conftest$ac_exeext'
28234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28235   (eval $ac_try) 2>&5
28236   ac_status=$?
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); }; }; then
28239   ac_cv_working_alloca_h=yes
28240 else
28241   echo "$as_me: failed program was:" >&5
28242 sed 's/^/| /' conftest.$ac_ext >&5
28243
28244 ac_cv_working_alloca_h=no
28245 fi
28246 rm -f conftest.err conftest.$ac_objext \
28247       conftest$ac_exeext conftest.$ac_ext
28248 fi
28249 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28250 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28251 if test $ac_cv_working_alloca_h = yes; then
28252
28253 cat >>confdefs.h <<\_ACEOF
28254 #define HAVE_ALLOCA_H 1
28255 _ACEOF
28256
28257 fi
28258
28259 echo "$as_me:$LINENO: checking for alloca" >&5
28260 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28261 if test "${ac_cv_func_alloca_works+set}" = set; then
28262   echo $ECHO_N "(cached) $ECHO_C" >&6
28263 else
28264   cat >conftest.$ac_ext <<_ACEOF
28265 /* confdefs.h.  */
28266 _ACEOF
28267 cat confdefs.h >>conftest.$ac_ext
28268 cat >>conftest.$ac_ext <<_ACEOF
28269 /* end confdefs.h.  */
28270 #ifdef __GNUC__
28271 # define alloca __builtin_alloca
28272 #else
28273 # ifdef _MSC_VER
28274 #  include <malloc.h>
28275 #  define alloca _alloca
28276 # else
28277 #  if HAVE_ALLOCA_H
28278 #   include <alloca.h>
28279 #  else
28280 #   ifdef _AIX
28281  #pragma alloca
28282 #   else
28283 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28284 char *alloca ();
28285 #    endif
28286 #   endif
28287 #  endif
28288 # endif
28289 #endif
28290
28291 int
28292 main ()
28293 {
28294 char *p = (char *) alloca (1);
28295   ;
28296   return 0;
28297 }
28298 _ACEOF
28299 rm -f conftest.$ac_objext conftest$ac_exeext
28300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28301   (eval $ac_link) 2>conftest.er1
28302   ac_status=$?
28303   grep -v '^ *+' conftest.er1 >conftest.err
28304   rm -f conftest.er1
28305   cat conftest.err >&5
28306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307   (exit $ac_status); } &&
28308          { ac_try='test -z "$ac_c_werror_flag"
28309                          || test ! -s conftest.err'
28310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28311   (eval $ac_try) 2>&5
28312   ac_status=$?
28313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314   (exit $ac_status); }; } &&
28315          { ac_try='test -s conftest$ac_exeext'
28316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28317   (eval $ac_try) 2>&5
28318   ac_status=$?
28319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320   (exit $ac_status); }; }; then
28321   ac_cv_func_alloca_works=yes
28322 else
28323   echo "$as_me: failed program was:" >&5
28324 sed 's/^/| /' conftest.$ac_ext >&5
28325
28326 ac_cv_func_alloca_works=no
28327 fi
28328 rm -f conftest.err conftest.$ac_objext \
28329       conftest$ac_exeext conftest.$ac_ext
28330 fi
28331 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28332 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28333
28334 if test $ac_cv_func_alloca_works = yes; then
28335
28336 cat >>confdefs.h <<\_ACEOF
28337 #define HAVE_ALLOCA 1
28338 _ACEOF
28339
28340 else
28341   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28342 # that cause trouble.  Some versions do not even contain alloca or
28343 # contain a buggy version.  If you still want to use their alloca,
28344 # use ar to extract alloca.o from them instead of compiling alloca.c.
28345
28346 ALLOCA=alloca.$ac_objext
28347
28348 cat >>confdefs.h <<\_ACEOF
28349 #define C_ALLOCA 1
28350 _ACEOF
28351
28352
28353 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28354 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28355 if test "${ac_cv_os_cray+set}" = set; then
28356   echo $ECHO_N "(cached) $ECHO_C" >&6
28357 else
28358   cat >conftest.$ac_ext <<_ACEOF
28359 /* confdefs.h.  */
28360 _ACEOF
28361 cat confdefs.h >>conftest.$ac_ext
28362 cat >>conftest.$ac_ext <<_ACEOF
28363 /* end confdefs.h.  */
28364 #if defined(CRAY) && ! defined(CRAY2)
28365 webecray
28366 #else
28367 wenotbecray
28368 #endif
28369
28370 _ACEOF
28371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28372   $EGREP "webecray" >/dev/null 2>&1; then
28373   ac_cv_os_cray=yes
28374 else
28375   ac_cv_os_cray=no
28376 fi
28377 rm -f conftest*
28378
28379 fi
28380 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28381 echo "${ECHO_T}$ac_cv_os_cray" >&6
28382 if test $ac_cv_os_cray = yes; then
28383   for ac_func in _getb67 GETB67 getb67; do
28384     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28385 echo "$as_me:$LINENO: checking for $ac_func" >&5
28386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28387 if eval "test \"\${$as_ac_var+set}\" = set"; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390   cat >conftest.$ac_ext <<_ACEOF
28391 /* confdefs.h.  */
28392 _ACEOF
28393 cat confdefs.h >>conftest.$ac_ext
28394 cat >>conftest.$ac_ext <<_ACEOF
28395 /* end confdefs.h.  */
28396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28397    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28398 #define $ac_func innocuous_$ac_func
28399
28400 /* System header to define __stub macros and hopefully few prototypes,
28401     which can conflict with char $ac_func (); below.
28402     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28403     <limits.h> exists even on freestanding compilers.  */
28404
28405 #ifdef __STDC__
28406 # include <limits.h>
28407 #else
28408 # include <assert.h>
28409 #endif
28410
28411 #undef $ac_func
28412
28413 /* Override any gcc2 internal prototype to avoid an error.  */
28414 #ifdef __cplusplus
28415 extern "C"
28416 {
28417 #endif
28418 /* We use char because int might match the return type of a gcc2
28419    builtin and then its argument prototype would still apply.  */
28420 char $ac_func ();
28421 /* The GNU C library defines this for functions which it implements
28422     to always fail with ENOSYS.  Some functions are actually named
28423     something starting with __ and the normal name is an alias.  */
28424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28425 choke me
28426 #else
28427 char (*f) () = $ac_func;
28428 #endif
28429 #ifdef __cplusplus
28430 }
28431 #endif
28432
28433 int
28434 main ()
28435 {
28436 return f != $ac_func;
28437   ;
28438   return 0;
28439 }
28440 _ACEOF
28441 rm -f conftest.$ac_objext conftest$ac_exeext
28442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28443   (eval $ac_link) 2>conftest.er1
28444   ac_status=$?
28445   grep -v '^ *+' conftest.er1 >conftest.err
28446   rm -f conftest.er1
28447   cat conftest.err >&5
28448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28449   (exit $ac_status); } &&
28450          { ac_try='test -z "$ac_c_werror_flag"
28451                          || test ! -s conftest.err'
28452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28453   (eval $ac_try) 2>&5
28454   ac_status=$?
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); }; } &&
28457          { ac_try='test -s conftest$ac_exeext'
28458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28459   (eval $ac_try) 2>&5
28460   ac_status=$?
28461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28462   (exit $ac_status); }; }; then
28463   eval "$as_ac_var=yes"
28464 else
28465   echo "$as_me: failed program was:" >&5
28466 sed 's/^/| /' conftest.$ac_ext >&5
28467
28468 eval "$as_ac_var=no"
28469 fi
28470 rm -f conftest.err conftest.$ac_objext \
28471       conftest$ac_exeext conftest.$ac_ext
28472 fi
28473 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28474 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28475 if test `eval echo '${'$as_ac_var'}'` = yes; then
28476
28477 cat >>confdefs.h <<_ACEOF
28478 #define CRAY_STACKSEG_END $ac_func
28479 _ACEOF
28480
28481     break
28482 fi
28483
28484   done
28485 fi
28486
28487 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28488 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28489 if test "${ac_cv_c_stack_direction+set}" = set; then
28490   echo $ECHO_N "(cached) $ECHO_C" >&6
28491 else
28492   if test "$cross_compiling" = yes; then
28493   ac_cv_c_stack_direction=0
28494 else
28495   cat >conftest.$ac_ext <<_ACEOF
28496 /* confdefs.h.  */
28497 _ACEOF
28498 cat confdefs.h >>conftest.$ac_ext
28499 cat >>conftest.$ac_ext <<_ACEOF
28500 /* end confdefs.h.  */
28501 int
28502 find_stack_direction ()
28503 {
28504   static char *addr = 0;
28505   auto char dummy;
28506   if (addr == 0)
28507     {
28508       addr = &dummy;
28509       return find_stack_direction ();
28510     }
28511   else
28512     return (&dummy > addr) ? 1 : -1;
28513 }
28514
28515 int
28516 main ()
28517 {
28518   exit (find_stack_direction () < 0);
28519 }
28520 _ACEOF
28521 rm -f conftest$ac_exeext
28522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28523   (eval $ac_link) 2>&5
28524   ac_status=$?
28525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28526   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28528   (eval $ac_try) 2>&5
28529   ac_status=$?
28530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28531   (exit $ac_status); }; }; then
28532   ac_cv_c_stack_direction=1
28533 else
28534   echo "$as_me: program exited with status $ac_status" >&5
28535 echo "$as_me: failed program was:" >&5
28536 sed 's/^/| /' conftest.$ac_ext >&5
28537
28538 ( exit $ac_status )
28539 ac_cv_c_stack_direction=-1
28540 fi
28541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28542 fi
28543 fi
28544 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28545 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28546
28547 cat >>confdefs.h <<_ACEOF
28548 #define STACK_DIRECTION $ac_cv_c_stack_direction
28549 _ACEOF
28550
28551
28552 fi
28553
28554 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28555 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28556 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28557 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560   ac_check_lib_save_LIBS=$LIBS
28561 LIBS="-lsun  $LIBS"
28562 cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569 /* Override any gcc2 internal prototype to avoid an error.  */
28570 #ifdef __cplusplus
28571 extern "C"
28572 #endif
28573 /* We use char because int might match the return type of a gcc2
28574    builtin and then its argument prototype would still apply.  */
28575 char getmntent ();
28576 int
28577 main ()
28578 {
28579 getmntent ();
28580   ;
28581   return 0;
28582 }
28583 _ACEOF
28584 rm -f conftest.$ac_objext conftest$ac_exeext
28585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28586   (eval $ac_link) 2>conftest.er1
28587   ac_status=$?
28588   grep -v '^ *+' conftest.er1 >conftest.err
28589   rm -f conftest.er1
28590   cat conftest.err >&5
28591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28592   (exit $ac_status); } &&
28593          { ac_try='test -z "$ac_c_werror_flag"
28594                          || test ! -s conftest.err'
28595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28596   (eval $ac_try) 2>&5
28597   ac_status=$?
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); }; } &&
28600          { ac_try='test -s conftest$ac_exeext'
28601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28602   (eval $ac_try) 2>&5
28603   ac_status=$?
28604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28605   (exit $ac_status); }; }; then
28606   ac_cv_lib_sun_getmntent=yes
28607 else
28608   echo "$as_me: failed program was:" >&5
28609 sed 's/^/| /' conftest.$ac_ext >&5
28610
28611 ac_cv_lib_sun_getmntent=no
28612 fi
28613 rm -f conftest.err conftest.$ac_objext \
28614       conftest$ac_exeext conftest.$ac_ext
28615 LIBS=$ac_check_lib_save_LIBS
28616 fi
28617 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28618 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28619 if test $ac_cv_lib_sun_getmntent = yes; then
28620   LIBS="-lsun $LIBS"
28621 else
28622   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28623 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28624 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28625   echo $ECHO_N "(cached) $ECHO_C" >&6
28626 else
28627   ac_check_lib_save_LIBS=$LIBS
28628 LIBS="-lseq  $LIBS"
28629 cat >conftest.$ac_ext <<_ACEOF
28630 /* confdefs.h.  */
28631 _ACEOF
28632 cat confdefs.h >>conftest.$ac_ext
28633 cat >>conftest.$ac_ext <<_ACEOF
28634 /* end confdefs.h.  */
28635
28636 /* Override any gcc2 internal prototype to avoid an error.  */
28637 #ifdef __cplusplus
28638 extern "C"
28639 #endif
28640 /* We use char because int might match the return type of a gcc2
28641    builtin and then its argument prototype would still apply.  */
28642 char getmntent ();
28643 int
28644 main ()
28645 {
28646 getmntent ();
28647   ;
28648   return 0;
28649 }
28650 _ACEOF
28651 rm -f conftest.$ac_objext conftest$ac_exeext
28652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28653   (eval $ac_link) 2>conftest.er1
28654   ac_status=$?
28655   grep -v '^ *+' conftest.er1 >conftest.err
28656   rm -f conftest.er1
28657   cat conftest.err >&5
28658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28659   (exit $ac_status); } &&
28660          { ac_try='test -z "$ac_c_werror_flag"
28661                          || test ! -s conftest.err'
28662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28663   (eval $ac_try) 2>&5
28664   ac_status=$?
28665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28666   (exit $ac_status); }; } &&
28667          { ac_try='test -s conftest$ac_exeext'
28668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28669   (eval $ac_try) 2>&5
28670   ac_status=$?
28671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672   (exit $ac_status); }; }; then
28673   ac_cv_lib_seq_getmntent=yes
28674 else
28675   echo "$as_me: failed program was:" >&5
28676 sed 's/^/| /' conftest.$ac_ext >&5
28677
28678 ac_cv_lib_seq_getmntent=no
28679 fi
28680 rm -f conftest.err conftest.$ac_objext \
28681       conftest$ac_exeext conftest.$ac_ext
28682 LIBS=$ac_check_lib_save_LIBS
28683 fi
28684 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28685 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28686 if test $ac_cv_lib_seq_getmntent = yes; then
28687   LIBS="-lseq $LIBS"
28688 else
28689   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28690 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28691 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28692   echo $ECHO_N "(cached) $ECHO_C" >&6
28693 else
28694   ac_check_lib_save_LIBS=$LIBS
28695 LIBS="-lgen  $LIBS"
28696 cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702
28703 /* Override any gcc2 internal prototype to avoid an error.  */
28704 #ifdef __cplusplus
28705 extern "C"
28706 #endif
28707 /* We use char because int might match the return type of a gcc2
28708    builtin and then its argument prototype would still apply.  */
28709 char getmntent ();
28710 int
28711 main ()
28712 {
28713 getmntent ();
28714   ;
28715   return 0;
28716 }
28717 _ACEOF
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28720   (eval $ac_link) 2>conftest.er1
28721   ac_status=$?
28722   grep -v '^ *+' conftest.er1 >conftest.err
28723   rm -f conftest.er1
28724   cat conftest.err >&5
28725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28726   (exit $ac_status); } &&
28727          { ac_try='test -z "$ac_c_werror_flag"
28728                          || test ! -s conftest.err'
28729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28730   (eval $ac_try) 2>&5
28731   ac_status=$?
28732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733   (exit $ac_status); }; } &&
28734          { ac_try='test -s conftest$ac_exeext'
28735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28736   (eval $ac_try) 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); }; }; then
28740   ac_cv_lib_gen_getmntent=yes
28741 else
28742   echo "$as_me: failed program was:" >&5
28743 sed 's/^/| /' conftest.$ac_ext >&5
28744
28745 ac_cv_lib_gen_getmntent=no
28746 fi
28747 rm -f conftest.err conftest.$ac_objext \
28748       conftest$ac_exeext conftest.$ac_ext
28749 LIBS=$ac_check_lib_save_LIBS
28750 fi
28751 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28752 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28753 if test $ac_cv_lib_gen_getmntent = yes; then
28754   LIBS="-lgen $LIBS"
28755 fi
28756
28757 fi
28758
28759 fi
28760
28761
28762 for ac_func in getmntent
28763 do
28764 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28765 echo "$as_me:$LINENO: checking for $ac_func" >&5
28766 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28767 if eval "test \"\${$as_ac_var+set}\" = set"; then
28768   echo $ECHO_N "(cached) $ECHO_C" >&6
28769 else
28770   cat >conftest.$ac_ext <<_ACEOF
28771 /* confdefs.h.  */
28772 _ACEOF
28773 cat confdefs.h >>conftest.$ac_ext
28774 cat >>conftest.$ac_ext <<_ACEOF
28775 /* end confdefs.h.  */
28776 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28778 #define $ac_func innocuous_$ac_func
28779
28780 /* System header to define __stub macros and hopefully few prototypes,
28781     which can conflict with char $ac_func (); below.
28782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28783     <limits.h> exists even on freestanding compilers.  */
28784
28785 #ifdef __STDC__
28786 # include <limits.h>
28787 #else
28788 # include <assert.h>
28789 #endif
28790
28791 #undef $ac_func
28792
28793 /* Override any gcc2 internal prototype to avoid an error.  */
28794 #ifdef __cplusplus
28795 extern "C"
28796 {
28797 #endif
28798 /* We use char because int might match the return type of a gcc2
28799    builtin and then its argument prototype would still apply.  */
28800 char $ac_func ();
28801 /* The GNU C library defines this for functions which it implements
28802     to always fail with ENOSYS.  Some functions are actually named
28803     something starting with __ and the normal name is an alias.  */
28804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28805 choke me
28806 #else
28807 char (*f) () = $ac_func;
28808 #endif
28809 #ifdef __cplusplus
28810 }
28811 #endif
28812
28813 int
28814 main ()
28815 {
28816 return f != $ac_func;
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   eval "$as_ac_var=yes"
28844 else
28845   echo "$as_me: failed program was:" >&5
28846 sed 's/^/| /' conftest.$ac_ext >&5
28847
28848 eval "$as_ac_var=no"
28849 fi
28850 rm -f conftest.err conftest.$ac_objext \
28851       conftest$ac_exeext conftest.$ac_ext
28852 fi
28853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28854 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28855 if test `eval echo '${'$as_ac_var'}'` = yes; then
28856   cat >>confdefs.h <<_ACEOF
28857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28858 _ACEOF
28859
28860 fi
28861 done
28862
28863
28864 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28865 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28866 if test "${ac_cv_func_closedir_void+set}" = set; then
28867   echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869   if test "$cross_compiling" = yes; then
28870   ac_cv_func_closedir_void=yes
28871 else
28872   cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878 $ac_includes_default
28879 #include <$ac_header_dirent>
28880 #ifndef __cplusplus
28881 int closedir ();
28882 #endif
28883
28884 int
28885 main ()
28886 {
28887 exit (closedir (opendir (".")) != 0);
28888   ;
28889   return 0;
28890 }
28891 _ACEOF
28892 rm -f conftest$ac_exeext
28893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894   (eval $ac_link) 2>&5
28895   ac_status=$?
28896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899   (eval $ac_try) 2>&5
28900   ac_status=$?
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); }; }; then
28903   ac_cv_func_closedir_void=no
28904 else
28905   echo "$as_me: program exited with status $ac_status" >&5
28906 echo "$as_me: failed program was:" >&5
28907 sed 's/^/| /' conftest.$ac_ext >&5
28908
28909 ( exit $ac_status )
28910 ac_cv_func_closedir_void=yes
28911 fi
28912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28913 fi
28914 fi
28915 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28916 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28917 if test $ac_cv_func_closedir_void = yes; then
28918
28919 cat >>confdefs.h <<\_ACEOF
28920 #define CLOSEDIR_VOID 1
28921 _ACEOF
28922
28923 fi
28924
28925 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28926 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28927 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28928   echo $ECHO_N "(cached) $ECHO_C" >&6
28929 else
28930   if test "$cross_compiling" = yes; then
28931   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28932 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28933    { (exit 1); exit 1; }; }
28934 else
28935   cat >conftest.$ac_ext <<_ACEOF
28936 /* confdefs.h.  */
28937 _ACEOF
28938 cat confdefs.h >>conftest.$ac_ext
28939 cat >>conftest.$ac_ext <<_ACEOF
28940 /* end confdefs.h.  */
28941 #if HAVE_UNISTD_H
28942 # include <unistd.h>
28943 #endif
28944
28945 int
28946 main ()
28947 {
28948 /* If this system has a BSD-style setpgrp which takes arguments,
28949   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28950   exit successfully. */
28951   exit (setpgrp (1,1) == -1 ? 0 : 1);
28952   ;
28953   return 0;
28954 }
28955 _ACEOF
28956 rm -f conftest$ac_exeext
28957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28958   (eval $ac_link) 2>&5
28959   ac_status=$?
28960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28961   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28963   (eval $ac_try) 2>&5
28964   ac_status=$?
28965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28966   (exit $ac_status); }; }; then
28967   ac_cv_func_setpgrp_void=no
28968 else
28969   echo "$as_me: program exited with status $ac_status" >&5
28970 echo "$as_me: failed program was:" >&5
28971 sed 's/^/| /' conftest.$ac_ext >&5
28972
28973 ( exit $ac_status )
28974 ac_cv_func_setpgrp_void=yes
28975 fi
28976 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28977 fi
28978 fi
28979 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28980 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28981 if test $ac_cv_func_setpgrp_void = yes; then
28982
28983 cat >>confdefs.h <<\_ACEOF
28984 #define SETPGRP_VOID 1
28985 _ACEOF
28986
28987 fi
28988                       # AC_FUNC_FNMATCH    dnl use local version
28989
28990
28991 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28992 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28993 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28994   echo $ECHO_N "(cached) $ECHO_C" >&6
28995 else
28996   ac_check_lib_save_LIBS=$LIBS
28997 LIBS="-lintl  $LIBS"
28998 cat >conftest.$ac_ext <<_ACEOF
28999 /* confdefs.h.  */
29000 _ACEOF
29001 cat confdefs.h >>conftest.$ac_ext
29002 cat >>conftest.$ac_ext <<_ACEOF
29003 /* end confdefs.h.  */
29004
29005 /* Override any gcc2 internal prototype to avoid an error.  */
29006 #ifdef __cplusplus
29007 extern "C"
29008 #endif
29009 /* We use char because int might match the return type of a gcc2
29010    builtin and then its argument prototype would still apply.  */
29011 char gettext ();
29012 int
29013 main ()
29014 {
29015 gettext ();
29016   ;
29017   return 0;
29018 }
29019 _ACEOF
29020 rm -f conftest.$ac_objext conftest$ac_exeext
29021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29022   (eval $ac_link) 2>conftest.er1
29023   ac_status=$?
29024   grep -v '^ *+' conftest.er1 >conftest.err
29025   rm -f conftest.er1
29026   cat conftest.err >&5
29027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29028   (exit $ac_status); } &&
29029          { ac_try='test -z "$ac_c_werror_flag"
29030                          || test ! -s conftest.err'
29031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032   (eval $ac_try) 2>&5
29033   ac_status=$?
29034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035   (exit $ac_status); }; } &&
29036          { ac_try='test -s conftest$ac_exeext'
29037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29038   (eval $ac_try) 2>&5
29039   ac_status=$?
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); }; }; then
29042   ac_cv_lib_intl_gettext=yes
29043 else
29044   echo "$as_me: failed program was:" >&5
29045 sed 's/^/| /' conftest.$ac_ext >&5
29046
29047 ac_cv_lib_intl_gettext=no
29048 fi
29049 rm -f conftest.err conftest.$ac_objext \
29050       conftest$ac_exeext conftest.$ac_ext
29051 LIBS=$ac_check_lib_save_LIBS
29052 fi
29053 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29054 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29055 if test $ac_cv_lib_intl_gettext = yes; then
29056   LIBS="$LIBS -lintl"
29057 fi
29058
29059
29060
29061
29062 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29063 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29064 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29065   echo $ECHO_N "(cached) $ECHO_C" >&6
29066 else
29067   ac_check_lib_save_LIBS=$LIBS
29068 LIBS="-lsun  $LIBS"
29069 cat >conftest.$ac_ext <<_ACEOF
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075
29076 /* Override any gcc2 internal prototype to avoid an error.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 /* We use char because int might match the return type of a gcc2
29081    builtin and then its argument prototype would still apply.  */
29082 char getpwnam ();
29083 int
29084 main ()
29085 {
29086 getpwnam ();
29087   ;
29088   return 0;
29089 }
29090 _ACEOF
29091 rm -f conftest.$ac_objext conftest$ac_exeext
29092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29093   (eval $ac_link) 2>conftest.er1
29094   ac_status=$?
29095   grep -v '^ *+' conftest.er1 >conftest.err
29096   rm -f conftest.er1
29097   cat conftest.err >&5
29098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29099   (exit $ac_status); } &&
29100          { ac_try='test -z "$ac_c_werror_flag"
29101                          || test ! -s conftest.err'
29102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29103   (eval $ac_try) 2>&5
29104   ac_status=$?
29105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106   (exit $ac_status); }; } &&
29107          { ac_try='test -s conftest$ac_exeext'
29108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109   (eval $ac_try) 2>&5
29110   ac_status=$?
29111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112   (exit $ac_status); }; }; then
29113   ac_cv_lib_sun_getpwnam=yes
29114 else
29115   echo "$as_me: failed program was:" >&5
29116 sed 's/^/| /' conftest.$ac_ext >&5
29117
29118 ac_cv_lib_sun_getpwnam=no
29119 fi
29120 rm -f conftest.err conftest.$ac_objext \
29121       conftest$ac_exeext conftest.$ac_ext
29122 LIBS=$ac_check_lib_save_LIBS
29123 fi
29124 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29125 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29126 if test $ac_cv_lib_sun_getpwnam = yes; then
29127   cat >>confdefs.h <<_ACEOF
29128 #define HAVE_LIBSUN 1
29129 _ACEOF
29130
29131   LIBS="-lsun $LIBS"
29132
29133 fi
29134
29135
29136
29137 for ac_header in zlib.h
29138 do
29139 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29140 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29141   echo "$as_me:$LINENO: checking for $ac_header" >&5
29142 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29143 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29144   echo $ECHO_N "(cached) $ECHO_C" >&6
29145 fi
29146 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29147 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29148 else
29149   # Is the header compilable?
29150 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29152 cat >conftest.$ac_ext <<_ACEOF
29153 /* confdefs.h.  */
29154 _ACEOF
29155 cat confdefs.h >>conftest.$ac_ext
29156 cat >>conftest.$ac_ext <<_ACEOF
29157 /* end confdefs.h.  */
29158 $ac_includes_default
29159 #include <$ac_header>
29160 _ACEOF
29161 rm -f conftest.$ac_objext
29162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29163   (eval $ac_compile) 2>conftest.er1
29164   ac_status=$?
29165   grep -v '^ *+' conftest.er1 >conftest.err
29166   rm -f conftest.er1
29167   cat conftest.err >&5
29168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169   (exit $ac_status); } &&
29170          { ac_try='test -z "$ac_c_werror_flag"
29171                          || test ! -s conftest.err'
29172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173   (eval $ac_try) 2>&5
29174   ac_status=$?
29175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176   (exit $ac_status); }; } &&
29177          { ac_try='test -s conftest.$ac_objext'
29178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29179   (eval $ac_try) 2>&5
29180   ac_status=$?
29181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29182   (exit $ac_status); }; }; then
29183   ac_header_compiler=yes
29184 else
29185   echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29187
29188 ac_header_compiler=no
29189 fi
29190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29191 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29192 echo "${ECHO_T}$ac_header_compiler" >&6
29193
29194 # Is the header present?
29195 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29196 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29197 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h.  */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h.  */
29203 #include <$ac_header>
29204 _ACEOF
29205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29206   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29207   ac_status=$?
29208   grep -v '^ *+' conftest.er1 >conftest.err
29209   rm -f conftest.er1
29210   cat conftest.err >&5
29211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212   (exit $ac_status); } >/dev/null; then
29213   if test -s conftest.err; then
29214     ac_cpp_err=$ac_c_preproc_warn_flag
29215     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29216   else
29217     ac_cpp_err=
29218   fi
29219 else
29220   ac_cpp_err=yes
29221 fi
29222 if test -z "$ac_cpp_err"; then
29223   ac_header_preproc=yes
29224 else
29225   echo "$as_me: failed program was:" >&5
29226 sed 's/^/| /' conftest.$ac_ext >&5
29227
29228   ac_header_preproc=no
29229 fi
29230 rm -f conftest.err conftest.$ac_ext
29231 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29232 echo "${ECHO_T}$ac_header_preproc" >&6
29233
29234 # So?  What about this header?
29235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29236   yes:no: )
29237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29241     ac_header_preproc=yes
29242     ;;
29243   no:yes:* )
29244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29256     (
29257       cat <<\_ASBOX
29258 ## ------------------------------------------ ##
29259 ## Report this to the AC_PACKAGE_NAME lists.  ##
29260 ## ------------------------------------------ ##
29261 _ASBOX
29262     ) |
29263       sed "s/^/$as_me: WARNING:     /" >&2
29264     ;;
29265 esac
29266 echo "$as_me:$LINENO: checking for $ac_header" >&5
29267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29269   echo $ECHO_N "(cached) $ECHO_C" >&6
29270 else
29271   eval "$as_ac_Header=\$ac_header_preproc"
29272 fi
29273 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29274 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29275
29276 fi
29277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29278   cat >>confdefs.h <<_ACEOF
29279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29280 _ACEOF
29281
29282 fi
29283
29284 done
29285
29286 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29287 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29288 if test "${ac_cv_lib_z_deflate+set}" = set; then
29289   echo $ECHO_N "(cached) $ECHO_C" >&6
29290 else
29291   ac_check_lib_save_LIBS=$LIBS
29292 LIBS="-lz  $LIBS"
29293 cat >conftest.$ac_ext <<_ACEOF
29294 /* confdefs.h.  */
29295 _ACEOF
29296 cat confdefs.h >>conftest.$ac_ext
29297 cat >>conftest.$ac_ext <<_ACEOF
29298 /* end confdefs.h.  */
29299
29300 /* Override any gcc2 internal prototype to avoid an error.  */
29301 #ifdef __cplusplus
29302 extern "C"
29303 #endif
29304 /* We use char because int might match the return type of a gcc2
29305    builtin and then its argument prototype would still apply.  */
29306 char deflate ();
29307 int
29308 main ()
29309 {
29310 deflate ();
29311   ;
29312   return 0;
29313 }
29314 _ACEOF
29315 rm -f conftest.$ac_objext conftest$ac_exeext
29316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29317   (eval $ac_link) 2>conftest.er1
29318   ac_status=$?
29319   grep -v '^ *+' conftest.er1 >conftest.err
29320   rm -f conftest.er1
29321   cat conftest.err >&5
29322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323   (exit $ac_status); } &&
29324          { ac_try='test -z "$ac_c_werror_flag"
29325                          || test ! -s conftest.err'
29326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29327   (eval $ac_try) 2>&5
29328   ac_status=$?
29329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29330   (exit $ac_status); }; } &&
29331          { ac_try='test -s conftest$ac_exeext'
29332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29333   (eval $ac_try) 2>&5
29334   ac_status=$?
29335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29336   (exit $ac_status); }; }; then
29337   ac_cv_lib_z_deflate=yes
29338 else
29339   echo "$as_me: failed program was:" >&5
29340 sed 's/^/| /' conftest.$ac_ext >&5
29341
29342 ac_cv_lib_z_deflate=no
29343 fi
29344 rm -f conftest.err conftest.$ac_objext \
29345       conftest$ac_exeext conftest.$ac_ext
29346 LIBS=$ac_check_lib_save_LIBS
29347 fi
29348 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29349 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29350 if test $ac_cv_lib_z_deflate = yes; then
29351   FDLIBS="-lz"
29352 fi
29353
29354 have_zlib=no
29355 if test x$FDLIBS = x-lz; then
29356   cat >>confdefs.h <<\_ACEOF
29357 #define HAVE_LIBZ 1
29358 _ACEOF
29359
29360   have_zlib=yes
29361 fi
29362
29363 #
29364 # Check for ACL libraries
29365 #
29366 have_acl=no
29367 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29368   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29369 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29370 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29371   echo $ECHO_N "(cached) $ECHO_C" >&6
29372 fi
29373 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29374 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29375 else
29376   # Is the header compilable?
29377 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29378 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29379 cat >conftest.$ac_ext <<_ACEOF
29380 /* confdefs.h.  */
29381 _ACEOF
29382 cat confdefs.h >>conftest.$ac_ext
29383 cat >>conftest.$ac_ext <<_ACEOF
29384 /* end confdefs.h.  */
29385 $ac_includes_default
29386 #include <sys/acl.h>
29387 _ACEOF
29388 rm -f conftest.$ac_objext
29389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29390   (eval $ac_compile) 2>conftest.er1
29391   ac_status=$?
29392   grep -v '^ *+' conftest.er1 >conftest.err
29393   rm -f conftest.er1
29394   cat conftest.err >&5
29395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396   (exit $ac_status); } &&
29397          { ac_try='test -z "$ac_c_werror_flag"
29398                          || test ! -s conftest.err'
29399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29400   (eval $ac_try) 2>&5
29401   ac_status=$?
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); }; } &&
29404          { ac_try='test -s conftest.$ac_objext'
29405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29406   (eval $ac_try) 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; }; then
29410   ac_header_compiler=yes
29411 else
29412   echo "$as_me: failed program was:" >&5
29413 sed 's/^/| /' conftest.$ac_ext >&5
29414
29415 ac_header_compiler=no
29416 fi
29417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29419 echo "${ECHO_T}$ac_header_compiler" >&6
29420
29421 # Is the header present?
29422 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29423 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29424 cat >conftest.$ac_ext <<_ACEOF
29425 /* confdefs.h.  */
29426 _ACEOF
29427 cat confdefs.h >>conftest.$ac_ext
29428 cat >>conftest.$ac_ext <<_ACEOF
29429 /* end confdefs.h.  */
29430 #include <sys/acl.h>
29431 _ACEOF
29432 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29433   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29434   ac_status=$?
29435   grep -v '^ *+' conftest.er1 >conftest.err
29436   rm -f conftest.er1
29437   cat conftest.err >&5
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); } >/dev/null; then
29440   if test -s conftest.err; then
29441     ac_cpp_err=$ac_c_preproc_warn_flag
29442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29443   else
29444     ac_cpp_err=
29445   fi
29446 else
29447   ac_cpp_err=yes
29448 fi
29449 if test -z "$ac_cpp_err"; then
29450   ac_header_preproc=yes
29451 else
29452   echo "$as_me: failed program was:" >&5
29453 sed 's/^/| /' conftest.$ac_ext >&5
29454
29455   ac_header_preproc=no
29456 fi
29457 rm -f conftest.err conftest.$ac_ext
29458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29459 echo "${ECHO_T}$ac_header_preproc" >&6
29460
29461 # So?  What about this header?
29462 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29463   yes:no: )
29464     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29465 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29466     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29467 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29468     ac_header_preproc=yes
29469     ;;
29470   no:yes:* )
29471     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29472 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29473     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29474 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29475     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29476 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29477     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29478 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29479     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29480 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29481     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29482 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29483     (
29484       cat <<\_ASBOX
29485 ## ------------------------------------------ ##
29486 ## Report this to the AC_PACKAGE_NAME lists.  ##
29487 ## ------------------------------------------ ##
29488 _ASBOX
29489     ) |
29490       sed "s/^/$as_me: WARNING:     /" >&2
29491     ;;
29492 esac
29493 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29494 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29495 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29496   echo $ECHO_N "(cached) $ECHO_C" >&6
29497 else
29498   ac_cv_header_sys_acl_h=$ac_header_preproc
29499 fi
29500 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29501 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29502
29503 fi
29504
29505
29506 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29507 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29508 if test "${ac_cv_func_acl_get_file+set}" = set; then
29509   echo $ECHO_N "(cached) $ECHO_C" >&6
29510 else
29511   cat >conftest.$ac_ext <<_ACEOF
29512 /* confdefs.h.  */
29513 _ACEOF
29514 cat confdefs.h >>conftest.$ac_ext
29515 cat >>conftest.$ac_ext <<_ACEOF
29516 /* end confdefs.h.  */
29517 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29518    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29519 #define acl_get_file innocuous_acl_get_file
29520
29521 /* System header to define __stub macros and hopefully few prototypes,
29522     which can conflict with char acl_get_file (); below.
29523     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29524     <limits.h> exists even on freestanding compilers.  */
29525
29526 #ifdef __STDC__
29527 # include <limits.h>
29528 #else
29529 # include <assert.h>
29530 #endif
29531
29532 #undef acl_get_file
29533
29534 /* Override any gcc2 internal prototype to avoid an error.  */
29535 #ifdef __cplusplus
29536 extern "C"
29537 {
29538 #endif
29539 /* We use char because int might match the return type of a gcc2
29540    builtin and then its argument prototype would still apply.  */
29541 char acl_get_file ();
29542 /* The GNU C library defines this for functions which it implements
29543     to always fail with ENOSYS.  Some functions are actually named
29544     something starting with __ and the normal name is an alias.  */
29545 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29546 choke me
29547 #else
29548 char (*f) () = acl_get_file;
29549 #endif
29550 #ifdef __cplusplus
29551 }
29552 #endif
29553
29554 int
29555 main ()
29556 {
29557 return f != acl_get_file;
29558   ;
29559   return 0;
29560 }
29561 _ACEOF
29562 rm -f conftest.$ac_objext conftest$ac_exeext
29563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29564   (eval $ac_link) 2>conftest.er1
29565   ac_status=$?
29566   grep -v '^ *+' conftest.er1 >conftest.err
29567   rm -f conftest.er1
29568   cat conftest.err >&5
29569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570   (exit $ac_status); } &&
29571          { ac_try='test -z "$ac_c_werror_flag"
29572                          || test ! -s conftest.err'
29573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29574   (eval $ac_try) 2>&5
29575   ac_status=$?
29576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29577   (exit $ac_status); }; } &&
29578          { ac_try='test -s conftest$ac_exeext'
29579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29580   (eval $ac_try) 2>&5
29581   ac_status=$?
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); }; }; then
29584   ac_cv_func_acl_get_file=yes
29585 else
29586   echo "$as_me: failed program was:" >&5
29587 sed 's/^/| /' conftest.$ac_ext >&5
29588
29589 ac_cv_func_acl_get_file=no
29590 fi
29591 rm -f conftest.err conftest.$ac_objext \
29592       conftest$ac_exeext conftest.$ac_ext
29593 fi
29594 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29595 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29596 if test $ac_cv_func_acl_get_file = yes; then
29597   have_acl=yes
29598 else
29599   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29600 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29601 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29602   echo $ECHO_N "(cached) $ECHO_C" >&6
29603 else
29604   ac_check_lib_save_LIBS=$LIBS
29605 LIBS="-lacl  $LIBS"
29606 cat >conftest.$ac_ext <<_ACEOF
29607 /* confdefs.h.  */
29608 _ACEOF
29609 cat confdefs.h >>conftest.$ac_ext
29610 cat >>conftest.$ac_ext <<_ACEOF
29611 /* end confdefs.h.  */
29612
29613 /* Override any gcc2 internal prototype to avoid an error.  */
29614 #ifdef __cplusplus
29615 extern "C"
29616 #endif
29617 /* We use char because int might match the return type of a gcc2
29618    builtin and then its argument prototype would still apply.  */
29619 char acl_get_file ();
29620 int
29621 main ()
29622 {
29623 acl_get_file ();
29624   ;
29625   return 0;
29626 }
29627 _ACEOF
29628 rm -f conftest.$ac_objext conftest$ac_exeext
29629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29630   (eval $ac_link) 2>conftest.er1
29631   ac_status=$?
29632   grep -v '^ *+' conftest.er1 >conftest.err
29633   rm -f conftest.er1
29634   cat conftest.err >&5
29635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636   (exit $ac_status); } &&
29637          { ac_try='test -z "$ac_c_werror_flag"
29638                          || test ! -s conftest.err'
29639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29640   (eval $ac_try) 2>&5
29641   ac_status=$?
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); }; } &&
29644          { ac_try='test -s conftest$ac_exeext'
29645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29646   (eval $ac_try) 2>&5
29647   ac_status=$?
29648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29649   (exit $ac_status); }; }; then
29650   ac_cv_lib_acl_acl_get_file=yes
29651 else
29652   echo "$as_me: failed program was:" >&5
29653 sed 's/^/| /' conftest.$ac_ext >&5
29654
29655 ac_cv_lib_acl_acl_get_file=no
29656 fi
29657 rm -f conftest.err conftest.$ac_objext \
29658       conftest$ac_exeext conftest.$ac_ext
29659 LIBS=$ac_check_lib_save_LIBS
29660 fi
29661 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29662 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29663 if test $ac_cv_lib_acl_acl_get_file = yes; then
29664   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29665 else
29666   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29667 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29668 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29669   echo $ECHO_N "(cached) $ECHO_C" >&6
29670 else
29671   ac_check_lib_save_LIBS=$LIBS
29672 LIBS="-lsec  $LIBS"
29673 cat >conftest.$ac_ext <<_ACEOF
29674 /* confdefs.h.  */
29675 _ACEOF
29676 cat confdefs.h >>conftest.$ac_ext
29677 cat >>conftest.$ac_ext <<_ACEOF
29678 /* end confdefs.h.  */
29679
29680 /* Override any gcc2 internal prototype to avoid an error.  */
29681 #ifdef __cplusplus
29682 extern "C"
29683 #endif
29684 /* We use char because int might match the return type of a gcc2
29685    builtin and then its argument prototype would still apply.  */
29686 char acltotext ();
29687 int
29688 main ()
29689 {
29690 acltotext ();
29691   ;
29692   return 0;
29693 }
29694 _ACEOF
29695 rm -f conftest.$ac_objext conftest$ac_exeext
29696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29697   (eval $ac_link) 2>conftest.er1
29698   ac_status=$?
29699   grep -v '^ *+' conftest.er1 >conftest.err
29700   rm -f conftest.er1
29701   cat conftest.err >&5
29702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29703   (exit $ac_status); } &&
29704          { ac_try='test -z "$ac_c_werror_flag"
29705                          || test ! -s conftest.err'
29706   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29707   (eval $ac_try) 2>&5
29708   ac_status=$?
29709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710   (exit $ac_status); }; } &&
29711          { ac_try='test -s conftest$ac_exeext'
29712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29713   (eval $ac_try) 2>&5
29714   ac_status=$?
29715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716   (exit $ac_status); }; }; then
29717   ac_cv_lib_sec_acltotext=yes
29718 else
29719   echo "$as_me: failed program was:" >&5
29720 sed 's/^/| /' conftest.$ac_ext >&5
29721
29722 ac_cv_lib_sec_acltotext=no
29723 fi
29724 rm -f conftest.err conftest.$ac_objext \
29725       conftest$ac_exeext conftest.$ac_ext
29726 LIBS=$ac_check_lib_save_LIBS
29727 fi
29728 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29729 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29730 if test $ac_cv_lib_sec_acltotext = yes; then
29731   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29732 fi
29733
29734
29735 fi
29736
29737
29738 fi
29739
29740 if test $have_acl = yes; then
29741    cat >>confdefs.h <<\_ACEOF
29742 #define HAVE_ACL 1
29743 _ACEOF
29744
29745 fi
29746
29747 PTHREAD_LIB=""
29748 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29749 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29750 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29751   echo $ECHO_N "(cached) $ECHO_C" >&6
29752 else
29753   ac_check_lib_save_LIBS=$LIBS
29754 LIBS="-lpthread  $LIBS"
29755 cat >conftest.$ac_ext <<_ACEOF
29756 /* confdefs.h.  */
29757 _ACEOF
29758 cat confdefs.h >>conftest.$ac_ext
29759 cat >>conftest.$ac_ext <<_ACEOF
29760 /* end confdefs.h.  */
29761
29762 /* Override any gcc2 internal prototype to avoid an error.  */
29763 #ifdef __cplusplus
29764 extern "C"
29765 #endif
29766 /* We use char because int might match the return type of a gcc2
29767    builtin and then its argument prototype would still apply.  */
29768 char pthread_create ();
29769 int
29770 main ()
29771 {
29772 pthread_create ();
29773   ;
29774   return 0;
29775 }
29776 _ACEOF
29777 rm -f conftest.$ac_objext conftest$ac_exeext
29778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29779   (eval $ac_link) 2>conftest.er1
29780   ac_status=$?
29781   grep -v '^ *+' conftest.er1 >conftest.err
29782   rm -f conftest.er1
29783   cat conftest.err >&5
29784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29785   (exit $ac_status); } &&
29786          { ac_try='test -z "$ac_c_werror_flag"
29787                          || test ! -s conftest.err'
29788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29789   (eval $ac_try) 2>&5
29790   ac_status=$?
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); }; } &&
29793          { ac_try='test -s conftest$ac_exeext'
29794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29795   (eval $ac_try) 2>&5
29796   ac_status=$?
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); }; }; then
29799   ac_cv_lib_pthread_pthread_create=yes
29800 else
29801   echo "$as_me: failed program was:" >&5
29802 sed 's/^/| /' conftest.$ac_ext >&5
29803
29804 ac_cv_lib_pthread_pthread_create=no
29805 fi
29806 rm -f conftest.err conftest.$ac_objext \
29807       conftest$ac_exeext conftest.$ac_ext
29808 LIBS=$ac_check_lib_save_LIBS
29809 fi
29810 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29811 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29812 if test $ac_cv_lib_pthread_pthread_create = yes; then
29813   PTHREAD_LIB="-lpthread"
29814 else
29815   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29816 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29817 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29818   echo $ECHO_N "(cached) $ECHO_C" >&6
29819 else
29820   ac_check_lib_save_LIBS=$LIBS
29821 LIBS="-lpthreads  $LIBS"
29822 cat >conftest.$ac_ext <<_ACEOF
29823 /* confdefs.h.  */
29824 _ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h.  */
29828
29829 /* Override any gcc2 internal prototype to avoid an error.  */
29830 #ifdef __cplusplus
29831 extern "C"
29832 #endif
29833 /* We use char because int might match the return type of a gcc2
29834    builtin and then its argument prototype would still apply.  */
29835 char pthread_create ();
29836 int
29837 main ()
29838 {
29839 pthread_create ();
29840   ;
29841   return 0;
29842 }
29843 _ACEOF
29844 rm -f conftest.$ac_objext conftest$ac_exeext
29845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29846   (eval $ac_link) 2>conftest.er1
29847   ac_status=$?
29848   grep -v '^ *+' conftest.er1 >conftest.err
29849   rm -f conftest.er1
29850   cat conftest.err >&5
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); } &&
29853          { ac_try='test -z "$ac_c_werror_flag"
29854                          || test ! -s conftest.err'
29855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29856   (eval $ac_try) 2>&5
29857   ac_status=$?
29858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29859   (exit $ac_status); }; } &&
29860          { ac_try='test -s conftest$ac_exeext'
29861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29862   (eval $ac_try) 2>&5
29863   ac_status=$?
29864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865   (exit $ac_status); }; }; then
29866   ac_cv_lib_pthreads_pthread_create=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871 ac_cv_lib_pthreads_pthread_create=no
29872 fi
29873 rm -f conftest.err conftest.$ac_objext \
29874       conftest$ac_exeext conftest.$ac_ext
29875 LIBS=$ac_check_lib_save_LIBS
29876 fi
29877 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29878 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29879 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29880   PTHREAD_LIB="-lpthreads"
29881 else
29882   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29883 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29884 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29885   echo $ECHO_N "(cached) $ECHO_C" >&6
29886 else
29887   ac_check_lib_save_LIBS=$LIBS
29888 LIBS="-lc_r  $LIBS"
29889 cat >conftest.$ac_ext <<_ACEOF
29890 /* confdefs.h.  */
29891 _ACEOF
29892 cat confdefs.h >>conftest.$ac_ext
29893 cat >>conftest.$ac_ext <<_ACEOF
29894 /* end confdefs.h.  */
29895
29896 /* Override any gcc2 internal prototype to avoid an error.  */
29897 #ifdef __cplusplus
29898 extern "C"
29899 #endif
29900 /* We use char because int might match the return type of a gcc2
29901    builtin and then its argument prototype would still apply.  */
29902 char pthread_create ();
29903 int
29904 main ()
29905 {
29906 pthread_create ();
29907   ;
29908   return 0;
29909 }
29910 _ACEOF
29911 rm -f conftest.$ac_objext conftest$ac_exeext
29912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29913   (eval $ac_link) 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } &&
29920          { ac_try='test -z "$ac_c_werror_flag"
29921                          || test ! -s conftest.err'
29922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29923   (eval $ac_try) 2>&5
29924   ac_status=$?
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); }; } &&
29927          { ac_try='test -s conftest$ac_exeext'
29928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29929   (eval $ac_try) 2>&5
29930   ac_status=$?
29931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932   (exit $ac_status); }; }; then
29933   ac_cv_lib_c_r_pthread_create=yes
29934 else
29935   echo "$as_me: failed program was:" >&5
29936 sed 's/^/| /' conftest.$ac_ext >&5
29937
29938 ac_cv_lib_c_r_pthread_create=no
29939 fi
29940 rm -f conftest.err conftest.$ac_objext \
29941       conftest$ac_exeext conftest.$ac_ext
29942 LIBS=$ac_check_lib_save_LIBS
29943 fi
29944 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29945 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29946 if test $ac_cv_lib_c_r_pthread_create = yes; then
29947   PTHREAD_LIB="-lc_r"
29948 else
29949   echo "$as_me:$LINENO: checking for pthread_create" >&5
29950 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29951 if test "${ac_cv_func_pthread_create+set}" = set; then
29952   echo $ECHO_N "(cached) $ECHO_C" >&6
29953 else
29954   cat >conftest.$ac_ext <<_ACEOF
29955 /* confdefs.h.  */
29956 _ACEOF
29957 cat confdefs.h >>conftest.$ac_ext
29958 cat >>conftest.$ac_ext <<_ACEOF
29959 /* end confdefs.h.  */
29960 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29961    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29962 #define pthread_create innocuous_pthread_create
29963
29964 /* System header to define __stub macros and hopefully few prototypes,
29965     which can conflict with char pthread_create (); below.
29966     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29967     <limits.h> exists even on freestanding compilers.  */
29968
29969 #ifdef __STDC__
29970 # include <limits.h>
29971 #else
29972 # include <assert.h>
29973 #endif
29974
29975 #undef pthread_create
29976
29977 /* Override any gcc2 internal prototype to avoid an error.  */
29978 #ifdef __cplusplus
29979 extern "C"
29980 {
29981 #endif
29982 /* We use char because int might match the return type of a gcc2
29983    builtin and then its argument prototype would still apply.  */
29984 char pthread_create ();
29985 /* The GNU C library defines this for functions which it implements
29986     to always fail with ENOSYS.  Some functions are actually named
29987     something starting with __ and the normal name is an alias.  */
29988 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29989 choke me
29990 #else
29991 char (*f) () = pthread_create;
29992 #endif
29993 #ifdef __cplusplus
29994 }
29995 #endif
29996
29997 int
29998 main ()
29999 {
30000 return f != pthread_create;
30001   ;
30002   return 0;
30003 }
30004 _ACEOF
30005 rm -f conftest.$ac_objext conftest$ac_exeext
30006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30007   (eval $ac_link) 2>conftest.er1
30008   ac_status=$?
30009   grep -v '^ *+' conftest.er1 >conftest.err
30010   rm -f conftest.er1
30011   cat conftest.err >&5
30012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30013   (exit $ac_status); } &&
30014          { ac_try='test -z "$ac_c_werror_flag"
30015                          || test ! -s conftest.err'
30016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017   (eval $ac_try) 2>&5
30018   ac_status=$?
30019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020   (exit $ac_status); }; } &&
30021          { ac_try='test -s conftest$ac_exeext'
30022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023   (eval $ac_try) 2>&5
30024   ac_status=$?
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); }; }; then
30027   ac_cv_func_pthread_create=yes
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032 ac_cv_func_pthread_create=no
30033 fi
30034 rm -f conftest.err conftest.$ac_objext \
30035       conftest$ac_exeext conftest.$ac_ext
30036 fi
30037 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30038 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30039
30040
30041 fi
30042
30043
30044 fi
30045
30046
30047 fi
30048
30049
30050
30051 cat >>confdefs.h <<\_ACEOF
30052 #define FDLIBS 1
30053 _ACEOF
30054
30055
30056
30057 CFLAGS=${CFLAGS--O}
30058
30059 if test x$have_gcc = xyes ; then
30060    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30061    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30062 fi
30063 LDFLAGS=${LDFLAGS--O}
30064 DB_LIBS="${SQL_LFLAGS}"
30065 CPPFLAGS="$CPPFLAGS"
30066 CFLAGS="$CFLAGS"
30067
30068
30069
30070
30071
30072
30073
30074
30075
30076
30077
30078
30079
30080
30081
30082
30083 OBJLIST=
30084
30085
30086 lld="lld"
30087 llu="llu"
30088
30089 WCFLAGS=
30090 WLDFLAGS=
30091
30092 #
30093 # Finally we set appropriate distribution specific
30094 #  variables and defaults
30095 #
30096 # PFILES are platform specific files
30097 PFILES="platforms/Makefile"
30098 PSCMD="ps -e"
30099 WIN32=
30100 MACOSX=
30101 hostname=`uname -n | cut -d '.' -f 1`
30102 if test x${hostname} = x ; then
30103   hostname="localhost"
30104 fi
30105 case "$DISTNAME" in
30106 aix)
30107         DISTVER=`uname -r`
30108         PSCMD="ps -e -o pid,comm"
30109         PFILES="${PFILES} \
30110            platforms/aix/Makefile"
30111         TAPEDRIVE="/dev/rmt0.1"
30112   ;;
30113 alpha)
30114         DISTVER=`uname -r`
30115         PTHREAD_LIB="-lpthread -lexc"
30116         if test "${CC}" = "gcc" ; then
30117            lld="lld"
30118            llu="llu"
30119         else
30120            lld="ld"
30121            llu="lu"
30122         fi
30123         TAPEDRIVE="/dev/nrmt0"
30124   ;;
30125 bsdi)
30126         DISTVER=`uname -a |awk '{print $3}'`
30127         TAPEDRIVE="/dev/nrmt0"
30128         PTHREAD_LIB="-pthread"
30129         CFLAGS="${CFLAGS} -pthread"
30130         PSCMD="ps -ax -o pid,command"
30131         lld="qd"
30132         llu="qu"
30133         PFILES="${PFILES} \
30134             platforms/bsdi/Makefile \
30135             platforms/bsdi/bacula-fd \
30136             platforms/bsdi/bacula-sd \
30137             platforms/bsdi/bacula-dir"
30138         largefile_support="yes"
30139   ;;
30140 cygwin)
30141         DISTVER=`uname -a |awk '{print $3}'`
30142         TAPEDRIVE="/dev/nrst0"
30143         WIN32=win32
30144         WCFLAGS="-mwindows"
30145         WLDFLAGS="-mwindows"
30146   ;;
30147 darwin)
30148         DISTVER=`uname -r`
30149         TAPEDRIVE="/dev/nst0"
30150         PSCMD="ps -e -o pid,command"
30151         MACOSX=macosx
30152         PFILES="${PFILES} \
30153            platforms/darwin/Makefile"
30154   ;;
30155 debian)
30156         DISTVER=`cat /etc/debian_version`
30157         TAPEDRIVE="/dev/nrst0"
30158         PSCMD="ps -e -o pid,command"
30159   ;;
30160 freebsd)
30161         DISTVER=`uname -a |awk '{print $3}'`
30162         VER=`echo $DISTVER | cut -c 1`
30163         if test x$VER = x4 ; then
30164            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30165            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30166         fi
30167         lld="qd"
30168         llu="qu"
30169         TAPEDRIVE="/dev/nrsa0"
30170         PSCMD="ps -ax -o pid,command"
30171         PFILES="${PFILES} \
30172             platforms/freebsd/Makefile \
30173             platforms/freebsd/bacula-fd \
30174             platforms/freebsd/bacula-sd \
30175             platforms/freebsd/bacula-dir"
30176         largefile_support="yes"
30177   ;;
30178 hpux)
30179         PSCMD="UNIX95=1; ps -e -o pid,comm"
30180         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30181         DISTVER=`uname -r`
30182         TAPEDRIVE="/dev/rmt/0hnb"
30183         PTHREAD_LIB="-lpthread"
30184         cat >>confdefs.h <<\_ACEOF
30185 #define _INCLUDE_LONGLONG 1
30186 _ACEOF
30187
30188   ;;
30189 irix)
30190         DISTVER=`uname -r`
30191         TAPEDRIVE="/dev/rmt/0cbn"
30192         PSCMD="ps -e -o pid,comm"
30193         PFILES="${PFILES} \
30194             platforms/irix/Makefile \
30195             platforms/irix/bacula-fd \
30196             platforms/irix/bacula-sd \
30197             platforms/irix/bacula-dir"
30198   ;;
30199 netbsd)
30200         DISTVER=`uname -a |awk '{print $3}'`
30201         lld="qd"
30202         llu="qu"
30203         TAPEDRIVE="/dev/nrst0"
30204         PSCMD="ps -ax -o pid,command"
30205         PTHREAD_LIB="-pthread"
30206         CFLAGS="${CFLAGS} -pthread"
30207   ;;
30208 openbsd)
30209         DISTVER=`uname -a |awk '{print $3}'`
30210         lld="qd"
30211         llu="qu"
30212         TAPEDRIVE="/dev/nrst0"
30213         PSCMD="ps -ax -o pid,command"
30214         PTHREAD_LIB="-pthread"
30215         CFLAGS="${CFLAGS} -pthread"
30216         PFILES="${PFILES} \
30217             platforms/openbsd/Makefile \
30218             platforms/openbsd/bacula-fd \
30219             platforms/openbsd/bacula-sd \
30220             platforms/openbsd/bacula-dir"
30221   ;;
30222 redhat)
30223         if test -f /etc/whitebox-release ; then
30224            f=/etc/whitebox-release
30225         else
30226            f=/etc/redhat-release
30227         fi
30228         if test `cat $f | grep release |\
30229                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30230            DISTVER="Enterprise "`cat $f | grep release |\
30231                     cut -f 6 -d ' '`
30232         else
30233             DISTVER=`cat /etc/redhat-release | grep release |\
30234                      cut -f 5 -d ' '`
30235         fi
30236         TAPEDRIVE="/dev/nst0"
30237         PSCMD="ps -e -o pid,command"
30238         PFILES="${PFILES} \
30239             platforms/redhat/Makefile \
30240             platforms/redhat/bacula-fd \
30241             platforms/redhat/bacula-sd \
30242             platforms/redhat/bacula-dir \
30243             platforms/redhat/bacula.spec \
30244             "
30245   ;;
30246 mandrake)
30247         DISTVER=`cat /etc/mandrake-release | grep release |\
30248            cut -f 5 -d ' '`
30249         TAPEDRIVE="/dev/nst0"
30250         PSCMD="ps -e -o pid,command"
30251         PFILES="${PFILES} \
30252             platforms/mandrake/Makefile \
30253             platforms/mandrake/bacula-fd \
30254             platforms/mandrake/bacula-sd \
30255             platforms/mandrake/bacula-dir \
30256             platforms/mandrake/bacula.spec \
30257             "
30258   ;;
30259 gentoo)
30260         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30261         TAPEDRIVE="/dev/nst0"
30262         PSCMD="ps -e -o pid,command"
30263         PFILES="${PFILES} \
30264             platforms/gentoo/Makefile \
30265          platforms/gentoo/bacula-init \
30266             platforms/gentoo/bacula-fd \
30267             platforms/gentoo/bacula-sd \
30268             platforms/gentoo/bacula-dir"
30269   ;;
30270 slackware)
30271         DISTVER=`cat /etc/slackware-version`
30272         TAPEDRIVE="/dev/nst0"
30273         PSCMD="ps -e -o pid,command"
30274         PFILES="${PFILES} \
30275             platforms/slackware/Makefile \
30276             platforms/slackware/rc.bacula-fd \
30277             platforms/slackware/rc.bacula-sd \
30278             platforms/slackware/rc.bacula-dir\
30279             platforms/slackware/functions.bacula"
30280   ;;
30281 solaris)
30282         DISTVER=`uname -r`
30283         TAPEDRIVE="/dev/rmt/0cbn"
30284         PSCMD="ps -e -o pid,comm"
30285         PFILES="${PFILES} \
30286             platforms/solaris/Makefile \
30287             platforms/solaris/bacula-fd \
30288             platforms/solaris/bacula-sd \
30289             platforms/solaris/bacula-dir"
30290         if test x$DISTVER = x5.6 ; then
30291             cat >>confdefs.h <<\_ACEOF
30292 #define HAVE_OLD_SOCKOPT 1
30293 _ACEOF
30294
30295         fi
30296         LIBS="$LIBS -lresolv"
30297   ;;
30298 suse)
30299         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30300             cut -f 3 -d ' '`
30301         TAPEDRIVE="/dev/nst0"
30302         PSCMD="ps -e -o pid,command"
30303         PFILES="${PFILES} \
30304             platforms/suse/Makefile \
30305             platforms/suse/bacula-fd \
30306             platforms/suse/bacula-sd \
30307             platforms/suse/bacula-dir \
30308             platforms/suse/bacula \
30309             platforms/suse/bacula.spec"
30310   ;;
30311 suse5)
30312         DISTNAME=suse
30313         DISTVER=5.x
30314         TAPEDRIVE="/dev/nst0"
30315         PSCMD="ps -e -o pid,command"
30316         PFILES="${PFILES} \
30317             platforms/suse/Makefile \
30318             platforms/suse/bacula-fd \
30319             platforms/suse/bacula-sd \
30320             platforms/suse/bacula-dir"
30321   ;;
30322 unknown)
30323         DISTVER=unknown
30324         TAPEDRIVE="/dev/nst0"
30325   ;;
30326 *)
30327   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30328   ;;
30329 esac
30330
30331
30332
30333 LIBS="$PTHREAD_LIB $LIBS"
30334
30335 cat >>confdefs.h <<_ACEOF
30336 #define lld "$lld"
30337 _ACEOF
30338
30339 cat >>confdefs.h <<_ACEOF
30340 #define llu "$llu"
30341 _ACEOF
30342
30343
30344
30345
30346
30347
30348
30349
30350 MCOMMON=./autoconf/Make.common
30351
30352
30353 if test "x${subsysdir}" = "x${sbindir}" ; then
30354    echo " "
30355    echo " "
30356    echo "You have set both --sbindir and --with-subsys-dir"
30357    echo "  equal to: ${subsysdir} "
30358    echo "This is not permitted. Please reconfigure."
30359    echo " "
30360    echo "Aborting configuration ..."
30361    echo " "
30362    echo " "
30363    exit 1
30364 fi
30365
30366                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
30367           ac_config_commands="$ac_config_commands default"
30368 cat >confcache <<\_ACEOF
30369 # This file is a shell script that caches the results of configure
30370 # tests run on this system so they can be shared between configure
30371 # scripts and configure runs, see configure's option --config-cache.
30372 # It is not useful on other systems.  If it contains results you don't
30373 # want to keep, you may remove or edit it.
30374 #
30375 # config.status only pays attention to the cache file if you give it
30376 # the --recheck option to rerun configure.
30377 #
30378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30380 # following values.
30381
30382 _ACEOF
30383
30384 # The following way of writing the cache mishandles newlines in values,
30385 # but we know of no workaround that is simple, portable, and efficient.
30386 # So, don't put newlines in cache variables' values.
30387 # Ultrix sh set writes to stderr and can't be redirected directly,
30388 # and sets the high bit in the cache file unless we assign to the vars.
30389 {
30390   (set) 2>&1 |
30391     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30392     *ac_space=\ *)
30393       # `set' does not quote correctly, so add quotes (double-quote
30394       # substitution turns \\\\ into \\, and sed turns \\ into \).
30395       sed -n \
30396         "s/'/'\\\\''/g;
30397           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30398       ;;
30399     *)
30400       # `set' quotes correctly as required by POSIX, so do not add quotes.
30401       sed -n \
30402         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30403       ;;
30404     esac;
30405 } |
30406   sed '
30407      t clear
30408      : clear
30409      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30410      t end
30411      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30412      : end' >>confcache
30413 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30414   if test -w $cache_file; then
30415     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30416     cat confcache >$cache_file
30417   else
30418     echo "not updating unwritable cache $cache_file"
30419   fi
30420 fi
30421 rm -f confcache
30422
30423 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30424 # Let make expand exec_prefix.
30425 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30426
30427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30429 # trailing colons and then remove the whole line if VPATH becomes empty
30430 # (actually we leave an empty line to preserve line numbers).
30431 if test "x$srcdir" = x.; then
30432   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30433 s/:*\$(srcdir):*/:/;
30434 s/:*\${srcdir}:*/:/;
30435 s/:*@srcdir@:*/:/;
30436 s/^\([^=]*=[     ]*\):*/\1/;
30437 s/:*$//;
30438 s/^[^=]*=[       ]*$//;
30439 }'
30440 fi
30441
30442 DEFS=-DHAVE_CONFIG_H
30443
30444 ac_libobjs=
30445 ac_ltlibobjs=
30446 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30447   # 1. Remove the extension, and $U if already installed.
30448   ac_i=`echo "$ac_i" |
30449          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30450   # 2. Add them.
30451   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30452   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30453 done
30454 LIBOBJS=$ac_libobjs
30455
30456 LTLIBOBJS=$ac_ltlibobjs
30457
30458
30459
30460 : ${CONFIG_STATUS=./config.status}
30461 ac_clean_files_save=$ac_clean_files
30462 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30463 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30464 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30465 cat >$CONFIG_STATUS <<_ACEOF
30466 #! $SHELL
30467 # Generated by $as_me.
30468 # Run this file to recreate the current configuration.
30469 # Compiler output produced by configure, useful for debugging
30470 # configure, is in config.log if it exists.
30471
30472 debug=false
30473 ac_cs_recheck=false
30474 ac_cs_silent=false
30475 SHELL=\${CONFIG_SHELL-$SHELL}
30476 _ACEOF
30477
30478 cat >>$CONFIG_STATUS <<\_ACEOF
30479 ## --------------------- ##
30480 ## M4sh Initialization.  ##
30481 ## --------------------- ##
30482
30483 # Be Bourne compatible
30484 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30485   emulate sh
30486   NULLCMD=:
30487   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30488   # is contrary to our usage.  Disable this feature.
30489   alias -g '${1+"$@"}'='"$@"'
30490 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30491   set -o posix
30492 fi
30493 DUALCASE=1; export DUALCASE # for MKS sh
30494
30495 # Support unset when possible.
30496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30497   as_unset=unset
30498 else
30499   as_unset=false
30500 fi
30501
30502
30503 # Work around bugs in pre-3.0 UWIN ksh.
30504 $as_unset ENV MAIL MAILPATH
30505 PS1='$ '
30506 PS2='> '
30507 PS4='+ '
30508
30509 # NLS nuisances.
30510 for as_var in \
30511   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30512   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30513   LC_TELEPHONE LC_TIME
30514 do
30515   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30516     eval $as_var=C; export $as_var
30517   else
30518     $as_unset $as_var
30519   fi
30520 done
30521
30522 # Required to use basename.
30523 if expr a : '\(a\)' >/dev/null 2>&1; then
30524   as_expr=expr
30525 else
30526   as_expr=false
30527 fi
30528
30529 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30530   as_basename=basename
30531 else
30532   as_basename=false
30533 fi
30534
30535
30536 # Name of the executable.
30537 as_me=`$as_basename "$0" ||
30538 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30539          X"$0" : 'X\(//\)$' \| \
30540          X"$0" : 'X\(/\)$' \| \
30541          .     : '\(.\)' 2>/dev/null ||
30542 echo X/"$0" |
30543     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30544           /^X\/\(\/\/\)$/{ s//\1/; q; }
30545           /^X\/\(\/\).*/{ s//\1/; q; }
30546           s/.*/./; q'`
30547
30548
30549 # PATH needs CR, and LINENO needs CR and PATH.
30550 # Avoid depending upon Character Ranges.
30551 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30552 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30553 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30554 as_cr_digits='0123456789'
30555 as_cr_alnum=$as_cr_Letters$as_cr_digits
30556
30557 # The user is always right.
30558 if test "${PATH_SEPARATOR+set}" != set; then
30559   echo "#! /bin/sh" >conf$$.sh
30560   echo  "exit 0"   >>conf$$.sh
30561   chmod +x conf$$.sh
30562   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30563     PATH_SEPARATOR=';'
30564   else
30565     PATH_SEPARATOR=:
30566   fi
30567   rm -f conf$$.sh
30568 fi
30569
30570
30571   as_lineno_1=$LINENO
30572   as_lineno_2=$LINENO
30573   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30574   test "x$as_lineno_1" != "x$as_lineno_2" &&
30575   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30576   # Find who we are.  Look in the path if we contain no path at all
30577   # relative or not.
30578   case $0 in
30579     *[\\/]* ) as_myself=$0 ;;
30580     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30581 for as_dir in $PATH
30582 do
30583   IFS=$as_save_IFS
30584   test -z "$as_dir" && as_dir=.
30585   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30586 done
30587
30588        ;;
30589   esac
30590   # We did not find ourselves, most probably we were run as `sh COMMAND'
30591   # in which case we are not to be found in the path.
30592   if test "x$as_myself" = x; then
30593     as_myself=$0
30594   fi
30595   if test ! -f "$as_myself"; then
30596     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30597 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30598    { (exit 1); exit 1; }; }
30599   fi
30600   case $CONFIG_SHELL in
30601   '')
30602     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30603 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30604 do
30605   IFS=$as_save_IFS
30606   test -z "$as_dir" && as_dir=.
30607   for as_base in sh bash ksh sh5; do
30608          case $as_dir in
30609          /*)
30610            if ("$as_dir/$as_base" -c '
30611   as_lineno_1=$LINENO
30612   as_lineno_2=$LINENO
30613   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30614   test "x$as_lineno_1" != "x$as_lineno_2" &&
30615   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30616              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30617              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30618              CONFIG_SHELL=$as_dir/$as_base
30619              export CONFIG_SHELL
30620              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30621            fi;;
30622          esac
30623        done
30624 done
30625 ;;
30626   esac
30627
30628   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30629   # uniformly replaced by the line number.  The first 'sed' inserts a
30630   # line-number line before each line; the second 'sed' does the real
30631   # work.  The second script uses 'N' to pair each line-number line
30632   # with the numbered line, and appends trailing '-' during
30633   # substitution so that $LINENO is not a special case at line end.
30634   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30635   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30636   sed '=' <$as_myself |
30637     sed '
30638       N
30639       s,$,-,
30640       : loop
30641       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30642       t loop
30643       s,-$,,
30644       s,^['$as_cr_digits']*\n,,
30645     ' >$as_me.lineno &&
30646   chmod +x $as_me.lineno ||
30647     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30648 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30649    { (exit 1); exit 1; }; }
30650
30651   # Don't try to exec as it changes $[0], causing all sort of problems
30652   # (the dirname of $[0] is not the place where we might find the
30653   # original and so on.  Autoconf is especially sensible to this).
30654   . ./$as_me.lineno
30655   # Exit status is that of the last command.
30656   exit
30657 }
30658
30659
30660 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30661   *c*,-n*) ECHO_N= ECHO_C='
30662 ' ECHO_T='      ' ;;
30663   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30664   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30665 esac
30666
30667 if expr a : '\(a\)' >/dev/null 2>&1; then
30668   as_expr=expr
30669 else
30670   as_expr=false
30671 fi
30672
30673 rm -f conf$$ conf$$.exe conf$$.file
30674 echo >conf$$.file
30675 if ln -s conf$$.file conf$$ 2>/dev/null; then
30676   # We could just check for DJGPP; but this test a) works b) is more generic
30677   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30678   if test -f conf$$.exe; then
30679     # Don't use ln at all; we don't have any links
30680     as_ln_s='cp -p'
30681   else
30682     as_ln_s='ln -s'
30683   fi
30684 elif ln conf$$.file conf$$ 2>/dev/null; then
30685   as_ln_s=ln
30686 else
30687   as_ln_s='cp -p'
30688 fi
30689 rm -f conf$$ conf$$.exe conf$$.file
30690
30691 if mkdir -p . 2>/dev/null; then
30692   as_mkdir_p=:
30693 else
30694   test -d ./-p && rmdir ./-p
30695   as_mkdir_p=false
30696 fi
30697
30698 as_executable_p="test -f"
30699
30700 # Sed expression to map a string onto a valid CPP name.
30701 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30702
30703 # Sed expression to map a string onto a valid variable name.
30704 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30705
30706
30707 # IFS
30708 # We need space, tab and new line, in precisely that order.
30709 as_nl='
30710 '
30711 IFS="   $as_nl"
30712
30713 # CDPATH.
30714 $as_unset CDPATH
30715
30716 exec 6>&1
30717
30718 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30719 # report actual input values of CONFIG_FILES etc. instead of their
30720 # values after options handling.  Logging --version etc. is OK.
30721 exec 5>>config.log
30722 {
30723   echo
30724   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30725 ## Running $as_me. ##
30726 _ASBOX
30727 } >&5
30728 cat >&5 <<_CSEOF
30729
30730 This file was extended by $as_me, which was
30731 generated by GNU Autoconf 2.59.  Invocation command line was
30732
30733   CONFIG_FILES    = $CONFIG_FILES
30734   CONFIG_HEADERS  = $CONFIG_HEADERS
30735   CONFIG_LINKS    = $CONFIG_LINKS
30736   CONFIG_COMMANDS = $CONFIG_COMMANDS
30737   $ $0 $@
30738
30739 _CSEOF
30740 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30741 echo >&5
30742 _ACEOF
30743
30744 # Files that config.status was made for.
30745 if test -n "$ac_config_files"; then
30746   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30747 fi
30748
30749 if test -n "$ac_config_headers"; then
30750   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30751 fi
30752
30753 if test -n "$ac_config_links"; then
30754   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30755 fi
30756
30757 if test -n "$ac_config_commands"; then
30758   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30759 fi
30760
30761 cat >>$CONFIG_STATUS <<\_ACEOF
30762
30763 ac_cs_usage="\
30764 \`$as_me' instantiates files from templates according to the
30765 current configuration.
30766
30767 Usage: $0 [OPTIONS] [FILE]...
30768
30769   -h, --help       print this help, then exit
30770   -V, --version    print version number, then exit
30771   -q, --quiet      do not print progress messages
30772   -d, --debug      don't remove temporary files
30773       --recheck    update $as_me by reconfiguring in the same conditions
30774   --file=FILE[:TEMPLATE]
30775                    instantiate the configuration file FILE
30776   --header=FILE[:TEMPLATE]
30777                    instantiate the configuration header FILE
30778
30779 Configuration files:
30780 $config_files
30781
30782 Configuration headers:
30783 $config_headers
30784
30785 Configuration commands:
30786 $config_commands
30787
30788 Report bugs to <bug-autoconf@gnu.org>."
30789 _ACEOF
30790
30791 cat >>$CONFIG_STATUS <<_ACEOF
30792 ac_cs_version="\\
30793 config.status
30794 configured by $0, generated by GNU Autoconf 2.59,
30795   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30796
30797 Copyright (C) 2003 Free Software Foundation, Inc.
30798 This config.status script is free software; the Free Software Foundation
30799 gives unlimited permission to copy, distribute and modify it."
30800 srcdir=$srcdir
30801 INSTALL="$INSTALL"
30802 _ACEOF
30803
30804 cat >>$CONFIG_STATUS <<\_ACEOF
30805 # If no file are specified by the user, then we need to provide default
30806 # value.  By we need to know if files were specified by the user.
30807 ac_need_defaults=:
30808 while test $# != 0
30809 do
30810   case $1 in
30811   --*=*)
30812     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30813     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30814     ac_shift=:
30815     ;;
30816   -*)
30817     ac_option=$1
30818     ac_optarg=$2
30819     ac_shift=shift
30820     ;;
30821   *) # This is not an option, so the user has probably given explicit
30822      # arguments.
30823      ac_option=$1
30824      ac_need_defaults=false;;
30825   esac
30826
30827   case $ac_option in
30828   # Handling of the options.
30829 _ACEOF
30830 cat >>$CONFIG_STATUS <<\_ACEOF
30831   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30832     ac_cs_recheck=: ;;
30833   --version | --vers* | -V )
30834     echo "$ac_cs_version"; exit 0 ;;
30835   --he | --h)
30836     # Conflict between --help and --header
30837     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30838 Try \`$0 --help' for more information." >&5
30839 echo "$as_me: error: ambiguous option: $1
30840 Try \`$0 --help' for more information." >&2;}
30841    { (exit 1); exit 1; }; };;
30842   --help | --hel | -h )
30843     echo "$ac_cs_usage"; exit 0 ;;
30844   --debug | --d* | -d )
30845     debug=: ;;
30846   --file | --fil | --fi | --f )
30847     $ac_shift
30848     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30849     ac_need_defaults=false;;
30850   --header | --heade | --head | --hea )
30851     $ac_shift
30852     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30853     ac_need_defaults=false;;
30854   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30855   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30856     ac_cs_silent=: ;;
30857
30858   # This is an error.
30859   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30860 Try \`$0 --help' for more information." >&5
30861 echo "$as_me: error: unrecognized option: $1
30862 Try \`$0 --help' for more information." >&2;}
30863    { (exit 1); exit 1; }; } ;;
30864
30865   *) ac_config_targets="$ac_config_targets $1" ;;
30866
30867   esac
30868   shift
30869 done
30870
30871 ac_configure_extra_args=
30872
30873 if $ac_cs_silent; then
30874   exec 6>/dev/null
30875   ac_configure_extra_args="$ac_configure_extra_args --silent"
30876 fi
30877
30878 _ACEOF
30879 cat >>$CONFIG_STATUS <<_ACEOF
30880 if \$ac_cs_recheck; then
30881   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30882   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30883 fi
30884
30885 _ACEOF
30886
30887 cat >>$CONFIG_STATUS <<_ACEOF
30888 #
30889 # INIT-COMMANDS section.
30890 #
30891
30892 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30893     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30894     # from automake.
30895     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30896     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30897     LINGUAS="${LINGUAS-%UNSET%}"
30898
30899
30900 _ACEOF
30901
30902
30903
30904 cat >>$CONFIG_STATUS <<\_ACEOF
30905 for ac_config_target in $ac_config_targets
30906 do
30907   case "$ac_config_target" in
30908   # Handling of arguments.
30909   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30910   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30911   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30912   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30913   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30914   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30915   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30916   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30917   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30918   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30919   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30920   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30921   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30922   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30923   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30924   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30925   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30926   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30927   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30928   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30929   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30930   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30931   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30932   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30933   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30934   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30935   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30936   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30937   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30938   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30939   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30940   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30941   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30942   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30943   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30944   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30945   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30946   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30947   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30948   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30949   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30950   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30951   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30952   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30953   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30954   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30955   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30956   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30957   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30958   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30959   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30960   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30961   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30962   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30963   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30964   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30965   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30966   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30967   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30968   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30969   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30970   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30971   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30972   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30973   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30974   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30975   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30976   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30977   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30978   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30979   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30980   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30981   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30982   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30983   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30984   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30985   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30986   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30987   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30988   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30989   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30990   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30991   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30992   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30993   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30994   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30995   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30996   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30997   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30998   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30999   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31000   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31001   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31002   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31003   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31004   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31005   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31006   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31007   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31008   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31009   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31010   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31011   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31012   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31013   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31014   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31015   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31016 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31017    { (exit 1); exit 1; }; };;
31018   esac
31019 done
31020
31021 # If the user did not use the arguments to specify the items to instantiate,
31022 # then the envvar interface is used.  Set only those that are not.
31023 # We use the long form for the default assignment because of an extremely
31024 # bizarre bug on SunOS 4.1.3.
31025 if $ac_need_defaults; then
31026   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31027   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31028   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31029 fi
31030
31031 # Have a temporary directory for convenience.  Make it in the build tree
31032 # simply because there is no reason to put it here, and in addition,
31033 # creating and moving files from /tmp can sometimes cause problems.
31034 # Create a temporary directory, and hook for its removal unless debugging.
31035 $debug ||
31036 {
31037   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31038   trap '{ (exit 1); exit 1; }' 1 2 13 15
31039 }
31040
31041 # Create a (secure) tmp directory for tmp files.
31042
31043 {
31044   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31045   test -n "$tmp" && test -d "$tmp"
31046 }  ||
31047 {
31048   tmp=./confstat$$-$RANDOM
31049   (umask 077 && mkdir $tmp)
31050 } ||
31051 {
31052    echo "$me: cannot create a temporary directory in ." >&2
31053    { (exit 1); exit 1; }
31054 }
31055
31056 _ACEOF
31057
31058 cat >>$CONFIG_STATUS <<_ACEOF
31059
31060 #
31061 # CONFIG_FILES section.
31062 #
31063
31064 # No need to generate the scripts if there are no CONFIG_FILES.
31065 # This happens for instance when ./config.status config.h
31066 if test -n "\$CONFIG_FILES"; then
31067   # Protect against being on the right side of a sed subst in config.status.
31068   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31069    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31070 s,@SHELL@,$SHELL,;t t
31071 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31072 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31073 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31074 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31075 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31076 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31077 s,@exec_prefix@,$exec_prefix,;t t
31078 s,@prefix@,$prefix,;t t
31079 s,@program_transform_name@,$program_transform_name,;t t
31080 s,@bindir@,$bindir,;t t
31081 s,@sbindir@,$sbindir,;t t
31082 s,@libexecdir@,$libexecdir,;t t
31083 s,@datadir@,$datadir,;t t
31084 s,@sysconfdir@,$sysconfdir,;t t
31085 s,@sharedstatedir@,$sharedstatedir,;t t
31086 s,@localstatedir@,$localstatedir,;t t
31087 s,@libdir@,$libdir,;t t
31088 s,@includedir@,$includedir,;t t
31089 s,@oldincludedir@,$oldincludedir,;t t
31090 s,@infodir@,$infodir,;t t
31091 s,@mandir@,$mandir,;t t
31092 s,@build_alias@,$build_alias,;t t
31093 s,@host_alias@,$host_alias,;t t
31094 s,@target_alias@,$target_alias,;t t
31095 s,@DEFS@,$DEFS,;t t
31096 s,@ECHO_C@,$ECHO_C,;t t
31097 s,@ECHO_N@,$ECHO_N,;t t
31098 s,@ECHO_T@,$ECHO_T,;t t
31099 s,@LIBS@,$LIBS,;t t
31100 s,@BUILD_DIR@,$BUILD_DIR,;t t
31101 s,@TOP_DIR@,$TOP_DIR,;t t
31102 s,@TRUEPRG@,$TRUEPRG,;t t
31103 s,@FALSEPRG@,$FALSEPRG,;t t
31104 s,@VERSION@,$VERSION,;t t
31105 s,@DATE@,$DATE,;t t
31106 s,@LSMDATE@,$LSMDATE,;t t
31107 s,@CC@,$CC,;t t
31108 s,@CFLAGS@,$CFLAGS,;t t
31109 s,@LDFLAGS@,$LDFLAGS,;t t
31110 s,@CPPFLAGS@,$CPPFLAGS,;t t
31111 s,@ac_ct_CC@,$ac_ct_CC,;t t
31112 s,@EXEEXT@,$EXEEXT,;t t
31113 s,@OBJEXT@,$OBJEXT,;t t
31114 s,@CXX@,$CXX,;t t
31115 s,@CXXFLAGS@,$CXXFLAGS,;t t
31116 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31117 s,@CPP@,$CPP,;t t
31118 s,@EGREP@,$EGREP,;t t
31119 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31120 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31121 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31122 s,@RANLIB@,$RANLIB,;t t
31123 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31124 s,@MV@,$MV,;t t
31125 s,@RM@,$RM,;t t
31126 s,@CP@,$CP,;t t
31127 s,@SED@,$SED,;t t
31128 s,@ECHO@,$ECHO,;t t
31129 s,@CMP@,$CMP,;t t
31130 s,@TBL@,$TBL,;t t
31131 s,@AR@,$AR,;t t
31132 s,@OPENSSL@,$OPENSSL,;t t
31133 s,@MTX@,$MTX,;t t
31134 s,@DD@,$DD,;t t
31135 s,@MKISOFS@,$MKISOFS,;t t
31136 s,@PYTHON@,$PYTHON,;t t
31137 s,@GROWISOFS@,$GROWISOFS,;t t
31138 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31139 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31140 s,@PKGCONFIG@,$PKGCONFIG,;t t
31141 s,@WXCONFIG@,$WXCONFIG,;t t
31142 s,@WXFLAGS@,$WXFLAGS,;t t
31143 s,@CDRECORD@,$CDRECORD,;t t
31144 s,@PIDOF@,$PIDOF,;t t
31145 s,@AWK@,$AWK,;t t
31146 s,@ARFLAGS@,$ARFLAGS,;t t
31147 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31148 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31149 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31150 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31151 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31152 s,@build@,$build,;t t
31153 s,@build_cpu@,$build_cpu,;t t
31154 s,@build_vendor@,$build_vendor,;t t
31155 s,@build_os@,$build_os,;t t
31156 s,@host@,$host,;t t
31157 s,@host_cpu@,$host_cpu,;t t
31158 s,@host_vendor@,$host_vendor,;t t
31159 s,@host_os@,$host_os,;t t
31160 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31161 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31162 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31163 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31164 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31165 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31166 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31167 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31168 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31169 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31170 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31171 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31172 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31173 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31174 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31175 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31176 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31177 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31178 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31179 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31180 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31181 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31182 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31183 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31184 s,@SET_MAKE@,$SET_MAKE,;t t
31185 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31186 s,@USE_NLS@,$USE_NLS,;t t
31187 s,@MSGFMT@,$MSGFMT,;t t
31188 s,@GMSGFMT@,$GMSGFMT,;t t
31189 s,@XGETTEXT@,$XGETTEXT,;t t
31190 s,@MSGMERGE@,$MSGMERGE,;t t
31191 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31192 s,@LIBICONV@,$LIBICONV,;t t
31193 s,@LTLIBICONV@,$LTLIBICONV,;t t
31194 s,@INTLLIBS@,$INTLLIBS,;t t
31195 s,@LIBINTL@,$LIBINTL,;t t
31196 s,@LTLIBINTL@,$LTLIBINTL,;t t
31197 s,@POSUB@,$POSUB,;t t
31198 s,@GLIBC2@,$GLIBC2,;t t
31199 s,@ALLOCA@,$ALLOCA,;t t
31200 s,@GLIBC21@,$GLIBC21,;t t
31201 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31202 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31203 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31204 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31205 s,@INTLBISON@,$INTLBISON,;t t
31206 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31207 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31208 s,@CATOBJEXT@,$CATOBJEXT,;t t
31209 s,@DATADIRNAME@,$DATADIRNAME,;t t
31210 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31211 s,@GENCAT@,$GENCAT,;t t
31212 s,@INTLOBJS@,$INTLOBJS,;t t
31213 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31214 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31215 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31216 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31217 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31218 s,@GNOME_DIR@,$GNOME_DIR,;t t
31219 s,@BAT_DIR@,$BAT_DIR,;t t
31220 s,@QWT_INC@,$QWT_INC,;t t
31221 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31222 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31223 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31224 s,@WX_DIR@,$WX_DIR,;t t
31225 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31226 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31227 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31228 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31229 s,@STATIC_FD@,$STATIC_FD,;t t
31230 s,@STATIC_SD@,$STATIC_SD,;t t
31231 s,@STATIC_DIR@,$STATIC_DIR,;t t
31232 s,@STATIC_CONS@,$STATIC_CONS,;t t
31233 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31234 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31235 s,@ALL_DIRS@,$ALL_DIRS,;t t
31236 s,@DIRD_DIR@,$DIRD_DIR,;t t
31237 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31238 s,@STORED_DIR@,$STORED_DIR,;t t
31239 s,@CONS_INC@,$CONS_INC,;t t
31240 s,@CONS_OBJ@,$CONS_OBJ,;t t
31241 s,@CONS_SRC@,$CONS_SRC,;t t
31242 s,@CONS_LIBS@,$CONS_LIBS,;t t
31243 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31244 s,@READLINE_SRC@,$READLINE_SRC,;t t
31245 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31246 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31247 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31248 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31249 s,@working_dir@,$working_dir,;t t
31250 s,@scriptdir@,$scriptdir,;t t
31251 s,@dump_email@,$dump_email,;t t
31252 s,@job_email@,$job_email,;t t
31253 s,@smtp_host@,$smtp_host,;t t
31254 s,@piddir@,$piddir,;t t
31255 s,@subsysdir@,$subsysdir,;t t
31256 s,@baseport@,$baseport,;t t
31257 s,@dir_port@,$dir_port,;t t
31258 s,@fd_port@,$fd_port,;t t
31259 s,@sd_port@,$sd_port,;t t
31260 s,@dir_password@,$dir_password,;t t
31261 s,@fd_password@,$fd_password,;t t
31262 s,@sd_password@,$sd_password,;t t
31263 s,@mon_dir_password@,$mon_dir_password,;t t
31264 s,@mon_fd_password@,$mon_fd_password,;t t
31265 s,@mon_sd_password@,$mon_sd_password,;t t
31266 s,@db_name@,$db_name,;t t
31267 s,@db_user@,$db_user,;t t
31268 s,@dir_user@,$dir_user,;t t
31269 s,@dir_group@,$dir_group,;t t
31270 s,@sd_user@,$sd_user,;t t
31271 s,@sd_group@,$sd_group,;t t
31272 s,@fd_user@,$fd_user,;t t
31273 s,@fd_group@,$fd_group,;t t
31274 s,@SBINPERM@,$SBINPERM,;t t
31275 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31276 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31277 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31278 s,@cats@,$cats,;t t
31279 s,@DB_TYPE@,$DB_TYPE,;t t
31280 s,@GETCONF@,$GETCONF,;t t
31281 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31282 s,@X_CFLAGS@,$X_CFLAGS,;t t
31283 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31284 s,@X_LIBS@,$X_LIBS,;t t
31285 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31286 s,@LIBOBJS@,$LIBOBJS,;t t
31287 s,@FDLIBS@,$FDLIBS,;t t
31288 s,@DEBUG@,$DEBUG,;t t
31289 s,@DINCLUDE@,$DINCLUDE,;t t
31290 s,@DLIB@,$DLIB,;t t
31291 s,@DB_LIBS@,$DB_LIBS,;t t
31292 s,@WCFLAGS@,$WCFLAGS,;t t
31293 s,@WLDFLAGS@,$WLDFLAGS,;t t
31294 s,@WRAPLIBS@,$WRAPLIBS,;t t
31295 s,@OBJLIST@,$OBJLIST,;t t
31296 s,@hostname@,$hostname,;t t
31297 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31298 s,@PSCMD@,$PSCMD,;t t
31299 s,@WIN32@,$WIN32,;t t
31300 s,@MACOSX@,$MACOSX,;t t
31301 s,@DISTNAME@,$DISTNAME,;t t
31302 s,@DISTVER@,$DISTVER,;t t
31303 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31304 /@MCOMMON@/r $MCOMMON
31305 s,@MCOMMON@,,;t t
31306 CEOF
31307
31308 _ACEOF
31309
31310   cat >>$CONFIG_STATUS <<\_ACEOF
31311   # Split the substitutions into bite-sized pieces for seds with
31312   # small command number limits, like on Digital OSF/1 and HP-UX.
31313   ac_max_sed_lines=48
31314   ac_sed_frag=1 # Number of current file.
31315   ac_beg=1 # First line for current file.
31316   ac_end=$ac_max_sed_lines # Line after last line for current file.
31317   ac_more_lines=:
31318   ac_sed_cmds=
31319   while $ac_more_lines; do
31320     if test $ac_beg -gt 1; then
31321       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31322     else
31323       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31324     fi
31325     if test ! -s $tmp/subs.frag; then
31326       ac_more_lines=false
31327     else
31328       # The purpose of the label and of the branching condition is to
31329       # speed up the sed processing (if there are no `@' at all, there
31330       # is no need to browse any of the substitutions).
31331       # These are the two extra sed commands mentioned above.
31332       (echo ':t
31333   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31334       if test -z "$ac_sed_cmds"; then
31335         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31336       else
31337         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31338       fi
31339       ac_sed_frag=`expr $ac_sed_frag + 1`
31340       ac_beg=$ac_end
31341       ac_end=`expr $ac_end + $ac_max_sed_lines`
31342     fi
31343   done
31344   if test -z "$ac_sed_cmds"; then
31345     ac_sed_cmds=cat
31346   fi
31347 fi # test -n "$CONFIG_FILES"
31348
31349 _ACEOF
31350 cat >>$CONFIG_STATUS <<\_ACEOF
31351 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31352   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31353   case $ac_file in
31354   - | *:- | *:-:* ) # input from stdin
31355         cat >$tmp/stdin
31356         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31357         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31358   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31359         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31360   * )   ac_file_in=$ac_file.in ;;
31361   esac
31362
31363   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31364   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31366          X"$ac_file" : 'X\(//\)[^/]' \| \
31367          X"$ac_file" : 'X\(//\)$' \| \
31368          X"$ac_file" : 'X\(/\)' \| \
31369          .     : '\(.\)' 2>/dev/null ||
31370 echo X"$ac_file" |
31371     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31372           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31373           /^X\(\/\/\)$/{ s//\1/; q; }
31374           /^X\(\/\).*/{ s//\1/; q; }
31375           s/.*/./; q'`
31376   { if $as_mkdir_p; then
31377     mkdir -p "$ac_dir"
31378   else
31379     as_dir="$ac_dir"
31380     as_dirs=
31381     while test ! -d "$as_dir"; do
31382       as_dirs="$as_dir $as_dirs"
31383       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31385          X"$as_dir" : 'X\(//\)[^/]' \| \
31386          X"$as_dir" : 'X\(//\)$' \| \
31387          X"$as_dir" : 'X\(/\)' \| \
31388          .     : '\(.\)' 2>/dev/null ||
31389 echo X"$as_dir" |
31390     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31391           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31392           /^X\(\/\/\)$/{ s//\1/; q; }
31393           /^X\(\/\).*/{ s//\1/; q; }
31394           s/.*/./; q'`
31395     done
31396     test ! -n "$as_dirs" || mkdir $as_dirs
31397   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31398 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31399    { (exit 1); exit 1; }; }; }
31400
31401   ac_builddir=.
31402
31403 if test "$ac_dir" != .; then
31404   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31405   # A "../" for each directory in $ac_dir_suffix.
31406   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31407 else
31408   ac_dir_suffix= ac_top_builddir=
31409 fi
31410
31411 case $srcdir in
31412   .)  # No --srcdir option.  We are building in place.
31413     ac_srcdir=.
31414     if test -z "$ac_top_builddir"; then
31415        ac_top_srcdir=.
31416     else
31417        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31418     fi ;;
31419   [\\/]* | ?:[\\/]* )  # Absolute path.
31420     ac_srcdir=$srcdir$ac_dir_suffix;
31421     ac_top_srcdir=$srcdir ;;
31422   *) # Relative path.
31423     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31424     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31425 esac
31426
31427 # Do not use `cd foo && pwd` to compute absolute paths, because
31428 # the directories may not exist.
31429 case `pwd` in
31430 .) ac_abs_builddir="$ac_dir";;
31431 *)
31432   case "$ac_dir" in
31433   .) ac_abs_builddir=`pwd`;;
31434   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31435   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31436   esac;;
31437 esac
31438 case $ac_abs_builddir in
31439 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31440 *)
31441   case ${ac_top_builddir}. in
31442   .) ac_abs_top_builddir=$ac_abs_builddir;;
31443   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31444   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31445   esac;;
31446 esac
31447 case $ac_abs_builddir in
31448 .) ac_abs_srcdir=$ac_srcdir;;
31449 *)
31450   case $ac_srcdir in
31451   .) ac_abs_srcdir=$ac_abs_builddir;;
31452   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31453   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31454   esac;;
31455 esac
31456 case $ac_abs_builddir in
31457 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31458 *)
31459   case $ac_top_srcdir in
31460   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31461   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31462   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31463   esac;;
31464 esac
31465
31466
31467   case $INSTALL in
31468   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31469   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31470   esac
31471
31472   if test x"$ac_file" != x-; then
31473     { echo "$as_me:$LINENO: creating $ac_file" >&5
31474 echo "$as_me: creating $ac_file" >&6;}
31475     rm -f "$ac_file"
31476   fi
31477   # Let's still pretend it is `configure' which instantiates (i.e., don't
31478   # use $as_me), people would be surprised to read:
31479   #    /* config.h.  Generated by config.status.  */
31480   if test x"$ac_file" = x-; then
31481     configure_input=
31482   else
31483     configure_input="$ac_file.  "
31484   fi
31485   configure_input=$configure_input"Generated from `echo $ac_file_in |
31486                                      sed 's,.*/,,'` by configure."
31487
31488   # First look for the input files in the build tree, otherwise in the
31489   # src tree.
31490   ac_file_inputs=`IFS=:
31491     for f in $ac_file_in; do
31492       case $f in
31493       -) echo $tmp/stdin ;;
31494       [\\/$]*)
31495          # Absolute (can't be DOS-style, as IFS=:)
31496          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31497 echo "$as_me: error: cannot find input file: $f" >&2;}
31498    { (exit 1); exit 1; }; }
31499          echo "$f";;
31500       *) # Relative
31501          if test -f "$f"; then
31502            # Build tree
31503            echo "$f"
31504          elif test -f "$srcdir/$f"; then
31505            # Source tree
31506            echo "$srcdir/$f"
31507          else
31508            # /dev/null tree
31509            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31510 echo "$as_me: error: cannot find input file: $f" >&2;}
31511    { (exit 1); exit 1; }; }
31512          fi;;
31513       esac
31514     done` || { (exit 1); exit 1; }
31515 _ACEOF
31516 cat >>$CONFIG_STATUS <<_ACEOF
31517   sed "$ac_vpsub
31518 $extrasub
31519 _ACEOF
31520 cat >>$CONFIG_STATUS <<\_ACEOF
31521 :t
31522 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31523 s,@configure_input@,$configure_input,;t t
31524 s,@srcdir@,$ac_srcdir,;t t
31525 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31526 s,@top_srcdir@,$ac_top_srcdir,;t t
31527 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31528 s,@builddir@,$ac_builddir,;t t
31529 s,@abs_builddir@,$ac_abs_builddir,;t t
31530 s,@top_builddir@,$ac_top_builddir,;t t
31531 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31532 s,@INSTALL@,$ac_INSTALL,;t t
31533 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31534   rm -f $tmp/stdin
31535   if test x"$ac_file" != x-; then
31536     mv $tmp/out $ac_file
31537   else
31538     cat $tmp/out
31539     rm -f $tmp/out
31540   fi
31541
31542 done
31543 _ACEOF
31544 cat >>$CONFIG_STATUS <<\_ACEOF
31545
31546 #
31547 # CONFIG_HEADER section.
31548 #
31549
31550 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31551 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31552 #
31553 # ac_d sets the value in "#define NAME VALUE" lines.
31554 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31555 ac_dB='[         ].*$,\1#\2'
31556 ac_dC=' '
31557 ac_dD=',;t'
31558 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31559 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31560 ac_uB='$,\1#\2define\3'
31561 ac_uC=' '
31562 ac_uD=',;t'
31563
31564 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31565   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31566   case $ac_file in
31567   - | *:- | *:-:* ) # input from stdin
31568         cat >$tmp/stdin
31569         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31570         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31571   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31572         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31573   * )   ac_file_in=$ac_file.in ;;
31574   esac
31575
31576   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31577 echo "$as_me: creating $ac_file" >&6;}
31578
31579   # First look for the input files in the build tree, otherwise in the
31580   # src tree.
31581   ac_file_inputs=`IFS=:
31582     for f in $ac_file_in; do
31583       case $f in
31584       -) echo $tmp/stdin ;;
31585       [\\/$]*)
31586          # Absolute (can't be DOS-style, as IFS=:)
31587          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31588 echo "$as_me: error: cannot find input file: $f" >&2;}
31589    { (exit 1); exit 1; }; }
31590          # Do quote $f, to prevent DOS paths from being IFS'd.
31591          echo "$f";;
31592       *) # Relative
31593          if test -f "$f"; then
31594            # Build tree
31595            echo "$f"
31596          elif test -f "$srcdir/$f"; then
31597            # Source tree
31598            echo "$srcdir/$f"
31599          else
31600            # /dev/null tree
31601            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31602 echo "$as_me: error: cannot find input file: $f" >&2;}
31603    { (exit 1); exit 1; }; }
31604          fi;;
31605       esac
31606     done` || { (exit 1); exit 1; }
31607   # Remove the trailing spaces.
31608   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31609
31610 _ACEOF
31611
31612 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31613 # `conftest.undefs', that substitutes the proper values into
31614 # config.h.in to produce config.h.  The first handles `#define'
31615 # templates, and the second `#undef' templates.
31616 # And first: Protect against being on the right side of a sed subst in
31617 # config.status.  Protect against being in an unquoted here document
31618 # in config.status.
31619 rm -f conftest.defines conftest.undefs
31620 # Using a here document instead of a string reduces the quoting nightmare.
31621 # Putting comments in sed scripts is not portable.
31622 #
31623 # `end' is used to avoid that the second main sed command (meant for
31624 # 0-ary CPP macros) applies to n-ary macro definitions.
31625 # See the Autoconf documentation for `clear'.
31626 cat >confdef2sed.sed <<\_ACEOF
31627 s/[\\&,]/\\&/g
31628 s,[\\$`],\\&,g
31629 t clear
31630 : clear
31631 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31632 t end
31633 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31634 : end
31635 _ACEOF
31636 # If some macros were called several times there might be several times
31637 # the same #defines, which is useless.  Nevertheless, we may not want to
31638 # sort them, since we want the *last* AC-DEFINE to be honored.
31639 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31640 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31641 rm -f confdef2sed.sed
31642
31643 # This sed command replaces #undef with comments.  This is necessary, for
31644 # example, in the case of _POSIX_SOURCE, which is predefined and required
31645 # on some systems where configure will not decide to define it.
31646 cat >>conftest.undefs <<\_ACEOF
31647 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31648 _ACEOF
31649
31650 # Break up conftest.defines because some shells have a limit on the size
31651 # of here documents, and old seds have small limits too (100 cmds).
31652 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31653 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31654 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31655 echo '  :' >>$CONFIG_STATUS
31656 rm -f conftest.tail
31657 while grep . conftest.defines >/dev/null
31658 do
31659   # Write a limited-size here document to $tmp/defines.sed.
31660   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31661   # Speed up: don't consider the non `#define' lines.
31662   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31663   # Work around the forget-to-reset-the-flag bug.
31664   echo 't clr' >>$CONFIG_STATUS
31665   echo ': clr' >>$CONFIG_STATUS
31666   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31667   echo 'CEOF
31668   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31669   rm -f $tmp/in
31670   mv $tmp/out $tmp/in
31671 ' >>$CONFIG_STATUS
31672   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31673   rm -f conftest.defines
31674   mv conftest.tail conftest.defines
31675 done
31676 rm -f conftest.defines
31677 echo '  fi # grep' >>$CONFIG_STATUS
31678 echo >>$CONFIG_STATUS
31679
31680 # Break up conftest.undefs because some shells have a limit on the size
31681 # of here documents, and old seds have small limits too (100 cmds).
31682 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31683 rm -f conftest.tail
31684 while grep . conftest.undefs >/dev/null
31685 do
31686   # Write a limited-size here document to $tmp/undefs.sed.
31687   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31688   # Speed up: don't consider the non `#undef'
31689   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31690   # Work around the forget-to-reset-the-flag bug.
31691   echo 't clr' >>$CONFIG_STATUS
31692   echo ': clr' >>$CONFIG_STATUS
31693   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31694   echo 'CEOF
31695   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31696   rm -f $tmp/in
31697   mv $tmp/out $tmp/in
31698 ' >>$CONFIG_STATUS
31699   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31700   rm -f conftest.undefs
31701   mv conftest.tail conftest.undefs
31702 done
31703 rm -f conftest.undefs
31704
31705 cat >>$CONFIG_STATUS <<\_ACEOF
31706   # Let's still pretend it is `configure' which instantiates (i.e., don't
31707   # use $as_me), people would be surprised to read:
31708   #    /* config.h.  Generated by config.status.  */
31709   if test x"$ac_file" = x-; then
31710     echo "/* Generated by configure.  */" >$tmp/config.h
31711   else
31712     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31713   fi
31714   cat $tmp/in >>$tmp/config.h
31715   rm -f $tmp/in
31716   if test x"$ac_file" != x-; then
31717     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31718       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31719 echo "$as_me: $ac_file is unchanged" >&6;}
31720     else
31721       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31722 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31723          X"$ac_file" : 'X\(//\)[^/]' \| \
31724          X"$ac_file" : 'X\(//\)$' \| \
31725          X"$ac_file" : 'X\(/\)' \| \
31726          .     : '\(.\)' 2>/dev/null ||
31727 echo X"$ac_file" |
31728     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31729           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31730           /^X\(\/\/\)$/{ s//\1/; q; }
31731           /^X\(\/\).*/{ s//\1/; q; }
31732           s/.*/./; q'`
31733       { if $as_mkdir_p; then
31734     mkdir -p "$ac_dir"
31735   else
31736     as_dir="$ac_dir"
31737     as_dirs=
31738     while test ! -d "$as_dir"; do
31739       as_dirs="$as_dir $as_dirs"
31740       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31742          X"$as_dir" : 'X\(//\)[^/]' \| \
31743          X"$as_dir" : 'X\(//\)$' \| \
31744          X"$as_dir" : 'X\(/\)' \| \
31745          .     : '\(.\)' 2>/dev/null ||
31746 echo X"$as_dir" |
31747     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31748           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31749           /^X\(\/\/\)$/{ s//\1/; q; }
31750           /^X\(\/\).*/{ s//\1/; q; }
31751           s/.*/./; q'`
31752     done
31753     test ! -n "$as_dirs" || mkdir $as_dirs
31754   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31755 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31756    { (exit 1); exit 1; }; }; }
31757
31758       rm -f $ac_file
31759       mv $tmp/config.h $ac_file
31760     fi
31761   else
31762     cat $tmp/config.h
31763     rm -f $tmp/config.h
31764   fi
31765 done
31766 _ACEOF
31767 cat >>$CONFIG_STATUS <<\_ACEOF
31768
31769 #
31770 # CONFIG_COMMANDS section.
31771 #
31772 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31773   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31774   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31775   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31776 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31777          X"$ac_dest" : 'X\(//\)[^/]' \| \
31778          X"$ac_dest" : 'X\(//\)$' \| \
31779          X"$ac_dest" : 'X\(/\)' \| \
31780          .     : '\(.\)' 2>/dev/null ||
31781 echo X"$ac_dest" |
31782     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31783           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31784           /^X\(\/\/\)$/{ s//\1/; q; }
31785           /^X\(\/\).*/{ s//\1/; q; }
31786           s/.*/./; q'`
31787   { if $as_mkdir_p; then
31788     mkdir -p "$ac_dir"
31789   else
31790     as_dir="$ac_dir"
31791     as_dirs=
31792     while test ! -d "$as_dir"; do
31793       as_dirs="$as_dir $as_dirs"
31794       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31796          X"$as_dir" : 'X\(//\)[^/]' \| \
31797          X"$as_dir" : 'X\(//\)$' \| \
31798          X"$as_dir" : 'X\(/\)' \| \
31799          .     : '\(.\)' 2>/dev/null ||
31800 echo X"$as_dir" |
31801     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31802           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31803           /^X\(\/\/\)$/{ s//\1/; q; }
31804           /^X\(\/\).*/{ s//\1/; q; }
31805           s/.*/./; q'`
31806     done
31807     test ! -n "$as_dirs" || mkdir $as_dirs
31808   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31809 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31810    { (exit 1); exit 1; }; }; }
31811
31812   ac_builddir=.
31813
31814 if test "$ac_dir" != .; then
31815   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31816   # A "../" for each directory in $ac_dir_suffix.
31817   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31818 else
31819   ac_dir_suffix= ac_top_builddir=
31820 fi
31821
31822 case $srcdir in
31823   .)  # No --srcdir option.  We are building in place.
31824     ac_srcdir=.
31825     if test -z "$ac_top_builddir"; then
31826        ac_top_srcdir=.
31827     else
31828        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31829     fi ;;
31830   [\\/]* | ?:[\\/]* )  # Absolute path.
31831     ac_srcdir=$srcdir$ac_dir_suffix;
31832     ac_top_srcdir=$srcdir ;;
31833   *) # Relative path.
31834     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31835     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31836 esac
31837
31838 # Do not use `cd foo && pwd` to compute absolute paths, because
31839 # the directories may not exist.
31840 case `pwd` in
31841 .) ac_abs_builddir="$ac_dir";;
31842 *)
31843   case "$ac_dir" in
31844   .) ac_abs_builddir=`pwd`;;
31845   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31846   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31847   esac;;
31848 esac
31849 case $ac_abs_builddir in
31850 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31851 *)
31852   case ${ac_top_builddir}. in
31853   .) ac_abs_top_builddir=$ac_abs_builddir;;
31854   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31855   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31856   esac;;
31857 esac
31858 case $ac_abs_builddir in
31859 .) ac_abs_srcdir=$ac_srcdir;;
31860 *)
31861   case $ac_srcdir in
31862   .) ac_abs_srcdir=$ac_abs_builddir;;
31863   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31864   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31865   esac;;
31866 esac
31867 case $ac_abs_builddir in
31868 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31869 *)
31870   case $ac_top_srcdir in
31871   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31872   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31873   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31874   esac;;
31875 esac
31876
31877
31878   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31879 echo "$as_me: executing $ac_dest commands" >&6;}
31880   case $ac_dest in
31881     default-1 )
31882     for ac_file in $CONFIG_FILES; do
31883       # Support "outfile[:infile[:infile...]]"
31884       case "$ac_file" in
31885         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31886       esac
31887       # PO directories have a Makefile.in generated from Makefile.in.in.
31888       case "$ac_file" in */Makefile.in)
31889         # Adjust a relative srcdir.
31890         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31891         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31892         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31893         # In autoconf-2.13 it is called $ac_given_srcdir.
31894         # In autoconf-2.50 it is called $srcdir.
31895         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31896         case "$ac_given_srcdir" in
31897           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31898           /*) top_srcdir="$ac_given_srcdir" ;;
31899           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31900         esac
31901         # Treat a directory as a PO directory if and only if it has a
31902         # POTFILES.in file. This allows packages to have multiple PO
31903         # directories under different names or in different locations.
31904         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31905           rm -f "$ac_dir/POTFILES"
31906           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31907           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31908           POMAKEFILEDEPS="POTFILES.in"
31909           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31910           # on $ac_dir but don't depend on user-specified configuration
31911           # parameters.
31912           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31913             # The LINGUAS file contains the set of available languages.
31914             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31915               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31916             fi
31917             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31918             # Hide the ALL_LINGUAS assigment from automake.
31919             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31920             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31921           else
31922             # The set of available languages was given in configure.in.
31923             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31924           fi
31925           # Compute POFILES
31926           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31927           # Compute UPDATEPOFILES
31928           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31929           # Compute DUMMYPOFILES
31930           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31931           # Compute GMOFILES
31932           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31933           case "$ac_given_srcdir" in
31934             .) srcdirpre= ;;
31935             *) srcdirpre='$(srcdir)/' ;;
31936           esac
31937           POFILES=
31938           UPDATEPOFILES=
31939           DUMMYPOFILES=
31940           GMOFILES=
31941           for lang in $ALL_LINGUAS; do
31942             POFILES="$POFILES $srcdirpre$lang.po"
31943             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31944             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31945             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31946           done
31947           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31948           # environment variable.
31949           INST_LINGUAS=
31950           if test -n "$ALL_LINGUAS"; then
31951             for presentlang in $ALL_LINGUAS; do
31952               useit=no
31953               if test "%UNSET%" != "$LINGUAS"; then
31954                 desiredlanguages="$LINGUAS"
31955               else
31956                 desiredlanguages="$ALL_LINGUAS"
31957               fi
31958               for desiredlang in $desiredlanguages; do
31959                 # Use the presentlang catalog if desiredlang is
31960                 #   a. equal to presentlang, or
31961                 #   b. a variant of presentlang (because in this case,
31962                 #      presentlang can be used as a fallback for messages
31963                 #      which are not translated in the desiredlang catalog).
31964                 case "$desiredlang" in
31965                   "$presentlang"*) useit=yes;;
31966                 esac
31967               done
31968               if test $useit = yes; then
31969                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31970               fi
31971             done
31972           fi
31973           CATALOGS=
31974           if test -n "$INST_LINGUAS"; then
31975             for lang in $INST_LINGUAS; do
31976               CATALOGS="$CATALOGS $lang.gmo"
31977             done
31978           fi
31979           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31980           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"
31981           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31982             if test -f "$f"; then
31983               case "$f" in
31984                 *.orig | *.bak | *~) ;;
31985                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31986               esac
31987             fi
31988           done
31989         fi
31990         ;;
31991       esac
31992     done ;;
31993     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31994  ;;
31995   esac
31996 done
31997 _ACEOF
31998
31999 cat >>$CONFIG_STATUS <<\_ACEOF
32000
32001 { (exit 0); exit 0; }
32002 _ACEOF
32003 chmod +x $CONFIG_STATUS
32004 ac_clean_files=$ac_clean_files_save
32005
32006
32007 # configure is writing to config.log, and then calls config.status.
32008 # config.status does its own redirection, appending to config.log.
32009 # Unfortunately, on DOS this fails, as config.log is still kept open
32010 # by configure, so config.status won't be able to write to it; its
32011 # output is simply discarded.  So we exec the FD to /dev/null,
32012 # effectively closing config.log, so it can be properly (re)opened and
32013 # appended to by config.status.  When coming back to configure, we
32014 # need to make the FD available again.
32015 if test "$no_create" != yes; then
32016   ac_cs_success=:
32017   ac_config_status_args=
32018   test "$silent" = yes &&
32019     ac_config_status_args="$ac_config_status_args --quiet"
32020   exec 5>/dev/null
32021   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32022   exec 5>>config.log
32023   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32024   # would make configure fail if this is the last instruction.
32025   $ac_cs_success || { (exit 1); exit 1; }
32026 fi
32027
32028
32029 cd scripts
32030 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32031 chmod 755 dvd-handler dvd-simulator
32032 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32033 cd ..
32034
32035 c=src/cats
32036
32037 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32038 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32039
32040 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32041 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32042
32043 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32044 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32045
32046 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32047 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32048
32049 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32050 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32051
32052 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32053 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32054
32055 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32056 chmod 755 $c/sqlite
32057 chmod 755 $c/mysql
32058
32059 chmod 755 src/win32/build-depkgs-mingw32
32060
32061 if test "${support_bat}" = "yes" ; then
32062   cd src/qt-console
32063   chmod 755 install_conf_file build-depkgs-qt-console
32064   echo "Creating bat Makefile"
32065   qmake
32066   cd ${BUILD_DIR}
32067 fi
32068
32069
32070 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32071    largefile_support="yes"
32072 fi
32073
32074 #
32075 # A whole lot of hand springs to get the compiler version.
32076 #  This is because gcc changed the output in version 3.0
32077 #
32078 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32079 if test "x${CCVERSION}" = "x" ; then
32080   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32081 fi
32082 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32083 if test x"${CXXVERSION}" = x ; then
32084   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32085 fi
32086
32087 if test "x${subsysdir}" = "x${sbindir}" ; then
32088    echo " "
32089    echo " "
32090    echo "You have set --sbindir and --with-subsys-dir"
32091    echo "  both equal to: ${subsysdir} "
32092    echo "  This is not permitted. Please reconfigure."
32093    echo " "
32094    echo "Aborting configuration ..."
32095    echo " "
32096    echo " "
32097    exit 1
32098 fi
32099
32100 if test "x${db_type}" = "xInternal" ; then
32101    echo " "
32102    echo " "
32103    echo "You have not specified either --enable-client-only or one of the"
32104    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32105    echo "  This is not permitted. Please reconfigure."
32106    echo " "
32107    echo "Aborting the configuration ..."
32108    echo " "
32109    echo " "
32110    exit 1
32111 fi
32112
32113 echo "
32114 Configuration on `date`:
32115
32116   Host:                       $host -- ${DISTNAME} ${DISTVER}
32117   Bacula version:             ${VERSION} (${DATE})
32118   Source code location:       ${srcdir}
32119   Install binaries:           ${sbindir}
32120   Install config files:       ${sysconfdir}
32121   Scripts directory:          ${scriptdir}
32122   Working directory:          ${working_dir}
32123   PID directory:              ${piddir}
32124   Subsys directory:           ${subsysdir}
32125   Man directory:              ${mandir}
32126   Data directory:             ${datadir}
32127   C Compiler:                 ${CC} ${CCVERSION}
32128   C++ Compiler:               ${CXX} ${CXXVERSION}
32129   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32130   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32131   Libraries:                  ${LIBS}
32132   Statically Linked Tools:    ${support_static_tools}
32133   Statically Linked FD:       ${support_static_fd}
32134   Statically Linked SD:       ${support_static_sd}
32135   Statically Linked DIR:      ${support_static_dir}
32136   Statically Linked CONS:     ${support_static_cons}
32137   Database type:              ${db_type}
32138   Database lib:               ${DB_LIBS}
32139   Database name:              ${db_name}
32140   Database user:              ${db_user}
32141
32142   Job Output Email:           ${job_email}
32143   Traceback Email:            ${dump_email}
32144   SMTP Host Address:          ${smtp_host}
32145
32146   Director Port:              ${dir_port}
32147   File daemon Port:           ${fd_port}
32148   Storage daemon Port:        ${sd_port}
32149
32150   Director User:              ${dir_user}
32151   Director Group:             ${dir_group}
32152   Storage Daemon User:        ${sd_user}
32153   Storage DaemonGroup:        ${sd_group}
32154   File Daemon User:           ${fd_user}
32155   File Daemon Group:          ${fd_group}
32156
32157   SQL binaries Directory      ${SQL_BINDIR}
32158
32159   Large file support:         $largefile_support
32160   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32161   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32162   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32163   TLS support:                ${support_tls}
32164   Encryption support:         ${support_crypto}
32165   ZLIB support:               ${have_zlib}
32166   enable-smartalloc:          ${support_smartalloc}
32167   bat support:                ${support_bat} ${QWT_LDFLAGS}
32168   enable-gnome:               ${support_gnome} ${gnome_version}
32169   enable-bwx-console:         ${support_wx_console} ${wx_version}
32170   enable-tray-monitor:        ${support_tray_monitor}
32171   client-only:                ${build_client_only}
32172   build-dird:                 ${build_dird}
32173   build-stored:               ${build_stored}
32174   ACL support:                ${have_acl}
32175   Python support:             ${support_python} ${PYTHON_LIBS}
32176   Batch insert enabled:       ${support_batch_insert}
32177
32178   " > config.out
32179
32180 cat config.out