]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Mark build-depkgs-mingw3 executable in configure process.
[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 WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895   --with-included-gettext use the GNU gettext library included here
896  --with-readline=DIR             specify readline library directory
897
898   --with-python=DIR       Include Python support.  DIR is the Python base
899                           install directory, default is to search through
900                           a number of common places for the Python files.
901   --with-tcp-wrappers=DIR        enable tcpwrappers support
902   --with-openssl[=DIR]
903                           Include OpenSSL support. DIR is the OpenSSL base
904   --with-working-dir=PATH        specify path of Bacula working directory
905   --with-scriptdir=PATH    specify path of Bacula scripts directory
906   --with-dump-email=EMAIL        dump email address
907   --with-job-email=EMAIL         job output email address
908   --with-smtp-host=HOST          SMTP mail host address
909   --with-pid-dir=PATH            specify location of Bacula pid files
910   --with-subsys-dir=PATH         specify location of Bacula subsys file
911   --with-baseport=PORT           specify base port address for daemons
912   --with-dir-password=PASSWORD   specify Director's password
913   --with-fd-password=PASSWORD    specify Client's password
914   --with-sd-password=PASSWORD    specify Storage daemon's password
915   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
916   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
917   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
918   --with-dir-user=USER           specify user for Director daemon
919   --with-dir-group=GROUP                 specify group for Director daemon
920   --with-sd-user=USER            specify user for Storage daemon
921   --with-sd-group=GROUP          specify group for Storage daemon
922   --with-fd-user=USER            specify user for File daemon
923   --with-fd-group=GROUP          specify group for File daemon
924   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
925   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
926                           base install directory, defaults to /usr/local/pgsql
927
928   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
929                           install directory, default is to search through
930                           a number of common places for the MySQL files.
931
932   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
933                           install directory, default is to search through
934                           a number of common places for the MySQL files.
935
936   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
937                           install directory, default is to search through
938                           a number of common places for the SQLite3 files.
939
940   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
941                           install directory, default is to search through
942                           a number of common places for the SQLite files.
943   --with-x                use the X Window System
944
945 Some influential environment variables:
946   CC          C compiler command
947   CFLAGS      C compiler flags
948   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
949               nonstandard directory <lib dir>
950   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
951               headers in a nonstandard directory <include dir>
952   CXX         C++ compiler command
953   CXXFLAGS    C++ compiler flags
954   CPP         C preprocessor
955   WXCONFIG    wx-config command. On some systems, you must set it to
956               wx-config-2.6 to use wxWidgets 2.6.
957   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
958
959 Use these variables to override the choices made by `configure' or to help
960 it to find libraries and programs with nonstandard names/locations.
961
962 _ACEOF
963 fi
964
965 if test "$ac_init_help" = "recursive"; then
966   # If there are subdirs, report their specific --help.
967   ac_popdir=`pwd`
968   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
969     test -d $ac_dir || continue
970     ac_builddir=.
971
972 if test "$ac_dir" != .; then
973   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
974   # A "../" for each directory in $ac_dir_suffix.
975   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
976 else
977   ac_dir_suffix= ac_top_builddir=
978 fi
979
980 case $srcdir in
981   .)  # No --srcdir option.  We are building in place.
982     ac_srcdir=.
983     if test -z "$ac_top_builddir"; then
984        ac_top_srcdir=.
985     else
986        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
987     fi ;;
988   [\\/]* | ?:[\\/]* )  # Absolute path.
989     ac_srcdir=$srcdir$ac_dir_suffix;
990     ac_top_srcdir=$srcdir ;;
991   *) # Relative path.
992     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
993     ac_top_srcdir=$ac_top_builddir$srcdir ;;
994 esac
995
996 # Do not use `cd foo && pwd` to compute absolute paths, because
997 # the directories may not exist.
998 case `pwd` in
999 .) ac_abs_builddir="$ac_dir";;
1000 *)
1001   case "$ac_dir" in
1002   .) ac_abs_builddir=`pwd`;;
1003   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1004   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1005   esac;;
1006 esac
1007 case $ac_abs_builddir in
1008 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1009 *)
1010   case ${ac_top_builddir}. in
1011   .) ac_abs_top_builddir=$ac_abs_builddir;;
1012   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1013   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1014   esac;;
1015 esac
1016 case $ac_abs_builddir in
1017 .) ac_abs_srcdir=$ac_srcdir;;
1018 *)
1019   case $ac_srcdir in
1020   .) ac_abs_srcdir=$ac_abs_builddir;;
1021   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1022   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1023   esac;;
1024 esac
1025 case $ac_abs_builddir in
1026 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1027 *)
1028   case $ac_top_srcdir in
1029   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1030   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1031   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1032   esac;;
1033 esac
1034
1035     cd $ac_dir
1036     # Check for guested configure; otherwise get Cygnus style configure.
1037     if test -f $ac_srcdir/configure.gnu; then
1038       echo
1039       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1040     elif test -f $ac_srcdir/configure; then
1041       echo
1042       $SHELL $ac_srcdir/configure  --help=recursive
1043     elif test -f $ac_srcdir/configure.ac ||
1044            test -f $ac_srcdir/configure.in; then
1045       echo
1046       $ac_configure --help
1047     else
1048       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1049     fi
1050     cd $ac_popdir
1051   done
1052 fi
1053
1054 test -n "$ac_init_help" && exit 0
1055 if $ac_init_version; then
1056   cat <<\_ACEOF
1057
1058 Copyright (C) 2003 Free Software Foundation, Inc.
1059 This configure script is free software; the Free Software Foundation
1060 gives unlimited permission to copy, distribute and modify it.
1061 _ACEOF
1062   exit 0
1063 fi
1064 exec 5>config.log
1065 cat >&5 <<_ACEOF
1066 This file contains any messages produced by compilers while
1067 running configure, to aid debugging if configure makes a mistake.
1068
1069 It was created by $as_me, which was
1070 generated by GNU Autoconf 2.59.  Invocation command line was
1071
1072   $ $0 $@
1073
1074 _ACEOF
1075 {
1076 cat <<_ASUNAME
1077 ## --------- ##
1078 ## Platform. ##
1079 ## --------- ##
1080
1081 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1082 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1083 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1084 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1085 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1086
1087 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1088 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1089
1090 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1091 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1092 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1093 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1094 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1095 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1096 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1097
1098 _ASUNAME
1099
1100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1101 for as_dir in $PATH
1102 do
1103   IFS=$as_save_IFS
1104   test -z "$as_dir" && as_dir=.
1105   echo "PATH: $as_dir"
1106 done
1107
1108 } >&5
1109
1110 cat >&5 <<_ACEOF
1111
1112
1113 ## ----------- ##
1114 ## Core tests. ##
1115 ## ----------- ##
1116
1117 _ACEOF
1118
1119
1120 # Keep a trace of the command line.
1121 # Strip out --no-create and --no-recursion so they do not pile up.
1122 # Strip out --silent because we don't want to record it for future runs.
1123 # Also quote any args containing shell meta-characters.
1124 # Make two passes to allow for proper duplicate-argument suppression.
1125 ac_configure_args=
1126 ac_configure_args0=
1127 ac_configure_args1=
1128 ac_sep=
1129 ac_must_keep_next=false
1130 for ac_pass in 1 2
1131 do
1132   for ac_arg
1133   do
1134     case $ac_arg in
1135     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1136     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137     | -silent | --silent | --silen | --sile | --sil)
1138       continue ;;
1139     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1140       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1141     esac
1142     case $ac_pass in
1143     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1144     2)
1145       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1146       if test $ac_must_keep_next = true; then
1147         ac_must_keep_next=false # Got value, back to normal.
1148       else
1149         case $ac_arg in
1150           *=* | --config-cache | -C | -disable-* | --disable-* \
1151           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1152           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1153           | -with-* | --with-* | -without-* | --without-* | --x)
1154             case "$ac_configure_args0 " in
1155               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1156             esac
1157             ;;
1158           -* ) ac_must_keep_next=true ;;
1159         esac
1160       fi
1161       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1162       # Get rid of the leading space.
1163       ac_sep=" "
1164       ;;
1165     esac
1166   done
1167 done
1168 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1169 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1170
1171 # When interrupted or exit'd, cleanup temporary files, and complete
1172 # config.log.  We remove comments because anyway the quotes in there
1173 # would cause problems or look ugly.
1174 # WARNING: Be sure not to use single quotes in there, as some shells,
1175 # such as our DU 5.0 friend, will then `close' the trap.
1176 trap 'exit_status=$?
1177   # Save into config.log some information that might help in debugging.
1178   {
1179     echo
1180
1181     cat <<\_ASBOX
1182 ## ---------------- ##
1183 ## Cache variables. ##
1184 ## ---------------- ##
1185 _ASBOX
1186     echo
1187     # The following way of writing the cache mishandles newlines in values,
1188 {
1189   (set) 2>&1 |
1190     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1191     *ac_space=\ *)
1192       sed -n \
1193         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1194           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1195       ;;
1196     *)
1197       sed -n \
1198         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1199       ;;
1200     esac;
1201 }
1202     echo
1203
1204     cat <<\_ASBOX
1205 ## ----------------- ##
1206 ## Output variables. ##
1207 ## ----------------- ##
1208 _ASBOX
1209     echo
1210     for ac_var in $ac_subst_vars
1211     do
1212       eval ac_val=$`echo $ac_var`
1213       echo "$ac_var='"'"'$ac_val'"'"'"
1214     done | sort
1215     echo
1216
1217     if test -n "$ac_subst_files"; then
1218       cat <<\_ASBOX
1219 ## ------------- ##
1220 ## Output files. ##
1221 ## ------------- ##
1222 _ASBOX
1223       echo
1224       for ac_var in $ac_subst_files
1225       do
1226         eval ac_val=$`echo $ac_var`
1227         echo "$ac_var='"'"'$ac_val'"'"'"
1228       done | sort
1229       echo
1230     fi
1231
1232     if test -s confdefs.h; then
1233       cat <<\_ASBOX
1234 ## ----------- ##
1235 ## confdefs.h. ##
1236 ## ----------- ##
1237 _ASBOX
1238       echo
1239       sed "/^$/d" confdefs.h | sort
1240       echo
1241     fi
1242     test "$ac_signal" != 0 &&
1243       echo "$as_me: caught signal $ac_signal"
1244     echo "$as_me: exit $exit_status"
1245   } >&5
1246   rm -f core *.core &&
1247   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1248     exit $exit_status
1249      ' 0
1250 for ac_signal in 1 2 13 15; do
1251   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1252 done
1253 ac_signal=0
1254
1255 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1256 rm -rf conftest* confdefs.h
1257 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1258 echo >confdefs.h
1259
1260 # Predefined preprocessor variables.
1261
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_NAME "$PACKAGE_NAME"
1264 _ACEOF
1265
1266
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1269 _ACEOF
1270
1271
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1274 _ACEOF
1275
1276
1277 cat >>confdefs.h <<_ACEOF
1278 #define PACKAGE_STRING "$PACKAGE_STRING"
1279 _ACEOF
1280
1281
1282 cat >>confdefs.h <<_ACEOF
1283 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1284 _ACEOF
1285
1286
1287 # Let the site file select an alternate cache file if it wants to.
1288 # Prefer explicitly selected file to automatically selected ones.
1289 if test -z "$CONFIG_SITE"; then
1290   if test "x$prefix" != xNONE; then
1291     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1292   else
1293     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1294   fi
1295 fi
1296 for ac_site_file in $CONFIG_SITE; do
1297   if test -r "$ac_site_file"; then
1298     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1299 echo "$as_me: loading site script $ac_site_file" >&6;}
1300     sed 's/^/| /' "$ac_site_file" >&5
1301     . "$ac_site_file"
1302   fi
1303 done
1304
1305 if test -r "$cache_file"; then
1306   # Some versions of bash will fail to source /dev/null (special
1307   # files actually), so we avoid doing that.
1308   if test -f "$cache_file"; then
1309     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1310 echo "$as_me: loading cache $cache_file" >&6;}
1311     case $cache_file in
1312       [\\/]* | ?:[\\/]* ) . $cache_file;;
1313       *)                      . ./$cache_file;;
1314     esac
1315   fi
1316 else
1317   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1318 echo "$as_me: creating cache $cache_file" >&6;}
1319   >$cache_file
1320 fi
1321
1322 # Check that the precious variables saved in the cache have kept the same
1323 # value.
1324 ac_cache_corrupted=false
1325 for ac_var in `(set) 2>&1 |
1326                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1327   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1328   eval ac_new_set=\$ac_env_${ac_var}_set
1329   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1330   eval ac_new_val="\$ac_env_${ac_var}_value"
1331   case $ac_old_set,$ac_new_set in
1332     set,)
1333       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1334 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1335       ac_cache_corrupted=: ;;
1336     ,set)
1337       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1338 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1339       ac_cache_corrupted=: ;;
1340     ,);;
1341     *)
1342       if test "x$ac_old_val" != "x$ac_new_val"; then
1343         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1344 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1345         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1346 echo "$as_me:   former value:  $ac_old_val" >&2;}
1347         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1348 echo "$as_me:   current value: $ac_new_val" >&2;}
1349         ac_cache_corrupted=:
1350       fi;;
1351   esac
1352   # Pass precious variables to config.status.
1353   if test "$ac_new_set" = set; then
1354     case $ac_new_val in
1355     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1356       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1357     *) ac_arg=$ac_var=$ac_new_val ;;
1358     esac
1359     case " $ac_configure_args " in
1360       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1361       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1362     esac
1363   fi
1364 done
1365 if $ac_cache_corrupted; then
1366   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1367 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1368   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1369 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1370    { (exit 1); exit 1; }; }
1371 fi
1372
1373 ac_ext=c
1374 ac_cpp='$CPP $CPPFLAGS'
1375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397 BUILD_DIR=`pwd`
1398 cd ..
1399 TOP_DIR=`pwd`
1400 cd ${BUILD_DIR}
1401
1402
1403 ac_aux_dir=
1404 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1405   if test -f $ac_dir/install-sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install-sh -c"
1408     break
1409   elif test -f $ac_dir/install.sh; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/install.sh -c"
1412     break
1413   elif test -f $ac_dir/shtool; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/shtool install -c"
1416     break
1417   fi
1418 done
1419 if test -z "$ac_aux_dir"; then
1420   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1421 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1422    { (exit 1); exit 1; }; }
1423 fi
1424 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1425 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1426 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1427
1428           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1429
1430
1431
1432
1433
1434 for ac_prog in true
1435 do
1436   # Extract the first word of "$ac_prog", so it can be a program name with args.
1437 set dummy $ac_prog; ac_word=$2
1438 echo "$as_me:$LINENO: checking for $ac_word" >&5
1439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1440 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1441   echo $ECHO_N "(cached) $ECHO_C" >&6
1442 else
1443   case $TRUEPRG in
1444   [\\/]* | ?:[\\/]*)
1445   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1446   ;;
1447   *)
1448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449 for as_dir in $PATH
1450 do
1451   IFS=$as_save_IFS
1452   test -z "$as_dir" && as_dir=.
1453   for ac_exec_ext in '' $ac_executable_extensions; do
1454   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457     break 2
1458   fi
1459 done
1460 done
1461
1462   ;;
1463 esac
1464 fi
1465 TRUEPRG=$ac_cv_path_TRUEPRG
1466
1467 if test -n "$TRUEPRG"; then
1468   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1469 echo "${ECHO_T}$TRUEPRG" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475   test -n "$TRUEPRG" && break
1476 done
1477 test -n "$TRUEPRG" || TRUEPRG=":"
1478
1479 for ac_prog in false
1480 do
1481   # Extract the first word of "$ac_prog", so it can be a program name with args.
1482 set dummy $ac_prog; ac_word=$2
1483 echo "$as_me:$LINENO: checking for $ac_word" >&5
1484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1486   echo $ECHO_N "(cached) $ECHO_C" >&6
1487 else
1488   case $FALSEPRG in
1489   [\\/]* | ?:[\\/]*)
1490   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1491   ;;
1492   *)
1493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1494 for as_dir in $PATH
1495 do
1496   IFS=$as_save_IFS
1497   test -z "$as_dir" && as_dir=.
1498   for ac_exec_ext in '' $ac_executable_extensions; do
1499   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1500     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1501     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1502     break 2
1503   fi
1504 done
1505 done
1506
1507   ;;
1508 esac
1509 fi
1510 FALSEPRG=$ac_cv_path_FALSEPRG
1511
1512 if test -n "$FALSEPRG"; then
1513   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1514 echo "${ECHO_T}$FALSEPRG" >&6
1515 else
1516   echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1518 fi
1519
1520   test -n "$FALSEPRG" && break
1521 done
1522 test -n "$FALSEPRG" || FALSEPRG=":"
1523
1524
1525 #AC_CANONICAL_HOST
1526
1527 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1529 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1530 echo "configuring for bacula $VERSION ($DATE)"
1531
1532
1533
1534 ac_ext=c
1535 ac_cpp='$CPP $CPPFLAGS'
1536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1539 if test -n "$ac_tool_prefix"; then
1540   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1542 echo "$as_me:$LINENO: checking for $ac_word" >&5
1543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1544 if test "${ac_cv_prog_CC+set}" = set; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   if test -n "$CC"; then
1548   ac_cv_prog_CC="$CC" # Let the user override the test.
1549 else
1550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1551 for as_dir in $PATH
1552 do
1553   IFS=$as_save_IFS
1554   test -z "$as_dir" && as_dir=.
1555   for ac_exec_ext in '' $ac_executable_extensions; do
1556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1557     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1559     break 2
1560   fi
1561 done
1562 done
1563
1564 fi
1565 fi
1566 CC=$ac_cv_prog_CC
1567 if test -n "$CC"; then
1568   echo "$as_me:$LINENO: result: $CC" >&5
1569 echo "${ECHO_T}$CC" >&6
1570 else
1571   echo "$as_me:$LINENO: result: no" >&5
1572 echo "${ECHO_T}no" >&6
1573 fi
1574
1575 fi
1576 if test -z "$ac_cv_prog_CC"; then
1577   ac_ct_CC=$CC
1578   # Extract the first word of "gcc", so it can be a program name with args.
1579 set dummy gcc; ac_word=$2
1580 echo "$as_me:$LINENO: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1583   echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585   if test -n "$ac_ct_CC"; then
1586   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1587 else
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   for ac_exec_ext in '' $ac_executable_extensions; do
1594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1595     ac_cv_prog_ac_ct_CC="gcc"
1596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1597     break 2
1598   fi
1599 done
1600 done
1601
1602 fi
1603 fi
1604 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1605 if test -n "$ac_ct_CC"; then
1606   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1607 echo "${ECHO_T}$ac_ct_CC" >&6
1608 else
1609   echo "$as_me:$LINENO: result: no" >&5
1610 echo "${ECHO_T}no" >&6
1611 fi
1612
1613   CC=$ac_ct_CC
1614 else
1615   CC="$ac_cv_prog_CC"
1616 fi
1617
1618 if test -z "$CC"; then
1619   if test -n "$ac_tool_prefix"; then
1620   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1621 set dummy ${ac_tool_prefix}cc; ac_word=$2
1622 echo "$as_me:$LINENO: checking for $ac_word" >&5
1623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1624 if test "${ac_cv_prog_CC+set}" = set; then
1625   echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627   if test -n "$CC"; then
1628   ac_cv_prog_CC="$CC" # Let the user override the test.
1629 else
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   for ac_exec_ext in '' $ac_executable_extensions; do
1636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1637     ac_cv_prog_CC="${ac_tool_prefix}cc"
1638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1639     break 2
1640   fi
1641 done
1642 done
1643
1644 fi
1645 fi
1646 CC=$ac_cv_prog_CC
1647 if test -n "$CC"; then
1648   echo "$as_me:$LINENO: result: $CC" >&5
1649 echo "${ECHO_T}$CC" >&6
1650 else
1651   echo "$as_me:$LINENO: result: no" >&5
1652 echo "${ECHO_T}no" >&6
1653 fi
1654
1655 fi
1656 if test -z "$ac_cv_prog_CC"; then
1657   ac_ct_CC=$CC
1658   # Extract the first word of "cc", so it can be a program name with args.
1659 set dummy cc; ac_word=$2
1660 echo "$as_me:$LINENO: checking for $ac_word" >&5
1661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1663   echo $ECHO_N "(cached) $ECHO_C" >&6
1664 else
1665   if test -n "$ac_ct_CC"; then
1666   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1667 else
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1669 for as_dir in $PATH
1670 do
1671   IFS=$as_save_IFS
1672   test -z "$as_dir" && as_dir=.
1673   for ac_exec_ext in '' $ac_executable_extensions; do
1674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1675     ac_cv_prog_ac_ct_CC="cc"
1676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677     break 2
1678   fi
1679 done
1680 done
1681
1682 fi
1683 fi
1684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1685 if test -n "$ac_ct_CC"; then
1686   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1687 echo "${ECHO_T}$ac_ct_CC" >&6
1688 else
1689   echo "$as_me:$LINENO: result: no" >&5
1690 echo "${ECHO_T}no" >&6
1691 fi
1692
1693   CC=$ac_ct_CC
1694 else
1695   CC="$ac_cv_prog_CC"
1696 fi
1697
1698 fi
1699 if test -z "$CC"; then
1700   # Extract the first word of "cc", so it can be a program name with args.
1701 set dummy cc; ac_word=$2
1702 echo "$as_me:$LINENO: checking for $ac_word" >&5
1703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704 if test "${ac_cv_prog_CC+set}" = set; then
1705   echo $ECHO_N "(cached) $ECHO_C" >&6
1706 else
1707   if test -n "$CC"; then
1708   ac_cv_prog_CC="$CC" # Let the user override the test.
1709 else
1710   ac_prog_rejected=no
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   for ac_exec_ext in '' $ac_executable_extensions; do
1717   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1719        ac_prog_rejected=yes
1720        continue
1721      fi
1722     ac_cv_prog_CC="cc"
1723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1724     break 2
1725   fi
1726 done
1727 done
1728
1729 if test $ac_prog_rejected = yes; then
1730   # We found a bogon in the path, so make sure we never use it.
1731   set dummy $ac_cv_prog_CC
1732   shift
1733   if test $# != 0; then
1734     # We chose a different compiler from the bogus one.
1735     # However, it has the same basename, so the bogon will be chosen
1736     # first if we set CC to just the basename; use the full file name.
1737     shift
1738     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1739   fi
1740 fi
1741 fi
1742 fi
1743 CC=$ac_cv_prog_CC
1744 if test -n "$CC"; then
1745   echo "$as_me:$LINENO: result: $CC" >&5
1746 echo "${ECHO_T}$CC" >&6
1747 else
1748   echo "$as_me:$LINENO: result: no" >&5
1749 echo "${ECHO_T}no" >&6
1750 fi
1751
1752 fi
1753 if test -z "$CC"; then
1754   if test -n "$ac_tool_prefix"; then
1755   for ac_prog in cl
1756   do
1757     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1759 echo "$as_me:$LINENO: checking for $ac_word" >&5
1760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1761 if test "${ac_cv_prog_CC+set}" = set; then
1762   echo $ECHO_N "(cached) $ECHO_C" >&6
1763 else
1764   if test -n "$CC"; then
1765   ac_cv_prog_CC="$CC" # Let the user override the test.
1766 else
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770   IFS=$as_save_IFS
1771   test -z "$as_dir" && as_dir=.
1772   for ac_exec_ext in '' $ac_executable_extensions; do
1773   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1775     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776     break 2
1777   fi
1778 done
1779 done
1780
1781 fi
1782 fi
1783 CC=$ac_cv_prog_CC
1784 if test -n "$CC"; then
1785   echo "$as_me:$LINENO: result: $CC" >&5
1786 echo "${ECHO_T}$CC" >&6
1787 else
1788   echo "$as_me:$LINENO: result: no" >&5
1789 echo "${ECHO_T}no" >&6
1790 fi
1791
1792     test -n "$CC" && break
1793   done
1794 fi
1795 if test -z "$CC"; then
1796   ac_ct_CC=$CC
1797   for ac_prog in cl
1798 do
1799   # Extract the first word of "$ac_prog", so it can be a program name with args.
1800 set dummy $ac_prog; ac_word=$2
1801 echo "$as_me:$LINENO: checking for $ac_word" >&5
1802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1803 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1804   echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806   if test -n "$ac_ct_CC"; then
1807   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1808 else
1809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   for ac_exec_ext in '' $ac_executable_extensions; do
1815   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1816     ac_cv_prog_ac_ct_CC="$ac_prog"
1817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818     break 2
1819   fi
1820 done
1821 done
1822
1823 fi
1824 fi
1825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1826 if test -n "$ac_ct_CC"; then
1827   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1828 echo "${ECHO_T}$ac_ct_CC" >&6
1829 else
1830   echo "$as_me:$LINENO: result: no" >&5
1831 echo "${ECHO_T}no" >&6
1832 fi
1833
1834   test -n "$ac_ct_CC" && break
1835 done
1836
1837   CC=$ac_ct_CC
1838 fi
1839
1840 fi
1841
1842
1843 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&5
1845 echo "$as_me: error: no acceptable C compiler found in \$PATH
1846 See \`config.log' for more details." >&2;}
1847    { (exit 1); exit 1; }; }
1848
1849 # Provide some information about the compiler.
1850 echo "$as_me:$LINENO:" \
1851      "checking for C compiler version" >&5
1852 ac_compiler=`set X $ac_compile; echo $2`
1853 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1854   (eval $ac_compiler --version </dev/null >&5) 2>&5
1855   ac_status=$?
1856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857   (exit $ac_status); }
1858 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1859   (eval $ac_compiler -v </dev/null >&5) 2>&5
1860   ac_status=$?
1861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1862   (exit $ac_status); }
1863 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1864   (eval $ac_compiler -V </dev/null >&5) 2>&5
1865   ac_status=$?
1866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1867   (exit $ac_status); }
1868
1869 cat >conftest.$ac_ext <<_ACEOF
1870 /* confdefs.h.  */
1871 _ACEOF
1872 cat confdefs.h >>conftest.$ac_ext
1873 cat >>conftest.$ac_ext <<_ACEOF
1874 /* end confdefs.h.  */
1875
1876 int
1877 main ()
1878 {
1879
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 ac_clean_files_save=$ac_clean_files
1885 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1886 # Try to create an executable without -o first, disregard a.out.
1887 # It will help us diagnose broken compilers, and finding out an intuition
1888 # of exeext.
1889 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1890 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1891 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1892 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1893   (eval $ac_link_default) 2>&5
1894   ac_status=$?
1895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1896   (exit $ac_status); }; then
1897   # Find the output, starting from the most likely.  This scheme is
1898 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1899 # resort.
1900
1901 # Be careful to initialize this variable, since it used to be cached.
1902 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1903 ac_cv_exeext=
1904 # b.out is created by i960 compilers.
1905 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1906 do
1907   test -f "$ac_file" || continue
1908   case $ac_file in
1909     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1910         ;;
1911     conftest.$ac_ext )
1912         # This is the source file.
1913         ;;
1914     [ab].out )
1915         # We found the default executable, but exeext='' is most
1916         # certainly right.
1917         break;;
1918     *.* )
1919         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1920         # FIXME: I believe we export ac_cv_exeext for Libtool,
1921         # but it would be cool to find out if it's true.  Does anybody
1922         # maintain Libtool? --akim.
1923         export ac_cv_exeext
1924         break;;
1925     * )
1926         break;;
1927   esac
1928 done
1929 else
1930   echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&5
1935 echo "$as_me: error: C compiler cannot create executables
1936 See \`config.log' for more details." >&2;}
1937    { (exit 77); exit 77; }; }
1938 fi
1939
1940 ac_exeext=$ac_cv_exeext
1941 echo "$as_me:$LINENO: result: $ac_file" >&5
1942 echo "${ECHO_T}$ac_file" >&6
1943
1944 # Check the compiler produces executables we can run.  If not, either
1945 # the compiler is broken, or we cross compile.
1946 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1947 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1948 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1949 # If not cross compiling, check that we can run a simple program.
1950 if test "$cross_compiling" != yes; then
1951   if { ac_try='./$ac_file'
1952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1953   (eval $ac_try) 2>&5
1954   ac_status=$?
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); }; }; then
1957     cross_compiling=no
1958   else
1959     if test "$cross_compiling" = maybe; then
1960         cross_compiling=yes
1961     else
1962         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1963 If you meant to cross compile, use \`--host'.
1964 See \`config.log' for more details." >&5
1965 echo "$as_me: error: cannot run C compiled programs.
1966 If you meant to cross compile, use \`--host'.
1967 See \`config.log' for more details." >&2;}
1968    { (exit 1); exit 1; }; }
1969     fi
1970   fi
1971 fi
1972 echo "$as_me:$LINENO: result: yes" >&5
1973 echo "${ECHO_T}yes" >&6
1974
1975 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1976 ac_clean_files=$ac_clean_files_save
1977 # Check the compiler produces executables we can run.  If not, either
1978 # the compiler is broken, or we cross compile.
1979 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1980 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1981 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1982 echo "${ECHO_T}$cross_compiling" >&6
1983
1984 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1985 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1987   (eval $ac_link) 2>&5
1988   ac_status=$?
1989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1990   (exit $ac_status); }; then
1991   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1992 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1993 # work properly (i.e., refer to `conftest.exe'), while it won't with
1994 # `rm'.
1995 for ac_file in conftest.exe conftest conftest.*; do
1996   test -f "$ac_file" || continue
1997   case $ac_file in
1998     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1999     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2000           export ac_cv_exeext
2001           break;;
2002     * ) break;;
2003   esac
2004 done
2005 else
2006   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&5
2008 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2009 See \`config.log' for more details." >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 rm -f conftest$ac_cv_exeext
2014 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2015 echo "${ECHO_T}$ac_cv_exeext" >&6
2016
2017 rm -f conftest.$ac_ext
2018 EXEEXT=$ac_cv_exeext
2019 ac_exeext=$EXEEXT
2020 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2021 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2022 if test "${ac_cv_objext+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   cat >conftest.$ac_ext <<_ACEOF
2026 /* confdefs.h.  */
2027 _ACEOF
2028 cat confdefs.h >>conftest.$ac_ext
2029 cat >>conftest.$ac_ext <<_ACEOF
2030 /* end confdefs.h.  */
2031
2032 int
2033 main ()
2034 {
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.o conftest.obj
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042   (eval $ac_compile) 2>&5
2043   ac_status=$?
2044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045   (exit $ac_status); }; then
2046   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2047   case $ac_file in
2048     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2049     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2050        break;;
2051   esac
2052 done
2053 else
2054   echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&5
2059 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2060 See \`config.log' for more details." >&2;}
2061    { (exit 1); exit 1; }; }
2062 fi
2063
2064 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2065 fi
2066 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2067 echo "${ECHO_T}$ac_cv_objext" >&6
2068 OBJEXT=$ac_cv_objext
2069 ac_objext=$OBJEXT
2070 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2071 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2072 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   cat >conftest.$ac_ext <<_ACEOF
2076 /* confdefs.h.  */
2077 _ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h.  */
2081
2082 int
2083 main ()
2084 {
2085 #ifndef __GNUC__
2086        choke me
2087 #endif
2088
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 rm -f conftest.$ac_objext
2094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2095   (eval $ac_compile) 2>conftest.er1
2096   ac_status=$?
2097   grep -v '^ *+' conftest.er1 >conftest.err
2098   rm -f conftest.er1
2099   cat conftest.err >&5
2100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101   (exit $ac_status); } &&
2102          { ac_try='test -z "$ac_c_werror_flag"
2103                          || test ! -s conftest.err'
2104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105   (eval $ac_try) 2>&5
2106   ac_status=$?
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); }; } &&
2109          { ac_try='test -s conftest.$ac_objext'
2110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111   (eval $ac_try) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }; }; then
2115   ac_compiler_gnu=yes
2116 else
2117   echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2119
2120 ac_compiler_gnu=no
2121 fi
2122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2123 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2124
2125 fi
2126 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2127 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2128 GCC=`test $ac_compiler_gnu = yes && echo yes`
2129 ac_test_CFLAGS=${CFLAGS+set}
2130 ac_save_CFLAGS=$CFLAGS
2131 CFLAGS="-g"
2132 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2133 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_g+set}" = set; then
2135   echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137   cat >conftest.$ac_ext <<_ACEOF
2138 /* confdefs.h.  */
2139 _ACEOF
2140 cat confdefs.h >>conftest.$ac_ext
2141 cat >>conftest.$ac_ext <<_ACEOF
2142 /* end confdefs.h.  */
2143
2144 int
2145 main ()
2146 {
2147
2148   ;
2149   return 0;
2150 }
2151 _ACEOF
2152 rm -f conftest.$ac_objext
2153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2154   (eval $ac_compile) 2>conftest.er1
2155   ac_status=$?
2156   grep -v '^ *+' conftest.er1 >conftest.err
2157   rm -f conftest.er1
2158   cat conftest.err >&5
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); } &&
2161          { ac_try='test -z "$ac_c_werror_flag"
2162                          || test ! -s conftest.err'
2163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; } &&
2168          { ac_try='test -s conftest.$ac_objext'
2169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170   (eval $ac_try) 2>&5
2171   ac_status=$?
2172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173   (exit $ac_status); }; }; then
2174   ac_cv_prog_cc_g=yes
2175 else
2176   echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179 ac_cv_prog_cc_g=no
2180 fi
2181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182 fi
2183 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2184 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2185 if test "$ac_test_CFLAGS" = set; then
2186   CFLAGS=$ac_save_CFLAGS
2187 elif test $ac_cv_prog_cc_g = yes; then
2188   if test "$GCC" = yes; then
2189     CFLAGS="-g -O2"
2190   else
2191     CFLAGS="-g"
2192   fi
2193 else
2194   if test "$GCC" = yes; then
2195     CFLAGS="-O2"
2196   else
2197     CFLAGS=
2198   fi
2199 fi
2200 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2201 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2202 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   ac_cv_prog_cc_stdc=no
2206 ac_save_CC=$CC
2207 cat >conftest.$ac_ext <<_ACEOF
2208 /* confdefs.h.  */
2209 _ACEOF
2210 cat confdefs.h >>conftest.$ac_ext
2211 cat >>conftest.$ac_ext <<_ACEOF
2212 /* end confdefs.h.  */
2213 #include <stdarg.h>
2214 #include <stdio.h>
2215 #include <sys/types.h>
2216 #include <sys/stat.h>
2217 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2218 struct buf { int x; };
2219 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2220 static char *e (p, i)
2221      char **p;
2222      int i;
2223 {
2224   return p[i];
2225 }
2226 static char *f (char * (*g) (char **, int), char **p, ...)
2227 {
2228   char *s;
2229   va_list v;
2230   va_start (v,p);
2231   s = g (p, va_arg (v,int));
2232   va_end (v);
2233   return s;
2234 }
2235
2236 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2237    function prototypes and stuff, but not '\xHH' hex character constants.
2238    These don't provoke an error unfortunately, instead are silently treated
2239    as 'x'.  The following induces an error, until -std1 is added to get
2240    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2241    array size at least.  It's necessary to write '\x00'==0 to get something
2242    that's true only with -std1.  */
2243 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2244
2245 int test (int i, double x);
2246 struct s1 {int (*f) (int a);};
2247 struct s2 {int (*f) (double a);};
2248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2249 int argc;
2250 char **argv;
2251 int
2252 main ()
2253 {
2254 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2255   ;
2256   return 0;
2257 }
2258 _ACEOF
2259 # Don't try gcc -ansi; that turns off useful extensions and
2260 # breaks some systems' header files.
2261 # AIX                   -qlanglvl=ansi
2262 # Ultrix and OSF/1      -std1
2263 # HP-UX 10.20 and later -Ae
2264 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2265 # SVR4                  -Xc -D__EXTENSIONS__
2266 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2267 do
2268   CC="$ac_save_CC $ac_arg"
2269   rm -f conftest.$ac_objext
2270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2271   (eval $ac_compile) 2>conftest.er1
2272   ac_status=$?
2273   grep -v '^ *+' conftest.er1 >conftest.err
2274   rm -f conftest.er1
2275   cat conftest.err >&5
2276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277   (exit $ac_status); } &&
2278          { ac_try='test -z "$ac_c_werror_flag"
2279                          || test ! -s conftest.err'
2280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281   (eval $ac_try) 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }; } &&
2285          { ac_try='test -s conftest.$ac_objext'
2286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2287   (eval $ac_try) 2>&5
2288   ac_status=$?
2289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2290   (exit $ac_status); }; }; then
2291   ac_cv_prog_cc_stdc=$ac_arg
2292 break
2293 else
2294   echo "$as_me: failed program was:" >&5
2295 sed 's/^/| /' conftest.$ac_ext >&5
2296
2297 fi
2298 rm -f conftest.err conftest.$ac_objext
2299 done
2300 rm -f conftest.$ac_ext conftest.$ac_objext
2301 CC=$ac_save_CC
2302
2303 fi
2304
2305 case "x$ac_cv_prog_cc_stdc" in
2306   x|xno)
2307     echo "$as_me:$LINENO: result: none needed" >&5
2308 echo "${ECHO_T}none needed" >&6 ;;
2309   *)
2310     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2311 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2312     CC="$CC $ac_cv_prog_cc_stdc" ;;
2313 esac
2314
2315 # Some people use a C++ compiler to compile C.  Since we use `exit',
2316 # in C++ we need to declare it.  In case someone uses the same compiler
2317 # for both compiling C and C++ we need to have the C++ compiler decide
2318 # the declaration of exit, since it's the most demanding environment.
2319 cat >conftest.$ac_ext <<_ACEOF
2320 #ifndef __cplusplus
2321   choke me
2322 #endif
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326   (eval $ac_compile) 2>conftest.er1
2327   ac_status=$?
2328   grep -v '^ *+' conftest.er1 >conftest.err
2329   rm -f conftest.er1
2330   cat conftest.err >&5
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); } &&
2333          { ac_try='test -z "$ac_c_werror_flag"
2334                          || test ! -s conftest.err'
2335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2336   (eval $ac_try) 2>&5
2337   ac_status=$?
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); }; } &&
2340          { ac_try='test -s conftest.$ac_objext'
2341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2342   (eval $ac_try) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }; }; then
2346   for ac_declaration in \
2347    '' \
2348    'extern "C" void std::exit (int) throw (); using std::exit;' \
2349    'extern "C" void std::exit (int); using std::exit;' \
2350    'extern "C" void exit (int) throw ();' \
2351    'extern "C" void exit (int);' \
2352    'void exit (int);'
2353 do
2354   cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360 $ac_declaration
2361 #include <stdlib.h>
2362 int
2363 main ()
2364 {
2365 exit (42);
2366   ;
2367   return 0;
2368 }
2369 _ACEOF
2370 rm -f conftest.$ac_objext
2371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2372   (eval $ac_compile) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } &&
2379          { ac_try='test -z "$ac_c_werror_flag"
2380                          || test ! -s conftest.err'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; } &&
2386          { ac_try='test -s conftest.$ac_objext'
2387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
2390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391   (exit $ac_status); }; }; then
2392   :
2393 else
2394   echo "$as_me: failed program was:" >&5
2395 sed 's/^/| /' conftest.$ac_ext >&5
2396
2397 continue
2398 fi
2399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2400   cat >conftest.$ac_ext <<_ACEOF
2401 /* confdefs.h.  */
2402 _ACEOF
2403 cat confdefs.h >>conftest.$ac_ext
2404 cat >>conftest.$ac_ext <<_ACEOF
2405 /* end confdefs.h.  */
2406 $ac_declaration
2407 int
2408 main ()
2409 {
2410 exit (42);
2411   ;
2412   return 0;
2413 }
2414 _ACEOF
2415 rm -f conftest.$ac_objext
2416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2417   (eval $ac_compile) 2>conftest.er1
2418   ac_status=$?
2419   grep -v '^ *+' conftest.er1 >conftest.err
2420   rm -f conftest.er1
2421   cat conftest.err >&5
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); } &&
2424          { ac_try='test -z "$ac_c_werror_flag"
2425                          || test ! -s conftest.err'
2426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2427   (eval $ac_try) 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; } &&
2431          { ac_try='test -s conftest.$ac_objext'
2432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433   (eval $ac_try) 2>&5
2434   ac_status=$?
2435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436   (exit $ac_status); }; }; then
2437   break
2438 else
2439   echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 fi
2443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 done
2445 rm -f conftest*
2446 if test -n "$ac_declaration"; then
2447   echo '#ifdef __cplusplus' >>confdefs.h
2448   echo $ac_declaration      >>confdefs.h
2449   echo '#endif'             >>confdefs.h
2450 fi
2451
2452 else
2453   echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2455
2456 fi
2457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2458 ac_ext=c
2459 ac_cpp='$CPP $CPPFLAGS'
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2463
2464 ac_ext=cc
2465 ac_cpp='$CXXCPP $CPPFLAGS'
2466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2469 if test -n "$ac_tool_prefix"; then
2470   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2471   do
2472     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2473 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2474 echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2476 if test "${ac_cv_prog_CXX+set}" = set; then
2477   echo $ECHO_N "(cached) $ECHO_C" >&6
2478 else
2479   if test -n "$CXX"; then
2480   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2481 else
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 for as_dir in $PATH
2484 do
2485   IFS=$as_save_IFS
2486   test -z "$as_dir" && as_dir=.
2487   for ac_exec_ext in '' $ac_executable_extensions; do
2488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2489     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2491     break 2
2492   fi
2493 done
2494 done
2495
2496 fi
2497 fi
2498 CXX=$ac_cv_prog_CXX
2499 if test -n "$CXX"; then
2500   echo "$as_me:$LINENO: result: $CXX" >&5
2501 echo "${ECHO_T}$CXX" >&6
2502 else
2503   echo "$as_me:$LINENO: result: no" >&5
2504 echo "${ECHO_T}no" >&6
2505 fi
2506
2507     test -n "$CXX" && break
2508   done
2509 fi
2510 if test -z "$CXX"; then
2511   ac_ct_CXX=$CXX
2512   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2513 do
2514   # Extract the first word of "$ac_prog", so it can be a program name with args.
2515 set dummy $ac_prog; ac_word=$2
2516 echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2518 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2519   echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521   if test -n "$ac_ct_CXX"; then
2522   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527   IFS=$as_save_IFS
2528   test -z "$as_dir" && as_dir=.
2529   for ac_exec_ext in '' $ac_executable_extensions; do
2530   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2531     ac_cv_prog_ac_ct_CXX="$ac_prog"
2532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533     break 2
2534   fi
2535 done
2536 done
2537
2538 fi
2539 fi
2540 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2541 if test -n "$ac_ct_CXX"; then
2542   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2543 echo "${ECHO_T}$ac_ct_CXX" >&6
2544 else
2545   echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6
2547 fi
2548
2549   test -n "$ac_ct_CXX" && break
2550 done
2551 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2552
2553   CXX=$ac_ct_CXX
2554 fi
2555
2556
2557 # Provide some information about the compiler.
2558 echo "$as_me:$LINENO:" \
2559      "checking for C++ compiler version" >&5
2560 ac_compiler=`set X $ac_compile; echo $2`
2561 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2562   (eval $ac_compiler --version </dev/null >&5) 2>&5
2563   ac_status=$?
2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565   (exit $ac_status); }
2566 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2567   (eval $ac_compiler -v </dev/null >&5) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }
2571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2572   (eval $ac_compiler -V </dev/null >&5) 2>&5
2573   ac_status=$?
2574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575   (exit $ac_status); }
2576
2577 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2578 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2579 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2580   echo $ECHO_N "(cached) $ECHO_C" >&6
2581 else
2582   cat >conftest.$ac_ext <<_ACEOF
2583 /* confdefs.h.  */
2584 _ACEOF
2585 cat confdefs.h >>conftest.$ac_ext
2586 cat >>conftest.$ac_ext <<_ACEOF
2587 /* end confdefs.h.  */
2588
2589 int
2590 main ()
2591 {
2592 #ifndef __GNUC__
2593        choke me
2594 #endif
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 rm -f conftest.$ac_objext
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602   (eval $ac_compile) 2>conftest.er1
2603   ac_status=$?
2604   grep -v '^ *+' conftest.er1 >conftest.err
2605   rm -f conftest.er1
2606   cat conftest.err >&5
2607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608   (exit $ac_status); } &&
2609          { ac_try='test -z "$ac_cxx_werror_flag"
2610                          || test ! -s conftest.err'
2611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612   (eval $ac_try) 2>&5
2613   ac_status=$?
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); }; } &&
2616          { ac_try='test -s conftest.$ac_objext'
2617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2618   (eval $ac_try) 2>&5
2619   ac_status=$?
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); }; }; then
2622   ac_compiler_gnu=yes
2623 else
2624   echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2626
2627 ac_compiler_gnu=no
2628 fi
2629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2630 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2631
2632 fi
2633 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2634 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2635 GXX=`test $ac_compiler_gnu = yes && echo yes`
2636 ac_test_CXXFLAGS=${CXXFLAGS+set}
2637 ac_save_CXXFLAGS=$CXXFLAGS
2638 CXXFLAGS="-g"
2639 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2640 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2641 if test "${ac_cv_prog_cxx_g+set}" = set; then
2642   echo $ECHO_N "(cached) $ECHO_C" >&6
2643 else
2644   cat >conftest.$ac_ext <<_ACEOF
2645 /* confdefs.h.  */
2646 _ACEOF
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h.  */
2650
2651 int
2652 main ()
2653 {
2654
2655   ;
2656   return 0;
2657 }
2658 _ACEOF
2659 rm -f conftest.$ac_objext
2660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2661   (eval $ac_compile) 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } &&
2668          { ac_try='test -z "$ac_cxx_werror_flag"
2669                          || test ! -s conftest.err'
2670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2671   (eval $ac_try) 2>&5
2672   ac_status=$?
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); }; } &&
2675          { ac_try='test -s conftest.$ac_objext'
2676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677   (eval $ac_try) 2>&5
2678   ac_status=$?
2679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680   (exit $ac_status); }; }; then
2681   ac_cv_prog_cxx_g=yes
2682 else
2683   echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2685
2686 ac_cv_prog_cxx_g=no
2687 fi
2688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2689 fi
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2691 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2692 if test "$ac_test_CXXFLAGS" = set; then
2693   CXXFLAGS=$ac_save_CXXFLAGS
2694 elif test $ac_cv_prog_cxx_g = yes; then
2695   if test "$GXX" = yes; then
2696     CXXFLAGS="-g -O2"
2697   else
2698     CXXFLAGS="-g"
2699   fi
2700 else
2701   if test "$GXX" = yes; then
2702     CXXFLAGS="-O2"
2703   else
2704     CXXFLAGS=
2705   fi
2706 fi
2707 for ac_declaration in \
2708    '' \
2709    'extern "C" void std::exit (int) throw (); using std::exit;' \
2710    'extern "C" void std::exit (int); using std::exit;' \
2711    'extern "C" void exit (int) throw ();' \
2712    'extern "C" void exit (int);' \
2713    'void exit (int);'
2714 do
2715   cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h.  */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h.  */
2721 $ac_declaration
2722 #include <stdlib.h>
2723 int
2724 main ()
2725 {
2726 exit (42);
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2733   (eval $ac_compile) 2>conftest.er1
2734   ac_status=$?
2735   grep -v '^ *+' conftest.er1 >conftest.err
2736   rm -f conftest.er1
2737   cat conftest.err >&5
2738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739   (exit $ac_status); } &&
2740          { ac_try='test -z "$ac_cxx_werror_flag"
2741                          || test ! -s conftest.err'
2742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743   (eval $ac_try) 2>&5
2744   ac_status=$?
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); }; } &&
2747          { ac_try='test -s conftest.$ac_objext'
2748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749   (eval $ac_try) 2>&5
2750   ac_status=$?
2751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752   (exit $ac_status); }; }; then
2753   :
2754 else
2755   echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.$ac_ext >&5
2757
2758 continue
2759 fi
2760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761   cat >conftest.$ac_ext <<_ACEOF
2762 /* confdefs.h.  */
2763 _ACEOF
2764 cat confdefs.h >>conftest.$ac_ext
2765 cat >>conftest.$ac_ext <<_ACEOF
2766 /* end confdefs.h.  */
2767 $ac_declaration
2768 int
2769 main ()
2770 {
2771 exit (42);
2772   ;
2773   return 0;
2774 }
2775 _ACEOF
2776 rm -f conftest.$ac_objext
2777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2778   (eval $ac_compile) 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } &&
2785          { ac_try='test -z "$ac_cxx_werror_flag"
2786                          || test ! -s conftest.err'
2787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788   (eval $ac_try) 2>&5
2789   ac_status=$?
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); }; } &&
2792          { ac_try='test -s conftest.$ac_objext'
2793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2794   (eval $ac_try) 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; }; then
2798   break
2799 else
2800   echo "$as_me: failed program was:" >&5
2801 sed 's/^/| /' conftest.$ac_ext >&5
2802
2803 fi
2804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2805 done
2806 rm -f conftest*
2807 if test -n "$ac_declaration"; then
2808   echo '#ifdef __cplusplus' >>confdefs.h
2809   echo $ac_declaration      >>confdefs.h
2810   echo '#endif'             >>confdefs.h
2811 fi
2812
2813 ac_ext=c
2814 ac_cpp='$CPP $CPPFLAGS'
2815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2818
2819 if test "x$CC" != xcc; then
2820   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2821 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2822 else
2823   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2824 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2825 fi
2826 set dummy $CC; ac_cc=`echo $2 |
2827                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2828 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2829   echo $ECHO_N "(cached) $ECHO_C" >&6
2830 else
2831   cat >conftest.$ac_ext <<_ACEOF
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 int
2839 main ()
2840 {
2841
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 # Make sure it works both with $CC and with simple cc.
2847 # We do the test twice because some compilers refuse to overwrite an
2848 # existing .o file with -o, though they will create one.
2849 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2850 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851   (eval $ac_try) 2>&5
2852   ac_status=$?
2853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854   (exit $ac_status); } &&
2855    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856   (eval $ac_try) 2>&5
2857   ac_status=$?
2858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859   (exit $ac_status); };
2860 then
2861   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2862   if test "x$CC" != xcc; then
2863     # Test first that cc exists at all.
2864     if { ac_try='cc -c conftest.$ac_ext >&5'
2865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866   (eval $ac_try) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); }; }; then
2870       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2871       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); } &&
2876          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2877   (eval $ac_try) 2>&5
2878   ac_status=$?
2879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880   (exit $ac_status); };
2881       then
2882         # cc works too.
2883         :
2884       else
2885         # cc exists but doesn't like -o.
2886         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2887       fi
2888     fi
2889   fi
2890 else
2891   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2892 fi
2893 rm -f conftest*
2894
2895 fi
2896 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2897   echo "$as_me:$LINENO: result: yes" >&5
2898 echo "${ECHO_T}yes" >&6
2899 else
2900   echo "$as_me:$LINENO: result: no" >&5
2901 echo "${ECHO_T}no" >&6
2902
2903 cat >>confdefs.h <<\_ACEOF
2904 #define NO_MINUS_C_MINUS_O 1
2905 _ACEOF
2906
2907 fi
2908
2909 ac_ext=c
2910 ac_cpp='$CPP $CPPFLAGS'
2911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2914 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2915 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2916 # On Suns, sometimes $CPP names a directory.
2917 if test -n "$CPP" && test -d "$CPP"; then
2918   CPP=
2919 fi
2920 if test -z "$CPP"; then
2921   if test "${ac_cv_prog_CPP+set}" = set; then
2922   echo $ECHO_N "(cached) $ECHO_C" >&6
2923 else
2924       # Double quotes because CPP needs to be expanded
2925     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2926     do
2927       ac_preproc_ok=false
2928 for ac_c_preproc_warn_flag in '' yes
2929 do
2930   # Use a header file that comes with gcc, so configuring glibc
2931   # with a fresh cross-compiler works.
2932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2933   # <limits.h> exists even on freestanding compilers.
2934   # On the NeXT, cc -E runs the code through the compiler's parser,
2935   # not just through cpp. "Syntax error" is here to catch this case.
2936   cat >conftest.$ac_ext <<_ACEOF
2937 /* confdefs.h.  */
2938 _ACEOF
2939 cat confdefs.h >>conftest.$ac_ext
2940 cat >>conftest.$ac_ext <<_ACEOF
2941 /* end confdefs.h.  */
2942 #ifdef __STDC__
2943 # include <limits.h>
2944 #else
2945 # include <assert.h>
2946 #endif
2947                      Syntax error
2948 _ACEOF
2949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2950   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2951   ac_status=$?
2952   grep -v '^ *+' conftest.er1 >conftest.err
2953   rm -f conftest.er1
2954   cat conftest.err >&5
2955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956   (exit $ac_status); } >/dev/null; then
2957   if test -s conftest.err; then
2958     ac_cpp_err=$ac_c_preproc_warn_flag
2959     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2960   else
2961     ac_cpp_err=
2962   fi
2963 else
2964   ac_cpp_err=yes
2965 fi
2966 if test -z "$ac_cpp_err"; then
2967   :
2968 else
2969   echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2971
2972   # Broken: fails on valid input.
2973 continue
2974 fi
2975 rm -f conftest.err conftest.$ac_ext
2976
2977   # OK, works on sane cases.  Now check whether non-existent headers
2978   # can be detected and how.
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985 #include <ac_nonexistent.h>
2986 _ACEOF
2987 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2988   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2989   ac_status=$?
2990   grep -v '^ *+' conftest.er1 >conftest.err
2991   rm -f conftest.er1
2992   cat conftest.err >&5
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); } >/dev/null; then
2995   if test -s conftest.err; then
2996     ac_cpp_err=$ac_c_preproc_warn_flag
2997     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2998   else
2999     ac_cpp_err=
3000   fi
3001 else
3002   ac_cpp_err=yes
3003 fi
3004 if test -z "$ac_cpp_err"; then
3005   # Broken: success on invalid input.
3006 continue
3007 else
3008   echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3010
3011   # Passes both tests.
3012 ac_preproc_ok=:
3013 break
3014 fi
3015 rm -f conftest.err conftest.$ac_ext
3016
3017 done
3018 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3019 rm -f conftest.err conftest.$ac_ext
3020 if $ac_preproc_ok; then
3021   break
3022 fi
3023
3024     done
3025     ac_cv_prog_CPP=$CPP
3026
3027 fi
3028   CPP=$ac_cv_prog_CPP
3029 else
3030   ac_cv_prog_CPP=$CPP
3031 fi
3032 echo "$as_me:$LINENO: result: $CPP" >&5
3033 echo "${ECHO_T}$CPP" >&6
3034 ac_preproc_ok=false
3035 for ac_c_preproc_warn_flag in '' yes
3036 do
3037   # Use a header file that comes with gcc, so configuring glibc
3038   # with a fresh cross-compiler works.
3039   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3040   # <limits.h> exists even on freestanding compilers.
3041   # On the NeXT, cc -E runs the code through the compiler's parser,
3042   # not just through cpp. "Syntax error" is here to catch this case.
3043   cat >conftest.$ac_ext <<_ACEOF
3044 /* confdefs.h.  */
3045 _ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h.  */
3049 #ifdef __STDC__
3050 # include <limits.h>
3051 #else
3052 # include <assert.h>
3053 #endif
3054                      Syntax error
3055 _ACEOF
3056 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3057   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3058   ac_status=$?
3059   grep -v '^ *+' conftest.er1 >conftest.err
3060   rm -f conftest.er1
3061   cat conftest.err >&5
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); } >/dev/null; then
3064   if test -s conftest.err; then
3065     ac_cpp_err=$ac_c_preproc_warn_flag
3066     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3067   else
3068     ac_cpp_err=
3069   fi
3070 else
3071   ac_cpp_err=yes
3072 fi
3073 if test -z "$ac_cpp_err"; then
3074   :
3075 else
3076   echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3078
3079   # Broken: fails on valid input.
3080 continue
3081 fi
3082 rm -f conftest.err conftest.$ac_ext
3083
3084   # OK, works on sane cases.  Now check whether non-existent headers
3085   # can be detected and how.
3086   cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h.  */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h.  */
3092 #include <ac_nonexistent.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096   ac_status=$?
3097   grep -v '^ *+' conftest.er1 >conftest.err
3098   rm -f conftest.er1
3099   cat conftest.err >&5
3100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101   (exit $ac_status); } >/dev/null; then
3102   if test -s conftest.err; then
3103     ac_cpp_err=$ac_c_preproc_warn_flag
3104     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105   else
3106     ac_cpp_err=
3107   fi
3108 else
3109   ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112   # Broken: success on invalid input.
3113 continue
3114 else
3115   echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118   # Passes both tests.
3119 ac_preproc_ok=:
3120 break
3121 fi
3122 rm -f conftest.err conftest.$ac_ext
3123
3124 done
3125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3126 rm -f conftest.err conftest.$ac_ext
3127 if $ac_preproc_ok; then
3128   :
3129 else
3130   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&5
3132 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3133 See \`config.log' for more details." >&2;}
3134    { (exit 1); exit 1; }; }
3135 fi
3136
3137 ac_ext=c
3138 ac_cpp='$CPP $CPPFLAGS'
3139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3142
3143
3144 echo "$as_me:$LINENO: checking for egrep" >&5
3145 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3146 if test "${ac_cv_prog_egrep+set}" = set; then
3147   echo $ECHO_N "(cached) $ECHO_C" >&6
3148 else
3149   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3150     then ac_cv_prog_egrep='grep -E'
3151     else ac_cv_prog_egrep='egrep'
3152     fi
3153 fi
3154 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3155 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3156  EGREP=$ac_cv_prog_egrep
3157
3158
3159 if test $ac_cv_c_compiler_gnu = yes; then
3160     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3161 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3162 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3163   echo $ECHO_N "(cached) $ECHO_C" >&6
3164 else
3165     ac_pattern="Autoconf.*'x'"
3166   cat >conftest.$ac_ext <<_ACEOF
3167 /* confdefs.h.  */
3168 _ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h.  */
3172 #include <sgtty.h>
3173 Autoconf TIOCGETP
3174 _ACEOF
3175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3176   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3177   ac_cv_prog_gcc_traditional=yes
3178 else
3179   ac_cv_prog_gcc_traditional=no
3180 fi
3181 rm -f conftest*
3182
3183
3184   if test $ac_cv_prog_gcc_traditional = no; then
3185     cat >conftest.$ac_ext <<_ACEOF
3186 /* confdefs.h.  */
3187 _ACEOF
3188 cat confdefs.h >>conftest.$ac_ext
3189 cat >>conftest.$ac_ext <<_ACEOF
3190 /* end confdefs.h.  */
3191 #include <termio.h>
3192 Autoconf TCGETA
3193 _ACEOF
3194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3195   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3196   ac_cv_prog_gcc_traditional=yes
3197 fi
3198 rm -f conftest*
3199
3200   fi
3201 fi
3202 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3203 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3204   if test $ac_cv_prog_gcc_traditional = yes; then
3205     CC="$CC -traditional"
3206   fi
3207 fi
3208
3209 BASECC=`basename $CC`
3210 have_gcc=no
3211 if test "x$BASECC" = xgcc; then
3212    cat >>confdefs.h <<\_ACEOF
3213 #define HAVE_GCC 1
3214 _ACEOF
3215
3216    have_gcc=yes
3217 fi
3218 # Extract the first word of "$CXX", so it can be a program name with args.
3219 set dummy $CXX; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_CXX+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   case $CXX in
3226   [\\/]* | ?:[\\/]*)
3227   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3228   ;;
3229   *)
3230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH
3232 do
3233   IFS=$as_save_IFS
3234   test -z "$as_dir" && as_dir=.
3235   for ac_exec_ext in '' $ac_executable_extensions; do
3236   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3238     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3239     break 2
3240   fi
3241 done
3242 done
3243
3244   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3245   ;;
3246 esac
3247 fi
3248 CXX=$ac_cv_path_CXX
3249
3250 if test -n "$CXX"; then
3251   echo "$as_me:$LINENO: result: $CXX" >&5
3252 echo "${ECHO_T}$CXX" >&6
3253 else
3254   echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3256 fi
3257
3258 if test ! -e $CXX; then
3259    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3260 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3261    { (exit 1); exit 1; }; }
3262 fi
3263
3264 # Find a good install program.  We prefer a C program (faster),
3265 # so one script is as good as another.  But avoid the broken or
3266 # incompatible versions:
3267 # SysV /etc/install, /usr/sbin/install
3268 # SunOS /usr/etc/install
3269 # IRIX /sbin/install
3270 # AIX /bin/install
3271 # AmigaOS /C/install, which installs bootblocks on floppy discs
3272 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3273 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3274 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3275 # OS/2's system install, which has a completely different semantic
3276 # ./install, which can be erroneously created by make from ./install.sh.
3277 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3278 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3279 if test -z "$INSTALL"; then
3280 if test "${ac_cv_path_install+set}" = set; then
3281   echo $ECHO_N "(cached) $ECHO_C" >&6
3282 else
3283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 for as_dir in $PATH
3285 do
3286   IFS=$as_save_IFS
3287   test -z "$as_dir" && as_dir=.
3288   # Account for people who put trailing slashes in PATH elements.
3289 case $as_dir/ in
3290   ./ | .// | /cC/* | \
3291   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3292   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3293   /usr/ucb/* ) ;;
3294   *)
3295     # OSF1 and SCO ODT 3.0 have their own names for install.
3296     # Don't use installbsd from OSF since it installs stuff as root
3297     # by default.
3298     for ac_prog in ginstall scoinst install; do
3299       for ac_exec_ext in '' $ac_executable_extensions; do
3300         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3301           if test $ac_prog = install &&
3302             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3303             # AIX install.  It has an incompatible calling convention.
3304             :
3305           elif test $ac_prog = install &&
3306             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3307             # program-specific install script used by HP pwplus--don't use.
3308             :
3309           else
3310             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3311             break 3
3312           fi
3313         fi
3314       done
3315     done
3316     ;;
3317 esac
3318 done
3319
3320
3321 fi
3322   if test "${ac_cv_path_install+set}" = set; then
3323     INSTALL=$ac_cv_path_install
3324   else
3325     # As a last resort, use the slow shell script.  We don't cache a
3326     # path for INSTALL within a source directory, because that will
3327     # break other packages using the cache if that directory is
3328     # removed, or if the path is relative.
3329     INSTALL=$ac_install_sh
3330   fi
3331 fi
3332 echo "$as_me:$LINENO: result: $INSTALL" >&5
3333 echo "${ECHO_T}$INSTALL" >&6
3334
3335 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3336 # It thinks the first close brace ends the variable substitution.
3337 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3338
3339 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3340
3341 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3342
3343 if test -n "$ac_tool_prefix"; then
3344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_prog_RANLIB+set}" = set; then
3349   echo $ECHO_N "(cached) $ECHO_C" >&6
3350 else
3351   if test -n "$RANLIB"; then
3352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357   IFS=$as_save_IFS
3358   test -z "$as_dir" && as_dir=.
3359   for ac_exec_ext in '' $ac_executable_extensions; do
3360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3363     break 2
3364   fi
3365 done
3366 done
3367
3368 fi
3369 fi
3370 RANLIB=$ac_cv_prog_RANLIB
3371 if test -n "$RANLIB"; then
3372   echo "$as_me:$LINENO: result: $RANLIB" >&5
3373 echo "${ECHO_T}$RANLIB" >&6
3374 else
3375   echo "$as_me:$LINENO: result: no" >&5
3376 echo "${ECHO_T}no" >&6
3377 fi
3378
3379 fi
3380 if test -z "$ac_cv_prog_RANLIB"; then
3381   ac_ct_RANLIB=$RANLIB
3382   # Extract the first word of "ranlib", so it can be a program name with args.
3383 set dummy ranlib; ac_word=$2
3384 echo "$as_me:$LINENO: checking for $ac_word" >&5
3385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3386 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3387   echo $ECHO_N "(cached) $ECHO_C" >&6
3388 else
3389   if test -n "$ac_ct_RANLIB"; then
3390   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395   IFS=$as_save_IFS
3396   test -z "$as_dir" && as_dir=.
3397   for ac_exec_ext in '' $ac_executable_extensions; do
3398   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3399     ac_cv_prog_ac_ct_RANLIB="ranlib"
3400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3401     break 2
3402   fi
3403 done
3404 done
3405
3406   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3407 fi
3408 fi
3409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3410 if test -n "$ac_ct_RANLIB"; then
3411   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3412 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3413 else
3414   echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3416 fi
3417
3418   RANLIB=$ac_ct_RANLIB
3419 else
3420   RANLIB="$ac_cv_prog_RANLIB"
3421 fi
3422
3423 # Extract the first word of "mv", so it can be a program name with args.
3424 set dummy mv; ac_word=$2
3425 echo "$as_me:$LINENO: checking for $ac_word" >&5
3426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3427 if test "${ac_cv_path_MV+set}" = set; then
3428   echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430   case $MV in
3431   [\\/]* | ?:[\\/]*)
3432   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3433   ;;
3434   *)
3435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440   for ac_exec_ext in '' $ac_executable_extensions; do
3441   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3442     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444     break 2
3445   fi
3446 done
3447 done
3448
3449   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3450   ;;
3451 esac
3452 fi
3453 MV=$ac_cv_path_MV
3454
3455 if test -n "$MV"; then
3456   echo "$as_me:$LINENO: result: $MV" >&5
3457 echo "${ECHO_T}$MV" >&6
3458 else
3459   echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6
3461 fi
3462
3463 # Extract the first word of "rm", so it can be a program name with args.
3464 set dummy rm; ac_word=$2
3465 echo "$as_me:$LINENO: checking for $ac_word" >&5
3466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3467 if test "${ac_cv_path_RM+set}" = set; then
3468   echo $ECHO_N "(cached) $ECHO_C" >&6
3469 else
3470   case $RM in
3471   [\\/]* | ?:[\\/]*)
3472   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3473   ;;
3474   *)
3475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480   for ac_exec_ext in '' $ac_executable_extensions; do
3481   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487 done
3488
3489   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3490   ;;
3491 esac
3492 fi
3493 RM=$ac_cv_path_RM
3494
3495 if test -n "$RM"; then
3496   echo "$as_me:$LINENO: result: $RM" >&5
3497 echo "${ECHO_T}$RM" >&6
3498 else
3499   echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 fi
3502
3503 # Extract the first word of "cp", so it can be a program name with args.
3504 set dummy cp; ac_word=$2
3505 echo "$as_me:$LINENO: checking for $ac_word" >&5
3506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3507 if test "${ac_cv_path_CP+set}" = set; then
3508   echo $ECHO_N "(cached) $ECHO_C" >&6
3509 else
3510   case $CP in
3511   [\\/]* | ?:[\\/]*)
3512   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3513   ;;
3514   *)
3515   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520   for ac_exec_ext in '' $ac_executable_extensions; do
3521   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3523     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527 done
3528
3529   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3530   ;;
3531 esac
3532 fi
3533 CP=$ac_cv_path_CP
3534
3535 if test -n "$CP"; then
3536   echo "$as_me:$LINENO: result: $CP" >&5
3537 echo "${ECHO_T}$CP" >&6
3538 else
3539   echo "$as_me:$LINENO: result: no" >&5
3540 echo "${ECHO_T}no" >&6
3541 fi
3542
3543 # Extract the first word of "sed", so it can be a program name with args.
3544 set dummy sed; ac_word=$2
3545 echo "$as_me:$LINENO: checking for $ac_word" >&5
3546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3547 if test "${ac_cv_path_SED+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550   case $SED in
3551   [\\/]* | ?:[\\/]*)
3552   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3553   ;;
3554   *)
3555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560   for ac_exec_ext in '' $ac_executable_extensions; do
3561   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567 done
3568
3569   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3570   ;;
3571 esac
3572 fi
3573 SED=$ac_cv_path_SED
3574
3575 if test -n "$SED"; then
3576   echo "$as_me:$LINENO: result: $SED" >&5
3577 echo "${ECHO_T}$SED" >&6
3578 else
3579   echo "$as_me:$LINENO: result: no" >&5
3580 echo "${ECHO_T}no" >&6
3581 fi
3582
3583 # Extract the first word of "echo", so it can be a program name with args.
3584 set dummy echo; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ECHO+set}" = set; then
3588   echo $ECHO_N "(cached) $ECHO_C" >&6
3589 else
3590   case $ECHO in
3591   [\\/]* | ?:[\\/]*)
3592   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3593   ;;
3594   *)
3595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598   IFS=$as_save_IFS
3599   test -z "$as_dir" && as_dir=.
3600   for ac_exec_ext in '' $ac_executable_extensions; do
3601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604     break 2
3605   fi
3606 done
3607 done
3608
3609   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3610   ;;
3611 esac
3612 fi
3613 ECHO=$ac_cv_path_ECHO
3614
3615 if test -n "$ECHO"; then
3616   echo "$as_me:$LINENO: result: $ECHO" >&5
3617 echo "${ECHO_T}$ECHO" >&6
3618 else
3619   echo "$as_me:$LINENO: result: no" >&5
3620 echo "${ECHO_T}no" >&6
3621 fi
3622
3623 # Extract the first word of "cmp", so it can be a program name with args.
3624 set dummy cmp; ac_word=$2
3625 echo "$as_me:$LINENO: checking for $ac_word" >&5
3626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3627 if test "${ac_cv_path_CMP+set}" = set; then
3628   echo $ECHO_N "(cached) $ECHO_C" >&6
3629 else
3630   case $CMP in
3631   [\\/]* | ?:[\\/]*)
3632   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3633   ;;
3634   *)
3635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3636 for as_dir in $PATH
3637 do
3638   IFS=$as_save_IFS
3639   test -z "$as_dir" && as_dir=.
3640   for ac_exec_ext in '' $ac_executable_extensions; do
3641   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3642     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644     break 2
3645   fi
3646 done
3647 done
3648
3649   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3650   ;;
3651 esac
3652 fi
3653 CMP=$ac_cv_path_CMP
3654
3655 if test -n "$CMP"; then
3656   echo "$as_me:$LINENO: result: $CMP" >&5
3657 echo "${ECHO_T}$CMP" >&6
3658 else
3659   echo "$as_me:$LINENO: result: no" >&5
3660 echo "${ECHO_T}no" >&6
3661 fi
3662
3663 # Extract the first word of "tbl", so it can be a program name with args.
3664 set dummy tbl; ac_word=$2
3665 echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3667 if test "${ac_cv_path_TBL+set}" = set; then
3668   echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670   case $TBL in
3671   [\\/]* | ?:[\\/]*)
3672   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3673   ;;
3674   *)
3675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3677 do
3678   IFS=$as_save_IFS
3679   test -z "$as_dir" && as_dir=.
3680   for ac_exec_ext in '' $ac_executable_extensions; do
3681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684     break 2
3685   fi
3686 done
3687 done
3688
3689   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3690   ;;
3691 esac
3692 fi
3693 TBL=$ac_cv_path_TBL
3694
3695 if test -n "$TBL"; then
3696   echo "$as_me:$LINENO: result: $TBL" >&5
3697 echo "${ECHO_T}$TBL" >&6
3698 else
3699   echo "$as_me:$LINENO: result: no" >&5
3700 echo "${ECHO_T}no" >&6
3701 fi
3702
3703 # Extract the first word of "ar", so it can be a program name with args.
3704 set dummy ar; ac_word=$2
3705 echo "$as_me:$LINENO: checking for $ac_word" >&5
3706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3707 if test "${ac_cv_path_AR+set}" = set; then
3708   echo $ECHO_N "(cached) $ECHO_C" >&6
3709 else
3710   case $AR in
3711   [\\/]* | ?:[\\/]*)
3712   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3713   ;;
3714   *)
3715   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 for as_dir in $PATH
3717 do
3718   IFS=$as_save_IFS
3719   test -z "$as_dir" && as_dir=.
3720   for ac_exec_ext in '' $ac_executable_extensions; do
3721   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3722     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724     break 2
3725   fi
3726 done
3727 done
3728
3729   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3730   ;;
3731 esac
3732 fi
3733 AR=$ac_cv_path_AR
3734
3735 if test -n "$AR"; then
3736   echo "$as_me:$LINENO: result: $AR" >&5
3737 echo "${ECHO_T}$AR" >&6
3738 else
3739   echo "$as_me:$LINENO: result: no" >&5
3740 echo "${ECHO_T}no" >&6
3741 fi
3742
3743 # Extract the first word of "openssl", so it can be a program name with args.
3744 set dummy openssl; ac_word=$2
3745 echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3747 if test "${ac_cv_path_OPENSSL+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   case $OPENSSL in
3751   [\\/]* | ?:[\\/]*)
3752   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3753   ;;
3754   *)
3755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3757 do
3758   IFS=$as_save_IFS
3759   test -z "$as_dir" && as_dir=.
3760   for ac_exec_ext in '' $ac_executable_extensions; do
3761   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3762     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764     break 2
3765   fi
3766 done
3767 done
3768
3769   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3770   ;;
3771 esac
3772 fi
3773 OPENSSL=$ac_cv_path_OPENSSL
3774
3775 if test -n "$OPENSSL"; then
3776   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3777 echo "${ECHO_T}$OPENSSL" >&6
3778 else
3779   echo "$as_me:$LINENO: result: no" >&5
3780 echo "${ECHO_T}no" >&6
3781 fi
3782
3783 # Extract the first word of "mtx", so it can be a program name with args.
3784 set dummy mtx; ac_word=$2
3785 echo "$as_me:$LINENO: checking for $ac_word" >&5
3786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3787 if test "${ac_cv_path_MTX+set}" = set; then
3788   echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790   case $MTX in
3791   [\\/]* | ?:[\\/]*)
3792   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3793   ;;
3794   *)
3795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3797 do
3798   IFS=$as_save_IFS
3799   test -z "$as_dir" && as_dir=.
3800   for ac_exec_ext in '' $ac_executable_extensions; do
3801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3802     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804     break 2
3805   fi
3806 done
3807 done
3808
3809   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3810   ;;
3811 esac
3812 fi
3813 MTX=$ac_cv_path_MTX
3814
3815 if test -n "$MTX"; then
3816   echo "$as_me:$LINENO: result: $MTX" >&5
3817 echo "${ECHO_T}$MTX" >&6
3818 else
3819   echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6
3821 fi
3822
3823 # Extract the first word of "dd", so it can be a program name with args.
3824 set dummy dd; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_DD+set}" = set; then
3828   echo $ECHO_N "(cached) $ECHO_C" >&6
3829 else
3830   case $DD in
3831   [\\/]* | ?:[\\/]*)
3832   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3833   ;;
3834   *)
3835   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836 for as_dir in $PATH
3837 do
3838   IFS=$as_save_IFS
3839   test -z "$as_dir" && as_dir=.
3840   for ac_exec_ext in '' $ac_executable_extensions; do
3841   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3842     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3843     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3844     break 2
3845   fi
3846 done
3847 done
3848
3849   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3850   ;;
3851 esac
3852 fi
3853 DD=$ac_cv_path_DD
3854
3855 if test -n "$DD"; then
3856   echo "$as_me:$LINENO: result: $DD" >&5
3857 echo "${ECHO_T}$DD" >&6
3858 else
3859   echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6
3861 fi
3862
3863 # Extract the first word of "mkisofs", so it can be a program name with args.
3864 set dummy mkisofs; ac_word=$2
3865 echo "$as_me:$LINENO: checking for $ac_word" >&5
3866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3867 if test "${ac_cv_path_MKISOFS+set}" = set; then
3868   echo $ECHO_N "(cached) $ECHO_C" >&6
3869 else
3870   case $MKISOFS in
3871   [\\/]* | ?:[\\/]*)
3872   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3873   ;;
3874   *)
3875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880   for ac_exec_ext in '' $ac_executable_extensions; do
3881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887 done
3888
3889   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3890   ;;
3891 esac
3892 fi
3893 MKISOFS=$ac_cv_path_MKISOFS
3894
3895 if test -n "$MKISOFS"; then
3896   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3897 echo "${ECHO_T}$MKISOFS" >&6
3898 else
3899   echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3901 fi
3902
3903 # Extract the first word of "python", so it can be a program name with args.
3904 set dummy python; ac_word=$2
3905 echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3907 if test "${ac_cv_path_PYTHON+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   case $PYTHON in
3911   [\\/]* | ?:[\\/]*)
3912   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3913   ;;
3914   *)
3915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3923     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927 done
3928
3929   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3930   ;;
3931 esac
3932 fi
3933 PYTHON=$ac_cv_path_PYTHON
3934
3935 if test -n "$PYTHON"; then
3936   echo "$as_me:$LINENO: result: $PYTHON" >&5
3937 echo "${ECHO_T}$PYTHON" >&6
3938 else
3939   echo "$as_me:$LINENO: result: no" >&5
3940 echo "${ECHO_T}no" >&6
3941 fi
3942
3943 # Extract the first word of "growisofs", so it can be a program name with args.
3944 set dummy growisofs; ac_word=$2
3945 echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3947 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3948   echo $ECHO_N "(cached) $ECHO_C" >&6
3949 else
3950   case $GROWISOFS in
3951   [\\/]* | ?:[\\/]*)
3952   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3953   ;;
3954   *)
3955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3970   ;;
3971 esac
3972 fi
3973 GROWISOFS=$ac_cv_path_GROWISOFS
3974
3975 if test -n "$GROWISOFS"; then
3976   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3977 echo "${ECHO_T}$GROWISOFS" >&6
3978 else
3979   echo "$as_me:$LINENO: result: no" >&5
3980 echo "${ECHO_T}no" >&6
3981 fi
3982
3983 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3984 set dummy dvd+rw-mediainfo; ac_word=$2
3985 echo "$as_me:$LINENO: checking for $ac_word" >&5
3986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3987 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3988   echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990   case $DVDRWMEDIAINFO in
3991   [\\/]* | ?:[\\/]*)
3992   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3993   ;;
3994   *)
3995   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3996 for as_dir in $PATH
3997 do
3998   IFS=$as_save_IFS
3999   test -z "$as_dir" && as_dir=.
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4002     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4004     break 2
4005   fi
4006 done
4007 done
4008
4009   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4010   ;;
4011 esac
4012 fi
4013 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4014
4015 if test -n "$DVDRWMEDIAINFO"; then
4016   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4017 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4018 else
4019   echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4021 fi
4022
4023 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4024 set dummy dvd+rw-format; ac_word=$2
4025 echo "$as_me:$LINENO: checking for $ac_word" >&5
4026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4027 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030   case $DVDRWFORMAT in
4031   [\\/]* | ?:[\\/]*)
4032   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4033   ;;
4034   *)
4035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH
4037 do
4038   IFS=$as_save_IFS
4039   test -z "$as_dir" && as_dir=.
4040   for ac_exec_ext in '' $ac_executable_extensions; do
4041   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4042     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4043     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047 done
4048
4049   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4050   ;;
4051 esac
4052 fi
4053 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4054
4055 if test -n "$DVDRWFORMAT"; then
4056   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4057 echo "${ECHO_T}$DVDRWFORMAT" >&6
4058 else
4059   echo "$as_me:$LINENO: result: no" >&5
4060 echo "${ECHO_T}no" >&6
4061 fi
4062
4063 # Extract the first word of "pkg-config", so it can be a program name with args.
4064 set dummy pkg-config; ac_word=$2
4065 echo "$as_me:$LINENO: checking for $ac_word" >&5
4066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4067 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070   case $PKGCONFIG in
4071   [\\/]* | ?:[\\/]*)
4072   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4073   ;;
4074   *)
4075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080   for ac_exec_ext in '' $ac_executable_extensions; do
4081   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4084     break 2
4085   fi
4086 done
4087 done
4088
4089   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4090   ;;
4091 esac
4092 fi
4093 PKGCONFIG=$ac_cv_path_PKGCONFIG
4094
4095 if test -n "$PKGCONFIG"; then
4096   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4097 echo "${ECHO_T}$PKGCONFIG" >&6
4098 else
4099   echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103
4104 if test "x$WXCONFIG" = x; then
4105   WXCONFIG=wx-config
4106 fi
4107 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4108 set dummy ${WXCONFIG}; ac_word=$2
4109 echo "$as_me:$LINENO: checking for $ac_word" >&5
4110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4111 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4112   echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114   case $WXCONFIG in
4115   [\\/]* | ?:[\\/]*)
4116   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4117   ;;
4118   *)
4119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4121 do
4122   IFS=$as_save_IFS
4123   test -z "$as_dir" && as_dir=.
4124   for ac_exec_ext in '' $ac_executable_extensions; do
4125   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4127     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4128     break 2
4129   fi
4130 done
4131 done
4132
4133   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4134   ;;
4135 esac
4136 fi
4137 WXCONFIG=$ac_cv_path_WXCONFIG
4138
4139 if test -n "$WXCONFIG"; then
4140   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4141 echo "${ECHO_T}$WXCONFIG" >&6
4142 else
4143   echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6
4145 fi
4146
4147
4148 # Extract the first word of "cdrecord", so it can be a program name with args.
4149 set dummy cdrecord; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_path_CDRECORD+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   case $CDRECORD in
4156   [\\/]* | ?:[\\/]*)
4157   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4158   ;;
4159   *)
4160   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4161 for as_dir in $PATH
4162 do
4163   IFS=$as_save_IFS
4164   test -z "$as_dir" && as_dir=.
4165   for ac_exec_ext in '' $ac_executable_extensions; do
4166   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4167     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4168     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4169     break 2
4170   fi
4171 done
4172 done
4173
4174   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4175   ;;
4176 esac
4177 fi
4178 CDRECORD=$ac_cv_path_CDRECORD
4179
4180 if test -n "$CDRECORD"; then
4181   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4182 echo "${ECHO_T}$CDRECORD" >&6
4183 else
4184   echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6
4186 fi
4187
4188 # Extract the first word of "pidof", so it can be a program name with args.
4189 set dummy pidof; ac_word=$2
4190 echo "$as_me:$LINENO: checking for $ac_word" >&5
4191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4192 if test "${ac_cv_path_PIDOF+set}" = set; then
4193   echo $ECHO_N "(cached) $ECHO_C" >&6
4194 else
4195   case $PIDOF in
4196   [\\/]* | ?:[\\/]*)
4197   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4198   ;;
4199   *)
4200   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4201 for as_dir in $PATH
4202 do
4203   IFS=$as_save_IFS
4204   test -z "$as_dir" && as_dir=.
4205   for ac_exec_ext in '' $ac_executable_extensions; do
4206   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4209     break 2
4210   fi
4211 done
4212 done
4213
4214   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4215   ;;
4216 esac
4217 fi
4218 PIDOF=$ac_cv_path_PIDOF
4219
4220 if test -n "$PIDOF"; then
4221   echo "$as_me:$LINENO: result: $PIDOF" >&5
4222 echo "${ECHO_T}$PIDOF" >&6
4223 else
4224   echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228 for ac_prog in gawk mawk nawk awk
4229 do
4230   # Extract the first word of "$ac_prog", so it can be a program name with args.
4231 set dummy $ac_prog; ac_word=$2
4232 echo "$as_me:$LINENO: checking for $ac_word" >&5
4233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4234 if test "${ac_cv_prog_AWK+set}" = set; then
4235   echo $ECHO_N "(cached) $ECHO_C" >&6
4236 else
4237   if test -n "$AWK"; then
4238   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4239 else
4240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 for as_dir in $PATH
4242 do
4243   IFS=$as_save_IFS
4244   test -z "$as_dir" && as_dir=.
4245   for ac_exec_ext in '' $ac_executable_extensions; do
4246   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4247     ac_cv_prog_AWK="$ac_prog"
4248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4249     break 2
4250   fi
4251 done
4252 done
4253
4254 fi
4255 fi
4256 AWK=$ac_cv_prog_AWK
4257 if test -n "$AWK"; then
4258   echo "$as_me:$LINENO: result: $AWK" >&5
4259 echo "${ECHO_T}$AWK" >&6
4260 else
4261   echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4263 fi
4264
4265   test -n "$AWK" && break
4266 done
4267
4268 # Some AWK programs fail, so test it and warn the user
4269 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4270       { if ((prog == $2) || (("(" prog ")") == $2) ||
4271            (("" prog "") == $2) ||
4272            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4273 else
4274   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4275    The regex engine of $AWK is too broken to be used you
4276    might want to install GNU AWK.
4277    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4278 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4279    The regex engine of $AWK is too broken to be used you
4280    might want to install GNU AWK.
4281    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4282    { (exit 1); exit 1; }; }
4283 fi
4284 THE_AWK=$AWK
4285 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4286 set dummy $THE_AWK; ac_word=$2
4287 echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4289 if test "${ac_cv_path_AWK+set}" = set; then
4290   echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292   case $AWK in
4293   [\\/]* | ?:[\\/]*)
4294   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4295   ;;
4296   *)
4297   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4304     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310
4311   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4312   ;;
4313 esac
4314 fi
4315 AWK=$ac_cv_path_AWK
4316
4317 if test -n "$AWK"; then
4318   echo "$as_me:$LINENO: result: $AWK" >&5
4319 echo "${ECHO_T}$AWK" >&6
4320 else
4321   echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325
4326 test -n "$ARFLAG" || ARFLAGS="cr"
4327
4328
4329 MAKE_SHELL=/bin/sh
4330
4331
4332
4333
4334
4335
4336
4337 # Make sure we can run config.sub.
4338 $ac_config_sub sun4 >/dev/null 2>&1 ||
4339   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4340 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4341    { (exit 1); exit 1; }; }
4342
4343 echo "$as_me:$LINENO: checking build system type" >&5
4344 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4345 if test "${ac_cv_build+set}" = set; then
4346   echo $ECHO_N "(cached) $ECHO_C" >&6
4347 else
4348   ac_cv_build_alias=$build_alias
4349 test -z "$ac_cv_build_alias" &&
4350   ac_cv_build_alias=`$ac_config_guess`
4351 test -z "$ac_cv_build_alias" &&
4352   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4353 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4354    { (exit 1); exit 1; }; }
4355 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4356   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4357 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4358    { (exit 1); exit 1; }; }
4359
4360 fi
4361 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4362 echo "${ECHO_T}$ac_cv_build" >&6
4363 build=$ac_cv_build
4364 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4365 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4366 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4367
4368
4369
4370 echo "$as_me:$LINENO: checking host system type" >&5
4371 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4372 if test "${ac_cv_host+set}" = set; then
4373   echo $ECHO_N "(cached) $ECHO_C" >&6
4374 else
4375   ac_cv_host_alias=$host_alias
4376 test -z "$ac_cv_host_alias" &&
4377   ac_cv_host_alias=$ac_cv_build_alias
4378 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4379   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4380 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4381    { (exit 1); exit 1; }; }
4382
4383 fi
4384 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4385 echo "${ECHO_T}$ac_cv_host" >&6
4386 host=$ac_cv_host
4387 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4388 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4389 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4390
4391
4392 case $host_os in
4393   *cygwin* ) CYGWIN=yes;;
4394          * ) CYGWIN=no;;
4395 esac
4396
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4398 then
4399
4400
4401 if $TRUEPRG; then
4402   HAVE_SUN_OS_TRUE=
4403   HAVE_SUN_OS_FALSE='#'
4404 else
4405   HAVE_SUN_OS_TRUE='#'
4406   HAVE_SUN_OS_FALSE=
4407 fi
4408         cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_SUN_OS 1
4410 _ACEOF
4411
4412 else
4413
4414
4415 if $FALSEPRG; then
4416   HAVE_SUN_OS_TRUE=
4417   HAVE_SUN_OS_FALSE='#'
4418 else
4419   HAVE_SUN_OS_TRUE='#'
4420   HAVE_SUN_OS_FALSE=
4421 fi
4422 fi
4423
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4425 then
4426
4427
4428 if $TRUEPRG; then
4429   HAVE_OSF1_OS_TRUE=
4430   HAVE_OSF1_OS_FALSE='#'
4431 else
4432   HAVE_OSF1_OS_TRUE='#'
4433   HAVE_OSF1_OS_FALSE=
4434 fi
4435         cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_OSF1_OS 1
4437 _ACEOF
4438
4439 else
4440
4441
4442 if $FALSEPRG; then
4443   HAVE_OSF1_OS_TRUE=
4444   HAVE_OSF1_OS_FALSE='#'
4445 else
4446   HAVE_OSF1_OS_TRUE='#'
4447   HAVE_OSF1_OS_FALSE=
4448 fi
4449 fi
4450
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4452 then
4453
4454
4455 if $TRUEPRG; then
4456   HAVE_AIX_OS_TRUE=
4457   HAVE_AIX_OS_FALSE='#'
4458 else
4459   HAVE_AIX_OS_TRUE='#'
4460   HAVE_AIX_OS_FALSE=
4461 fi
4462         cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_AIX_OS 1
4464 _ACEOF
4465
4466 else
4467
4468
4469 if $FALSEPRG; then
4470   HAVE_AIX_OS_TRUE=
4471   HAVE_AIX_OS_FALSE='#'
4472 else
4473   HAVE_AIX_OS_TRUE='#'
4474   HAVE_AIX_OS_FALSE=
4475 fi
4476 fi
4477
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4479 then
4480
4481
4482 if $TRUEPRG; then
4483   HAVE_HPUX_OS_TRUE=
4484   HAVE_HPUX_OS_FALSE='#'
4485 else
4486   HAVE_HPUX_OS_TRUE='#'
4487   HAVE_HPUX_OS_FALSE=
4488 fi
4489         cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_HPUX_OS 1
4491 _ACEOF
4492
4493 else
4494
4495
4496 if $FALSEPRG; then
4497   HAVE_HPUX_OS_TRUE=
4498   HAVE_HPUX_OS_FALSE='#'
4499 else
4500   HAVE_HPUX_OS_TRUE='#'
4501   HAVE_HPUX_OS_FALSE=
4502 fi
4503 fi
4504
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4506 then
4507
4508
4509 if $TRUEPRG; then
4510   HAVE_LINUX_OS_TRUE=
4511   HAVE_LINUX_OS_FALSE='#'
4512 else
4513   HAVE_LINUX_OS_TRUE='#'
4514   HAVE_LINUX_OS_FALSE=
4515 fi
4516         cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_LINUX_OS 1
4518 _ACEOF
4519
4520 else
4521
4522
4523 if $FALSEPRG; then
4524   HAVE_LINUX_OS_TRUE=
4525   HAVE_LINUX_OS_FALSE='#'
4526 else
4527   HAVE_LINUX_OS_TRUE='#'
4528   HAVE_LINUX_OS_FALSE=
4529 fi
4530 fi
4531
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4533 then
4534
4535
4536 if $TRUEPRG; then
4537   HAVE_FREEBSD_OS_TRUE=
4538   HAVE_FREEBSD_OS_FALSE='#'
4539 else
4540   HAVE_FREEBSD_OS_TRUE='#'
4541   HAVE_FREEBSD_OS_FALSE=
4542 fi
4543         cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_FREEBSD_OS 1
4545 _ACEOF
4546
4547 else
4548
4549
4550 if $FALSEPRG; then
4551   HAVE_FREEBSD_OS_TRUE=
4552   HAVE_FREEBSD_OS_FALSE='#'
4553 else
4554   HAVE_FREEBSD_OS_TRUE='#'
4555   HAVE_FREEBSD_OS_FALSE=
4556 fi
4557 fi
4558
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4560 then
4561
4562
4563 if $TRUEPRG; then
4564   HAVE_NETBSD_OS_TRUE=
4565   HAVE_NETBSD_OS_FALSE='#'
4566 else
4567   HAVE_NETBSD_OS_TRUE='#'
4568   HAVE_NETBSD_OS_FALSE=
4569 fi
4570         cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_NETBSD_OS 1
4572 _ACEOF
4573
4574 else
4575
4576
4577 if $FALSEPRG; then
4578   HAVE_NETBSD_OS_TRUE=
4579   HAVE_NETBSD_OS_FALSE='#'
4580 else
4581   HAVE_NETBSD_OS_TRUE='#'
4582   HAVE_NETBSD_OS_FALSE=
4583 fi
4584 fi
4585
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4587 then
4588
4589
4590 if $TRUEPRG; then
4591   HAVE_OPENBSD_OS_TRUE=
4592   HAVE_OPENBSD_OS_FALSE='#'
4593 else
4594   HAVE_OPENBSD_OS_TRUE='#'
4595   HAVE_OPENBSD_OS_FALSE=
4596 fi
4597         cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_OPENBSD_OS 1
4599 _ACEOF
4600
4601 else
4602
4603
4604 if $FALSEPRG; then
4605   HAVE_OPENBSD_OS_TRUE=
4606   HAVE_OPENBSD_OS_FALSE='#'
4607 else
4608   HAVE_OPENBSD_OS_TRUE='#'
4609   HAVE_OPENBSD_OS_FALSE=
4610 fi
4611 fi
4612
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4614 then
4615
4616
4617 if $TRUEPRG; then
4618   HAVE_BSDI_OS_TRUE=
4619   HAVE_BSDI_OS_FALSE='#'
4620 else
4621   HAVE_BSDI_OS_TRUE='#'
4622   HAVE_BSDI_OS_FALSE=
4623 fi
4624         cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_BSDI_OS 1
4626 _ACEOF
4627
4628 else
4629
4630
4631 if $FALSEPRG; then
4632   HAVE_BSDI_OS_TRUE=
4633   HAVE_BSDI_OS_FALSE='#'
4634 else
4635   HAVE_BSDI_OS_TRUE='#'
4636   HAVE_BSDI_OS_FALSE=
4637 fi
4638 fi
4639
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4641 then
4642
4643
4644 if $TRUEPRG; then
4645   HAVE_SGI_OS_TRUE=
4646   HAVE_SGI_OS_FALSE='#'
4647 else
4648   HAVE_SGI_OS_TRUE='#'
4649   HAVE_SGI_OS_FALSE=
4650 fi
4651         cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_SGI_OS 1
4653 _ACEOF
4654
4655 else
4656
4657
4658 if $FALSEPRG; then
4659   HAVE_SGI_OS_TRUE=
4660   HAVE_SGI_OS_FALSE='#'
4661 else
4662   HAVE_SGI_OS_TRUE='#'
4663   HAVE_SGI_OS_FALSE=
4664 fi
4665 fi
4666
4667 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4668 then
4669
4670
4671 if $TRUEPRG; then
4672   HAVE_IRIX_OS_TRUE=
4673   HAVE_IRIX_OS_FALSE='#'
4674 else
4675   HAVE_IRIX_OS_TRUE='#'
4676   HAVE_IRIX_OS_FALSE=
4677 fi
4678         cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_IRIX_OS 1
4680 _ACEOF
4681
4682 else
4683
4684
4685 if $FALSEPRG; then
4686   HAVE_IRIX_OS_TRUE=
4687   HAVE_IRIX_OS_FALSE='#'
4688 else
4689   HAVE_IRIX_OS_TRUE='#'
4690   HAVE_IRIX_OS_FALSE=
4691 fi
4692 fi
4693
4694 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4695 then
4696
4697
4698 if $TRUEPRG; then
4699   HAVE_DARWIN_OS_TRUE=
4700   HAVE_DARWIN_OS_FALSE='#'
4701 else
4702   HAVE_DARWIN_OS_TRUE='#'
4703   HAVE_DARWIN_OS_FALSE=
4704 fi
4705     cat >>confdefs.h <<\_ACEOF
4706 #define HAVE_DARWIN_OS 1
4707 _ACEOF
4708
4709 else
4710
4711
4712 if $FALSEPRG; then
4713   HAVE_DARWIN_OS_TRUE=
4714   HAVE_DARWIN_OS_FALSE='#'
4715 else
4716   HAVE_DARWIN_OS_TRUE='#'
4717   HAVE_DARWIN_OS_FALSE=
4718 fi
4719 fi
4720
4721
4722 # -----------------------------------------------------------
4723 # ----------------------------------------------------------
4724 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4725 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4726 if test "x$DISTNAME" != "x"
4727 then
4728         echo "distname set to $DISTNAME"
4729 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4730 then
4731         DISTNAME=alpha
4732 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4733 then
4734         DISTNAME=aix
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4736 then
4737         DISTNAME=hpux
4738 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4739 then
4740         DISTNAME=solaris
4741 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4742 then
4743         DISTNAME=freebsd
4744 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4745 then
4746         DISTNAME=netbsd
4747 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4748 then
4749         DISTNAME=openbsd
4750 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4751 then
4752         DISTNAME=irix
4753 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4754 then
4755         DISTNAME=bsdi
4756 elif test -f /etc/SuSE-release
4757 then
4758         DISTNAME=suse
4759 elif test -d /etc/SuSEconfig
4760 then
4761         DISTNAME=suse5
4762 elif test -f /etc/mandrake-release
4763 then
4764         DISTNAME=mandrake
4765 elif test -f /etc/whitebox-release
4766 then
4767        DISTNAME=redhat
4768 elif test -f /etc/redhat-release
4769 then
4770         DISTNAME=redhat
4771 elif test -f /etc/gentoo-release
4772 then
4773         DISTNAME=gentoo
4774 elif test -f /etc/debian_version
4775 then
4776         DISTNAME=debian
4777 elif test -f /etc/slackware-version
4778 then
4779         DISTNAME=slackware
4780 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4781 then
4782     DISTNAME=darwin
4783 elif test -f /etc/engarde-version
4784 then
4785         DISTNAME=engarde
4786 elif test "$CYGWIN" = yes
4787 then
4788         DISTNAME=cygwin
4789         cat >>confdefs.h <<\_ACEOF
4790 #define HAVE_CYGWIN 1
4791 _ACEOF
4792
4793 else
4794         DISTNAME=unknown
4795 fi
4796 echo "$as_me:$LINENO: result: done" >&5
4797 echo "${ECHO_T}done" >&6
4798
4799
4800 # --------------------------------------------------
4801 # Suppport for gettext (translations)
4802 # By default, $datadir is ${prefix}/share
4803 # --------------------------------------------------
4804 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4805 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4806 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4807 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   cat >conftest.make <<\_ACEOF
4811 all:
4812         @echo 'ac_maketemp="$(MAKE)"'
4813 _ACEOF
4814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4815 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4816 if test -n "$ac_maketemp"; then
4817   eval ac_cv_prog_make_${ac_make}_set=yes
4818 else
4819   eval ac_cv_prog_make_${ac_make}_set=no
4820 fi
4821 rm -f conftest.make
4822 fi
4823 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4824   echo "$as_me:$LINENO: result: yes" >&5
4825 echo "${ECHO_T}yes" >&6
4826   SET_MAKE=
4827 else
4828   echo "$as_me:$LINENO: result: no" >&5
4829 echo "${ECHO_T}no" >&6
4830   SET_MAKE="MAKE=${MAKE-make}"
4831 fi
4832
4833
4834
4835         MKINSTALLDIRS=
4836   if test -n "$ac_aux_dir"; then
4837     case "$ac_aux_dir" in
4838       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4839       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4840     esac
4841   fi
4842   if test -z "$MKINSTALLDIRS"; then
4843     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4844   fi
4845
4846
4847
4848   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4850     # Check whether --enable-nls or --disable-nls was given.
4851 if test "${enable_nls+set}" = set; then
4852   enableval="$enable_nls"
4853   USE_NLS=$enableval
4854 else
4855   USE_NLS=yes
4856 fi;
4857   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4858 echo "${ECHO_T}$USE_NLS" >&6
4859
4860
4861
4862
4863
4864
4865 # Prepare PATH_SEPARATOR.
4866 # The user is always right.
4867 if test "${PATH_SEPARATOR+set}" != set; then
4868   echo "#! /bin/sh" >conf$$.sh
4869   echo  "exit 0"   >>conf$$.sh
4870   chmod +x conf$$.sh
4871   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4872     PATH_SEPARATOR=';'
4873   else
4874     PATH_SEPARATOR=:
4875   fi
4876   rm -f conf$$.sh
4877 fi
4878
4879 # Find out how to test for executable files. Don't use a zero-byte file,
4880 # as systems may use methods other than mode bits to determine executability.
4881 cat >conf$$.file <<_ASEOF
4882 #! /bin/sh
4883 exit 0
4884 _ASEOF
4885 chmod +x conf$$.file
4886 if test -x conf$$.file >/dev/null 2>&1; then
4887   ac_executable_p="test -x"
4888 else
4889   ac_executable_p="test -f"
4890 fi
4891 rm -f conf$$.file
4892
4893 # Extract the first word of "msgfmt", so it can be a program name with args.
4894 set dummy msgfmt; ac_word=$2
4895 echo "$as_me:$LINENO: checking for $ac_word" >&5
4896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4897 if test "${ac_cv_path_MSGFMT+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   case "$MSGFMT" in
4901   [\\/]* | ?:[\\/]*)
4902     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4903     ;;
4904   *)
4905     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4906     for ac_dir in $PATH; do
4907       IFS="$ac_save_IFS"
4908       test -z "$ac_dir" && ac_dir=.
4909       for ac_exec_ext in '' $ac_executable_extensions; do
4910         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4911           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4912           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4913      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4914             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4915             break 2
4916           fi
4917         fi
4918       done
4919     done
4920     IFS="$ac_save_IFS"
4921   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4922     ;;
4923 esac
4924 fi
4925 MSGFMT="$ac_cv_path_MSGFMT"
4926 if test "$MSGFMT" != ":"; then
4927   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4928 echo "${ECHO_T}$MSGFMT" >&6
4929 else
4930   echo "$as_me:$LINENO: result: no" >&5
4931 echo "${ECHO_T}no" >&6
4932 fi
4933
4934   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4935 set dummy gmsgfmt; ac_word=$2
4936 echo "$as_me:$LINENO: checking for $ac_word" >&5
4937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4938 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4939   echo $ECHO_N "(cached) $ECHO_C" >&6
4940 else
4941   case $GMSGFMT in
4942   [\\/]* | ?:[\\/]*)
4943   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4944   ;;
4945   *)
4946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4948 do
4949   IFS=$as_save_IFS
4950   test -z "$as_dir" && as_dir=.
4951   for ac_exec_ext in '' $ac_executable_extensions; do
4952   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4953     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4954     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955     break 2
4956   fi
4957 done
4958 done
4959
4960   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4961   ;;
4962 esac
4963 fi
4964 GMSGFMT=$ac_cv_path_GMSGFMT
4965
4966 if test -n "$GMSGFMT"; then
4967   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4968 echo "${ECHO_T}$GMSGFMT" >&6
4969 else
4970   echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6
4972 fi
4973
4974
4975
4976 # Prepare PATH_SEPARATOR.
4977 # The user is always right.
4978 if test "${PATH_SEPARATOR+set}" != set; then
4979   echo "#! /bin/sh" >conf$$.sh
4980   echo  "exit 0"   >>conf$$.sh
4981   chmod +x conf$$.sh
4982   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4983     PATH_SEPARATOR=';'
4984   else
4985     PATH_SEPARATOR=:
4986   fi
4987   rm -f conf$$.sh
4988 fi
4989
4990 # Find out how to test for executable files. Don't use a zero-byte file,
4991 # as systems may use methods other than mode bits to determine executability.
4992 cat >conf$$.file <<_ASEOF
4993 #! /bin/sh
4994 exit 0
4995 _ASEOF
4996 chmod +x conf$$.file
4997 if test -x conf$$.file >/dev/null 2>&1; then
4998   ac_executable_p="test -x"
4999 else
5000   ac_executable_p="test -f"
5001 fi
5002 rm -f conf$$.file
5003
5004 # Extract the first word of "xgettext", so it can be a program name with args.
5005 set dummy xgettext; ac_word=$2
5006 echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5009   echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011   case "$XGETTEXT" in
5012   [\\/]* | ?:[\\/]*)
5013     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5014     ;;
5015   *)
5016     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5017     for ac_dir in $PATH; do
5018       IFS="$ac_save_IFS"
5019       test -z "$ac_dir" && ac_dir=.
5020       for ac_exec_ext in '' $ac_executable_extensions; do
5021         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5022           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5023           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5024      (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
5025             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5026             break 2
5027           fi
5028         fi
5029       done
5030     done
5031     IFS="$ac_save_IFS"
5032   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5033     ;;
5034 esac
5035 fi
5036 XGETTEXT="$ac_cv_path_XGETTEXT"
5037 if test "$XGETTEXT" != ":"; then
5038   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5039 echo "${ECHO_T}$XGETTEXT" >&6
5040 else
5041   echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6
5043 fi
5044
5045     rm -f messages.po
5046
5047
5048 # Prepare PATH_SEPARATOR.
5049 # The user is always right.
5050 if test "${PATH_SEPARATOR+set}" != set; then
5051   echo "#! /bin/sh" >conf$$.sh
5052   echo  "exit 0"   >>conf$$.sh
5053   chmod +x conf$$.sh
5054   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5055     PATH_SEPARATOR=';'
5056   else
5057     PATH_SEPARATOR=:
5058   fi
5059   rm -f conf$$.sh
5060 fi
5061
5062 # Find out how to test for executable files. Don't use a zero-byte file,
5063 # as systems may use methods other than mode bits to determine executability.
5064 cat >conf$$.file <<_ASEOF
5065 #! /bin/sh
5066 exit 0
5067 _ASEOF
5068 chmod +x conf$$.file
5069 if test -x conf$$.file >/dev/null 2>&1; then
5070   ac_executable_p="test -x"
5071 else
5072   ac_executable_p="test -f"
5073 fi
5074 rm -f conf$$.file
5075
5076 # Extract the first word of "msgmerge", so it can be a program name with args.
5077 set dummy msgmerge; ac_word=$2
5078 echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5080 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   case "$MSGMERGE" in
5084   [\\/]* | ?:[\\/]*)
5085     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5086     ;;
5087   *)
5088     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5089     for ac_dir in $PATH; do
5090       IFS="$ac_save_IFS"
5091       test -z "$ac_dir" && ac_dir=.
5092       for ac_exec_ext in '' $ac_executable_extensions; do
5093         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5094           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5095           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5096             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5097             break 2
5098           fi
5099         fi
5100       done
5101     done
5102     IFS="$ac_save_IFS"
5103   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5104     ;;
5105 esac
5106 fi
5107 MSGMERGE="$ac_cv_path_MSGMERGE"
5108 if test "$MSGMERGE" != ":"; then
5109   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5110 echo "${ECHO_T}$MSGMERGE" >&6
5111 else
5112   echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6
5114 fi
5115
5116
5117       if test "$GMSGFMT" != ":"; then
5118             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5119        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5120       : ;
5121     else
5122       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5123       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5124 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5125       GMSGFMT=":"
5126     fi
5127   fi
5128
5129       if test "$XGETTEXT" != ":"; then
5130             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5131        (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
5132       : ;
5133     else
5134       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5135 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5136       XGETTEXT=":"
5137     fi
5138         rm -f messages.po
5139   fi
5140
5141             ac_config_commands="$ac_config_commands default-1"
5142
5143
5144
5145       if test "X$prefix" = "XNONE"; then
5146     acl_final_prefix="$ac_default_prefix"
5147   else
5148     acl_final_prefix="$prefix"
5149   fi
5150   if test "X$exec_prefix" = "XNONE"; then
5151     acl_final_exec_prefix='${prefix}'
5152   else
5153     acl_final_exec_prefix="$exec_prefix"
5154   fi
5155   acl_save_prefix="$prefix"
5156   prefix="$acl_final_prefix"
5157   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5158   prefix="$acl_save_prefix"
5159
5160
5161 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5162 if test "${with_gnu_ld+set}" = set; then
5163   withval="$with_gnu_ld"
5164   test "$withval" = no || with_gnu_ld=yes
5165 else
5166   with_gnu_ld=no
5167 fi;
5168 # Prepare PATH_SEPARATOR.
5169 # The user is always right.
5170 if test "${PATH_SEPARATOR+set}" != set; then
5171   echo "#! /bin/sh" >conf$$.sh
5172   echo  "exit 0"   >>conf$$.sh
5173   chmod +x conf$$.sh
5174   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5175     PATH_SEPARATOR=';'
5176   else
5177     PATH_SEPARATOR=:
5178   fi
5179   rm -f conf$$.sh
5180 fi
5181 ac_prog=ld
5182 if test "$GCC" = yes; then
5183   # Check if gcc -print-prog-name=ld gives a path.
5184   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5185 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5186   case $host in
5187   *-*-mingw*)
5188     # gcc leaves a trailing carriage return which upsets mingw
5189     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5190   *)
5191     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5192   esac
5193   case $ac_prog in
5194     # Accept absolute paths.
5195     [\\/]* | [A-Za-z]:[\\/]*)
5196       re_direlt='/[^/][^/]*/\.\./'
5197       # Canonicalize the path of ld
5198       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5199       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5200         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5201       done
5202       test -z "$LD" && LD="$ac_prog"
5203       ;;
5204   "")
5205     # If it fails, then pretend we aren't using GCC.
5206     ac_prog=ld
5207     ;;
5208   *)
5209     # If it is relative, then search for the first ld in PATH.
5210     with_gnu_ld=unknown
5211     ;;
5212   esac
5213 elif test "$with_gnu_ld" = yes; then
5214   echo "$as_me:$LINENO: checking for GNU ld" >&5
5215 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5216 else
5217   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5218 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5219 fi
5220 if test "${acl_cv_path_LD+set}" = set; then
5221   echo $ECHO_N "(cached) $ECHO_C" >&6
5222 else
5223   if test -z "$LD"; then
5224   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5225   for ac_dir in $PATH; do
5226     test -z "$ac_dir" && ac_dir=.
5227     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5228       acl_cv_path_LD="$ac_dir/$ac_prog"
5229       # Check to see if the program is GNU ld.  I'd rather use --version,
5230       # but apparently some GNU ld's only accept -v.
5231       # Break only if it was the GNU/non-GNU ld that we prefer.
5232       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5233       *GNU* | *'with BFD'*)
5234         test "$with_gnu_ld" != no && break ;;
5235       *)
5236         test "$with_gnu_ld" != yes && break ;;
5237       esac
5238     fi
5239   done
5240   IFS="$ac_save_ifs"
5241 else
5242   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5243 fi
5244 fi
5245
5246 LD="$acl_cv_path_LD"
5247 if test -n "$LD"; then
5248   echo "$as_me:$LINENO: result: $LD" >&5
5249 echo "${ECHO_T}$LD" >&6
5250 else
5251   echo "$as_me:$LINENO: result: no" >&5
5252 echo "${ECHO_T}no" >&6
5253 fi
5254 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5255 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5256    { (exit 1); exit 1; }; }
5257 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5258 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5259 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5260   echo $ECHO_N "(cached) $ECHO_C" >&6
5261 else
5262   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5263 case `$LD -v 2>&1 </dev/null` in
5264 *GNU* | *'with BFD'*)
5265   acl_cv_prog_gnu_ld=yes ;;
5266 *)
5267   acl_cv_prog_gnu_ld=no ;;
5268 esac
5269 fi
5270 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5271 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5272 with_gnu_ld=$acl_cv_prog_gnu_ld
5273
5274
5275
5276
5277                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5278 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5279 if test "${acl_cv_rpath+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282
5283     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5284     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5285     . ./conftest.sh
5286     rm -f ./conftest.sh
5287     acl_cv_rpath=done
5288
5289 fi
5290 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5291 echo "${ECHO_T}$acl_cv_rpath" >&6
5292   wl="$acl_cv_wl"
5293   libext="$acl_cv_libext"
5294   shlibext="$acl_cv_shlibext"
5295   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5296   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5297   hardcode_direct="$acl_cv_hardcode_direct"
5298   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5299     # Check whether --enable-rpath or --disable-rpath was given.
5300 if test "${enable_rpath+set}" = set; then
5301   enableval="$enable_rpath"
5302   :
5303 else
5304   enable_rpath=yes
5305 fi;
5306
5307
5308
5309
5310
5311
5312
5313     use_additional=yes
5314
5315   acl_save_prefix="$prefix"
5316   prefix="$acl_final_prefix"
5317   acl_save_exec_prefix="$exec_prefix"
5318   exec_prefix="$acl_final_exec_prefix"
5319
5320     eval additional_includedir=\"$includedir\"
5321     eval additional_libdir=\"$libdir\"
5322
5323   exec_prefix="$acl_save_exec_prefix"
5324   prefix="$acl_save_prefix"
5325
5326
5327 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5328 if test "${with_libiconv_prefix+set}" = set; then
5329   withval="$with_libiconv_prefix"
5330
5331     if test "X$withval" = "Xno"; then
5332       use_additional=no
5333     else
5334       if test "X$withval" = "X"; then
5335
5336   acl_save_prefix="$prefix"
5337   prefix="$acl_final_prefix"
5338   acl_save_exec_prefix="$exec_prefix"
5339   exec_prefix="$acl_final_exec_prefix"
5340
5341           eval additional_includedir=\"$includedir\"
5342           eval additional_libdir=\"$libdir\"
5343
5344   exec_prefix="$acl_save_exec_prefix"
5345   prefix="$acl_save_prefix"
5346
5347       else
5348         additional_includedir="$withval/include"
5349         additional_libdir="$withval/lib"
5350       fi
5351     fi
5352
5353 fi;
5354       LIBICONV=
5355   LTLIBICONV=
5356   INCICONV=
5357   rpathdirs=
5358   ltrpathdirs=
5359   names_already_handled=
5360   names_next_round='iconv '
5361   while test -n "$names_next_round"; do
5362     names_this_round="$names_next_round"
5363     names_next_round=
5364     for name in $names_this_round; do
5365       already_handled=
5366       for n in $names_already_handled; do
5367         if test "$n" = "$name"; then
5368           already_handled=yes
5369           break
5370         fi
5371       done
5372       if test -z "$already_handled"; then
5373         names_already_handled="$names_already_handled $name"
5374                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5375         eval value=\"\$HAVE_LIB$uppername\"
5376         if test -n "$value"; then
5377           if test "$value" = yes; then
5378             eval value=\"\$LIB$uppername\"
5379             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5380             eval value=\"\$LTLIB$uppername\"
5381             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5382           else
5383                                     :
5384           fi
5385         else
5386                               found_dir=
5387           found_la=
5388           found_so=
5389           found_a=
5390           if test $use_additional = yes; then
5391             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5392               found_dir="$additional_libdir"
5393               found_so="$additional_libdir/lib$name.$shlibext"
5394               if test -f "$additional_libdir/lib$name.la"; then
5395                 found_la="$additional_libdir/lib$name.la"
5396               fi
5397             else
5398               if test -f "$additional_libdir/lib$name.$libext"; then
5399                 found_dir="$additional_libdir"
5400                 found_a="$additional_libdir/lib$name.$libext"
5401                 if test -f "$additional_libdir/lib$name.la"; then
5402                   found_la="$additional_libdir/lib$name.la"
5403                 fi
5404               fi
5405             fi
5406           fi
5407           if test "X$found_dir" = "X"; then
5408             for x in $LDFLAGS $LTLIBICONV; do
5409
5410   acl_save_prefix="$prefix"
5411   prefix="$acl_final_prefix"
5412   acl_save_exec_prefix="$exec_prefix"
5413   exec_prefix="$acl_final_exec_prefix"
5414   eval x=\"$x\"
5415   exec_prefix="$acl_save_exec_prefix"
5416   prefix="$acl_save_prefix"
5417
5418               case "$x" in
5419                 -L*)
5420                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5421                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5422                     found_dir="$dir"
5423                     found_so="$dir/lib$name.$shlibext"
5424                     if test -f "$dir/lib$name.la"; then
5425                       found_la="$dir/lib$name.la"
5426                     fi
5427                   else
5428                     if test -f "$dir/lib$name.$libext"; then
5429                       found_dir="$dir"
5430                       found_a="$dir/lib$name.$libext"
5431                       if test -f "$dir/lib$name.la"; then
5432                         found_la="$dir/lib$name.la"
5433                       fi
5434                     fi
5435                   fi
5436                   ;;
5437               esac
5438               if test "X$found_dir" != "X"; then
5439                 break
5440               fi
5441             done
5442           fi
5443           if test "X$found_dir" != "X"; then
5444                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5445             if test "X$found_so" != "X"; then
5446                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5447                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5448               else
5449                                                                                 haveit=
5450                 for x in $ltrpathdirs; do
5451                   if test "X$x" = "X$found_dir"; then
5452                     haveit=yes
5453                     break
5454                   fi
5455                 done
5456                 if test -z "$haveit"; then
5457                   ltrpathdirs="$ltrpathdirs $found_dir"
5458                 fi
5459                                 if test "$hardcode_direct" = yes; then
5460                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5461                 else
5462                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5463                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5464                                                             haveit=
5465                     for x in $rpathdirs; do
5466                       if test "X$x" = "X$found_dir"; then
5467                         haveit=yes
5468                         break
5469                       fi
5470                     done
5471                     if test -z "$haveit"; then
5472                       rpathdirs="$rpathdirs $found_dir"
5473                     fi
5474                   else
5475                                                                                 haveit=
5476                     for x in $LDFLAGS $LIBICONV; do
5477
5478   acl_save_prefix="$prefix"
5479   prefix="$acl_final_prefix"
5480   acl_save_exec_prefix="$exec_prefix"
5481   exec_prefix="$acl_final_exec_prefix"
5482   eval x=\"$x\"
5483   exec_prefix="$acl_save_exec_prefix"
5484   prefix="$acl_save_prefix"
5485
5486                       if test "X$x" = "X-L$found_dir"; then
5487                         haveit=yes
5488                         break
5489                       fi
5490                     done
5491                     if test -z "$haveit"; then
5492                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5493                     fi
5494                     if test "$hardcode_minus_L" != no; then
5495                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5496                     else
5497                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5498                     fi
5499                   fi
5500                 fi
5501               fi
5502             else
5503               if test "X$found_a" != "X"; then
5504                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5505               else
5506                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5507               fi
5508             fi
5509                         additional_includedir=
5510             case "$found_dir" in
5511               */lib | */lib/)
5512                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5513                 additional_includedir="$basedir/include"
5514                 ;;
5515             esac
5516             if test "X$additional_includedir" != "X"; then
5517                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5518                 haveit=
5519                 if test "X$additional_includedir" = "X/usr/local/include"; then
5520                   if test -n "$GCC"; then
5521                     case $host_os in
5522                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5523                     esac
5524                   fi
5525                 fi
5526                 if test -z "$haveit"; then
5527                   for x in $CPPFLAGS $INCICONV; do
5528
5529   acl_save_prefix="$prefix"
5530   prefix="$acl_final_prefix"
5531   acl_save_exec_prefix="$exec_prefix"
5532   exec_prefix="$acl_final_exec_prefix"
5533   eval x=\"$x\"
5534   exec_prefix="$acl_save_exec_prefix"
5535   prefix="$acl_save_prefix"
5536
5537                     if test "X$x" = "X-I$additional_includedir"; then
5538                       haveit=yes
5539                       break
5540                     fi
5541                   done
5542                   if test -z "$haveit"; then
5543                     if test -d "$additional_includedir"; then
5544                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5545                     fi
5546                   fi
5547                 fi
5548               fi
5549             fi
5550                         if test -n "$found_la"; then
5551                                                         save_libdir="$libdir"
5552               case "$found_la" in
5553                 */* | *\\*) . "$found_la" ;;
5554                 *) . "./$found_la" ;;
5555               esac
5556               libdir="$save_libdir"
5557                             for dep in $dependency_libs; do
5558                 case "$dep" in
5559                   -L*)
5560                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5561                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5562                       haveit=
5563                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5564                         if test -n "$GCC"; then
5565                           case $host_os in
5566                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5567                           esac
5568                         fi
5569                       fi
5570                       if test -z "$haveit"; then
5571                         haveit=
5572                         for x in $LDFLAGS $LIBICONV; do
5573
5574   acl_save_prefix="$prefix"
5575   prefix="$acl_final_prefix"
5576   acl_save_exec_prefix="$exec_prefix"
5577   exec_prefix="$acl_final_exec_prefix"
5578   eval x=\"$x\"
5579   exec_prefix="$acl_save_exec_prefix"
5580   prefix="$acl_save_prefix"
5581
5582                           if test "X$x" = "X-L$additional_libdir"; then
5583                             haveit=yes
5584                             break
5585                           fi
5586                         done
5587                         if test -z "$haveit"; then
5588                           if test -d "$additional_libdir"; then
5589                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5590                           fi
5591                         fi
5592                         haveit=
5593                         for x in $LDFLAGS $LTLIBICONV; do
5594
5595   acl_save_prefix="$prefix"
5596   prefix="$acl_final_prefix"
5597   acl_save_exec_prefix="$exec_prefix"
5598   exec_prefix="$acl_final_exec_prefix"
5599   eval x=\"$x\"
5600   exec_prefix="$acl_save_exec_prefix"
5601   prefix="$acl_save_prefix"
5602
5603                           if test "X$x" = "X-L$additional_libdir"; then
5604                             haveit=yes
5605                             break
5606                           fi
5607                         done
5608                         if test -z "$haveit"; then
5609                           if test -d "$additional_libdir"; then
5610                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5611                           fi
5612                         fi
5613                       fi
5614                     fi
5615                     ;;
5616                   -R*)
5617                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5618                     if test "$enable_rpath" != no; then
5619                                                                   haveit=
5620                       for x in $rpathdirs; do
5621                         if test "X$x" = "X$dir"; then
5622                           haveit=yes
5623                           break
5624                         fi
5625                       done
5626                       if test -z "$haveit"; then
5627                         rpathdirs="$rpathdirs $dir"
5628                       fi
5629                                                                   haveit=
5630                       for x in $ltrpathdirs; do
5631                         if test "X$x" = "X$dir"; then
5632                           haveit=yes
5633                           break
5634                         fi
5635                       done
5636                       if test -z "$haveit"; then
5637                         ltrpathdirs="$ltrpathdirs $dir"
5638                       fi
5639                     fi
5640                     ;;
5641                   -l*)
5642                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5643                     ;;
5644                   *.la)
5645                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5646                     ;;
5647                   *)
5648                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5649                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5650                     ;;
5651                 esac
5652               done
5653             fi
5654           else
5655                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5656             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5657           fi
5658         fi
5659       fi
5660     done
5661   done
5662   if test "X$rpathdirs" != "X"; then
5663     if test -n "$hardcode_libdir_separator"; then
5664                         alldirs=
5665       for found_dir in $rpathdirs; do
5666         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5667       done
5668             acl_save_libdir="$libdir"
5669       libdir="$alldirs"
5670       eval flag=\"$hardcode_libdir_flag_spec\"
5671       libdir="$acl_save_libdir"
5672       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5673     else
5674             for found_dir in $rpathdirs; do
5675         acl_save_libdir="$libdir"
5676         libdir="$found_dir"
5677         eval flag=\"$hardcode_libdir_flag_spec\"
5678         libdir="$acl_save_libdir"
5679         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5680       done
5681     fi
5682   fi
5683   if test "X$ltrpathdirs" != "X"; then
5684             for found_dir in $ltrpathdirs; do
5685       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5686     done
5687   fi
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5707 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5708 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5709   echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711   gt_save_CPPFLAGS="$CPPFLAGS"
5712      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5713      gt_save_LIBS="$LIBS"
5714      LIBS="$LIBS -framework CoreFoundation"
5715      cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h.  */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h.  */
5721 #include <CFPreferences.h>
5722 int
5723 main ()
5724 {
5725 CFPreferencesCopyAppValue(NULL, NULL)
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext conftest$ac_exeext
5731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5732   (eval $ac_link) 2>conftest.er1
5733   ac_status=$?
5734   grep -v '^ *+' conftest.er1 >conftest.err
5735   rm -f conftest.er1
5736   cat conftest.err >&5
5737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738   (exit $ac_status); } &&
5739          { ac_try='test -z "$ac_c_werror_flag"
5740                          || test ! -s conftest.err'
5741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742   (eval $ac_try) 2>&5
5743   ac_status=$?
5744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); }; } &&
5746          { ac_try='test -s conftest$ac_exeext'
5747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748   (eval $ac_try) 2>&5
5749   ac_status=$?
5750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751   (exit $ac_status); }; }; then
5752   gt_cv_func_CFPreferencesCopyAppValue=yes
5753 else
5754   echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5756
5757 gt_cv_func_CFPreferencesCopyAppValue=no
5758 fi
5759 rm -f conftest.err conftest.$ac_objext \
5760       conftest$ac_exeext conftest.$ac_ext
5761      CPPFLAGS="$gt_save_CPPFLAGS"
5762      LIBS="$gt_save_LIBS"
5763 fi
5764 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5765 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5766   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5767
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5770 _ACEOF
5771
5772   fi
5773     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5774 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5775 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5776   echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778   gt_save_CPPFLAGS="$CPPFLAGS"
5779      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5780      gt_save_LIBS="$LIBS"
5781      LIBS="$LIBS -framework CoreFoundation"
5782      cat >conftest.$ac_ext <<_ACEOF
5783 /* confdefs.h.  */
5784 _ACEOF
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h.  */
5788 #include <CFLocale.h>
5789 int
5790 main ()
5791 {
5792 CFLocaleCopyCurrent();
5793   ;
5794   return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5799   (eval $ac_link) 2>conftest.er1
5800   ac_status=$?
5801   grep -v '^ *+' conftest.er1 >conftest.err
5802   rm -f conftest.er1
5803   cat conftest.err >&5
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); } &&
5806          { ac_try='test -z "$ac_c_werror_flag"
5807                          || test ! -s conftest.err'
5808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809   (eval $ac_try) 2>&5
5810   ac_status=$?
5811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812   (exit $ac_status); }; } &&
5813          { ac_try='test -s conftest$ac_exeext'
5814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815   (eval $ac_try) 2>&5
5816   ac_status=$?
5817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818   (exit $ac_status); }; }; then
5819   gt_cv_func_CFLocaleCopyCurrent=yes
5820 else
5821   echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.$ac_ext >&5
5823
5824 gt_cv_func_CFLocaleCopyCurrent=no
5825 fi
5826 rm -f conftest.err conftest.$ac_objext \
5827       conftest$ac_exeext conftest.$ac_ext
5828      CPPFLAGS="$gt_save_CPPFLAGS"
5829      LIBS="$gt_save_LIBS"
5830 fi
5831 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5833   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5834
5835 cat >>confdefs.h <<\_ACEOF
5836 #define HAVE_CFLOCALECOPYCURRENT 1
5837 _ACEOF
5838
5839   fi
5840   INTL_MACOSX_LIBS=
5841   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5842     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5843   fi
5844
5845
5846
5847
5848   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5850     # Check whether --enable-nls or --disable-nls was given.
5851 if test "${enable_nls+set}" = set; then
5852   enableval="$enable_nls"
5853   USE_NLS=$enableval
5854 else
5855   USE_NLS=yes
5856 fi;
5857   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5858 echo "${ECHO_T}$USE_NLS" >&6
5859
5860
5861
5862
5863   LIBINTL=
5864   LTLIBINTL=
5865   POSUB=
5866
5867     if test "$USE_NLS" = "yes"; then
5868     gt_use_preinstalled_gnugettext=no
5869
5870
5871
5872
5873
5874
5875         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5878   echo $ECHO_N "(cached) $ECHO_C" >&6
5879 else
5880   cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h.  */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h.  */
5886 #include <libintl.h>
5887 extern int _nl_msg_cat_cntr;
5888 extern int *_nl_domain_bindings;
5889 int
5890 main ()
5891 {
5892 bindtextdomain ("", "");
5893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext conftest$ac_exeext
5899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5900   (eval $ac_link) 2>conftest.er1
5901   ac_status=$?
5902   grep -v '^ *+' conftest.er1 >conftest.err
5903   rm -f conftest.er1
5904   cat conftest.err >&5
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); } &&
5907          { ac_try='test -z "$ac_c_werror_flag"
5908                          || test ! -s conftest.err'
5909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910   (eval $ac_try) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); }; } &&
5914          { ac_try='test -s conftest$ac_exeext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   gt_cv_func_gnugettext1_libc=yes
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925 gt_cv_func_gnugettext1_libc=no
5926 fi
5927 rm -f conftest.err conftest.$ac_objext \
5928       conftest$ac_exeext conftest.$ac_ext
5929 fi
5930 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5931 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5932
5933         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5934
5935
5936
5937
5938
5939           am_save_CPPFLAGS="$CPPFLAGS"
5940
5941   for element in $INCICONV; do
5942     haveit=
5943     for x in $CPPFLAGS; do
5944
5945   acl_save_prefix="$prefix"
5946   prefix="$acl_final_prefix"
5947   acl_save_exec_prefix="$exec_prefix"
5948   exec_prefix="$acl_final_exec_prefix"
5949   eval x=\"$x\"
5950   exec_prefix="$acl_save_exec_prefix"
5951   prefix="$acl_save_prefix"
5952
5953       if test "X$x" = "X$element"; then
5954         haveit=yes
5955         break
5956       fi
5957     done
5958     if test -z "$haveit"; then
5959       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5960     fi
5961   done
5962
5963
5964   echo "$as_me:$LINENO: checking for iconv" >&5
5965 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5966 if test "${am_cv_func_iconv+set}" = set; then
5967   echo $ECHO_N "(cached) $ECHO_C" >&6
5968 else
5969
5970     am_cv_func_iconv="no, consider installing GNU libiconv"
5971     am_cv_lib_iconv=no
5972     cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <stdlib.h>
5979 #include <iconv.h>
5980 int
5981 main ()
5982 {
5983 iconv_t cd = iconv_open("","");
5984        iconv(cd,NULL,NULL,NULL,NULL);
5985        iconv_close(cd);
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992   (eval $ac_link) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag"
6000                          || test ! -s conftest.err'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; } &&
6006          { ac_try='test -s conftest$ac_exeext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   am_cv_func_iconv=yes
6013 else
6014   echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 fi
6018 rm -f conftest.err conftest.$ac_objext \
6019       conftest$ac_exeext conftest.$ac_ext
6020     if test "$am_cv_func_iconv" != yes; then
6021       am_save_LIBS="$LIBS"
6022       LIBS="$LIBS $LIBICONV"
6023       cat >conftest.$ac_ext <<_ACEOF
6024 /* confdefs.h.  */
6025 _ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h.  */
6029 #include <stdlib.h>
6030 #include <iconv.h>
6031 int
6032 main ()
6033 {
6034 iconv_t cd = iconv_open("","");
6035          iconv(cd,NULL,NULL,NULL,NULL);
6036          iconv_close(cd);
6037   ;
6038   return 0;
6039 }
6040 _ACEOF
6041 rm -f conftest.$ac_objext conftest$ac_exeext
6042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6043   (eval $ac_link) 2>conftest.er1
6044   ac_status=$?
6045   grep -v '^ *+' conftest.er1 >conftest.err
6046   rm -f conftest.er1
6047   cat conftest.err >&5
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); } &&
6050          { ac_try='test -z "$ac_c_werror_flag"
6051                          || test ! -s conftest.err'
6052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053   (eval $ac_try) 2>&5
6054   ac_status=$?
6055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056   (exit $ac_status); }; } &&
6057          { ac_try='test -s conftest$ac_exeext'
6058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059   (eval $ac_try) 2>&5
6060   ac_status=$?
6061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062   (exit $ac_status); }; }; then
6063   am_cv_lib_iconv=yes
6064         am_cv_func_iconv=yes
6065 else
6066   echo "$as_me: failed program was:" >&5
6067 sed 's/^/| /' conftest.$ac_ext >&5
6068
6069 fi
6070 rm -f conftest.err conftest.$ac_objext \
6071       conftest$ac_exeext conftest.$ac_ext
6072       LIBS="$am_save_LIBS"
6073     fi
6074
6075 fi
6076 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6077 echo "${ECHO_T}$am_cv_func_iconv" >&6
6078   if test "$am_cv_func_iconv" = yes; then
6079
6080 cat >>confdefs.h <<\_ACEOF
6081 #define HAVE_ICONV 1
6082 _ACEOF
6083
6084   fi
6085   if test "$am_cv_lib_iconv" = yes; then
6086     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6087 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6088     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6089 echo "${ECHO_T}$LIBICONV" >&6
6090   else
6091             CPPFLAGS="$am_save_CPPFLAGS"
6092     LIBICONV=
6093     LTLIBICONV=
6094   fi
6095
6096
6097
6098
6099
6100
6101     use_additional=yes
6102
6103   acl_save_prefix="$prefix"
6104   prefix="$acl_final_prefix"
6105   acl_save_exec_prefix="$exec_prefix"
6106   exec_prefix="$acl_final_exec_prefix"
6107
6108     eval additional_includedir=\"$includedir\"
6109     eval additional_libdir=\"$libdir\"
6110
6111   exec_prefix="$acl_save_exec_prefix"
6112   prefix="$acl_save_prefix"
6113
6114
6115 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6116 if test "${with_libintl_prefix+set}" = set; then
6117   withval="$with_libintl_prefix"
6118
6119     if test "X$withval" = "Xno"; then
6120       use_additional=no
6121     else
6122       if test "X$withval" = "X"; then
6123
6124   acl_save_prefix="$prefix"
6125   prefix="$acl_final_prefix"
6126   acl_save_exec_prefix="$exec_prefix"
6127   exec_prefix="$acl_final_exec_prefix"
6128
6129           eval additional_includedir=\"$includedir\"
6130           eval additional_libdir=\"$libdir\"
6131
6132   exec_prefix="$acl_save_exec_prefix"
6133   prefix="$acl_save_prefix"
6134
6135       else
6136         additional_includedir="$withval/include"
6137         additional_libdir="$withval/lib"
6138       fi
6139     fi
6140
6141 fi;
6142       LIBINTL=
6143   LTLIBINTL=
6144   INCINTL=
6145   rpathdirs=
6146   ltrpathdirs=
6147   names_already_handled=
6148   names_next_round='intl '
6149   while test -n "$names_next_round"; do
6150     names_this_round="$names_next_round"
6151     names_next_round=
6152     for name in $names_this_round; do
6153       already_handled=
6154       for n in $names_already_handled; do
6155         if test "$n" = "$name"; then
6156           already_handled=yes
6157           break
6158         fi
6159       done
6160       if test -z "$already_handled"; then
6161         names_already_handled="$names_already_handled $name"
6162                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6163         eval value=\"\$HAVE_LIB$uppername\"
6164         if test -n "$value"; then
6165           if test "$value" = yes; then
6166             eval value=\"\$LIB$uppername\"
6167             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6168             eval value=\"\$LTLIB$uppername\"
6169             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6170           else
6171                                     :
6172           fi
6173         else
6174                               found_dir=
6175           found_la=
6176           found_so=
6177           found_a=
6178           if test $use_additional = yes; then
6179             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6180               found_dir="$additional_libdir"
6181               found_so="$additional_libdir/lib$name.$shlibext"
6182               if test -f "$additional_libdir/lib$name.la"; then
6183                 found_la="$additional_libdir/lib$name.la"
6184               fi
6185             else
6186               if test -f "$additional_libdir/lib$name.$libext"; then
6187                 found_dir="$additional_libdir"
6188                 found_a="$additional_libdir/lib$name.$libext"
6189                 if test -f "$additional_libdir/lib$name.la"; then
6190                   found_la="$additional_libdir/lib$name.la"
6191                 fi
6192               fi
6193             fi
6194           fi
6195           if test "X$found_dir" = "X"; then
6196             for x in $LDFLAGS $LTLIBINTL; do
6197
6198   acl_save_prefix="$prefix"
6199   prefix="$acl_final_prefix"
6200   acl_save_exec_prefix="$exec_prefix"
6201   exec_prefix="$acl_final_exec_prefix"
6202   eval x=\"$x\"
6203   exec_prefix="$acl_save_exec_prefix"
6204   prefix="$acl_save_prefix"
6205
6206               case "$x" in
6207                 -L*)
6208                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6209                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6210                     found_dir="$dir"
6211                     found_so="$dir/lib$name.$shlibext"
6212                     if test -f "$dir/lib$name.la"; then
6213                       found_la="$dir/lib$name.la"
6214                     fi
6215                   else
6216                     if test -f "$dir/lib$name.$libext"; then
6217                       found_dir="$dir"
6218                       found_a="$dir/lib$name.$libext"
6219                       if test -f "$dir/lib$name.la"; then
6220                         found_la="$dir/lib$name.la"
6221                       fi
6222                     fi
6223                   fi
6224                   ;;
6225               esac
6226               if test "X$found_dir" != "X"; then
6227                 break
6228               fi
6229             done
6230           fi
6231           if test "X$found_dir" != "X"; then
6232                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6233             if test "X$found_so" != "X"; then
6234                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6235                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6236               else
6237                                                                                 haveit=
6238                 for x in $ltrpathdirs; do
6239                   if test "X$x" = "X$found_dir"; then
6240                     haveit=yes
6241                     break
6242                   fi
6243                 done
6244                 if test -z "$haveit"; then
6245                   ltrpathdirs="$ltrpathdirs $found_dir"
6246                 fi
6247                                 if test "$hardcode_direct" = yes; then
6248                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6249                 else
6250                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6251                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6252                                                             haveit=
6253                     for x in $rpathdirs; do
6254                       if test "X$x" = "X$found_dir"; then
6255                         haveit=yes
6256                         break
6257                       fi
6258                     done
6259                     if test -z "$haveit"; then
6260                       rpathdirs="$rpathdirs $found_dir"
6261                     fi
6262                   else
6263                                                                                 haveit=
6264                     for x in $LDFLAGS $LIBINTL; do
6265
6266   acl_save_prefix="$prefix"
6267   prefix="$acl_final_prefix"
6268   acl_save_exec_prefix="$exec_prefix"
6269   exec_prefix="$acl_final_exec_prefix"
6270   eval x=\"$x\"
6271   exec_prefix="$acl_save_exec_prefix"
6272   prefix="$acl_save_prefix"
6273
6274                       if test "X$x" = "X-L$found_dir"; then
6275                         haveit=yes
6276                         break
6277                       fi
6278                     done
6279                     if test -z "$haveit"; then
6280                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6281                     fi
6282                     if test "$hardcode_minus_L" != no; then
6283                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6284                     else
6285                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6286                     fi
6287                   fi
6288                 fi
6289               fi
6290             else
6291               if test "X$found_a" != "X"; then
6292                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6293               else
6294                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6295               fi
6296             fi
6297                         additional_includedir=
6298             case "$found_dir" in
6299               */lib | */lib/)
6300                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6301                 additional_includedir="$basedir/include"
6302                 ;;
6303             esac
6304             if test "X$additional_includedir" != "X"; then
6305                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6306                 haveit=
6307                 if test "X$additional_includedir" = "X/usr/local/include"; then
6308                   if test -n "$GCC"; then
6309                     case $host_os in
6310                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6311                     esac
6312                   fi
6313                 fi
6314                 if test -z "$haveit"; then
6315                   for x in $CPPFLAGS $INCINTL; do
6316
6317   acl_save_prefix="$prefix"
6318   prefix="$acl_final_prefix"
6319   acl_save_exec_prefix="$exec_prefix"
6320   exec_prefix="$acl_final_exec_prefix"
6321   eval x=\"$x\"
6322   exec_prefix="$acl_save_exec_prefix"
6323   prefix="$acl_save_prefix"
6324
6325                     if test "X$x" = "X-I$additional_includedir"; then
6326                       haveit=yes
6327                       break
6328                     fi
6329                   done
6330                   if test -z "$haveit"; then
6331                     if test -d "$additional_includedir"; then
6332                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6333                     fi
6334                   fi
6335                 fi
6336               fi
6337             fi
6338                         if test -n "$found_la"; then
6339                                                         save_libdir="$libdir"
6340               case "$found_la" in
6341                 */* | *\\*) . "$found_la" ;;
6342                 *) . "./$found_la" ;;
6343               esac
6344               libdir="$save_libdir"
6345                             for dep in $dependency_libs; do
6346                 case "$dep" in
6347                   -L*)
6348                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6349                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6350                       haveit=
6351                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6352                         if test -n "$GCC"; then
6353                           case $host_os in
6354                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6355                           esac
6356                         fi
6357                       fi
6358                       if test -z "$haveit"; then
6359                         haveit=
6360                         for x in $LDFLAGS $LIBINTL; do
6361
6362   acl_save_prefix="$prefix"
6363   prefix="$acl_final_prefix"
6364   acl_save_exec_prefix="$exec_prefix"
6365   exec_prefix="$acl_final_exec_prefix"
6366   eval x=\"$x\"
6367   exec_prefix="$acl_save_exec_prefix"
6368   prefix="$acl_save_prefix"
6369
6370                           if test "X$x" = "X-L$additional_libdir"; then
6371                             haveit=yes
6372                             break
6373                           fi
6374                         done
6375                         if test -z "$haveit"; then
6376                           if test -d "$additional_libdir"; then
6377                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6378                           fi
6379                         fi
6380                         haveit=
6381                         for x in $LDFLAGS $LTLIBINTL; do
6382
6383   acl_save_prefix="$prefix"
6384   prefix="$acl_final_prefix"
6385   acl_save_exec_prefix="$exec_prefix"
6386   exec_prefix="$acl_final_exec_prefix"
6387   eval x=\"$x\"
6388   exec_prefix="$acl_save_exec_prefix"
6389   prefix="$acl_save_prefix"
6390
6391                           if test "X$x" = "X-L$additional_libdir"; then
6392                             haveit=yes
6393                             break
6394                           fi
6395                         done
6396                         if test -z "$haveit"; then
6397                           if test -d "$additional_libdir"; then
6398                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6399                           fi
6400                         fi
6401                       fi
6402                     fi
6403                     ;;
6404                   -R*)
6405                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6406                     if test "$enable_rpath" != no; then
6407                                                                   haveit=
6408                       for x in $rpathdirs; do
6409                         if test "X$x" = "X$dir"; then
6410                           haveit=yes
6411                           break
6412                         fi
6413                       done
6414                       if test -z "$haveit"; then
6415                         rpathdirs="$rpathdirs $dir"
6416                       fi
6417                                                                   haveit=
6418                       for x in $ltrpathdirs; do
6419                         if test "X$x" = "X$dir"; then
6420                           haveit=yes
6421                           break
6422                         fi
6423                       done
6424                       if test -z "$haveit"; then
6425                         ltrpathdirs="$ltrpathdirs $dir"
6426                       fi
6427                     fi
6428                     ;;
6429                   -l*)
6430                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6431                     ;;
6432                   *.la)
6433                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6434                     ;;
6435                   *)
6436                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6437                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6438                     ;;
6439                 esac
6440               done
6441             fi
6442           else
6443                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6444             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6445           fi
6446         fi
6447       fi
6448     done
6449   done
6450   if test "X$rpathdirs" != "X"; then
6451     if test -n "$hardcode_libdir_separator"; then
6452                         alldirs=
6453       for found_dir in $rpathdirs; do
6454         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6455       done
6456             acl_save_libdir="$libdir"
6457       libdir="$alldirs"
6458       eval flag=\"$hardcode_libdir_flag_spec\"
6459       libdir="$acl_save_libdir"
6460       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6461     else
6462             for found_dir in $rpathdirs; do
6463         acl_save_libdir="$libdir"
6464         libdir="$found_dir"
6465         eval flag=\"$hardcode_libdir_flag_spec\"
6466         libdir="$acl_save_libdir"
6467         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6468       done
6469     fi
6470   fi
6471   if test "X$ltrpathdirs" != "X"; then
6472             for found_dir in $ltrpathdirs; do
6473       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6474     done
6475   fi
6476
6477           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6478 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6479 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6480   echo $ECHO_N "(cached) $ECHO_C" >&6
6481 else
6482   gt_save_CPPFLAGS="$CPPFLAGS"
6483             CPPFLAGS="$CPPFLAGS $INCINTL"
6484             gt_save_LIBS="$LIBS"
6485             LIBS="$LIBS $LIBINTL"
6486                         cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #include <libintl.h>
6493 extern int _nl_msg_cat_cntr;
6494 extern
6495 #ifdef __cplusplus
6496 "C"
6497 #endif
6498 const char *_nl_expand_alias (const char *);
6499 int
6500 main ()
6501 {
6502 bindtextdomain ("", "");
6503 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6504   ;
6505   return 0;
6506 }
6507 _ACEOF
6508 rm -f conftest.$ac_objext conftest$ac_exeext
6509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6510   (eval $ac_link) 2>conftest.er1
6511   ac_status=$?
6512   grep -v '^ *+' conftest.er1 >conftest.err
6513   rm -f conftest.er1
6514   cat conftest.err >&5
6515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516   (exit $ac_status); } &&
6517          { ac_try='test -z "$ac_c_werror_flag"
6518                          || test ! -s conftest.err'
6519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6520   (eval $ac_try) 2>&5
6521   ac_status=$?
6522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6523   (exit $ac_status); }; } &&
6524          { ac_try='test -s conftest$ac_exeext'
6525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6526   (eval $ac_try) 2>&5
6527   ac_status=$?
6528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529   (exit $ac_status); }; }; then
6530   gt_cv_func_gnugettext1_libintl=yes
6531 else
6532   echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6534
6535 gt_cv_func_gnugettext1_libintl=no
6536 fi
6537 rm -f conftest.err conftest.$ac_objext \
6538       conftest$ac_exeext conftest.$ac_ext
6539                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6540               LIBS="$LIBS $LIBICONV"
6541               cat >conftest.$ac_ext <<_ACEOF
6542 /* confdefs.h.  */
6543 _ACEOF
6544 cat confdefs.h >>conftest.$ac_ext
6545 cat >>conftest.$ac_ext <<_ACEOF
6546 /* end confdefs.h.  */
6547 #include <libintl.h>
6548 extern int _nl_msg_cat_cntr;
6549 extern
6550 #ifdef __cplusplus
6551 "C"
6552 #endif
6553 const char *_nl_expand_alias (const char *);
6554 int
6555 main ()
6556 {
6557 bindtextdomain ("", "");
6558 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6559   ;
6560   return 0;
6561 }
6562 _ACEOF
6563 rm -f conftest.$ac_objext conftest$ac_exeext
6564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6565   (eval $ac_link) 2>conftest.er1
6566   ac_status=$?
6567   grep -v '^ *+' conftest.er1 >conftest.err
6568   rm -f conftest.er1
6569   cat conftest.err >&5
6570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571   (exit $ac_status); } &&
6572          { ac_try='test -z "$ac_c_werror_flag"
6573                          || test ! -s conftest.err'
6574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575   (eval $ac_try) 2>&5
6576   ac_status=$?
6577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578   (exit $ac_status); }; } &&
6579          { ac_try='test -s conftest$ac_exeext'
6580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6581   (eval $ac_try) 2>&5
6582   ac_status=$?
6583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6584   (exit $ac_status); }; }; then
6585   LIBINTL="$LIBINTL $LIBICONV"
6586                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6587                 gt_cv_func_gnugettext1_libintl=yes
6588
6589 else
6590   echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 fi
6594 rm -f conftest.err conftest.$ac_objext \
6595       conftest$ac_exeext conftest.$ac_ext
6596             fi
6597             CPPFLAGS="$gt_save_CPPFLAGS"
6598             LIBS="$gt_save_LIBS"
6599 fi
6600 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6602         fi
6603
6604                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6605            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6606                 && test "$PACKAGE" != gettext-runtime \
6607                 && test "$PACKAGE" != gettext-tools; }; then
6608           gt_use_preinstalled_gnugettext=yes
6609         else
6610                     LIBINTL=
6611           LTLIBINTL=
6612           INCINTL=
6613         fi
6614
6615
6616
6617     if test -n "$INTL_MACOSX_LIBS"; then
6618       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6619          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6620                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6621         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6622       fi
6623     fi
6624
6625     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6626        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6627
6628 cat >>confdefs.h <<\_ACEOF
6629 #define ENABLE_NLS 1
6630 _ACEOF
6631
6632     else
6633       USE_NLS=no
6634     fi
6635   fi
6636
6637   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6638 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6639   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6640 echo "${ECHO_T}$USE_NLS" >&6
6641   if test "$USE_NLS" = "yes"; then
6642     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6643 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6644     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6645       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6646         gt_source="external libintl"
6647       else
6648         gt_source="libc"
6649       fi
6650     else
6651       gt_source="included intl directory"
6652     fi
6653     echo "$as_me:$LINENO: result: $gt_source" >&5
6654 echo "${ECHO_T}$gt_source" >&6
6655   fi
6656
6657   if test "$USE_NLS" = "yes"; then
6658
6659     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6660       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6661         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6662 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6663         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6664 echo "${ECHO_T}$LIBINTL" >&6
6665
6666   for element in $INCINTL; do
6667     haveit=
6668     for x in $CPPFLAGS; do
6669
6670   acl_save_prefix="$prefix"
6671   prefix="$acl_final_prefix"
6672   acl_save_exec_prefix="$exec_prefix"
6673   exec_prefix="$acl_final_exec_prefix"
6674   eval x=\"$x\"
6675   exec_prefix="$acl_save_exec_prefix"
6676   prefix="$acl_save_prefix"
6677
6678       if test "X$x" = "X$element"; then
6679         haveit=yes
6680         break
6681       fi
6682     done
6683     if test -z "$haveit"; then
6684       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6685     fi
6686   done
6687
6688       fi
6689
6690
6691 cat >>confdefs.h <<\_ACEOF
6692 #define HAVE_GETTEXT 1
6693 _ACEOF
6694
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_DCGETTEXT 1
6698 _ACEOF
6699
6700     fi
6701
6702         POSUB=po
6703   fi
6704
6705
6706
6707     INTLLIBS="$LIBINTL"
6708
6709
6710
6711
6712
6713
6714 if test x${prefix} = xNONE ; then
6715    if test `eval echo ${datadir}` = NONE/share ; then
6716       datadir=/usr/share
6717    fi
6718 fi
6719
6720 # ------------------------------------------------------------------
6721 #  If the user has not set --prefix, we set our default to nothing.
6722 #  In this case, if the user has not set --sysconfdir, we set it
6723 #  to the package default of /etc/bacula.  If either --prefix or
6724 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6725 # ------------------------------------------------------------------
6726 if test x${prefix} = xNONE ; then
6727     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6728         sysconfdir=/etc/bacula
6729     fi
6730     prefix=
6731 fi
6732 sysconfdir=`eval echo ${sysconfdir}`
6733 datadir=`eval echo ${datadir}`
6734 localedir=`eval echo ${datadir}/locale`
6735 cat >>confdefs.h <<_ACEOF
6736 #define LOCALEDIR "$localedir"
6737 _ACEOF
6738
6739 cat >>confdefs.h <<_ACEOF
6740 #define SYSCONFDIR "$sysconfdir"
6741 _ACEOF
6742
6743
6744 # -------------------------------------------------------------------------
6745 #  If the user has not set --exec-prefix, we default to ${prefix}
6746 # -------------------------------------------------------------------------
6747 if test x${exec_prefix} = xNONE ; then
6748     exec_prefix=${prefix}
6749 fi
6750
6751 # ------------------------------------------------------------------
6752 # If the user has not set --sbindir, we set our default as /sbin
6753 # ------------------------------------------------------------------
6754 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6755     sbindir=${exec_prefix}/sbin
6756 fi
6757 sbindir=`eval echo ${sbindir}`
6758
6759 # -------------------------------------------------------------------------
6760 #  If the user has not set --mandir, we default to /usr/share/man
6761 # -------------------------------------------------------------------------
6762 if test x$mandir = x'${prefix}/man' ; then
6763    mandir=/usr/share/man
6764 fi
6765
6766
6767 # ------------------------------------------------------------------
6768 # All list of languages for which a translation exist. Each
6769 #  language is separated by a space.
6770 # ------------------------------------------------------------------
6771 ALL_LINGUAS=""
6772
6773 for ac_prog in msgfmt
6774 do
6775   # Extract the first word of "$ac_prog", so it can be a program name with args.
6776 set dummy $ac_prog; ac_word=$2
6777 echo "$as_me:$LINENO: checking for $ac_word" >&5
6778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6779 if test "${ac_cv_path_MSGFMT+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   case $MSGFMT in
6783   [\\/]* | ?:[\\/]*)
6784   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6785   ;;
6786   *)
6787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6789 do
6790   IFS=$as_save_IFS
6791   test -z "$as_dir" && as_dir=.
6792   for ac_exec_ext in '' $ac_executable_extensions; do
6793   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6794     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6795     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796     break 2
6797   fi
6798 done
6799 done
6800
6801   ;;
6802 esac
6803 fi
6804 MSGFMT=$ac_cv_path_MSGFMT
6805
6806 if test -n "$MSGFMT"; then
6807   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6808 echo "${ECHO_T}$MSGFMT" >&6
6809 else
6810   echo "$as_me:$LINENO: result: no" >&5
6811 echo "${ECHO_T}no" >&6
6812 fi
6813
6814   test -n "$MSGFMT" && break
6815 done
6816 test -n "$MSGFMT" || MSGFMT="no"
6817
6818 if test "$MSGFMT" = "no"
6819 then
6820    echo 'msgfmt program not found, disabling NLS !'
6821    USE_NLS=no
6822    USE_INCLUDED_LIBINTL=no
6823 #else
6824
6825     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6826 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6827 if test "${ac_cv_gnu_library_2+set}" = set; then
6828   echo $ECHO_N "(cached) $ECHO_C" >&6
6829 else
6830   cat >conftest.$ac_ext <<_ACEOF
6831 /* confdefs.h.  */
6832 _ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h.  */
6836
6837 #include <features.h>
6838 #ifdef __GNU_LIBRARY__
6839  #if (__GLIBC__ >= 2)
6840   Lucky GNU user
6841  #endif
6842 #endif
6843
6844 _ACEOF
6845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6846   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6847   ac_cv_gnu_library_2=yes
6848 else
6849   ac_cv_gnu_library_2=no
6850 fi
6851 rm -f conftest*
6852
6853
6854
6855 fi
6856 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6857 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6858
6859     GLIBC2="$ac_cv_gnu_library_2"
6860
6861
6862 echo "$as_me:$LINENO: checking for library containing strerror" >&5
6863 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
6864 if test "${ac_cv_search_strerror+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   ac_func_search_save_LIBS=$LIBS
6868 ac_cv_search_strerror=no
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875
6876 /* Override any gcc2 internal prototype to avoid an error.  */
6877 #ifdef __cplusplus
6878 extern "C"
6879 #endif
6880 /* We use char because int might match the return type of a gcc2
6881    builtin and then its argument prototype would still apply.  */
6882 char strerror ();
6883 int
6884 main ()
6885 {
6886 strerror ();
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6893   (eval $ac_link) 2>conftest.er1
6894   ac_status=$?
6895   grep -v '^ *+' conftest.er1 >conftest.err
6896   rm -f conftest.er1
6897   cat conftest.err >&5
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); } &&
6900          { ac_try='test -z "$ac_c_werror_flag"
6901                          || test ! -s conftest.err'
6902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6903   (eval $ac_try) 2>&5
6904   ac_status=$?
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); }; } &&
6907          { ac_try='test -s conftest$ac_exeext'
6908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6909   (eval $ac_try) 2>&5
6910   ac_status=$?
6911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912   (exit $ac_status); }; }; then
6913   ac_cv_search_strerror="none required"
6914 else
6915   echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.$ac_ext >&5
6917
6918 fi
6919 rm -f conftest.err conftest.$ac_objext \
6920       conftest$ac_exeext conftest.$ac_ext
6921 if test "$ac_cv_search_strerror" = no; then
6922   for ac_lib in cposix; do
6923     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6924     cat >conftest.$ac_ext <<_ACEOF
6925 /* confdefs.h.  */
6926 _ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h.  */
6930
6931 /* Override any gcc2 internal prototype to avoid an error.  */
6932 #ifdef __cplusplus
6933 extern "C"
6934 #endif
6935 /* We use char because int might match the return type of a gcc2
6936    builtin and then its argument prototype would still apply.  */
6937 char strerror ();
6938 int
6939 main ()
6940 {
6941 strerror ();
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   (eval $ac_link) 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } &&
6955          { ac_try='test -z "$ac_c_werror_flag"
6956                          || test ! -s conftest.err'
6957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958   (eval $ac_try) 2>&5
6959   ac_status=$?
6960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961   (exit $ac_status); }; } &&
6962          { ac_try='test -s conftest$ac_exeext'
6963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964   (eval $ac_try) 2>&5
6965   ac_status=$?
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); }; }; then
6968   ac_cv_search_strerror="-l$ac_lib"
6969 break
6970 else
6971   echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6973
6974 fi
6975 rm -f conftest.err conftest.$ac_objext \
6976       conftest$ac_exeext conftest.$ac_ext
6977   done
6978 fi
6979 LIBS=$ac_func_search_save_LIBS
6980 fi
6981 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6982 echo "${ECHO_T}$ac_cv_search_strerror" >&6
6983 if test "$ac_cv_search_strerror" != no; then
6984   test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
6985
6986 fi
6987
6988 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6989 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6990 if test "${ac_cv_header_stdc+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 #include <stdlib.h>
7000 #include <stdarg.h>
7001 #include <string.h>
7002 #include <float.h>
7003
7004 int
7005 main ()
7006 {
7007
7008   ;
7009   return 0;
7010 }
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7014   (eval $ac_compile) 2>conftest.er1
7015   ac_status=$?
7016   grep -v '^ *+' conftest.er1 >conftest.err
7017   rm -f conftest.er1
7018   cat conftest.err >&5
7019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7020   (exit $ac_status); } &&
7021          { ac_try='test -z "$ac_c_werror_flag"
7022                          || test ! -s conftest.err'
7023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024   (eval $ac_try) 2>&5
7025   ac_status=$?
7026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027   (exit $ac_status); }; } &&
7028          { ac_try='test -s conftest.$ac_objext'
7029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030   (eval $ac_try) 2>&5
7031   ac_status=$?
7032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033   (exit $ac_status); }; }; then
7034   ac_cv_header_stdc=yes
7035 else
7036   echo "$as_me: failed program was:" >&5
7037 sed 's/^/| /' conftest.$ac_ext >&5
7038
7039 ac_cv_header_stdc=no
7040 fi
7041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7042
7043 if test $ac_cv_header_stdc = yes; then
7044   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 #include <string.h>
7052
7053 _ACEOF
7054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7055   $EGREP "memchr" >/dev/null 2>&1; then
7056   :
7057 else
7058   ac_cv_header_stdc=no
7059 fi
7060 rm -f conftest*
7061
7062 fi
7063
7064 if test $ac_cv_header_stdc = yes; then
7065   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7066   cat >conftest.$ac_ext <<_ACEOF
7067 /* confdefs.h.  */
7068 _ACEOF
7069 cat confdefs.h >>conftest.$ac_ext
7070 cat >>conftest.$ac_ext <<_ACEOF
7071 /* end confdefs.h.  */
7072 #include <stdlib.h>
7073
7074 _ACEOF
7075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076   $EGREP "free" >/dev/null 2>&1; then
7077   :
7078 else
7079   ac_cv_header_stdc=no
7080 fi
7081 rm -f conftest*
7082
7083 fi
7084
7085 if test $ac_cv_header_stdc = yes; then
7086   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7087   if test "$cross_compiling" = yes; then
7088   :
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <ctype.h>
7097 #if ((' ' & 0x0FF) == 0x020)
7098 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7099 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7100 #else
7101 # define ISLOWER(c) \
7102                    (('a' <= (c) && (c) <= 'i') \
7103                      || ('j' <= (c) && (c) <= 'r') \
7104                      || ('s' <= (c) && (c) <= 'z'))
7105 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7106 #endif
7107
7108 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7109 int
7110 main ()
7111 {
7112   int i;
7113   for (i = 0; i < 256; i++)
7114     if (XOR (islower (i), ISLOWER (i))
7115         || toupper (i) != TOUPPER (i))
7116       exit(2);
7117   exit (0);
7118 }
7119 _ACEOF
7120 rm -f conftest$ac_exeext
7121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122   (eval $ac_link) 2>&5
7123   ac_status=$?
7124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   :
7132 else
7133   echo "$as_me: program exited with status $ac_status" >&5
7134 echo "$as_me: failed program was:" >&5
7135 sed 's/^/| /' conftest.$ac_ext >&5
7136
7137 ( exit $ac_status )
7138 ac_cv_header_stdc=no
7139 fi
7140 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7141 fi
7142 fi
7143 fi
7144 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7145 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7146 if test $ac_cv_header_stdc = yes; then
7147
7148 cat >>confdefs.h <<\_ACEOF
7149 #define STDC_HEADERS 1
7150 _ACEOF
7151
7152 fi
7153
7154 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7155 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7156 if test "${ac_cv_c_const+set}" = set; then
7157   echo $ECHO_N "(cached) $ECHO_C" >&6
7158 else
7159   cat >conftest.$ac_ext <<_ACEOF
7160 /* confdefs.h.  */
7161 _ACEOF
7162 cat confdefs.h >>conftest.$ac_ext
7163 cat >>conftest.$ac_ext <<_ACEOF
7164 /* end confdefs.h.  */
7165
7166 int
7167 main ()
7168 {
7169 /* FIXME: Include the comments suggested by Paul. */
7170 #ifndef __cplusplus
7171   /* Ultrix mips cc rejects this.  */
7172   typedef int charset[2];
7173   const charset x;
7174   /* SunOS 4.1.1 cc rejects this.  */
7175   char const *const *ccp;
7176   char **p;
7177   /* NEC SVR4.0.2 mips cc rejects this.  */
7178   struct point {int x, y;};
7179   static struct point const zero = {0,0};
7180   /* AIX XL C 1.02.0.0 rejects this.
7181      It does not let you subtract one const X* pointer from another in
7182      an arm of an if-expression whose if-part is not a constant
7183      expression */
7184   const char *g = "string";
7185   ccp = &g + (g ? g-g : 0);
7186   /* HPUX 7.0 cc rejects these. */
7187   ++ccp;
7188   p = (char**) ccp;
7189   ccp = (char const *const *) p;
7190   { /* SCO 3.2v4 cc rejects this.  */
7191     char *t;
7192     char const *s = 0 ? (char *) 0 : (char const *) 0;
7193
7194     *t++ = 0;
7195   }
7196   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7197     int x[] = {25, 17};
7198     const int *foo = &x[0];
7199     ++foo;
7200   }
7201   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7202     typedef const int *iptr;
7203     iptr p = 0;
7204     ++p;
7205   }
7206   { /* AIX XL C 1.02.0.0 rejects this saying
7207        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7208     struct s { int j; const int *ap[3]; };
7209     struct s *b; b->j = 5;
7210   }
7211   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7212     const int foo = 10;
7213   }
7214 #endif
7215
7216   ;
7217   return 0;
7218 }
7219 _ACEOF
7220 rm -f conftest.$ac_objext
7221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222   (eval $ac_compile) 2>conftest.er1
7223   ac_status=$?
7224   grep -v '^ *+' conftest.er1 >conftest.err
7225   rm -f conftest.er1
7226   cat conftest.err >&5
7227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228   (exit $ac_status); } &&
7229          { ac_try='test -z "$ac_c_werror_flag"
7230                          || test ! -s conftest.err'
7231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7232   (eval $ac_try) 2>&5
7233   ac_status=$?
7234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235   (exit $ac_status); }; } &&
7236          { ac_try='test -s conftest.$ac_objext'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; }; then
7242   ac_cv_c_const=yes
7243 else
7244   echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7246
7247 ac_cv_c_const=no
7248 fi
7249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7250 fi
7251 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7252 echo "${ECHO_T}$ac_cv_c_const" >&6
7253 if test $ac_cv_c_const = no; then
7254
7255 cat >>confdefs.h <<\_ACEOF
7256 #define const
7257 _ACEOF
7258
7259 fi
7260
7261
7262   echo "$as_me:$LINENO: checking for signed" >&5
7263 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7264 if test "${bh_cv_c_signed+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   cat >conftest.$ac_ext <<_ACEOF
7268 /* confdefs.h.  */
7269 _ACEOF
7270 cat confdefs.h >>conftest.$ac_ext
7271 cat >>conftest.$ac_ext <<_ACEOF
7272 /* end confdefs.h.  */
7273
7274 int
7275 main ()
7276 {
7277 signed char x;
7278   ;
7279   return 0;
7280 }
7281 _ACEOF
7282 rm -f conftest.$ac_objext
7283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7284   (eval $ac_compile) 2>conftest.er1
7285   ac_status=$?
7286   grep -v '^ *+' conftest.er1 >conftest.err
7287   rm -f conftest.er1
7288   cat conftest.err >&5
7289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290   (exit $ac_status); } &&
7291          { ac_try='test -z "$ac_c_werror_flag"
7292                          || test ! -s conftest.err'
7293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7294   (eval $ac_try) 2>&5
7295   ac_status=$?
7296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297   (exit $ac_status); }; } &&
7298          { ac_try='test -s conftest.$ac_objext'
7299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7300   (eval $ac_try) 2>&5
7301   ac_status=$?
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); }; }; then
7304   bh_cv_c_signed=yes
7305 else
7306   echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 bh_cv_c_signed=no
7310 fi
7311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7312 fi
7313 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7314 echo "${ECHO_T}$bh_cv_c_signed" >&6
7315   if test $bh_cv_c_signed = no; then
7316
7317 cat >>confdefs.h <<\_ACEOF
7318 #define signed
7319 _ACEOF
7320
7321   fi
7322
7323 echo "$as_me:$LINENO: checking for inline" >&5
7324 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7325 if test "${ac_cv_c_inline+set}" = set; then
7326   echo $ECHO_N "(cached) $ECHO_C" >&6
7327 else
7328   ac_cv_c_inline=no
7329 for ac_kw in inline __inline__ __inline; do
7330   cat >conftest.$ac_ext <<_ACEOF
7331 /* confdefs.h.  */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h.  */
7336 #ifndef __cplusplus
7337 typedef int foo_t;
7338 static $ac_kw foo_t static_foo () {return 0; }
7339 $ac_kw foo_t foo () {return 0; }
7340 #endif
7341
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -z "$ac_c_werror_flag"
7353                          || test ! -s conftest.err'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   ac_cv_c_inline=$ac_kw; break
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 fi
7371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7372 done
7373
7374 fi
7375 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7376 echo "${ECHO_T}$ac_cv_c_inline" >&6
7377
7378
7379 case $ac_cv_c_inline in
7380   inline | yes) ;;
7381   *)
7382     case $ac_cv_c_inline in
7383       no) ac_val=;;
7384       *) ac_val=$ac_cv_c_inline;;
7385     esac
7386     cat >>confdefs.h <<_ACEOF
7387 #ifndef __cplusplus
7388 #define inline $ac_val
7389 #endif
7390 _ACEOF
7391     ;;
7392 esac
7393
7394 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7405                   inttypes.h stdint.h unistd.h
7406 do
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 echo "$as_me:$LINENO: checking for $ac_header" >&5
7409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7411   echo $ECHO_N "(cached) $ECHO_C" >&6
7412 else
7413   cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h.  */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h.  */
7419 $ac_includes_default
7420
7421 #include <$ac_header>
7422 _ACEOF
7423 rm -f conftest.$ac_objext
7424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7425   (eval $ac_compile) 2>conftest.er1
7426   ac_status=$?
7427   grep -v '^ *+' conftest.er1 >conftest.err
7428   rm -f conftest.er1
7429   cat conftest.err >&5
7430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431   (exit $ac_status); } &&
7432          { ac_try='test -z "$ac_c_werror_flag"
7433                          || test ! -s conftest.err'
7434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7435   (eval $ac_try) 2>&5
7436   ac_status=$?
7437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7438   (exit $ac_status); }; } &&
7439          { ac_try='test -s conftest.$ac_objext'
7440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7441   (eval $ac_try) 2>&5
7442   ac_status=$?
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); }; }; then
7445   eval "$as_ac_Header=yes"
7446 else
7447   echo "$as_me: failed program was:" >&5
7448 sed 's/^/| /' conftest.$ac_ext >&5
7449
7450 eval "$as_ac_Header=no"
7451 fi
7452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7455 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7457   cat >>confdefs.h <<_ACEOF
7458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7459 _ACEOF
7460
7461 fi
7462
7463 done
7464
7465
7466 echo "$as_me:$LINENO: checking for off_t" >&5
7467 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7468 if test "${ac_cv_type_off_t+set}" = set; then
7469   echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471   cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h.  */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h.  */
7477 $ac_includes_default
7478 int
7479 main ()
7480 {
7481 if ((off_t *) 0)
7482   return 0;
7483 if (sizeof (off_t))
7484   return 0;
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest.$ac_objext
7490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7491   (eval $ac_compile) 2>conftest.er1
7492   ac_status=$?
7493   grep -v '^ *+' conftest.er1 >conftest.err
7494   rm -f conftest.er1
7495   cat conftest.err >&5
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); } &&
7498          { ac_try='test -z "$ac_c_werror_flag"
7499                          || test ! -s conftest.err'
7500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7501   (eval $ac_try) 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; } &&
7505          { ac_try='test -s conftest.$ac_objext'
7506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7507   (eval $ac_try) 2>&5
7508   ac_status=$?
7509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510   (exit $ac_status); }; }; then
7511   ac_cv_type_off_t=yes
7512 else
7513   echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ac_cv_type_off_t=no
7517 fi
7518 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7519 fi
7520 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7521 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7522 if test $ac_cv_type_off_t = yes; then
7523   :
7524 else
7525
7526 cat >>confdefs.h <<_ACEOF
7527 #define off_t long
7528 _ACEOF
7529
7530 fi
7531
7532 echo "$as_me:$LINENO: checking for size_t" >&5
7533 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7534 if test "${ac_cv_type_size_t+set}" = set; then
7535   echo $ECHO_N "(cached) $ECHO_C" >&6
7536 else
7537   cat >conftest.$ac_ext <<_ACEOF
7538 /* confdefs.h.  */
7539 _ACEOF
7540 cat confdefs.h >>conftest.$ac_ext
7541 cat >>conftest.$ac_ext <<_ACEOF
7542 /* end confdefs.h.  */
7543 $ac_includes_default
7544 int
7545 main ()
7546 {
7547 if ((size_t *) 0)
7548   return 0;
7549 if (sizeof (size_t))
7550   return 0;
7551   ;
7552   return 0;
7553 }
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7557   (eval $ac_compile) 2>conftest.er1
7558   ac_status=$?
7559   grep -v '^ *+' conftest.er1 >conftest.err
7560   rm -f conftest.er1
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   (exit $ac_status); } &&
7564          { ac_try='test -z "$ac_c_werror_flag"
7565                          || test ! -s conftest.err'
7566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567   (eval $ac_try) 2>&5
7568   ac_status=$?
7569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570   (exit $ac_status); }; } &&
7571          { ac_try='test -s conftest.$ac_objext'
7572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573   (eval $ac_try) 2>&5
7574   ac_status=$?
7575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); }; }; then
7577   ac_cv_type_size_t=yes
7578 else
7579   echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7581
7582 ac_cv_type_size_t=no
7583 fi
7584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7585 fi
7586 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7587 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7588 if test $ac_cv_type_size_t = yes; then
7589   :
7590 else
7591
7592 cat >>confdefs.h <<_ACEOF
7593 #define size_t unsigned
7594 _ACEOF
7595
7596 fi
7597
7598
7599   echo "$as_me:$LINENO: checking for long long" >&5
7600 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7601 if test "${ac_cv_type_long_long+set}" = set; then
7602   echo $ECHO_N "(cached) $ECHO_C" >&6
7603 else
7604   cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 long long ll = 1LL; int i = 63;
7611 int
7612 main ()
7613 {
7614 long long llmax = (long long) -1;
7615      return ll << i | ll >> i | llmax / ll | llmax % ll;
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7622   (eval $ac_link) 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } &&
7629          { ac_try='test -z "$ac_c_werror_flag"
7630                          || test ! -s conftest.err'
7631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632   (eval $ac_try) 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638   (eval $ac_try) 2>&5
7639   ac_status=$?
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); }; }; then
7642   ac_cv_type_long_long=yes
7643 else
7644   echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7646
7647 ac_cv_type_long_long=no
7648 fi
7649 rm -f conftest.err conftest.$ac_objext \
7650       conftest$ac_exeext conftest.$ac_ext
7651 fi
7652 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7653 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7654   if test $ac_cv_type_long_long = yes; then
7655
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LONG_LONG 1
7658 _ACEOF
7659
7660   fi
7661
7662
7663   echo "$as_me:$LINENO: checking for long double" >&5
7664 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7665 if test "${gt_cv_c_long_double+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   if test "$GCC" = yes; then
7669        gt_cv_c_long_double=yes
7670      else
7671        cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h.  */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h.  */
7677
7678          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7679          long double foo = 0.0;
7680          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7681          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7682
7683 int
7684 main ()
7685 {
7686
7687   ;
7688   return 0;
7689 }
7690 _ACEOF
7691 rm -f conftest.$ac_objext
7692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7693   (eval $ac_compile) 2>conftest.er1
7694   ac_status=$?
7695   grep -v '^ *+' conftest.er1 >conftest.err
7696   rm -f conftest.er1
7697   cat conftest.err >&5
7698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699   (exit $ac_status); } &&
7700          { ac_try='test -z "$ac_c_werror_flag"
7701                          || test ! -s conftest.err'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; } &&
7707          { ac_try='test -s conftest.$ac_objext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   gt_cv_c_long_double=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 gt_cv_c_long_double=no
7719 fi
7720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7721      fi
7722 fi
7723 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7724 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7725   if test $gt_cv_c_long_double = yes; then
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define HAVE_LONG_DOUBLE 1
7729 _ACEOF
7730
7731   fi
7732
7733
7734   echo "$as_me:$LINENO: checking for wchar_t" >&5
7735 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7736 if test "${gt_cv_c_wchar_t+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745 #include <stddef.h>
7746        wchar_t foo = (wchar_t)'\0';
7747 int
7748 main ()
7749 {
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7757   (eval $ac_compile) 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } &&
7764          { ac_try='test -z "$ac_c_werror_flag"
7765                          || test ! -s conftest.err'
7766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767   (eval $ac_try) 2>&5
7768   ac_status=$?
7769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); }; } &&
7771          { ac_try='test -s conftest.$ac_objext'
7772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7773   (eval $ac_try) 2>&5
7774   ac_status=$?
7775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776   (exit $ac_status); }; }; then
7777   gt_cv_c_wchar_t=yes
7778 else
7779   echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7781
7782 gt_cv_c_wchar_t=no
7783 fi
7784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7785 fi
7786 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7787 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7788   if test $gt_cv_c_wchar_t = yes; then
7789
7790 cat >>confdefs.h <<\_ACEOF
7791 #define HAVE_WCHAR_T 1
7792 _ACEOF
7793
7794   fi
7795
7796
7797   echo "$as_me:$LINENO: checking for wint_t" >&5
7798 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7799 if test "${gt_cv_c_wint_t+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808 #include <wchar.h>
7809        wint_t foo = (wchar_t)'\0';
7810 int
7811 main ()
7812 {
7813
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820   (eval $ac_compile) 2>conftest.er1
7821   ac_status=$?
7822   grep -v '^ *+' conftest.er1 >conftest.err
7823   rm -f conftest.er1
7824   cat conftest.err >&5
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -z "$ac_c_werror_flag"
7828                          || test ! -s conftest.err'
7829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7830   (eval $ac_try) 2>&5
7831   ac_status=$?
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); }; } &&
7834          { ac_try='test -s conftest.$ac_objext'
7835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7836   (eval $ac_try) 2>&5
7837   ac_status=$?
7838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839   (exit $ac_status); }; }; then
7840   gt_cv_c_wint_t=yes
7841 else
7842   echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7844
7845 gt_cv_c_wint_t=no
7846 fi
7847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7848 fi
7849 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7850 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7851   if test $gt_cv_c_wint_t = yes; then
7852
7853 cat >>confdefs.h <<\_ACEOF
7854 #define HAVE_WINT_T 1
7855 _ACEOF
7856
7857   fi
7858
7859
7860   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7861 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7862 if test "${gl_cv_header_inttypes_h+set}" = set; then
7863   echo $ECHO_N "(cached) $ECHO_C" >&6
7864 else
7865   cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 #include <sys/types.h>
7872 #include <inttypes.h>
7873 int
7874 main ()
7875 {
7876 uintmax_t i = (uintmax_t) -1;
7877   ;
7878   return 0;
7879 }
7880 _ACEOF
7881 rm -f conftest.$ac_objext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7883   (eval $ac_compile) 2>conftest.er1
7884   ac_status=$?
7885   grep -v '^ *+' conftest.er1 >conftest.err
7886   rm -f conftest.er1
7887   cat conftest.err >&5
7888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889   (exit $ac_status); } &&
7890          { ac_try='test -z "$ac_c_werror_flag"
7891                          || test ! -s conftest.err'
7892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7893   (eval $ac_try) 2>&5
7894   ac_status=$?
7895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); }; } &&
7897          { ac_try='test -s conftest.$ac_objext'
7898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7899   (eval $ac_try) 2>&5
7900   ac_status=$?
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); }; }; then
7903   gl_cv_header_inttypes_h=yes
7904 else
7905   echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7907
7908 gl_cv_header_inttypes_h=no
7909 fi
7910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7911 fi
7912 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7913 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7914   if test $gl_cv_header_inttypes_h = yes; then
7915
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7918 _ACEOF
7919
7920   fi
7921
7922
7923   echo "$as_me:$LINENO: checking for stdint.h" >&5
7924 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7925 if test "${gl_cv_header_stdint_h+set}" = set; then
7926   echo $ECHO_N "(cached) $ECHO_C" >&6
7927 else
7928   cat >conftest.$ac_ext <<_ACEOF
7929 /* confdefs.h.  */
7930 _ACEOF
7931 cat confdefs.h >>conftest.$ac_ext
7932 cat >>conftest.$ac_ext <<_ACEOF
7933 /* end confdefs.h.  */
7934 #include <sys/types.h>
7935 #include <stdint.h>
7936 int
7937 main ()
7938 {
7939 uintmax_t i = (uintmax_t) -1;
7940   ;
7941   return 0;
7942 }
7943 _ACEOF
7944 rm -f conftest.$ac_objext
7945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7946   (eval $ac_compile) 2>conftest.er1
7947   ac_status=$?
7948   grep -v '^ *+' conftest.er1 >conftest.err
7949   rm -f conftest.er1
7950   cat conftest.err >&5
7951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952   (exit $ac_status); } &&
7953          { ac_try='test -z "$ac_c_werror_flag"
7954                          || test ! -s conftest.err'
7955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956   (eval $ac_try) 2>&5
7957   ac_status=$?
7958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959   (exit $ac_status); }; } &&
7960          { ac_try='test -s conftest.$ac_objext'
7961   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7962   (eval $ac_try) 2>&5
7963   ac_status=$?
7964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965   (exit $ac_status); }; }; then
7966   gl_cv_header_stdint_h=yes
7967 else
7968   echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7970
7971 gl_cv_header_stdint_h=no
7972 fi
7973 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
7976 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
7977   if test $gl_cv_header_stdint_h = yes; then
7978
7979 cat >>confdefs.h <<_ACEOF
7980 #define HAVE_STDINT_H_WITH_UINTMAX 1
7981 _ACEOF
7982
7983   fi
7984
7985
7986
7987
7988   echo "$as_me:$LINENO: checking for intmax_t" >&5
7989 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
7990 if test "${gt_cv_c_intmax_t+set}" = set; then
7991   echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999
8000 #include <stddef.h>
8001 #include <stdlib.h>
8002 #if HAVE_STDINT_H_WITH_UINTMAX
8003 #include <stdint.h>
8004 #endif
8005 #if HAVE_INTTYPES_H_WITH_UINTMAX
8006 #include <inttypes.h>
8007 #endif
8008
8009 int
8010 main ()
8011 {
8012 intmax_t x = -1;
8013   ;
8014   return 0;
8015 }
8016 _ACEOF
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019   (eval $ac_compile) 2>conftest.er1
8020   ac_status=$?
8021   grep -v '^ *+' conftest.er1 >conftest.err
8022   rm -f conftest.er1
8023   cat conftest.err >&5
8024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025   (exit $ac_status); } &&
8026          { ac_try='test -z "$ac_c_werror_flag"
8027                          || test ! -s conftest.err'
8028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029   (eval $ac_try) 2>&5
8030   ac_status=$?
8031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032   (exit $ac_status); }; } &&
8033          { ac_try='test -s conftest.$ac_objext'
8034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035   (eval $ac_try) 2>&5
8036   ac_status=$?
8037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038   (exit $ac_status); }; }; then
8039   gt_cv_c_intmax_t=yes
8040 else
8041   echo "$as_me: failed program was:" >&5
8042 sed 's/^/| /' conftest.$ac_ext >&5
8043
8044 gt_cv_c_intmax_t=no
8045 fi
8046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8047 fi
8048 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8049 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8050   if test $gt_cv_c_intmax_t = yes; then
8051
8052 cat >>confdefs.h <<\_ACEOF
8053 #define HAVE_INTMAX_T 1
8054 _ACEOF
8055
8056   fi
8057
8058
8059
8060   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8061 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8062 if test "${gt_cv_func_printf_posix+set}" = set; then
8063   echo $ECHO_N "(cached) $ECHO_C" >&6
8064 else
8065
8066       if test "$cross_compiling" = yes; then
8067
8068         cat >conftest.$ac_ext <<_ACEOF
8069 /* confdefs.h.  */
8070 _ACEOF
8071 cat confdefs.h >>conftest.$ac_ext
8072 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h.  */
8074
8075 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8076   notposix
8077 #endif
8078
8079 _ACEOF
8080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8081   $EGREP "notposix" >/dev/null 2>&1; then
8082   gt_cv_func_printf_posix="guessing no"
8083 else
8084   gt_cv_func_printf_posix="guessing yes"
8085 fi
8086 rm -f conftest*
8087
8088
8089 else
8090   cat >conftest.$ac_ext <<_ACEOF
8091 /* confdefs.h.  */
8092 _ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h.  */
8096
8097 #include <stdio.h>
8098 #include <string.h>
8099 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8100    dollar expansion (possibly an autoconf bug).  */
8101 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8102 static char buf[100];
8103 int main ()
8104 {
8105   sprintf (buf, format, 33, 55);
8106   return (strcmp (buf, "55 33") != 0);
8107 }
8108 _ACEOF
8109 rm -f conftest$ac_exeext
8110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8111   (eval $ac_link) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8116   (eval $ac_try) 2>&5
8117   ac_status=$?
8118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119   (exit $ac_status); }; }; then
8120   gt_cv_func_printf_posix=yes
8121 else
8122   echo "$as_me: program exited with status $ac_status" >&5
8123 echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 ( exit $ac_status )
8127 gt_cv_func_printf_posix=no
8128 fi
8129 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8130 fi
8131
8132 fi
8133 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8134 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8135   case $gt_cv_func_printf_posix in
8136     *yes)
8137
8138 cat >>confdefs.h <<\_ACEOF
8139 #define HAVE_POSIX_PRINTF 1
8140 _ACEOF
8141
8142       ;;
8143   esac
8144
8145 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8146 # for constant arguments.  Useless!
8147 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8148 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8149 if test "${ac_cv_working_alloca_h+set}" = set; then
8150   echo $ECHO_N "(cached) $ECHO_C" >&6
8151 else
8152   cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 #include <alloca.h>
8159 int
8160 main ()
8161 {
8162 char *p = (char *) alloca (2 * sizeof (int));
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 rm -f conftest.$ac_objext conftest$ac_exeext
8168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8169   (eval $ac_link) 2>conftest.er1
8170   ac_status=$?
8171   grep -v '^ *+' conftest.er1 >conftest.err
8172   rm -f conftest.er1
8173   cat conftest.err >&5
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); } &&
8176          { ac_try='test -z "$ac_c_werror_flag"
8177                          || test ! -s conftest.err'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; } &&
8183          { ac_try='test -s conftest$ac_exeext'
8184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185   (eval $ac_try) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); }; }; then
8189   ac_cv_working_alloca_h=yes
8190 else
8191   echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_cv_working_alloca_h=no
8195 fi
8196 rm -f conftest.err conftest.$ac_objext \
8197       conftest$ac_exeext conftest.$ac_ext
8198 fi
8199 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8200 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8201 if test $ac_cv_working_alloca_h = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_ALLOCA_H 1
8205 _ACEOF
8206
8207 fi
8208
8209 echo "$as_me:$LINENO: checking for alloca" >&5
8210 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8211 if test "${ac_cv_func_alloca_works+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220 #ifdef __GNUC__
8221 # define alloca __builtin_alloca
8222 #else
8223 # ifdef _MSC_VER
8224 #  include <malloc.h>
8225 #  define alloca _alloca
8226 # else
8227 #  if HAVE_ALLOCA_H
8228 #   include <alloca.h>
8229 #  else
8230 #   ifdef _AIX
8231  #pragma alloca
8232 #   else
8233 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8234 char *alloca ();
8235 #    endif
8236 #   endif
8237 #  endif
8238 # endif
8239 #endif
8240
8241 int
8242 main ()
8243 {
8244 char *p = (char *) alloca (1);
8245   ;
8246   return 0;
8247 }
8248 _ACEOF
8249 rm -f conftest.$ac_objext conftest$ac_exeext
8250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8251   (eval $ac_link) 2>conftest.er1
8252   ac_status=$?
8253   grep -v '^ *+' conftest.er1 >conftest.err
8254   rm -f conftest.er1
8255   cat conftest.err >&5
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); } &&
8258          { ac_try='test -z "$ac_c_werror_flag"
8259                          || test ! -s conftest.err'
8260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261   (eval $ac_try) 2>&5
8262   ac_status=$?
8263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264   (exit $ac_status); }; } &&
8265          { ac_try='test -s conftest$ac_exeext'
8266   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267   (eval $ac_try) 2>&5
8268   ac_status=$?
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); }; }; then
8271   ac_cv_func_alloca_works=yes
8272 else
8273   echo "$as_me: failed program was:" >&5
8274 sed 's/^/| /' conftest.$ac_ext >&5
8275
8276 ac_cv_func_alloca_works=no
8277 fi
8278 rm -f conftest.err conftest.$ac_objext \
8279       conftest$ac_exeext conftest.$ac_ext
8280 fi
8281 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8282 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8283
8284 if test $ac_cv_func_alloca_works = yes; then
8285
8286 cat >>confdefs.h <<\_ACEOF
8287 #define HAVE_ALLOCA 1
8288 _ACEOF
8289
8290 else
8291   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8292 # that cause trouble.  Some versions do not even contain alloca or
8293 # contain a buggy version.  If you still want to use their alloca,
8294 # use ar to extract alloca.o from them instead of compiling alloca.c.
8295
8296 ALLOCA=alloca.$ac_objext
8297
8298 cat >>confdefs.h <<\_ACEOF
8299 #define C_ALLOCA 1
8300 _ACEOF
8301
8302
8303 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8304 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8305 if test "${ac_cv_os_cray+set}" = set; then
8306   echo $ECHO_N "(cached) $ECHO_C" >&6
8307 else
8308   cat >conftest.$ac_ext <<_ACEOF
8309 /* confdefs.h.  */
8310 _ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h.  */
8314 #if defined(CRAY) && ! defined(CRAY2)
8315 webecray
8316 #else
8317 wenotbecray
8318 #endif
8319
8320 _ACEOF
8321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8322   $EGREP "webecray" >/dev/null 2>&1; then
8323   ac_cv_os_cray=yes
8324 else
8325   ac_cv_os_cray=no
8326 fi
8327 rm -f conftest*
8328
8329 fi
8330 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8331 echo "${ECHO_T}$ac_cv_os_cray" >&6
8332 if test $ac_cv_os_cray = yes; then
8333   for ac_func in _getb67 GETB67 getb67; do
8334     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8335 echo "$as_me:$LINENO: checking for $ac_func" >&5
8336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8337 if eval "test \"\${$as_ac_var+set}\" = set"; then
8338   echo $ECHO_N "(cached) $ECHO_C" >&6
8339 else
8340   cat >conftest.$ac_ext <<_ACEOF
8341 /* confdefs.h.  */
8342 _ACEOF
8343 cat confdefs.h >>conftest.$ac_ext
8344 cat >>conftest.$ac_ext <<_ACEOF
8345 /* end confdefs.h.  */
8346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8347    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8348 #define $ac_func innocuous_$ac_func
8349
8350 /* System header to define __stub macros and hopefully few prototypes,
8351     which can conflict with char $ac_func (); below.
8352     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8353     <limits.h> exists even on freestanding compilers.  */
8354
8355 #ifdef __STDC__
8356 # include <limits.h>
8357 #else
8358 # include <assert.h>
8359 #endif
8360
8361 #undef $ac_func
8362
8363 /* Override any gcc2 internal prototype to avoid an error.  */
8364 #ifdef __cplusplus
8365 extern "C"
8366 {
8367 #endif
8368 /* We use char because int might match the return type of a gcc2
8369    builtin and then its argument prototype would still apply.  */
8370 char $ac_func ();
8371 /* The GNU C library defines this for functions which it implements
8372     to always fail with ENOSYS.  Some functions are actually named
8373     something starting with __ and the normal name is an alias.  */
8374 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8375 choke me
8376 #else
8377 char (*f) () = $ac_func;
8378 #endif
8379 #ifdef __cplusplus
8380 }
8381 #endif
8382
8383 int
8384 main ()
8385 {
8386 return f != $ac_func;
8387   ;
8388   return 0;
8389 }
8390 _ACEOF
8391 rm -f conftest.$ac_objext conftest$ac_exeext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8393   (eval $ac_link) 2>conftest.er1
8394   ac_status=$?
8395   grep -v '^ *+' conftest.er1 >conftest.err
8396   rm -f conftest.er1
8397   cat conftest.err >&5
8398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399   (exit $ac_status); } &&
8400          { ac_try='test -z "$ac_c_werror_flag"
8401                          || test ! -s conftest.err'
8402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403   (eval $ac_try) 2>&5
8404   ac_status=$?
8405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406   (exit $ac_status); }; } &&
8407          { ac_try='test -s conftest$ac_exeext'
8408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409   (eval $ac_try) 2>&5
8410   ac_status=$?
8411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); }; }; then
8413   eval "$as_ac_var=yes"
8414 else
8415   echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8417
8418 eval "$as_ac_var=no"
8419 fi
8420 rm -f conftest.err conftest.$ac_objext \
8421       conftest$ac_exeext conftest.$ac_ext
8422 fi
8423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8424 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8425 if test `eval echo '${'$as_ac_var'}'` = yes; then
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define CRAY_STACKSEG_END $ac_func
8429 _ACEOF
8430
8431     break
8432 fi
8433
8434   done
8435 fi
8436
8437 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8438 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8439 if test "${ac_cv_c_stack_direction+set}" = set; then
8440   echo $ECHO_N "(cached) $ECHO_C" >&6
8441 else
8442   if test "$cross_compiling" = yes; then
8443   ac_cv_c_stack_direction=0
8444 else
8445   cat >conftest.$ac_ext <<_ACEOF
8446 /* confdefs.h.  */
8447 _ACEOF
8448 cat confdefs.h >>conftest.$ac_ext
8449 cat >>conftest.$ac_ext <<_ACEOF
8450 /* end confdefs.h.  */
8451 int
8452 find_stack_direction ()
8453 {
8454   static char *addr = 0;
8455   auto char dummy;
8456   if (addr == 0)
8457     {
8458       addr = &dummy;
8459       return find_stack_direction ();
8460     }
8461   else
8462     return (&dummy > addr) ? 1 : -1;
8463 }
8464
8465 int
8466 main ()
8467 {
8468   exit (find_stack_direction () < 0);
8469 }
8470 _ACEOF
8471 rm -f conftest$ac_exeext
8472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8473   (eval $ac_link) 2>&5
8474   ac_status=$?
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478   (eval $ac_try) 2>&5
8479   ac_status=$?
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); }; }; then
8482   ac_cv_c_stack_direction=1
8483 else
8484   echo "$as_me: program exited with status $ac_status" >&5
8485 echo "$as_me: failed program was:" >&5
8486 sed 's/^/| /' conftest.$ac_ext >&5
8487
8488 ( exit $ac_status )
8489 ac_cv_c_stack_direction=-1
8490 fi
8491 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8492 fi
8493 fi
8494 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8495 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8496
8497 cat >>confdefs.h <<_ACEOF
8498 #define STACK_DIRECTION $ac_cv_c_stack_direction
8499 _ACEOF
8500
8501
8502 fi
8503
8504
8505
8506 for ac_header in stdlib.h unistd.h
8507 do
8508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8510   echo "$as_me:$LINENO: checking for $ac_header" >&5
8511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8513   echo $ECHO_N "(cached) $ECHO_C" >&6
8514 fi
8515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8517 else
8518   # Is the header compilable?
8519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527 $ac_includes_default
8528 #include <$ac_header>
8529 _ACEOF
8530 rm -f conftest.$ac_objext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8532   (eval $ac_compile) 2>conftest.er1
8533   ac_status=$?
8534   grep -v '^ *+' conftest.er1 >conftest.err
8535   rm -f conftest.er1
8536   cat conftest.err >&5
8537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538   (exit $ac_status); } &&
8539          { ac_try='test -z "$ac_c_werror_flag"
8540                          || test ! -s conftest.err'
8541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8542   (eval $ac_try) 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8548   (eval $ac_try) 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   ac_header_compiler=yes
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557 ac_header_compiler=no
8558 fi
8559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8560 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8561 echo "${ECHO_T}$ac_header_compiler" >&6
8562
8563 # Is the header present?
8564 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8566 cat >conftest.$ac_ext <<_ACEOF
8567 /* confdefs.h.  */
8568 _ACEOF
8569 cat confdefs.h >>conftest.$ac_ext
8570 cat >>conftest.$ac_ext <<_ACEOF
8571 /* end confdefs.h.  */
8572 #include <$ac_header>
8573 _ACEOF
8574 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8575   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } >/dev/null; then
8582   if test -s conftest.err; then
8583     ac_cpp_err=$ac_c_preproc_warn_flag
8584     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8585   else
8586     ac_cpp_err=
8587   fi
8588 else
8589   ac_cpp_err=yes
8590 fi
8591 if test -z "$ac_cpp_err"; then
8592   ac_header_preproc=yes
8593 else
8594   echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8596
8597   ac_header_preproc=no
8598 fi
8599 rm -f conftest.err conftest.$ac_ext
8600 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8601 echo "${ECHO_T}$ac_header_preproc" >&6
8602
8603 # So?  What about this header?
8604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8605   yes:no: )
8606     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8607 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8608     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8610     ac_header_preproc=yes
8611     ;;
8612   no:yes:* )
8613     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8614 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8615     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8616 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8617     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8618 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8619     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8620 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8621     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8623     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8624 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8625     (
8626       cat <<\_ASBOX
8627 ## ------------------------------------------ ##
8628 ## Report this to the AC_PACKAGE_NAME lists.  ##
8629 ## ------------------------------------------ ##
8630 _ASBOX
8631     ) |
8632       sed "s/^/$as_me: WARNING:     /" >&2
8633     ;;
8634 esac
8635 echo "$as_me:$LINENO: checking for $ac_header" >&5
8636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8637 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8638   echo $ECHO_N "(cached) $ECHO_C" >&6
8639 else
8640   eval "$as_ac_Header=\$ac_header_preproc"
8641 fi
8642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8643 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8644
8645 fi
8646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8647   cat >>confdefs.h <<_ACEOF
8648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8649 _ACEOF
8650
8651 fi
8652
8653 done
8654
8655
8656 for ac_func in getpagesize
8657 do
8658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8659 echo "$as_me:$LINENO: checking for $ac_func" >&5
8660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8661 if eval "test \"\${$as_ac_var+set}\" = set"; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8672 #define $ac_func innocuous_$ac_func
8673
8674 /* System header to define __stub macros and hopefully few prototypes,
8675     which can conflict with char $ac_func (); below.
8676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8677     <limits.h> exists even on freestanding compilers.  */
8678
8679 #ifdef __STDC__
8680 # include <limits.h>
8681 #else
8682 # include <assert.h>
8683 #endif
8684
8685 #undef $ac_func
8686
8687 /* Override any gcc2 internal prototype to avoid an error.  */
8688 #ifdef __cplusplus
8689 extern "C"
8690 {
8691 #endif
8692 /* We use char because int might match the return type of a gcc2
8693    builtin and then its argument prototype would still apply.  */
8694 char $ac_func ();
8695 /* The GNU C library defines this for functions which it implements
8696     to always fail with ENOSYS.  Some functions are actually named
8697     something starting with __ and the normal name is an alias.  */
8698 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8699 choke me
8700 #else
8701 char (*f) () = $ac_func;
8702 #endif
8703 #ifdef __cplusplus
8704 }
8705 #endif
8706
8707 int
8708 main ()
8709 {
8710 return f != $ac_func;
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext conftest$ac_exeext
8716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8717   (eval $ac_link) 2>conftest.er1
8718   ac_status=$?
8719   grep -v '^ *+' conftest.er1 >conftest.err
8720   rm -f conftest.er1
8721   cat conftest.err >&5
8722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723   (exit $ac_status); } &&
8724          { ac_try='test -z "$ac_c_werror_flag"
8725                          || test ! -s conftest.err'
8726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727   (eval $ac_try) 2>&5
8728   ac_status=$?
8729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730   (exit $ac_status); }; } &&
8731          { ac_try='test -s conftest$ac_exeext'
8732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733   (eval $ac_try) 2>&5
8734   ac_status=$?
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); }; }; then
8737   eval "$as_ac_var=yes"
8738 else
8739   echo "$as_me: failed program was:" >&5
8740 sed 's/^/| /' conftest.$ac_ext >&5
8741
8742 eval "$as_ac_var=no"
8743 fi
8744 rm -f conftest.err conftest.$ac_objext \
8745       conftest$ac_exeext conftest.$ac_ext
8746 fi
8747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8748 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8749 if test `eval echo '${'$as_ac_var'}'` = yes; then
8750   cat >>confdefs.h <<_ACEOF
8751 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8752 _ACEOF
8753
8754 fi
8755 done
8756
8757 echo "$as_me:$LINENO: checking for working mmap" >&5
8758 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8759 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8760   echo $ECHO_N "(cached) $ECHO_C" >&6
8761 else
8762   if test "$cross_compiling" = yes; then
8763   ac_cv_func_mmap_fixed_mapped=no
8764 else
8765   cat >conftest.$ac_ext <<_ACEOF
8766 /* confdefs.h.  */
8767 _ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h.  */
8771 $ac_includes_default
8772 /* malloc might have been renamed as rpl_malloc. */
8773 #undef malloc
8774
8775 /* Thanks to Mike Haertel and Jim Avera for this test.
8776    Here is a matrix of mmap possibilities:
8777         mmap private not fixed
8778         mmap private fixed at somewhere currently unmapped
8779         mmap private fixed at somewhere already mapped
8780         mmap shared not fixed
8781         mmap shared fixed at somewhere currently unmapped
8782         mmap shared fixed at somewhere already mapped
8783    For private mappings, we should verify that changes cannot be read()
8784    back from the file, nor mmap's back from the file at a different
8785    address.  (There have been systems where private was not correctly
8786    implemented like the infamous i386 svr4.0, and systems where the
8787    VM page cache was not coherent with the file system buffer cache
8788    like early versions of FreeBSD and possibly contemporary NetBSD.)
8789    For shared mappings, we should conversely verify that changes get
8790    propagated back to all the places they're supposed to be.
8791
8792    Grep wants private fixed already mapped.
8793    The main things grep needs to know about mmap are:
8794    * does it exist and is it safe to write into the mmap'd area
8795    * how to use it (BSD variants)  */
8796
8797 #include <fcntl.h>
8798 #include <sys/mman.h>
8799
8800 #if !STDC_HEADERS && !HAVE_STDLIB_H
8801 char *malloc ();
8802 #endif
8803
8804 /* This mess was copied from the GNU getpagesize.h.  */
8805 #if !HAVE_GETPAGESIZE
8806 /* Assume that all systems that can run configure have sys/param.h.  */
8807 # if !HAVE_SYS_PARAM_H
8808 #  define HAVE_SYS_PARAM_H 1
8809 # endif
8810
8811 # ifdef _SC_PAGESIZE
8812 #  define getpagesize() sysconf(_SC_PAGESIZE)
8813 # else /* no _SC_PAGESIZE */
8814 #  if HAVE_SYS_PARAM_H
8815 #   include <sys/param.h>
8816 #   ifdef EXEC_PAGESIZE
8817 #    define getpagesize() EXEC_PAGESIZE
8818 #   else /* no EXEC_PAGESIZE */
8819 #    ifdef NBPG
8820 #     define getpagesize() NBPG * CLSIZE
8821 #     ifndef CLSIZE
8822 #      define CLSIZE 1
8823 #     endif /* no CLSIZE */
8824 #    else /* no NBPG */
8825 #     ifdef NBPC
8826 #      define getpagesize() NBPC
8827 #     else /* no NBPC */
8828 #      ifdef PAGESIZE
8829 #       define getpagesize() PAGESIZE
8830 #      endif /* PAGESIZE */
8831 #     endif /* no NBPC */
8832 #    endif /* no NBPG */
8833 #   endif /* no EXEC_PAGESIZE */
8834 #  else /* no HAVE_SYS_PARAM_H */
8835 #   define getpagesize() 8192   /* punt totally */
8836 #  endif /* no HAVE_SYS_PARAM_H */
8837 # endif /* no _SC_PAGESIZE */
8838
8839 #endif /* no HAVE_GETPAGESIZE */
8840
8841 int
8842 main ()
8843 {
8844   char *data, *data2, *data3;
8845   int i, pagesize;
8846   int fd;
8847
8848   pagesize = getpagesize ();
8849
8850   /* First, make a file with some known garbage in it. */
8851   data = (char *) malloc (pagesize);
8852   if (!data)
8853     exit (1);
8854   for (i = 0; i < pagesize; ++i)
8855     *(data + i) = rand ();
8856   umask (0);
8857   fd = creat ("conftest.mmap", 0600);
8858   if (fd < 0)
8859     exit (1);
8860   if (write (fd, data, pagesize) != pagesize)
8861     exit (1);
8862   close (fd);
8863
8864   /* Next, try to mmap the file at a fixed address which already has
8865      something else allocated at it.  If we can, also make sure that
8866      we see the same garbage.  */
8867   fd = open ("conftest.mmap", O_RDWR);
8868   if (fd < 0)
8869     exit (1);
8870   data2 = (char *) malloc (2 * pagesize);
8871   if (!data2)
8872     exit (1);
8873   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8874   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8875                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8876     exit (1);
8877   for (i = 0; i < pagesize; ++i)
8878     if (*(data + i) != *(data2 + i))
8879       exit (1);
8880
8881   /* Finally, make sure that changes to the mapped area do not
8882      percolate back to the file as seen by read().  (This is a bug on
8883      some variants of i386 svr4.0.)  */
8884   for (i = 0; i < pagesize; ++i)
8885     *(data2 + i) = *(data2 + i) + 1;
8886   data3 = (char *) malloc (pagesize);
8887   if (!data3)
8888     exit (1);
8889   if (read (fd, data3, pagesize) != pagesize)
8890     exit (1);
8891   for (i = 0; i < pagesize; ++i)
8892     if (*(data + i) != *(data3 + i))
8893       exit (1);
8894   close (fd);
8895   exit (0);
8896 }
8897 _ACEOF
8898 rm -f conftest$ac_exeext
8899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900   (eval $ac_link) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905   (eval $ac_try) 2>&5
8906   ac_status=$?
8907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); }; }; then
8909   ac_cv_func_mmap_fixed_mapped=yes
8910 else
8911   echo "$as_me: program exited with status $ac_status" >&5
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8914
8915 ( exit $ac_status )
8916 ac_cv_func_mmap_fixed_mapped=no
8917 fi
8918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8919 fi
8920 fi
8921 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8922 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8923 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8924
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_MMAP 1
8927 _ACEOF
8928
8929 fi
8930 rm -f conftest.mmap
8931
8932
8933     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8934 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8935 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8936   echo $ECHO_N "(cached) $ECHO_C" >&6
8937 else
8938   cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944
8945 #include <features.h>
8946 #ifdef __GNU_LIBRARY__
8947  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8948   Lucky GNU user
8949  #endif
8950 #endif
8951
8952 _ACEOF
8953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8954   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8955   ac_cv_gnu_library_2_1=yes
8956 else
8957   ac_cv_gnu_library_2_1=no
8958 fi
8959 rm -f conftest*
8960
8961
8962
8963 fi
8964 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8965 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8966
8967     GLIBC21="$ac_cv_gnu_library_2_1"
8968
8969
8970
8971
8972   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
8973 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
8974 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
8975   echo $ECHO_N "(cached) $ECHO_C" >&6
8976 else
8977
8978       if test "$cross_compiling" = yes; then
8979
8980           # Guess based on the CPU.
8981           case "$host_cpu" in
8982             alpha* | i3456786 | m68k | s390*)
8983               gt_cv_int_divbyzero_sigfpe="guessing yes";;
8984             *)
8985               gt_cv_int_divbyzero_sigfpe="guessing no";;
8986           esac
8987
8988 else
8989   cat >conftest.$ac_ext <<_ACEOF
8990 /* confdefs.h.  */
8991 _ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h.  */
8995
8996 #include <stdlib.h>
8997 #include <signal.h>
8998
8999 static void
9000 #ifdef __cplusplus
9001 sigfpe_handler (int sig)
9002 #else
9003 sigfpe_handler (sig) int sig;
9004 #endif
9005 {
9006   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9007   exit (sig != SIGFPE);
9008 }
9009
9010 int x = 1;
9011 int y = 0;
9012 int z;
9013 int nan;
9014
9015 int main ()
9016 {
9017   signal (SIGFPE, sigfpe_handler);
9018 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9019 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9020   signal (SIGTRAP, sigfpe_handler);
9021 #endif
9022 /* Linux/SPARC yields signal SIGILL.  */
9023 #if defined (__sparc__) && defined (__linux__)
9024   signal (SIGILL, sigfpe_handler);
9025 #endif
9026
9027   z = x / y;
9028   nan = y / y;
9029   exit (1);
9030 }
9031
9032 _ACEOF
9033 rm -f conftest$ac_exeext
9034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035   (eval $ac_link) 2>&5
9036   ac_status=$?
9037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040   (eval $ac_try) 2>&5
9041   ac_status=$?
9042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043   (exit $ac_status); }; }; then
9044   gt_cv_int_divbyzero_sigfpe=yes
9045 else
9046   echo "$as_me: program exited with status $ac_status" >&5
9047 echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050 ( exit $ac_status )
9051 gt_cv_int_divbyzero_sigfpe=no
9052 fi
9053 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9054 fi
9055
9056 fi
9057 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9058 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9059   case "$gt_cv_int_divbyzero_sigfpe" in
9060     *yes) value=1;;
9061     *) value=0;;
9062   esac
9063
9064 cat >>confdefs.h <<_ACEOF
9065 #define INTDIV0_RAISES_SIGFPE $value
9066 _ACEOF
9067
9068
9069
9070   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9071 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9072 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9073   echo $ECHO_N "(cached) $ECHO_C" >&6
9074 else
9075   cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081 unsigned long long ull = 1ULL; int i = 63;
9082 int
9083 main ()
9084 {
9085 unsigned long long ullmax = (unsigned long long) -1;
9086      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext conftest$ac_exeext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9093   (eval $ac_link) 2>conftest.er1
9094   ac_status=$?
9095   grep -v '^ *+' conftest.er1 >conftest.err
9096   rm -f conftest.er1
9097   cat conftest.err >&5
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); } &&
9100          { ac_try='test -z "$ac_c_werror_flag"
9101                          || test ! -s conftest.err'
9102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103   (eval $ac_try) 2>&5
9104   ac_status=$?
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); }; } &&
9107          { ac_try='test -s conftest$ac_exeext'
9108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109   (eval $ac_try) 2>&5
9110   ac_status=$?
9111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); }; }; then
9113   ac_cv_type_unsigned_long_long=yes
9114 else
9115   echo "$as_me: failed program was:" >&5
9116 sed 's/^/| /' conftest.$ac_ext >&5
9117
9118 ac_cv_type_unsigned_long_long=no
9119 fi
9120 rm -f conftest.err conftest.$ac_objext \
9121       conftest$ac_exeext conftest.$ac_ext
9122 fi
9123 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9124 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9125   if test $ac_cv_type_unsigned_long_long = yes; then
9126
9127 cat >>confdefs.h <<\_ACEOF
9128 #define HAVE_UNSIGNED_LONG_LONG 1
9129 _ACEOF
9130
9131   fi
9132
9133
9134
9135
9136   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9137
9138     test $ac_cv_type_unsigned_long_long = yes \
9139       && ac_type='unsigned long long' \
9140       || ac_type='unsigned long'
9141
9142 cat >>confdefs.h <<_ACEOF
9143 #define uintmax_t $ac_type
9144 _ACEOF
9145
9146   else
9147
9148 cat >>confdefs.h <<\_ACEOF
9149 #define HAVE_UINTMAX_T 1
9150 _ACEOF
9151
9152   fi
9153
9154
9155   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9156 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9157 if test "${gt_cv_header_inttypes_h+set}" = set; then
9158   echo $ECHO_N "(cached) $ECHO_C" >&6
9159 else
9160
9161     cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h.  */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h.  */
9167 #include <sys/types.h>
9168 #include <inttypes.h>
9169 int
9170 main ()
9171 {
9172
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 rm -f conftest.$ac_objext
9178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9179   (eval $ac_compile) 2>conftest.er1
9180   ac_status=$?
9181   grep -v '^ *+' conftest.er1 >conftest.err
9182   rm -f conftest.er1
9183   cat conftest.err >&5
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); } &&
9186          { ac_try='test -z "$ac_c_werror_flag"
9187                          || test ! -s conftest.err'
9188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9189   (eval $ac_try) 2>&5
9190   ac_status=$?
9191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192   (exit $ac_status); }; } &&
9193          { ac_try='test -s conftest.$ac_objext'
9194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9195   (eval $ac_try) 2>&5
9196   ac_status=$?
9197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198   (exit $ac_status); }; }; then
9199   gt_cv_header_inttypes_h=yes
9200 else
9201   echo "$as_me: failed program was:" >&5
9202 sed 's/^/| /' conftest.$ac_ext >&5
9203
9204 gt_cv_header_inttypes_h=no
9205 fi
9206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9207
9208 fi
9209 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9210 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9211   if test $gt_cv_header_inttypes_h = yes; then
9212
9213 cat >>confdefs.h <<_ACEOF
9214 #define HAVE_INTTYPES_H 1
9215 _ACEOF
9216
9217   fi
9218
9219
9220
9221   if test $gt_cv_header_inttypes_h = yes; then
9222     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9223 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9224 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227
9228         cat >conftest.$ac_ext <<_ACEOF
9229 /* confdefs.h.  */
9230 _ACEOF
9231 cat confdefs.h >>conftest.$ac_ext
9232 cat >>conftest.$ac_ext <<_ACEOF
9233 /* end confdefs.h.  */
9234 #include <inttypes.h>
9235 #ifdef PRId32
9236 char *p = PRId32;
9237 #endif
9238
9239 int
9240 main ()
9241 {
9242
9243   ;
9244   return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext
9248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9249   (eval $ac_compile) 2>conftest.er1
9250   ac_status=$?
9251   grep -v '^ *+' conftest.er1 >conftest.err
9252   rm -f conftest.er1
9253   cat conftest.err >&5
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); } &&
9256          { ac_try='test -z "$ac_c_werror_flag"
9257                          || test ! -s conftest.err'
9258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259   (eval $ac_try) 2>&5
9260   ac_status=$?
9261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262   (exit $ac_status); }; } &&
9263          { ac_try='test -s conftest.$ac_objext'
9264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265   (eval $ac_try) 2>&5
9266   ac_status=$?
9267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); }; }; then
9269   gt_cv_inttypes_pri_broken=no
9270 else
9271   echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9273
9274 gt_cv_inttypes_pri_broken=yes
9275 fi
9276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9277
9278 fi
9279 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9280 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9281   fi
9282   if test "$gt_cv_inttypes_pri_broken" = yes; then
9283
9284 cat >>confdefs.h <<_ACEOF
9285 #define PRI_MACROS_BROKEN 1
9286 _ACEOF
9287
9288   fi
9289
9290
9291
9292 for ac_header in stdint.h
9293 do
9294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9295 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9296   echo "$as_me:$LINENO: checking for $ac_header" >&5
9297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9299   echo $ECHO_N "(cached) $ECHO_C" >&6
9300 fi
9301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9302 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9303 else
9304   # Is the header compilable?
9305 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9306 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9307 cat >conftest.$ac_ext <<_ACEOF
9308 /* confdefs.h.  */
9309 _ACEOF
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h.  */
9313 $ac_includes_default
9314 #include <$ac_header>
9315 _ACEOF
9316 rm -f conftest.$ac_objext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9318   (eval $ac_compile) 2>conftest.er1
9319   ac_status=$?
9320   grep -v '^ *+' conftest.er1 >conftest.err
9321   rm -f conftest.er1
9322   cat conftest.err >&5
9323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324   (exit $ac_status); } &&
9325          { ac_try='test -z "$ac_c_werror_flag"
9326                          || test ! -s conftest.err'
9327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328   (eval $ac_try) 2>&5
9329   ac_status=$?
9330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331   (exit $ac_status); }; } &&
9332          { ac_try='test -s conftest.$ac_objext'
9333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334   (eval $ac_try) 2>&5
9335   ac_status=$?
9336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337   (exit $ac_status); }; }; then
9338   ac_header_compiler=yes
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ac_header_compiler=no
9344 fi
9345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9346 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9347 echo "${ECHO_T}$ac_header_compiler" >&6
9348
9349 # Is the header present?
9350 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9353 /* confdefs.h.  */
9354 _ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h.  */
9358 #include <$ac_header>
9359 _ACEOF
9360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9361   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9362   ac_status=$?
9363   grep -v '^ *+' conftest.er1 >conftest.err
9364   rm -f conftest.er1
9365   cat conftest.err >&5
9366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367   (exit $ac_status); } >/dev/null; then
9368   if test -s conftest.err; then
9369     ac_cpp_err=$ac_c_preproc_warn_flag
9370     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9371   else
9372     ac_cpp_err=
9373   fi
9374 else
9375   ac_cpp_err=yes
9376 fi
9377 if test -z "$ac_cpp_err"; then
9378   ac_header_preproc=yes
9379 else
9380   echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9382
9383   ac_header_preproc=no
9384 fi
9385 rm -f conftest.err conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6
9388
9389 # So?  What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9391   yes:no: )
9392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396     ac_header_preproc=yes
9397     ;;
9398   no:yes:* )
9399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9411     (
9412       cat <<\_ASBOX
9413 ## ------------------------------------------ ##
9414 ## Report this to the AC_PACKAGE_NAME lists.  ##
9415 ## ------------------------------------------ ##
9416 _ASBOX
9417     ) |
9418       sed "s/^/$as_me: WARNING:     /" >&2
9419     ;;
9420 esac
9421 echo "$as_me:$LINENO: checking for $ac_header" >&5
9422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9424   echo $ECHO_N "(cached) $ECHO_C" >&6
9425 else
9426   eval "$as_ac_Header=\$ac_header_preproc"
9427 fi
9428 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9429 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9430
9431 fi
9432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9433   cat >>confdefs.h <<_ACEOF
9434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9435 _ACEOF
9436
9437 fi
9438
9439 done
9440
9441     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9442 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9443   result=
9444   cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h.  */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h.  */
9450
9451 #include <limits.h>
9452 #if HAVE_STDINT_H
9453 #include <stdint.h>
9454 #endif
9455 #ifdef SIZE_MAX
9456 Found it
9457 #endif
9458
9459 _ACEOF
9460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9461   $EGREP "Found it" >/dev/null 2>&1; then
9462   result=yes
9463 fi
9464 rm -f conftest*
9465
9466   if test -z "$result"; then
9467                     if test "$cross_compiling" = yes; then
9468   # Depending upon the size, compute the lo and hi bounds.
9469 cat >conftest.$ac_ext <<_ACEOF
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475 #include <stddef.h>
9476 int
9477 main ()
9478 {
9479 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9480 test_array [0] = 0
9481
9482   ;
9483   return 0;
9484 }
9485 _ACEOF
9486 rm -f conftest.$ac_objext
9487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9488   (eval $ac_compile) 2>conftest.er1
9489   ac_status=$?
9490   grep -v '^ *+' conftest.er1 >conftest.err
9491   rm -f conftest.er1
9492   cat conftest.err >&5
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); } &&
9495          { ac_try='test -z "$ac_c_werror_flag"
9496                          || test ! -s conftest.err'
9497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498   (eval $ac_try) 2>&5
9499   ac_status=$?
9500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501   (exit $ac_status); }; } &&
9502          { ac_try='test -s conftest.$ac_objext'
9503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9504   (eval $ac_try) 2>&5
9505   ac_status=$?
9506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507   (exit $ac_status); }; }; then
9508   ac_lo=0 ac_mid=0
9509   while :; do
9510     cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 #include <stddef.h>
9517 int
9518 main ()
9519 {
9520 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9521 test_array [0] = 0
9522
9523   ;
9524   return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext
9528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9529   (eval $ac_compile) 2>conftest.er1
9530   ac_status=$?
9531   grep -v '^ *+' conftest.er1 >conftest.err
9532   rm -f conftest.er1
9533   cat conftest.err >&5
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); } &&
9536          { ac_try='test -z "$ac_c_werror_flag"
9537                          || test ! -s conftest.err'
9538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9539   (eval $ac_try) 2>&5
9540   ac_status=$?
9541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542   (exit $ac_status); }; } &&
9543          { ac_try='test -s conftest.$ac_objext'
9544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9545   (eval $ac_try) 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; }; then
9549   ac_hi=$ac_mid; break
9550 else
9551   echo "$as_me: failed program was:" >&5
9552 sed 's/^/| /' conftest.$ac_ext >&5
9553
9554 ac_lo=`expr $ac_mid + 1`
9555                     if test $ac_lo -le $ac_mid; then
9556                       ac_lo= ac_hi=
9557                       break
9558                     fi
9559                     ac_mid=`expr 2 '*' $ac_mid + 1`
9560 fi
9561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9562   done
9563 else
9564   echo "$as_me: failed program was:" >&5
9565 sed 's/^/| /' conftest.$ac_ext >&5
9566
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 #include <stddef.h>
9574 int
9575 main ()
9576 {
9577 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9578 test_array [0] = 0
9579
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 rm -f conftest.$ac_objext
9585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9586   (eval $ac_compile) 2>conftest.er1
9587   ac_status=$?
9588   grep -v '^ *+' conftest.er1 >conftest.err
9589   rm -f conftest.er1
9590   cat conftest.err >&5
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); } &&
9593          { ac_try='test -z "$ac_c_werror_flag"
9594                          || test ! -s conftest.err'
9595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596   (eval $ac_try) 2>&5
9597   ac_status=$?
9598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); }; } &&
9600          { ac_try='test -s conftest.$ac_objext'
9601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602   (eval $ac_try) 2>&5
9603   ac_status=$?
9604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605   (exit $ac_status); }; }; then
9606   ac_hi=-1 ac_mid=-1
9607   while :; do
9608     cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 #include <stddef.h>
9615 int
9616 main ()
9617 {
9618 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9619 test_array [0] = 0
9620
9621   ;
9622   return 0;
9623 }
9624 _ACEOF
9625 rm -f conftest.$ac_objext
9626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9627   (eval $ac_compile) 2>conftest.er1
9628   ac_status=$?
9629   grep -v '^ *+' conftest.er1 >conftest.err
9630   rm -f conftest.er1
9631   cat conftest.err >&5
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); } &&
9634          { ac_try='test -z "$ac_c_werror_flag"
9635                          || test ! -s conftest.err'
9636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9637   (eval $ac_try) 2>&5
9638   ac_status=$?
9639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9640   (exit $ac_status); }; } &&
9641          { ac_try='test -s conftest.$ac_objext'
9642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9643   (eval $ac_try) 2>&5
9644   ac_status=$?
9645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646   (exit $ac_status); }; }; then
9647   ac_lo=$ac_mid; break
9648 else
9649   echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9651
9652 ac_hi=`expr '(' $ac_mid ')' - 1`
9653                        if test $ac_mid -le $ac_hi; then
9654                          ac_lo= ac_hi=
9655                          break
9656                        fi
9657                        ac_mid=`expr 2 '*' $ac_mid`
9658 fi
9659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9660   done
9661 else
9662   echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9664
9665 ac_lo= ac_hi=
9666 fi
9667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9668 fi
9669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9670 # Binary search between lo and hi bounds.
9671 while test "x$ac_lo" != "x$ac_hi"; do
9672   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9673   cat >conftest.$ac_ext <<_ACEOF
9674 /* confdefs.h.  */
9675 _ACEOF
9676 cat confdefs.h >>conftest.$ac_ext
9677 cat >>conftest.$ac_ext <<_ACEOF
9678 /* end confdefs.h.  */
9679 #include <stddef.h>
9680 int
9681 main ()
9682 {
9683 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9684 test_array [0] = 0
9685
9686   ;
9687   return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext
9691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9692   (eval $ac_compile) 2>conftest.er1
9693   ac_status=$?
9694   grep -v '^ *+' conftest.er1 >conftest.err
9695   rm -f conftest.er1
9696   cat conftest.err >&5
9697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698   (exit $ac_status); } &&
9699          { ac_try='test -z "$ac_c_werror_flag"
9700                          || test ! -s conftest.err'
9701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702   (eval $ac_try) 2>&5
9703   ac_status=$?
9704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705   (exit $ac_status); }; } &&
9706          { ac_try='test -s conftest.$ac_objext'
9707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708   (eval $ac_try) 2>&5
9709   ac_status=$?
9710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711   (exit $ac_status); }; }; then
9712   ac_hi=$ac_mid
9713 else
9714   echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_lo=`expr '(' $ac_mid ')' + 1`
9718 fi
9719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9720 done
9721 case $ac_lo in
9722 ?*) res_hi=$ac_lo;;
9723 '') result=? ;;
9724 esac
9725 else
9726   if test "$cross_compiling" = yes; then
9727   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9728 See \`config.log' for more details." >&5
9729 echo "$as_me: error: cannot run test program while cross compiling
9730 See \`config.log' for more details." >&2;}
9731    { (exit 1); exit 1; }; }
9732 else
9733   cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h.  */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h.  */
9739 #include <stddef.h>
9740 long longval () { return ~(size_t)0 / 10; }
9741 unsigned long ulongval () { return ~(size_t)0 / 10; }
9742 #include <stdio.h>
9743 #include <stdlib.h>
9744 int
9745 main ()
9746 {
9747
9748   FILE *f = fopen ("conftest.val", "w");
9749   if (! f)
9750     exit (1);
9751   if ((~(size_t)0 / 10) < 0)
9752     {
9753       long i = longval ();
9754       if (i != (~(size_t)0 / 10))
9755         exit (1);
9756       fprintf (f, "%ld\n", i);
9757     }
9758   else
9759     {
9760       unsigned long i = ulongval ();
9761       if (i != (~(size_t)0 / 10))
9762         exit (1);
9763       fprintf (f, "%lu\n", i);
9764     }
9765   exit (ferror (f) || fclose (f) != 0);
9766
9767   ;
9768   return 0;
9769 }
9770 _ACEOF
9771 rm -f conftest$ac_exeext
9772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773   (eval $ac_link) 2>&5
9774   ac_status=$?
9775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
9782   res_hi=`cat conftest.val`
9783 else
9784   echo "$as_me: program exited with status $ac_status" >&5
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788 ( exit $ac_status )
9789 result=?
9790 fi
9791 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 fi
9794 rm -f conftest.val
9795     if test "$cross_compiling" = yes; then
9796   # Depending upon the size, compute the lo and hi bounds.
9797 cat >conftest.$ac_ext <<_ACEOF
9798 /* confdefs.h.  */
9799 _ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h.  */
9803 #include <stddef.h>
9804 int
9805 main ()
9806 {
9807 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9808 test_array [0] = 0
9809
9810   ;
9811   return 0;
9812 }
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9816   (eval $ac_compile) 2>conftest.er1
9817   ac_status=$?
9818   grep -v '^ *+' conftest.er1 >conftest.err
9819   rm -f conftest.er1
9820   cat conftest.err >&5
9821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822   (exit $ac_status); } &&
9823          { ac_try='test -z "$ac_c_werror_flag"
9824                          || test ! -s conftest.err'
9825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9826   (eval $ac_try) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); }; } &&
9830          { ac_try='test -s conftest.$ac_objext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836   ac_lo=0 ac_mid=0
9837   while :; do
9838     cat >conftest.$ac_ext <<_ACEOF
9839 /* confdefs.h.  */
9840 _ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h.  */
9844 #include <stddef.h>
9845 int
9846 main ()
9847 {
9848 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9849 test_array [0] = 0
9850
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857   (eval $ac_compile) 2>conftest.er1
9858   ac_status=$?
9859   grep -v '^ *+' conftest.er1 >conftest.err
9860   rm -f conftest.er1
9861   cat conftest.err >&5
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } &&
9864          { ac_try='test -z "$ac_c_werror_flag"
9865                          || test ! -s conftest.err'
9866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867   (eval $ac_try) 2>&5
9868   ac_status=$?
9869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870   (exit $ac_status); }; } &&
9871          { ac_try='test -s conftest.$ac_objext'
9872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873   (eval $ac_try) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); }; }; then
9877   ac_hi=$ac_mid; break
9878 else
9879   echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 ac_lo=`expr $ac_mid + 1`
9883                     if test $ac_lo -le $ac_mid; then
9884                       ac_lo= ac_hi=
9885                       break
9886                     fi
9887                     ac_mid=`expr 2 '*' $ac_mid + 1`
9888 fi
9889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9890   done
9891 else
9892   echo "$as_me: failed program was:" >&5
9893 sed 's/^/| /' conftest.$ac_ext >&5
9894
9895 cat >conftest.$ac_ext <<_ACEOF
9896 /* confdefs.h.  */
9897 _ACEOF
9898 cat confdefs.h >>conftest.$ac_ext
9899 cat >>conftest.$ac_ext <<_ACEOF
9900 /* end confdefs.h.  */
9901 #include <stddef.h>
9902 int
9903 main ()
9904 {
9905 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9906 test_array [0] = 0
9907
9908   ;
9909   return 0;
9910 }
9911 _ACEOF
9912 rm -f conftest.$ac_objext
9913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9914   (eval $ac_compile) 2>conftest.er1
9915   ac_status=$?
9916   grep -v '^ *+' conftest.er1 >conftest.err
9917   rm -f conftest.er1
9918   cat conftest.err >&5
9919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920   (exit $ac_status); } &&
9921          { ac_try='test -z "$ac_c_werror_flag"
9922                          || test ! -s conftest.err'
9923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9924   (eval $ac_try) 2>&5
9925   ac_status=$?
9926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927   (exit $ac_status); }; } &&
9928          { ac_try='test -s conftest.$ac_objext'
9929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9930   (eval $ac_try) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); }; }; then
9934   ac_hi=-1 ac_mid=-1
9935   while :; do
9936     cat >conftest.$ac_ext <<_ACEOF
9937 /* confdefs.h.  */
9938 _ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h.  */
9942 #include <stddef.h>
9943 int
9944 main ()
9945 {
9946 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9947 test_array [0] = 0
9948
9949   ;
9950   return 0;
9951 }
9952 _ACEOF
9953 rm -f conftest.$ac_objext
9954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955   (eval $ac_compile) 2>conftest.er1
9956   ac_status=$?
9957   grep -v '^ *+' conftest.er1 >conftest.err
9958   rm -f conftest.er1
9959   cat conftest.err >&5
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); } &&
9962          { ac_try='test -z "$ac_c_werror_flag"
9963                          || test ! -s conftest.err'
9964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9965   (eval $ac_try) 2>&5
9966   ac_status=$?
9967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968   (exit $ac_status); }; } &&
9969          { ac_try='test -s conftest.$ac_objext'
9970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9971   (eval $ac_try) 2>&5
9972   ac_status=$?
9973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974   (exit $ac_status); }; }; then
9975   ac_lo=$ac_mid; break
9976 else
9977   echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9979
9980 ac_hi=`expr '(' $ac_mid ')' - 1`
9981                        if test $ac_mid -le $ac_hi; then
9982                          ac_lo= ac_hi=
9983                          break
9984                        fi
9985                        ac_mid=`expr 2 '*' $ac_mid`
9986 fi
9987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9988   done
9989 else
9990   echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9992
9993 ac_lo= ac_hi=
9994 fi
9995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9996 fi
9997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9998 # Binary search between lo and hi bounds.
9999 while test "x$ac_lo" != "x$ac_hi"; do
10000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10001   cat >conftest.$ac_ext <<_ACEOF
10002 /* confdefs.h.  */
10003 _ACEOF
10004 cat confdefs.h >>conftest.$ac_ext
10005 cat >>conftest.$ac_ext <<_ACEOF
10006 /* end confdefs.h.  */
10007 #include <stddef.h>
10008 int
10009 main ()
10010 {
10011 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10012 test_array [0] = 0
10013
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10020   (eval $ac_compile) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027          { ac_try='test -z "$ac_c_werror_flag"
10028                          || test ! -s conftest.err'
10029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10030   (eval $ac_try) 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest.$ac_objext'
10035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10036   (eval $ac_try) 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   ac_hi=$ac_mid
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045 ac_lo=`expr '(' $ac_mid ')' + 1`
10046 fi
10047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10048 done
10049 case $ac_lo in
10050 ?*) res_lo=$ac_lo;;
10051 '') result=? ;;
10052 esac
10053 else
10054   if test "$cross_compiling" = yes; then
10055   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10056 See \`config.log' for more details." >&5
10057 echo "$as_me: error: cannot run test program while cross compiling
10058 See \`config.log' for more details." >&2;}
10059    { (exit 1); exit 1; }; }
10060 else
10061   cat >conftest.$ac_ext <<_ACEOF
10062 /* confdefs.h.  */
10063 _ACEOF
10064 cat confdefs.h >>conftest.$ac_ext
10065 cat >>conftest.$ac_ext <<_ACEOF
10066 /* end confdefs.h.  */
10067 #include <stddef.h>
10068 long longval () { return ~(size_t)0 % 10; }
10069 unsigned long ulongval () { return ~(size_t)0 % 10; }
10070 #include <stdio.h>
10071 #include <stdlib.h>
10072 int
10073 main ()
10074 {
10075
10076   FILE *f = fopen ("conftest.val", "w");
10077   if (! f)
10078     exit (1);
10079   if ((~(size_t)0 % 10) < 0)
10080     {
10081       long i = longval ();
10082       if (i != (~(size_t)0 % 10))
10083         exit (1);
10084       fprintf (f, "%ld\n", i);
10085     }
10086   else
10087     {
10088       unsigned long i = ulongval ();
10089       if (i != (~(size_t)0 % 10))
10090         exit (1);
10091       fprintf (f, "%lu\n", i);
10092     }
10093   exit (ferror (f) || fclose (f) != 0);
10094
10095   ;
10096   return 0;
10097 }
10098 _ACEOF
10099 rm -f conftest$ac_exeext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10101   (eval $ac_link) 2>&5
10102   ac_status=$?
10103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10110   res_lo=`cat conftest.val`
10111 else
10112   echo "$as_me: program exited with status $ac_status" >&5
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10115
10116 ( exit $ac_status )
10117 result=?
10118 fi
10119 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10120 fi
10121 fi
10122 rm -f conftest.val
10123     if test "$cross_compiling" = yes; then
10124   # Depending upon the size, compute the lo and hi bounds.
10125 cat >conftest.$ac_ext <<_ACEOF
10126 /* confdefs.h.  */
10127 _ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h.  */
10131 #include <stddef.h>
10132 int
10133 main ()
10134 {
10135 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10136 test_array [0] = 0
10137
10138   ;
10139   return 0;
10140 }
10141 _ACEOF
10142 rm -f conftest.$ac_objext
10143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10144   (eval $ac_compile) 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -z "$ac_c_werror_flag"
10152                          || test ! -s conftest.err'
10153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10154   (eval $ac_try) 2>&5
10155   ac_status=$?
10156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10157   (exit $ac_status); }; } &&
10158          { ac_try='test -s conftest.$ac_objext'
10159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10160   (eval $ac_try) 2>&5
10161   ac_status=$?
10162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10163   (exit $ac_status); }; }; then
10164   ac_lo=0 ac_mid=0
10165   while :; do
10166     cat >conftest.$ac_ext <<_ACEOF
10167 /* confdefs.h.  */
10168 _ACEOF
10169 cat confdefs.h >>conftest.$ac_ext
10170 cat >>conftest.$ac_ext <<_ACEOF
10171 /* end confdefs.h.  */
10172 #include <stddef.h>
10173 int
10174 main ()
10175 {
10176 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10177 test_array [0] = 0
10178
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185   (eval $ac_compile) 2>conftest.er1
10186   ac_status=$?
10187   grep -v '^ *+' conftest.er1 >conftest.err
10188   rm -f conftest.er1
10189   cat conftest.err >&5
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); } &&
10192          { ac_try='test -z "$ac_c_werror_flag"
10193                          || test ! -s conftest.err'
10194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10195   (eval $ac_try) 2>&5
10196   ac_status=$?
10197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198   (exit $ac_status); }; } &&
10199          { ac_try='test -s conftest.$ac_objext'
10200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201   (eval $ac_try) 2>&5
10202   ac_status=$?
10203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204   (exit $ac_status); }; }; then
10205   ac_hi=$ac_mid; break
10206 else
10207   echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_lo=`expr $ac_mid + 1`
10211                     if test $ac_lo -le $ac_mid; then
10212                       ac_lo= ac_hi=
10213                       break
10214                     fi
10215                     ac_mid=`expr 2 '*' $ac_mid + 1`
10216 fi
10217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10218   done
10219 else
10220   echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h.  */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h.  */
10229 #include <stddef.h>
10230 int
10231 main ()
10232 {
10233 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10234 test_array [0] = 0
10235
10236   ;
10237   return 0;
10238 }
10239 _ACEOF
10240 rm -f conftest.$ac_objext
10241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10242   (eval $ac_compile) 2>conftest.er1
10243   ac_status=$?
10244   grep -v '^ *+' conftest.er1 >conftest.err
10245   rm -f conftest.er1
10246   cat conftest.err >&5
10247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248   (exit $ac_status); } &&
10249          { ac_try='test -z "$ac_c_werror_flag"
10250                          || test ! -s conftest.err'
10251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252   (eval $ac_try) 2>&5
10253   ac_status=$?
10254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255   (exit $ac_status); }; } &&
10256          { ac_try='test -s conftest.$ac_objext'
10257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258   (eval $ac_try) 2>&5
10259   ac_status=$?
10260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261   (exit $ac_status); }; }; then
10262   ac_hi=-1 ac_mid=-1
10263   while :; do
10264     cat >conftest.$ac_ext <<_ACEOF
10265 /* confdefs.h.  */
10266 _ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h.  */
10270 #include <stddef.h>
10271 int
10272 main ()
10273 {
10274 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10275 test_array [0] = 0
10276
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext
10282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10283   (eval $ac_compile) 2>conftest.er1
10284   ac_status=$?
10285   grep -v '^ *+' conftest.er1 >conftest.err
10286   rm -f conftest.er1
10287   cat conftest.err >&5
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); } &&
10290          { ac_try='test -z "$ac_c_werror_flag"
10291                          || test ! -s conftest.err'
10292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293   (eval $ac_try) 2>&5
10294   ac_status=$?
10295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296   (exit $ac_status); }; } &&
10297          { ac_try='test -s conftest.$ac_objext'
10298   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10299   (eval $ac_try) 2>&5
10300   ac_status=$?
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); }; }; then
10303   ac_lo=$ac_mid; break
10304 else
10305   echo "$as_me: failed program was:" >&5
10306 sed 's/^/| /' conftest.$ac_ext >&5
10307
10308 ac_hi=`expr '(' $ac_mid ')' - 1`
10309                        if test $ac_mid -le $ac_hi; then
10310                          ac_lo= ac_hi=
10311                          break
10312                        fi
10313                        ac_mid=`expr 2 '*' $ac_mid`
10314 fi
10315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316   done
10317 else
10318   echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10320
10321 ac_lo= ac_hi=
10322 fi
10323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10326 # Binary search between lo and hi bounds.
10327 while test "x$ac_lo" != "x$ac_hi"; do
10328   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10329   cat >conftest.$ac_ext <<_ACEOF
10330 /* confdefs.h.  */
10331 _ACEOF
10332 cat confdefs.h >>conftest.$ac_ext
10333 cat >>conftest.$ac_ext <<_ACEOF
10334 /* end confdefs.h.  */
10335 #include <stddef.h>
10336 int
10337 main ()
10338 {
10339 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10340 test_array [0] = 0
10341
10342   ;
10343   return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext
10347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10348   (eval $ac_compile) 2>conftest.er1
10349   ac_status=$?
10350   grep -v '^ *+' conftest.er1 >conftest.err
10351   rm -f conftest.er1
10352   cat conftest.err >&5
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); } &&
10355          { ac_try='test -z "$ac_c_werror_flag"
10356                          || test ! -s conftest.err'
10357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10358   (eval $ac_try) 2>&5
10359   ac_status=$?
10360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361   (exit $ac_status); }; } &&
10362          { ac_try='test -s conftest.$ac_objext'
10363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364   (eval $ac_try) 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); }; }; then
10368   ac_hi=$ac_mid
10369 else
10370   echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 ac_lo=`expr '(' $ac_mid ')' + 1`
10374 fi
10375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10376 done
10377 case $ac_lo in
10378 ?*) fits_in_uint=$ac_lo;;
10379 '') result=? ;;
10380 esac
10381 else
10382   if test "$cross_compiling" = yes; then
10383   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10384 See \`config.log' for more details." >&5
10385 echo "$as_me: error: cannot run test program while cross compiling
10386 See \`config.log' for more details." >&2;}
10387    { (exit 1); exit 1; }; }
10388 else
10389   cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395 #include <stddef.h>
10396 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10397 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10398 #include <stdio.h>
10399 #include <stdlib.h>
10400 int
10401 main ()
10402 {
10403
10404   FILE *f = fopen ("conftest.val", "w");
10405   if (! f)
10406     exit (1);
10407   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10408     {
10409       long i = longval ();
10410       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10411         exit (1);
10412       fprintf (f, "%ld\n", i);
10413     }
10414   else
10415     {
10416       unsigned long i = ulongval ();
10417       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10418         exit (1);
10419       fprintf (f, "%lu\n", i);
10420     }
10421   exit (ferror (f) || fclose (f) != 0);
10422
10423   ;
10424   return 0;
10425 }
10426 _ACEOF
10427 rm -f conftest$ac_exeext
10428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10429   (eval $ac_link) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
10438   fits_in_uint=`cat conftest.val`
10439 else
10440   echo "$as_me: program exited with status $ac_status" >&5
10441 echo "$as_me: failed program was:" >&5
10442 sed 's/^/| /' conftest.$ac_ext >&5
10443
10444 ( exit $ac_status )
10445 result=?
10446 fi
10447 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10448 fi
10449 fi
10450 rm -f conftest.val
10451     if test "$fits_in_uint" = 1; then
10452                   cat >conftest.$ac_ext <<_ACEOF
10453 /* confdefs.h.  */
10454 _ACEOF
10455 cat confdefs.h >>conftest.$ac_ext
10456 cat >>conftest.$ac_ext <<_ACEOF
10457 /* end confdefs.h.  */
10458 #include <stddef.h>
10459         extern size_t foo;
10460         extern unsigned long foo;
10461
10462 int
10463 main ()
10464 {
10465
10466   ;
10467   return 0;
10468 }
10469 _ACEOF
10470 rm -f conftest.$ac_objext
10471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10472   (eval $ac_compile) 2>conftest.er1
10473   ac_status=$?
10474   grep -v '^ *+' conftest.er1 >conftest.err
10475   rm -f conftest.er1
10476   cat conftest.err >&5
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } &&
10479          { ac_try='test -z "$ac_c_werror_flag"
10480                          || test ! -s conftest.err'
10481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482   (eval $ac_try) 2>&5
10483   ac_status=$?
10484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485   (exit $ac_status); }; } &&
10486          { ac_try='test -s conftest.$ac_objext'
10487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488   (eval $ac_try) 2>&5
10489   ac_status=$?
10490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491   (exit $ac_status); }; }; then
10492   fits_in_uint=0
10493 else
10494   echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10496
10497 fi
10498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10499     fi
10500     if test -z "$result"; then
10501       if test "$fits_in_uint" = 1; then
10502         result="$res_hi$res_lo"U
10503       else
10504         result="$res_hi$res_lo"UL
10505       fi
10506     else
10507             result='~(size_t)0'
10508     fi
10509   fi
10510   echo "$as_me:$LINENO: result: $result" >&5
10511 echo "${ECHO_T}$result" >&6
10512   if test "$result" != yes; then
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define SIZE_MAX $result
10516 _ACEOF
10517
10518   fi
10519
10520
10521
10522
10523
10524 for ac_header in stdint.h
10525 do
10526 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10528   echo "$as_me:$LINENO: checking for $ac_header" >&5
10529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10531   echo $ECHO_N "(cached) $ECHO_C" >&6
10532 fi
10533 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10534 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10535 else
10536   # Is the header compilable?
10537 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10538 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10539 cat >conftest.$ac_ext <<_ACEOF
10540 /* confdefs.h.  */
10541 _ACEOF
10542 cat confdefs.h >>conftest.$ac_ext
10543 cat >>conftest.$ac_ext <<_ACEOF
10544 /* end confdefs.h.  */
10545 $ac_includes_default
10546 #include <$ac_header>
10547 _ACEOF
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550   (eval $ac_compile) 2>conftest.er1
10551   ac_status=$?
10552   grep -v '^ *+' conftest.er1 >conftest.err
10553   rm -f conftest.er1
10554   cat conftest.err >&5
10555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556   (exit $ac_status); } &&
10557          { ac_try='test -z "$ac_c_werror_flag"
10558                          || test ! -s conftest.err'
10559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10560   (eval $ac_try) 2>&5
10561   ac_status=$?
10562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563   (exit $ac_status); }; } &&
10564          { ac_try='test -s conftest.$ac_objext'
10565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566   (eval $ac_try) 2>&5
10567   ac_status=$?
10568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569   (exit $ac_status); }; }; then
10570   ac_header_compiler=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 ac_header_compiler=no
10576 fi
10577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10578 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10579 echo "${ECHO_T}$ac_header_compiler" >&6
10580
10581 # Is the header present?
10582 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10584 cat >conftest.$ac_ext <<_ACEOF
10585 /* confdefs.h.  */
10586 _ACEOF
10587 cat confdefs.h >>conftest.$ac_ext
10588 cat >>conftest.$ac_ext <<_ACEOF
10589 /* end confdefs.h.  */
10590 #include <$ac_header>
10591 _ACEOF
10592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10593   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10594   ac_status=$?
10595   grep -v '^ *+' conftest.er1 >conftest.err
10596   rm -f conftest.er1
10597   cat conftest.err >&5
10598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599   (exit $ac_status); } >/dev/null; then
10600   if test -s conftest.err; then
10601     ac_cpp_err=$ac_c_preproc_warn_flag
10602     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10603   else
10604     ac_cpp_err=
10605   fi
10606 else
10607   ac_cpp_err=yes
10608 fi
10609 if test -z "$ac_cpp_err"; then
10610   ac_header_preproc=yes
10611 else
10612   echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615   ac_header_preproc=no
10616 fi
10617 rm -f conftest.err conftest.$ac_ext
10618 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10619 echo "${ECHO_T}$ac_header_preproc" >&6
10620
10621 # So?  What about this header?
10622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10623   yes:no: )
10624     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10625 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10626     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10627 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10628     ac_header_preproc=yes
10629     ;;
10630   no:yes:* )
10631     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10632 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10633     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10634 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10635     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10636 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10637     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10638 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10640 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10641     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10642 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10643     (
10644       cat <<\_ASBOX
10645 ## ------------------------------------------ ##
10646 ## Report this to the AC_PACKAGE_NAME lists.  ##
10647 ## ------------------------------------------ ##
10648 _ASBOX
10649     ) |
10650       sed "s/^/$as_me: WARNING:     /" >&2
10651     ;;
10652 esac
10653 echo "$as_me:$LINENO: checking for $ac_header" >&5
10654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10655 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10656   echo $ECHO_N "(cached) $ECHO_C" >&6
10657 else
10658   eval "$as_ac_Header=\$ac_header_preproc"
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10662
10663 fi
10664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10665   cat >>confdefs.h <<_ACEOF
10666 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10667 _ACEOF
10668
10669 fi
10670
10671 done
10672
10673
10674
10675
10676
10677
10678
10679
10680   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10681 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10682 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10683   echo $ECHO_N "(cached) $ECHO_C" >&6
10684 else
10685   cat >conftest.$ac_ext <<_ACEOF
10686 /* confdefs.h.  */
10687 _ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h.  */
10691 $ac_includes_default
10692 int
10693 main ()
10694 {
10695 if ((ptrdiff_t *) 0)
10696   return 0;
10697 if (sizeof (ptrdiff_t))
10698   return 0;
10699   ;
10700   return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10705   (eval $ac_compile) 2>conftest.er1
10706   ac_status=$?
10707   grep -v '^ *+' conftest.er1 >conftest.err
10708   rm -f conftest.er1
10709   cat conftest.err >&5
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); } &&
10712          { ac_try='test -z "$ac_c_werror_flag"
10713                          || test ! -s conftest.err'
10714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715   (eval $ac_try) 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; } &&
10719          { ac_try='test -s conftest.$ac_objext'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_cv_type_ptrdiff_t=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730 ac_cv_type_ptrdiff_t=no
10731 fi
10732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10733 fi
10734 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10735 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10736 if test $ac_cv_type_ptrdiff_t = yes; then
10737   :
10738 else
10739
10740 cat >>confdefs.h <<\_ACEOF
10741 #define ptrdiff_t long
10742 _ACEOF
10743
10744
10745 fi
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10758 stdlib.h string.h unistd.h sys/param.h
10759 do
10760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10761 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10762   echo "$as_me:$LINENO: checking for $ac_header" >&5
10763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10764 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10765   echo $ECHO_N "(cached) $ECHO_C" >&6
10766 fi
10767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10768 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10769 else
10770   # Is the header compilable?
10771 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10772 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10773 cat >conftest.$ac_ext <<_ACEOF
10774 /* confdefs.h.  */
10775 _ACEOF
10776 cat confdefs.h >>conftest.$ac_ext
10777 cat >>conftest.$ac_ext <<_ACEOF
10778 /* end confdefs.h.  */
10779 $ac_includes_default
10780 #include <$ac_header>
10781 _ACEOF
10782 rm -f conftest.$ac_objext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10784   (eval $ac_compile) 2>conftest.er1
10785   ac_status=$?
10786   grep -v '^ *+' conftest.er1 >conftest.err
10787   rm -f conftest.er1
10788   cat conftest.err >&5
10789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10790   (exit $ac_status); } &&
10791          { ac_try='test -z "$ac_c_werror_flag"
10792                          || test ! -s conftest.err'
10793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10794   (eval $ac_try) 2>&5
10795   ac_status=$?
10796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797   (exit $ac_status); }; } &&
10798          { ac_try='test -s conftest.$ac_objext'
10799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10800   (eval $ac_try) 2>&5
10801   ac_status=$?
10802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803   (exit $ac_status); }; }; then
10804   ac_header_compiler=yes
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 ac_header_compiler=no
10810 fi
10811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10812 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10813 echo "${ECHO_T}$ac_header_compiler" >&6
10814
10815 # Is the header present?
10816 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10817 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10818 cat >conftest.$ac_ext <<_ACEOF
10819 /* confdefs.h.  */
10820 _ACEOF
10821 cat confdefs.h >>conftest.$ac_ext
10822 cat >>conftest.$ac_ext <<_ACEOF
10823 /* end confdefs.h.  */
10824 #include <$ac_header>
10825 _ACEOF
10826 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10827   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10828   ac_status=$?
10829   grep -v '^ *+' conftest.er1 >conftest.err
10830   rm -f conftest.er1
10831   cat conftest.err >&5
10832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833   (exit $ac_status); } >/dev/null; then
10834   if test -s conftest.err; then
10835     ac_cpp_err=$ac_c_preproc_warn_flag
10836     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10837   else
10838     ac_cpp_err=
10839   fi
10840 else
10841   ac_cpp_err=yes
10842 fi
10843 if test -z "$ac_cpp_err"; then
10844   ac_header_preproc=yes
10845 else
10846   echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849   ac_header_preproc=no
10850 fi
10851 rm -f conftest.err conftest.$ac_ext
10852 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10853 echo "${ECHO_T}$ac_header_preproc" >&6
10854
10855 # So?  What about this header?
10856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10857   yes:no: )
10858     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10860     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10862     ac_header_preproc=yes
10863     ;;
10864   no:yes:* )
10865     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10867     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10868 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10869     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10871     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10872 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10873     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10875     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10877     (
10878       cat <<\_ASBOX
10879 ## ------------------------------------------ ##
10880 ## Report this to the AC_PACKAGE_NAME lists.  ##
10881 ## ------------------------------------------ ##
10882 _ASBOX
10883     ) |
10884       sed "s/^/$as_me: WARNING:     /" >&2
10885     ;;
10886 esac
10887 echo "$as_me:$LINENO: checking for $ac_header" >&5
10888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   eval "$as_ac_Header=\$ac_header_preproc"
10893 fi
10894 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10895 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10896
10897 fi
10898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10899   cat >>confdefs.h <<_ACEOF
10900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10901 _ACEOF
10902
10903 fi
10904
10905 done
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10931 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10932 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10933 __fsetlocking
10934 do
10935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 echo "$as_me:$LINENO: checking for $ac_func" >&5
10937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10938 if eval "test \"\${$as_ac_var+set}\" = set"; then
10939   echo $ECHO_N "(cached) $ECHO_C" >&6
10940 else
10941   cat >conftest.$ac_ext <<_ACEOF
10942 /* confdefs.h.  */
10943 _ACEOF
10944 cat confdefs.h >>conftest.$ac_ext
10945 cat >>conftest.$ac_ext <<_ACEOF
10946 /* end confdefs.h.  */
10947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10949 #define $ac_func innocuous_$ac_func
10950
10951 /* System header to define __stub macros and hopefully few prototypes,
10952     which can conflict with char $ac_func (); below.
10953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10954     <limits.h> exists even on freestanding compilers.  */
10955
10956 #ifdef __STDC__
10957 # include <limits.h>
10958 #else
10959 # include <assert.h>
10960 #endif
10961
10962 #undef $ac_func
10963
10964 /* Override any gcc2 internal prototype to avoid an error.  */
10965 #ifdef __cplusplus
10966 extern "C"
10967 {
10968 #endif
10969 /* We use char because int might match the return type of a gcc2
10970    builtin and then its argument prototype would still apply.  */
10971 char $ac_func ();
10972 /* The GNU C library defines this for functions which it implements
10973     to always fail with ENOSYS.  Some functions are actually named
10974     something starting with __ and the normal name is an alias.  */
10975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10976 choke me
10977 #else
10978 char (*f) () = $ac_func;
10979 #endif
10980 #ifdef __cplusplus
10981 }
10982 #endif
10983
10984 int
10985 main ()
10986 {
10987 return f != $ac_func;
10988   ;
10989   return 0;
10990 }
10991 _ACEOF
10992 rm -f conftest.$ac_objext conftest$ac_exeext
10993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10994   (eval $ac_link) 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -z "$ac_c_werror_flag"
11002                          || test ! -s conftest.err'
11003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11004   (eval $ac_try) 2>&5
11005   ac_status=$?
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); }; } &&
11008          { ac_try='test -s conftest$ac_exeext'
11009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010   (eval $ac_try) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); }; }; then
11014   eval "$as_ac_var=yes"
11015 else
11016   echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 eval "$as_ac_var=no"
11020 fi
11021 rm -f conftest.err conftest.$ac_objext \
11022       conftest$ac_exeext conftest.$ac_ext
11023 fi
11024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027   cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 _ACEOF
11030
11031 fi
11032 done
11033
11034
11035
11036   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11037 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11038 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11039   echo $ECHO_N "(cached) $ECHO_C" >&6
11040 else
11041   cat >conftest.$ac_ext <<_ACEOF
11042 /* confdefs.h.  */
11043 _ACEOF
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h.  */
11047 #include <stdio.h>
11048 int
11049 main ()
11050 {
11051
11052 #ifndef _snprintf
11053   char *p = (char *) _snprintf;
11054 #endif
11055
11056   ;
11057   return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11062   (eval $ac_compile) 2>conftest.er1
11063   ac_status=$?
11064   grep -v '^ *+' conftest.er1 >conftest.err
11065   rm -f conftest.er1
11066   cat conftest.err >&5
11067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068   (exit $ac_status); } &&
11069          { ac_try='test -z "$ac_c_werror_flag"
11070                          || test ! -s conftest.err'
11071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11072   (eval $ac_try) 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; } &&
11076          { ac_try='test -s conftest.$ac_objext'
11077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11078   (eval $ac_try) 2>&5
11079   ac_status=$?
11080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081   (exit $ac_status); }; }; then
11082   ac_cv_have_decl__snprintf=yes
11083 else
11084   echo "$as_me: failed program was:" >&5
11085 sed 's/^/| /' conftest.$ac_ext >&5
11086
11087 ac_cv_have_decl__snprintf=no
11088 fi
11089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11090 fi
11091 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11092 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11093   if test $ac_cv_have_decl__snprintf = yes; then
11094     gt_value=1
11095   else
11096     gt_value=0
11097   fi
11098
11099 cat >>confdefs.h <<_ACEOF
11100 #define HAVE_DECL__SNPRINTF $gt_value
11101 _ACEOF
11102
11103
11104
11105   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11106 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11107 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11108   echo $ECHO_N "(cached) $ECHO_C" >&6
11109 else
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stdio.h>
11117 int
11118 main ()
11119 {
11120
11121 #ifndef _snwprintf
11122   char *p = (char *) _snwprintf;
11123 #endif
11124
11125   ;
11126   return 0;
11127 }
11128 _ACEOF
11129 rm -f conftest.$ac_objext
11130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131   (eval $ac_compile) 2>conftest.er1
11132   ac_status=$?
11133   grep -v '^ *+' conftest.er1 >conftest.err
11134   rm -f conftest.er1
11135   cat conftest.err >&5
11136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137   (exit $ac_status); } &&
11138          { ac_try='test -z "$ac_c_werror_flag"
11139                          || test ! -s conftest.err'
11140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141   (eval $ac_try) 2>&5
11142   ac_status=$?
11143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144   (exit $ac_status); }; } &&
11145          { ac_try='test -s conftest.$ac_objext'
11146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147   (eval $ac_try) 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; }; then
11151   ac_cv_have_decl__snwprintf=yes
11152 else
11153   echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11155
11156 ac_cv_have_decl__snwprintf=no
11157 fi
11158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11159 fi
11160 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11161 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11162   if test $ac_cv_have_decl__snwprintf = yes; then
11163     gt_value=1
11164   else
11165     gt_value=0
11166   fi
11167
11168 cat >>confdefs.h <<_ACEOF
11169 #define HAVE_DECL__SNWPRINTF $gt_value
11170 _ACEOF
11171
11172
11173
11174
11175   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11176 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11177 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11178   echo $ECHO_N "(cached) $ECHO_C" >&6
11179 else
11180   cat >conftest.$ac_ext <<_ACEOF
11181 /* confdefs.h.  */
11182 _ACEOF
11183 cat confdefs.h >>conftest.$ac_ext
11184 cat >>conftest.$ac_ext <<_ACEOF
11185 /* end confdefs.h.  */
11186 #include <stdio.h>
11187 int
11188 main ()
11189 {
11190
11191 #ifndef feof_unlocked
11192   char *p = (char *) feof_unlocked;
11193 #endif
11194
11195   ;
11196   return 0;
11197 }
11198 _ACEOF
11199 rm -f conftest.$ac_objext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11201   (eval $ac_compile) 2>conftest.er1
11202   ac_status=$?
11203   grep -v '^ *+' conftest.er1 >conftest.err
11204   rm -f conftest.er1
11205   cat conftest.err >&5
11206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207   (exit $ac_status); } &&
11208          { ac_try='test -z "$ac_c_werror_flag"
11209                          || test ! -s conftest.err'
11210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11211   (eval $ac_try) 2>&5
11212   ac_status=$?
11213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214   (exit $ac_status); }; } &&
11215          { ac_try='test -s conftest.$ac_objext'
11216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11217   (eval $ac_try) 2>&5
11218   ac_status=$?
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); }; }; then
11221   ac_cv_have_decl_feof_unlocked=yes
11222 else
11223   echo "$as_me: failed program was:" >&5
11224 sed 's/^/| /' conftest.$ac_ext >&5
11225
11226 ac_cv_have_decl_feof_unlocked=no
11227 fi
11228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11229 fi
11230 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11231 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11232   if test $ac_cv_have_decl_feof_unlocked = yes; then
11233     gt_value=1
11234   else
11235     gt_value=0
11236   fi
11237
11238 cat >>confdefs.h <<_ACEOF
11239 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11240 _ACEOF
11241
11242
11243
11244   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11245 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11246 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11247   echo $ECHO_N "(cached) $ECHO_C" >&6
11248 else
11249   cat >conftest.$ac_ext <<_ACEOF
11250 /* confdefs.h.  */
11251 _ACEOF
11252 cat confdefs.h >>conftest.$ac_ext
11253 cat >>conftest.$ac_ext <<_ACEOF
11254 /* end confdefs.h.  */
11255 #include <stdio.h>
11256 int
11257 main ()
11258 {
11259
11260 #ifndef fgets_unlocked
11261   char *p = (char *) fgets_unlocked;
11262 #endif
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11270   (eval $ac_compile) 2>conftest.er1
11271   ac_status=$?
11272   grep -v '^ *+' conftest.er1 >conftest.err
11273   rm -f conftest.er1
11274   cat conftest.err >&5
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); } &&
11277          { ac_try='test -z "$ac_c_werror_flag"
11278                          || test ! -s conftest.err'
11279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11280   (eval $ac_try) 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11286   (eval $ac_try) 2>&5
11287   ac_status=$?
11288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289   (exit $ac_status); }; }; then
11290   ac_cv_have_decl_fgets_unlocked=yes
11291 else
11292   echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 ac_cv_have_decl_fgets_unlocked=no
11296 fi
11297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 fi
11299 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11300 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11301   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11302     gt_value=1
11303   else
11304     gt_value=0
11305   fi
11306
11307 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11309 _ACEOF
11310
11311
11312
11313   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11314 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11315 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h.  */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h.  */
11324 #include <stdio.h>
11325 int
11326 main ()
11327 {
11328
11329 #ifndef getc_unlocked
11330   char *p = (char *) getc_unlocked;
11331 #endif
11332
11333   ;
11334   return 0;
11335 }
11336 _ACEOF
11337 rm -f conftest.$ac_objext
11338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11339   (eval $ac_compile) 2>conftest.er1
11340   ac_status=$?
11341   grep -v '^ *+' conftest.er1 >conftest.err
11342   rm -f conftest.er1
11343   cat conftest.err >&5
11344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345   (exit $ac_status); } &&
11346          { ac_try='test -z "$ac_c_werror_flag"
11347                          || test ! -s conftest.err'
11348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349   (eval $ac_try) 2>&5
11350   ac_status=$?
11351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352   (exit $ac_status); }; } &&
11353          { ac_try='test -s conftest.$ac_objext'
11354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355   (eval $ac_try) 2>&5
11356   ac_status=$?
11357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358   (exit $ac_status); }; }; then
11359   ac_cv_have_decl_getc_unlocked=yes
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364 ac_cv_have_decl_getc_unlocked=no
11365 fi
11366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11367 fi
11368 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11369 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11370   if test $ac_cv_have_decl_getc_unlocked = yes; then
11371     gt_value=1
11372   else
11373     gt_value=0
11374   fi
11375
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11378 _ACEOF
11379
11380
11381
11382   case $gt_cv_func_printf_posix in
11383     *yes) HAVE_POSIX_PRINTF=1 ;;
11384     *) HAVE_POSIX_PRINTF=0 ;;
11385   esac
11386
11387   if test "$ac_cv_func_asprintf" = yes; then
11388     HAVE_ASPRINTF=1
11389   else
11390     HAVE_ASPRINTF=0
11391   fi
11392
11393   if test "$ac_cv_func_snprintf" = yes; then
11394     HAVE_SNPRINTF=1
11395   else
11396     HAVE_SNPRINTF=0
11397   fi
11398
11399   if test "$ac_cv_func_wprintf" = yes; then
11400     HAVE_WPRINTF=1
11401   else
11402     HAVE_WPRINTF=0
11403   fi
11404
11405
11406
11407
11408
11409
11410
11411           am_save_CPPFLAGS="$CPPFLAGS"
11412
11413   for element in $INCICONV; do
11414     haveit=
11415     for x in $CPPFLAGS; do
11416
11417   acl_save_prefix="$prefix"
11418   prefix="$acl_final_prefix"
11419   acl_save_exec_prefix="$exec_prefix"
11420   exec_prefix="$acl_final_exec_prefix"
11421   eval x=\"$x\"
11422   exec_prefix="$acl_save_exec_prefix"
11423   prefix="$acl_save_prefix"
11424
11425       if test "X$x" = "X$element"; then
11426         haveit=yes
11427         break
11428       fi
11429     done
11430     if test -z "$haveit"; then
11431       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11432     fi
11433   done
11434
11435
11436   echo "$as_me:$LINENO: checking for iconv" >&5
11437 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11438 if test "${am_cv_func_iconv+set}" = set; then
11439   echo $ECHO_N "(cached) $ECHO_C" >&6
11440 else
11441
11442     am_cv_func_iconv="no, consider installing GNU libiconv"
11443     am_cv_lib_iconv=no
11444     cat >conftest.$ac_ext <<_ACEOF
11445 /* confdefs.h.  */
11446 _ACEOF
11447 cat confdefs.h >>conftest.$ac_ext
11448 cat >>conftest.$ac_ext <<_ACEOF
11449 /* end confdefs.h.  */
11450 #include <stdlib.h>
11451 #include <iconv.h>
11452 int
11453 main ()
11454 {
11455 iconv_t cd = iconv_open("","");
11456        iconv(cd,NULL,NULL,NULL,NULL);
11457        iconv_close(cd);
11458   ;
11459   return 0;
11460 }
11461 _ACEOF
11462 rm -f conftest.$ac_objext conftest$ac_exeext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11464   (eval $ac_link) 2>conftest.er1
11465   ac_status=$?
11466   grep -v '^ *+' conftest.er1 >conftest.err
11467   rm -f conftest.er1
11468   cat conftest.err >&5
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); } &&
11471          { ac_try='test -z "$ac_c_werror_flag"
11472                          || test ! -s conftest.err'
11473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11474   (eval $ac_try) 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; } &&
11478          { ac_try='test -s conftest$ac_exeext'
11479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480   (eval $ac_try) 2>&5
11481   ac_status=$?
11482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483   (exit $ac_status); }; }; then
11484   am_cv_func_iconv=yes
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489 fi
11490 rm -f conftest.err conftest.$ac_objext \
11491       conftest$ac_exeext conftest.$ac_ext
11492     if test "$am_cv_func_iconv" != yes; then
11493       am_save_LIBS="$LIBS"
11494       LIBS="$LIBS $LIBICONV"
11495       cat >conftest.$ac_ext <<_ACEOF
11496 /* confdefs.h.  */
11497 _ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h.  */
11501 #include <stdlib.h>
11502 #include <iconv.h>
11503 int
11504 main ()
11505 {
11506 iconv_t cd = iconv_open("","");
11507          iconv(cd,NULL,NULL,NULL,NULL);
11508          iconv_close(cd);
11509   ;
11510   return 0;
11511 }
11512 _ACEOF
11513 rm -f conftest.$ac_objext conftest$ac_exeext
11514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11515   (eval $ac_link) 2>conftest.er1
11516   ac_status=$?
11517   grep -v '^ *+' conftest.er1 >conftest.err
11518   rm -f conftest.er1
11519   cat conftest.err >&5
11520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521   (exit $ac_status); } &&
11522          { ac_try='test -z "$ac_c_werror_flag"
11523                          || test ! -s conftest.err'
11524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11525   (eval $ac_try) 2>&5
11526   ac_status=$?
11527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528   (exit $ac_status); }; } &&
11529          { ac_try='test -s conftest$ac_exeext'
11530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531   (eval $ac_try) 2>&5
11532   ac_status=$?
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); }; }; then
11535   am_cv_lib_iconv=yes
11536         am_cv_func_iconv=yes
11537 else
11538   echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11540
11541 fi
11542 rm -f conftest.err conftest.$ac_objext \
11543       conftest$ac_exeext conftest.$ac_ext
11544       LIBS="$am_save_LIBS"
11545     fi
11546
11547 fi
11548 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11549 echo "${ECHO_T}$am_cv_func_iconv" >&6
11550   if test "$am_cv_func_iconv" = yes; then
11551
11552 cat >>confdefs.h <<\_ACEOF
11553 #define HAVE_ICONV 1
11554 _ACEOF
11555
11556   fi
11557   if test "$am_cv_lib_iconv" = yes; then
11558     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11559 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11560     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11561 echo "${ECHO_T}$LIBICONV" >&6
11562   else
11563             CPPFLAGS="$am_save_CPPFLAGS"
11564     LIBICONV=
11565     LTLIBICONV=
11566   fi
11567
11568
11569
11570   if test "$am_cv_func_iconv" = yes; then
11571     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11572 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11573     if test "${am_cv_proto_iconv+set}" = set; then
11574   echo $ECHO_N "(cached) $ECHO_C" >&6
11575 else
11576
11577       cat >conftest.$ac_ext <<_ACEOF
11578 /* confdefs.h.  */
11579 _ACEOF
11580 cat confdefs.h >>conftest.$ac_ext
11581 cat >>conftest.$ac_ext <<_ACEOF
11582 /* end confdefs.h.  */
11583
11584 #include <stdlib.h>
11585 #include <iconv.h>
11586 extern
11587 #ifdef __cplusplus
11588 "C"
11589 #endif
11590 #if defined(__STDC__) || defined(__cplusplus)
11591 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11592 #else
11593 size_t iconv();
11594 #endif
11595
11596 int
11597 main ()
11598 {
11599
11600   ;
11601   return 0;
11602 }
11603 _ACEOF
11604 rm -f conftest.$ac_objext
11605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11606   (eval $ac_compile) 2>conftest.er1
11607   ac_status=$?
11608   grep -v '^ *+' conftest.er1 >conftest.err
11609   rm -f conftest.er1
11610   cat conftest.err >&5
11611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612   (exit $ac_status); } &&
11613          { ac_try='test -z "$ac_c_werror_flag"
11614                          || test ! -s conftest.err'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; } &&
11620          { ac_try='test -s conftest.$ac_objext'
11621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11622   (eval $ac_try) 2>&5
11623   ac_status=$?
11624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625   (exit $ac_status); }; }; then
11626   am_cv_proto_iconv_arg1=""
11627 else
11628   echo "$as_me: failed program was:" >&5
11629 sed 's/^/| /' conftest.$ac_ext >&5
11630
11631 am_cv_proto_iconv_arg1="const"
11632 fi
11633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11634       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);"
11635 fi
11636
11637     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11638     echo "$as_me:$LINENO: result: ${ac_t:-
11639          }$am_cv_proto_iconv" >&5
11640 echo "${ECHO_T}${ac_t:-
11641          }$am_cv_proto_iconv" >&6
11642
11643 cat >>confdefs.h <<_ACEOF
11644 #define ICONV_CONST $am_cv_proto_iconv_arg1
11645 _ACEOF
11646
11647   fi
11648
11649
11650   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11651 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11652 if test "${am_cv_langinfo_codeset+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   cat >conftest.$ac_ext <<_ACEOF
11656 /* confdefs.h.  */
11657 _ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h.  */
11661 #include <langinfo.h>
11662 int
11663 main ()
11664 {
11665 char* cs = nl_langinfo(CODESET);
11666   ;
11667   return 0;
11668 }
11669 _ACEOF
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672   (eval $ac_link) 2>conftest.er1
11673   ac_status=$?
11674   grep -v '^ *+' conftest.er1 >conftest.err
11675   rm -f conftest.er1
11676   cat conftest.err >&5
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); } &&
11679          { ac_try='test -z "$ac_c_werror_flag"
11680                          || test ! -s conftest.err'
11681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11682   (eval $ac_try) 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; } &&
11686          { ac_try='test -s conftest$ac_exeext'
11687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11688   (eval $ac_try) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   am_cv_langinfo_codeset=yes
11693 else
11694   echo "$as_me: failed program was:" >&5
11695 sed 's/^/| /' conftest.$ac_ext >&5
11696
11697 am_cv_langinfo_codeset=no
11698 fi
11699 rm -f conftest.err conftest.$ac_objext \
11700       conftest$ac_exeext conftest.$ac_ext
11701
11702 fi
11703 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11704 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11705   if test $am_cv_langinfo_codeset = yes; then
11706
11707 cat >>confdefs.h <<\_ACEOF
11708 #define HAVE_LANGINFO_CODESET 1
11709 _ACEOF
11710
11711   fi
11712
11713   if test $ac_cv_header_locale_h = yes; then
11714
11715   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11716 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11717 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11718   echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720   cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h.  */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h.  */
11726 #include <locale.h>
11727 int
11728 main ()
11729 {
11730 return LC_MESSAGES
11731   ;
11732   return 0;
11733 }
11734 _ACEOF
11735 rm -f conftest.$ac_objext conftest$ac_exeext
11736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11737   (eval $ac_link) 2>conftest.er1
11738   ac_status=$?
11739   grep -v '^ *+' conftest.er1 >conftest.err
11740   rm -f conftest.er1
11741   cat conftest.err >&5
11742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743   (exit $ac_status); } &&
11744          { ac_try='test -z "$ac_c_werror_flag"
11745                          || test ! -s conftest.err'
11746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747   (eval $ac_try) 2>&5
11748   ac_status=$?
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); }; } &&
11751          { ac_try='test -s conftest$ac_exeext'
11752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753   (eval $ac_try) 2>&5
11754   ac_status=$?
11755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756   (exit $ac_status); }; }; then
11757   gt_cv_val_LC_MESSAGES=yes
11758 else
11759   echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11761
11762 gt_cv_val_LC_MESSAGES=no
11763 fi
11764 rm -f conftest.err conftest.$ac_objext \
11765       conftest$ac_exeext conftest.$ac_ext
11766 fi
11767 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11768 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11769   if test $gt_cv_val_LC_MESSAGES = yes; then
11770
11771 cat >>confdefs.h <<\_ACEOF
11772 #define HAVE_LC_MESSAGES 1
11773 _ACEOF
11774
11775   fi
11776
11777   fi
11778
11779   if test -n "$INTL_MACOSX_LIBS"; then
11780     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11781   fi
11782
11783                       for ac_prog in bison
11784 do
11785   # Extract the first word of "$ac_prog", so it can be a program name with args.
11786 set dummy $ac_prog; ac_word=$2
11787 echo "$as_me:$LINENO: checking for $ac_word" >&5
11788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11789 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11790   echo $ECHO_N "(cached) $ECHO_C" >&6
11791 else
11792   if test -n "$INTLBISON"; then
11793   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11794 else
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11797 do
11798   IFS=$as_save_IFS
11799   test -z "$as_dir" && as_dir=.
11800   for ac_exec_ext in '' $ac_executable_extensions; do
11801   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11802     ac_cv_prog_INTLBISON="$ac_prog"
11803     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804     break 2
11805   fi
11806 done
11807 done
11808
11809 fi
11810 fi
11811 INTLBISON=$ac_cv_prog_INTLBISON
11812 if test -n "$INTLBISON"; then
11813   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11814 echo "${ECHO_T}$INTLBISON" >&6
11815 else
11816   echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11818 fi
11819
11820   test -n "$INTLBISON" && break
11821 done
11822
11823   if test -z "$INTLBISON"; then
11824     ac_verc_fail=yes
11825   else
11826         echo "$as_me:$LINENO: checking version of bison" >&5
11827 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11828     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11829     case $ac_prog_version in
11830       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11831       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11832          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11833       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11834     esac
11835     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11836 echo "${ECHO_T}$ac_prog_version" >&6
11837   fi
11838   if test $ac_verc_fail = yes; then
11839     INTLBISON=:
11840   fi
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11858 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11859 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11860   echo $ECHO_N "(cached) $ECHO_C" >&6
11861 else
11862   gt_save_CPPFLAGS="$CPPFLAGS"
11863      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11864      gt_save_LIBS="$LIBS"
11865      LIBS="$LIBS -framework CoreFoundation"
11866      cat >conftest.$ac_ext <<_ACEOF
11867 /* confdefs.h.  */
11868 _ACEOF
11869 cat confdefs.h >>conftest.$ac_ext
11870 cat >>conftest.$ac_ext <<_ACEOF
11871 /* end confdefs.h.  */
11872 #include <CFPreferences.h>
11873 int
11874 main ()
11875 {
11876 CFPreferencesCopyAppValue(NULL, NULL)
11877   ;
11878   return 0;
11879 }
11880 _ACEOF
11881 rm -f conftest.$ac_objext conftest$ac_exeext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11883   (eval $ac_link) 2>conftest.er1
11884   ac_status=$?
11885   grep -v '^ *+' conftest.er1 >conftest.err
11886   rm -f conftest.er1
11887   cat conftest.err >&5
11888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889   (exit $ac_status); } &&
11890          { ac_try='test -z "$ac_c_werror_flag"
11891                          || test ! -s conftest.err'
11892   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11893   (eval $ac_try) 2>&5
11894   ac_status=$?
11895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896   (exit $ac_status); }; } &&
11897          { ac_try='test -s conftest$ac_exeext'
11898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11899   (eval $ac_try) 2>&5
11900   ac_status=$?
11901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902   (exit $ac_status); }; }; then
11903   gt_cv_func_CFPreferencesCopyAppValue=yes
11904 else
11905   echo "$as_me: failed program was:" >&5
11906 sed 's/^/| /' conftest.$ac_ext >&5
11907
11908 gt_cv_func_CFPreferencesCopyAppValue=no
11909 fi
11910 rm -f conftest.err conftest.$ac_objext \
11911       conftest$ac_exeext conftest.$ac_ext
11912      CPPFLAGS="$gt_save_CPPFLAGS"
11913      LIBS="$gt_save_LIBS"
11914 fi
11915 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11916 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11917   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11918
11919 cat >>confdefs.h <<\_ACEOF
11920 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11921 _ACEOF
11922
11923   fi
11924     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11925 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11926 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11927   echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929   gt_save_CPPFLAGS="$CPPFLAGS"
11930      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11931      gt_save_LIBS="$LIBS"
11932      LIBS="$LIBS -framework CoreFoundation"
11933      cat >conftest.$ac_ext <<_ACEOF
11934 /* confdefs.h.  */
11935 _ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h.  */
11939 #include <CFLocale.h>
11940 int
11941 main ()
11942 {
11943 CFLocaleCopyCurrent();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950   (eval $ac_link) 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag"
11958                          || test ! -s conftest.err'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; } &&
11964          { ac_try='test -s conftest$ac_exeext'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; }; then
11970   gt_cv_func_CFLocaleCopyCurrent=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 gt_cv_func_CFLocaleCopyCurrent=no
11976 fi
11977 rm -f conftest.err conftest.$ac_objext \
11978       conftest$ac_exeext conftest.$ac_ext
11979      CPPFLAGS="$gt_save_CPPFLAGS"
11980      LIBS="$gt_save_LIBS"
11981 fi
11982 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11983 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
11984   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11985
11986 cat >>confdefs.h <<\_ACEOF
11987 #define HAVE_CFLOCALECOPYCURRENT 1
11988 _ACEOF
11989
11990   fi
11991   INTL_MACOSX_LIBS=
11992   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11993     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11994   fi
11995
11996
11997
11998
11999   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12000 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12001     # Check whether --enable-nls or --disable-nls was given.
12002 if test "${enable_nls+set}" = set; then
12003   enableval="$enable_nls"
12004   USE_NLS=$enableval
12005 else
12006   USE_NLS=yes
12007 fi;
12008   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12009 echo "${ECHO_T}$USE_NLS" >&6
12010
12011
12012
12013
12014     BUILD_INCLUDED_LIBINTL=no
12015     USE_INCLUDED_LIBINTL=no
12016
12017   LIBINTL=
12018   LTLIBINTL=
12019   POSUB=
12020
12021     if test "$USE_NLS" = "yes"; then
12022     gt_use_preinstalled_gnugettext=no
12023
12024       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12025 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12026
12027 # Check whether --with-included-gettext or --without-included-gettext was given.
12028 if test "${with_included_gettext+set}" = set; then
12029   withval="$with_included_gettext"
12030   nls_cv_force_use_gnu_gettext=$withval
12031 else
12032   nls_cv_force_use_gnu_gettext=no
12033 fi;
12034       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12035 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12036
12037       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12038       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12039
12040
12041
12042
12043
12044
12045         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12046 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12047 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12048   echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050   cat >conftest.$ac_ext <<_ACEOF
12051 /* confdefs.h.  */
12052 _ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h.  */
12056 #include <libintl.h>
12057 extern int _nl_msg_cat_cntr;
12058 extern int *_nl_domain_bindings;
12059 int
12060 main ()
12061 {
12062 bindtextdomain ("", "");
12063 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 rm -f conftest.$ac_objext conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070   (eval $ac_link) 2>conftest.er1
12071   ac_status=$?
12072   grep -v '^ *+' conftest.er1 >conftest.err
12073   rm -f conftest.er1
12074   cat conftest.err >&5
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); } &&
12077          { ac_try='test -z "$ac_c_werror_flag"
12078                          || test ! -s conftest.err'
12079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080   (eval $ac_try) 2>&5
12081   ac_status=$?
12082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083   (exit $ac_status); }; } &&
12084          { ac_try='test -s conftest$ac_exeext'
12085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086   (eval $ac_try) 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; }; then
12090   gt_cv_func_gnugettext1_libc=yes
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095 gt_cv_func_gnugettext1_libc=no
12096 fi
12097 rm -f conftest.err conftest.$ac_objext \
12098       conftest$ac_exeext conftest.$ac_ext
12099 fi
12100 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12101 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12102
12103         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12104
12105
12106
12107     use_additional=yes
12108
12109   acl_save_prefix="$prefix"
12110   prefix="$acl_final_prefix"
12111   acl_save_exec_prefix="$exec_prefix"
12112   exec_prefix="$acl_final_exec_prefix"
12113
12114     eval additional_includedir=\"$includedir\"
12115     eval additional_libdir=\"$libdir\"
12116
12117   exec_prefix="$acl_save_exec_prefix"
12118   prefix="$acl_save_prefix"
12119
12120
12121 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12122 if test "${with_libintl_prefix+set}" = set; then
12123   withval="$with_libintl_prefix"
12124
12125     if test "X$withval" = "Xno"; then
12126       use_additional=no
12127     else
12128       if test "X$withval" = "X"; then
12129
12130   acl_save_prefix="$prefix"
12131   prefix="$acl_final_prefix"
12132   acl_save_exec_prefix="$exec_prefix"
12133   exec_prefix="$acl_final_exec_prefix"
12134
12135           eval additional_includedir=\"$includedir\"
12136           eval additional_libdir=\"$libdir\"
12137
12138   exec_prefix="$acl_save_exec_prefix"
12139   prefix="$acl_save_prefix"
12140
12141       else
12142         additional_includedir="$withval/include"
12143         additional_libdir="$withval/lib"
12144       fi
12145     fi
12146
12147 fi;
12148       LIBINTL=
12149   LTLIBINTL=
12150   INCINTL=
12151   rpathdirs=
12152   ltrpathdirs=
12153   names_already_handled=
12154   names_next_round='intl '
12155   while test -n "$names_next_round"; do
12156     names_this_round="$names_next_round"
12157     names_next_round=
12158     for name in $names_this_round; do
12159       already_handled=
12160       for n in $names_already_handled; do
12161         if test "$n" = "$name"; then
12162           already_handled=yes
12163           break
12164         fi
12165       done
12166       if test -z "$already_handled"; then
12167         names_already_handled="$names_already_handled $name"
12168                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12169         eval value=\"\$HAVE_LIB$uppername\"
12170         if test -n "$value"; then
12171           if test "$value" = yes; then
12172             eval value=\"\$LIB$uppername\"
12173             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12174             eval value=\"\$LTLIB$uppername\"
12175             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12176           else
12177                                     :
12178           fi
12179         else
12180                               found_dir=
12181           found_la=
12182           found_so=
12183           found_a=
12184           if test $use_additional = yes; then
12185             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12186               found_dir="$additional_libdir"
12187               found_so="$additional_libdir/lib$name.$shlibext"
12188               if test -f "$additional_libdir/lib$name.la"; then
12189                 found_la="$additional_libdir/lib$name.la"
12190               fi
12191             else
12192               if test -f "$additional_libdir/lib$name.$libext"; then
12193                 found_dir="$additional_libdir"
12194                 found_a="$additional_libdir/lib$name.$libext"
12195                 if test -f "$additional_libdir/lib$name.la"; then
12196                   found_la="$additional_libdir/lib$name.la"
12197                 fi
12198               fi
12199             fi
12200           fi
12201           if test "X$found_dir" = "X"; then
12202             for x in $LDFLAGS $LTLIBINTL; do
12203
12204   acl_save_prefix="$prefix"
12205   prefix="$acl_final_prefix"
12206   acl_save_exec_prefix="$exec_prefix"
12207   exec_prefix="$acl_final_exec_prefix"
12208   eval x=\"$x\"
12209   exec_prefix="$acl_save_exec_prefix"
12210   prefix="$acl_save_prefix"
12211
12212               case "$x" in
12213                 -L*)
12214                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12215                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12216                     found_dir="$dir"
12217                     found_so="$dir/lib$name.$shlibext"
12218                     if test -f "$dir/lib$name.la"; then
12219                       found_la="$dir/lib$name.la"
12220                     fi
12221                   else
12222                     if test -f "$dir/lib$name.$libext"; then
12223                       found_dir="$dir"
12224                       found_a="$dir/lib$name.$libext"
12225                       if test -f "$dir/lib$name.la"; then
12226                         found_la="$dir/lib$name.la"
12227                       fi
12228                     fi
12229                   fi
12230                   ;;
12231               esac
12232               if test "X$found_dir" != "X"; then
12233                 break
12234               fi
12235             done
12236           fi
12237           if test "X$found_dir" != "X"; then
12238                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12239             if test "X$found_so" != "X"; then
12240                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12241                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12242               else
12243                                                                                 haveit=
12244                 for x in $ltrpathdirs; do
12245                   if test "X$x" = "X$found_dir"; then
12246                     haveit=yes
12247                     break
12248                   fi
12249                 done
12250                 if test -z "$haveit"; then
12251                   ltrpathdirs="$ltrpathdirs $found_dir"
12252                 fi
12253                                 if test "$hardcode_direct" = yes; then
12254                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12255                 else
12256                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12257                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12258                                                             haveit=
12259                     for x in $rpathdirs; do
12260                       if test "X$x" = "X$found_dir"; then
12261                         haveit=yes
12262                         break
12263                       fi
12264                     done
12265                     if test -z "$haveit"; then
12266                       rpathdirs="$rpathdirs $found_dir"
12267                     fi
12268                   else
12269                                                                                 haveit=
12270                     for x in $LDFLAGS $LIBINTL; do
12271
12272   acl_save_prefix="$prefix"
12273   prefix="$acl_final_prefix"
12274   acl_save_exec_prefix="$exec_prefix"
12275   exec_prefix="$acl_final_exec_prefix"
12276   eval x=\"$x\"
12277   exec_prefix="$acl_save_exec_prefix"
12278   prefix="$acl_save_prefix"
12279
12280                       if test "X$x" = "X-L$found_dir"; then
12281                         haveit=yes
12282                         break
12283                       fi
12284                     done
12285                     if test -z "$haveit"; then
12286                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12287                     fi
12288                     if test "$hardcode_minus_L" != no; then
12289                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12290                     else
12291                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12292                     fi
12293                   fi
12294                 fi
12295               fi
12296             else
12297               if test "X$found_a" != "X"; then
12298                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12299               else
12300                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12301               fi
12302             fi
12303                         additional_includedir=
12304             case "$found_dir" in
12305               */lib | */lib/)
12306                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12307                 additional_includedir="$basedir/include"
12308                 ;;
12309             esac
12310             if test "X$additional_includedir" != "X"; then
12311                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12312                 haveit=
12313                 if test "X$additional_includedir" = "X/usr/local/include"; then
12314                   if test -n "$GCC"; then
12315                     case $host_os in
12316                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12317                     esac
12318                   fi
12319                 fi
12320                 if test -z "$haveit"; then
12321                   for x in $CPPFLAGS $INCINTL; do
12322
12323   acl_save_prefix="$prefix"
12324   prefix="$acl_final_prefix"
12325   acl_save_exec_prefix="$exec_prefix"
12326   exec_prefix="$acl_final_exec_prefix"
12327   eval x=\"$x\"
12328   exec_prefix="$acl_save_exec_prefix"
12329   prefix="$acl_save_prefix"
12330
12331                     if test "X$x" = "X-I$additional_includedir"; then
12332                       haveit=yes
12333                       break
12334                     fi
12335                   done
12336                   if test -z "$haveit"; then
12337                     if test -d "$additional_includedir"; then
12338                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12339                     fi
12340                   fi
12341                 fi
12342               fi
12343             fi
12344                         if test -n "$found_la"; then
12345                                                         save_libdir="$libdir"
12346               case "$found_la" in
12347                 */* | *\\*) . "$found_la" ;;
12348                 *) . "./$found_la" ;;
12349               esac
12350               libdir="$save_libdir"
12351                             for dep in $dependency_libs; do
12352                 case "$dep" in
12353                   -L*)
12354                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12355                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12356                       haveit=
12357                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12358                         if test -n "$GCC"; then
12359                           case $host_os in
12360                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12361                           esac
12362                         fi
12363                       fi
12364                       if test -z "$haveit"; then
12365                         haveit=
12366                         for x in $LDFLAGS $LIBINTL; do
12367
12368   acl_save_prefix="$prefix"
12369   prefix="$acl_final_prefix"
12370   acl_save_exec_prefix="$exec_prefix"
12371   exec_prefix="$acl_final_exec_prefix"
12372   eval x=\"$x\"
12373   exec_prefix="$acl_save_exec_prefix"
12374   prefix="$acl_save_prefix"
12375
12376                           if test "X$x" = "X-L$additional_libdir"; then
12377                             haveit=yes
12378                             break
12379                           fi
12380                         done
12381                         if test -z "$haveit"; then
12382                           if test -d "$additional_libdir"; then
12383                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12384                           fi
12385                         fi
12386                         haveit=
12387                         for x in $LDFLAGS $LTLIBINTL; do
12388
12389   acl_save_prefix="$prefix"
12390   prefix="$acl_final_prefix"
12391   acl_save_exec_prefix="$exec_prefix"
12392   exec_prefix="$acl_final_exec_prefix"
12393   eval x=\"$x\"
12394   exec_prefix="$acl_save_exec_prefix"
12395   prefix="$acl_save_prefix"
12396
12397                           if test "X$x" = "X-L$additional_libdir"; then
12398                             haveit=yes
12399                             break
12400                           fi
12401                         done
12402                         if test -z "$haveit"; then
12403                           if test -d "$additional_libdir"; then
12404                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12405                           fi
12406                         fi
12407                       fi
12408                     fi
12409                     ;;
12410                   -R*)
12411                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12412                     if test "$enable_rpath" != no; then
12413                                                                   haveit=
12414                       for x in $rpathdirs; do
12415                         if test "X$x" = "X$dir"; then
12416                           haveit=yes
12417                           break
12418                         fi
12419                       done
12420                       if test -z "$haveit"; then
12421                         rpathdirs="$rpathdirs $dir"
12422                       fi
12423                                                                   haveit=
12424                       for x in $ltrpathdirs; do
12425                         if test "X$x" = "X$dir"; then
12426                           haveit=yes
12427                           break
12428                         fi
12429                       done
12430                       if test -z "$haveit"; then
12431                         ltrpathdirs="$ltrpathdirs $dir"
12432                       fi
12433                     fi
12434                     ;;
12435                   -l*)
12436                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12437                     ;;
12438                   *.la)
12439                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12440                     ;;
12441                   *)
12442                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12443                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12444                     ;;
12445                 esac
12446               done
12447             fi
12448           else
12449                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12450             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12451           fi
12452         fi
12453       fi
12454     done
12455   done
12456   if test "X$rpathdirs" != "X"; then
12457     if test -n "$hardcode_libdir_separator"; then
12458                         alldirs=
12459       for found_dir in $rpathdirs; do
12460         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12461       done
12462             acl_save_libdir="$libdir"
12463       libdir="$alldirs"
12464       eval flag=\"$hardcode_libdir_flag_spec\"
12465       libdir="$acl_save_libdir"
12466       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12467     else
12468             for found_dir in $rpathdirs; do
12469         acl_save_libdir="$libdir"
12470         libdir="$found_dir"
12471         eval flag=\"$hardcode_libdir_flag_spec\"
12472         libdir="$acl_save_libdir"
12473         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12474       done
12475     fi
12476   fi
12477   if test "X$ltrpathdirs" != "X"; then
12478             for found_dir in $ltrpathdirs; do
12479       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12480     done
12481   fi
12482
12483           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12484 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12485 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12486   echo $ECHO_N "(cached) $ECHO_C" >&6
12487 else
12488   gt_save_CPPFLAGS="$CPPFLAGS"
12489             CPPFLAGS="$CPPFLAGS $INCINTL"
12490             gt_save_LIBS="$LIBS"
12491             LIBS="$LIBS $LIBINTL"
12492                         cat >conftest.$ac_ext <<_ACEOF
12493 /* confdefs.h.  */
12494 _ACEOF
12495 cat confdefs.h >>conftest.$ac_ext
12496 cat >>conftest.$ac_ext <<_ACEOF
12497 /* end confdefs.h.  */
12498 #include <libintl.h>
12499 extern int _nl_msg_cat_cntr;
12500 extern
12501 #ifdef __cplusplus
12502 "C"
12503 #endif
12504 const char *_nl_expand_alias (const char *);
12505 int
12506 main ()
12507 {
12508 bindtextdomain ("", "");
12509 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12510   ;
12511   return 0;
12512 }
12513 _ACEOF
12514 rm -f conftest.$ac_objext conftest$ac_exeext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12516   (eval $ac_link) 2>conftest.er1
12517   ac_status=$?
12518   grep -v '^ *+' conftest.er1 >conftest.err
12519   rm -f conftest.er1
12520   cat conftest.err >&5
12521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12522   (exit $ac_status); } &&
12523          { ac_try='test -z "$ac_c_werror_flag"
12524                          || test ! -s conftest.err'
12525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12526   (eval $ac_try) 2>&5
12527   ac_status=$?
12528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529   (exit $ac_status); }; } &&
12530          { ac_try='test -s conftest$ac_exeext'
12531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12532   (eval $ac_try) 2>&5
12533   ac_status=$?
12534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535   (exit $ac_status); }; }; then
12536   gt_cv_func_gnugettext1_libintl=yes
12537 else
12538   echo "$as_me: failed program was:" >&5
12539 sed 's/^/| /' conftest.$ac_ext >&5
12540
12541 gt_cv_func_gnugettext1_libintl=no
12542 fi
12543 rm -f conftest.err conftest.$ac_objext \
12544       conftest$ac_exeext conftest.$ac_ext
12545                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12546               LIBS="$LIBS $LIBICONV"
12547               cat >conftest.$ac_ext <<_ACEOF
12548 /* confdefs.h.  */
12549 _ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h.  */
12553 #include <libintl.h>
12554 extern int _nl_msg_cat_cntr;
12555 extern
12556 #ifdef __cplusplus
12557 "C"
12558 #endif
12559 const char *_nl_expand_alias (const char *);
12560 int
12561 main ()
12562 {
12563 bindtextdomain ("", "");
12564 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12565   ;
12566   return 0;
12567 }
12568 _ACEOF
12569 rm -f conftest.$ac_objext conftest$ac_exeext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12571   (eval $ac_link) 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } &&
12578          { ac_try='test -z "$ac_c_werror_flag"
12579                          || test ! -s conftest.err'
12580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581   (eval $ac_try) 2>&5
12582   ac_status=$?
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); }; } &&
12585          { ac_try='test -s conftest$ac_exeext'
12586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587   (eval $ac_try) 2>&5
12588   ac_status=$?
12589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590   (exit $ac_status); }; }; then
12591   LIBINTL="$LIBINTL $LIBICONV"
12592                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12593                 gt_cv_func_gnugettext1_libintl=yes
12594
12595 else
12596   echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12598
12599 fi
12600 rm -f conftest.err conftest.$ac_objext \
12601       conftest$ac_exeext conftest.$ac_ext
12602             fi
12603             CPPFLAGS="$gt_save_CPPFLAGS"
12604             LIBS="$gt_save_LIBS"
12605 fi
12606 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12607 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12608         fi
12609
12610                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12611            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12612                 && test "$PACKAGE" != gettext-runtime \
12613                 && test "$PACKAGE" != gettext-tools; }; then
12614           gt_use_preinstalled_gnugettext=yes
12615         else
12616                     LIBINTL=
12617           LTLIBINTL=
12618           INCINTL=
12619         fi
12620
12621
12622         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12623                               nls_cv_use_gnu_gettext=yes
12624         fi
12625       fi
12626
12627       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12628                 BUILD_INCLUDED_LIBINTL=yes
12629         USE_INCLUDED_LIBINTL=yes
12630         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12631         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12632         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12633       fi
12634
12635       CATOBJEXT=
12636       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12637          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12638                 CATOBJEXT=.gmo
12639       fi
12640
12641
12642     if test -n "$INTL_MACOSX_LIBS"; then
12643       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12644          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12645                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12646         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12647       fi
12648     fi
12649
12650     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12651        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define ENABLE_NLS 1
12655 _ACEOF
12656
12657     else
12658       USE_NLS=no
12659     fi
12660   fi
12661
12662   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12663 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12664   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12665 echo "${ECHO_T}$USE_NLS" >&6
12666   if test "$USE_NLS" = "yes"; then
12667     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12668 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12669     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12670       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12671         gt_source="external libintl"
12672       else
12673         gt_source="libc"
12674       fi
12675     else
12676       gt_source="included intl directory"
12677     fi
12678     echo "$as_me:$LINENO: result: $gt_source" >&5
12679 echo "${ECHO_T}$gt_source" >&6
12680   fi
12681
12682   if test "$USE_NLS" = "yes"; then
12683
12684     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12685       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12686         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12687 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12688         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12689 echo "${ECHO_T}$LIBINTL" >&6
12690
12691   for element in $INCINTL; do
12692     haveit=
12693     for x in $CPPFLAGS; do
12694
12695   acl_save_prefix="$prefix"
12696   prefix="$acl_final_prefix"
12697   acl_save_exec_prefix="$exec_prefix"
12698   exec_prefix="$acl_final_exec_prefix"
12699   eval x=\"$x\"
12700   exec_prefix="$acl_save_exec_prefix"
12701   prefix="$acl_save_prefix"
12702
12703       if test "X$x" = "X$element"; then
12704         haveit=yes
12705         break
12706       fi
12707     done
12708     if test -z "$haveit"; then
12709       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12710     fi
12711   done
12712
12713       fi
12714
12715
12716 cat >>confdefs.h <<\_ACEOF
12717 #define HAVE_GETTEXT 1
12718 _ACEOF
12719
12720
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_DCGETTEXT 1
12723 _ACEOF
12724
12725     fi
12726
12727         POSUB=po
12728   fi
12729
12730
12731             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12732       BUILD_INCLUDED_LIBINTL=yes
12733     fi
12734
12735
12736
12737
12738
12739         nls_cv_header_intl=
12740     nls_cv_header_libgt=
12741
12742         DATADIRNAME=share
12743
12744
12745         INSTOBJEXT=.mo
12746
12747
12748         GENCAT=gencat
12749
12750
12751         INTLOBJS=
12752     if test "$USE_INCLUDED_LIBINTL" = yes; then
12753       INTLOBJS="\$(GETTOBJS)"
12754     fi
12755
12756
12757         INTL_LIBTOOL_SUFFIX_PREFIX=
12758
12759
12760
12761     INTLLIBS="$LIBINTL"
12762
12763
12764
12765
12766
12767
12768 fi
12769
12770
12771 support_mysql=no
12772 support_sqlite=no
12773 support_sqlite3=no
12774 support_postgresql=no
12775 support_smartalloc=yes
12776 support_readline=yes
12777 support_conio=yes
12778 support_gnome=no
12779 support_wx_console=no
12780 support_tls=no
12781 support_crypto=no
12782 gnome_version=
12783 wx_version=
12784 support_static_tools=no
12785 support_static_fd=no
12786 support_static_sd=no
12787 support_static_dir=no
12788 support_static_cons=no
12789 support_python=no
12790 build_client_only=no
12791 build_dird=yes
12792 build_stored=yes
12793 cats=
12794 db_name=Internal
12795 DB_NAME=bdb
12796
12797
12798 # -------------------------------------------
12799 # gnome (default off)
12800 # -------------------------------------------
12801 # Check whether --enable-gnome or --disable-gnome was given.
12802 if test "${enable_gnome+set}" = set; then
12803   enableval="$enable_gnome"
12804   if test x$enableval = xyes; then
12805     support_gnome=yes
12806   fi
12807 fi;
12808
12809 GNOME_DIR=
12810 if test x$support_gnome = xyes; then
12811   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12812   pkg=$?
12813   if test $pkg = 0; then
12814      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12815      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12816      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12817      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12818
12819
12820
12821
12822      GNOME_DIR=src/gnome2-console
12823      gnome_version="Version 2.x"
12824   else
12825      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12827    { (exit 1); exit 1; }; }
12828   fi
12829 fi
12830
12831
12832
12833 # -------------------------------------------
12834 # wx-console (default off)
12835 # -------------------------------------------
12836 # Check whether --enable-wx-console or --disable-wx-console was given.
12837 if test "${enable_wx_console+set}" = set; then
12838   enableval="$enable_wx_console"
12839   if test x$enableval = xyes; then
12840     support_wx_console=yes
12841   fi
12842 fi;
12843
12844 WX_DIR=
12845 if test x$support_wx_console = xyes; then
12846   abc=`$WXCONFIG $WXFLAGS --cppflags`
12847   pkg=$?
12848   if test $pkg = 0; then
12849      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12850      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12851      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12852
12853
12854
12855      WX_DIR=src/wx-console
12856   else
12857      echo " "
12858      echo "wx-config program not found. wx-console disabled."
12859      echo " "
12860      support_wx_console=no
12861   fi
12862 fi
12863
12864
12865
12866 # -------------------------------------------
12867 # tray-monitor (default off)
12868 # -------------------------------------------
12869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12870 if test "${enable_tray_monitor+set}" = set; then
12871   enableval="$enable_tray_monitor"
12872   if test x$enableval = xyes; then
12873     support_tray_monitor=yes
12874   fi
12875 fi;
12876
12877 TRAY_MONITOR_DIR=
12878 if test x$support_tray_monitor = xyes; then
12879   abc=`$PKGCONFIG --exists gtk+-2.0`
12880   pkg=$?
12881   if test $pkg = 0; then
12882      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
12883      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
12884
12885
12886      TRAY_MONITOR_DIR=src/tray-monitor
12887      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
12888      pkg=$?
12889      if test $pkg = 0; then
12890      cat >>confdefs.h <<\_ACEOF
12891 #define HAVE_GTK_2_4 1
12892 _ACEOF
12893
12894      fi
12895   fi
12896 fi
12897
12898
12899 # -------------------------------------------
12900 # smartalloc (default off)
12901 # -------------------------------------------
12902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
12903 if test "${enable_smartalloc+set}" = set; then
12904   enableval="$enable_smartalloc"
12905   if test x$enableval = xno; then
12906     support_smartalloc=no
12907   fi
12908 fi;
12909
12910 if test x$support_smartalloc = xyes; then
12911    cat >>confdefs.h <<\_ACEOF
12912 #define SMARTALLOC 1
12913 _ACEOF
12914
12915 fi
12916
12917 # -------------------------------------------
12918 # static-tools (default off)
12919 # -------------------------------------------
12920 # Check whether --enable-static-tools or --disable-static-tools was given.
12921 if test "${enable_static_tools+set}" = set; then
12922   enableval="$enable_static_tools"
12923   if test x$enableval = xyes; then
12924      support_static_tools=yes
12925    fi
12926 fi;
12927
12928 TTOOL_LDFLAGS=
12929 if test x$support_static_tools = xyes; then
12930    TTOOL_LDFLAGS="-static"
12931 fi
12932
12933
12934 # -------------------------------------------
12935 # static-fd    (default off)
12936 # -------------------------------------------
12937 # Check whether --enable-static-fd or --disable-static-fd was given.
12938 if test "${enable_static_fd+set}" = set; then
12939   enableval="$enable_static_fd"
12940   if test x$enableval = xyes; then
12941      support_static_fd=yes
12942    fi
12943 fi;
12944
12945 STATIC_FD=
12946 if test x$support_static_fd = xyes; then
12947    STATIC_FD="static-bacula-fd"
12948 fi
12949
12950
12951 # -------------------------------------------
12952 # static-sd    (default off)
12953 # -------------------------------------------
12954 # Check whether --enable-static-sd or --disable-static-sd was given.
12955 if test "${enable_static_sd+set}" = set; then
12956   enableval="$enable_static_sd"
12957   if test x$enableval = xyes; then
12958      support_static_sd=yes
12959    fi
12960 fi;
12961
12962 STATIC_SD=
12963 if test x$support_static_sd = xyes; then
12964    STATIC_SD="static-bacula-sd"
12965 fi
12966
12967
12968 # -------------------------------------------
12969 # static-dir   (default off)
12970 # -------------------------------------------
12971 # Check whether --enable-static-dir or --disable-static-dir was given.
12972 if test "${enable_static_dir+set}" = set; then
12973   enableval="$enable_static_dir"
12974   if test x$enableval = xyes; then
12975      support_static_dir=yes
12976    fi
12977 fi;
12978
12979 STATIC_DIR=
12980 if test x$support_static_dir = xyes; then
12981    STATIC_DIR="static-bacula-dir"
12982 fi
12983
12984
12985 # -------------------------------------------
12986 # static-cons  (default off)
12987 # -------------------------------------------
12988 # Check whether --enable-static-cons or --disable-static-cons was given.
12989 if test "${enable_static_cons+set}" = set; then
12990   enableval="$enable_static_cons"
12991   if test x$enableval = xyes; then
12992      support_static_cons=yes
12993    fi
12994 fi;
12995
12996 STATIC_CONS=
12997 STATIC_GNOME_CONS=
12998 STATIC_WX_CONS=
12999 if test x$support_static_cons = xyes; then
13000    STATIC_CONS="static-bconsole"
13001    STATIC_GNOME_CONS="static-gnome-console"
13002    STATIC_WX_CONS="static-wx-console"
13003 fi
13004
13005
13006
13007
13008 # -------------------------------------------
13009 # client_only  (default off)
13010 # -------------------------------------------
13011 # Check whether --enable-client-only or --disable-client-only was given.
13012 if test "${enable_client_only+set}" = set; then
13013   enableval="$enable_client_only"
13014   if test x$enableval = xyes; then
13015       build_client_only=yes
13016       db_name=None
13017       DB_NAME=none
13018    fi
13019 fi;
13020 if test x$build_client_only = xno; then
13021    ALL_DIRS="subdirs"
13022 else
13023    ALL_DIRS=""
13024 fi
13025
13026
13027 # -------------------------------------------
13028 # director  (default on)
13029 # -------------------------------------------
13030 # Check whether --enable-build-dird or --disable-build-dird was given.
13031 if test "${enable_build_dird+set}" = set; then
13032   enableval="$enable_build_dird"
13033   if test x$enableval = xno; then
13034       build_dird=no
13035    fi
13036 fi;
13037 if test x$build_dird = xyes; then
13038    DIRD_DIR="src/dird"
13039    DIR_TOOLS="DIRTOOLS"
13040 else
13041    DIRD_DIR=""
13042    DIR_TOOLS="NODIRTOOLS"
13043 fi
13044
13045
13046
13047 # -------------------------------------------
13048 # stored  (default on)
13049 # -------------------------------------------
13050 # Check whether --enable-build-stored or --disable-build-stored was given.
13051 if test "${enable_build_stored+set}" = set; then
13052   enableval="$enable_build_stored"
13053   if test x$enableval = xno; then
13054       build_stored=no
13055    fi
13056 fi;
13057 if test x$build_stored = xyes; then
13058    STORED_DIR="src/stored"
13059 else
13060    STORED_DIR=""
13061 fi
13062
13063
13064 # ---------------------------------------------------
13065 # Check for conio (Bacula readline substitute)(
13066 # ---------------------------------------------------
13067 # this allows you to turn it completely off
13068 # Check whether --enable-conio or --disable-conio was given.
13069 if test "${enable_conio+set}" = set; then
13070   enableval="$enable_conio"
13071   if test x$enableval = xno; then
13072     support_conio=no
13073   fi
13074 fi;
13075
13076 got_conio="no"
13077 if test x$support_conio = xyes; then
13078    if test "${ac_cv_header_termcap_h+set}" = set; then
13079   echo "$as_me:$LINENO: checking for termcap.h" >&5
13080 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13081 if test "${ac_cv_header_termcap_h+set}" = set; then
13082   echo $ECHO_N "(cached) $ECHO_C" >&6
13083 fi
13084 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13085 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13086 else
13087   # Is the header compilable?
13088 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13089 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13091 /* confdefs.h.  */
13092 _ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h.  */
13096 $ac_includes_default
13097 #include <termcap.h>
13098 _ACEOF
13099 rm -f conftest.$ac_objext
13100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13101   (eval $ac_compile) 2>conftest.er1
13102   ac_status=$?
13103   grep -v '^ *+' conftest.er1 >conftest.err
13104   rm -f conftest.er1
13105   cat conftest.err >&5
13106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13107   (exit $ac_status); } &&
13108          { ac_try='test -z "$ac_c_werror_flag"
13109                          || test ! -s conftest.err'
13110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111   (eval $ac_try) 2>&5
13112   ac_status=$?
13113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114   (exit $ac_status); }; } &&
13115          { ac_try='test -s conftest.$ac_objext'
13116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117   (eval $ac_try) 2>&5
13118   ac_status=$?
13119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); }; }; then
13121   ac_header_compiler=yes
13122 else
13123   echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13125
13126 ac_header_compiler=no
13127 fi
13128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13130 echo "${ECHO_T}$ac_header_compiler" >&6
13131
13132 # Is the header present?
13133 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13134 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13135 cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141 #include <termcap.h>
13142 _ACEOF
13143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13144   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13145   ac_status=$?
13146   grep -v '^ *+' conftest.er1 >conftest.err
13147   rm -f conftest.er1
13148   cat conftest.err >&5
13149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150   (exit $ac_status); } >/dev/null; then
13151   if test -s conftest.err; then
13152     ac_cpp_err=$ac_c_preproc_warn_flag
13153     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13154   else
13155     ac_cpp_err=
13156   fi
13157 else
13158   ac_cpp_err=yes
13159 fi
13160 if test -z "$ac_cpp_err"; then
13161   ac_header_preproc=yes
13162 else
13163   echo "$as_me: failed program was:" >&5
13164 sed 's/^/| /' conftest.$ac_ext >&5
13165
13166   ac_header_preproc=no
13167 fi
13168 rm -f conftest.err conftest.$ac_ext
13169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13170 echo "${ECHO_T}$ac_header_preproc" >&6
13171
13172 # So?  What about this header?
13173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13174   yes:no: )
13175     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13176 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13177     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13178 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13179     ac_header_preproc=yes
13180     ;;
13181   no:yes:* )
13182     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13183 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13184     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13185 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13186     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13187 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13188     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13189 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13190     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13191 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13192     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13193 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13194     (
13195       cat <<\_ASBOX
13196 ## ------------------------------------------ ##
13197 ## Report this to the AC_PACKAGE_NAME lists.  ##
13198 ## ------------------------------------------ ##
13199 _ASBOX
13200     ) |
13201       sed "s/^/$as_me: WARNING:     /" >&2
13202     ;;
13203 esac
13204 echo "$as_me:$LINENO: checking for termcap.h" >&5
13205 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13206 if test "${ac_cv_header_termcap_h+set}" = set; then
13207   echo $ECHO_N "(cached) $ECHO_C" >&6
13208 else
13209   ac_cv_header_termcap_h=$ac_header_preproc
13210 fi
13211 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13212 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13213
13214 fi
13215 if test $ac_cv_header_termcap_h = yes; then
13216    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13217 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13218 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   ac_check_lib_save_LIBS=$LIBS
13222 LIBS="-ltermcap  $LIBS"
13223 cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 /* Override any gcc2 internal prototype to avoid an error.  */
13231 #ifdef __cplusplus
13232 extern "C"
13233 #endif
13234 /* We use char because int might match the return type of a gcc2
13235    builtin and then its argument prototype would still apply.  */
13236 char tgetent ();
13237 int
13238 main ()
13239 {
13240 tgetent ();
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 rm -f conftest.$ac_objext conftest$ac_exeext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13247   (eval $ac_link) 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } &&
13254          { ac_try='test -z "$ac_c_werror_flag"
13255                          || test ! -s conftest.err'
13256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257   (eval $ac_try) 2>&5
13258   ac_status=$?
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); }; } &&
13261          { ac_try='test -s conftest$ac_exeext'
13262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13263   (eval $ac_try) 2>&5
13264   ac_status=$?
13265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266   (exit $ac_status); }; }; then
13267   ac_cv_lib_termcap_tgetent=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272 ac_cv_lib_termcap_tgetent=no
13273 fi
13274 rm -f conftest.err conftest.$ac_objext \
13275       conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS
13277 fi
13278 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13279 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13280 if test $ac_cv_lib_termcap_tgetent = yes; then
13281    CONS_LIBS="-ltermcap"
13282          CONS_OBJ="conio.o"
13283          CONS_SRC="conio.c"
13284          got_conio="yes"
13285          support_readline=no
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_CONIO 1
13289 _ACEOF
13290
13291
13292 else
13293    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13294 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13295 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13296   echo $ECHO_N "(cached) $ECHO_C" >&6
13297 else
13298   ac_check_lib_save_LIBS=$LIBS
13299 LIBS="-lncurses  $LIBS"
13300 cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 /* Override any gcc2 internal prototype to avoid an error.  */
13308 #ifdef __cplusplus
13309 extern "C"
13310 #endif
13311 /* We use char because int might match the return type of a gcc2
13312    builtin and then its argument prototype would still apply.  */
13313 char tgetent ();
13314 int
13315 main ()
13316 {
13317 tgetent ();
13318   ;
13319   return 0;
13320 }
13321 _ACEOF
13322 rm -f conftest.$ac_objext conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324   (eval $ac_link) 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } &&
13331          { ac_try='test -z "$ac_c_werror_flag"
13332                          || test ! -s conftest.err'
13333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13334   (eval $ac_try) 2>&5
13335   ac_status=$?
13336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337   (exit $ac_status); }; } &&
13338          { ac_try='test -s conftest$ac_exeext'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; }; then
13344   ac_cv_lib_ncurses_tgetent=yes
13345 else
13346   echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13348
13349 ac_cv_lib_ncurses_tgetent=no
13350 fi
13351 rm -f conftest.err conftest.$ac_objext \
13352       conftest$ac_exeext conftest.$ac_ext
13353 LIBS=$ac_check_lib_save_LIBS
13354 fi
13355 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13356 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13357 if test $ac_cv_lib_ncurses_tgetent = yes; then
13358    CONS_LIBS="-lncurses"
13359            CONS_OBJ="conio.o"
13360            CONS_SRC="conio.c"
13361            got_conio="yes"
13362            support_readline=no
13363
13364 cat >>confdefs.h <<\_ACEOF
13365 #define HAVE_CONIO 1
13366 _ACEOF
13367
13368
13369 fi
13370
13371
13372 fi
13373
13374
13375 else
13376
13377
13378 for ac_header in curses.h
13379 do
13380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13382   echo "$as_me:$LINENO: checking for $ac_header" >&5
13383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13385   echo $ECHO_N "(cached) $ECHO_C" >&6
13386 fi
13387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13389 else
13390   # Is the header compilable?
13391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13393 cat >conftest.$ac_ext <<_ACEOF
13394 /* confdefs.h.  */
13395 _ACEOF
13396 cat confdefs.h >>conftest.$ac_ext
13397 cat >>conftest.$ac_ext <<_ACEOF
13398 /* end confdefs.h.  */
13399 $ac_includes_default
13400 #include <$ac_header>
13401 _ACEOF
13402 rm -f conftest.$ac_objext
13403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13404   (eval $ac_compile) 2>conftest.er1
13405   ac_status=$?
13406   grep -v '^ *+' conftest.er1 >conftest.err
13407   rm -f conftest.er1
13408   cat conftest.err >&5
13409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410   (exit $ac_status); } &&
13411          { ac_try='test -z "$ac_c_werror_flag"
13412                          || test ! -s conftest.err'
13413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414   (eval $ac_try) 2>&5
13415   ac_status=$?
13416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417   (exit $ac_status); }; } &&
13418          { ac_try='test -s conftest.$ac_objext'
13419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13420   (eval $ac_try) 2>&5
13421   ac_status=$?
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); }; }; then
13424   ac_header_compiler=yes
13425 else
13426   echo "$as_me: failed program was:" >&5
13427 sed 's/^/| /' conftest.$ac_ext >&5
13428
13429 ac_header_compiler=no
13430 fi
13431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13433 echo "${ECHO_T}$ac_header_compiler" >&6
13434
13435 # Is the header present?
13436 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13437 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13438 cat >conftest.$ac_ext <<_ACEOF
13439 /* confdefs.h.  */
13440 _ACEOF
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h.  */
13444 #include <$ac_header>
13445 _ACEOF
13446 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13447   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13448   ac_status=$?
13449   grep -v '^ *+' conftest.er1 >conftest.err
13450   rm -f conftest.er1
13451   cat conftest.err >&5
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); } >/dev/null; then
13454   if test -s conftest.err; then
13455     ac_cpp_err=$ac_c_preproc_warn_flag
13456     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13457   else
13458     ac_cpp_err=
13459   fi
13460 else
13461   ac_cpp_err=yes
13462 fi
13463 if test -z "$ac_cpp_err"; then
13464   ac_header_preproc=yes
13465 else
13466   echo "$as_me: failed program was:" >&5
13467 sed 's/^/| /' conftest.$ac_ext >&5
13468
13469   ac_header_preproc=no
13470 fi
13471 rm -f conftest.err conftest.$ac_ext
13472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13473 echo "${ECHO_T}$ac_header_preproc" >&6
13474
13475 # So?  What about this header?
13476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13477   yes:no: )
13478     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13480     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13482     ac_header_preproc=yes
13483     ;;
13484   no:yes:* )
13485     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13487     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13488 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13489     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13491     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13492 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13493     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13495     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13497     (
13498       cat <<\_ASBOX
13499 ## ------------------------------------------ ##
13500 ## Report this to the AC_PACKAGE_NAME lists.  ##
13501 ## ------------------------------------------ ##
13502 _ASBOX
13503     ) |
13504       sed "s/^/$as_me: WARNING:     /" >&2
13505     ;;
13506 esac
13507 echo "$as_me:$LINENO: checking for $ac_header" >&5
13508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13510   echo $ECHO_N "(cached) $ECHO_C" >&6
13511 else
13512   eval "$as_ac_Header=\$ac_header_preproc"
13513 fi
13514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13516
13517 fi
13518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13519   cat >>confdefs.h <<_ACEOF
13520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13521 _ACEOF
13522
13523 fi
13524
13525 done
13526
13527          echo "$as_me:$LINENO: checking for term.h" >&5
13528 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13529 if test "${ac_cv_header_term_h+set}" = set; then
13530   echo $ECHO_N "(cached) $ECHO_C" >&6
13531 else
13532   cat >conftest.$ac_ext <<_ACEOF
13533 /* confdefs.h.  */
13534 _ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h.  */
13538 #if HAVE_CURSES_H
13539 #include <curses.h>
13540 #endif
13541
13542
13543 #include <term.h>
13544 _ACEOF
13545 rm -f conftest.$ac_objext
13546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13547   (eval $ac_compile) 2>conftest.er1
13548   ac_status=$?
13549   grep -v '^ *+' conftest.er1 >conftest.err
13550   rm -f conftest.er1
13551   cat conftest.err >&5
13552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553   (exit $ac_status); } &&
13554          { ac_try='test -z "$ac_c_werror_flag"
13555                          || test ! -s conftest.err'
13556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557   (eval $ac_try) 2>&5
13558   ac_status=$?
13559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560   (exit $ac_status); }; } &&
13561          { ac_try='test -s conftest.$ac_objext'
13562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563   (eval $ac_try) 2>&5
13564   ac_status=$?
13565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566   (exit $ac_status); }; }; then
13567   ac_cv_header_term_h=yes
13568 else
13569   echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13571
13572 ac_cv_header_term_h=no
13573 fi
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13575 fi
13576 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13577 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13578 if test $ac_cv_header_term_h = yes; then
13579    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13580 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13581 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13582   echo $ECHO_N "(cached) $ECHO_C" >&6
13583 else
13584   ac_check_lib_save_LIBS=$LIBS
13585 LIBS="-lcurses  $LIBS"
13586 cat >conftest.$ac_ext <<_ACEOF
13587 /* confdefs.h.  */
13588 _ACEOF
13589 cat confdefs.h >>conftest.$ac_ext
13590 cat >>conftest.$ac_ext <<_ACEOF
13591 /* end confdefs.h.  */
13592
13593 /* Override any gcc2 internal prototype to avoid an error.  */
13594 #ifdef __cplusplus
13595 extern "C"
13596 #endif
13597 /* We use char because int might match the return type of a gcc2
13598    builtin and then its argument prototype would still apply.  */
13599 char tgetent ();
13600 int
13601 main ()
13602 {
13603 tgetent ();
13604   ;
13605   return 0;
13606 }
13607 _ACEOF
13608 rm -f conftest.$ac_objext conftest$ac_exeext
13609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13610   (eval $ac_link) 2>conftest.er1
13611   ac_status=$?
13612   grep -v '^ *+' conftest.er1 >conftest.err
13613   rm -f conftest.er1
13614   cat conftest.err >&5
13615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616   (exit $ac_status); } &&
13617          { ac_try='test -z "$ac_c_werror_flag"
13618                          || test ! -s conftest.err'
13619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13620   (eval $ac_try) 2>&5
13621   ac_status=$?
13622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13623   (exit $ac_status); }; } &&
13624          { ac_try='test -s conftest$ac_exeext'
13625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13626   (eval $ac_try) 2>&5
13627   ac_status=$?
13628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629   (exit $ac_status); }; }; then
13630   ac_cv_lib_curses_tgetent=yes
13631 else
13632   echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_cv_lib_curses_tgetent=no
13636 fi
13637 rm -f conftest.err conftest.$ac_objext \
13638       conftest$ac_exeext conftest.$ac_ext
13639 LIBS=$ac_check_lib_save_LIBS
13640 fi
13641 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13642 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13643 if test $ac_cv_lib_curses_tgetent = yes; then
13644    CONS_LIBS="-lcurses"
13645                    CONS_OBJ="conio.o"
13646                    CONS_SRC="conio.c"
13647                    got_conio="yes"
13648                    support_readline=no
13649
13650 cat >>confdefs.h <<\_ACEOF
13651 #define HAVE_CONIO 1
13652 _ACEOF
13653
13654
13655 fi
13656
13657
13658 else
13659    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13660 fi
13661
13662
13663
13664 fi
13665
13666
13667 fi
13668
13669
13670 # ---------------------------------------------------
13671 # Check for readline support/directory (default off)
13672 # ---------------------------------------------------
13673 # this allows you to turn it completely off
13674 # Check whether --enable-readline or --disable-readline was given.
13675 if test "${enable_readline+set}" = set; then
13676   enableval="$enable_readline"
13677   if test x$enableval = xno; then
13678     support_readline=no
13679   fi
13680 fi;
13681
13682 got_readline="no"
13683 READLINE_SRC=
13684 if test x$support_readline = xyes; then
13685
13686 # Check whether --with-readline or --without-readline was given.
13687 if test "${with_readline+set}" = set; then
13688   withval="$with_readline"
13689
13690         case "$with_readline" in
13691         no) : ;;
13692         yes|*)
13693           if test -f ${with_readline}/readline.h; then
13694              CONS_INC="-I${with_readline}"
13695              CONS_LDFLAGS="-L$with_readline"
13696           elif test -f ${with_readline}/include/readline/readline.h; then
13697              CONS_INC="-I${with_readline}/include/readline"
13698              CONS_LDFLAGS="-L${with_readline}/lib"
13699              with_readline="${with_readline}/include/readline"
13700           else
13701              with_readline="/usr/include/readline"
13702           fi
13703           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13704 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13705   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13706 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13708   echo $ECHO_N "(cached) $ECHO_C" >&6
13709 fi
13710 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13711 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13712 else
13713   # Is the header compilable?
13714 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13715 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13716 cat >conftest.$ac_ext <<_ACEOF
13717 /* confdefs.h.  */
13718 _ACEOF
13719 cat confdefs.h >>conftest.$ac_ext
13720 cat >>conftest.$ac_ext <<_ACEOF
13721 /* end confdefs.h.  */
13722 $ac_includes_default
13723 #include <${with_readline}/readline.h>
13724 _ACEOF
13725 rm -f conftest.$ac_objext
13726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13727   (eval $ac_compile) 2>conftest.er1
13728   ac_status=$?
13729   grep -v '^ *+' conftest.er1 >conftest.err
13730   rm -f conftest.er1
13731   cat conftest.err >&5
13732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13733   (exit $ac_status); } &&
13734          { ac_try='test -z "$ac_c_werror_flag"
13735                          || test ! -s conftest.err'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; } &&
13741          { ac_try='test -s conftest.$ac_objext'
13742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743   (eval $ac_try) 2>&5
13744   ac_status=$?
13745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746   (exit $ac_status); }; }; then
13747   ac_header_compiler=yes
13748 else
13749   echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752 ac_header_compiler=no
13753 fi
13754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13755 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6
13757
13758 # Is the header present?
13759 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13760 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13761 cat >conftest.$ac_ext <<_ACEOF
13762 /* confdefs.h.  */
13763 _ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h.  */
13767 #include <${with_readline}/readline.h>
13768 _ACEOF
13769 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13770   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13771   ac_status=$?
13772   grep -v '^ *+' conftest.er1 >conftest.err
13773   rm -f conftest.er1
13774   cat conftest.err >&5
13775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776   (exit $ac_status); } >/dev/null; then
13777   if test -s conftest.err; then
13778     ac_cpp_err=$ac_c_preproc_warn_flag
13779     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13780   else
13781     ac_cpp_err=
13782   fi
13783 else
13784   ac_cpp_err=yes
13785 fi
13786 if test -z "$ac_cpp_err"; then
13787   ac_header_preproc=yes
13788 else
13789   echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13791
13792   ac_header_preproc=no
13793 fi
13794 rm -f conftest.err conftest.$ac_ext
13795 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13796 echo "${ECHO_T}$ac_header_preproc" >&6
13797
13798 # So?  What about this header?
13799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13800   yes:no: )
13801     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13802 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13803     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
13804 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
13805     ac_header_preproc=yes
13806     ;;
13807   no:yes:* )
13808     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
13809 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
13810     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
13811 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
13812     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
13813 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
13814     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13815 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13816     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
13817 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
13818     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
13819 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
13820     (
13821       cat <<\_ASBOX
13822 ## ------------------------------------------ ##
13823 ## Report this to the AC_PACKAGE_NAME lists.  ##
13824 ## ------------------------------------------ ##
13825 _ASBOX
13826     ) |
13827       sed "s/^/$as_me: WARNING:     /" >&2
13828     ;;
13829 esac
13830 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13831 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13832 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13833   echo $ECHO_N "(cached) $ECHO_C" >&6
13834 else
13835   eval "$as_ac_Header=\$ac_header_preproc"
13836 fi
13837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13838 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13839
13840 fi
13841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13842    cat >>confdefs.h <<\_ACEOF
13843 #define HAVE_READLINE 1
13844 _ACEOF
13845
13846                CONS_LIBS="-lreadline -lhistory -ltermcap"
13847                got_readline="yes"
13848
13849 else
13850    echo " "
13851                echo "readline.h not found. readline turned off ..."
13852                echo " "
13853
13854
13855 fi
13856
13857
13858           ;;
13859         esac
13860
13861 else
13862
13863        # check for standard readline library
13864        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13865   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13866 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13867 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13868   echo $ECHO_N "(cached) $ECHO_C" >&6
13869 fi
13870 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13871 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13872 else
13873   # Is the header compilable?
13874 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
13875 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882 $ac_includes_default
13883 #include </usr/include/readline/readline.h>
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13887   (eval $ac_compile) 2>conftest.er1
13888   ac_status=$?
13889   grep -v '^ *+' conftest.er1 >conftest.err
13890   rm -f conftest.er1
13891   cat conftest.err >&5
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); } &&
13894          { ac_try='test -z "$ac_c_werror_flag"
13895                          || test ! -s conftest.err'
13896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13897   (eval $ac_try) 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest.$ac_objext'
13902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903   (eval $ac_try) 2>&5
13904   ac_status=$?
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); }; }; then
13907   ac_header_compiler=yes
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 ac_header_compiler=no
13913 fi
13914 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13915 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13916 echo "${ECHO_T}$ac_header_compiler" >&6
13917
13918 # Is the header present?
13919 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
13920 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h.  */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h.  */
13927 #include </usr/include/readline/readline.h>
13928 _ACEOF
13929 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13930   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13931   ac_status=$?
13932   grep -v '^ *+' conftest.er1 >conftest.err
13933   rm -f conftest.er1
13934   cat conftest.err >&5
13935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936   (exit $ac_status); } >/dev/null; then
13937   if test -s conftest.err; then
13938     ac_cpp_err=$ac_c_preproc_warn_flag
13939     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13940   else
13941     ac_cpp_err=
13942   fi
13943 else
13944   ac_cpp_err=yes
13945 fi
13946 if test -z "$ac_cpp_err"; then
13947   ac_header_preproc=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952   ac_header_preproc=no
13953 fi
13954 rm -f conftest.err conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13956 echo "${ECHO_T}$ac_header_preproc" >&6
13957
13958 # So?  What about this header?
13959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13960   yes:no: )
13961     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13962 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13963     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
13964 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
13965     ac_header_preproc=yes
13966     ;;
13967   no:yes:* )
13968     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
13969 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
13971 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
13972     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
13973 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
13974     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
13975 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13976     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
13977 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
13978     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
13979 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
13980     (
13981       cat <<\_ASBOX
13982 ## ------------------------------------------ ##
13983 ## Report this to the AC_PACKAGE_NAME lists.  ##
13984 ## ------------------------------------------ ##
13985 _ASBOX
13986     ) |
13987       sed "s/^/$as_me: WARNING:     /" >&2
13988     ;;
13989 esac
13990 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
13991 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
13992 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
13993   echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
13996 fi
13997 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
13998 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
13999
14000 fi
14001 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14002    cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_READLINE 1
14004 _ACEOF
14005
14006            got_readline="yes"
14007            CONS_INC="-I/usr/include/readline"
14008            CONS_LIBS="-lreadline -ltermcap"
14009
14010 else
14011
14012            # Did not find standard library, so try Bacula's default
14013             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14015   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14016 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14018   echo $ECHO_N "(cached) $ECHO_C" >&6
14019 fi
14020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14021 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14022 else
14023   # Is the header compilable?
14024 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14025 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14026 cat >conftest.$ac_ext <<_ACEOF
14027 /* confdefs.h.  */
14028 _ACEOF
14029 cat confdefs.h >>conftest.$ac_ext
14030 cat >>conftest.$ac_ext <<_ACEOF
14031 /* end confdefs.h.  */
14032 $ac_includes_default
14033 #include <${TOP_DIR}/depkgs/readline/readline.h>
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037   (eval $ac_compile) 2>conftest.er1
14038   ac_status=$?
14039   grep -v '^ *+' conftest.er1 >conftest.err
14040   rm -f conftest.er1
14041   cat conftest.err >&5
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); } &&
14044          { ac_try='test -z "$ac_c_werror_flag"
14045                          || test ! -s conftest.err'
14046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047   (eval $ac_try) 2>&5
14048   ac_status=$?
14049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050   (exit $ac_status); }; } &&
14051          { ac_try='test -s conftest.$ac_objext'
14052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053   (eval $ac_try) 2>&5
14054   ac_status=$?
14055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056   (exit $ac_status); }; }; then
14057   ac_header_compiler=yes
14058 else
14059   echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_header_compiler=no
14063 fi
14064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14066 echo "${ECHO_T}$ac_header_compiler" >&6
14067
14068 # Is the header present?
14069 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14070 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14071 cat >conftest.$ac_ext <<_ACEOF
14072 /* confdefs.h.  */
14073 _ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h.  */
14077 #include <${TOP_DIR}/depkgs/readline/readline.h>
14078 _ACEOF
14079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14080   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14081   ac_status=$?
14082   grep -v '^ *+' conftest.er1 >conftest.err
14083   rm -f conftest.er1
14084   cat conftest.err >&5
14085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086   (exit $ac_status); } >/dev/null; then
14087   if test -s conftest.err; then
14088     ac_cpp_err=$ac_c_preproc_warn_flag
14089     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14090   else
14091     ac_cpp_err=
14092   fi
14093 else
14094   ac_cpp_err=yes
14095 fi
14096 if test -z "$ac_cpp_err"; then
14097   ac_header_preproc=yes
14098 else
14099   echo "$as_me: failed program was:" >&5
14100 sed 's/^/| /' conftest.$ac_ext >&5
14101
14102   ac_header_preproc=no
14103 fi
14104 rm -f conftest.err conftest.$ac_ext
14105 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6
14107
14108 # So?  What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110   yes:no: )
14111     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14115     ac_header_preproc=yes
14116     ;;
14117   no:yes:* )
14118     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14120     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14122     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14124     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14126     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14128     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14130     (
14131       cat <<\_ASBOX
14132 ## ------------------------------------------ ##
14133 ## Report this to the AC_PACKAGE_NAME lists.  ##
14134 ## ------------------------------------------ ##
14135 _ASBOX
14136     ) |
14137       sed "s/^/$as_me: WARNING:     /" >&2
14138     ;;
14139 esac
14140 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14141 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14142 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14143   echo $ECHO_N "(cached) $ECHO_C" >&6
14144 else
14145   eval "$as_ac_Header=\$ac_header_preproc"
14146 fi
14147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14148 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14149
14150 fi
14151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14152    cat >>confdefs.h <<\_ACEOF
14153 #define HAVE_READLINE 1
14154 _ACEOF
14155
14156                  got_readline="yes"
14157                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14158                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14159                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14160                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14161
14162 else
14163    echo " "
14164                 echo "readline.h not found. readline turned off ..."
14165                 echo " "
14166
14167
14168 fi
14169
14170
14171
14172
14173 fi
14174
14175
14176
14177
14178 fi;
14179 fi
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190 # Minimal stuff for readline Makefile configuration
14191 MAKE_SHELL=/bin/sh
14192
14193 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14194 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14195 if test "${ac_cv_header_stat_broken+set}" = set; then
14196   echo $ECHO_N "(cached) $ECHO_C" >&6
14197 else
14198   cat >conftest.$ac_ext <<_ACEOF
14199 /* confdefs.h.  */
14200 _ACEOF
14201 cat confdefs.h >>conftest.$ac_ext
14202 cat >>conftest.$ac_ext <<_ACEOF
14203 /* end confdefs.h.  */
14204 #include <sys/types.h>
14205 #include <sys/stat.h>
14206
14207 #if defined(S_ISBLK) && defined(S_IFDIR)
14208 # if S_ISBLK (S_IFDIR)
14209 You lose.
14210 # endif
14211 #endif
14212
14213 #if defined(S_ISBLK) && defined(S_IFCHR)
14214 # if S_ISBLK (S_IFCHR)
14215 You lose.
14216 # endif
14217 #endif
14218
14219 #if defined(S_ISLNK) && defined(S_IFREG)
14220 # if S_ISLNK (S_IFREG)
14221 You lose.
14222 # endif
14223 #endif
14224
14225 #if defined(S_ISSOCK) && defined(S_IFREG)
14226 # if S_ISSOCK (S_IFREG)
14227 You lose.
14228 # endif
14229 #endif
14230
14231 _ACEOF
14232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14233   $EGREP "You lose" >/dev/null 2>&1; then
14234   ac_cv_header_stat_broken=yes
14235 else
14236   ac_cv_header_stat_broken=no
14237 fi
14238 rm -f conftest*
14239
14240 fi
14241 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14242 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14243 if test $ac_cv_header_stat_broken = yes; then
14244
14245 cat >>confdefs.h <<\_ACEOF
14246 #define STAT_MACROS_BROKEN 1
14247 _ACEOF
14248
14249 fi
14250
14251
14252
14253
14254
14255
14256 ac_header_dirent=no
14257 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14258   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14259 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14260 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14261 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14262   echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264   cat >conftest.$ac_ext <<_ACEOF
14265 /* confdefs.h.  */
14266 _ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h.  */
14270 #include <sys/types.h>
14271 #include <$ac_hdr>
14272
14273 int
14274 main ()
14275 {
14276 if ((DIR *) 0)
14277 return 0;
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 rm -f conftest.$ac_objext
14283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14284   (eval $ac_compile) 2>conftest.er1
14285   ac_status=$?
14286   grep -v '^ *+' conftest.er1 >conftest.err
14287   rm -f conftest.er1
14288   cat conftest.err >&5
14289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290   (exit $ac_status); } &&
14291          { ac_try='test -z "$ac_c_werror_flag"
14292                          || test ! -s conftest.err'
14293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14294   (eval $ac_try) 2>&5
14295   ac_status=$?
14296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297   (exit $ac_status); }; } &&
14298          { ac_try='test -s conftest.$ac_objext'
14299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300   (eval $ac_try) 2>&5
14301   ac_status=$?
14302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303   (exit $ac_status); }; }; then
14304   eval "$as_ac_Header=yes"
14305 else
14306   echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14308
14309 eval "$as_ac_Header=no"
14310 fi
14311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14312 fi
14313 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14314 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14316   cat >>confdefs.h <<_ACEOF
14317 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14318 _ACEOF
14319
14320 ac_header_dirent=$ac_hdr; break
14321 fi
14322
14323 done
14324 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14325 if test $ac_header_dirent = dirent.h; then
14326   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14328 if test "${ac_cv_search_opendir+set}" = set; then
14329   echo $ECHO_N "(cached) $ECHO_C" >&6
14330 else
14331   ac_func_search_save_LIBS=$LIBS
14332 ac_cv_search_opendir=no
14333 cat >conftest.$ac_ext <<_ACEOF
14334 /* confdefs.h.  */
14335 _ACEOF
14336 cat confdefs.h >>conftest.$ac_ext
14337 cat >>conftest.$ac_ext <<_ACEOF
14338 /* end confdefs.h.  */
14339
14340 /* Override any gcc2 internal prototype to avoid an error.  */
14341 #ifdef __cplusplus
14342 extern "C"
14343 #endif
14344 /* We use char because int might match the return type of a gcc2
14345    builtin and then its argument prototype would still apply.  */
14346 char opendir ();
14347 int
14348 main ()
14349 {
14350 opendir ();
14351   ;
14352   return 0;
14353 }
14354 _ACEOF
14355 rm -f conftest.$ac_objext conftest$ac_exeext
14356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14357   (eval $ac_link) 2>conftest.er1
14358   ac_status=$?
14359   grep -v '^ *+' conftest.er1 >conftest.err
14360   rm -f conftest.er1
14361   cat conftest.err >&5
14362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363   (exit $ac_status); } &&
14364          { ac_try='test -z "$ac_c_werror_flag"
14365                          || test ! -s conftest.err'
14366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367   (eval $ac_try) 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; } &&
14371          { ac_try='test -s conftest$ac_exeext'
14372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14373   (eval $ac_try) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); }; }; then
14377   ac_cv_search_opendir="none required"
14378 else
14379   echo "$as_me: failed program was:" >&5
14380 sed 's/^/| /' conftest.$ac_ext >&5
14381
14382 fi
14383 rm -f conftest.err conftest.$ac_objext \
14384       conftest$ac_exeext conftest.$ac_ext
14385 if test "$ac_cv_search_opendir" = no; then
14386   for ac_lib in dir; do
14387     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14388     cat >conftest.$ac_ext <<_ACEOF
14389 /* confdefs.h.  */
14390 _ACEOF
14391 cat confdefs.h >>conftest.$ac_ext
14392 cat >>conftest.$ac_ext <<_ACEOF
14393 /* end confdefs.h.  */
14394
14395 /* Override any gcc2 internal prototype to avoid an error.  */
14396 #ifdef __cplusplus
14397 extern "C"
14398 #endif
14399 /* We use char because int might match the return type of a gcc2
14400    builtin and then its argument prototype would still apply.  */
14401 char opendir ();
14402 int
14403 main ()
14404 {
14405 opendir ();
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext conftest$ac_exeext
14411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14412   (eval $ac_link) 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag"
14420                          || test ! -s conftest.err'
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); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14428   (eval $ac_try) 2>&5
14429   ac_status=$?
14430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431   (exit $ac_status); }; }; then
14432   ac_cv_search_opendir="-l$ac_lib"
14433 break
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438 fi
14439 rm -f conftest.err conftest.$ac_objext \
14440       conftest$ac_exeext conftest.$ac_ext
14441   done
14442 fi
14443 LIBS=$ac_func_search_save_LIBS
14444 fi
14445 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14447 if test "$ac_cv_search_opendir" != no; then
14448   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14449
14450 fi
14451
14452 else
14453   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14454 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14455 if test "${ac_cv_search_opendir+set}" = set; then
14456   echo $ECHO_N "(cached) $ECHO_C" >&6
14457 else
14458   ac_func_search_save_LIBS=$LIBS
14459 ac_cv_search_opendir=no
14460 cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466
14467 /* Override any gcc2 internal prototype to avoid an error.  */
14468 #ifdef __cplusplus
14469 extern "C"
14470 #endif
14471 /* We use char because int might match the return type of a gcc2
14472    builtin and then its argument prototype would still apply.  */
14473 char opendir ();
14474 int
14475 main ()
14476 {
14477 opendir ();
14478   ;
14479   return 0;
14480 }
14481 _ACEOF
14482 rm -f conftest.$ac_objext conftest$ac_exeext
14483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14484   (eval $ac_link) 2>conftest.er1
14485   ac_status=$?
14486   grep -v '^ *+' conftest.er1 >conftest.err
14487   rm -f conftest.er1
14488   cat conftest.err >&5
14489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490   (exit $ac_status); } &&
14491          { ac_try='test -z "$ac_c_werror_flag"
14492                          || test ! -s conftest.err'
14493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494   (eval $ac_try) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; } &&
14498          { ac_try='test -s conftest$ac_exeext'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }; then
14504   ac_cv_search_opendir="none required"
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 fi
14510 rm -f conftest.err conftest.$ac_objext \
14511       conftest$ac_exeext conftest.$ac_ext
14512 if test "$ac_cv_search_opendir" = no; then
14513   for ac_lib in x; do
14514     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14515     cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521
14522 /* Override any gcc2 internal prototype to avoid an error.  */
14523 #ifdef __cplusplus
14524 extern "C"
14525 #endif
14526 /* We use char because int might match the return type of a gcc2
14527    builtin and then its argument prototype would still apply.  */
14528 char opendir ();
14529 int
14530 main ()
14531 {
14532 opendir ();
14533   ;
14534   return 0;
14535 }
14536 _ACEOF
14537 rm -f conftest.$ac_objext conftest$ac_exeext
14538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14539   (eval $ac_link) 2>conftest.er1
14540   ac_status=$?
14541   grep -v '^ *+' conftest.er1 >conftest.err
14542   rm -f conftest.er1
14543   cat conftest.err >&5
14544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545   (exit $ac_status); } &&
14546          { ac_try='test -z "$ac_c_werror_flag"
14547                          || test ! -s conftest.err'
14548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14549   (eval $ac_try) 2>&5
14550   ac_status=$?
14551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552   (exit $ac_status); }; } &&
14553          { ac_try='test -s conftest$ac_exeext'
14554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555   (eval $ac_try) 2>&5
14556   ac_status=$?
14557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558   (exit $ac_status); }; }; then
14559   ac_cv_search_opendir="-l$ac_lib"
14560 break
14561 else
14562   echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565 fi
14566 rm -f conftest.err conftest.$ac_objext \
14567       conftest$ac_exeext conftest.$ac_ext
14568   done
14569 fi
14570 LIBS=$ac_func_search_save_LIBS
14571 fi
14572 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14573 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14574 if test "$ac_cv_search_opendir" != no; then
14575   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14576
14577 fi
14578
14579 fi
14580
14581
14582
14583
14584
14585
14586
14587
14588 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14589 do
14590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14591 echo "$as_me:$LINENO: checking for $ac_func" >&5
14592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14593 if eval "test \"\${$as_ac_var+set}\" = set"; then
14594   echo $ECHO_N "(cached) $ECHO_C" >&6
14595 else
14596   cat >conftest.$ac_ext <<_ACEOF
14597 /* confdefs.h.  */
14598 _ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h.  */
14602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14604 #define $ac_func innocuous_$ac_func
14605
14606 /* System header to define __stub macros and hopefully few prototypes,
14607     which can conflict with char $ac_func (); below.
14608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14609     <limits.h> exists even on freestanding compilers.  */
14610
14611 #ifdef __STDC__
14612 # include <limits.h>
14613 #else
14614 # include <assert.h>
14615 #endif
14616
14617 #undef $ac_func
14618
14619 /* Override any gcc2 internal prototype to avoid an error.  */
14620 #ifdef __cplusplus
14621 extern "C"
14622 {
14623 #endif
14624 /* We use char because int might match the return type of a gcc2
14625    builtin and then its argument prototype would still apply.  */
14626 char $ac_func ();
14627 /* The GNU C library defines this for functions which it implements
14628     to always fail with ENOSYS.  Some functions are actually named
14629     something starting with __ and the normal name is an alias.  */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14631 choke me
14632 #else
14633 char (*f) () = $ac_func;
14634 #endif
14635 #ifdef __cplusplus
14636 }
14637 #endif
14638
14639 int
14640 main ()
14641 {
14642 return f != $ac_func;
14643   ;
14644   return 0;
14645 }
14646 _ACEOF
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649   (eval $ac_link) 2>conftest.er1
14650   ac_status=$?
14651   grep -v '^ *+' conftest.er1 >conftest.err
14652   rm -f conftest.er1
14653   cat conftest.err >&5
14654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655   (exit $ac_status); } &&
14656          { ac_try='test -z "$ac_c_werror_flag"
14657                          || test ! -s conftest.err'
14658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659   (eval $ac_try) 2>&5
14660   ac_status=$?
14661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662   (exit $ac_status); }; } &&
14663          { ac_try='test -s conftest$ac_exeext'
14664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14665   (eval $ac_try) 2>&5
14666   ac_status=$?
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); }; }; then
14669   eval "$as_ac_var=yes"
14670 else
14671   echo "$as_me: failed program was:" >&5
14672 sed 's/^/| /' conftest.$ac_ext >&5
14673
14674 eval "$as_ac_var=no"
14675 fi
14676 rm -f conftest.err conftest.$ac_objext \
14677       conftest$ac_exeext conftest.$ac_ext
14678 fi
14679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14680 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14681 if test `eval echo '${'$as_ac_var'}'` = yes; then
14682   cat >>confdefs.h <<_ACEOF
14683 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14684 _ACEOF
14685
14686 fi
14687 done
14688
14689
14690
14691 for ac_func in nanosleep nl_langinfo
14692 do
14693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14694 echo "$as_me:$LINENO: checking for $ac_func" >&5
14695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14696 if eval "test \"\${$as_ac_var+set}\" = set"; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 else
14699   cat >conftest.$ac_ext <<_ACEOF
14700 /* confdefs.h.  */
14701 _ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h.  */
14705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14707 #define $ac_func innocuous_$ac_func
14708
14709 /* System header to define __stub macros and hopefully few prototypes,
14710     which can conflict with char $ac_func (); below.
14711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712     <limits.h> exists even on freestanding compilers.  */
14713
14714 #ifdef __STDC__
14715 # include <limits.h>
14716 #else
14717 # include <assert.h>
14718 #endif
14719
14720 #undef $ac_func
14721
14722 /* Override any gcc2 internal prototype to avoid an error.  */
14723 #ifdef __cplusplus
14724 extern "C"
14725 {
14726 #endif
14727 /* We use char because int might match the return type of a gcc2
14728    builtin and then its argument prototype would still apply.  */
14729 char $ac_func ();
14730 /* The GNU C library defines this for functions which it implements
14731     to always fail with ENOSYS.  Some functions are actually named
14732     something starting with __ and the normal name is an alias.  */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14734 choke me
14735 #else
14736 char (*f) () = $ac_func;
14737 #endif
14738 #ifdef __cplusplus
14739 }
14740 #endif
14741
14742 int
14743 main ()
14744 {
14745 return f != $ac_func;
14746   ;
14747   return 0;
14748 }
14749 _ACEOF
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752   (eval $ac_link) 2>conftest.er1
14753   ac_status=$?
14754   grep -v '^ *+' conftest.er1 >conftest.err
14755   rm -f conftest.er1
14756   cat conftest.err >&5
14757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758   (exit $ac_status); } &&
14759          { ac_try='test -z "$ac_c_werror_flag"
14760                          || test ! -s conftest.err'
14761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14762   (eval $ac_try) 2>&5
14763   ac_status=$?
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); }; } &&
14766          { ac_try='test -s conftest$ac_exeext'
14767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14768   (eval $ac_try) 2>&5
14769   ac_status=$?
14770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14771   (exit $ac_status); }; }; then
14772   eval "$as_ac_var=yes"
14773 else
14774   echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 eval "$as_ac_var=no"
14778 fi
14779 rm -f conftest.err conftest.$ac_objext \
14780       conftest$ac_exeext conftest.$ac_ext
14781 fi
14782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14783 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14784 if test `eval echo '${'$as_ac_var'}'` = yes; then
14785   cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14787 _ACEOF
14788
14789 fi
14790 done
14791
14792
14793 for ac_header in varargs.h
14794 do
14795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14797   echo "$as_me:$LINENO: checking for $ac_header" >&5
14798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14799 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14800   echo $ECHO_N "(cached) $ECHO_C" >&6
14801 fi
14802 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14803 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14804 else
14805   # Is the header compilable?
14806 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14808 cat >conftest.$ac_ext <<_ACEOF
14809 /* confdefs.h.  */
14810 _ACEOF
14811 cat confdefs.h >>conftest.$ac_ext
14812 cat >>conftest.$ac_ext <<_ACEOF
14813 /* end confdefs.h.  */
14814 $ac_includes_default
14815 #include <$ac_header>
14816 _ACEOF
14817 rm -f conftest.$ac_objext
14818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14819   (eval $ac_compile) 2>conftest.er1
14820   ac_status=$?
14821   grep -v '^ *+' conftest.er1 >conftest.err
14822   rm -f conftest.er1
14823   cat conftest.err >&5
14824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825   (exit $ac_status); } &&
14826          { ac_try='test -z "$ac_c_werror_flag"
14827                          || test ! -s conftest.err'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; } &&
14833          { ac_try='test -s conftest.$ac_objext'
14834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835   (eval $ac_try) 2>&5
14836   ac_status=$?
14837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838   (exit $ac_status); }; }; then
14839   ac_header_compiler=yes
14840 else
14841   echo "$as_me: failed program was:" >&5
14842 sed 's/^/| /' conftest.$ac_ext >&5
14843
14844 ac_header_compiler=no
14845 fi
14846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14847 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14848 echo "${ECHO_T}$ac_header_compiler" >&6
14849
14850 # Is the header present?
14851 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14853 cat >conftest.$ac_ext <<_ACEOF
14854 /* confdefs.h.  */
14855 _ACEOF
14856 cat confdefs.h >>conftest.$ac_ext
14857 cat >>conftest.$ac_ext <<_ACEOF
14858 /* end confdefs.h.  */
14859 #include <$ac_header>
14860 _ACEOF
14861 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14862   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14863   ac_status=$?
14864   grep -v '^ *+' conftest.er1 >conftest.err
14865   rm -f conftest.er1
14866   cat conftest.err >&5
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); } >/dev/null; then
14869   if test -s conftest.err; then
14870     ac_cpp_err=$ac_c_preproc_warn_flag
14871     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14872   else
14873     ac_cpp_err=
14874   fi
14875 else
14876   ac_cpp_err=yes
14877 fi
14878 if test -z "$ac_cpp_err"; then
14879   ac_header_preproc=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884   ac_header_preproc=no
14885 fi
14886 rm -f conftest.err conftest.$ac_ext
14887 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14888 echo "${ECHO_T}$ac_header_preproc" >&6
14889
14890 # So?  What about this header?
14891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14892   yes:no: )
14893     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14895     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14897     ac_header_preproc=yes
14898     ;;
14899   no:yes:* )
14900     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14902     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14903 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14904     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14906     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14907 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14908     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14912     (
14913       cat <<\_ASBOX
14914 ## ------------------------------------------ ##
14915 ## Report this to the AC_PACKAGE_NAME lists.  ##
14916 ## ------------------------------------------ ##
14917 _ASBOX
14918     ) |
14919       sed "s/^/$as_me: WARNING:     /" >&2
14920     ;;
14921 esac
14922 echo "$as_me:$LINENO: checking for $ac_header" >&5
14923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14925   echo $ECHO_N "(cached) $ECHO_C" >&6
14926 else
14927   eval "$as_ac_Header=\$ac_header_preproc"
14928 fi
14929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14931
14932 fi
14933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14934   cat >>confdefs.h <<_ACEOF
14935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14936 _ACEOF
14937
14938 fi
14939
14940 done
14941
14942
14943 # End of readline/conio stuff
14944 # -----------------------------------------------------------------------
14945
14946 # -----------------------------------------------------------------------
14947 #  Check for Python support
14948 #
14949 echo "$as_me:$LINENO: checking for Python support" >&5
14950 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
14951
14952 # Check whether --with-python or --without-python was given.
14953 if test "${with_python+set}" = set; then
14954   withval="$with_python"
14955
14956   PYTHON_INCDIR=
14957   PYTHON_LIBS=
14958   if test "$withval" != "no"; then
14959      if test "$withval" = "yes"; then
14960         for python_root in /usr /usr/local /usr/sfw; do
14961           for ver in python2.2 python2.3 python2.4 python2.5; do
14962              if test -f $python_root/include/${ver}/Python.h; then
14963                 PYTHON_INCDIR=-I$python_root/include/${ver}
14964                 if test -d $python_root/lib64/${ver}/config; then
14965                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
14966                 else
14967                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
14968                 fi
14969                 break
14970              fi
14971           done
14972         done
14973         if test x$PYTHON_INCDIR = x; then
14974           if test -f $prefix/include/Python.h; then
14975              PYTHON_INCDIR=-I$prefix/include
14976              if test -d $prefix/lib64/config; then
14977                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
14978              else
14979                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
14980              fi
14981           else
14982            echo "$as_me:$LINENO: result: no" >&5
14983 echo "${ECHO_T}no" >&6
14984            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
14985 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
14986    { (exit 1); exit 1; }; }
14987           fi
14988         fi
14989      else
14990         if test -f $withval/Python.h; then
14991            PYTHON_INCDIR=-I$withval
14992            PYTHON_LIBS="-L$withval/config -lpython"
14993         elif test -f $withval/include/Python.h; then
14994            PYTHON_INCDIR=-I$withval/include
14995            if test -d $withval/lib64/config; then
14996               PYTHON_LIBS="-L$withval/lib64/config -lpython"
14997            else
14998               PYTHON_LIBS="-L$withval/lib/config -lpython"
14999            fi
15000         elif test -f $withval/include/python/Python.h; then
15001            PYTHON_INCDIR=-I$withval/include/python
15002            if test -d $withval/lib64/python/config; then
15003               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15004            else
15005               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15006            fi
15007         else
15008            echo "$as_me:$LINENO: result: no" >&5
15009 echo "${ECHO_T}no" >&6
15010            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15011 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15012    { (exit 1); exit 1; }; }
15013         fi
15014      fi
15015      cat >>confdefs.h <<\_ACEOF
15016 #define HAVE_PYTHON 1
15017 _ACEOF
15018
15019      echo "$as_me:$LINENO: result: yes" >&5
15020 echo "${ECHO_T}yes" >&6
15021      support_python=yes
15022      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15023 echo "$as_me: checking for more Python libs" >&6;}
15024      saved_LIBS="$LIBS"; LIBS=
15025      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15026 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15027 if test "${ac_cv_search_shm_open+set}" = set; then
15028   echo $ECHO_N "(cached) $ECHO_C" >&6
15029 else
15030   ac_func_search_save_LIBS=$LIBS
15031 ac_cv_search_shm_open=no
15032 cat >conftest.$ac_ext <<_ACEOF
15033 /* confdefs.h.  */
15034 _ACEOF
15035 cat confdefs.h >>conftest.$ac_ext
15036 cat >>conftest.$ac_ext <<_ACEOF
15037 /* end confdefs.h.  */
15038
15039 /* Override any gcc2 internal prototype to avoid an error.  */
15040 #ifdef __cplusplus
15041 extern "C"
15042 #endif
15043 /* We use char because int might match the return type of a gcc2
15044    builtin and then its argument prototype would still apply.  */
15045 char shm_open ();
15046 int
15047 main ()
15048 {
15049 shm_open ();
15050   ;
15051   return 0;
15052 }
15053 _ACEOF
15054 rm -f conftest.$ac_objext conftest$ac_exeext
15055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15056   (eval $ac_link) 2>conftest.er1
15057   ac_status=$?
15058   grep -v '^ *+' conftest.er1 >conftest.err
15059   rm -f conftest.er1
15060   cat conftest.err >&5
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } &&
15063          { ac_try='test -z "$ac_c_werror_flag"
15064                          || test ! -s conftest.err'
15065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066   (eval $ac_try) 2>&5
15067   ac_status=$?
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); }; } &&
15070          { ac_try='test -s conftest$ac_exeext'
15071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15072   (eval $ac_try) 2>&5
15073   ac_status=$?
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); }; }; then
15076   ac_cv_search_shm_open="none required"
15077 else
15078   echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15080
15081 fi
15082 rm -f conftest.err conftest.$ac_objext \
15083       conftest$ac_exeext conftest.$ac_ext
15084 if test "$ac_cv_search_shm_open" = no; then
15085   for ac_lib in rt; do
15086     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15087     cat >conftest.$ac_ext <<_ACEOF
15088 /* confdefs.h.  */
15089 _ACEOF
15090 cat confdefs.h >>conftest.$ac_ext
15091 cat >>conftest.$ac_ext <<_ACEOF
15092 /* end confdefs.h.  */
15093
15094 /* Override any gcc2 internal prototype to avoid an error.  */
15095 #ifdef __cplusplus
15096 extern "C"
15097 #endif
15098 /* We use char because int might match the return type of a gcc2
15099    builtin and then its argument prototype would still apply.  */
15100 char shm_open ();
15101 int
15102 main ()
15103 {
15104 shm_open ();
15105   ;
15106   return 0;
15107 }
15108 _ACEOF
15109 rm -f conftest.$ac_objext conftest$ac_exeext
15110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15111   (eval $ac_link) 2>conftest.er1
15112   ac_status=$?
15113   grep -v '^ *+' conftest.er1 >conftest.err
15114   rm -f conftest.er1
15115   cat conftest.err >&5
15116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15117   (exit $ac_status); } &&
15118          { ac_try='test -z "$ac_c_werror_flag"
15119                          || test ! -s conftest.err'
15120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121   (eval $ac_try) 2>&5
15122   ac_status=$?
15123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124   (exit $ac_status); }; } &&
15125          { ac_try='test -s conftest$ac_exeext'
15126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15127   (eval $ac_try) 2>&5
15128   ac_status=$?
15129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130   (exit $ac_status); }; }; then
15131   ac_cv_search_shm_open="-l$ac_lib"
15132 break
15133 else
15134   echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15136
15137 fi
15138 rm -f conftest.err conftest.$ac_objext \
15139       conftest$ac_exeext conftest.$ac_ext
15140   done
15141 fi
15142 LIBS=$ac_func_search_save_LIBS
15143 fi
15144 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15145 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15146 if test "$ac_cv_search_shm_open" != no; then
15147   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15148
15149 fi
15150
15151
15152 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15153 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15154 if test "${ac_cv_lib_util_openpty+set}" = set; then
15155   echo $ECHO_N "(cached) $ECHO_C" >&6
15156 else
15157   ac_check_lib_save_LIBS=$LIBS
15158 LIBS="-lutil  $LIBS"
15159 cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165
15166 /* Override any gcc2 internal prototype to avoid an error.  */
15167 #ifdef __cplusplus
15168 extern "C"
15169 #endif
15170 /* We use char because int might match the return type of a gcc2
15171    builtin and then its argument prototype would still apply.  */
15172 char openpty ();
15173 int
15174 main ()
15175 {
15176 openpty ();
15177   ;
15178   return 0;
15179 }
15180 _ACEOF
15181 rm -f conftest.$ac_objext conftest$ac_exeext
15182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15183   (eval $ac_link) 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_c_werror_flag"
15191                          || test ! -s conftest.err'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; } &&
15197          { ac_try='test -s conftest$ac_exeext'
15198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15199   (eval $ac_try) 2>&5
15200   ac_status=$?
15201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202   (exit $ac_status); }; }; then
15203   ac_cv_lib_util_openpty=yes
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208 ac_cv_lib_util_openpty=no
15209 fi
15210 rm -f conftest.err conftest.$ac_objext \
15211       conftest$ac_exeext conftest.$ac_ext
15212 LIBS=$ac_check_lib_save_LIBS
15213 fi
15214 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15215 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15216 if test $ac_cv_lib_util_openpty = yes; then
15217   cat >>confdefs.h <<_ACEOF
15218 #define HAVE_LIBUTIL 1
15219 _ACEOF
15220
15221   LIBS="-lutil $LIBS"
15222
15223 fi
15224
15225      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15226      LIBS="$saved_LIBS"
15227   else
15228      echo "$as_me:$LINENO: result: no" >&5
15229 echo "${ECHO_T}no" >&6
15230   fi
15231
15232 else
15233
15234   echo "$as_me:$LINENO: result: no" >&5
15235 echo "${ECHO_T}no" >&6
15236
15237 fi;
15238
15239
15240
15241
15242 #
15243 # Find where sockets are (especially for Solaris)
15244 # Do this before the TCP Wrappers test since tcp wrappers
15245 # uses the socket library and some linkers are stupid.
15246 #
15247 echo "$as_me:$LINENO: checking for socket" >&5
15248 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15249 if test "${ac_cv_func_socket+set}" = set; then
15250   echo $ECHO_N "(cached) $ECHO_C" >&6
15251 else
15252   cat >conftest.$ac_ext <<_ACEOF
15253 /* confdefs.h.  */
15254 _ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h.  */
15258 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15259    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15260 #define socket innocuous_socket
15261
15262 /* System header to define __stub macros and hopefully few prototypes,
15263     which can conflict with char socket (); below.
15264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15265     <limits.h> exists even on freestanding compilers.  */
15266
15267 #ifdef __STDC__
15268 # include <limits.h>
15269 #else
15270 # include <assert.h>
15271 #endif
15272
15273 #undef socket
15274
15275 /* Override any gcc2 internal prototype to avoid an error.  */
15276 #ifdef __cplusplus
15277 extern "C"
15278 {
15279 #endif
15280 /* We use char because int might match the return type of a gcc2
15281    builtin and then its argument prototype would still apply.  */
15282 char socket ();
15283 /* The GNU C library defines this for functions which it implements
15284     to always fail with ENOSYS.  Some functions are actually named
15285     something starting with __ and the normal name is an alias.  */
15286 #if defined (__stub_socket) || defined (__stub___socket)
15287 choke me
15288 #else
15289 char (*f) () = socket;
15290 #endif
15291 #ifdef __cplusplus
15292 }
15293 #endif
15294
15295 int
15296 main ()
15297 {
15298 return f != socket;
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_func_socket=yes
15326 else
15327   echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15329
15330 ac_cv_func_socket=no
15331 fi
15332 rm -f conftest.err conftest.$ac_objext \
15333       conftest$ac_exeext conftest.$ac_ext
15334 fi
15335 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15336 echo "${ECHO_T}$ac_cv_func_socket" >&6
15337 if test $ac_cv_func_socket = yes; then
15338   echo "$as_me:$LINENO: result: using libc's socket" >&5
15339 echo "${ECHO_T}using libc's socket" >&6
15340 else
15341
15342 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15343 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15344 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15345   echo $ECHO_N "(cached) $ECHO_C" >&6
15346 else
15347   ac_check_lib_save_LIBS=$LIBS
15348 LIBS="-lxnet  $LIBS"
15349 cat >conftest.$ac_ext <<_ACEOF
15350 /* confdefs.h.  */
15351 _ACEOF
15352 cat confdefs.h >>conftest.$ac_ext
15353 cat >>conftest.$ac_ext <<_ACEOF
15354 /* end confdefs.h.  */
15355
15356 /* Override any gcc2 internal prototype to avoid an error.  */
15357 #ifdef __cplusplus
15358 extern "C"
15359 #endif
15360 /* We use char because int might match the return type of a gcc2
15361    builtin and then its argument prototype would still apply.  */
15362 char socket ();
15363 int
15364 main ()
15365 {
15366 socket ();
15367   ;
15368   return 0;
15369 }
15370 _ACEOF
15371 rm -f conftest.$ac_objext conftest$ac_exeext
15372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15373   (eval $ac_link) 2>conftest.er1
15374   ac_status=$?
15375   grep -v '^ *+' conftest.er1 >conftest.err
15376   rm -f conftest.er1
15377   cat conftest.err >&5
15378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379   (exit $ac_status); } &&
15380          { ac_try='test -z "$ac_c_werror_flag"
15381                          || test ! -s conftest.err'
15382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383   (eval $ac_try) 2>&5
15384   ac_status=$?
15385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386   (exit $ac_status); }; } &&
15387          { ac_try='test -s conftest$ac_exeext'
15388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15389   (eval $ac_try) 2>&5
15390   ac_status=$?
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); }; }; then
15393   ac_cv_lib_xnet_socket=yes
15394 else
15395   echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 ac_cv_lib_xnet_socket=no
15399 fi
15400 rm -f conftest.err conftest.$ac_objext \
15401       conftest$ac_exeext conftest.$ac_ext
15402 LIBS=$ac_check_lib_save_LIBS
15403 fi
15404 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15405 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15406 if test $ac_cv_lib_xnet_socket = yes; then
15407   cat >>confdefs.h <<_ACEOF
15408 #define HAVE_LIBXNET 1
15409 _ACEOF
15410
15411   LIBS="-lxnet $LIBS"
15412
15413 fi
15414
15415
15416 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15417 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15418 if test "${ac_cv_lib_socket_socket+set}" = set; then
15419   echo $ECHO_N "(cached) $ECHO_C" >&6
15420 else
15421   ac_check_lib_save_LIBS=$LIBS
15422 LIBS="-lsocket  $LIBS"
15423 cat >conftest.$ac_ext <<_ACEOF
15424 /* confdefs.h.  */
15425 _ACEOF
15426 cat confdefs.h >>conftest.$ac_ext
15427 cat >>conftest.$ac_ext <<_ACEOF
15428 /* end confdefs.h.  */
15429
15430 /* Override any gcc2 internal prototype to avoid an error.  */
15431 #ifdef __cplusplus
15432 extern "C"
15433 #endif
15434 /* We use char because int might match the return type of a gcc2
15435    builtin and then its argument prototype would still apply.  */
15436 char socket ();
15437 int
15438 main ()
15439 {
15440 socket ();
15441   ;
15442   return 0;
15443 }
15444 _ACEOF
15445 rm -f conftest.$ac_objext conftest$ac_exeext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15447   (eval $ac_link) 2>conftest.er1
15448   ac_status=$?
15449   grep -v '^ *+' conftest.er1 >conftest.err
15450   rm -f conftest.er1
15451   cat conftest.err >&5
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } &&
15454          { ac_try='test -z "$ac_c_werror_flag"
15455                          || test ! -s conftest.err'
15456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15457   (eval $ac_try) 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; } &&
15461          { ac_try='test -s conftest$ac_exeext'
15462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15463   (eval $ac_try) 2>&5
15464   ac_status=$?
15465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466   (exit $ac_status); }; }; then
15467   ac_cv_lib_socket_socket=yes
15468 else
15469   echo "$as_me: failed program was:" >&5
15470 sed 's/^/| /' conftest.$ac_ext >&5
15471
15472 ac_cv_lib_socket_socket=no
15473 fi
15474 rm -f conftest.err conftest.$ac_objext \
15475       conftest$ac_exeext conftest.$ac_ext
15476 LIBS=$ac_check_lib_save_LIBS
15477 fi
15478 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15479 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15480 if test $ac_cv_lib_socket_socket = yes; then
15481   cat >>confdefs.h <<_ACEOF
15482 #define HAVE_LIBSOCKET 1
15483 _ACEOF
15484
15485   LIBS="-lsocket $LIBS"
15486
15487 fi
15488
15489
15490 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15491 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15492 if test "${ac_cv_lib_inet_socket+set}" = set; then
15493   echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495   ac_check_lib_save_LIBS=$LIBS
15496 LIBS="-linet  $LIBS"
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503
15504 /* Override any gcc2 internal prototype to avoid an error.  */
15505 #ifdef __cplusplus
15506 extern "C"
15507 #endif
15508 /* We use char because int might match the return type of a gcc2
15509    builtin and then its argument prototype would still apply.  */
15510 char socket ();
15511 int
15512 main ()
15513 {
15514 socket ();
15515   ;
15516   return 0;
15517 }
15518 _ACEOF
15519 rm -f conftest.$ac_objext conftest$ac_exeext
15520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15521   (eval $ac_link) 2>conftest.er1
15522   ac_status=$?
15523   grep -v '^ *+' conftest.er1 >conftest.err
15524   rm -f conftest.er1
15525   cat conftest.err >&5
15526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527   (exit $ac_status); } &&
15528          { ac_try='test -z "$ac_c_werror_flag"
15529                          || test ! -s conftest.err'
15530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531   (eval $ac_try) 2>&5
15532   ac_status=$?
15533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534   (exit $ac_status); }; } &&
15535          { ac_try='test -s conftest$ac_exeext'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; }; then
15541   ac_cv_lib_inet_socket=yes
15542 else
15543   echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15545
15546 ac_cv_lib_inet_socket=no
15547 fi
15548 rm -f conftest.err conftest.$ac_objext \
15549       conftest$ac_exeext conftest.$ac_ext
15550 LIBS=$ac_check_lib_save_LIBS
15551 fi
15552 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15553 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15554 if test $ac_cv_lib_inet_socket = yes; then
15555   cat >>confdefs.h <<_ACEOF
15556 #define HAVE_LIBINET 1
15557 _ACEOF
15558
15559   LIBS="-linet $LIBS"
15560
15561 fi
15562
15563 fi
15564
15565
15566
15567 # -----------------------------------------------------------
15568 # Check whether user wants TCP wrappers support (default off)
15569 # -----------------------------------------------------------
15570 TCPW_MSG="no"
15571 WRAPLIBS=""
15572
15573 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15574 if test "${with_tcp_wrappers+set}" = set; then
15575   withval="$with_tcp_wrappers"
15576
15577     if test "x$withval" != "xno" ; then
15578        saved_LIBS="$LIBS"
15579        LIBS="$saved_LIBS -lwrap"
15580        echo "$as_me:$LINENO: checking for libwrap" >&5
15581 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15582        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15583 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15584 if test "${ac_cv_search_nanosleep+set}" = set; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   ac_func_search_save_LIBS=$LIBS
15588 ac_cv_search_nanosleep=no
15589 cat >conftest.$ac_ext <<_ACEOF
15590 /* confdefs.h.  */
15591 _ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h.  */
15595
15596 /* Override any gcc2 internal prototype to avoid an error.  */
15597 #ifdef __cplusplus
15598 extern "C"
15599 #endif
15600 /* We use char because int might match the return type of a gcc2
15601    builtin and then its argument prototype would still apply.  */
15602 char nanosleep ();
15603 int
15604 main ()
15605 {
15606 nanosleep ();
15607   ;
15608   return 0;
15609 }
15610 _ACEOF
15611 rm -f conftest.$ac_objext conftest$ac_exeext
15612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15613   (eval $ac_link) 2>conftest.er1
15614   ac_status=$?
15615   grep -v '^ *+' conftest.er1 >conftest.err
15616   rm -f conftest.er1
15617   cat conftest.err >&5
15618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619   (exit $ac_status); } &&
15620          { ac_try='test -z "$ac_c_werror_flag"
15621                          || test ! -s conftest.err'
15622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15623   (eval $ac_try) 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest$ac_exeext'
15628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629   (eval $ac_try) 2>&5
15630   ac_status=$?
15631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632   (exit $ac_status); }; }; then
15633   ac_cv_search_nanosleep="none required"
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638 fi
15639 rm -f conftest.err conftest.$ac_objext \
15640       conftest$ac_exeext conftest.$ac_ext
15641 if test "$ac_cv_search_nanosleep" = no; then
15642   for ac_lib in rt; do
15643     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15644     cat >conftest.$ac_ext <<_ACEOF
15645 /* confdefs.h.  */
15646 _ACEOF
15647 cat confdefs.h >>conftest.$ac_ext
15648 cat >>conftest.$ac_ext <<_ACEOF
15649 /* end confdefs.h.  */
15650
15651 /* Override any gcc2 internal prototype to avoid an error.  */
15652 #ifdef __cplusplus
15653 extern "C"
15654 #endif
15655 /* We use char because int might match the return type of a gcc2
15656    builtin and then its argument prototype would still apply.  */
15657 char nanosleep ();
15658 int
15659 main ()
15660 {
15661 nanosleep ();
15662   ;
15663   return 0;
15664 }
15665 _ACEOF
15666 rm -f conftest.$ac_objext conftest$ac_exeext
15667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15668   (eval $ac_link) 2>conftest.er1
15669   ac_status=$?
15670   grep -v '^ *+' conftest.er1 >conftest.err
15671   rm -f conftest.er1
15672   cat conftest.err >&5
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); } &&
15675          { ac_try='test -z "$ac_c_werror_flag"
15676                          || test ! -s conftest.err'
15677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15678   (eval $ac_try) 2>&5
15679   ac_status=$?
15680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15681   (exit $ac_status); }; } &&
15682          { ac_try='test -s conftest$ac_exeext'
15683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15684   (eval $ac_try) 2>&5
15685   ac_status=$?
15686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687   (exit $ac_status); }; }; then
15688   ac_cv_search_nanosleep="-l$ac_lib"
15689 break
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694 fi
15695 rm -f conftest.err conftest.$ac_objext \
15696       conftest$ac_exeext conftest.$ac_ext
15697   done
15698 fi
15699 LIBS=$ac_func_search_save_LIBS
15700 fi
15701 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15702 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15703 if test "$ac_cv_search_nanosleep" != no; then
15704   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15705
15706 fi
15707
15708        cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h.  */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h.  */
15714  #include <sys/types.h>
15715             #include <tcpd.h>
15716              int deny_severity = 0;
15717              int allow_severity = 0;
15718              struct request_info *req;
15719 int
15720 main ()
15721 {
15722  hosts_access(req);
15723   ;
15724   return 0;
15725 }
15726 _ACEOF
15727 rm -f conftest.$ac_objext conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729   (eval $ac_link) 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } &&
15736          { ac_try='test -z "$ac_c_werror_flag"
15737                          || test ! -s conftest.err'
15738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15739   (eval $ac_try) 2>&5
15740   ac_status=$?
15741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15742   (exit $ac_status); }; } &&
15743          { ac_try='test -s conftest$ac_exeext'
15744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15745   (eval $ac_try) 2>&5
15746   ac_status=$?
15747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748   (exit $ac_status); }; }; then
15749
15750             echo "$as_me:$LINENO: result: yes" >&5
15751 echo "${ECHO_T}yes" >&6
15752             cat >>confdefs.h <<\_ACEOF
15753 #define HAVE_LIBWRAP 1
15754 _ACEOF
15755
15756             TCPW_MSG="yes"
15757             LIBS="$saved_LIBS"
15758             WRAPLIBS="-lwrap"
15759
15760 else
15761   echo "$as_me: failed program was:" >&5
15762 sed 's/^/| /' conftest.$ac_ext >&5
15763
15764
15765             LIBS="$saved_LIBS -lwrap -lnsl"
15766             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15767             cat >conftest.$ac_ext <<_ACEOF
15768 /* confdefs.h.  */
15769 _ACEOF
15770 cat confdefs.h >>conftest.$ac_ext
15771 cat >>conftest.$ac_ext <<_ACEOF
15772 /* end confdefs.h.  */
15773  #include <sys/types.h>
15774                  #include <tcpd.h>
15775                  int deny_severity = 0;
15776                  int allow_severity = 0;
15777                  struct request_info *req;
15778 int
15779 main ()
15780 {
15781  hosts_access(req);
15782   ;
15783   return 0;
15784 }
15785 _ACEOF
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15788   (eval $ac_link) 2>conftest.er1
15789   ac_status=$?
15790   grep -v '^ *+' conftest.er1 >conftest.err
15791   rm -f conftest.er1
15792   cat conftest.err >&5
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); } &&
15795          { ac_try='test -z "$ac_c_werror_flag"
15796                          || test ! -s conftest.err'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; } &&
15802          { ac_try='test -s conftest$ac_exeext'
15803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804   (eval $ac_try) 2>&5
15805   ac_status=$?
15806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807   (exit $ac_status); }; }; then
15808
15809                  echo "$as_me:$LINENO: result: yes" >&5
15810 echo "${ECHO_T}yes" >&6
15811                  cat >>confdefs.h <<\_ACEOF
15812 #define HAVE_LIBWRAP 1
15813 _ACEOF
15814
15815                  TCPW_MSG="yes"
15816                  LIBS="$saved_LIBS"
15817                  WRAPLIBS="-lwrap"
15818
15819 else
15820   echo "$as_me: failed program was:" >&5
15821 sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
15824 echo "$as_me: error: *** libwrap missing" >&2;}
15825    { (exit 1); exit 1; }; }
15826
15827 fi
15828 rm -f conftest.err conftest.$ac_objext \
15829       conftest$ac_exeext conftest.$ac_ext
15830
15831 fi
15832 rm -f conftest.err conftest.$ac_objext \
15833       conftest$ac_exeext conftest.$ac_ext
15834     fi
15835
15836
15837 fi;
15838
15839 # -----------------------------------------------------------
15840 # Check whether OpenSSL is available
15841 # -----------------------------------------------------------
15842 echo "$as_me:$LINENO: checking for OpenSSL" >&5
15843 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
15844
15845 # Check whether --with-openssl or --without-openssl was given.
15846 if test "${with_openssl+set}" = set; then
15847   withval="$with_openssl"
15848   with_openssl_directory=${withval}
15849 fi;
15850
15851 if test "x$with_openssl_directory" != "x"; then
15852         OPENSSL_LIBS="-lssl -lcrypto"
15853         OPENSSL_INC=""
15854
15855         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
15856                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
15857                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
15858         fi
15859
15860         saved_LIBS="${LIBS}"
15861         saved_CFLAGS="${CFLAGS}"
15862         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
15863         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
15864
15865         cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871  #include <openssl/ssl.h>
15872 int
15873 main ()
15874 {
15875  CRYPTO_set_id_callback(NULL);
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882   (eval $ac_link) 2>conftest.er1
15883   ac_status=$?
15884   grep -v '^ *+' conftest.er1 >conftest.err
15885   rm -f conftest.er1
15886   cat conftest.err >&5
15887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888   (exit $ac_status); } &&
15889          { ac_try='test -z "$ac_c_werror_flag"
15890                          || test ! -s conftest.err'
15891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892   (eval $ac_try) 2>&5
15893   ac_status=$?
15894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895   (exit $ac_status); }; } &&
15896          { ac_try='test -s conftest$ac_exeext'
15897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898   (eval $ac_try) 2>&5
15899   ac_status=$?
15900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); }; }; then
15902
15903                         support_tls="yes"
15904                         support_crypto="yes"
15905
15906 else
15907   echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910  support_tls="no"
15911
15912 fi
15913 rm -f conftest.err conftest.$ac_objext \
15914       conftest$ac_exeext conftest.$ac_ext
15915
15916         cat >conftest.$ac_ext <<_ACEOF
15917 /* confdefs.h.  */
15918 _ACEOF
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h.  */
15922  #include <openssl/evp.h>
15923 int
15924 main ()
15925 {
15926  EVP_sha512();
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15933   (eval $ac_link) 2>conftest.er1
15934   ac_status=$?
15935   grep -v '^ *+' conftest.er1 >conftest.err
15936   rm -f conftest.er1
15937   cat conftest.err >&5
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); } &&
15940          { ac_try='test -z "$ac_c_werror_flag"
15941                          || test ! -s conftest.err'
15942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943   (eval $ac_try) 2>&5
15944   ac_status=$?
15945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946   (exit $ac_status); }; } &&
15947          { ac_try='test -s conftest$ac_exeext'
15948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949   (eval $ac_try) 2>&5
15950   ac_status=$?
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); }; }; then
15953    ac_cv_openssl_sha2="yes"
15954 else
15955   echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15957
15958  ac_cv_openssl_sha2="no"
15959
15960 fi
15961 rm -f conftest.err conftest.$ac_objext \
15962       conftest$ac_exeext conftest.$ac_ext
15963
15964         LIBS="${saved_LIBS}"
15965         CFLAGS="${saved_CFLAGS}"
15966
15967         if test "$support_tls" = "yes"; then
15968
15969 cat >>confdefs.h <<\_ACEOF
15970 #define HAVE_OPENSSL 1
15971 _ACEOF
15972
15973
15974 cat >>confdefs.h <<\_ACEOF
15975 #define HAVE_TLS 1
15976 _ACEOF
15977
15978
15979 cat >>confdefs.h <<\_ACEOF
15980 #define HAVE_CRYPTO 1
15981 _ACEOF
15982
15983         fi
15984
15985         if test "$ac_cv_openssl_sha2" = "yes"; then
15986
15987 cat >>confdefs.h <<\_ACEOF
15988 #define HAVE_SHA2 1
15989 _ACEOF
15990
15991         fi
15992 else
15993         support_tls="no"
15994         support_crypto="no"
15995         OPENSSL_LIBS=""
15996         OPENSSL_INC=""
15997 fi
15998
15999 echo "$as_me:$LINENO: result: $support_tls" >&5
16000 echo "${ECHO_T}$support_tls" >&6
16001
16002
16003
16004
16005 # -----------------------------------------------------------
16006 # Python and OpenSSL are using dlopen
16007 # -----------------------------------------------------------
16008
16009 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16010    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16011 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16012 if test "${ac_cv_search_dlopen+set}" = set; then
16013   echo $ECHO_N "(cached) $ECHO_C" >&6
16014 else
16015   ac_func_search_save_LIBS=$LIBS
16016 ac_cv_search_dlopen=no
16017 cat >conftest.$ac_ext <<_ACEOF
16018 /* confdefs.h.  */
16019 _ACEOF
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h.  */
16023
16024 /* Override any gcc2 internal prototype to avoid an error.  */
16025 #ifdef __cplusplus
16026 extern "C"
16027 #endif
16028 /* We use char because int might match the return type of a gcc2
16029    builtin and then its argument prototype would still apply.  */
16030 char dlopen ();
16031 int
16032 main ()
16033 {
16034 dlopen ();
16035   ;
16036   return 0;
16037 }
16038 _ACEOF
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041   (eval $ac_link) 2>conftest.er1
16042   ac_status=$?
16043   grep -v '^ *+' conftest.er1 >conftest.err
16044   rm -f conftest.er1
16045   cat conftest.err >&5
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); } &&
16048          { ac_try='test -z "$ac_c_werror_flag"
16049                          || test ! -s conftest.err'
16050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051   (eval $ac_try) 2>&5
16052   ac_status=$?
16053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054   (exit $ac_status); }; } &&
16055          { ac_try='test -s conftest$ac_exeext'
16056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057   (eval $ac_try) 2>&5
16058   ac_status=$?
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); }; }; then
16061   ac_cv_search_dlopen="none required"
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066 fi
16067 rm -f conftest.err conftest.$ac_objext \
16068       conftest$ac_exeext conftest.$ac_ext
16069 if test "$ac_cv_search_dlopen" = no; then
16070   for ac_lib in dl; do
16071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16072     cat >conftest.$ac_ext <<_ACEOF
16073 /* confdefs.h.  */
16074 _ACEOF
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h.  */
16078
16079 /* Override any gcc2 internal prototype to avoid an error.  */
16080 #ifdef __cplusplus
16081 extern "C"
16082 #endif
16083 /* We use char because int might match the return type of a gcc2
16084    builtin and then its argument prototype would still apply.  */
16085 char dlopen ();
16086 int
16087 main ()
16088 {
16089 dlopen ();
16090   ;
16091   return 0;
16092 }
16093 _ACEOF
16094 rm -f conftest.$ac_objext conftest$ac_exeext
16095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16096   (eval $ac_link) 2>conftest.er1
16097   ac_status=$?
16098   grep -v '^ *+' conftest.er1 >conftest.err
16099   rm -f conftest.er1
16100   cat conftest.err >&5
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); } &&
16103          { ac_try='test -z "$ac_c_werror_flag"
16104                          || test ! -s conftest.err'
16105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16106   (eval $ac_try) 2>&5
16107   ac_status=$?
16108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109   (exit $ac_status); }; } &&
16110          { ac_try='test -s conftest$ac_exeext'
16111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112   (eval $ac_try) 2>&5
16113   ac_status=$?
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); }; }; then
16116   ac_cv_search_dlopen="-l$ac_lib"
16117 break
16118 else
16119   echo "$as_me: failed program was:" >&5
16120 sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 fi
16123 rm -f conftest.err conftest.$ac_objext \
16124       conftest$ac_exeext conftest.$ac_ext
16125   done
16126 fi
16127 LIBS=$ac_func_search_save_LIBS
16128 fi
16129 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16130 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16131 if test "$ac_cv_search_dlopen" != no; then
16132   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16133
16134 fi
16135
16136 fi
16137
16138 # ------------------------------------------
16139 # Where to place working dir
16140 # ------------------------------------------
16141 working_dir=`eval echo ${prefix}/var/bacula/working`
16142
16143 # Check whether --with-working-dir or --without-working-dir was given.
16144 if test "${with_working_dir+set}" = set; then
16145   withval="$with_working_dir"
16146
16147        if test "x$withval" != "xno" ; then
16148               working_dir=$withval
16149        fi
16150
16151
16152 fi;
16153
16154
16155
16156
16157 # ------------------------------------------
16158 # Where to place scriptdir (script files)
16159 # ------------------------------------------
16160 scriptdir=`eval echo ${sysconfdir}`
16161
16162 # Check whether --with-scriptdir or --without-scriptdir was given.
16163 if test "${with_scriptdir+set}" = set; then
16164   withval="$with_scriptdir"
16165
16166        if test "x$withval" != "xno" ; then
16167               scriptdir=$withval
16168        fi
16169
16170
16171 fi;
16172
16173
16174
16175
16176 # ------------------------------------------
16177 # Where to send dump email
16178 # ------------------------------------------
16179 dump_email=root@localhost
16180
16181 # Check whether --with-dump-email or --without-dump-email was given.
16182 if test "${with_dump_email+set}" = set; then
16183   withval="$with_dump_email"
16184
16185        if test "x$withval" != "xno" ; then
16186               dump_email=$withval
16187        fi
16188
16189
16190 fi;
16191
16192
16193
16194 # ------------------------------------------
16195 # Where to send job email
16196 # ------------------------------------------
16197 job_email=root@localhost
16198
16199 # Check whether --with-job-email or --without-job-email was given.
16200 if test "${with_job_email+set}" = set; then
16201   withval="$with_job_email"
16202
16203        if test "x$withval" != "xno" ; then
16204               job_email=$withval
16205        fi
16206
16207
16208 fi;
16209
16210
16211
16212 # ------------------------------------------
16213 # Where to find smtp host
16214 # ------------------------------------------
16215 smtp_host=localhost
16216
16217 # Check whether --with-smtp_host or --without-smtp_host was given.
16218 if test "${with_smtp_host+set}" = set; then
16219   withval="$with_smtp_host"
16220
16221        if test "x$withval" != "xno" ; then
16222               smtp_host=$withval
16223        fi
16224
16225
16226 fi;
16227
16228
16229
16230
16231 # ------------------------------------
16232 # Where to place pid files
16233 # ------------------------------------
16234 piddir=/var/run
16235
16236 # Check whether --with-pid-dir or --without-pid-dir was given.
16237 if test "${with_pid_dir+set}" = set; then
16238   withval="$with_pid_dir"
16239
16240         if test "x$withval" != "xno" ; then
16241             piddir=$withval
16242         fi
16243
16244
16245 fi;
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define _PATH_BACULA_PIDDIR "$piddir"
16249 _ACEOF
16250
16251
16252
16253
16254 # ------------------------------------
16255 # Where to place subsys "lock file"
16256 # ------------------------------------
16257 subsysdir=/var/run/subsys
16258
16259 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16260 if test "${with_subsys_dir+set}" = set; then
16261   withval="$with_subsys_dir"
16262
16263         if test "x$withval" != "xno" ; then
16264             subsysdir=$withval
16265         fi
16266
16267
16268 fi;
16269
16270
16271
16272
16273
16274 # ------------------------------------
16275 # Where to start assigning ports
16276 # ------------------------------------
16277 baseport=9101
16278
16279 # Check whether --with-baseport or --without-baseport was given.
16280 if test "${with_baseport+set}" = set; then
16281   withval="$with_baseport"
16282
16283         if test "x$withval" != "xno" ; then
16284              baseport=$withval
16285         fi
16286
16287
16288 fi;
16289
16290
16291 dir_port=`expr $baseport`
16292 fd_port=`expr $baseport + 1`
16293 sd_port=`expr $fd_port + 1`
16294
16295
16296
16297
16298
16299
16300 # ------------------------------------------
16301 # Generate passwords
16302 # ------------------------------------------
16303 dir_password=
16304
16305 # Check whether --with-dir-password or --without-dir-password was given.
16306 if test "${with_dir_password+set}" = set; then
16307   withval="$with_dir_password"
16308
16309        if test "x$withval" != "xno" ; then
16310            dir_password=$withval
16311        fi
16312
16313
16314 fi;
16315
16316 if test "x$dir_password" = "x" ; then
16317    if test "x$OPENSSL" = "xnone" ; then
16318       key=`autoconf/randpass 33`
16319    else
16320       key=`openssl rand -base64 33`
16321    fi
16322    dir_password=$key
16323 fi
16324
16325 fd_password=
16326
16327 # Check whether --with-fd-password or --without-fd-password was given.
16328 if test "${with_fd_password+set}" = set; then
16329   withval="$with_fd_password"
16330
16331        if test "x$withval" != "xno" ; then
16332            fd_password=$withval
16333        fi
16334
16335
16336 fi;
16337
16338 if test "x$fd_password" = "x" ; then
16339    if test "x$OPENSSL" = "xnone" ; then
16340       key=`autoconf/randpass 37`
16341    else
16342       key=`openssl rand -base64 33`
16343    fi
16344    fd_password=$key
16345 fi
16346
16347 sd_password=
16348
16349 # Check whether --with-sd-password or --without-sd-password was given.
16350 if test "${with_sd_password+set}" = set; then
16351   withval="$with_sd_password"
16352
16353        if test "x$withval" != "xno" ; then
16354            sd_password=$withval
16355        fi
16356
16357
16358 fi;
16359
16360 if test "x$sd_password" = "x" ; then
16361    if test "x$OPENSSL" = "xnone" ; then
16362       key=`autoconf/randpass 41`
16363    else
16364       key=`openssl rand -base64 33`
16365    fi
16366    sd_password=$key
16367 fi
16368
16369 mon_dir_password=
16370
16371 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16372 if test "${with_mon_dir_password+set}" = set; then
16373   withval="$with_mon_dir_password"
16374
16375        if test "x$withval" != "xno" ; then
16376            mon_dir_password=$withval
16377        fi
16378
16379
16380 fi;
16381
16382 if test "x$mon_dir_password" = "x" ; then
16383    if test "x$OPENSSL" = "xnone" ; then
16384       key=`autoconf/randpass 33`
16385    else
16386       key=`openssl rand -base64 33`
16387    fi
16388    mon_dir_password=$key
16389 fi
16390
16391 mon_fd_password=
16392
16393 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16394 if test "${with_mon_fd_password+set}" = set; then
16395   withval="$with_mon_fd_password"
16396
16397        if test "x$withval" != "xno" ; then
16398            mon_fd_password=$withval
16399        fi
16400
16401
16402 fi;
16403
16404 if test "x$mon_fd_password" = "x" ; then
16405    if test "x$OPENSSL" = "xnone" ; then
16406       key=`autoconf/randpass 37`
16407    else
16408       key=`openssl rand -base64 33`
16409    fi
16410    mon_fd_password=$key
16411 fi
16412
16413 mon_sd_password=
16414
16415 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16416 if test "${with_mon_sd_password+set}" = set; then
16417   withval="$with_mon_sd_password"
16418
16419        if test "x$withval" != "xno" ; then
16420            mon_sd_password=$withval
16421        fi
16422
16423
16424 fi;
16425
16426 if test "x$mon_sd_password" = "x" ; then
16427    if test "x$OPENSSL" = "xnone" ; then
16428       key=`autoconf/randpass 41`
16429    else
16430       key=`openssl rand -base64 33`
16431    fi
16432    mon_sd_password=$key
16433 fi
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443 #
16444 # Handle users and groups for each daemon
16445 #
16446 dir_user=
16447
16448 # Check whether --with-dir_user or --without-dir_user was given.
16449 if test "${with_dir_user+set}" = set; then
16450   withval="$with_dir_user"
16451
16452         if test "x$withval" != "x" ; then
16453              dir_user=$withval
16454         fi
16455
16456
16457 fi;
16458
16459 dir_group=
16460
16461 # Check whether --with-dir_group or --without-dir_group was given.
16462 if test "${with_dir_group+set}" = set; then
16463   withval="$with_dir_group"
16464
16465         if test "x$withval" != "x" ; then
16466              dir_group=$withval
16467         fi
16468
16469
16470 fi;
16471
16472 sd_user=
16473
16474 # Check whether --with-sd_user or --without-sd_user was given.
16475 if test "${with_sd_user+set}" = set; then
16476   withval="$with_sd_user"
16477
16478         if test "x$withval" != "x" ; then
16479              sd_user=$withval
16480         fi
16481
16482
16483 fi;
16484
16485 sd_group=
16486
16487 # Check whether --with-sd_group or --without-sd_group was given.
16488 if test "${with_sd_group+set}" = set; then
16489   withval="$with_sd_group"
16490
16491         if test "x$withval" != "x" ; then
16492              sd_group=$withval
16493         fi
16494
16495
16496 fi;
16497
16498 fd_user=
16499
16500 # Check whether --with-fd_user or --without-fd_user was given.
16501 if test "${with_fd_user+set}" = set; then
16502   withval="$with_fd_user"
16503
16504         if test "x$withval" != "x" ; then
16505              fd_user=$withval
16506         fi
16507
16508
16509 fi;
16510
16511 fd_group=
16512
16513 # Check whether --with-fd_group or --without-fd_group was given.
16514 if test "${with_fd_group+set}" = set; then
16515   withval="$with_fd_group"
16516
16517         if test "x$withval" != "x" ; then
16518              fd_group=$withval
16519         fi
16520
16521
16522 fi;
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534 #
16535 # allow setting default executable permissions
16536 #
16537 SBINPERM=0754
16538
16539 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16540 if test "${with_sbin_perm+set}" = set; then
16541   withval="$with_sbin_perm"
16542
16543         if test "x$withval" != "x" ; then
16544             SBINPERM=$withval
16545         fi
16546
16547
16548 fi;
16549
16550
16551
16552 # ------------------------------------------------
16553 # Bacula check for various SQL database engines
16554 # ------------------------------------------------
16555
16556 db_found=no
16557 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16558 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16559
16560 # Check whether --with-postgresql or --without-postgresql was given.
16561 if test "${with_postgresql+set}" = set; then
16562   withval="$with_postgresql"
16563
16564   if test "$withval" != "no"; then
16565       if test "$db_found" = "yes"; then
16566           echo "$as_me:$LINENO: result: error" >&5
16567 echo "${ECHO_T}error" >&6
16568           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16569 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16570    { (exit 1); exit 1; }; };
16571       fi
16572       if test "$withval" = "yes"; then
16573           PG_CONFIG=`which pg_config`
16574           if test -n "$PG_CONFIG";then
16575               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16576               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16577               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16578           elif test -f /usr/local/include/libpq-fe.h; then
16579               POSTGRESQL_INCDIR=/usr/local/include
16580               if test -d /usr/local/lib64; then
16581                  POSTGRESQL_LIBDIR=/usr/local/lib64
16582               else
16583                  POSTGRESQL_LIBDIR=/usr/local/lib
16584               fi
16585               POSTGRESQL_BINDIR=/usr/local/bin
16586           elif test -f /usr/include/libpq-fe.h; then
16587               POSTGRESQL_INCDIR=/usr/include
16588               if test -d /usr/lib64; then
16589                  POSTGRESQL_LIBDIR=/usr/lib64
16590               else
16591                  POSTGRESQL_LIBDIR=/usr/lib
16592               fi
16593               POSTGRESQL_BINDIR=/usr/bin
16594           elif test -f /usr/include/pgsql/libpq-fe.h; then
16595               POSTGRESQL_INCDIR=/usr/include/pgsql
16596               if test -d /usr/lib64/pgsql; then
16597                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16598               else
16599                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16600               fi
16601               POSTGRESQL_BINDIR=/usr/bin
16602           elif test -f /usr/include/postgresql/libpq-fe.h; then
16603               POSTGRESQL_INCDIR=/usr/include/postgresql
16604               if test -d /usr/lib64/postgresql; then
16605                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16606               else
16607                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16608               fi
16609               POSTGRESQL_BINDIR=/usr/bin
16610           else
16611               echo "$as_me:$LINENO: result: no" >&5
16612 echo "${ECHO_T}no" >&6
16613               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16614 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16615    { (exit 1); exit 1; }; }
16616           fi
16617       elif test -f $withval/include/libpq-fe.h; then
16618           POSTGRESQL_INCDIR=$withval/include
16619           POSTGRESQL_LIBDIR=$withval/lib
16620           POSTGRESQL_BINDIR=$withval/bin
16621       elif test -f $withval/include/postgresql/libpq-fe.h; then
16622           POSTGRESQL_INCDIR=$withval/include/postgresql
16623      if test -d $withval/lib64; then
16624          POSTGRESQL_LIBDIR=$withval/lib64
16625      else
16626          POSTGRESQL_LIBDIR=$withval/lib
16627      fi
16628           POSTGRESQL_BINDIR=$withval/bin
16629       else
16630           echo "$as_me:$LINENO: result: no" >&5
16631 echo "${ECHO_T}no" >&6
16632           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16633 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16634    { (exit 1); exit 1; }; }
16635       fi
16636       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16637       echo "$as_me:$LINENO: checking for crypt" >&5
16638 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16639 if test "${ac_cv_func_crypt+set}" = set; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16650 #define crypt innocuous_crypt
16651
16652 /* System header to define __stub macros and hopefully few prototypes,
16653     which can conflict with char crypt (); below.
16654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655     <limits.h> exists even on freestanding compilers.  */
16656
16657 #ifdef __STDC__
16658 # include <limits.h>
16659 #else
16660 # include <assert.h>
16661 #endif
16662
16663 #undef crypt
16664
16665 /* Override any gcc2 internal prototype to avoid an error.  */
16666 #ifdef __cplusplus
16667 extern "C"
16668 {
16669 #endif
16670 /* We use char because int might match the return type of a gcc2
16671    builtin and then its argument prototype would still apply.  */
16672 char crypt ();
16673 /* The GNU C library defines this for functions which it implements
16674     to always fail with ENOSYS.  Some functions are actually named
16675     something starting with __ and the normal name is an alias.  */
16676 #if defined (__stub_crypt) || defined (__stub___crypt)
16677 choke me
16678 #else
16679 char (*f) () = crypt;
16680 #endif
16681 #ifdef __cplusplus
16682 }
16683 #endif
16684
16685 int
16686 main ()
16687 {
16688 return f != crypt;
16689   ;
16690   return 0;
16691 }
16692 _ACEOF
16693 rm -f conftest.$ac_objext conftest$ac_exeext
16694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16695   (eval $ac_link) 2>conftest.er1
16696   ac_status=$?
16697   grep -v '^ *+' conftest.er1 >conftest.err
16698   rm -f conftest.er1
16699   cat conftest.err >&5
16700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701   (exit $ac_status); } &&
16702          { ac_try='test -z "$ac_c_werror_flag"
16703                          || test ! -s conftest.err'
16704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16705   (eval $ac_try) 2>&5
16706   ac_status=$?
16707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708   (exit $ac_status); }; } &&
16709          { ac_try='test -s conftest$ac_exeext'
16710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16711   (eval $ac_try) 2>&5
16712   ac_status=$?
16713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714   (exit $ac_status); }; }; then
16715   ac_cv_func_crypt=yes
16716 else
16717   echo "$as_me: failed program was:" >&5
16718 sed 's/^/| /' conftest.$ac_ext >&5
16719
16720 ac_cv_func_crypt=no
16721 fi
16722 rm -f conftest.err conftest.$ac_objext \
16723       conftest$ac_exeext conftest.$ac_ext
16724 fi
16725 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
16726 echo "${ECHO_T}$ac_cv_func_crypt" >&6
16727 if test $ac_cv_func_crypt = yes; then
16728   :
16729 else
16730   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
16731 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
16732 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735   ac_check_lib_save_LIBS=$LIBS
16736 LIBS="-lcrypt  $LIBS"
16737 cat >conftest.$ac_ext <<_ACEOF
16738 /* confdefs.h.  */
16739 _ACEOF
16740 cat confdefs.h >>conftest.$ac_ext
16741 cat >>conftest.$ac_ext <<_ACEOF
16742 /* end confdefs.h.  */
16743
16744 /* Override any gcc2 internal prototype to avoid an error.  */
16745 #ifdef __cplusplus
16746 extern "C"
16747 #endif
16748 /* We use char because int might match the return type of a gcc2
16749    builtin and then its argument prototype would still apply.  */
16750 char crypt ();
16751 int
16752 main ()
16753 {
16754 crypt ();
16755   ;
16756   return 0;
16757 }
16758 _ACEOF
16759 rm -f conftest.$ac_objext conftest$ac_exeext
16760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16761   (eval $ac_link) 2>conftest.er1
16762   ac_status=$?
16763   grep -v '^ *+' conftest.er1 >conftest.err
16764   rm -f conftest.er1
16765   cat conftest.err >&5
16766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767   (exit $ac_status); } &&
16768          { ac_try='test -z "$ac_c_werror_flag"
16769                          || test ! -s conftest.err'
16770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16771   (eval $ac_try) 2>&5
16772   ac_status=$?
16773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16774   (exit $ac_status); }; } &&
16775          { ac_try='test -s conftest$ac_exeext'
16776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16777   (eval $ac_try) 2>&5
16778   ac_status=$?
16779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); }; }; then
16781   ac_cv_lib_crypt_crypt=yes
16782 else
16783   echo "$as_me: failed program was:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16785
16786 ac_cv_lib_crypt_crypt=no
16787 fi
16788 rm -f conftest.err conftest.$ac_objext \
16789       conftest$ac_exeext conftest.$ac_ext
16790 LIBS=$ac_check_lib_save_LIBS
16791 fi
16792 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
16793 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
16794 if test $ac_cv_lib_crypt_crypt = yes; then
16795   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
16796 fi
16797
16798 fi
16799
16800       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
16801       SQL_LFLAGS=$POSTGRESQL_LFLAGS
16802       SQL_BINDIR=$POSTGRESQL_BINDIR
16803       cat >>confdefs.h <<\_ACEOF
16804 #define HAVE_POSTGRESQL 1
16805 _ACEOF
16806
16807       echo "$as_me:$LINENO: result: yes" >&5
16808 echo "${ECHO_T}yes" >&6
16809       db_found=yes
16810       support_postgresql=yes
16811       db_name=PostgreSQL
16812       DB_NAME=postgresql
16813   else
16814       echo "$as_me:$LINENO: result: no" >&5
16815 echo "${ECHO_T}no" >&6
16816   fi
16817
16818 else
16819
16820   echo "$as_me:$LINENO: result: no" >&5
16821 echo "${ECHO_T}no" >&6
16822
16823 fi;
16824
16825
16826
16827
16828
16829
16830
16831 db_found=no
16832 echo "$as_me:$LINENO: checking for MySQL support" >&5
16833 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
16834
16835 # Check whether --with-mysql or --without-mysql was given.
16836 if test "${with_mysql+set}" = set; then
16837   withval="$with_mysql"
16838
16839   if test "$withval" != "no"; then
16840         if test "$withval" = "yes"; then
16841            if test -f /usr/local/mysql/include/mysql/mysql.h; then
16842                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
16843                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
16844                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16845                    else
16846                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16847                    fi
16848                    MYSQL_BINDIR=/usr/local/mysql/bin
16849            elif test -f /usr/include/mysql/mysql.h; then
16850                    MYSQL_INCDIR=/usr/include/mysql
16851                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
16852                            MYSQL_LIBDIR=/usr/lib64/mysql
16853                    else
16854                            MYSQL_LIBDIR=/usr/lib/mysql
16855                    fi
16856                    MYSQL_BINDIR=/usr/bin
16857            elif test -f /usr/include/mysql.h; then
16858                    MYSQL_INCDIR=/usr/include
16859                    if test -f /usr/lib64/libmysqlclient.a; then
16860                            MYSQL_LIBDIR=/usr/lib64
16861                    else
16862                            MYSQL_LIBDIR=/usr/lib
16863                    fi
16864                    MYSQL_BINDIR=/usr/bin
16865            elif test -f /usr/local/include/mysql/mysql.h; then
16866                    MYSQL_INCDIR=/usr/local/include/mysql
16867                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
16868                            MYSQL_LIBDIR=/usr/local/lib64/mysql
16869                    else
16870                            MYSQL_LIBDIR=/usr/local/lib/mysql
16871                    fi
16872                    MYSQL_BINDIR=/usr/local/bin
16873            elif test -f /usr/local/include/mysql.h; then
16874                    MYSQL_INCDIR=/usr/local/include
16875                    if test -f /usr/local/lib64/libmysqlclient.a; then
16876                            MYSQL_LIBDIR=/usr/local/lib64
16877                    else
16878                            MYSQL_LIBDIR=/usr/local/lib
16879                    fi
16880                    MYSQL_BINDIR=/usr/local/bin
16881            else
16882               echo "$as_me:$LINENO: result: no" >&5
16883 echo "${ECHO_T}no" >&6
16884               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16885 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
16886    { (exit 1); exit 1; }; }
16887            fi
16888         else
16889            if test -f $withval/include/mysql/mysql.h; then
16890               MYSQL_INCDIR=$withval/include/mysql
16891               if test -f $withval/lib64/mysql/libmysqlclient.a; then
16892                  MYSQL_LIBDIR=$withval/lib64/mysql
16893               else
16894                  MYSQL_LIBDIR=$withval/lib/mysql
16895                  # Solaris ...
16896                  if test -f $withval/lib/libmysqlclient.so; then
16897                     MYSQL_LIBDIR=$withval/lib
16898                  fi
16899               fi
16900               MYSQL_BINDIR=$withval/bin
16901            elif test -f $withval/include/mysql.h; then
16902               MYSQL_INCDIR=$withval/include
16903               if test -f "$withval/lib64/libmysqlclient.a"; then
16904                  MYSQL_LIBDIR=$withval/lib64
16905               else
16906                  MYSQL_LIBDIR=$withval/lib
16907               fi
16908               MYSQL_BINDIR=$withval/bin
16909            else
16910               echo "$as_me:$LINENO: result: no" >&5
16911 echo "${ECHO_T}no" >&6
16912               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
16913 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
16914    { (exit 1); exit 1; }; }
16915            fi
16916         fi
16917     SQL_INCLUDE=-I$MYSQL_INCDIR
16918     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
16919        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
16920        cat >>confdefs.h <<\_ACEOF
16921 #define HAVE_THREAD_SAFE_MYSQL 1
16922 _ACEOF
16923
16924     else
16925        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
16926     fi
16927     SQL_BINDIR=$MYSQL_BINDIR
16928
16929     cat >>confdefs.h <<\_ACEOF
16930 #define HAVE_MYSQL 1
16931 _ACEOF
16932
16933     echo "$as_me:$LINENO: result: yes" >&5
16934 echo "${ECHO_T}yes" >&6
16935     db_found=yes
16936     support_mysql=yes
16937     db_name=MySQL
16938     DB_NAME=mysql
16939
16940   else
16941         echo "$as_me:$LINENO: result: no" >&5
16942 echo "${ECHO_T}no" >&6
16943   fi
16944
16945
16946 fi;
16947
16948
16949 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
16950 if test "${with_embedded_mysql+set}" = set; then
16951   withval="$with_embedded_mysql"
16952
16953   if test "$withval" != "no"; then
16954         if test "$withval" = "yes"; then
16955                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
16956                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
16957                         if test -d /usr/local/mysql/lib64/mysql; then
16958                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
16959                         else
16960                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
16961                         fi
16962                         MYSQL_BINDIR=/usr/local/mysql/bin
16963                 elif test -f /usr/include/mysql/mysql.h; then
16964                         MYSQL_INCDIR=/usr/include/mysql
16965                         if test -d /usr/lib64/mysql; then
16966                                 MYSQL_LIBDIR=/usr/lib64/mysql
16967                         else
16968                                 MYSQL_LIBDIR=/usr/lib/mysql
16969                         fi
16970                         MYSQL_BINDIR=/usr/bin
16971                 elif test -f /usr/include/mysql.h; then
16972                         MYSQL_INCDIR=/usr/include
16973                         if test -d /usr/lib64; then
16974                                 MYSQL_LIBDIR=/usr/lib64
16975                         else
16976                                 MYSQL_LIBDIR=/usr/lib
16977                         fi
16978                         MYSQL_BINDIR=/usr/bin
16979                 elif test -f /usr/local/include/mysql/mysql.h; then
16980                         MYSQL_INCDIR=/usr/local/include/mysql
16981                         if test -d /usr/local/lib64/mysql; then
16982                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
16983                         else
16984                                 MYSQL_LIBDIR=/usr/local/lib/mysql
16985                         fi
16986                         MYSQL_BINDIR=/usr/local/bin
16987                 elif test -f /usr/local/include/mysql.h; then
16988                         MYSQL_INCDIR=/usr/local/include
16989                         if test -d /usr/local/lib64; then
16990                                 MYSQL_LIBDIR=/usr/local/lib64
16991                         else
16992                                 MYSQL_LIBDIR=/usr/local/lib
16993                         fi
16994                         MYSQL_BINDIR=/usr/local/bin
16995                 else
16996                    echo "$as_me:$LINENO: result: no" >&5
16997 echo "${ECHO_T}no" >&6
16998                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
16999 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17000    { (exit 1); exit 1; }; }
17001                 fi
17002         else
17003                 if test -f $withval/include/mysql/mysql.h; then
17004                         MYSQL_INCDIR=$withval/include/mysql
17005                         if test -d $withval/lib64/mysql; then
17006                                 MYSQL_LIBDIR=$withval/lib64/mysql
17007                         else
17008                                 MYSQL_LIBDIR=$withval/lib/mysql
17009                         fi
17010                         MYSQL_BINDIR=$withval/bin
17011                 elif test -f $withval/include/mysql.h; then
17012                         MYSQL_INCDIR=$withval/include
17013                         if test -d $withval/lib64; then
17014                                 MYSQL_LIBDIR=$withval/lib64
17015                         else
17016                                 MYSQL_LIBDIR=$withval/lib
17017                         fi
17018                         MYSQL_BINDIR=$withval/bin
17019                 else
17020                    echo "$as_me:$LINENO: result: no" >&5
17021 echo "${ECHO_T}no" >&6
17022                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17023 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17024    { (exit 1); exit 1; }; }
17025                 fi
17026         fi
17027     SQL_INCLUDE=-I$MYSQL_INCDIR
17028     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17029     SQL_BINDIR=$MYSQL_BINDIR
17030
17031     cat >>confdefs.h <<\_ACEOF
17032 #define HAVE_MYSQL 1
17033 _ACEOF
17034
17035     cat >>confdefs.h <<\_ACEOF
17036 #define HAVE_EMBEDDED_MYSQL 1
17037 _ACEOF
17038
17039     echo "$as_me:$LINENO: result: yes" >&5
17040 echo "${ECHO_T}yes" >&6
17041     db_found=yes
17042     support_mysql=yes
17043     db_name=MySQL
17044     DB_NAME=mysql
17045
17046   else
17047         echo "$as_me:$LINENO: result: no" >&5
17048 echo "${ECHO_T}no" >&6
17049   fi
17050
17051
17052 fi;
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062 db_found=no
17063 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17064 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17065
17066 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17067 if test "${with_sqlite3+set}" = set; then
17068   withval="$with_sqlite3"
17069
17070   if test "$withval" != "no"; then
17071      if test "$withval" = "yes"; then
17072         if test -f /usr/local/include/sqlite3.h; then
17073            SQLITE_INCDIR=/usr/local/include
17074            if test -d /usr/local/lib64; then
17075               SQLITE_LIBDIR=/usr/local/lib64
17076            else
17077               SQLITE_LIBDIR=/usr/local/lib
17078            fi
17079            SQLITE_BINDIR=/usr/local/bin
17080         elif test -f /usr/include/sqlite3.h; then
17081            SQLITE_INCDIR=/usr/include
17082            if test -d /usr/lib64; then
17083               SQLITE_LIBDIR=/usr/lib64
17084            else
17085               SQLITE_LIBDIR=/usr/lib
17086            fi
17087            SQLITE_BINDIR=/usr/bin
17088         elif test -f $prefix/include/sqlite3.h; then
17089            SQLITE_INCDIR=$prefix/include
17090            if test -d $prefix/lib64; then
17091               SQLITE_LIBDIR=$prefix/lib64
17092            else
17093               SQLITE_LIBDIR=$prefix/lib
17094            fi
17095            SQLITE_BINDIR=$prefix/bin
17096         else
17097            echo "$as_me:$LINENO: result: no" >&5
17098 echo "${ECHO_T}no" >&6
17099            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17100 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17101    { (exit 1); exit 1; }; }
17102         fi
17103      else
17104         if test -f $withval/sqlite3.h; then
17105            SQLITE_INCDIR=$withval
17106            SQLITE_LIBDIR=$withval
17107            SQLITE_BINDIR=$withval
17108         elif test -f $withval/include/sqlite3.h; then
17109            SQLITE_INCDIR=$withval/include
17110            if test -d $withval/lib64; then
17111               SQLITE_LIBDIR=$withval/lib64
17112            else
17113               SQLITE_LIBDIR=$withval/lib
17114            fi
17115            SQLITE_BINDIR=$withval/bin
17116         else
17117            echo "$as_me:$LINENO: result: no" >&5
17118 echo "${ECHO_T}no" >&6
17119            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17120 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17121    { (exit 1); exit 1; }; }
17122         fi
17123      fi
17124      SQL_INCLUDE=-I$SQLITE_INCDIR
17125      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17126      SQL_BINDIR=$SQLITE_BINDIR
17127
17128      cat >>confdefs.h <<\_ACEOF
17129 #define HAVE_SQLITE3 1
17130 _ACEOF
17131
17132      echo "$as_me:$LINENO: result: yes" >&5
17133 echo "${ECHO_T}yes" >&6
17134      db_found=yes
17135      support_sqlite3=yes
17136      db_name=SQLite3
17137      DB_NAME=sqlite3
17138
17139   else
17140      echo "$as_me:$LINENO: result: no" >&5
17141 echo "${ECHO_T}no" >&6
17142   fi
17143
17144 else
17145
17146   echo "$as_me:$LINENO: result: no" >&5
17147 echo "${ECHO_T}no" >&6
17148
17149 fi;
17150
17151
17152
17153
17154
17155
17156
17157 db_found=no
17158 echo "$as_me:$LINENO: checking for SQLite support" >&5
17159 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17160
17161 # Check whether --with-sqlite or --without-sqlite was given.
17162 if test "${with_sqlite+set}" = set; then
17163   withval="$with_sqlite"
17164
17165   if test "$withval" != "no"; then
17166      if test "$withval" = "yes"; then
17167         if test -f /usr/local/include/sqlite.h; then
17168            SQLITE_INCDIR=/usr/local/include
17169            if test -d /usr/local/lib64; then
17170               SQLITE_LIBDIR=/usr/local/lib64
17171            else
17172               SQLITE_LIBDIR=/usr/local/lib
17173            fi
17174            SQLITE_BINDIR=/usr/local/bin
17175         elif test -f /usr/include/sqlite.h; then
17176            SQLITE_INCDIR=/usr/include
17177            if test -d /usr/lib64; then
17178               SQLITE_LIBDIR=/usr/lib64
17179            else
17180               SQLITE_LIBDIR=/usr/lib
17181            fi
17182            SQLITE_BINDIR=/usr/bin
17183         elif test -f $prefix/include/sqlite.h; then
17184            SQLITE_INCDIR=$prefix/include
17185            if test -d $prefix/lib64; then
17186               SQLITE_LIBDIR=$prefix/lib64
17187            else
17188               SQLITE_LIBDIR=$prefix/lib
17189            fi
17190            SQLITE_BINDIR=$prefix/bin
17191         else
17192            echo "$as_me:$LINENO: result: no" >&5
17193 echo "${ECHO_T}no" >&6
17194            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17195 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17196    { (exit 1); exit 1; }; }
17197         fi
17198      else
17199         if test -f $withval/sqlite.h; then
17200            SQLITE_INCDIR=$withval
17201            SQLITE_LIBDIR=$withval
17202            SQLITE_BINDIR=$withval
17203         elif test -f $withval/include/sqlite.h; then
17204            SQLITE_INCDIR=$withval/include
17205            if test -d $withval/lib64; then
17206               SQLITE_LIBDIR=$withval/lib64
17207            else
17208               SQLITE_LIBDIR=$withval/lib
17209            fi
17210            SQLITE_BINDIR=$withval/bin
17211         else
17212            echo "$as_me:$LINENO: result: no" >&5
17213 echo "${ECHO_T}no" >&6
17214            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17215 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17216    { (exit 1); exit 1; }; }
17217         fi
17218      fi
17219      SQL_INCLUDE=-I$SQLITE_INCDIR
17220      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17221      SQL_BINDIR=$SQLITE_BINDIR
17222
17223      cat >>confdefs.h <<\_ACEOF
17224 #define HAVE_SQLITE 1
17225 _ACEOF
17226
17227      echo "$as_me:$LINENO: result: yes" >&5
17228 echo "${ECHO_T}yes" >&6
17229      db_found=yes
17230      support_sqlite=yes
17231      db_name=SQLite
17232      DB_NAME=sqlite
17233
17234   else
17235      echo "$as_me:$LINENO: result: no" >&5
17236 echo "${ECHO_T}no" >&6
17237   fi
17238
17239 else
17240
17241   echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17243
17244 fi;
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254 cat >>confdefs.h <<\_ACEOF
17255 #define PROTOTYPES 1
17256 _ACEOF
17257
17258
17259 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17260     if test -z "$CCOPTS"; then
17261         CCOPTS='-g -O2 -Wall'
17262     fi
17263     CFLAGS="$CCOPTS"
17264 fi
17265
17266
17267
17268
17269 largefile_support="no"
17270
17271    # Check whether --enable-largefile or --disable-largefile was given.
17272 if test "${enable_largefile+set}" = set; then
17273   enableval="$enable_largefile"
17274
17275 fi;
17276    if test "$enable_largefile" != no; then
17277      if test -n "$ac_tool_prefix"; then
17278   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17279 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17280 echo "$as_me:$LINENO: checking for $ac_word" >&5
17281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17282 if test "${ac_cv_prog_GETCONF+set}" = set; then
17283   echo $ECHO_N "(cached) $ECHO_C" >&6
17284 else
17285   if test -n "$GETCONF"; then
17286   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17287 else
17288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17289 for as_dir in $PATH
17290 do
17291   IFS=$as_save_IFS
17292   test -z "$as_dir" && as_dir=.
17293   for ac_exec_ext in '' $ac_executable_extensions; do
17294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17295     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17297     break 2
17298   fi
17299 done
17300 done
17301
17302 fi
17303 fi
17304 GETCONF=$ac_cv_prog_GETCONF
17305 if test -n "$GETCONF"; then
17306   echo "$as_me:$LINENO: result: $GETCONF" >&5
17307 echo "${ECHO_T}$GETCONF" >&6
17308 else
17309   echo "$as_me:$LINENO: result: no" >&5
17310 echo "${ECHO_T}no" >&6
17311 fi
17312
17313 fi
17314 if test -z "$ac_cv_prog_GETCONF"; then
17315   ac_ct_GETCONF=$GETCONF
17316   # Extract the first word of "getconf", so it can be a program name with args.
17317 set dummy getconf; ac_word=$2
17318 echo "$as_me:$LINENO: checking for $ac_word" >&5
17319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17320 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17321   echo $ECHO_N "(cached) $ECHO_C" >&6
17322 else
17323   if test -n "$ac_ct_GETCONF"; then
17324   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17325 else
17326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17327 for as_dir in $PATH
17328 do
17329   IFS=$as_save_IFS
17330   test -z "$as_dir" && as_dir=.
17331   for ac_exec_ext in '' $ac_executable_extensions; do
17332   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17333     ac_cv_prog_ac_ct_GETCONF="getconf"
17334     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17335     break 2
17336   fi
17337 done
17338 done
17339
17340 fi
17341 fi
17342 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17343 if test -n "$ac_ct_GETCONF"; then
17344   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17345 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17346 else
17347   echo "$as_me:$LINENO: result: no" >&5
17348 echo "${ECHO_T}no" >&6
17349 fi
17350
17351   GETCONF=$ac_ct_GETCONF
17352 else
17353   GETCONF="$ac_cv_prog_GETCONF"
17354 fi
17355
17356      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17357 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17358 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17359   echo $ECHO_N "(cached) $ECHO_C" >&6
17360 else
17361   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17362         ac_cv_sys_largefile_CFLAGS=no
17363         case "$host_os" in
17364            # IRIX 6.2 and later require cc -n32.
17365            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17366              if test "$GCC" != yes; then
17367                ac_cv_sys_largefile_CFLAGS=-n32
17368              fi
17369              ac_save_CC="$CC"
17370              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17371              cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377
17378 int
17379 main ()
17380 {
17381
17382   ;
17383   return 0;
17384 }
17385 _ACEOF
17386 rm -f conftest.$ac_objext conftest$ac_exeext
17387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17388   (eval $ac_link) 2>conftest.er1
17389   ac_status=$?
17390   grep -v '^ *+' conftest.er1 >conftest.err
17391   rm -f conftest.er1
17392   cat conftest.err >&5
17393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394   (exit $ac_status); } &&
17395          { ac_try='test -z "$ac_c_werror_flag"
17396                          || test ! -s conftest.err'
17397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398   (eval $ac_try) 2>&5
17399   ac_status=$?
17400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401   (exit $ac_status); }; } &&
17402          { ac_try='test -s conftest$ac_exeext'
17403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17404   (eval $ac_try) 2>&5
17405   ac_status=$?
17406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407   (exit $ac_status); }; }; then
17408   :
17409 else
17410   echo "$as_me: failed program was:" >&5
17411 sed 's/^/| /' conftest.$ac_ext >&5
17412
17413 ac_cv_sys_largefile_CFLAGS=no
17414 fi
17415 rm -f conftest.err conftest.$ac_objext \
17416       conftest$ac_exeext conftest.$ac_ext
17417              CC="$ac_save_CC"
17418            esac
17419       }
17420 fi
17421 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17422 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17423      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17424 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17425 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17429         ac_cv_sys_largefile_LDFLAGS=no
17430
17431       }
17432 fi
17433 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17434 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17435      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17436 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17437 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17438   echo $ECHO_N "(cached) $ECHO_C" >&6
17439 else
17440   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17441         ac_cv_sys_largefile_LIBS=no
17442
17443       }
17444 fi
17445 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17446 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17447
17448      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17449        case "$ac_flag" in
17450        no) ;;
17451        -D_FILE_OFFSET_BITS=*) ;;
17452        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17453        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17454        -D?* | -I?*)
17455          case "$ac_flag" in
17456    no) ;;
17457    ?*)
17458      case "$CPPFLAGS" in
17459      '') CPPFLAGS="$ac_flag" ;;
17460      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17461      esac ;;
17462    esac ;;
17463        *)
17464          case "$ac_flag" in
17465    no) ;;
17466    ?*)
17467      case "$CFLAGS" in
17468      '') CFLAGS="$ac_flag" ;;
17469      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17470      esac ;;
17471    esac ;;
17472        esac
17473      done
17474      case "$ac_cv_sys_largefile_LDFLAGS" in
17475    no) ;;
17476    ?*)
17477      case "$LDFLAGS" in
17478      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17479      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17480      esac ;;
17481    esac
17482      case "$ac_cv_sys_largefile_LIBS" in
17483    no) ;;
17484    ?*)
17485      case "$LIBS" in
17486      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17487      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17488      esac ;;
17489    esac
17490      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17491 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17492 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17493   echo $ECHO_N "(cached) $ECHO_C" >&6
17494 else
17495   ac_cv_sys_file_offset_bits=no
17496       ac_cv_sys_file_offset_bits=64
17497       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17498         case "$ac_flag" in
17499         -D_FILE_OFFSET_BITS)
17500           ac_cv_sys_file_offset_bits=1 ;;
17501         -D_FILE_OFFSET_BITS=*)
17502           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17503         esac
17504       done
17505
17506 fi
17507 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17508 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17509    if test "$ac_cv_sys_file_offset_bits" != no; then
17510
17511 cat >>confdefs.h <<_ACEOF
17512 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17513 _ACEOF
17514
17515    fi
17516      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17517 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17518 if test "${ac_cv_sys_largefile_source+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   ac_cv_sys_largefile_source=no
17522       ac_cv_sys_largefile_source=1
17523       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17524         case "$ac_flag" in
17525         -D_LARGEFILE_SOURCE)
17526           ac_cv_sys_largefile_source=1 ;;
17527         -D_LARGEFILE_SOURCE=*)
17528           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17529         esac
17530       done
17531
17532 fi
17533 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17534 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17535    if test "$ac_cv_sys_largefile_source" != no; then
17536
17537 cat >>confdefs.h <<_ACEOF
17538 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17539 _ACEOF
17540
17541    fi
17542      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17543 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17544 if test "${ac_cv_sys_large_files+set}" = set; then
17545   echo $ECHO_N "(cached) $ECHO_C" >&6
17546 else
17547   ac_cv_sys_large_files=no
17548       ac_cv_sys_large_files=1
17549       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17550         case "$ac_flag" in
17551         -D_LARGE_FILES)
17552           ac_cv_sys_large_files=1 ;;
17553         -D_LARGE_FILES=*)
17554           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17555         esac
17556       done
17557
17558 fi
17559 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17560 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17561    if test "$ac_cv_sys_large_files" != no; then
17562
17563 cat >>confdefs.h <<_ACEOF
17564 #define _LARGE_FILES $ac_cv_sys_large_files
17565 _ACEOF
17566
17567    fi
17568    fi
17569
17570
17571
17572 echo "$as_me:$LINENO: checking for X" >&5
17573 echo $ECHO_N "checking for X... $ECHO_C" >&6
17574
17575
17576 # Check whether --with-x or --without-x was given.
17577 if test "${with_x+set}" = set; then
17578   withval="$with_x"
17579
17580 fi;
17581 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17582 if test "x$with_x" = xno; then
17583   # The user explicitly disabled X.
17584   have_x=disabled
17585 else
17586   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17587     # Both variables are already set.
17588     have_x=yes
17589   else
17590     if test "${ac_cv_have_x+set}" = set; then
17591   echo $ECHO_N "(cached) $ECHO_C" >&6
17592 else
17593   # One or both of the vars are not set, and there is no cached value.
17594 ac_x_includes=no ac_x_libraries=no
17595 rm -fr conftest.dir
17596 if mkdir conftest.dir; then
17597   cd conftest.dir
17598   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17599   cat >Imakefile <<'_ACEOF'
17600 acfindx:
17601         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17602 _ACEOF
17603   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17604     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17605     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17606     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17607     for ac_extension in a so sl; do
17608       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17609          test -f $ac_im_libdir/libX11.$ac_extension; then
17610         ac_im_usrlibdir=$ac_im_libdir; break
17611       fi
17612     done
17613     # Screen out bogus values from the imake configuration.  They are
17614     # bogus both because they are the default anyway, and because
17615     # using them would break gcc on systems where it needs fixed includes.
17616     case $ac_im_incroot in
17617         /usr/include) ;;
17618         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17619     esac
17620     case $ac_im_usrlibdir in
17621         /usr/lib | /lib) ;;
17622         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17623     esac
17624   fi
17625   cd ..
17626   rm -fr conftest.dir
17627 fi
17628
17629 # Standard set of common directories for X headers.
17630 # Check X11 before X11Rn because it is often a symlink to the current release.
17631 ac_x_header_dirs='
17632 /usr/X11/include
17633 /usr/X11R6/include
17634 /usr/X11R5/include
17635 /usr/X11R4/include
17636
17637 /usr/include/X11
17638 /usr/include/X11R6
17639 /usr/include/X11R5
17640 /usr/include/X11R4
17641
17642 /usr/local/X11/include
17643 /usr/local/X11R6/include
17644 /usr/local/X11R5/include
17645 /usr/local/X11R4/include
17646
17647 /usr/local/include/X11
17648 /usr/local/include/X11R6
17649 /usr/local/include/X11R5
17650 /usr/local/include/X11R4
17651
17652 /usr/X386/include
17653 /usr/x386/include
17654 /usr/XFree86/include/X11
17655
17656 /usr/include
17657 /usr/local/include
17658 /usr/unsupported/include
17659 /usr/athena/include
17660 /usr/local/x11r5/include
17661 /usr/lpp/Xamples/include
17662
17663 /usr/openwin/include
17664 /usr/openwin/share/include'
17665
17666 if test "$ac_x_includes" = no; then
17667   # Guess where to find include files, by looking for Intrinsic.h.
17668   # First, try using that file with no special directory specified.
17669   cat >conftest.$ac_ext <<_ACEOF
17670 /* confdefs.h.  */
17671 _ACEOF
17672 cat confdefs.h >>conftest.$ac_ext
17673 cat >>conftest.$ac_ext <<_ACEOF
17674 /* end confdefs.h.  */
17675 #include <X11/Intrinsic.h>
17676 _ACEOF
17677 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17678   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17679   ac_status=$?
17680   grep -v '^ *+' conftest.er1 >conftest.err
17681   rm -f conftest.er1
17682   cat conftest.err >&5
17683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684   (exit $ac_status); } >/dev/null; then
17685   if test -s conftest.err; then
17686     ac_cpp_err=$ac_c_preproc_warn_flag
17687     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17688   else
17689     ac_cpp_err=
17690   fi
17691 else
17692   ac_cpp_err=yes
17693 fi
17694 if test -z "$ac_cpp_err"; then
17695   # We can compile using X headers with no special include directory.
17696 ac_x_includes=
17697 else
17698   echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17700
17701   for ac_dir in $ac_x_header_dirs; do
17702   if test -r "$ac_dir/X11/Intrinsic.h"; then
17703     ac_x_includes=$ac_dir
17704     break
17705   fi
17706 done
17707 fi
17708 rm -f conftest.err conftest.$ac_ext
17709 fi # $ac_x_includes = no
17710
17711 if test "$ac_x_libraries" = no; then
17712   # Check for the libraries.
17713   # See if we find them without any special options.
17714   # Don't add to $LIBS permanently.
17715   ac_save_LIBS=$LIBS
17716   LIBS="-lXt $LIBS"
17717   cat >conftest.$ac_ext <<_ACEOF
17718 /* confdefs.h.  */
17719 _ACEOF
17720 cat confdefs.h >>conftest.$ac_ext
17721 cat >>conftest.$ac_ext <<_ACEOF
17722 /* end confdefs.h.  */
17723 #include <X11/Intrinsic.h>
17724 int
17725 main ()
17726 {
17727 XtMalloc (0)
17728   ;
17729   return 0;
17730 }
17731 _ACEOF
17732 rm -f conftest.$ac_objext conftest$ac_exeext
17733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17734   (eval $ac_link) 2>conftest.er1
17735   ac_status=$?
17736   grep -v '^ *+' conftest.er1 >conftest.err
17737   rm -f conftest.er1
17738   cat conftest.err >&5
17739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740   (exit $ac_status); } &&
17741          { ac_try='test -z "$ac_c_werror_flag"
17742                          || test ! -s conftest.err'
17743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17744   (eval $ac_try) 2>&5
17745   ac_status=$?
17746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747   (exit $ac_status); }; } &&
17748          { ac_try='test -s conftest$ac_exeext'
17749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17750   (eval $ac_try) 2>&5
17751   ac_status=$?
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); }; }; then
17754   LIBS=$ac_save_LIBS
17755 # We can link X programs with no special library path.
17756 ac_x_libraries=
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761 LIBS=$ac_save_LIBS
17762 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17763 do
17764   # Don't even attempt the hair of trying to link an X program!
17765   for ac_extension in a so sl; do
17766     if test -r $ac_dir/libXt.$ac_extension; then
17767       ac_x_libraries=$ac_dir
17768       break 2
17769     fi
17770   done
17771 done
17772 fi
17773 rm -f conftest.err conftest.$ac_objext \
17774       conftest$ac_exeext conftest.$ac_ext
17775 fi # $ac_x_libraries = no
17776
17777 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
17778   # Didn't find X anywhere.  Cache the known absence of X.
17779   ac_cv_have_x="have_x=no"
17780 else
17781   # Record where we found X for the cache.
17782   ac_cv_have_x="have_x=yes \
17783                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
17784 fi
17785 fi
17786
17787   fi
17788   eval "$ac_cv_have_x"
17789 fi # $with_x != no
17790
17791 if test "$have_x" != yes; then
17792   echo "$as_me:$LINENO: result: $have_x" >&5
17793 echo "${ECHO_T}$have_x" >&6
17794   no_x=yes
17795 else
17796   # If each of the values was on the command line, it overrides each guess.
17797   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17798   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17799   # Update the cache value to reflect the command line values.
17800   ac_cv_have_x="have_x=yes \
17801                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
17802   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17803 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
17804 fi
17805
17806 if test "$no_x" = yes; then
17807   # Not all programs may use this symbol, but it does not hurt to define it.
17808
17809 cat >>confdefs.h <<\_ACEOF
17810 #define X_DISPLAY_MISSING 1
17811 _ACEOF
17812
17813   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17814 else
17815   if test -n "$x_includes"; then
17816     X_CFLAGS="$X_CFLAGS -I$x_includes"
17817   fi
17818
17819   # It would also be nice to do this for all -L options, not just this one.
17820   if test -n "$x_libraries"; then
17821     X_LIBS="$X_LIBS -L$x_libraries"
17822     # For Solaris; some versions of Sun CC require a space after -R and
17823     # others require no space.  Words are not sufficient . . . .
17824     case `(uname -sr) 2>/dev/null` in
17825     "SunOS 5"*)
17826       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17827 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
17828       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17829       cat >conftest.$ac_ext <<_ACEOF
17830 /* confdefs.h.  */
17831 _ACEOF
17832 cat confdefs.h >>conftest.$ac_ext
17833 cat >>conftest.$ac_ext <<_ACEOF
17834 /* end confdefs.h.  */
17835
17836 int
17837 main ()
17838 {
17839
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 rm -f conftest.$ac_objext conftest$ac_exeext
17845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17846   (eval $ac_link) 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag"
17854                          || test ! -s conftest.err'
17855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17856   (eval $ac_try) 2>&5
17857   ac_status=$?
17858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17859   (exit $ac_status); }; } &&
17860          { ac_try='test -s conftest$ac_exeext'
17861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17862   (eval $ac_try) 2>&5
17863   ac_status=$?
17864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865   (exit $ac_status); }; }; then
17866   ac_R_nospace=yes
17867 else
17868   echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871 ac_R_nospace=no
17872 fi
17873 rm -f conftest.err conftest.$ac_objext \
17874       conftest$ac_exeext conftest.$ac_ext
17875       if test $ac_R_nospace = yes; then
17876         echo "$as_me:$LINENO: result: no" >&5
17877 echo "${ECHO_T}no" >&6
17878         X_LIBS="$X_LIBS -R$x_libraries"
17879       else
17880         LIBS="$ac_xsave_LIBS -R $x_libraries"
17881         cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h.  */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h.  */
17887
17888 int
17889 main ()
17890 {
17891
17892   ;
17893   return 0;
17894 }
17895 _ACEOF
17896 rm -f conftest.$ac_objext conftest$ac_exeext
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898   (eval $ac_link) 2>conftest.er1
17899   ac_status=$?
17900   grep -v '^ *+' conftest.er1 >conftest.err
17901   rm -f conftest.er1
17902   cat conftest.err >&5
17903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904   (exit $ac_status); } &&
17905          { ac_try='test -z "$ac_c_werror_flag"
17906                          || test ! -s conftest.err'
17907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908   (eval $ac_try) 2>&5
17909   ac_status=$?
17910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911   (exit $ac_status); }; } &&
17912          { ac_try='test -s conftest$ac_exeext'
17913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914   (eval $ac_try) 2>&5
17915   ac_status=$?
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); }; }; then
17918   ac_R_space=yes
17919 else
17920   echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17922
17923 ac_R_space=no
17924 fi
17925 rm -f conftest.err conftest.$ac_objext \
17926       conftest$ac_exeext conftest.$ac_ext
17927         if test $ac_R_space = yes; then
17928           echo "$as_me:$LINENO: result: yes" >&5
17929 echo "${ECHO_T}yes" >&6
17930           X_LIBS="$X_LIBS -R $x_libraries"
17931         else
17932           echo "$as_me:$LINENO: result: neither works" >&5
17933 echo "${ECHO_T}neither works" >&6
17934         fi
17935       fi
17936       LIBS=$ac_xsave_LIBS
17937     esac
17938   fi
17939
17940   # Check for system-dependent libraries X programs must link with.
17941   # Do this before checking for the system-independent R6 libraries
17942   # (-lICE), since we may need -lsocket or whatever for X linking.
17943
17944   if test "$ISC" = yes; then
17945     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17946   else
17947     # Martyn Johnson says this is needed for Ultrix, if the X
17948     # libraries were built with DECnet support.  And Karl Berry says
17949     # the Alpha needs dnet_stub (dnet does not exist).
17950     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17951     cat >conftest.$ac_ext <<_ACEOF
17952 /* confdefs.h.  */
17953 _ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h.  */
17957
17958 /* Override any gcc2 internal prototype to avoid an error.  */
17959 #ifdef __cplusplus
17960 extern "C"
17961 #endif
17962 /* We use char because int might match the return type of a gcc2
17963    builtin and then its argument prototype would still apply.  */
17964 char XOpenDisplay ();
17965 int
17966 main ()
17967 {
17968 XOpenDisplay ();
17969   ;
17970   return 0;
17971 }
17972 _ACEOF
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975   (eval $ac_link) 2>conftest.er1
17976   ac_status=$?
17977   grep -v '^ *+' conftest.er1 >conftest.err
17978   rm -f conftest.er1
17979   cat conftest.err >&5
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); } &&
17982          { ac_try='test -z "$ac_c_werror_flag"
17983                          || test ! -s conftest.err'
17984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17985   (eval $ac_try) 2>&5
17986   ac_status=$?
17987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17988   (exit $ac_status); }; } &&
17989          { ac_try='test -s conftest$ac_exeext'
17990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17991   (eval $ac_try) 2>&5
17992   ac_status=$?
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); }; }; then
17995   :
17996 else
17997   echo "$as_me: failed program was:" >&5
17998 sed 's/^/| /' conftest.$ac_ext >&5
17999
18000 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18001 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18002 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18003   echo $ECHO_N "(cached) $ECHO_C" >&6
18004 else
18005   ac_check_lib_save_LIBS=$LIBS
18006 LIBS="-ldnet  $LIBS"
18007 cat >conftest.$ac_ext <<_ACEOF
18008 /* confdefs.h.  */
18009 _ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h.  */
18013
18014 /* Override any gcc2 internal prototype to avoid an error.  */
18015 #ifdef __cplusplus
18016 extern "C"
18017 #endif
18018 /* We use char because int might match the return type of a gcc2
18019    builtin and then its argument prototype would still apply.  */
18020 char dnet_ntoa ();
18021 int
18022 main ()
18023 {
18024 dnet_ntoa ();
18025   ;
18026   return 0;
18027 }
18028 _ACEOF
18029 rm -f conftest.$ac_objext conftest$ac_exeext
18030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18031   (eval $ac_link) 2>conftest.er1
18032   ac_status=$?
18033   grep -v '^ *+' conftest.er1 >conftest.err
18034   rm -f conftest.er1
18035   cat conftest.err >&5
18036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18037   (exit $ac_status); } &&
18038          { ac_try='test -z "$ac_c_werror_flag"
18039                          || test ! -s conftest.err'
18040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18041   (eval $ac_try) 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; } &&
18045          { ac_try='test -s conftest$ac_exeext'
18046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18047   (eval $ac_try) 2>&5
18048   ac_status=$?
18049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18050   (exit $ac_status); }; }; then
18051   ac_cv_lib_dnet_dnet_ntoa=yes
18052 else
18053   echo "$as_me: failed program was:" >&5
18054 sed 's/^/| /' conftest.$ac_ext >&5
18055
18056 ac_cv_lib_dnet_dnet_ntoa=no
18057 fi
18058 rm -f conftest.err conftest.$ac_objext \
18059       conftest$ac_exeext conftest.$ac_ext
18060 LIBS=$ac_check_lib_save_LIBS
18061 fi
18062 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18063 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18064 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18065   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18066 fi
18067
18068     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18069       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18070 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18071 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18072   echo $ECHO_N "(cached) $ECHO_C" >&6
18073 else
18074   ac_check_lib_save_LIBS=$LIBS
18075 LIBS="-ldnet_stub  $LIBS"
18076 cat >conftest.$ac_ext <<_ACEOF
18077 /* confdefs.h.  */
18078 _ACEOF
18079 cat confdefs.h >>conftest.$ac_ext
18080 cat >>conftest.$ac_ext <<_ACEOF
18081 /* end confdefs.h.  */
18082
18083 /* Override any gcc2 internal prototype to avoid an error.  */
18084 #ifdef __cplusplus
18085 extern "C"
18086 #endif
18087 /* We use char because int might match the return type of a gcc2
18088    builtin and then its argument prototype would still apply.  */
18089 char dnet_ntoa ();
18090 int
18091 main ()
18092 {
18093 dnet_ntoa ();
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18100   (eval $ac_link) 2>conftest.er1
18101   ac_status=$?
18102   grep -v '^ *+' conftest.er1 >conftest.err
18103   rm -f conftest.er1
18104   cat conftest.err >&5
18105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106   (exit $ac_status); } &&
18107          { ac_try='test -z "$ac_c_werror_flag"
18108                          || test ! -s conftest.err'
18109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110   (eval $ac_try) 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; } &&
18114          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
18120   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18121 else
18122   echo "$as_me: failed program was:" >&5
18123 sed 's/^/| /' conftest.$ac_ext >&5
18124
18125 ac_cv_lib_dnet_stub_dnet_ntoa=no
18126 fi
18127 rm -f conftest.err conftest.$ac_objext \
18128       conftest$ac_exeext conftest.$ac_ext
18129 LIBS=$ac_check_lib_save_LIBS
18130 fi
18131 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18132 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18133 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18134   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18135 fi
18136
18137     fi
18138 fi
18139 rm -f conftest.err conftest.$ac_objext \
18140       conftest$ac_exeext conftest.$ac_ext
18141     LIBS="$ac_xsave_LIBS"
18142
18143     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18144     # to get the SysV transport functions.
18145     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18146     # needs -lnsl.
18147     # The nsl library prevents programs from opening the X display
18148     # on Irix 5.2, according to T.E. Dickey.
18149     # The functions gethostbyname, getservbyname, and inet_addr are
18150     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18151     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18152 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18153 if test "${ac_cv_func_gethostbyname+set}" = set; then
18154   echo $ECHO_N "(cached) $ECHO_C" >&6
18155 else
18156   cat >conftest.$ac_ext <<_ACEOF
18157 /* confdefs.h.  */
18158 _ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h.  */
18162 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18164 #define gethostbyname innocuous_gethostbyname
18165
18166 /* System header to define __stub macros and hopefully few prototypes,
18167     which can conflict with char gethostbyname (); below.
18168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18169     <limits.h> exists even on freestanding compilers.  */
18170
18171 #ifdef __STDC__
18172 # include <limits.h>
18173 #else
18174 # include <assert.h>
18175 #endif
18176
18177 #undef gethostbyname
18178
18179 /* Override any gcc2 internal prototype to avoid an error.  */
18180 #ifdef __cplusplus
18181 extern "C"
18182 {
18183 #endif
18184 /* We use char because int might match the return type of a gcc2
18185    builtin and then its argument prototype would still apply.  */
18186 char gethostbyname ();
18187 /* The GNU C library defines this for functions which it implements
18188     to always fail with ENOSYS.  Some functions are actually named
18189     something starting with __ and the normal name is an alias.  */
18190 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18191 choke me
18192 #else
18193 char (*f) () = gethostbyname;
18194 #endif
18195 #ifdef __cplusplus
18196 }
18197 #endif
18198
18199 int
18200 main ()
18201 {
18202 return f != gethostbyname;
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 rm -f conftest.$ac_objext conftest$ac_exeext
18208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18209   (eval $ac_link) 2>conftest.er1
18210   ac_status=$?
18211   grep -v '^ *+' conftest.er1 >conftest.err
18212   rm -f conftest.er1
18213   cat conftest.err >&5
18214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215   (exit $ac_status); } &&
18216          { ac_try='test -z "$ac_c_werror_flag"
18217                          || test ! -s conftest.err'
18218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18219   (eval $ac_try) 2>&5
18220   ac_status=$?
18221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222   (exit $ac_status); }; } &&
18223          { ac_try='test -s conftest$ac_exeext'
18224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18225   (eval $ac_try) 2>&5
18226   ac_status=$?
18227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18228   (exit $ac_status); }; }; then
18229   ac_cv_func_gethostbyname=yes
18230 else
18231   echo "$as_me: failed program was:" >&5
18232 sed 's/^/| /' conftest.$ac_ext >&5
18233
18234 ac_cv_func_gethostbyname=no
18235 fi
18236 rm -f conftest.err conftest.$ac_objext \
18237       conftest$ac_exeext conftest.$ac_ext
18238 fi
18239 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18240 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18241
18242     if test $ac_cv_func_gethostbyname = no; then
18243       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18244 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18245 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18246   echo $ECHO_N "(cached) $ECHO_C" >&6
18247 else
18248   ac_check_lib_save_LIBS=$LIBS
18249 LIBS="-lnsl  $LIBS"
18250 cat >conftest.$ac_ext <<_ACEOF
18251 /* confdefs.h.  */
18252 _ACEOF
18253 cat confdefs.h >>conftest.$ac_ext
18254 cat >>conftest.$ac_ext <<_ACEOF
18255 /* end confdefs.h.  */
18256
18257 /* Override any gcc2 internal prototype to avoid an error.  */
18258 #ifdef __cplusplus
18259 extern "C"
18260 #endif
18261 /* We use char because int might match the return type of a gcc2
18262    builtin and then its argument prototype would still apply.  */
18263 char gethostbyname ();
18264 int
18265 main ()
18266 {
18267 gethostbyname ();
18268   ;
18269   return 0;
18270 }
18271 _ACEOF
18272 rm -f conftest.$ac_objext conftest$ac_exeext
18273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18274   (eval $ac_link) 2>conftest.er1
18275   ac_status=$?
18276   grep -v '^ *+' conftest.er1 >conftest.err
18277   rm -f conftest.er1
18278   cat conftest.err >&5
18279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18280   (exit $ac_status); } &&
18281          { ac_try='test -z "$ac_c_werror_flag"
18282                          || test ! -s conftest.err'
18283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18284   (eval $ac_try) 2>&5
18285   ac_status=$?
18286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18287   (exit $ac_status); }; } &&
18288          { ac_try='test -s conftest$ac_exeext'
18289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290   (eval $ac_try) 2>&5
18291   ac_status=$?
18292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293   (exit $ac_status); }; }; then
18294   ac_cv_lib_nsl_gethostbyname=yes
18295 else
18296   echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.$ac_ext >&5
18298
18299 ac_cv_lib_nsl_gethostbyname=no
18300 fi
18301 rm -f conftest.err conftest.$ac_objext \
18302       conftest$ac_exeext conftest.$ac_ext
18303 LIBS=$ac_check_lib_save_LIBS
18304 fi
18305 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18306 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18307 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18308   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18309 fi
18310
18311       if test $ac_cv_lib_nsl_gethostbyname = no; then
18312         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18313 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18314 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18315   echo $ECHO_N "(cached) $ECHO_C" >&6
18316 else
18317   ac_check_lib_save_LIBS=$LIBS
18318 LIBS="-lbsd  $LIBS"
18319 cat >conftest.$ac_ext <<_ACEOF
18320 /* confdefs.h.  */
18321 _ACEOF
18322 cat confdefs.h >>conftest.$ac_ext
18323 cat >>conftest.$ac_ext <<_ACEOF
18324 /* end confdefs.h.  */
18325
18326 /* Override any gcc2 internal prototype to avoid an error.  */
18327 #ifdef __cplusplus
18328 extern "C"
18329 #endif
18330 /* We use char because int might match the return type of a gcc2
18331    builtin and then its argument prototype would still apply.  */
18332 char gethostbyname ();
18333 int
18334 main ()
18335 {
18336 gethostbyname ();
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18343   (eval $ac_link) 2>conftest.er1
18344   ac_status=$?
18345   grep -v '^ *+' conftest.er1 >conftest.err
18346   rm -f conftest.er1
18347   cat conftest.err >&5
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); } &&
18350          { ac_try='test -z "$ac_c_werror_flag"
18351                          || test ! -s conftest.err'
18352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18353   (eval $ac_try) 2>&5
18354   ac_status=$?
18355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356   (exit $ac_status); }; } &&
18357          { ac_try='test -s conftest$ac_exeext'
18358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18359   (eval $ac_try) 2>&5
18360   ac_status=$?
18361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362   (exit $ac_status); }; }; then
18363   ac_cv_lib_bsd_gethostbyname=yes
18364 else
18365   echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_lib_bsd_gethostbyname=no
18369 fi
18370 rm -f conftest.err conftest.$ac_objext \
18371       conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18373 fi
18374 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18375 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18376 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18377   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18378 fi
18379
18380       fi
18381     fi
18382
18383     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18384     # socket/setsockopt and other routines are undefined under SCO ODT
18385     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18386     # on later versions), says Simon Leinen: it contains gethostby*
18387     # variants that don't use the name server (or something).  -lsocket
18388     # must be given before -lnsl if both are needed.  We assume that
18389     # if connect needs -lnsl, so does gethostbyname.
18390     echo "$as_me:$LINENO: checking for connect" >&5
18391 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18392 if test "${ac_cv_func_connect+set}" = set; then
18393   echo $ECHO_N "(cached) $ECHO_C" >&6
18394 else
18395   cat >conftest.$ac_ext <<_ACEOF
18396 /* confdefs.h.  */
18397 _ACEOF
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h.  */
18401 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18403 #define connect innocuous_connect
18404
18405 /* System header to define __stub macros and hopefully few prototypes,
18406     which can conflict with char connect (); below.
18407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18408     <limits.h> exists even on freestanding compilers.  */
18409
18410 #ifdef __STDC__
18411 # include <limits.h>
18412 #else
18413 # include <assert.h>
18414 #endif
18415
18416 #undef connect
18417
18418 /* Override any gcc2 internal prototype to avoid an error.  */
18419 #ifdef __cplusplus
18420 extern "C"
18421 {
18422 #endif
18423 /* We use char because int might match the return type of a gcc2
18424    builtin and then its argument prototype would still apply.  */
18425 char connect ();
18426 /* The GNU C library defines this for functions which it implements
18427     to always fail with ENOSYS.  Some functions are actually named
18428     something starting with __ and the normal name is an alias.  */
18429 #if defined (__stub_connect) || defined (__stub___connect)
18430 choke me
18431 #else
18432 char (*f) () = connect;
18433 #endif
18434 #ifdef __cplusplus
18435 }
18436 #endif
18437
18438 int
18439 main ()
18440 {
18441 return f != connect;
18442   ;
18443   return 0;
18444 }
18445 _ACEOF
18446 rm -f conftest.$ac_objext conftest$ac_exeext
18447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18448   (eval $ac_link) 2>conftest.er1
18449   ac_status=$?
18450   grep -v '^ *+' conftest.er1 >conftest.err
18451   rm -f conftest.er1
18452   cat conftest.err >&5
18453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454   (exit $ac_status); } &&
18455          { ac_try='test -z "$ac_c_werror_flag"
18456                          || test ! -s conftest.err'
18457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18458   (eval $ac_try) 2>&5
18459   ac_status=$?
18460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18461   (exit $ac_status); }; } &&
18462          { ac_try='test -s conftest$ac_exeext'
18463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18464   (eval $ac_try) 2>&5
18465   ac_status=$?
18466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467   (exit $ac_status); }; }; then
18468   ac_cv_func_connect=yes
18469 else
18470   echo "$as_me: failed program was:" >&5
18471 sed 's/^/| /' conftest.$ac_ext >&5
18472
18473 ac_cv_func_connect=no
18474 fi
18475 rm -f conftest.err conftest.$ac_objext \
18476       conftest$ac_exeext conftest.$ac_ext
18477 fi
18478 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18479 echo "${ECHO_T}$ac_cv_func_connect" >&6
18480
18481     if test $ac_cv_func_connect = no; then
18482       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18483 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18484 if test "${ac_cv_lib_socket_connect+set}" = set; then
18485   echo $ECHO_N "(cached) $ECHO_C" >&6
18486 else
18487   ac_check_lib_save_LIBS=$LIBS
18488 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18489 cat >conftest.$ac_ext <<_ACEOF
18490 /* confdefs.h.  */
18491 _ACEOF
18492 cat confdefs.h >>conftest.$ac_ext
18493 cat >>conftest.$ac_ext <<_ACEOF
18494 /* end confdefs.h.  */
18495
18496 /* Override any gcc2 internal prototype to avoid an error.  */
18497 #ifdef __cplusplus
18498 extern "C"
18499 #endif
18500 /* We use char because int might match the return type of a gcc2
18501    builtin and then its argument prototype would still apply.  */
18502 char connect ();
18503 int
18504 main ()
18505 {
18506 connect ();
18507   ;
18508   return 0;
18509 }
18510 _ACEOF
18511 rm -f conftest.$ac_objext conftest$ac_exeext
18512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18513   (eval $ac_link) 2>conftest.er1
18514   ac_status=$?
18515   grep -v '^ *+' conftest.er1 >conftest.err
18516   rm -f conftest.er1
18517   cat conftest.err >&5
18518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519   (exit $ac_status); } &&
18520          { ac_try='test -z "$ac_c_werror_flag"
18521                          || test ! -s conftest.err'
18522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523   (eval $ac_try) 2>&5
18524   ac_status=$?
18525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526   (exit $ac_status); }; } &&
18527          { ac_try='test -s conftest$ac_exeext'
18528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18529   (eval $ac_try) 2>&5
18530   ac_status=$?
18531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532   (exit $ac_status); }; }; then
18533   ac_cv_lib_socket_connect=yes
18534 else
18535   echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18537
18538 ac_cv_lib_socket_connect=no
18539 fi
18540 rm -f conftest.err conftest.$ac_objext \
18541       conftest$ac_exeext conftest.$ac_ext
18542 LIBS=$ac_check_lib_save_LIBS
18543 fi
18544 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18545 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18546 if test $ac_cv_lib_socket_connect = yes; then
18547   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18548 fi
18549
18550     fi
18551
18552     # Guillermo Gomez says -lposix is necessary on A/UX.
18553     echo "$as_me:$LINENO: checking for remove" >&5
18554 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18555 if test "${ac_cv_func_remove+set}" = set; then
18556   echo $ECHO_N "(cached) $ECHO_C" >&6
18557 else
18558   cat >conftest.$ac_ext <<_ACEOF
18559 /* confdefs.h.  */
18560 _ACEOF
18561 cat confdefs.h >>conftest.$ac_ext
18562 cat >>conftest.$ac_ext <<_ACEOF
18563 /* end confdefs.h.  */
18564 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18566 #define remove innocuous_remove
18567
18568 /* System header to define __stub macros and hopefully few prototypes,
18569     which can conflict with char remove (); below.
18570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18571     <limits.h> exists even on freestanding compilers.  */
18572
18573 #ifdef __STDC__
18574 # include <limits.h>
18575 #else
18576 # include <assert.h>
18577 #endif
18578
18579 #undef remove
18580
18581 /* Override any gcc2 internal prototype to avoid an error.  */
18582 #ifdef __cplusplus
18583 extern "C"
18584 {
18585 #endif
18586 /* We use char because int might match the return type of a gcc2
18587    builtin and then its argument prototype would still apply.  */
18588 char remove ();
18589 /* The GNU C library defines this for functions which it implements
18590     to always fail with ENOSYS.  Some functions are actually named
18591     something starting with __ and the normal name is an alias.  */
18592 #if defined (__stub_remove) || defined (__stub___remove)
18593 choke me
18594 #else
18595 char (*f) () = remove;
18596 #endif
18597 #ifdef __cplusplus
18598 }
18599 #endif
18600
18601 int
18602 main ()
18603 {
18604 return f != remove;
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18611   (eval $ac_link) 2>conftest.er1
18612   ac_status=$?
18613   grep -v '^ *+' conftest.er1 >conftest.err
18614   rm -f conftest.er1
18615   cat conftest.err >&5
18616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617   (exit $ac_status); } &&
18618          { ac_try='test -z "$ac_c_werror_flag"
18619                          || test ! -s conftest.err'
18620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18621   (eval $ac_try) 2>&5
18622   ac_status=$?
18623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624   (exit $ac_status); }; } &&
18625          { ac_try='test -s conftest$ac_exeext'
18626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18627   (eval $ac_try) 2>&5
18628   ac_status=$?
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); }; }; then
18631   ac_cv_func_remove=yes
18632 else
18633   echo "$as_me: failed program was:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18635
18636 ac_cv_func_remove=no
18637 fi
18638 rm -f conftest.err conftest.$ac_objext \
18639       conftest$ac_exeext conftest.$ac_ext
18640 fi
18641 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18642 echo "${ECHO_T}$ac_cv_func_remove" >&6
18643
18644     if test $ac_cv_func_remove = no; then
18645       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18646 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
18647 if test "${ac_cv_lib_posix_remove+set}" = set; then
18648   echo $ECHO_N "(cached) $ECHO_C" >&6
18649 else
18650   ac_check_lib_save_LIBS=$LIBS
18651 LIBS="-lposix  $LIBS"
18652 cat >conftest.$ac_ext <<_ACEOF
18653 /* confdefs.h.  */
18654 _ACEOF
18655 cat confdefs.h >>conftest.$ac_ext
18656 cat >>conftest.$ac_ext <<_ACEOF
18657 /* end confdefs.h.  */
18658
18659 /* Override any gcc2 internal prototype to avoid an error.  */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 /* We use char because int might match the return type of a gcc2
18664    builtin and then its argument prototype would still apply.  */
18665 char remove ();
18666 int
18667 main ()
18668 {
18669 remove ();
18670   ;
18671   return 0;
18672 }
18673 _ACEOF
18674 rm -f conftest.$ac_objext conftest$ac_exeext
18675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18676   (eval $ac_link) 2>conftest.er1
18677   ac_status=$?
18678   grep -v '^ *+' conftest.er1 >conftest.err
18679   rm -f conftest.er1
18680   cat conftest.err >&5
18681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682   (exit $ac_status); } &&
18683          { ac_try='test -z "$ac_c_werror_flag"
18684                          || test ! -s conftest.err'
18685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18686   (eval $ac_try) 2>&5
18687   ac_status=$?
18688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689   (exit $ac_status); }; } &&
18690          { ac_try='test -s conftest$ac_exeext'
18691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18692   (eval $ac_try) 2>&5
18693   ac_status=$?
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); }; }; then
18696   ac_cv_lib_posix_remove=yes
18697 else
18698   echo "$as_me: failed program was:" >&5
18699 sed 's/^/| /' conftest.$ac_ext >&5
18700
18701 ac_cv_lib_posix_remove=no
18702 fi
18703 rm -f conftest.err conftest.$ac_objext \
18704       conftest$ac_exeext conftest.$ac_ext
18705 LIBS=$ac_check_lib_save_LIBS
18706 fi
18707 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18708 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
18709 if test $ac_cv_lib_posix_remove = yes; then
18710   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18711 fi
18712
18713     fi
18714
18715     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18716     echo "$as_me:$LINENO: checking for shmat" >&5
18717 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
18718 if test "${ac_cv_func_shmat+set}" = set; then
18719   echo $ECHO_N "(cached) $ECHO_C" >&6
18720 else
18721   cat >conftest.$ac_ext <<_ACEOF
18722 /* confdefs.h.  */
18723 _ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h.  */
18727 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18729 #define shmat innocuous_shmat
18730
18731 /* System header to define __stub macros and hopefully few prototypes,
18732     which can conflict with char shmat (); below.
18733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18734     <limits.h> exists even on freestanding compilers.  */
18735
18736 #ifdef __STDC__
18737 # include <limits.h>
18738 #else
18739 # include <assert.h>
18740 #endif
18741
18742 #undef shmat
18743
18744 /* Override any gcc2 internal prototype to avoid an error.  */
18745 #ifdef __cplusplus
18746 extern "C"
18747 {
18748 #endif
18749 /* We use char because int might match the return type of a gcc2
18750    builtin and then its argument prototype would still apply.  */
18751 char shmat ();
18752 /* The GNU C library defines this for functions which it implements
18753     to always fail with ENOSYS.  Some functions are actually named
18754     something starting with __ and the normal name is an alias.  */
18755 #if defined (__stub_shmat) || defined (__stub___shmat)
18756 choke me
18757 #else
18758 char (*f) () = shmat;
18759 #endif
18760 #ifdef __cplusplus
18761 }
18762 #endif
18763
18764 int
18765 main ()
18766 {
18767 return f != shmat;
18768   ;
18769   return 0;
18770 }
18771 _ACEOF
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774   (eval $ac_link) 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } &&
18781          { ac_try='test -z "$ac_c_werror_flag"
18782                          || test ! -s conftest.err'
18783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18784   (eval $ac_try) 2>&5
18785   ac_status=$?
18786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787   (exit $ac_status); }; } &&
18788          { ac_try='test -s conftest$ac_exeext'
18789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18790   (eval $ac_try) 2>&5
18791   ac_status=$?
18792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793   (exit $ac_status); }; }; then
18794   ac_cv_func_shmat=yes
18795 else
18796   echo "$as_me: failed program was:" >&5
18797 sed 's/^/| /' conftest.$ac_ext >&5
18798
18799 ac_cv_func_shmat=no
18800 fi
18801 rm -f conftest.err conftest.$ac_objext \
18802       conftest$ac_exeext conftest.$ac_ext
18803 fi
18804 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18805 echo "${ECHO_T}$ac_cv_func_shmat" >&6
18806
18807     if test $ac_cv_func_shmat = no; then
18808       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18809 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
18810 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18811   echo $ECHO_N "(cached) $ECHO_C" >&6
18812 else
18813   ac_check_lib_save_LIBS=$LIBS
18814 LIBS="-lipc  $LIBS"
18815 cat >conftest.$ac_ext <<_ACEOF
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821
18822 /* Override any gcc2 internal prototype to avoid an error.  */
18823 #ifdef __cplusplus
18824 extern "C"
18825 #endif
18826 /* We use char because int might match the return type of a gcc2
18827    builtin and then its argument prototype would still apply.  */
18828 char shmat ();
18829 int
18830 main ()
18831 {
18832 shmat ();
18833   ;
18834   return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839   (eval $ac_link) 2>conftest.er1
18840   ac_status=$?
18841   grep -v '^ *+' conftest.er1 >conftest.err
18842   rm -f conftest.er1
18843   cat conftest.err >&5
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } &&
18846          { ac_try='test -z "$ac_c_werror_flag"
18847                          || test ! -s conftest.err'
18848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18849   (eval $ac_try) 2>&5
18850   ac_status=$?
18851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); }; } &&
18853          { ac_try='test -s conftest$ac_exeext'
18854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18855   (eval $ac_try) 2>&5
18856   ac_status=$?
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   (exit $ac_status); }; }; then
18859   ac_cv_lib_ipc_shmat=yes
18860 else
18861   echo "$as_me: failed program was:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ac_cv_lib_ipc_shmat=no
18865 fi
18866 rm -f conftest.err conftest.$ac_objext \
18867       conftest$ac_exeext conftest.$ac_ext
18868 LIBS=$ac_check_lib_save_LIBS
18869 fi
18870 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18871 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
18872 if test $ac_cv_lib_ipc_shmat = yes; then
18873   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18874 fi
18875
18876     fi
18877   fi
18878
18879   # Check for libraries that X11R6 Xt/Xaw programs need.
18880   ac_save_LDFLAGS=$LDFLAGS
18881   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18882   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18883   # check for ICE first), but we must link in the order -lSM -lICE or
18884   # we get undefined symbols.  So assume we have SM if we have ICE.
18885   # These have to be linked with before -lX11, unlike the other
18886   # libraries we check for below, so use a different variable.
18887   # John Interrante, Karl Berry
18888   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18889 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
18890 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   ac_check_lib_save_LIBS=$LIBS
18894 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18895 cat >conftest.$ac_ext <<_ACEOF
18896 /* confdefs.h.  */
18897 _ACEOF
18898 cat confdefs.h >>conftest.$ac_ext
18899 cat >>conftest.$ac_ext <<_ACEOF
18900 /* end confdefs.h.  */
18901
18902 /* Override any gcc2 internal prototype to avoid an error.  */
18903 #ifdef __cplusplus
18904 extern "C"
18905 #endif
18906 /* We use char because int might match the return type of a gcc2
18907    builtin and then its argument prototype would still apply.  */
18908 char IceConnectionNumber ();
18909 int
18910 main ()
18911 {
18912 IceConnectionNumber ();
18913   ;
18914   return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext conftest$ac_exeext
18918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18919   (eval $ac_link) 2>conftest.er1
18920   ac_status=$?
18921   grep -v '^ *+' conftest.er1 >conftest.err
18922   rm -f conftest.er1
18923   cat conftest.err >&5
18924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925   (exit $ac_status); } &&
18926          { ac_try='test -z "$ac_c_werror_flag"
18927                          || test ! -s conftest.err'
18928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929   (eval $ac_try) 2>&5
18930   ac_status=$?
18931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932   (exit $ac_status); }; } &&
18933          { ac_try='test -s conftest$ac_exeext'
18934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935   (eval $ac_try) 2>&5
18936   ac_status=$?
18937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938   (exit $ac_status); }; }; then
18939   ac_cv_lib_ICE_IceConnectionNumber=yes
18940 else
18941   echo "$as_me: failed program was:" >&5
18942 sed 's/^/| /' conftest.$ac_ext >&5
18943
18944 ac_cv_lib_ICE_IceConnectionNumber=no
18945 fi
18946 rm -f conftest.err conftest.$ac_objext \
18947       conftest$ac_exeext conftest.$ac_ext
18948 LIBS=$ac_check_lib_save_LIBS
18949 fi
18950 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18951 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
18952 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18953   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18954 fi
18955
18956   LDFLAGS=$ac_save_LDFLAGS
18957
18958 fi
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988 for ac_header in \
18989         assert.h \
18990         fcntl.h \
18991         grp.h \
18992         pwd.h \
18993         libc.h \
18994         limits.h \
18995         stdarg.h \
18996         stdlib.h \
18997         stdint.h \
18998         string.h \
18999         termios.h \
19000         termcap.h \
19001         term.h \
19002         unistd.h \
19003         sys/bitypes.h \
19004         sys/byteorder.h \
19005         sys/ioctl.h \
19006         sys/select.h \
19007         sys/sockio.h \
19008         sys/time.h \
19009         sys/socket.h \
19010         arpa/nameser.h \
19011         resolv.h \
19012         mtio.h \
19013         sys/mtio.h \
19014         sys/tape.h \
19015         regex.h \
19016
19017 do
19018 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19019 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19020   echo "$as_me:$LINENO: checking for $ac_header" >&5
19021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19023   echo $ECHO_N "(cached) $ECHO_C" >&6
19024 fi
19025 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19026 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19027 else
19028   # Is the header compilable?
19029 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19030 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19032 /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037 $ac_includes_default
19038 #include <$ac_header>
19039 _ACEOF
19040 rm -f conftest.$ac_objext
19041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19042   (eval $ac_compile) 2>conftest.er1
19043   ac_status=$?
19044   grep -v '^ *+' conftest.er1 >conftest.err
19045   rm -f conftest.er1
19046   cat conftest.err >&5
19047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048   (exit $ac_status); } &&
19049          { ac_try='test -z "$ac_c_werror_flag"
19050                          || test ! -s conftest.err'
19051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19052   (eval $ac_try) 2>&5
19053   ac_status=$?
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); }; } &&
19056          { ac_try='test -s conftest.$ac_objext'
19057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058   (eval $ac_try) 2>&5
19059   ac_status=$?
19060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061   (exit $ac_status); }; }; then
19062   ac_header_compiler=yes
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_header_compiler=no
19068 fi
19069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19071 echo "${ECHO_T}$ac_header_compiler" >&6
19072
19073 # Is the header present?
19074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19076 cat >conftest.$ac_ext <<_ACEOF
19077 /* confdefs.h.  */
19078 _ACEOF
19079 cat confdefs.h >>conftest.$ac_ext
19080 cat >>conftest.$ac_ext <<_ACEOF
19081 /* end confdefs.h.  */
19082 #include <$ac_header>
19083 _ACEOF
19084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19085   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19086   ac_status=$?
19087   grep -v '^ *+' conftest.er1 >conftest.err
19088   rm -f conftest.er1
19089   cat conftest.err >&5
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); } >/dev/null; then
19092   if test -s conftest.err; then
19093     ac_cpp_err=$ac_c_preproc_warn_flag
19094     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19095   else
19096     ac_cpp_err=
19097   fi
19098 else
19099   ac_cpp_err=yes
19100 fi
19101 if test -z "$ac_cpp_err"; then
19102   ac_header_preproc=yes
19103 else
19104   echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107   ac_header_preproc=no
19108 fi
19109 rm -f conftest.err conftest.$ac_ext
19110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19111 echo "${ECHO_T}$ac_header_preproc" >&6
19112
19113 # So?  What about this header?
19114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19115   yes:no: )
19116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19120     ac_header_preproc=yes
19121     ;;
19122   no:yes:* )
19123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19135     (
19136       cat <<\_ASBOX
19137 ## ------------------------------------------ ##
19138 ## Report this to the AC_PACKAGE_NAME lists.  ##
19139 ## ------------------------------------------ ##
19140 _ASBOX
19141     ) |
19142       sed "s/^/$as_me: WARNING:     /" >&2
19143     ;;
19144 esac
19145 echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   eval "$as_ac_Header=\$ac_header_preproc"
19151 fi
19152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19154
19155 fi
19156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19157   cat >>confdefs.h <<_ACEOF
19158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19159 _ACEOF
19160
19161 fi
19162
19163 done
19164
19165 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19166 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19167 if test "${ac_cv_header_stdc+set}" = set; then
19168   echo $ECHO_N "(cached) $ECHO_C" >&6
19169 else
19170   cat >conftest.$ac_ext <<_ACEOF
19171 /* confdefs.h.  */
19172 _ACEOF
19173 cat confdefs.h >>conftest.$ac_ext
19174 cat >>conftest.$ac_ext <<_ACEOF
19175 /* end confdefs.h.  */
19176 #include <stdlib.h>
19177 #include <stdarg.h>
19178 #include <string.h>
19179 #include <float.h>
19180
19181 int
19182 main ()
19183 {
19184
19185   ;
19186   return 0;
19187 }
19188 _ACEOF
19189 rm -f conftest.$ac_objext
19190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19191   (eval $ac_compile) 2>conftest.er1
19192   ac_status=$?
19193   grep -v '^ *+' conftest.er1 >conftest.err
19194   rm -f conftest.er1
19195   cat conftest.err >&5
19196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197   (exit $ac_status); } &&
19198          { ac_try='test -z "$ac_c_werror_flag"
19199                          || test ! -s conftest.err'
19200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19201   (eval $ac_try) 2>&5
19202   ac_status=$?
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); }; } &&
19205          { ac_try='test -s conftest.$ac_objext'
19206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19207   (eval $ac_try) 2>&5
19208   ac_status=$?
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); }; }; then
19211   ac_cv_header_stdc=yes
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_header_stdc=no
19217 fi
19218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19219
19220 if test $ac_cv_header_stdc = yes; then
19221   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19222   cat >conftest.$ac_ext <<_ACEOF
19223 /* confdefs.h.  */
19224 _ACEOF
19225 cat confdefs.h >>conftest.$ac_ext
19226 cat >>conftest.$ac_ext <<_ACEOF
19227 /* end confdefs.h.  */
19228 #include <string.h>
19229
19230 _ACEOF
19231 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19232   $EGREP "memchr" >/dev/null 2>&1; then
19233   :
19234 else
19235   ac_cv_header_stdc=no
19236 fi
19237 rm -f conftest*
19238
19239 fi
19240
19241 if test $ac_cv_header_stdc = yes; then
19242   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19243   cat >conftest.$ac_ext <<_ACEOF
19244 /* confdefs.h.  */
19245 _ACEOF
19246 cat confdefs.h >>conftest.$ac_ext
19247 cat >>conftest.$ac_ext <<_ACEOF
19248 /* end confdefs.h.  */
19249 #include <stdlib.h>
19250
19251 _ACEOF
19252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19253   $EGREP "free" >/dev/null 2>&1; then
19254   :
19255 else
19256   ac_cv_header_stdc=no
19257 fi
19258 rm -f conftest*
19259
19260 fi
19261
19262 if test $ac_cv_header_stdc = yes; then
19263   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19264   if test "$cross_compiling" = yes; then
19265   :
19266 else
19267   cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273 #include <ctype.h>
19274 #if ((' ' & 0x0FF) == 0x020)
19275 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19276 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19277 #else
19278 # define ISLOWER(c) \
19279                    (('a' <= (c) && (c) <= 'i') \
19280                      || ('j' <= (c) && (c) <= 'r') \
19281                      || ('s' <= (c) && (c) <= 'z'))
19282 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19283 #endif
19284
19285 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19286 int
19287 main ()
19288 {
19289   int i;
19290   for (i = 0; i < 256; i++)
19291     if (XOR (islower (i), ISLOWER (i))
19292         || toupper (i) != TOUPPER (i))
19293       exit(2);
19294   exit (0);
19295 }
19296 _ACEOF
19297 rm -f conftest$ac_exeext
19298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19299   (eval $ac_link) 2>&5
19300   ac_status=$?
19301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19304   (eval $ac_try) 2>&5
19305   ac_status=$?
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); }; }; then
19308   :
19309 else
19310   echo "$as_me: program exited with status $ac_status" >&5
19311 echo "$as_me: failed program was:" >&5
19312 sed 's/^/| /' conftest.$ac_ext >&5
19313
19314 ( exit $ac_status )
19315 ac_cv_header_stdc=no
19316 fi
19317 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19318 fi
19319 fi
19320 fi
19321 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19322 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19323 if test $ac_cv_header_stdc = yes; then
19324
19325 cat >>confdefs.h <<\_ACEOF
19326 #define STDC_HEADERS 1
19327 _ACEOF
19328
19329 fi
19330
19331 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19332 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19333 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19334   echo $ECHO_N "(cached) $ECHO_C" >&6
19335 else
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 <sys/types.h>
19343 int
19344 main ()
19345 {
19346 return makedev(0, 0);
19347   ;
19348   return 0;
19349 }
19350 _ACEOF
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19353   (eval $ac_link) 2>conftest.er1
19354   ac_status=$?
19355   grep -v '^ *+' conftest.er1 >conftest.err
19356   rm -f conftest.er1
19357   cat conftest.err >&5
19358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19359   (exit $ac_status); } &&
19360          { ac_try='test -z "$ac_c_werror_flag"
19361                          || test ! -s conftest.err'
19362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363   (eval $ac_try) 2>&5
19364   ac_status=$?
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); }; } &&
19367          { ac_try='test -s conftest$ac_exeext'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; }; then
19373   ac_cv_header_sys_types_h_makedev=yes
19374 else
19375   echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 ac_cv_header_sys_types_h_makedev=no
19379 fi
19380 rm -f conftest.err conftest.$ac_objext \
19381       conftest$ac_exeext conftest.$ac_ext
19382
19383 fi
19384 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19385 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19386
19387 if test $ac_cv_header_sys_types_h_makedev = no; then
19388 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19389   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19390 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19391 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 fi
19394 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19395 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19396 else
19397   # Is the header compilable?
19398 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19399 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406 $ac_includes_default
19407 #include <sys/mkdev.h>
19408 _ACEOF
19409 rm -f conftest.$ac_objext
19410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19411   (eval $ac_compile) 2>conftest.er1
19412   ac_status=$?
19413   grep -v '^ *+' conftest.er1 >conftest.err
19414   rm -f conftest.er1
19415   cat conftest.err >&5
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); } &&
19418          { ac_try='test -z "$ac_c_werror_flag"
19419                          || test ! -s conftest.err'
19420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19421   (eval $ac_try) 2>&5
19422   ac_status=$?
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); }; } &&
19425          { ac_try='test -s conftest.$ac_objext'
19426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19427   (eval $ac_try) 2>&5
19428   ac_status=$?
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); }; }; then
19431   ac_header_compiler=yes
19432 else
19433   echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 ac_header_compiler=no
19437 fi
19438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19439 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19440 echo "${ECHO_T}$ac_header_compiler" >&6
19441
19442 # Is the header present?
19443 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19444 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
19445 cat >conftest.$ac_ext <<_ACEOF
19446 /* confdefs.h.  */
19447 _ACEOF
19448 cat confdefs.h >>conftest.$ac_ext
19449 cat >>conftest.$ac_ext <<_ACEOF
19450 /* end confdefs.h.  */
19451 #include <sys/mkdev.h>
19452 _ACEOF
19453 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19454   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } >/dev/null; then
19461   if test -s conftest.err; then
19462     ac_cpp_err=$ac_c_preproc_warn_flag
19463     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19464   else
19465     ac_cpp_err=
19466   fi
19467 else
19468   ac_cpp_err=yes
19469 fi
19470 if test -z "$ac_cpp_err"; then
19471   ac_header_preproc=yes
19472 else
19473   echo "$as_me: failed program was:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19475
19476   ac_header_preproc=no
19477 fi
19478 rm -f conftest.err conftest.$ac_ext
19479 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19480 echo "${ECHO_T}$ac_header_preproc" >&6
19481
19482 # So?  What about this header?
19483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19484   yes:no: )
19485     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19486 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19487     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19488 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19489     ac_header_preproc=yes
19490     ;;
19491   no:yes:* )
19492     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19493 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19494     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19495 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19496     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19497 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19498     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19499 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19500     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19501 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19502     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19503 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19504     (
19505       cat <<\_ASBOX
19506 ## ------------------------------------------ ##
19507 ## Report this to the AC_PACKAGE_NAME lists.  ##
19508 ## ------------------------------------------ ##
19509 _ASBOX
19510     ) |
19511       sed "s/^/$as_me: WARNING:     /" >&2
19512     ;;
19513 esac
19514 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19515 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19516 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19517   echo $ECHO_N "(cached) $ECHO_C" >&6
19518 else
19519   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19520 fi
19521 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19522 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19523
19524 fi
19525 if test $ac_cv_header_sys_mkdev_h = yes; then
19526
19527 cat >>confdefs.h <<\_ACEOF
19528 #define MAJOR_IN_MKDEV 1
19529 _ACEOF
19530
19531 fi
19532
19533
19534
19535   if test $ac_cv_header_sys_mkdev_h = no; then
19536     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19537   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19540   echo $ECHO_N "(cached) $ECHO_C" >&6
19541 fi
19542 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19543 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19544 else
19545   # Is the header compilable?
19546 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19547 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h.  */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h.  */
19554 $ac_includes_default
19555 #include <sys/sysmacros.h>
19556 _ACEOF
19557 rm -f conftest.$ac_objext
19558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19559   (eval $ac_compile) 2>conftest.er1
19560   ac_status=$?
19561   grep -v '^ *+' conftest.er1 >conftest.err
19562   rm -f conftest.er1
19563   cat conftest.err >&5
19564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19565   (exit $ac_status); } &&
19566          { ac_try='test -z "$ac_c_werror_flag"
19567                          || test ! -s conftest.err'
19568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19569   (eval $ac_try) 2>&5
19570   ac_status=$?
19571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572   (exit $ac_status); }; } &&
19573          { ac_try='test -s conftest.$ac_objext'
19574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19575   (eval $ac_try) 2>&5
19576   ac_status=$?
19577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578   (exit $ac_status); }; }; then
19579   ac_header_compiler=yes
19580 else
19581   echo "$as_me: failed program was:" >&5
19582 sed 's/^/| /' conftest.$ac_ext >&5
19583
19584 ac_header_compiler=no
19585 fi
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19587 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19588 echo "${ECHO_T}$ac_header_compiler" >&6
19589
19590 # Is the header present?
19591 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19592 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599 #include <sys/sysmacros.h>
19600 _ACEOF
19601 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19602   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19603   ac_status=$?
19604   grep -v '^ *+' conftest.er1 >conftest.err
19605   rm -f conftest.er1
19606   cat conftest.err >&5
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); } >/dev/null; then
19609   if test -s conftest.err; then
19610     ac_cpp_err=$ac_c_preproc_warn_flag
19611     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19612   else
19613     ac_cpp_err=
19614   fi
19615 else
19616   ac_cpp_err=yes
19617 fi
19618 if test -z "$ac_cpp_err"; then
19619   ac_header_preproc=yes
19620 else
19621   echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624   ac_header_preproc=no
19625 fi
19626 rm -f conftest.err conftest.$ac_ext
19627 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19628 echo "${ECHO_T}$ac_header_preproc" >&6
19629
19630 # So?  What about this header?
19631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19632   yes:no: )
19633     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19634 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19635     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19636 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19637     ac_header_preproc=yes
19638     ;;
19639   no:yes:* )
19640     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19641 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19642     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
19643 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
19644     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19645 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19646     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
19647 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19649 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19651 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19652     (
19653       cat <<\_ASBOX
19654 ## ------------------------------------------ ##
19655 ## Report this to the AC_PACKAGE_NAME lists.  ##
19656 ## ------------------------------------------ ##
19657 _ASBOX
19658     ) |
19659       sed "s/^/$as_me: WARNING:     /" >&2
19660     ;;
19661 esac
19662 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19663 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19664 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19665   echo $ECHO_N "(cached) $ECHO_C" >&6
19666 else
19667   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19668 fi
19669 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19670 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19671
19672 fi
19673 if test $ac_cv_header_sys_sysmacros_h = yes; then
19674
19675 cat >>confdefs.h <<\_ACEOF
19676 #define MAJOR_IN_SYSMACROS 1
19677 _ACEOF
19678
19679 fi
19680
19681
19682   fi
19683 fi
19684
19685
19686
19687
19688
19689
19690 ac_header_dirent=no
19691 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19692   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19693 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19694 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19695 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19696   echo $ECHO_N "(cached) $ECHO_C" >&6
19697 else
19698   cat >conftest.$ac_ext <<_ACEOF
19699 /* confdefs.h.  */
19700 _ACEOF
19701 cat confdefs.h >>conftest.$ac_ext
19702 cat >>conftest.$ac_ext <<_ACEOF
19703 /* end confdefs.h.  */
19704 #include <sys/types.h>
19705 #include <$ac_hdr>
19706
19707 int
19708 main ()
19709 {
19710 if ((DIR *) 0)
19711 return 0;
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext
19717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19718   (eval $ac_compile) 2>conftest.er1
19719   ac_status=$?
19720   grep -v '^ *+' conftest.er1 >conftest.err
19721   rm -f conftest.er1
19722   cat conftest.err >&5
19723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724   (exit $ac_status); } &&
19725          { ac_try='test -z "$ac_c_werror_flag"
19726                          || test ! -s conftest.err'
19727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728   (eval $ac_try) 2>&5
19729   ac_status=$?
19730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731   (exit $ac_status); }; } &&
19732          { ac_try='test -s conftest.$ac_objext'
19733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19734   (eval $ac_try) 2>&5
19735   ac_status=$?
19736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737   (exit $ac_status); }; }; then
19738   eval "$as_ac_Header=yes"
19739 else
19740   echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743 eval "$as_ac_Header=no"
19744 fi
19745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19746 fi
19747 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19748 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19750   cat >>confdefs.h <<_ACEOF
19751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19752 _ACEOF
19753
19754 ac_header_dirent=$ac_hdr; break
19755 fi
19756
19757 done
19758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19759 if test $ac_header_dirent = dirent.h; then
19760   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19762 if test "${ac_cv_search_opendir+set}" = set; then
19763   echo $ECHO_N "(cached) $ECHO_C" >&6
19764 else
19765   ac_func_search_save_LIBS=$LIBS
19766 ac_cv_search_opendir=no
19767 cat >conftest.$ac_ext <<_ACEOF
19768 /* confdefs.h.  */
19769 _ACEOF
19770 cat confdefs.h >>conftest.$ac_ext
19771 cat >>conftest.$ac_ext <<_ACEOF
19772 /* end confdefs.h.  */
19773
19774 /* Override any gcc2 internal prototype to avoid an error.  */
19775 #ifdef __cplusplus
19776 extern "C"
19777 #endif
19778 /* We use char because int might match the return type of a gcc2
19779    builtin and then its argument prototype would still apply.  */
19780 char opendir ();
19781 int
19782 main ()
19783 {
19784 opendir ();
19785   ;
19786   return 0;
19787 }
19788 _ACEOF
19789 rm -f conftest.$ac_objext conftest$ac_exeext
19790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19791   (eval $ac_link) 2>conftest.er1
19792   ac_status=$?
19793   grep -v '^ *+' conftest.er1 >conftest.err
19794   rm -f conftest.er1
19795   cat conftest.err >&5
19796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797   (exit $ac_status); } &&
19798          { ac_try='test -z "$ac_c_werror_flag"
19799                          || test ! -s conftest.err'
19800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801   (eval $ac_try) 2>&5
19802   ac_status=$?
19803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804   (exit $ac_status); }; } &&
19805          { ac_try='test -s conftest$ac_exeext'
19806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807   (eval $ac_try) 2>&5
19808   ac_status=$?
19809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810   (exit $ac_status); }; }; then
19811   ac_cv_search_opendir="none required"
19812 else
19813   echo "$as_me: failed program was:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19815
19816 fi
19817 rm -f conftest.err conftest.$ac_objext \
19818       conftest$ac_exeext conftest.$ac_ext
19819 if test "$ac_cv_search_opendir" = no; then
19820   for ac_lib in dir; do
19821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19822     cat >conftest.$ac_ext <<_ACEOF
19823 /* confdefs.h.  */
19824 _ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h.  */
19828
19829 /* Override any gcc2 internal prototype to avoid an error.  */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 /* We use char because int might match the return type of a gcc2
19834    builtin and then its argument prototype would still apply.  */
19835 char opendir ();
19836 int
19837 main ()
19838 {
19839 opendir ();
19840   ;
19841   return 0;
19842 }
19843 _ACEOF
19844 rm -f conftest.$ac_objext conftest$ac_exeext
19845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19846   (eval $ac_link) 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } &&
19853          { ac_try='test -z "$ac_c_werror_flag"
19854                          || test ! -s conftest.err'
19855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19856   (eval $ac_try) 2>&5
19857   ac_status=$?
19858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859   (exit $ac_status); }; } &&
19860          { ac_try='test -s conftest$ac_exeext'
19861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862   (eval $ac_try) 2>&5
19863   ac_status=$?
19864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865   (exit $ac_status); }; }; then
19866   ac_cv_search_opendir="-l$ac_lib"
19867 break
19868 else
19869   echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.$ac_ext >&5
19871
19872 fi
19873 rm -f conftest.err conftest.$ac_objext \
19874       conftest$ac_exeext conftest.$ac_ext
19875   done
19876 fi
19877 LIBS=$ac_func_search_save_LIBS
19878 fi
19879 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19880 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19881 if test "$ac_cv_search_opendir" != no; then
19882   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19883
19884 fi
19885
19886 else
19887   echo "$as_me:$LINENO: checking for library containing opendir" >&5
19888 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19889 if test "${ac_cv_search_opendir+set}" = set; then
19890   echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892   ac_func_search_save_LIBS=$LIBS
19893 ac_cv_search_opendir=no
19894 cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900
19901 /* Override any gcc2 internal prototype to avoid an error.  */
19902 #ifdef __cplusplus
19903 extern "C"
19904 #endif
19905 /* We use char because int might match the return type of a gcc2
19906    builtin and then its argument prototype would still apply.  */
19907 char opendir ();
19908 int
19909 main ()
19910 {
19911 opendir ();
19912   ;
19913   return 0;
19914 }
19915 _ACEOF
19916 rm -f conftest.$ac_objext conftest$ac_exeext
19917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19918   (eval $ac_link) 2>conftest.er1
19919   ac_status=$?
19920   grep -v '^ *+' conftest.er1 >conftest.err
19921   rm -f conftest.er1
19922   cat conftest.err >&5
19923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924   (exit $ac_status); } &&
19925          { ac_try='test -z "$ac_c_werror_flag"
19926                          || test ! -s conftest.err'
19927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19928   (eval $ac_try) 2>&5
19929   ac_status=$?
19930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); }; } &&
19932          { ac_try='test -s conftest$ac_exeext'
19933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19934   (eval $ac_try) 2>&5
19935   ac_status=$?
19936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937   (exit $ac_status); }; }; then
19938   ac_cv_search_opendir="none required"
19939 else
19940   echo "$as_me: failed program was:" >&5
19941 sed 's/^/| /' conftest.$ac_ext >&5
19942
19943 fi
19944 rm -f conftest.err conftest.$ac_objext \
19945       conftest$ac_exeext conftest.$ac_ext
19946 if test "$ac_cv_search_opendir" = no; then
19947   for ac_lib in x; do
19948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19949     cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955
19956 /* Override any gcc2 internal prototype to avoid an error.  */
19957 #ifdef __cplusplus
19958 extern "C"
19959 #endif
19960 /* We use char because int might match the return type of a gcc2
19961    builtin and then its argument prototype would still apply.  */
19962 char opendir ();
19963 int
19964 main ()
19965 {
19966 opendir ();
19967   ;
19968   return 0;
19969 }
19970 _ACEOF
19971 rm -f conftest.$ac_objext conftest$ac_exeext
19972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19973   (eval $ac_link) 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } &&
19980          { ac_try='test -z "$ac_c_werror_flag"
19981                          || test ! -s conftest.err'
19982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19983   (eval $ac_try) 2>&5
19984   ac_status=$?
19985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986   (exit $ac_status); }; } &&
19987          { ac_try='test -s conftest$ac_exeext'
19988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19989   (eval $ac_try) 2>&5
19990   ac_status=$?
19991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992   (exit $ac_status); }; }; then
19993   ac_cv_search_opendir="-l$ac_lib"
19994 break
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 fi
20000 rm -f conftest.err conftest.$ac_objext \
20001       conftest$ac_exeext conftest.$ac_ext
20002   done
20003 fi
20004 LIBS=$ac_func_search_save_LIBS
20005 fi
20006 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20007 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20008 if test "$ac_cv_search_opendir" != no; then
20009   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20010
20011 fi
20012
20013 fi
20014
20015 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20016 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20017 if test "${ac_cv_header_stat_broken+set}" = set; then
20018   echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020   cat >conftest.$ac_ext <<_ACEOF
20021 /* confdefs.h.  */
20022 _ACEOF
20023 cat confdefs.h >>conftest.$ac_ext
20024 cat >>conftest.$ac_ext <<_ACEOF
20025 /* end confdefs.h.  */
20026 #include <sys/types.h>
20027 #include <sys/stat.h>
20028
20029 #if defined(S_ISBLK) && defined(S_IFDIR)
20030 # if S_ISBLK (S_IFDIR)
20031 You lose.
20032 # endif
20033 #endif
20034
20035 #if defined(S_ISBLK) && defined(S_IFCHR)
20036 # if S_ISBLK (S_IFCHR)
20037 You lose.
20038 # endif
20039 #endif
20040
20041 #if defined(S_ISLNK) && defined(S_IFREG)
20042 # if S_ISLNK (S_IFREG)
20043 You lose.
20044 # endif
20045 #endif
20046
20047 #if defined(S_ISSOCK) && defined(S_IFREG)
20048 # if S_ISSOCK (S_IFREG)
20049 You lose.
20050 # endif
20051 #endif
20052
20053 _ACEOF
20054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20055   $EGREP "You lose" >/dev/null 2>&1; then
20056   ac_cv_header_stat_broken=yes
20057 else
20058   ac_cv_header_stat_broken=no
20059 fi
20060 rm -f conftest*
20061
20062 fi
20063 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20064 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20065 if test $ac_cv_header_stat_broken = yes; then
20066
20067 cat >>confdefs.h <<\_ACEOF
20068 #define STAT_MACROS_BROKEN 1
20069 _ACEOF
20070
20071 fi
20072
20073 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20074 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20075 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20076   echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078   cat >conftest.$ac_ext <<_ACEOF
20079 /* confdefs.h.  */
20080 _ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h.  */
20084 #include <sys/types.h>
20085 #include <sys/wait.h>
20086 #ifndef WEXITSTATUS
20087 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20088 #endif
20089 #ifndef WIFEXITED
20090 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20091 #endif
20092
20093 int
20094 main ()
20095 {
20096   int s;
20097   wait (&s);
20098   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20099   ;
20100   return 0;
20101 }
20102 _ACEOF
20103 rm -f conftest.$ac_objext
20104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20105   (eval $ac_compile) 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } &&
20112          { ac_try='test -z "$ac_c_werror_flag"
20113                          || test ! -s conftest.err'
20114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20115   (eval $ac_try) 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; } &&
20119          { ac_try='test -s conftest.$ac_objext'
20120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20121   (eval $ac_try) 2>&5
20122   ac_status=$?
20123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124   (exit $ac_status); }; }; then
20125   ac_cv_header_sys_wait_h=yes
20126 else
20127   echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20129
20130 ac_cv_header_sys_wait_h=no
20131 fi
20132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20133 fi
20134 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20135 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20136 if test $ac_cv_header_sys_wait_h = yes; then
20137
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_SYS_WAIT_H 1
20140 _ACEOF
20141
20142 fi
20143
20144 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20145 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20146 if test "${ac_cv_header_time+set}" = set; then
20147   echo $ECHO_N "(cached) $ECHO_C" >&6
20148 else
20149   cat >conftest.$ac_ext <<_ACEOF
20150 /* confdefs.h.  */
20151 _ACEOF
20152 cat confdefs.h >>conftest.$ac_ext
20153 cat >>conftest.$ac_ext <<_ACEOF
20154 /* end confdefs.h.  */
20155 #include <sys/types.h>
20156 #include <sys/time.h>
20157 #include <time.h>
20158
20159 int
20160 main ()
20161 {
20162 if ((struct tm *) 0)
20163 return 0;
20164   ;
20165   return 0;
20166 }
20167 _ACEOF
20168 rm -f conftest.$ac_objext
20169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20170   (eval $ac_compile) 2>conftest.er1
20171   ac_status=$?
20172   grep -v '^ *+' conftest.er1 >conftest.err
20173   rm -f conftest.er1
20174   cat conftest.err >&5
20175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176   (exit $ac_status); } &&
20177          { ac_try='test -z "$ac_c_werror_flag"
20178                          || test ! -s conftest.err'
20179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20180   (eval $ac_try) 2>&5
20181   ac_status=$?
20182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20183   (exit $ac_status); }; } &&
20184          { ac_try='test -s conftest.$ac_objext'
20185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186   (eval $ac_try) 2>&5
20187   ac_status=$?
20188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189   (exit $ac_status); }; }; then
20190   ac_cv_header_time=yes
20191 else
20192   echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_header_time=no
20196 fi
20197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20198 fi
20199 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20200 echo "${ECHO_T}$ac_cv_header_time" >&6
20201 if test $ac_cv_header_time = yes; then
20202
20203 cat >>confdefs.h <<\_ACEOF
20204 #define TIME_WITH_SYS_TIME 1
20205 _ACEOF
20206
20207 fi
20208
20209
20210 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20211 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20212 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20213   echo $ECHO_N "(cached) $ECHO_C" >&6
20214 else
20215   cat >conftest.$ac_ext <<_ACEOF
20216 /* confdefs.h.  */
20217 _ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h.  */
20221 $ac_includes_default
20222 int
20223 main ()
20224 {
20225 static struct stat ac_aggr;
20226 if (ac_aggr.st_blksize)
20227 return 0;
20228   ;
20229   return 0;
20230 }
20231 _ACEOF
20232 rm -f conftest.$ac_objext
20233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20234   (eval $ac_compile) 2>conftest.er1
20235   ac_status=$?
20236   grep -v '^ *+' conftest.er1 >conftest.err
20237   rm -f conftest.er1
20238   cat conftest.err >&5
20239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240   (exit $ac_status); } &&
20241          { ac_try='test -z "$ac_c_werror_flag"
20242                          || test ! -s conftest.err'
20243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244   (eval $ac_try) 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; } &&
20248          { ac_try='test -s conftest.$ac_objext'
20249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250   (eval $ac_try) 2>&5
20251   ac_status=$?
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); }; }; then
20254   ac_cv_member_struct_stat_st_blksize=yes
20255 else
20256   echo "$as_me: failed program was:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20258
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265 $ac_includes_default
20266 int
20267 main ()
20268 {
20269 static struct stat ac_aggr;
20270 if (sizeof ac_aggr.st_blksize)
20271 return 0;
20272   ;
20273   return 0;
20274 }
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278   (eval $ac_compile) 2>conftest.er1
20279   ac_status=$?
20280   grep -v '^ *+' conftest.er1 >conftest.err
20281   rm -f conftest.er1
20282   cat conftest.err >&5
20283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284   (exit $ac_status); } &&
20285          { ac_try='test -z "$ac_c_werror_flag"
20286                          || test ! -s conftest.err'
20287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288   (eval $ac_try) 2>&5
20289   ac_status=$?
20290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); }; } &&
20292          { ac_try='test -s conftest.$ac_objext'
20293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294   (eval $ac_try) 2>&5
20295   ac_status=$?
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); }; }; then
20298   ac_cv_member_struct_stat_st_blksize=yes
20299 else
20300   echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20302
20303 ac_cv_member_struct_stat_st_blksize=no
20304 fi
20305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20306 fi
20307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308 fi
20309 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20310 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20311 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20312
20313 cat >>confdefs.h <<_ACEOF
20314 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20315 _ACEOF
20316
20317
20318 cat >>confdefs.h <<\_ACEOF
20319 #define HAVE_ST_BLKSIZE 1
20320 _ACEOF
20321
20322 fi
20323
20324
20325 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20326 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20327 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20328   echo $ECHO_N "(cached) $ECHO_C" >&6
20329 else
20330   cat >conftest.$ac_ext <<_ACEOF
20331 /* confdefs.h.  */
20332 _ACEOF
20333 cat confdefs.h >>conftest.$ac_ext
20334 cat >>conftest.$ac_ext <<_ACEOF
20335 /* end confdefs.h.  */
20336 $ac_includes_default
20337 int
20338 main ()
20339 {
20340 static struct stat ac_aggr;
20341 if (ac_aggr.st_blocks)
20342 return 0;
20343   ;
20344   return 0;
20345 }
20346 _ACEOF
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349   (eval $ac_compile) 2>conftest.er1
20350   ac_status=$?
20351   grep -v '^ *+' conftest.er1 >conftest.err
20352   rm -f conftest.er1
20353   cat conftest.err >&5
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); } &&
20356          { ac_try='test -z "$ac_c_werror_flag"
20357                          || test ! -s conftest.err'
20358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20359   (eval $ac_try) 2>&5
20360   ac_status=$?
20361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362   (exit $ac_status); }; } &&
20363          { ac_try='test -s conftest.$ac_objext'
20364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20365   (eval $ac_try) 2>&5
20366   ac_status=$?
20367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20368   (exit $ac_status); }; }; then
20369   ac_cv_member_struct_stat_st_blocks=yes
20370 else
20371   echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20373
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380 $ac_includes_default
20381 int
20382 main ()
20383 {
20384 static struct stat ac_aggr;
20385 if (sizeof ac_aggr.st_blocks)
20386 return 0;
20387   ;
20388   return 0;
20389 }
20390 _ACEOF
20391 rm -f conftest.$ac_objext
20392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20393   (eval $ac_compile) 2>conftest.er1
20394   ac_status=$?
20395   grep -v '^ *+' conftest.er1 >conftest.err
20396   rm -f conftest.er1
20397   cat conftest.err >&5
20398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399   (exit $ac_status); } &&
20400          { ac_try='test -z "$ac_c_werror_flag"
20401                          || test ! -s conftest.err'
20402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20403   (eval $ac_try) 2>&5
20404   ac_status=$?
20405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406   (exit $ac_status); }; } &&
20407          { ac_try='test -s conftest.$ac_objext'
20408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20409   (eval $ac_try) 2>&5
20410   ac_status=$?
20411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412   (exit $ac_status); }; }; then
20413   ac_cv_member_struct_stat_st_blocks=yes
20414 else
20415   echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ac_cv_member_struct_stat_st_blocks=no
20419 fi
20420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20421 fi
20422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20423 fi
20424 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20425 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20426 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20427
20428 cat >>confdefs.h <<_ACEOF
20429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20430 _ACEOF
20431
20432
20433 cat >>confdefs.h <<\_ACEOF
20434 #define HAVE_ST_BLOCKS 1
20435 _ACEOF
20436
20437 else
20438   case $LIBOBJS in
20439     "fileblocks.$ac_objext"   | \
20440   *" fileblocks.$ac_objext"   | \
20441     "fileblocks.$ac_objext "* | \
20442   *" fileblocks.$ac_objext "* ) ;;
20443   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20444 esac
20445
20446 fi
20447
20448
20449 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20450 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20451 if test "${ac_cv_struct_tm+set}" = set; then
20452   echo $ECHO_N "(cached) $ECHO_C" >&6
20453 else
20454   cat >conftest.$ac_ext <<_ACEOF
20455 /* confdefs.h.  */
20456 _ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h.  */
20460 #include <sys/types.h>
20461 #include <time.h>
20462
20463 int
20464 main ()
20465 {
20466 struct tm *tp; tp->tm_sec;
20467   ;
20468   return 0;
20469 }
20470 _ACEOF
20471 rm -f conftest.$ac_objext
20472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20473   (eval $ac_compile) 2>conftest.er1
20474   ac_status=$?
20475   grep -v '^ *+' conftest.er1 >conftest.err
20476   rm -f conftest.er1
20477   cat conftest.err >&5
20478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479   (exit $ac_status); } &&
20480          { ac_try='test -z "$ac_c_werror_flag"
20481                          || test ! -s conftest.err'
20482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483   (eval $ac_try) 2>&5
20484   ac_status=$?
20485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486   (exit $ac_status); }; } &&
20487          { ac_try='test -s conftest.$ac_objext'
20488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489   (eval $ac_try) 2>&5
20490   ac_status=$?
20491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492   (exit $ac_status); }; }; then
20493   ac_cv_struct_tm=time.h
20494 else
20495   echo "$as_me: failed program was:" >&5
20496 sed 's/^/| /' conftest.$ac_ext >&5
20497
20498 ac_cv_struct_tm=sys/time.h
20499 fi
20500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20501 fi
20502 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20503 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20504 if test $ac_cv_struct_tm = sys/time.h; then
20505
20506 cat >>confdefs.h <<\_ACEOF
20507 #define TM_IN_SYS_TIME 1
20508 _ACEOF
20509
20510 fi
20511
20512 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20513 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20514 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20515   echo $ECHO_N "(cached) $ECHO_C" >&6
20516 else
20517   cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 #include <sys/types.h>
20524 #include <$ac_cv_struct_tm>
20525
20526
20527 int
20528 main ()
20529 {
20530 static struct tm ac_aggr;
20531 if (ac_aggr.tm_zone)
20532 return 0;
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20539   (eval $ac_compile) 2>conftest.er1
20540   ac_status=$?
20541   grep -v '^ *+' conftest.er1 >conftest.err
20542   rm -f conftest.er1
20543   cat conftest.err >&5
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); } &&
20546          { ac_try='test -z "$ac_c_werror_flag"
20547                          || test ! -s conftest.err'
20548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549   (eval $ac_try) 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; } &&
20553          { ac_try='test -s conftest.$ac_objext'
20554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555   (eval $ac_try) 2>&5
20556   ac_status=$?
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); }; }; then
20559   ac_cv_member_struct_tm_tm_zone=yes
20560 else
20561   echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h.  */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h.  */
20570 #include <sys/types.h>
20571 #include <$ac_cv_struct_tm>
20572
20573
20574 int
20575 main ()
20576 {
20577 static struct tm ac_aggr;
20578 if (sizeof ac_aggr.tm_zone)
20579 return 0;
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 rm -f conftest.$ac_objext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20586   (eval $ac_compile) 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } &&
20593          { ac_try='test -z "$ac_c_werror_flag"
20594                          || test ! -s conftest.err'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; } &&
20600          { ac_try='test -s conftest.$ac_objext'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; }; then
20606   ac_cv_member_struct_tm_tm_zone=yes
20607 else
20608   echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 ac_cv_member_struct_tm_tm_zone=no
20612 fi
20613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20614 fi
20615 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20616 fi
20617 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20618 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20619 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define HAVE_STRUCT_TM_TM_ZONE 1
20623 _ACEOF
20624
20625
20626 fi
20627
20628 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20629
20630 cat >>confdefs.h <<\_ACEOF
20631 #define HAVE_TM_ZONE 1
20632 _ACEOF
20633
20634 else
20635   echo "$as_me:$LINENO: checking for tzname" >&5
20636 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
20637 if test "${ac_cv_var_tzname+set}" = set; then
20638   echo $ECHO_N "(cached) $ECHO_C" >&6
20639 else
20640   cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h.  */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h.  */
20646 #include <time.h>
20647 #ifndef tzname /* For SGI.  */
20648 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
20649 #endif
20650
20651 int
20652 main ()
20653 {
20654 atoi(*tzname);
20655   ;
20656   return 0;
20657 }
20658 _ACEOF
20659 rm -f conftest.$ac_objext conftest$ac_exeext
20660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20661   (eval $ac_link) 2>conftest.er1
20662   ac_status=$?
20663   grep -v '^ *+' conftest.er1 >conftest.err
20664   rm -f conftest.er1
20665   cat conftest.err >&5
20666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667   (exit $ac_status); } &&
20668          { ac_try='test -z "$ac_c_werror_flag"
20669                          || test ! -s conftest.err'
20670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671   (eval $ac_try) 2>&5
20672   ac_status=$?
20673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674   (exit $ac_status); }; } &&
20675          { ac_try='test -s conftest$ac_exeext'
20676   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20677   (eval $ac_try) 2>&5
20678   ac_status=$?
20679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680   (exit $ac_status); }; }; then
20681   ac_cv_var_tzname=yes
20682 else
20683   echo "$as_me: failed program was:" >&5
20684 sed 's/^/| /' conftest.$ac_ext >&5
20685
20686 ac_cv_var_tzname=no
20687 fi
20688 rm -f conftest.err conftest.$ac_objext \
20689       conftest$ac_exeext conftest.$ac_ext
20690 fi
20691 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20692 echo "${ECHO_T}$ac_cv_var_tzname" >&6
20693   if test $ac_cv_var_tzname = yes; then
20694
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_TZNAME 1
20697 _ACEOF
20698
20699   fi
20700 fi
20701
20702
20703 echo "$as_me:$LINENO: checking for utime.h" >&5
20704 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
20705 if test "${ba_cv_header_utime_h+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708   cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h.  */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h.  */
20714
20715 #include <sys/types.h>
20716 #include <utime.h>
20717 int
20718 main ()
20719 {
20720 struct utimbuf foo
20721   ;
20722   return 0;
20723 }
20724 _ACEOF
20725 rm -f conftest.$ac_objext
20726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20727   (eval $ac_compile) 2>conftest.er1
20728   ac_status=$?
20729   grep -v '^ *+' conftest.er1 >conftest.err
20730   rm -f conftest.er1
20731   cat conftest.err >&5
20732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733   (exit $ac_status); } &&
20734          { ac_try='test -z "$ac_c_werror_flag"
20735                          || test ! -s conftest.err'
20736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737   (eval $ac_try) 2>&5
20738   ac_status=$?
20739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740   (exit $ac_status); }; } &&
20741          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20747   ba_cv_header_utime_h=yes
20748 else
20749   echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20751
20752 ba_cv_header_utime_h=no
20753 fi
20754 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20755 fi
20756 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20757 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
20758 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
20759 #define HAVE_UTIME_H 1
20760 _ACEOF
20761
20762
20763 echo "$as_me:$LINENO: checking for socklen_t" >&5
20764 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
20765 if test "${ba_cv_header_socklen_t+set}" = set; then
20766   echo $ECHO_N "(cached) $ECHO_C" >&6
20767 else
20768   cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h.  */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h.  */
20774
20775 #include <sys/types.h>
20776 #include <sys/socket.h>
20777 int
20778 main ()
20779 {
20780 socklen_t x
20781   ;
20782   return 0;
20783 }
20784 _ACEOF
20785 rm -f conftest.$ac_objext
20786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20787   (eval $ac_compile) 2>conftest.er1
20788   ac_status=$?
20789   grep -v '^ *+' conftest.er1 >conftest.err
20790   rm -f conftest.er1
20791   cat conftest.err >&5
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); } &&
20794          { ac_try='test -z "$ac_c_werror_flag"
20795                          || test ! -s conftest.err'
20796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20797   (eval $ac_try) 2>&5
20798   ac_status=$?
20799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800   (exit $ac_status); }; } &&
20801          { ac_try='test -s conftest.$ac_objext'
20802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803   (eval $ac_try) 2>&5
20804   ac_status=$?
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); }; }; then
20807   ba_cv_header_socklen_t=yes
20808 else
20809   echo "$as_me: failed program was:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20811
20812 ba_cv_header_socklen_t=no
20813 fi
20814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20815 fi
20816 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20817 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
20818 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20819 #define HAVE_SOCKLEN_T 1
20820 _ACEOF
20821
20822
20823 echo "$as_me:$LINENO: checking for bigendian" >&5
20824 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
20825 if test "${ba_cv_bigendian+set}" = set; then
20826   echo $ECHO_N "(cached) $ECHO_C" >&6
20827 else
20828   if test "$cross_compiling" = yes; then
20829   ba_cv_bigendian=no
20830 else
20831   cat >conftest.$ac_ext <<_ACEOF
20832 /* confdefs.h.  */
20833 _ACEOF
20834 cat confdefs.h >>conftest.$ac_ext
20835 cat >>conftest.$ac_ext <<_ACEOF
20836 /* end confdefs.h.  */
20837 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20838 _ACEOF
20839 rm -f conftest$ac_exeext
20840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20841   (eval $ac_link) 2>&5
20842   ac_status=$?
20843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20846   (eval $ac_try) 2>&5
20847   ac_status=$?
20848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849   (exit $ac_status); }; }; then
20850   ba_cv_bigendian=yes
20851 else
20852   echo "$as_me: program exited with status $ac_status" >&5
20853 echo "$as_me: failed program was:" >&5
20854 sed 's/^/| /' conftest.$ac_ext >&5
20855
20856 ( exit $ac_status )
20857 ba_cv_bigendian=no
20858 fi
20859 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20860 fi
20861 fi
20862 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20863 echo "${ECHO_T}$ba_cv_bigendian" >&6
20864 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20865 #define HAVE_BIGENDIAN 1
20866 _ACEOF
20867
20868
20869 ac_ext=cc
20870 ac_cpp='$CXXCPP $CPPFLAGS'
20871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20874
20875
20876 echo "$as_me:$LINENO: checking for typeof" >&5
20877 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
20878 if test "${ba_cv_have_typeof+set}" = set; then
20879   echo $ECHO_N "(cached) $ECHO_C" >&6
20880 else
20881   if test "$cross_compiling" = yes; then
20882   ba_cv_have_typeof=no
20883 else
20884   cat >conftest.$ac_ext <<_ACEOF
20885 /* confdefs.h.  */
20886 _ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h.  */
20890 main(){char *a = 0; a = (typeof a)a;}
20891 _ACEOF
20892 rm -f conftest$ac_exeext
20893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20894   (eval $ac_link) 2>&5
20895   ac_status=$?
20896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20897   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20899   (eval $ac_try) 2>&5
20900   ac_status=$?
20901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902   (exit $ac_status); }; }; then
20903   ba_cv_have_typeof=yes
20904 else
20905   echo "$as_me: program exited with status $ac_status" >&5
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20908
20909 ( exit $ac_status )
20910 ba_cv_have_typeof=no
20911 fi
20912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20913 fi
20914 fi
20915 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20916 echo "${ECHO_T}$ba_cv_have_typeof" >&6
20917 test $ba_cv_have_typeof = yes &&
20918 cat >>confdefs.h <<\_ACEOF
20919 #define HAVE_TYPEOF 1
20920 _ACEOF
20921
20922 ac_ext=c
20923 ac_cpp='$CPP $CPPFLAGS'
20924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20927
20928
20929 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20930 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20931 if test "${ac_cv_c_const+set}" = set; then
20932   echo $ECHO_N "(cached) $ECHO_C" >&6
20933 else
20934   cat >conftest.$ac_ext <<_ACEOF
20935 /* confdefs.h.  */
20936 _ACEOF
20937 cat confdefs.h >>conftest.$ac_ext
20938 cat >>conftest.$ac_ext <<_ACEOF
20939 /* end confdefs.h.  */
20940
20941 int
20942 main ()
20943 {
20944 /* FIXME: Include the comments suggested by Paul. */
20945 #ifndef __cplusplus
20946   /* Ultrix mips cc rejects this.  */
20947   typedef int charset[2];
20948   const charset x;
20949   /* SunOS 4.1.1 cc rejects this.  */
20950   char const *const *ccp;
20951   char **p;
20952   /* NEC SVR4.0.2 mips cc rejects this.  */
20953   struct point {int x, y;};
20954   static struct point const zero = {0,0};
20955   /* AIX XL C 1.02.0.0 rejects this.
20956      It does not let you subtract one const X* pointer from another in
20957      an arm of an if-expression whose if-part is not a constant
20958      expression */
20959   const char *g = "string";
20960   ccp = &g + (g ? g-g : 0);
20961   /* HPUX 7.0 cc rejects these. */
20962   ++ccp;
20963   p = (char**) ccp;
20964   ccp = (char const *const *) p;
20965   { /* SCO 3.2v4 cc rejects this.  */
20966     char *t;
20967     char const *s = 0 ? (char *) 0 : (char const *) 0;
20968
20969     *t++ = 0;
20970   }
20971   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20972     int x[] = {25, 17};
20973     const int *foo = &x[0];
20974     ++foo;
20975   }
20976   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20977     typedef const int *iptr;
20978     iptr p = 0;
20979     ++p;
20980   }
20981   { /* AIX XL C 1.02.0.0 rejects this saying
20982        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20983     struct s { int j; const int *ap[3]; };
20984     struct s *b; b->j = 5;
20985   }
20986   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20987     const int foo = 10;
20988   }
20989 #endif
20990
20991   ;
20992   return 0;
20993 }
20994 _ACEOF
20995 rm -f conftest.$ac_objext
20996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20997   (eval $ac_compile) 2>conftest.er1
20998   ac_status=$?
20999   grep -v '^ *+' conftest.er1 >conftest.err
21000   rm -f conftest.er1
21001   cat conftest.err >&5
21002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003   (exit $ac_status); } &&
21004          { ac_try='test -z "$ac_c_werror_flag"
21005                          || test ! -s conftest.err'
21006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21007   (eval $ac_try) 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; } &&
21011          { ac_try='test -s conftest.$ac_objext'
21012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21013   (eval $ac_try) 2>&5
21014   ac_status=$?
21015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016   (exit $ac_status); }; }; then
21017   ac_cv_c_const=yes
21018 else
21019   echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ac_cv_c_const=no
21023 fi
21024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21025 fi
21026 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21027 echo "${ECHO_T}$ac_cv_c_const" >&6
21028 if test $ac_cv_c_const = no; then
21029
21030 cat >>confdefs.h <<\_ACEOF
21031 #define const
21032 _ACEOF
21033
21034 fi
21035
21036
21037
21038 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21039 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21040 fstype=no
21041 # The order of these tests is important.
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h.  */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h.  */
21048 #include <sys/statvfs.h>
21049 #include <sys/fstyp.h>
21050 _ACEOF
21051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21052   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } >/dev/null; then
21059   if test -s conftest.err; then
21060     ac_cpp_err=$ac_c_preproc_warn_flag
21061     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21062   else
21063     ac_cpp_err=
21064   fi
21065 else
21066   ac_cpp_err=yes
21067 fi
21068 if test -z "$ac_cpp_err"; then
21069   cat >>confdefs.h <<\_ACEOF
21070 #define FSTYPE_STATVFS 1
21071 _ACEOF
21072  fstype=SVR4
21073 else
21074   echo "$as_me: failed program was:" >&5
21075 sed 's/^/| /' conftest.$ac_ext >&5
21076
21077
21078 fi
21079 rm -f conftest.err conftest.$ac_ext
21080 if test $fstype = no; then
21081 cat >conftest.$ac_ext <<_ACEOF
21082 /* confdefs.h.  */
21083 _ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h.  */
21087 #include <sys/statfs.h>
21088 #include <sys/fstyp.h>
21089 _ACEOF
21090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21092   ac_status=$?
21093   grep -v '^ *+' conftest.er1 >conftest.err
21094   rm -f conftest.er1
21095   cat conftest.err >&5
21096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097   (exit $ac_status); } >/dev/null; then
21098   if test -s conftest.err; then
21099     ac_cpp_err=$ac_c_preproc_warn_flag
21100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21101   else
21102     ac_cpp_err=
21103   fi
21104 else
21105   ac_cpp_err=yes
21106 fi
21107 if test -z "$ac_cpp_err"; then
21108   cat >>confdefs.h <<\_ACEOF
21109 #define FSTYPE_USG_STATFS 1
21110 _ACEOF
21111  fstype=SVR3
21112 else
21113   echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21115
21116
21117 fi
21118 rm -f conftest.err conftest.$ac_ext
21119 fi
21120 if test $fstype = no; then
21121 cat >conftest.$ac_ext <<_ACEOF
21122 /* confdefs.h.  */
21123 _ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h.  */
21127 #include <sys/statfs.h>
21128 #include <sys/vmount.h>
21129 _ACEOF
21130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21132   ac_status=$?
21133   grep -v '^ *+' conftest.er1 >conftest.err
21134   rm -f conftest.er1
21135   cat conftest.err >&5
21136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137   (exit $ac_status); } >/dev/null; then
21138   if test -s conftest.err; then
21139     ac_cpp_err=$ac_c_preproc_warn_flag
21140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21141   else
21142     ac_cpp_err=
21143   fi
21144 else
21145   ac_cpp_err=yes
21146 fi
21147 if test -z "$ac_cpp_err"; then
21148   cat >>confdefs.h <<\_ACEOF
21149 #define FSTYPE_AIX_STATFS 1
21150 _ACEOF
21151  fstype=AIX
21152 else
21153   echo "$as_me: failed program was:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21155
21156
21157 fi
21158 rm -f conftest.err conftest.$ac_ext
21159 fi
21160 if test $fstype = no; then
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 #include <mntent.h>
21168 _ACEOF
21169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21171   ac_status=$?
21172   grep -v '^ *+' conftest.er1 >conftest.err
21173   rm -f conftest.er1
21174   cat conftest.err >&5
21175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176   (exit $ac_status); } >/dev/null; then
21177   if test -s conftest.err; then
21178     ac_cpp_err=$ac_c_preproc_warn_flag
21179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21180   else
21181     ac_cpp_err=
21182   fi
21183 else
21184   ac_cpp_err=yes
21185 fi
21186 if test -z "$ac_cpp_err"; then
21187   cat >>confdefs.h <<\_ACEOF
21188 #define FSTYPE_MNTENT 1
21189 _ACEOF
21190  fstype=4.3BSD
21191 else
21192   echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.$ac_ext >&5
21194
21195
21196 fi
21197 rm -f conftest.err conftest.$ac_ext
21198 fi
21199 if test $fstype = no; then
21200 cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h.  */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h.  */
21206 #include <sys/mount.h>
21207
21208 _ACEOF
21209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210   $EGREP "f_type;" >/dev/null 2>&1; then
21211   cat >>confdefs.h <<\_ACEOF
21212 #define FSTYPE_STATFS 1
21213 _ACEOF
21214  fstype=4.4BSD/OSF1
21215 fi
21216 rm -f conftest*
21217
21218 fi
21219 if test $fstype = no; then
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h.  */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h.  */
21226 #include <sys/mount.h>
21227 #include <sys/fs_types.h>
21228 _ACEOF
21229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21230   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21231   ac_status=$?
21232   grep -v '^ *+' conftest.er1 >conftest.err
21233   rm -f conftest.er1
21234   cat conftest.err >&5
21235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236   (exit $ac_status); } >/dev/null; then
21237   if test -s conftest.err; then
21238     ac_cpp_err=$ac_c_preproc_warn_flag
21239     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21240   else
21241     ac_cpp_err=
21242   fi
21243 else
21244   ac_cpp_err=yes
21245 fi
21246 if test -z "$ac_cpp_err"; then
21247   cat >>confdefs.h <<\_ACEOF
21248 #define FSTYPE_GETMNT 1
21249 _ACEOF
21250  fstype=Ultrix
21251 else
21252   echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255
21256 fi
21257 rm -f conftest.err conftest.$ac_ext
21258 fi
21259 echo "$as_me:$LINENO: result: $fstype" >&5
21260 echo "${ECHO_T}$fstype" >&6
21261
21262 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21263   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21264 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21265 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21266   echo $ECHO_N "(cached) $ECHO_C" >&6
21267 fi
21268 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21269 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21270 else
21271   # Is the header compilable?
21272 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21273 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21274 cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 $ac_includes_default
21281 #include <sys/statvfs.h>
21282 _ACEOF
21283 rm -f conftest.$ac_objext
21284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21285   (eval $ac_compile) 2>conftest.er1
21286   ac_status=$?
21287   grep -v '^ *+' conftest.er1 >conftest.err
21288   rm -f conftest.er1
21289   cat conftest.err >&5
21290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291   (exit $ac_status); } &&
21292          { ac_try='test -z "$ac_c_werror_flag"
21293                          || test ! -s conftest.err'
21294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21295   (eval $ac_try) 2>&5
21296   ac_status=$?
21297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298   (exit $ac_status); }; } &&
21299          { ac_try='test -s conftest.$ac_objext'
21300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301   (eval $ac_try) 2>&5
21302   ac_status=$?
21303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304   (exit $ac_status); }; }; then
21305   ac_header_compiler=yes
21306 else
21307   echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21309
21310 ac_header_compiler=no
21311 fi
21312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21313 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21314 echo "${ECHO_T}$ac_header_compiler" >&6
21315
21316 # Is the header present?
21317 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21318 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21319 cat >conftest.$ac_ext <<_ACEOF
21320 /* confdefs.h.  */
21321 _ACEOF
21322 cat confdefs.h >>conftest.$ac_ext
21323 cat >>conftest.$ac_ext <<_ACEOF
21324 /* end confdefs.h.  */
21325 #include <sys/statvfs.h>
21326 _ACEOF
21327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21329   ac_status=$?
21330   grep -v '^ *+' conftest.er1 >conftest.err
21331   rm -f conftest.er1
21332   cat conftest.err >&5
21333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334   (exit $ac_status); } >/dev/null; then
21335   if test -s conftest.err; then
21336     ac_cpp_err=$ac_c_preproc_warn_flag
21337     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21338   else
21339     ac_cpp_err=
21340   fi
21341 else
21342   ac_cpp_err=yes
21343 fi
21344 if test -z "$ac_cpp_err"; then
21345   ac_header_preproc=yes
21346 else
21347   echo "$as_me: failed program was:" >&5
21348 sed 's/^/| /' conftest.$ac_ext >&5
21349
21350   ac_header_preproc=no
21351 fi
21352 rm -f conftest.err conftest.$ac_ext
21353 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6
21355
21356 # So?  What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21358   yes:no: )
21359     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21360 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21361     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21362 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21363     ac_header_preproc=yes
21364     ;;
21365   no:yes:* )
21366     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21367 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21368     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21369 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21370     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21371 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21372     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21373 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21374     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21375 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21376     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21377 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21378     (
21379       cat <<\_ASBOX
21380 ## ------------------------------------------ ##
21381 ## Report this to the AC_PACKAGE_NAME lists.  ##
21382 ## ------------------------------------------ ##
21383 _ASBOX
21384     ) |
21385       sed "s/^/$as_me: WARNING:     /" >&2
21386     ;;
21387 esac
21388 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21389 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21390 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21391   echo $ECHO_N "(cached) $ECHO_C" >&6
21392 else
21393   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21394 fi
21395 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21396 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21397
21398 fi
21399 if test $ac_cv_header_sys_statvfs_h = yes; then
21400
21401 cat >>confdefs.h <<\_ACEOF
21402 #define HAVE_SYS_STATVFS_H 1
21403 _ACEOF
21404
21405 fi
21406
21407
21408
21409 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21410 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21411 if test "${ac_cv_type_signal+set}" = set; then
21412   echo $ECHO_N "(cached) $ECHO_C" >&6
21413 else
21414   cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h.  */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h.  */
21420 #include <sys/types.h>
21421 #include <signal.h>
21422 #ifdef signal
21423 # undef signal
21424 #endif
21425 #ifdef __cplusplus
21426 extern "C" void (*signal (int, void (*)(int)))(int);
21427 #else
21428 void (*signal ()) ();
21429 #endif
21430
21431 int
21432 main ()
21433 {
21434 int i;
21435   ;
21436   return 0;
21437 }
21438 _ACEOF
21439 rm -f conftest.$ac_objext
21440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441   (eval $ac_compile) 2>conftest.er1
21442   ac_status=$?
21443   grep -v '^ *+' conftest.er1 >conftest.err
21444   rm -f conftest.er1
21445   cat conftest.err >&5
21446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); } &&
21448          { ac_try='test -z "$ac_c_werror_flag"
21449                          || test ! -s conftest.err'
21450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451   (eval $ac_try) 2>&5
21452   ac_status=$?
21453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454   (exit $ac_status); }; } &&
21455          { ac_try='test -s conftest.$ac_objext'
21456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457   (eval $ac_try) 2>&5
21458   ac_status=$?
21459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460   (exit $ac_status); }; }; then
21461   ac_cv_type_signal=void
21462 else
21463   echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 ac_cv_type_signal=int
21467 fi
21468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21469 fi
21470 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21471 echo "${ECHO_T}$ac_cv_type_signal" >&6
21472
21473 cat >>confdefs.h <<_ACEOF
21474 #define RETSIGTYPE $ac_cv_type_signal
21475 _ACEOF
21476
21477
21478
21479   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21480 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21481   if test "${bash_cv_signal_vintage+set}" = set; then
21482   echo $ECHO_N "(cached) $ECHO_C" >&6
21483 else
21484
21485     cat >conftest.$ac_ext <<_ACEOF
21486 /* confdefs.h.  */
21487 _ACEOF
21488 cat confdefs.h >>conftest.$ac_ext
21489 cat >>conftest.$ac_ext <<_ACEOF
21490 /* end confdefs.h.  */
21491 #include <signal.h>
21492 int
21493 main ()
21494 {
21495
21496       sigset_t ss;
21497       struct sigaction sa;
21498       sigemptyset(&ss); sigsuspend(&ss);
21499       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21500       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21501
21502   ;
21503   return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21508   (eval $ac_link) 2>conftest.er1
21509   ac_status=$?
21510   grep -v '^ *+' conftest.er1 >conftest.err
21511   rm -f conftest.er1
21512   cat conftest.err >&5
21513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21514   (exit $ac_status); } &&
21515          { ac_try='test -z "$ac_c_werror_flag"
21516                          || test ! -s conftest.err'
21517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21518   (eval $ac_try) 2>&5
21519   ac_status=$?
21520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521   (exit $ac_status); }; } &&
21522          { ac_try='test -s conftest$ac_exeext'
21523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21524   (eval $ac_try) 2>&5
21525   ac_status=$?
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); }; }; then
21528   bash_cv_signal_vintage="posix"
21529 else
21530   echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533
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 #include <signal.h>
21541 int
21542 main ()
21543 {
21544
21545           int mask = sigmask(SIGINT);
21546           sigsetmask(mask); sigblock(mask); sigpause(mask);
21547
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext conftest$ac_exeext
21553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21554   (eval $ac_link) 2>conftest.er1
21555   ac_status=$?
21556   grep -v '^ *+' conftest.er1 >conftest.err
21557   rm -f conftest.er1
21558   cat conftest.err >&5
21559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560   (exit $ac_status); } &&
21561          { ac_try='test -z "$ac_c_werror_flag"
21562                          || test ! -s conftest.err'
21563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564   (eval $ac_try) 2>&5
21565   ac_status=$?
21566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567   (exit $ac_status); }; } &&
21568          { ac_try='test -s conftest$ac_exeext'
21569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570   (eval $ac_try) 2>&5
21571   ac_status=$?
21572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573   (exit $ac_status); }; }; then
21574   bash_cv_signal_vintage="4.2bsd"
21575 else
21576   echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21578
21579
21580         cat >conftest.$ac_ext <<_ACEOF
21581 /* confdefs.h.  */
21582 _ACEOF
21583 cat confdefs.h >>conftest.$ac_ext
21584 cat >>conftest.$ac_ext <<_ACEOF
21585 /* end confdefs.h.  */
21586
21587           #include <signal.h>
21588           RETSIGTYPE foo() { }
21589 int
21590 main ()
21591 {
21592
21593                   int mask = sigmask(SIGINT);
21594                   sigset(SIGINT, foo); sigrelse(SIGINT);
21595                   sighold(SIGINT); sigpause(SIGINT);
21596
21597   ;
21598   return 0;
21599 }
21600 _ACEOF
21601 rm -f conftest.$ac_objext conftest$ac_exeext
21602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21603   (eval $ac_link) 2>conftest.er1
21604   ac_status=$?
21605   grep -v '^ *+' conftest.er1 >conftest.err
21606   rm -f conftest.er1
21607   cat conftest.err >&5
21608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609   (exit $ac_status); } &&
21610          { ac_try='test -z "$ac_c_werror_flag"
21611                          || test ! -s conftest.err'
21612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21613   (eval $ac_try) 2>&5
21614   ac_status=$?
21615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616   (exit $ac_status); }; } &&
21617          { ac_try='test -s conftest$ac_exeext'
21618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619   (eval $ac_try) 2>&5
21620   ac_status=$?
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); }; }; then
21623   bash_cv_signal_vintage="svr3"
21624 else
21625   echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21627
21628 bash_cv_signal_vintage="v7"
21629
21630 fi
21631 rm -f conftest.err conftest.$ac_objext \
21632       conftest$ac_exeext conftest.$ac_ext
21633
21634 fi
21635 rm -f conftest.err conftest.$ac_objext \
21636       conftest$ac_exeext conftest.$ac_ext
21637
21638 fi
21639 rm -f conftest.err conftest.$ac_objext \
21640       conftest$ac_exeext conftest.$ac_ext
21641
21642 fi
21643
21644   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21645 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
21646   if test "$bash_cv_signal_vintage" = "posix"; then
21647     cat >>confdefs.h <<\_ACEOF
21648 #define HAVE_POSIX_SIGNALS 1
21649 _ACEOF
21650
21651   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21652     cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_BSD_SIGNALS 1
21654 _ACEOF
21655
21656   elif test "$bash_cv_signal_vintage" = "svr3"; then
21657     cat >>confdefs.h <<\_ACEOF
21658 #define HAVE_USG_SIGHOLD 1
21659 _ACEOF
21660
21661   fi
21662
21663 echo "$as_me:$LINENO: checking for mode_t" >&5
21664 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21665 if test "${ac_cv_type_mode_t+set}" = set; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   cat >conftest.$ac_ext <<_ACEOF
21669 /* confdefs.h.  */
21670 _ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h.  */
21674 $ac_includes_default
21675 int
21676 main ()
21677 {
21678 if ((mode_t *) 0)
21679   return 0;
21680 if (sizeof (mode_t))
21681   return 0;
21682   ;
21683   return 0;
21684 }
21685 _ACEOF
21686 rm -f conftest.$ac_objext
21687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21688   (eval $ac_compile) 2>conftest.er1
21689   ac_status=$?
21690   grep -v '^ *+' conftest.er1 >conftest.err
21691   rm -f conftest.er1
21692   cat conftest.err >&5
21693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21694   (exit $ac_status); } &&
21695          { ac_try='test -z "$ac_c_werror_flag"
21696                          || test ! -s conftest.err'
21697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21698   (eval $ac_try) 2>&5
21699   ac_status=$?
21700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21701   (exit $ac_status); }; } &&
21702          { ac_try='test -s conftest.$ac_objext'
21703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21704   (eval $ac_try) 2>&5
21705   ac_status=$?
21706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707   (exit $ac_status); }; }; then
21708   ac_cv_type_mode_t=yes
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713 ac_cv_type_mode_t=no
21714 fi
21715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21716 fi
21717 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21718 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
21719 if test $ac_cv_type_mode_t = yes; then
21720   :
21721 else
21722
21723 cat >>confdefs.h <<_ACEOF
21724 #define mode_t int
21725 _ACEOF
21726
21727 fi
21728
21729 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21730 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21731 if test "${ac_cv_type_uid_t+set}" = set; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 #include <sys/types.h>
21741
21742 _ACEOF
21743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21744   $EGREP "uid_t" >/dev/null 2>&1; then
21745   ac_cv_type_uid_t=yes
21746 else
21747   ac_cv_type_uid_t=no
21748 fi
21749 rm -f conftest*
21750
21751 fi
21752 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21753 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21754 if test $ac_cv_type_uid_t = no; then
21755
21756 cat >>confdefs.h <<\_ACEOF
21757 #define uid_t int
21758 _ACEOF
21759
21760
21761 cat >>confdefs.h <<\_ACEOF
21762 #define gid_t int
21763 _ACEOF
21764
21765 fi
21766
21767 echo "$as_me:$LINENO: checking for size_t" >&5
21768 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21769 if test "${ac_cv_type_size_t+set}" = set; then
21770   echo $ECHO_N "(cached) $ECHO_C" >&6
21771 else
21772   cat >conftest.$ac_ext <<_ACEOF
21773 /* confdefs.h.  */
21774 _ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h.  */
21778 $ac_includes_default
21779 int
21780 main ()
21781 {
21782 if ((size_t *) 0)
21783   return 0;
21784 if (sizeof (size_t))
21785   return 0;
21786   ;
21787   return 0;
21788 }
21789 _ACEOF
21790 rm -f conftest.$ac_objext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792   (eval $ac_compile) 2>conftest.er1
21793   ac_status=$?
21794   grep -v '^ *+' conftest.er1 >conftest.err
21795   rm -f conftest.er1
21796   cat conftest.err >&5
21797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798   (exit $ac_status); } &&
21799          { ac_try='test -z "$ac_c_werror_flag"
21800                          || test ! -s conftest.err'
21801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802   (eval $ac_try) 2>&5
21803   ac_status=$?
21804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805   (exit $ac_status); }; } &&
21806          { ac_try='test -s conftest.$ac_objext'
21807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808   (eval $ac_try) 2>&5
21809   ac_status=$?
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); }; }; then
21812   ac_cv_type_size_t=yes
21813 else
21814   echo "$as_me: failed program was:" >&5
21815 sed 's/^/| /' conftest.$ac_ext >&5
21816
21817 ac_cv_type_size_t=no
21818 fi
21819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21820 fi
21821 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21822 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21823 if test $ac_cv_type_size_t = yes; then
21824   :
21825 else
21826
21827 cat >>confdefs.h <<_ACEOF
21828 #define size_t unsigned
21829 _ACEOF
21830
21831 fi
21832
21833 echo "$as_me:$LINENO: checking for pid_t" >&5
21834 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21835 if test "${ac_cv_type_pid_t+set}" = set; then
21836   echo $ECHO_N "(cached) $ECHO_C" >&6
21837 else
21838   cat >conftest.$ac_ext <<_ACEOF
21839 /* confdefs.h.  */
21840 _ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h.  */
21844 $ac_includes_default
21845 int
21846 main ()
21847 {
21848 if ((pid_t *) 0)
21849   return 0;
21850 if (sizeof (pid_t))
21851   return 0;
21852   ;
21853   return 0;
21854 }
21855 _ACEOF
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858   (eval $ac_compile) 2>conftest.er1
21859   ac_status=$?
21860   grep -v '^ *+' conftest.er1 >conftest.err
21861   rm -f conftest.er1
21862   cat conftest.err >&5
21863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864   (exit $ac_status); } &&
21865          { ac_try='test -z "$ac_c_werror_flag"
21866                          || test ! -s conftest.err'
21867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868   (eval $ac_try) 2>&5
21869   ac_status=$?
21870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871   (exit $ac_status); }; } &&
21872          { ac_try='test -s conftest.$ac_objext'
21873   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21874   (eval $ac_try) 2>&5
21875   ac_status=$?
21876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877   (exit $ac_status); }; }; then
21878   ac_cv_type_pid_t=yes
21879 else
21880   echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 ac_cv_type_pid_t=no
21884 fi
21885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21886 fi
21887 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21888 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21889 if test $ac_cv_type_pid_t = yes; then
21890   :
21891 else
21892
21893 cat >>confdefs.h <<_ACEOF
21894 #define pid_t int
21895 _ACEOF
21896
21897 fi
21898
21899 echo "$as_me:$LINENO: checking for off_t" >&5
21900 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21901 if test "${ac_cv_type_off_t+set}" = set; then
21902   echo $ECHO_N "(cached) $ECHO_C" >&6
21903 else
21904   cat >conftest.$ac_ext <<_ACEOF
21905 /* confdefs.h.  */
21906 _ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h.  */
21910 $ac_includes_default
21911 int
21912 main ()
21913 {
21914 if ((off_t *) 0)
21915   return 0;
21916 if (sizeof (off_t))
21917   return 0;
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21924   (eval $ac_compile) 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } &&
21931          { ac_try='test -z "$ac_c_werror_flag"
21932                          || test ! -s conftest.err'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; } &&
21938          { ac_try='test -s conftest.$ac_objext'
21939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940   (eval $ac_try) 2>&5
21941   ac_status=$?
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); }; }; then
21944   ac_cv_type_off_t=yes
21945 else
21946   echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ac_cv_type_off_t=no
21950 fi
21951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21952 fi
21953 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21954 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21955 if test $ac_cv_type_off_t = yes; then
21956   :
21957 else
21958
21959 cat >>confdefs.h <<_ACEOF
21960 #define off_t long
21961 _ACEOF
21962
21963 fi
21964
21965 echo "$as_me:$LINENO: checking for ino_t" >&5
21966 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
21967 if test "${ac_cv_type_ino_t+set}" = set; then
21968   echo $ECHO_N "(cached) $ECHO_C" >&6
21969 else
21970   cat >conftest.$ac_ext <<_ACEOF
21971 /* confdefs.h.  */
21972 _ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h.  */
21976 $ac_includes_default
21977 int
21978 main ()
21979 {
21980 if ((ino_t *) 0)
21981   return 0;
21982 if (sizeof (ino_t))
21983   return 0;
21984   ;
21985   return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext
21989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21990   (eval $ac_compile) 2>conftest.er1
21991   ac_status=$?
21992   grep -v '^ *+' conftest.er1 >conftest.err
21993   rm -f conftest.er1
21994   cat conftest.err >&5
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } &&
21997          { ac_try='test -z "$ac_c_werror_flag"
21998                          || test ! -s conftest.err'
21999   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000   (eval $ac_try) 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; } &&
22004          { ac_try='test -s conftest.$ac_objext'
22005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006   (eval $ac_try) 2>&5
22007   ac_status=$?
22008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009   (exit $ac_status); }; }; then
22010   ac_cv_type_ino_t=yes
22011 else
22012   echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015 ac_cv_type_ino_t=no
22016 fi
22017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22018 fi
22019 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22020 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22021 if test $ac_cv_type_ino_t = yes; then
22022   :
22023 else
22024
22025 cat >>confdefs.h <<_ACEOF
22026 #define ino_t unsigned long
22027 _ACEOF
22028
22029 fi
22030
22031 echo "$as_me:$LINENO: checking for dev_t" >&5
22032 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22033 if test "${ac_cv_type_dev_t+set}" = set; then
22034   echo $ECHO_N "(cached) $ECHO_C" >&6
22035 else
22036   cat >conftest.$ac_ext <<_ACEOF
22037 /* confdefs.h.  */
22038 _ACEOF
22039 cat confdefs.h >>conftest.$ac_ext
22040 cat >>conftest.$ac_ext <<_ACEOF
22041 /* end confdefs.h.  */
22042 $ac_includes_default
22043 int
22044 main ()
22045 {
22046 if ((dev_t *) 0)
22047   return 0;
22048 if (sizeof (dev_t))
22049   return 0;
22050   ;
22051   return 0;
22052 }
22053 _ACEOF
22054 rm -f conftest.$ac_objext
22055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22056   (eval $ac_compile) 2>conftest.er1
22057   ac_status=$?
22058   grep -v '^ *+' conftest.er1 >conftest.err
22059   rm -f conftest.er1
22060   cat conftest.err >&5
22061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062   (exit $ac_status); } &&
22063          { ac_try='test -z "$ac_c_werror_flag"
22064                          || test ! -s conftest.err'
22065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22066   (eval $ac_try) 2>&5
22067   ac_status=$?
22068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22069   (exit $ac_status); }; } &&
22070          { ac_try='test -s conftest.$ac_objext'
22071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22072   (eval $ac_try) 2>&5
22073   ac_status=$?
22074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22075   (exit $ac_status); }; }; then
22076   ac_cv_type_dev_t=yes
22077 else
22078   echo "$as_me: failed program was:" >&5
22079 sed 's/^/| /' conftest.$ac_ext >&5
22080
22081 ac_cv_type_dev_t=no
22082 fi
22083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22084 fi
22085 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22086 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22087 if test $ac_cv_type_dev_t = yes; then
22088   :
22089 else
22090
22091 cat >>confdefs.h <<_ACEOF
22092 #define dev_t unsigned long
22093 _ACEOF
22094
22095 fi
22096
22097 echo "$as_me:$LINENO: checking for daddr_t" >&5
22098 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22099 if test "${ac_cv_type_daddr_t+set}" = set; then
22100   echo $ECHO_N "(cached) $ECHO_C" >&6
22101 else
22102   cat >conftest.$ac_ext <<_ACEOF
22103 /* confdefs.h.  */
22104 _ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h.  */
22108 $ac_includes_default
22109 int
22110 main ()
22111 {
22112 if ((daddr_t *) 0)
22113   return 0;
22114 if (sizeof (daddr_t))
22115   return 0;
22116   ;
22117   return 0;
22118 }
22119 _ACEOF
22120 rm -f conftest.$ac_objext
22121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22122   (eval $ac_compile) 2>conftest.er1
22123   ac_status=$?
22124   grep -v '^ *+' conftest.er1 >conftest.err
22125   rm -f conftest.er1
22126   cat conftest.err >&5
22127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128   (exit $ac_status); } &&
22129          { ac_try='test -z "$ac_c_werror_flag"
22130                          || test ! -s conftest.err'
22131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22132   (eval $ac_try) 2>&5
22133   ac_status=$?
22134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22135   (exit $ac_status); }; } &&
22136          { ac_try='test -s conftest.$ac_objext'
22137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22138   (eval $ac_try) 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142   ac_cv_type_daddr_t=yes
22143 else
22144   echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 ac_cv_type_daddr_t=no
22148 fi
22149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22150 fi
22151 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22152 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22153 if test $ac_cv_type_daddr_t = yes; then
22154   :
22155 else
22156
22157 cat >>confdefs.h <<_ACEOF
22158 #define daddr_t long
22159 _ACEOF
22160
22161 fi
22162
22163 echo "$as_me:$LINENO: checking for major_t" >&5
22164 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22165 if test "${ac_cv_type_major_t+set}" = set; then
22166   echo $ECHO_N "(cached) $ECHO_C" >&6
22167 else
22168   cat >conftest.$ac_ext <<_ACEOF
22169 /* confdefs.h.  */
22170 _ACEOF
22171 cat confdefs.h >>conftest.$ac_ext
22172 cat >>conftest.$ac_ext <<_ACEOF
22173 /* end confdefs.h.  */
22174 $ac_includes_default
22175 int
22176 main ()
22177 {
22178 if ((major_t *) 0)
22179   return 0;
22180 if (sizeof (major_t))
22181   return 0;
22182   ;
22183   return 0;
22184 }
22185 _ACEOF
22186 rm -f conftest.$ac_objext
22187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22188   (eval $ac_compile) 2>conftest.er1
22189   ac_status=$?
22190   grep -v '^ *+' conftest.er1 >conftest.err
22191   rm -f conftest.er1
22192   cat conftest.err >&5
22193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194   (exit $ac_status); } &&
22195          { ac_try='test -z "$ac_c_werror_flag"
22196                          || test ! -s conftest.err'
22197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198   (eval $ac_try) 2>&5
22199   ac_status=$?
22200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201   (exit $ac_status); }; } &&
22202          { ac_try='test -s conftest.$ac_objext'
22203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204   (eval $ac_try) 2>&5
22205   ac_status=$?
22206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207   (exit $ac_status); }; }; then
22208   ac_cv_type_major_t=yes
22209 else
22210   echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 ac_cv_type_major_t=no
22214 fi
22215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22216 fi
22217 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22218 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22219 if test $ac_cv_type_major_t = yes; then
22220   :
22221 else
22222
22223 cat >>confdefs.h <<_ACEOF
22224 #define major_t int
22225 _ACEOF
22226
22227 fi
22228
22229 echo "$as_me:$LINENO: checking for minor_t" >&5
22230 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22231 if test "${ac_cv_type_minor_t+set}" = set; then
22232   echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234   cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h.  */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h.  */
22240 $ac_includes_default
22241 int
22242 main ()
22243 {
22244 if ((minor_t *) 0)
22245   return 0;
22246 if (sizeof (minor_t))
22247   return 0;
22248   ;
22249   return 0;
22250 }
22251 _ACEOF
22252 rm -f conftest.$ac_objext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22254   (eval $ac_compile) 2>conftest.er1
22255   ac_status=$?
22256   grep -v '^ *+' conftest.er1 >conftest.err
22257   rm -f conftest.er1
22258   cat conftest.err >&5
22259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260   (exit $ac_status); } &&
22261          { ac_try='test -z "$ac_c_werror_flag"
22262                          || test ! -s conftest.err'
22263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264   (eval $ac_try) 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; } &&
22268          { ac_try='test -s conftest.$ac_objext'
22269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270   (eval $ac_try) 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   ac_cv_type_minor_t=yes
22275 else
22276   echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_cv_type_minor_t=no
22280 fi
22281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22282 fi
22283 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22284 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22285 if test $ac_cv_type_minor_t = yes; then
22286   :
22287 else
22288
22289 cat >>confdefs.h <<_ACEOF
22290 #define minor_t int
22291 _ACEOF
22292
22293 fi
22294
22295 echo "$as_me:$LINENO: checking for ssize_t" >&5
22296 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22297 if test "${ac_cv_type_ssize_t+set}" = set; then
22298   echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300   cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h.  */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h.  */
22306 $ac_includes_default
22307 int
22308 main ()
22309 {
22310 if ((ssize_t *) 0)
22311   return 0;
22312 if (sizeof (ssize_t))
22313   return 0;
22314   ;
22315   return 0;
22316 }
22317 _ACEOF
22318 rm -f conftest.$ac_objext
22319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22320   (eval $ac_compile) 2>conftest.er1
22321   ac_status=$?
22322   grep -v '^ *+' conftest.er1 >conftest.err
22323   rm -f conftest.er1
22324   cat conftest.err >&5
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } &&
22327          { ac_try='test -z "$ac_c_werror_flag"
22328                          || test ! -s conftest.err'
22329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22330   (eval $ac_try) 2>&5
22331   ac_status=$?
22332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22333   (exit $ac_status); }; } &&
22334          { ac_try='test -s conftest.$ac_objext'
22335   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336   (eval $ac_try) 2>&5
22337   ac_status=$?
22338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339   (exit $ac_status); }; }; then
22340   ac_cv_type_ssize_t=yes
22341 else
22342   echo "$as_me: failed program was:" >&5
22343 sed 's/^/| /' conftest.$ac_ext >&5
22344
22345 ac_cv_type_ssize_t=no
22346 fi
22347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22348 fi
22349 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22350 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22351 if test $ac_cv_type_ssize_t = yes; then
22352   :
22353 else
22354
22355 cat >>confdefs.h <<_ACEOF
22356 #define ssize_t int
22357 _ACEOF
22358
22359 fi
22360
22361 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22362 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22363 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22364   echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366   cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h.  */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h.  */
22372 $ac_includes_default
22373 int
22374 main ()
22375 {
22376 static struct stat ac_aggr;
22377 if (ac_aggr.st_blocks)
22378 return 0;
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 rm -f conftest.$ac_objext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22385   (eval $ac_compile) 2>conftest.er1
22386   ac_status=$?
22387   grep -v '^ *+' conftest.er1 >conftest.err
22388   rm -f conftest.er1
22389   cat conftest.err >&5
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); } &&
22392          { ac_try='test -z "$ac_c_werror_flag"
22393                          || test ! -s conftest.err'
22394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395   (eval $ac_try) 2>&5
22396   ac_status=$?
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); }; } &&
22399          { ac_try='test -s conftest.$ac_objext'
22400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22401   (eval $ac_try) 2>&5
22402   ac_status=$?
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); }; }; then
22405   ac_cv_member_struct_stat_st_blocks=yes
22406 else
22407   echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410 cat >conftest.$ac_ext <<_ACEOF
22411 /* confdefs.h.  */
22412 _ACEOF
22413 cat confdefs.h >>conftest.$ac_ext
22414 cat >>conftest.$ac_ext <<_ACEOF
22415 /* end confdefs.h.  */
22416 $ac_includes_default
22417 int
22418 main ()
22419 {
22420 static struct stat ac_aggr;
22421 if (sizeof ac_aggr.st_blocks)
22422 return 0;
22423   ;
22424   return 0;
22425 }
22426 _ACEOF
22427 rm -f conftest.$ac_objext
22428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22429   (eval $ac_compile) 2>conftest.er1
22430   ac_status=$?
22431   grep -v '^ *+' conftest.er1 >conftest.err
22432   rm -f conftest.er1
22433   cat conftest.err >&5
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } &&
22436          { ac_try='test -z "$ac_c_werror_flag"
22437                          || test ! -s conftest.err'
22438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22439   (eval $ac_try) 2>&5
22440   ac_status=$?
22441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22442   (exit $ac_status); }; } &&
22443          { ac_try='test -s conftest.$ac_objext'
22444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22445   (eval $ac_try) 2>&5
22446   ac_status=$?
22447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448   (exit $ac_status); }; }; then
22449   ac_cv_member_struct_stat_st_blocks=yes
22450 else
22451   echo "$as_me: failed program was:" >&5
22452 sed 's/^/| /' conftest.$ac_ext >&5
22453
22454 ac_cv_member_struct_stat_st_blocks=no
22455 fi
22456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22457 fi
22458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22459 fi
22460 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22461 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22462 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22463
22464 cat >>confdefs.h <<_ACEOF
22465 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22466 _ACEOF
22467
22468
22469 cat >>confdefs.h <<\_ACEOF
22470 #define HAVE_ST_BLOCKS 1
22471 _ACEOF
22472
22473 else
22474   case $LIBOBJS in
22475     "fileblocks.$ac_objext"   | \
22476   *" fileblocks.$ac_objext"   | \
22477     "fileblocks.$ac_objext "* | \
22478   *" fileblocks.$ac_objext "* ) ;;
22479   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22480 esac
22481
22482 fi
22483
22484
22485
22486 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22487 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22488 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22489   echo $ECHO_N "(cached) $ECHO_C" >&6
22490 else
22491   cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h.  */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h.  */
22497 $ac_includes_default
22498 int
22499 main ()
22500 {
22501 static struct stat ac_aggr;
22502 if (ac_aggr.st_rdev)
22503 return 0;
22504   ;
22505   return 0;
22506 }
22507 _ACEOF
22508 rm -f conftest.$ac_objext
22509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22510   (eval $ac_compile) 2>conftest.er1
22511   ac_status=$?
22512   grep -v '^ *+' conftest.er1 >conftest.err
22513   rm -f conftest.er1
22514   cat conftest.err >&5
22515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516   (exit $ac_status); } &&
22517          { ac_try='test -z "$ac_c_werror_flag"
22518                          || test ! -s conftest.err'
22519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22520   (eval $ac_try) 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; } &&
22524          { ac_try='test -s conftest.$ac_objext'
22525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22526   (eval $ac_try) 2>&5
22527   ac_status=$?
22528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529   (exit $ac_status); }; }; then
22530   ac_cv_member_struct_stat_st_rdev=yes
22531 else
22532   echo "$as_me: failed program was:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22534
22535 cat >conftest.$ac_ext <<_ACEOF
22536 /* confdefs.h.  */
22537 _ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h.  */
22541 $ac_includes_default
22542 int
22543 main ()
22544 {
22545 static struct stat ac_aggr;
22546 if (sizeof ac_aggr.st_rdev)
22547 return 0;
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 rm -f conftest.$ac_objext
22553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22554   (eval $ac_compile) 2>conftest.er1
22555   ac_status=$?
22556   grep -v '^ *+' conftest.er1 >conftest.err
22557   rm -f conftest.er1
22558   cat conftest.err >&5
22559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560   (exit $ac_status); } &&
22561          { ac_try='test -z "$ac_c_werror_flag"
22562                          || test ! -s conftest.err'
22563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22564   (eval $ac_try) 2>&5
22565   ac_status=$?
22566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567   (exit $ac_status); }; } &&
22568          { ac_try='test -s conftest.$ac_objext'
22569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22570   (eval $ac_try) 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); }; }; then
22574   ac_cv_member_struct_stat_st_rdev=yes
22575 else
22576   echo "$as_me: failed program was:" >&5
22577 sed 's/^/| /' conftest.$ac_ext >&5
22578
22579 ac_cv_member_struct_stat_st_rdev=no
22580 fi
22581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22582 fi
22583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22584 fi
22585 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22586 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22587 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22588
22589 cat >>confdefs.h <<_ACEOF
22590 #define HAVE_STRUCT_STAT_ST_RDEV 1
22591 _ACEOF
22592
22593
22594 cat >>confdefs.h <<\_ACEOF
22595 #define HAVE_ST_RDEV 1
22596 _ACEOF
22597
22598 fi
22599
22600
22601 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22602 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22603 if test "${ac_cv_struct_tm+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612 #include <sys/types.h>
22613 #include <time.h>
22614
22615 int
22616 main ()
22617 {
22618 struct tm *tp; tp->tm_sec;
22619   ;
22620   return 0;
22621 }
22622 _ACEOF
22623 rm -f conftest.$ac_objext
22624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22625   (eval $ac_compile) 2>conftest.er1
22626   ac_status=$?
22627   grep -v '^ *+' conftest.er1 >conftest.err
22628   rm -f conftest.er1
22629   cat conftest.err >&5
22630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631   (exit $ac_status); } &&
22632          { ac_try='test -z "$ac_c_werror_flag"
22633                          || test ! -s conftest.err'
22634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22635   (eval $ac_try) 2>&5
22636   ac_status=$?
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); }; } &&
22639          { ac_try='test -s conftest.$ac_objext'
22640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22641   (eval $ac_try) 2>&5
22642   ac_status=$?
22643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644   (exit $ac_status); }; }; then
22645   ac_cv_struct_tm=time.h
22646 else
22647   echo "$as_me: failed program was:" >&5
22648 sed 's/^/| /' conftest.$ac_ext >&5
22649
22650 ac_cv_struct_tm=sys/time.h
22651 fi
22652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22653 fi
22654 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22655 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22656 if test $ac_cv_struct_tm = sys/time.h; then
22657
22658 cat >>confdefs.h <<\_ACEOF
22659 #define TM_IN_SYS_TIME 1
22660 _ACEOF
22661
22662 fi
22663
22664 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22665 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22666 if test "${ac_cv_c_const+set}" = set; then
22667   echo $ECHO_N "(cached) $ECHO_C" >&6
22668 else
22669   cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h.  */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h.  */
22675
22676 int
22677 main ()
22678 {
22679 /* FIXME: Include the comments suggested by Paul. */
22680 #ifndef __cplusplus
22681   /* Ultrix mips cc rejects this.  */
22682   typedef int charset[2];
22683   const charset x;
22684   /* SunOS 4.1.1 cc rejects this.  */
22685   char const *const *ccp;
22686   char **p;
22687   /* NEC SVR4.0.2 mips cc rejects this.  */
22688   struct point {int x, y;};
22689   static struct point const zero = {0,0};
22690   /* AIX XL C 1.02.0.0 rejects this.
22691      It does not let you subtract one const X* pointer from another in
22692      an arm of an if-expression whose if-part is not a constant
22693      expression */
22694   const char *g = "string";
22695   ccp = &g + (g ? g-g : 0);
22696   /* HPUX 7.0 cc rejects these. */
22697   ++ccp;
22698   p = (char**) ccp;
22699   ccp = (char const *const *) p;
22700   { /* SCO 3.2v4 cc rejects this.  */
22701     char *t;
22702     char const *s = 0 ? (char *) 0 : (char const *) 0;
22703
22704     *t++ = 0;
22705   }
22706   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22707     int x[] = {25, 17};
22708     const int *foo = &x[0];
22709     ++foo;
22710   }
22711   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22712     typedef const int *iptr;
22713     iptr p = 0;
22714     ++p;
22715   }
22716   { /* AIX XL C 1.02.0.0 rejects this saying
22717        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22718     struct s { int j; const int *ap[3]; };
22719     struct s *b; b->j = 5;
22720   }
22721   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22722     const int foo = 10;
22723   }
22724 #endif
22725
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22732   (eval $ac_compile) 2>conftest.er1
22733   ac_status=$?
22734   grep -v '^ *+' conftest.er1 >conftest.err
22735   rm -f conftest.er1
22736   cat conftest.err >&5
22737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738   (exit $ac_status); } &&
22739          { ac_try='test -z "$ac_c_werror_flag"
22740                          || test ! -s conftest.err'
22741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22742   (eval $ac_try) 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; } &&
22746          { ac_try='test -s conftest.$ac_objext'
22747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22748   (eval $ac_try) 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); }; }; then
22752   ac_cv_c_const=yes
22753 else
22754   echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22756
22757 ac_cv_c_const=no
22758 fi
22759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22760 fi
22761 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22762 echo "${ECHO_T}$ac_cv_c_const" >&6
22763 if test $ac_cv_c_const = no; then
22764
22765 cat >>confdefs.h <<\_ACEOF
22766 #define const
22767 _ACEOF
22768
22769 fi
22770
22771
22772
22773 echo "$as_me:$LINENO: checking for char" >&5
22774 echo $ECHO_N "checking for char... $ECHO_C" >&6
22775 if test "${ac_cv_type_char+set}" = set; then
22776   echo $ECHO_N "(cached) $ECHO_C" >&6
22777 else
22778   cat >conftest.$ac_ext <<_ACEOF
22779 /* confdefs.h.  */
22780 _ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h.  */
22784 $ac_includes_default
22785 int
22786 main ()
22787 {
22788 if ((char *) 0)
22789   return 0;
22790 if (sizeof (char))
22791   return 0;
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22798   (eval $ac_compile) 2>conftest.er1
22799   ac_status=$?
22800   grep -v '^ *+' conftest.er1 >conftest.err
22801   rm -f conftest.er1
22802   cat conftest.err >&5
22803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804   (exit $ac_status); } &&
22805          { ac_try='test -z "$ac_c_werror_flag"
22806                          || test ! -s conftest.err'
22807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22808   (eval $ac_try) 2>&5
22809   ac_status=$?
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); }; } &&
22812          { ac_try='test -s conftest.$ac_objext'
22813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22814   (eval $ac_try) 2>&5
22815   ac_status=$?
22816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817   (exit $ac_status); }; }; then
22818   ac_cv_type_char=yes
22819 else
22820   echo "$as_me: failed program was:" >&5
22821 sed 's/^/| /' conftest.$ac_ext >&5
22822
22823 ac_cv_type_char=no
22824 fi
22825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22826 fi
22827 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22828 echo "${ECHO_T}$ac_cv_type_char" >&6
22829
22830 echo "$as_me:$LINENO: checking size of char" >&5
22831 echo $ECHO_N "checking size of char... $ECHO_C" >&6
22832 if test "${ac_cv_sizeof_char+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   if test "$ac_cv_type_char" = yes; then
22836   # The cast to unsigned long works around a bug in the HP C Compiler
22837   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22838   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22839   # This bug is HP SR number 8606223364.
22840   if test "$cross_compiling" = yes; then
22841   # Depending upon the size, compute the lo and hi bounds.
22842 cat >conftest.$ac_ext <<_ACEOF
22843 /* confdefs.h.  */
22844 _ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h.  */
22848 $ac_includes_default
22849 int
22850 main ()
22851 {
22852 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
22853 test_array [0] = 0
22854
22855   ;
22856   return 0;
22857 }
22858 _ACEOF
22859 rm -f conftest.$ac_objext
22860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22861   (eval $ac_compile) 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -z "$ac_c_werror_flag"
22869                          || test ! -s conftest.err'
22870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22871   (eval $ac_try) 2>&5
22872   ac_status=$?
22873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874   (exit $ac_status); }; } &&
22875          { ac_try='test -s conftest.$ac_objext'
22876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877   (eval $ac_try) 2>&5
22878   ac_status=$?
22879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880   (exit $ac_status); }; }; then
22881   ac_lo=0 ac_mid=0
22882   while :; do
22883     cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h.  */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h.  */
22889 $ac_includes_default
22890 int
22891 main ()
22892 {
22893 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
22894 test_array [0] = 0
22895
22896   ;
22897   return 0;
22898 }
22899 _ACEOF
22900 rm -f conftest.$ac_objext
22901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22902   (eval $ac_compile) 2>conftest.er1
22903   ac_status=$?
22904   grep -v '^ *+' conftest.er1 >conftest.err
22905   rm -f conftest.er1
22906   cat conftest.err >&5
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); } &&
22909          { ac_try='test -z "$ac_c_werror_flag"
22910                          || test ! -s conftest.err'
22911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912   (eval $ac_try) 2>&5
22913   ac_status=$?
22914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915   (exit $ac_status); }; } &&
22916          { ac_try='test -s conftest.$ac_objext'
22917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918   (eval $ac_try) 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; }; then
22922   ac_hi=$ac_mid; break
22923 else
22924   echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22926
22927 ac_lo=`expr $ac_mid + 1`
22928                     if test $ac_lo -le $ac_mid; then
22929                       ac_lo= ac_hi=
22930                       break
22931                     fi
22932                     ac_mid=`expr 2 '*' $ac_mid + 1`
22933 fi
22934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22935   done
22936 else
22937   echo "$as_me: failed program was:" >&5
22938 sed 's/^/| /' conftest.$ac_ext >&5
22939
22940 cat >conftest.$ac_ext <<_ACEOF
22941 /* confdefs.h.  */
22942 _ACEOF
22943 cat confdefs.h >>conftest.$ac_ext
22944 cat >>conftest.$ac_ext <<_ACEOF
22945 /* end confdefs.h.  */
22946 $ac_includes_default
22947 int
22948 main ()
22949 {
22950 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
22951 test_array [0] = 0
22952
22953   ;
22954   return 0;
22955 }
22956 _ACEOF
22957 rm -f conftest.$ac_objext
22958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22959   (eval $ac_compile) 2>conftest.er1
22960   ac_status=$?
22961   grep -v '^ *+' conftest.er1 >conftest.err
22962   rm -f conftest.er1
22963   cat conftest.err >&5
22964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22965   (exit $ac_status); } &&
22966          { ac_try='test -z "$ac_c_werror_flag"
22967                          || test ! -s conftest.err'
22968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22969   (eval $ac_try) 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; } &&
22973          { ac_try='test -s conftest.$ac_objext'
22974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975   (eval $ac_try) 2>&5
22976   ac_status=$?
22977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978   (exit $ac_status); }; }; then
22979   ac_hi=-1 ac_mid=-1
22980   while :; do
22981     cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h.  */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h.  */
22987 $ac_includes_default
22988 int
22989 main ()
22990 {
22991 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
22992 test_array [0] = 0
22993
22994   ;
22995   return 0;
22996 }
22997 _ACEOF
22998 rm -f conftest.$ac_objext
22999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23000   (eval $ac_compile) 2>conftest.er1
23001   ac_status=$?
23002   grep -v '^ *+' conftest.er1 >conftest.err
23003   rm -f conftest.er1
23004   cat conftest.err >&5
23005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006   (exit $ac_status); } &&
23007          { ac_try='test -z "$ac_c_werror_flag"
23008                          || test ! -s conftest.err'
23009   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010   (eval $ac_try) 2>&5
23011   ac_status=$?
23012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); }; } &&
23014          { ac_try='test -s conftest.$ac_objext'
23015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016   (eval $ac_try) 2>&5
23017   ac_status=$?
23018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019   (exit $ac_status); }; }; then
23020   ac_lo=$ac_mid; break
23021 else
23022   echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23024
23025 ac_hi=`expr '(' $ac_mid ')' - 1`
23026                        if test $ac_mid -le $ac_hi; then
23027                          ac_lo= ac_hi=
23028                          break
23029                        fi
23030                        ac_mid=`expr 2 '*' $ac_mid`
23031 fi
23032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23033   done
23034 else
23035   echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23037
23038 ac_lo= ac_hi=
23039 fi
23040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23041 fi
23042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23043 # Binary search between lo and hi bounds.
23044 while test "x$ac_lo" != "x$ac_hi"; do
23045   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23046   cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 $ac_includes_default
23053 int
23054 main ()
23055 {
23056 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23057 test_array [0] = 0
23058
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 rm -f conftest.$ac_objext
23064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23065   (eval $ac_compile) 2>conftest.er1
23066   ac_status=$?
23067   grep -v '^ *+' conftest.er1 >conftest.err
23068   rm -f conftest.er1
23069   cat conftest.err >&5
23070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071   (exit $ac_status); } &&
23072          { ac_try='test -z "$ac_c_werror_flag"
23073                          || test ! -s conftest.err'
23074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23075   (eval $ac_try) 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; } &&
23079          { ac_try='test -s conftest.$ac_objext'
23080   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081   (eval $ac_try) 2>&5
23082   ac_status=$?
23083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084   (exit $ac_status); }; }; then
23085   ac_hi=$ac_mid
23086 else
23087   echo "$as_me: failed program was:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 ac_lo=`expr '(' $ac_mid ')' + 1`
23091 fi
23092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23093 done
23094 case $ac_lo in
23095 ?*) ac_cv_sizeof_char=$ac_lo;;
23096 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23097 See \`config.log' for more details." >&5
23098 echo "$as_me: error: cannot compute sizeof (char), 77
23099 See \`config.log' for more details." >&2;}
23100    { (exit 1); exit 1; }; } ;;
23101 esac
23102 else
23103   if test "$cross_compiling" = yes; then
23104   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23105 See \`config.log' for more details." >&5
23106 echo "$as_me: error: cannot run test program while cross compiling
23107 See \`config.log' for more details." >&2;}
23108    { (exit 1); exit 1; }; }
23109 else
23110   cat >conftest.$ac_ext <<_ACEOF
23111 /* confdefs.h.  */
23112 _ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h.  */
23116 $ac_includes_default
23117 long longval () { return (long) (sizeof (char)); }
23118 unsigned long ulongval () { return (long) (sizeof (char)); }
23119 #include <stdio.h>
23120 #include <stdlib.h>
23121 int
23122 main ()
23123 {
23124
23125   FILE *f = fopen ("conftest.val", "w");
23126   if (! f)
23127     exit (1);
23128   if (((long) (sizeof (char))) < 0)
23129     {
23130       long i = longval ();
23131       if (i != ((long) (sizeof (char))))
23132         exit (1);
23133       fprintf (f, "%ld\n", i);
23134     }
23135   else
23136     {
23137       unsigned long i = ulongval ();
23138       if (i != ((long) (sizeof (char))))
23139         exit (1);
23140       fprintf (f, "%lu\n", i);
23141     }
23142   exit (ferror (f) || fclose (f) != 0);
23143
23144   ;
23145   return 0;
23146 }
23147 _ACEOF
23148 rm -f conftest$ac_exeext
23149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23150   (eval $ac_link) 2>&5
23151   ac_status=$?
23152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155   (eval $ac_try) 2>&5
23156   ac_status=$?
23157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   ac_cv_sizeof_char=`cat conftest.val`
23160 else
23161   echo "$as_me: program exited with status $ac_status" >&5
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165 ( exit $ac_status )
23166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23167 See \`config.log' for more details." >&5
23168 echo "$as_me: error: cannot compute sizeof (char), 77
23169 See \`config.log' for more details." >&2;}
23170    { (exit 1); exit 1; }; }
23171 fi
23172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23173 fi
23174 fi
23175 rm -f conftest.val
23176 else
23177   ac_cv_sizeof_char=0
23178 fi
23179 fi
23180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23181 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23182 cat >>confdefs.h <<_ACEOF
23183 #define SIZEOF_CHAR $ac_cv_sizeof_char
23184 _ACEOF
23185
23186
23187 echo "$as_me:$LINENO: checking for short int" >&5
23188 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23189 if test "${ac_cv_type_short_int+set}" = set; then
23190   echo $ECHO_N "(cached) $ECHO_C" >&6
23191 else
23192   cat >conftest.$ac_ext <<_ACEOF
23193 /* confdefs.h.  */
23194 _ACEOF
23195 cat confdefs.h >>conftest.$ac_ext
23196 cat >>conftest.$ac_ext <<_ACEOF
23197 /* end confdefs.h.  */
23198 $ac_includes_default
23199 int
23200 main ()
23201 {
23202 if ((short int *) 0)
23203   return 0;
23204 if (sizeof (short int))
23205   return 0;
23206   ;
23207   return 0;
23208 }
23209 _ACEOF
23210 rm -f conftest.$ac_objext
23211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23212   (eval $ac_compile) 2>conftest.er1
23213   ac_status=$?
23214   grep -v '^ *+' conftest.er1 >conftest.err
23215   rm -f conftest.er1
23216   cat conftest.err >&5
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); } &&
23219          { ac_try='test -z "$ac_c_werror_flag"
23220                          || test ! -s conftest.err'
23221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222   (eval $ac_try) 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest.$ac_objext'
23227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23228   (eval $ac_try) 2>&5
23229   ac_status=$?
23230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23231   (exit $ac_status); }; }; then
23232   ac_cv_type_short_int=yes
23233 else
23234   echo "$as_me: failed program was:" >&5
23235 sed 's/^/| /' conftest.$ac_ext >&5
23236
23237 ac_cv_type_short_int=no
23238 fi
23239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23240 fi
23241 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23242 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23243
23244 echo "$as_me:$LINENO: checking size of short int" >&5
23245 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23246 if test "${ac_cv_sizeof_short_int+set}" = set; then
23247   echo $ECHO_N "(cached) $ECHO_C" >&6
23248 else
23249   if test "$ac_cv_type_short_int" = yes; then
23250   # The cast to unsigned long works around a bug in the HP C Compiler
23251   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23252   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23253   # This bug is HP SR number 8606223364.
23254   if test "$cross_compiling" = yes; then
23255   # Depending upon the size, compute the lo and hi bounds.
23256 cat >conftest.$ac_ext <<_ACEOF
23257 /* confdefs.h.  */
23258 _ACEOF
23259 cat confdefs.h >>conftest.$ac_ext
23260 cat >>conftest.$ac_ext <<_ACEOF
23261 /* end confdefs.h.  */
23262 $ac_includes_default
23263 int
23264 main ()
23265 {
23266 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23267 test_array [0] = 0
23268
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275   (eval $ac_compile) 2>conftest.er1
23276   ac_status=$?
23277   grep -v '^ *+' conftest.er1 >conftest.err
23278   rm -f conftest.er1
23279   cat conftest.err >&5
23280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281   (exit $ac_status); } &&
23282          { ac_try='test -z "$ac_c_werror_flag"
23283                          || test ! -s conftest.err'
23284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285   (eval $ac_try) 2>&5
23286   ac_status=$?
23287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288   (exit $ac_status); }; } &&
23289          { ac_try='test -s conftest.$ac_objext'
23290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291   (eval $ac_try) 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ac_lo=0 ac_mid=0
23296   while :; do
23297     cat >conftest.$ac_ext <<_ACEOF
23298 /* confdefs.h.  */
23299 _ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h.  */
23303 $ac_includes_default
23304 int
23305 main ()
23306 {
23307 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23308 test_array [0] = 0
23309
23310   ;
23311   return 0;
23312 }
23313 _ACEOF
23314 rm -f conftest.$ac_objext
23315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23316   (eval $ac_compile) 2>conftest.er1
23317   ac_status=$?
23318   grep -v '^ *+' conftest.er1 >conftest.err
23319   rm -f conftest.er1
23320   cat conftest.err >&5
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); } &&
23323          { ac_try='test -z "$ac_c_werror_flag"
23324                          || test ! -s conftest.err'
23325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326   (eval $ac_try) 2>&5
23327   ac_status=$?
23328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329   (exit $ac_status); }; } &&
23330          { ac_try='test -s conftest.$ac_objext'
23331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23332   (eval $ac_try) 2>&5
23333   ac_status=$?
23334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335   (exit $ac_status); }; }; then
23336   ac_hi=$ac_mid; break
23337 else
23338   echo "$as_me: failed program was:" >&5
23339 sed 's/^/| /' conftest.$ac_ext >&5
23340
23341 ac_lo=`expr $ac_mid + 1`
23342                     if test $ac_lo -le $ac_mid; then
23343                       ac_lo= ac_hi=
23344                       break
23345                     fi
23346                     ac_mid=`expr 2 '*' $ac_mid + 1`
23347 fi
23348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23349   done
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354 cat >conftest.$ac_ext <<_ACEOF
23355 /* confdefs.h.  */
23356 _ACEOF
23357 cat confdefs.h >>conftest.$ac_ext
23358 cat >>conftest.$ac_ext <<_ACEOF
23359 /* end confdefs.h.  */
23360 $ac_includes_default
23361 int
23362 main ()
23363 {
23364 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23365 test_array [0] = 0
23366
23367   ;
23368   return 0;
23369 }
23370 _ACEOF
23371 rm -f conftest.$ac_objext
23372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23373   (eval $ac_compile) 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } &&
23380          { ac_try='test -z "$ac_c_werror_flag"
23381                          || test ! -s conftest.err'
23382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23383   (eval $ac_try) 2>&5
23384   ac_status=$?
23385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386   (exit $ac_status); }; } &&
23387          { ac_try='test -s conftest.$ac_objext'
23388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23389   (eval $ac_try) 2>&5
23390   ac_status=$?
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); }; }; then
23393   ac_hi=-1 ac_mid=-1
23394   while :; do
23395     cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401 $ac_includes_default
23402 int
23403 main ()
23404 {
23405 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23406 test_array [0] = 0
23407
23408   ;
23409   return 0;
23410 }
23411 _ACEOF
23412 rm -f conftest.$ac_objext
23413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23414   (eval $ac_compile) 2>conftest.er1
23415   ac_status=$?
23416   grep -v '^ *+' conftest.er1 >conftest.err
23417   rm -f conftest.er1
23418   cat conftest.err >&5
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); } &&
23421          { ac_try='test -z "$ac_c_werror_flag"
23422                          || test ! -s conftest.err'
23423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23424   (eval $ac_try) 2>&5
23425   ac_status=$?
23426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427   (exit $ac_status); }; } &&
23428          { ac_try='test -s conftest.$ac_objext'
23429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430   (eval $ac_try) 2>&5
23431   ac_status=$?
23432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433   (exit $ac_status); }; }; then
23434   ac_lo=$ac_mid; break
23435 else
23436   echo "$as_me: failed program was:" >&5
23437 sed 's/^/| /' conftest.$ac_ext >&5
23438
23439 ac_hi=`expr '(' $ac_mid ')' - 1`
23440                        if test $ac_mid -le $ac_hi; then
23441                          ac_lo= ac_hi=
23442                          break
23443                        fi
23444                        ac_mid=`expr 2 '*' $ac_mid`
23445 fi
23446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23447   done
23448 else
23449   echo "$as_me: failed program was:" >&5
23450 sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_lo= ac_hi=
23453 fi
23454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23455 fi
23456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23457 # Binary search between lo and hi bounds.
23458 while test "x$ac_lo" != "x$ac_hi"; do
23459   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23460   cat >conftest.$ac_ext <<_ACEOF
23461 /* confdefs.h.  */
23462 _ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h.  */
23466 $ac_includes_default
23467 int
23468 main ()
23469 {
23470 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23471 test_array [0] = 0
23472
23473   ;
23474   return 0;
23475 }
23476 _ACEOF
23477 rm -f conftest.$ac_objext
23478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23479   (eval $ac_compile) 2>conftest.er1
23480   ac_status=$?
23481   grep -v '^ *+' conftest.er1 >conftest.err
23482   rm -f conftest.er1
23483   cat conftest.err >&5
23484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485   (exit $ac_status); } &&
23486          { ac_try='test -z "$ac_c_werror_flag"
23487                          || test ! -s conftest.err'
23488   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489   (eval $ac_try) 2>&5
23490   ac_status=$?
23491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492   (exit $ac_status); }; } &&
23493          { ac_try='test -s conftest.$ac_objext'
23494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495   (eval $ac_try) 2>&5
23496   ac_status=$?
23497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498   (exit $ac_status); }; }; then
23499   ac_hi=$ac_mid
23500 else
23501   echo "$as_me: failed program was:" >&5
23502 sed 's/^/| /' conftest.$ac_ext >&5
23503
23504 ac_lo=`expr '(' $ac_mid ')' + 1`
23505 fi
23506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23507 done
23508 case $ac_lo in
23509 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23511 See \`config.log' for more details." >&5
23512 echo "$as_me: error: cannot compute sizeof (short int), 77
23513 See \`config.log' for more details." >&2;}
23514    { (exit 1); exit 1; }; } ;;
23515 esac
23516 else
23517   if test "$cross_compiling" = yes; then
23518   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23519 See \`config.log' for more details." >&5
23520 echo "$as_me: error: cannot run test program while cross compiling
23521 See \`config.log' for more details." >&2;}
23522    { (exit 1); exit 1; }; }
23523 else
23524   cat >conftest.$ac_ext <<_ACEOF
23525 /* confdefs.h.  */
23526 _ACEOF
23527 cat confdefs.h >>conftest.$ac_ext
23528 cat >>conftest.$ac_ext <<_ACEOF
23529 /* end confdefs.h.  */
23530 $ac_includes_default
23531 long longval () { return (long) (sizeof (short int)); }
23532 unsigned long ulongval () { return (long) (sizeof (short int)); }
23533 #include <stdio.h>
23534 #include <stdlib.h>
23535 int
23536 main ()
23537 {
23538
23539   FILE *f = fopen ("conftest.val", "w");
23540   if (! f)
23541     exit (1);
23542   if (((long) (sizeof (short int))) < 0)
23543     {
23544       long i = longval ();
23545       if (i != ((long) (sizeof (short int))))
23546         exit (1);
23547       fprintf (f, "%ld\n", i);
23548     }
23549   else
23550     {
23551       unsigned long i = ulongval ();
23552       if (i != ((long) (sizeof (short int))))
23553         exit (1);
23554       fprintf (f, "%lu\n", i);
23555     }
23556   exit (ferror (f) || fclose (f) != 0);
23557
23558   ;
23559   return 0;
23560 }
23561 _ACEOF
23562 rm -f conftest$ac_exeext
23563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23564   (eval $ac_link) 2>&5
23565   ac_status=$?
23566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569   (eval $ac_try) 2>&5
23570   ac_status=$?
23571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572   (exit $ac_status); }; }; then
23573   ac_cv_sizeof_short_int=`cat conftest.val`
23574 else
23575   echo "$as_me: program exited with status $ac_status" >&5
23576 echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579 ( exit $ac_status )
23580 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23581 See \`config.log' for more details." >&5
23582 echo "$as_me: error: cannot compute sizeof (short int), 77
23583 See \`config.log' for more details." >&2;}
23584    { (exit 1); exit 1; }; }
23585 fi
23586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23587 fi
23588 fi
23589 rm -f conftest.val
23590 else
23591   ac_cv_sizeof_short_int=0
23592 fi
23593 fi
23594 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23595 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23596 cat >>confdefs.h <<_ACEOF
23597 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23598 _ACEOF
23599
23600
23601 echo "$as_me:$LINENO: checking for int" >&5
23602 echo $ECHO_N "checking for int... $ECHO_C" >&6
23603 if test "${ac_cv_type_int+set}" = set; then
23604   echo $ECHO_N "(cached) $ECHO_C" >&6
23605 else
23606   cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h.  */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h.  */
23612 $ac_includes_default
23613 int
23614 main ()
23615 {
23616 if ((int *) 0)
23617   return 0;
23618 if (sizeof (int))
23619   return 0;
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23626   (eval $ac_compile) 2>conftest.er1
23627   ac_status=$?
23628   grep -v '^ *+' conftest.er1 >conftest.err
23629   rm -f conftest.er1
23630   cat conftest.err >&5
23631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632   (exit $ac_status); } &&
23633          { ac_try='test -z "$ac_c_werror_flag"
23634                          || test ! -s conftest.err'
23635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23636   (eval $ac_try) 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; } &&
23640          { ac_try='test -s conftest.$ac_objext'
23641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23642   (eval $ac_try) 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   ac_cv_type_int=yes
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651 ac_cv_type_int=no
23652 fi
23653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23654 fi
23655 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23656 echo "${ECHO_T}$ac_cv_type_int" >&6
23657
23658 echo "$as_me:$LINENO: checking size of int" >&5
23659 echo $ECHO_N "checking size of int... $ECHO_C" >&6
23660 if test "${ac_cv_sizeof_int+set}" = set; then
23661   echo $ECHO_N "(cached) $ECHO_C" >&6
23662 else
23663   if test "$ac_cv_type_int" = yes; then
23664   # The cast to unsigned long works around a bug in the HP C Compiler
23665   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23666   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23667   # This bug is HP SR number 8606223364.
23668   if test "$cross_compiling" = yes; then
23669   # Depending upon the size, compute the lo and hi bounds.
23670 cat >conftest.$ac_ext <<_ACEOF
23671 /* confdefs.h.  */
23672 _ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h.  */
23676 $ac_includes_default
23677 int
23678 main ()
23679 {
23680 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
23681 test_array [0] = 0
23682
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23689   (eval $ac_compile) 2>conftest.er1
23690   ac_status=$?
23691   grep -v '^ *+' conftest.er1 >conftest.err
23692   rm -f conftest.er1
23693   cat conftest.err >&5
23694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695   (exit $ac_status); } &&
23696          { ac_try='test -z "$ac_c_werror_flag"
23697                          || test ! -s conftest.err'
23698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23699   (eval $ac_try) 2>&5
23700   ac_status=$?
23701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23702   (exit $ac_status); }; } &&
23703          { ac_try='test -s conftest.$ac_objext'
23704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23705   (eval $ac_try) 2>&5
23706   ac_status=$?
23707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708   (exit $ac_status); }; }; then
23709   ac_lo=0 ac_mid=0
23710   while :; do
23711     cat >conftest.$ac_ext <<_ACEOF
23712 /* confdefs.h.  */
23713 _ACEOF
23714 cat confdefs.h >>conftest.$ac_ext
23715 cat >>conftest.$ac_ext <<_ACEOF
23716 /* end confdefs.h.  */
23717 $ac_includes_default
23718 int
23719 main ()
23720 {
23721 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23722 test_array [0] = 0
23723
23724   ;
23725   return 0;
23726 }
23727 _ACEOF
23728 rm -f conftest.$ac_objext
23729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23730   (eval $ac_compile) 2>conftest.er1
23731   ac_status=$?
23732   grep -v '^ *+' conftest.er1 >conftest.err
23733   rm -f conftest.er1
23734   cat conftest.err >&5
23735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736   (exit $ac_status); } &&
23737          { ac_try='test -z "$ac_c_werror_flag"
23738                          || test ! -s conftest.err'
23739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23740   (eval $ac_try) 2>&5
23741   ac_status=$?
23742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23743   (exit $ac_status); }; } &&
23744          { ac_try='test -s conftest.$ac_objext'
23745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23746   (eval $ac_try) 2>&5
23747   ac_status=$?
23748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23749   (exit $ac_status); }; }; then
23750   ac_hi=$ac_mid; break
23751 else
23752   echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23754
23755 ac_lo=`expr $ac_mid + 1`
23756                     if test $ac_lo -le $ac_mid; then
23757                       ac_lo= ac_hi=
23758                       break
23759                     fi
23760                     ac_mid=`expr 2 '*' $ac_mid + 1`
23761 fi
23762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23763   done
23764 else
23765   echo "$as_me: failed program was:" >&5
23766 sed 's/^/| /' conftest.$ac_ext >&5
23767
23768 cat >conftest.$ac_ext <<_ACEOF
23769 /* confdefs.h.  */
23770 _ACEOF
23771 cat confdefs.h >>conftest.$ac_ext
23772 cat >>conftest.$ac_ext <<_ACEOF
23773 /* end confdefs.h.  */
23774 $ac_includes_default
23775 int
23776 main ()
23777 {
23778 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23779 test_array [0] = 0
23780
23781   ;
23782   return 0;
23783 }
23784 _ACEOF
23785 rm -f conftest.$ac_objext
23786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23787   (eval $ac_compile) 2>conftest.er1
23788   ac_status=$?
23789   grep -v '^ *+' conftest.er1 >conftest.err
23790   rm -f conftest.er1
23791   cat conftest.err >&5
23792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793   (exit $ac_status); } &&
23794          { ac_try='test -z "$ac_c_werror_flag"
23795                          || test ! -s conftest.err'
23796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797   (eval $ac_try) 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); }; } &&
23801          { ac_try='test -s conftest.$ac_objext'
23802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803   (eval $ac_try) 2>&5
23804   ac_status=$?
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); }; }; then
23807   ac_hi=-1 ac_mid=-1
23808   while :; do
23809     cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 $ac_includes_default
23816 int
23817 main ()
23818 {
23819 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23820 test_array [0] = 0
23821
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
23826 rm -f conftest.$ac_objext
23827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23828   (eval $ac_compile) 2>conftest.er1
23829   ac_status=$?
23830   grep -v '^ *+' conftest.er1 >conftest.err
23831   rm -f conftest.er1
23832   cat conftest.err >&5
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); } &&
23835          { ac_try='test -z "$ac_c_werror_flag"
23836                          || test ! -s conftest.err'
23837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23838   (eval $ac_try) 2>&5
23839   ac_status=$?
23840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23841   (exit $ac_status); }; } &&
23842          { ac_try='test -s conftest.$ac_objext'
23843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23844   (eval $ac_try) 2>&5
23845   ac_status=$?
23846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23847   (exit $ac_status); }; }; then
23848   ac_lo=$ac_mid; break
23849 else
23850   echo "$as_me: failed program was:" >&5
23851 sed 's/^/| /' conftest.$ac_ext >&5
23852
23853 ac_hi=`expr '(' $ac_mid ')' - 1`
23854                        if test $ac_mid -le $ac_hi; then
23855                          ac_lo= ac_hi=
23856                          break
23857                        fi
23858                        ac_mid=`expr 2 '*' $ac_mid`
23859 fi
23860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23861   done
23862 else
23863   echo "$as_me: failed program was:" >&5
23864 sed 's/^/| /' conftest.$ac_ext >&5
23865
23866 ac_lo= ac_hi=
23867 fi
23868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23869 fi
23870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23871 # Binary search between lo and hi bounds.
23872 while test "x$ac_lo" != "x$ac_hi"; do
23873   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23874   cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 $ac_includes_default
23881 int
23882 main ()
23883 {
23884 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23885 test_array [0] = 0
23886
23887   ;
23888   return 0;
23889 }
23890 _ACEOF
23891 rm -f conftest.$ac_objext
23892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23893   (eval $ac_compile) 2>conftest.er1
23894   ac_status=$?
23895   grep -v '^ *+' conftest.er1 >conftest.err
23896   rm -f conftest.er1
23897   cat conftest.err >&5
23898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899   (exit $ac_status); } &&
23900          { ac_try='test -z "$ac_c_werror_flag"
23901                          || test ! -s conftest.err'
23902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903   (eval $ac_try) 2>&5
23904   ac_status=$?
23905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906   (exit $ac_status); }; } &&
23907          { ac_try='test -s conftest.$ac_objext'
23908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909   (eval $ac_try) 2>&5
23910   ac_status=$?
23911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912   (exit $ac_status); }; }; then
23913   ac_hi=$ac_mid
23914 else
23915   echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23917
23918 ac_lo=`expr '(' $ac_mid ')' + 1`
23919 fi
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23921 done
23922 case $ac_lo in
23923 ?*) ac_cv_sizeof_int=$ac_lo;;
23924 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23925 See \`config.log' for more details." >&5
23926 echo "$as_me: error: cannot compute sizeof (int), 77
23927 See \`config.log' for more details." >&2;}
23928    { (exit 1); exit 1; }; } ;;
23929 esac
23930 else
23931   if test "$cross_compiling" = yes; then
23932   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23933 See \`config.log' for more details." >&5
23934 echo "$as_me: error: cannot run test program while cross compiling
23935 See \`config.log' for more details." >&2;}
23936    { (exit 1); exit 1; }; }
23937 else
23938   cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h.  */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h.  */
23944 $ac_includes_default
23945 long longval () { return (long) (sizeof (int)); }
23946 unsigned long ulongval () { return (long) (sizeof (int)); }
23947 #include <stdio.h>
23948 #include <stdlib.h>
23949 int
23950 main ()
23951 {
23952
23953   FILE *f = fopen ("conftest.val", "w");
23954   if (! f)
23955     exit (1);
23956   if (((long) (sizeof (int))) < 0)
23957     {
23958       long i = longval ();
23959       if (i != ((long) (sizeof (int))))
23960         exit (1);
23961       fprintf (f, "%ld\n", i);
23962     }
23963   else
23964     {
23965       unsigned long i = ulongval ();
23966       if (i != ((long) (sizeof (int))))
23967         exit (1);
23968       fprintf (f, "%lu\n", i);
23969     }
23970   exit (ferror (f) || fclose (f) != 0);
23971
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 rm -f conftest$ac_exeext
23977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23978   (eval $ac_link) 2>&5
23979   ac_status=$?
23980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23981   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983   (eval $ac_try) 2>&5
23984   ac_status=$?
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); }; }; then
23987   ac_cv_sizeof_int=`cat conftest.val`
23988 else
23989   echo "$as_me: program exited with status $ac_status" >&5
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993 ( exit $ac_status )
23994 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23995 See \`config.log' for more details." >&5
23996 echo "$as_me: error: cannot compute sizeof (int), 77
23997 See \`config.log' for more details." >&2;}
23998    { (exit 1); exit 1; }; }
23999 fi
24000 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24001 fi
24002 fi
24003 rm -f conftest.val
24004 else
24005   ac_cv_sizeof_int=0
24006 fi
24007 fi
24008 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24009 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24010 cat >>confdefs.h <<_ACEOF
24011 #define SIZEOF_INT $ac_cv_sizeof_int
24012 _ACEOF
24013
24014
24015 echo "$as_me:$LINENO: checking for long int" >&5
24016 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24017 if test "${ac_cv_type_long_int+set}" = set; then
24018   echo $ECHO_N "(cached) $ECHO_C" >&6
24019 else
24020   cat >conftest.$ac_ext <<_ACEOF
24021 /* confdefs.h.  */
24022 _ACEOF
24023 cat confdefs.h >>conftest.$ac_ext
24024 cat >>conftest.$ac_ext <<_ACEOF
24025 /* end confdefs.h.  */
24026 $ac_includes_default
24027 int
24028 main ()
24029 {
24030 if ((long int *) 0)
24031   return 0;
24032 if (sizeof (long int))
24033   return 0;
24034   ;
24035   return 0;
24036 }
24037 _ACEOF
24038 rm -f conftest.$ac_objext
24039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24040   (eval $ac_compile) 2>conftest.er1
24041   ac_status=$?
24042   grep -v '^ *+' conftest.er1 >conftest.err
24043   rm -f conftest.er1
24044   cat conftest.err >&5
24045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24046   (exit $ac_status); } &&
24047          { ac_try='test -z "$ac_c_werror_flag"
24048                          || test ! -s conftest.err'
24049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050   (eval $ac_try) 2>&5
24051   ac_status=$?
24052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053   (exit $ac_status); }; } &&
24054          { ac_try='test -s conftest.$ac_objext'
24055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24056   (eval $ac_try) 2>&5
24057   ac_status=$?
24058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24059   (exit $ac_status); }; }; then
24060   ac_cv_type_long_int=yes
24061 else
24062   echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24064
24065 ac_cv_type_long_int=no
24066 fi
24067 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24068 fi
24069 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24070 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24071
24072 echo "$as_me:$LINENO: checking size of long int" >&5
24073 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24074 if test "${ac_cv_sizeof_long_int+set}" = set; then
24075   echo $ECHO_N "(cached) $ECHO_C" >&6
24076 else
24077   if test "$ac_cv_type_long_int" = yes; then
24078   # The cast to unsigned long works around a bug in the HP C Compiler
24079   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24080   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24081   # This bug is HP SR number 8606223364.
24082   if test "$cross_compiling" = yes; then
24083   # Depending upon the size, compute the lo and hi bounds.
24084 cat >conftest.$ac_ext <<_ACEOF
24085 /* confdefs.h.  */
24086 _ACEOF
24087 cat confdefs.h >>conftest.$ac_ext
24088 cat >>conftest.$ac_ext <<_ACEOF
24089 /* end confdefs.h.  */
24090 $ac_includes_default
24091 int
24092 main ()
24093 {
24094 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24095 test_array [0] = 0
24096
24097   ;
24098   return 0;
24099 }
24100 _ACEOF
24101 rm -f conftest.$ac_objext
24102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24103   (eval $ac_compile) 2>conftest.er1
24104   ac_status=$?
24105   grep -v '^ *+' conftest.er1 >conftest.err
24106   rm -f conftest.er1
24107   cat conftest.err >&5
24108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109   (exit $ac_status); } &&
24110          { ac_try='test -z "$ac_c_werror_flag"
24111                          || test ! -s conftest.err'
24112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24113   (eval $ac_try) 2>&5
24114   ac_status=$?
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); }; } &&
24117          { ac_try='test -s conftest.$ac_objext'
24118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24119   (eval $ac_try) 2>&5
24120   ac_status=$?
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); }; }; then
24123   ac_lo=0 ac_mid=0
24124   while :; do
24125     cat >conftest.$ac_ext <<_ACEOF
24126 /* confdefs.h.  */
24127 _ACEOF
24128 cat confdefs.h >>conftest.$ac_ext
24129 cat >>conftest.$ac_ext <<_ACEOF
24130 /* end confdefs.h.  */
24131 $ac_includes_default
24132 int
24133 main ()
24134 {
24135 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24136 test_array [0] = 0
24137
24138   ;
24139   return 0;
24140 }
24141 _ACEOF
24142 rm -f conftest.$ac_objext
24143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24144   (eval $ac_compile) 2>conftest.er1
24145   ac_status=$?
24146   grep -v '^ *+' conftest.er1 >conftest.err
24147   rm -f conftest.er1
24148   cat conftest.err >&5
24149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150   (exit $ac_status); } &&
24151          { ac_try='test -z "$ac_c_werror_flag"
24152                          || test ! -s conftest.err'
24153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154   (eval $ac_try) 2>&5
24155   ac_status=$?
24156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157   (exit $ac_status); }; } &&
24158          { ac_try='test -s conftest.$ac_objext'
24159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24160   (eval $ac_try) 2>&5
24161   ac_status=$?
24162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24163   (exit $ac_status); }; }; then
24164   ac_hi=$ac_mid; break
24165 else
24166   echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169 ac_lo=`expr $ac_mid + 1`
24170                     if test $ac_lo -le $ac_mid; then
24171                       ac_lo= ac_hi=
24172                       break
24173                     fi
24174                     ac_mid=`expr 2 '*' $ac_mid + 1`
24175 fi
24176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24177   done
24178 else
24179   echo "$as_me: failed program was:" >&5
24180 sed 's/^/| /' conftest.$ac_ext >&5
24181
24182 cat >conftest.$ac_ext <<_ACEOF
24183 /* confdefs.h.  */
24184 _ACEOF
24185 cat confdefs.h >>conftest.$ac_ext
24186 cat >>conftest.$ac_ext <<_ACEOF
24187 /* end confdefs.h.  */
24188 $ac_includes_default
24189 int
24190 main ()
24191 {
24192 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24193 test_array [0] = 0
24194
24195   ;
24196   return 0;
24197 }
24198 _ACEOF
24199 rm -f conftest.$ac_objext
24200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24201   (eval $ac_compile) 2>conftest.er1
24202   ac_status=$?
24203   grep -v '^ *+' conftest.er1 >conftest.err
24204   rm -f conftest.er1
24205   cat conftest.err >&5
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); } &&
24208          { ac_try='test -z "$ac_c_werror_flag"
24209                          || test ! -s conftest.err'
24210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24211   (eval $ac_try) 2>&5
24212   ac_status=$?
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); }; } &&
24215          { ac_try='test -s conftest.$ac_objext'
24216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24217   (eval $ac_try) 2>&5
24218   ac_status=$?
24219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24220   (exit $ac_status); }; }; then
24221   ac_hi=-1 ac_mid=-1
24222   while :; do
24223     cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 $ac_includes_default
24230 int
24231 main ()
24232 {
24233 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24234 test_array [0] = 0
24235
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 rm -f conftest.$ac_objext
24241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24242   (eval $ac_compile) 2>conftest.er1
24243   ac_status=$?
24244   grep -v '^ *+' conftest.er1 >conftest.err
24245   rm -f conftest.er1
24246   cat conftest.err >&5
24247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24248   (exit $ac_status); } &&
24249          { ac_try='test -z "$ac_c_werror_flag"
24250                          || test ! -s conftest.err'
24251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24252   (eval $ac_try) 2>&5
24253   ac_status=$?
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); }; } &&
24256          { ac_try='test -s conftest.$ac_objext'
24257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258   (eval $ac_try) 2>&5
24259   ac_status=$?
24260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261   (exit $ac_status); }; }; then
24262   ac_lo=$ac_mid; break
24263 else
24264   echo "$as_me: failed program was:" >&5
24265 sed 's/^/| /' conftest.$ac_ext >&5
24266
24267 ac_hi=`expr '(' $ac_mid ')' - 1`
24268                        if test $ac_mid -le $ac_hi; then
24269                          ac_lo= ac_hi=
24270                          break
24271                        fi
24272                        ac_mid=`expr 2 '*' $ac_mid`
24273 fi
24274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24275   done
24276 else
24277   echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24279
24280 ac_lo= ac_hi=
24281 fi
24282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24283 fi
24284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24285 # Binary search between lo and hi bounds.
24286 while test "x$ac_lo" != "x$ac_hi"; do
24287   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24288   cat >conftest.$ac_ext <<_ACEOF
24289 /* confdefs.h.  */
24290 _ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h.  */
24294 $ac_includes_default
24295 int
24296 main ()
24297 {
24298 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24299 test_array [0] = 0
24300
24301   ;
24302   return 0;
24303 }
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307   (eval $ac_compile) 2>conftest.er1
24308   ac_status=$?
24309   grep -v '^ *+' conftest.er1 >conftest.err
24310   rm -f conftest.er1
24311   cat conftest.err >&5
24312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313   (exit $ac_status); } &&
24314          { ac_try='test -z "$ac_c_werror_flag"
24315                          || test ! -s conftest.err'
24316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317   (eval $ac_try) 2>&5
24318   ac_status=$?
24319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320   (exit $ac_status); }; } &&
24321          { ac_try='test -s conftest.$ac_objext'
24322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323   (eval $ac_try) 2>&5
24324   ac_status=$?
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); }; }; then
24327   ac_hi=$ac_mid
24328 else
24329   echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24331
24332 ac_lo=`expr '(' $ac_mid ')' + 1`
24333 fi
24334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24335 done
24336 case $ac_lo in
24337 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24338 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24339 See \`config.log' for more details." >&5
24340 echo "$as_me: error: cannot compute sizeof (long int), 77
24341 See \`config.log' for more details." >&2;}
24342    { (exit 1); exit 1; }; } ;;
24343 esac
24344 else
24345   if test "$cross_compiling" = yes; then
24346   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24347 See \`config.log' for more details." >&5
24348 echo "$as_me: error: cannot run test program while cross compiling
24349 See \`config.log' for more details." >&2;}
24350    { (exit 1); exit 1; }; }
24351 else
24352   cat >conftest.$ac_ext <<_ACEOF
24353 /* confdefs.h.  */
24354 _ACEOF
24355 cat confdefs.h >>conftest.$ac_ext
24356 cat >>conftest.$ac_ext <<_ACEOF
24357 /* end confdefs.h.  */
24358 $ac_includes_default
24359 long longval () { return (long) (sizeof (long int)); }
24360 unsigned long ulongval () { return (long) (sizeof (long int)); }
24361 #include <stdio.h>
24362 #include <stdlib.h>
24363 int
24364 main ()
24365 {
24366
24367   FILE *f = fopen ("conftest.val", "w");
24368   if (! f)
24369     exit (1);
24370   if (((long) (sizeof (long int))) < 0)
24371     {
24372       long i = longval ();
24373       if (i != ((long) (sizeof (long int))))
24374         exit (1);
24375       fprintf (f, "%ld\n", i);
24376     }
24377   else
24378     {
24379       unsigned long i = ulongval ();
24380       if (i != ((long) (sizeof (long int))))
24381         exit (1);
24382       fprintf (f, "%lu\n", i);
24383     }
24384   exit (ferror (f) || fclose (f) != 0);
24385
24386   ;
24387   return 0;
24388 }
24389 _ACEOF
24390 rm -f conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392   (eval $ac_link) 2>&5
24393   ac_status=$?
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24397   (eval $ac_try) 2>&5
24398   ac_status=$?
24399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400   (exit $ac_status); }; }; then
24401   ac_cv_sizeof_long_int=`cat conftest.val`
24402 else
24403   echo "$as_me: program exited with status $ac_status" >&5
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407 ( exit $ac_status )
24408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24409 See \`config.log' for more details." >&5
24410 echo "$as_me: error: cannot compute sizeof (long int), 77
24411 See \`config.log' for more details." >&2;}
24412    { (exit 1); exit 1; }; }
24413 fi
24414 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24415 fi
24416 fi
24417 rm -f conftest.val
24418 else
24419   ac_cv_sizeof_long_int=0
24420 fi
24421 fi
24422 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24423 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24424 cat >>confdefs.h <<_ACEOF
24425 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24426 _ACEOF
24427
24428
24429 echo "$as_me:$LINENO: checking for long long int" >&5
24430 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24431 if test "${ac_cv_type_long_long_int+set}" = set; then
24432   echo $ECHO_N "(cached) $ECHO_C" >&6
24433 else
24434   cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440 $ac_includes_default
24441 int
24442 main ()
24443 {
24444 if ((long long int *) 0)
24445   return 0;
24446 if (sizeof (long long int))
24447   return 0;
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 rm -f conftest.$ac_objext
24453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24454   (eval $ac_compile) 2>conftest.er1
24455   ac_status=$?
24456   grep -v '^ *+' conftest.er1 >conftest.err
24457   rm -f conftest.er1
24458   cat conftest.err >&5
24459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460   (exit $ac_status); } &&
24461          { ac_try='test -z "$ac_c_werror_flag"
24462                          || test ! -s conftest.err'
24463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24464   (eval $ac_try) 2>&5
24465   ac_status=$?
24466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24467   (exit $ac_status); }; } &&
24468          { ac_try='test -s conftest.$ac_objext'
24469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470   (eval $ac_try) 2>&5
24471   ac_status=$?
24472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473   (exit $ac_status); }; }; then
24474   ac_cv_type_long_long_int=yes
24475 else
24476   echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24478
24479 ac_cv_type_long_long_int=no
24480 fi
24481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24482 fi
24483 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24484 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24485
24486 echo "$as_me:$LINENO: checking size of long long int" >&5
24487 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24488 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24489   echo $ECHO_N "(cached) $ECHO_C" >&6
24490 else
24491   if test "$ac_cv_type_long_long_int" = yes; then
24492   # The cast to unsigned long works around a bug in the HP C Compiler
24493   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24494   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24495   # This bug is HP SR number 8606223364.
24496   if test "$cross_compiling" = yes; then
24497   # Depending upon the size, compute the lo and hi bounds.
24498 cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505 int
24506 main ()
24507 {
24508 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24509 test_array [0] = 0
24510
24511   ;
24512   return 0;
24513 }
24514 _ACEOF
24515 rm -f conftest.$ac_objext
24516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24517   (eval $ac_compile) 2>conftest.er1
24518   ac_status=$?
24519   grep -v '^ *+' conftest.er1 >conftest.err
24520   rm -f conftest.er1
24521   cat conftest.err >&5
24522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24523   (exit $ac_status); } &&
24524          { ac_try='test -z "$ac_c_werror_flag"
24525                          || test ! -s conftest.err'
24526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24527   (eval $ac_try) 2>&5
24528   ac_status=$?
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); }; } &&
24531          { ac_try='test -s conftest.$ac_objext'
24532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533   (eval $ac_try) 2>&5
24534   ac_status=$?
24535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536   (exit $ac_status); }; }; then
24537   ac_lo=0 ac_mid=0
24538   while :; do
24539     cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h.  */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h.  */
24545 $ac_includes_default
24546 int
24547 main ()
24548 {
24549 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24550 test_array [0] = 0
24551
24552   ;
24553   return 0;
24554 }
24555 _ACEOF
24556 rm -f conftest.$ac_objext
24557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24558   (eval $ac_compile) 2>conftest.er1
24559   ac_status=$?
24560   grep -v '^ *+' conftest.er1 >conftest.err
24561   rm -f conftest.er1
24562   cat conftest.err >&5
24563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564   (exit $ac_status); } &&
24565          { ac_try='test -z "$ac_c_werror_flag"
24566                          || test ! -s conftest.err'
24567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24568   (eval $ac_try) 2>&5
24569   ac_status=$?
24570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571   (exit $ac_status); }; } &&
24572          { ac_try='test -s conftest.$ac_objext'
24573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24574   (eval $ac_try) 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; }; then
24578   ac_hi=$ac_mid; break
24579 else
24580   echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24582
24583 ac_lo=`expr $ac_mid + 1`
24584                     if test $ac_lo -le $ac_mid; then
24585                       ac_lo= ac_hi=
24586                       break
24587                     fi
24588                     ac_mid=`expr 2 '*' $ac_mid + 1`
24589 fi
24590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24591   done
24592 else
24593   echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.$ac_ext >&5
24595
24596 cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h.  */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
24601 /* end confdefs.h.  */
24602 $ac_includes_default
24603 int
24604 main ()
24605 {
24606 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24607 test_array [0] = 0
24608
24609   ;
24610   return 0;
24611 }
24612 _ACEOF
24613 rm -f conftest.$ac_objext
24614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24615   (eval $ac_compile) 2>conftest.er1
24616   ac_status=$?
24617   grep -v '^ *+' conftest.er1 >conftest.err
24618   rm -f conftest.er1
24619   cat conftest.err >&5
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } &&
24622          { ac_try='test -z "$ac_c_werror_flag"
24623                          || test ! -s conftest.err'
24624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24625   (eval $ac_try) 2>&5
24626   ac_status=$?
24627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24628   (exit $ac_status); }; } &&
24629          { ac_try='test -s conftest.$ac_objext'
24630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24631   (eval $ac_try) 2>&5
24632   ac_status=$?
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); }; }; then
24635   ac_hi=-1 ac_mid=-1
24636   while :; do
24637     cat >conftest.$ac_ext <<_ACEOF
24638 /* confdefs.h.  */
24639 _ACEOF
24640 cat confdefs.h >>conftest.$ac_ext
24641 cat >>conftest.$ac_ext <<_ACEOF
24642 /* end confdefs.h.  */
24643 $ac_includes_default
24644 int
24645 main ()
24646 {
24647 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
24648 test_array [0] = 0
24649
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 rm -f conftest.$ac_objext
24655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24656   (eval $ac_compile) 2>conftest.er1
24657   ac_status=$?
24658   grep -v '^ *+' conftest.er1 >conftest.err
24659   rm -f conftest.er1
24660   cat conftest.err >&5
24661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662   (exit $ac_status); } &&
24663          { ac_try='test -z "$ac_c_werror_flag"
24664                          || test ! -s conftest.err'
24665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666   (eval $ac_try) 2>&5
24667   ac_status=$?
24668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669   (exit $ac_status); }; } &&
24670          { ac_try='test -s conftest.$ac_objext'
24671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672   (eval $ac_try) 2>&5
24673   ac_status=$?
24674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675   (exit $ac_status); }; }; then
24676   ac_lo=$ac_mid; break
24677 else
24678   echo "$as_me: failed program was:" >&5
24679 sed 's/^/| /' conftest.$ac_ext >&5
24680
24681 ac_hi=`expr '(' $ac_mid ')' - 1`
24682                        if test $ac_mid -le $ac_hi; then
24683                          ac_lo= ac_hi=
24684                          break
24685                        fi
24686                        ac_mid=`expr 2 '*' $ac_mid`
24687 fi
24688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24689   done
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694 ac_lo= ac_hi=
24695 fi
24696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24697 fi
24698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24699 # Binary search between lo and hi bounds.
24700 while test "x$ac_lo" != "x$ac_hi"; do
24701   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24702   cat >conftest.$ac_ext <<_ACEOF
24703 /* confdefs.h.  */
24704 _ACEOF
24705 cat confdefs.h >>conftest.$ac_ext
24706 cat >>conftest.$ac_ext <<_ACEOF
24707 /* end confdefs.h.  */
24708 $ac_includes_default
24709 int
24710 main ()
24711 {
24712 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24713 test_array [0] = 0
24714
24715   ;
24716   return 0;
24717 }
24718 _ACEOF
24719 rm -f conftest.$ac_objext
24720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24721   (eval $ac_compile) 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } &&
24728          { ac_try='test -z "$ac_c_werror_flag"
24729                          || test ! -s conftest.err'
24730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731   (eval $ac_try) 2>&5
24732   ac_status=$?
24733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734   (exit $ac_status); }; } &&
24735          { ac_try='test -s conftest.$ac_objext'
24736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737   (eval $ac_try) 2>&5
24738   ac_status=$?
24739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740   (exit $ac_status); }; }; then
24741   ac_hi=$ac_mid
24742 else
24743   echo "$as_me: failed program was:" >&5
24744 sed 's/^/| /' conftest.$ac_ext >&5
24745
24746 ac_lo=`expr '(' $ac_mid ')' + 1`
24747 fi
24748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24749 done
24750 case $ac_lo in
24751 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24753 See \`config.log' for more details." >&5
24754 echo "$as_me: error: cannot compute sizeof (long long int), 77
24755 See \`config.log' for more details." >&2;}
24756    { (exit 1); exit 1; }; } ;;
24757 esac
24758 else
24759   if test "$cross_compiling" = yes; then
24760   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24761 See \`config.log' for more details." >&5
24762 echo "$as_me: error: cannot run test program while cross compiling
24763 See \`config.log' for more details." >&2;}
24764    { (exit 1); exit 1; }; }
24765 else
24766   cat >conftest.$ac_ext <<_ACEOF
24767 /* confdefs.h.  */
24768 _ACEOF
24769 cat confdefs.h >>conftest.$ac_ext
24770 cat >>conftest.$ac_ext <<_ACEOF
24771 /* end confdefs.h.  */
24772 $ac_includes_default
24773 long longval () { return (long) (sizeof (long long int)); }
24774 unsigned long ulongval () { return (long) (sizeof (long long int)); }
24775 #include <stdio.h>
24776 #include <stdlib.h>
24777 int
24778 main ()
24779 {
24780
24781   FILE *f = fopen ("conftest.val", "w");
24782   if (! f)
24783     exit (1);
24784   if (((long) (sizeof (long long int))) < 0)
24785     {
24786       long i = longval ();
24787       if (i != ((long) (sizeof (long long int))))
24788         exit (1);
24789       fprintf (f, "%ld\n", i);
24790     }
24791   else
24792     {
24793       unsigned long i = ulongval ();
24794       if (i != ((long) (sizeof (long long int))))
24795         exit (1);
24796       fprintf (f, "%lu\n", i);
24797     }
24798   exit (ferror (f) || fclose (f) != 0);
24799
24800   ;
24801   return 0;
24802 }
24803 _ACEOF
24804 rm -f conftest$ac_exeext
24805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24806   (eval $ac_link) 2>&5
24807   ac_status=$?
24808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811   (eval $ac_try) 2>&5
24812   ac_status=$?
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); }; }; then
24815   ac_cv_sizeof_long_long_int=`cat conftest.val`
24816 else
24817   echo "$as_me: program exited with status $ac_status" >&5
24818 echo "$as_me: failed program was:" >&5
24819 sed 's/^/| /' conftest.$ac_ext >&5
24820
24821 ( exit $ac_status )
24822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
24823 See \`config.log' for more details." >&5
24824 echo "$as_me: error: cannot compute sizeof (long long int), 77
24825 See \`config.log' for more details." >&2;}
24826    { (exit 1); exit 1; }; }
24827 fi
24828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24829 fi
24830 fi
24831 rm -f conftest.val
24832 else
24833   ac_cv_sizeof_long_long_int=0
24834 fi
24835 fi
24836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24837 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
24838 cat >>confdefs.h <<_ACEOF
24839 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24840 _ACEOF
24841
24842
24843 echo "$as_me:$LINENO: checking for int *" >&5
24844 echo $ECHO_N "checking for int *... $ECHO_C" >&6
24845 if test "${ac_cv_type_int_p+set}" = set; then
24846   echo $ECHO_N "(cached) $ECHO_C" >&6
24847 else
24848   cat >conftest.$ac_ext <<_ACEOF
24849 /* confdefs.h.  */
24850 _ACEOF
24851 cat confdefs.h >>conftest.$ac_ext
24852 cat >>conftest.$ac_ext <<_ACEOF
24853 /* end confdefs.h.  */
24854 $ac_includes_default
24855 int
24856 main ()
24857 {
24858 if ((int * *) 0)
24859   return 0;
24860 if (sizeof (int *))
24861   return 0;
24862   ;
24863   return 0;
24864 }
24865 _ACEOF
24866 rm -f conftest.$ac_objext
24867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24868   (eval $ac_compile) 2>conftest.er1
24869   ac_status=$?
24870   grep -v '^ *+' conftest.er1 >conftest.err
24871   rm -f conftest.er1
24872   cat conftest.err >&5
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); } &&
24875          { ac_try='test -z "$ac_c_werror_flag"
24876                          || test ! -s conftest.err'
24877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24878   (eval $ac_try) 2>&5
24879   ac_status=$?
24880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24881   (exit $ac_status); }; } &&
24882          { ac_try='test -s conftest.$ac_objext'
24883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24884   (eval $ac_try) 2>&5
24885   ac_status=$?
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); }; }; then
24888   ac_cv_type_int_p=yes
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893 ac_cv_type_int_p=no
24894 fi
24895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24896 fi
24897 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24898 echo "${ECHO_T}$ac_cv_type_int_p" >&6
24899
24900 echo "$as_me:$LINENO: checking size of int *" >&5
24901 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
24902 if test "${ac_cv_sizeof_int_p+set}" = set; then
24903   echo $ECHO_N "(cached) $ECHO_C" >&6
24904 else
24905   if test "$ac_cv_type_int_p" = yes; then
24906   # The cast to unsigned long works around a bug in the HP C Compiler
24907   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909   # This bug is HP SR number 8606223364.
24910   if test "$cross_compiling" = yes; then
24911   # Depending upon the size, compute the lo and hi bounds.
24912 cat >conftest.$ac_ext <<_ACEOF
24913 /* confdefs.h.  */
24914 _ACEOF
24915 cat confdefs.h >>conftest.$ac_ext
24916 cat >>conftest.$ac_ext <<_ACEOF
24917 /* end confdefs.h.  */
24918 $ac_includes_default
24919 int
24920 main ()
24921 {
24922 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
24923 test_array [0] = 0
24924
24925   ;
24926   return 0;
24927 }
24928 _ACEOF
24929 rm -f conftest.$ac_objext
24930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24931   (eval $ac_compile) 2>conftest.er1
24932   ac_status=$?
24933   grep -v '^ *+' conftest.er1 >conftest.err
24934   rm -f conftest.er1
24935   cat conftest.err >&5
24936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24937   (exit $ac_status); } &&
24938          { ac_try='test -z "$ac_c_werror_flag"
24939                          || test ! -s conftest.err'
24940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941   (eval $ac_try) 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; } &&
24945          { ac_try='test -s conftest.$ac_objext'
24946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24947   (eval $ac_try) 2>&5
24948   ac_status=$?
24949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24950   (exit $ac_status); }; }; then
24951   ac_lo=0 ac_mid=0
24952   while :; do
24953     cat >conftest.$ac_ext <<_ACEOF
24954 /* confdefs.h.  */
24955 _ACEOF
24956 cat confdefs.h >>conftest.$ac_ext
24957 cat >>conftest.$ac_ext <<_ACEOF
24958 /* end confdefs.h.  */
24959 $ac_includes_default
24960 int
24961 main ()
24962 {
24963 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
24964 test_array [0] = 0
24965
24966   ;
24967   return 0;
24968 }
24969 _ACEOF
24970 rm -f conftest.$ac_objext
24971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24972   (eval $ac_compile) 2>conftest.er1
24973   ac_status=$?
24974   grep -v '^ *+' conftest.er1 >conftest.err
24975   rm -f conftest.er1
24976   cat conftest.err >&5
24977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24978   (exit $ac_status); } &&
24979          { ac_try='test -z "$ac_c_werror_flag"
24980                          || test ! -s conftest.err'
24981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24982   (eval $ac_try) 2>&5
24983   ac_status=$?
24984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24985   (exit $ac_status); }; } &&
24986          { ac_try='test -s conftest.$ac_objext'
24987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988   (eval $ac_try) 2>&5
24989   ac_status=$?
24990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991   (exit $ac_status); }; }; then
24992   ac_hi=$ac_mid; break
24993 else
24994   echo "$as_me: failed program was:" >&5
24995 sed 's/^/| /' conftest.$ac_ext >&5
24996
24997 ac_lo=`expr $ac_mid + 1`
24998                     if test $ac_lo -le $ac_mid; then
24999                       ac_lo= ac_hi=
25000                       break
25001                     fi
25002                     ac_mid=`expr 2 '*' $ac_mid + 1`
25003 fi
25004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25005   done
25006 else
25007   echo "$as_me: failed program was:" >&5
25008 sed 's/^/| /' conftest.$ac_ext >&5
25009
25010 cat >conftest.$ac_ext <<_ACEOF
25011 /* confdefs.h.  */
25012 _ACEOF
25013 cat confdefs.h >>conftest.$ac_ext
25014 cat >>conftest.$ac_ext <<_ACEOF
25015 /* end confdefs.h.  */
25016 $ac_includes_default
25017 int
25018 main ()
25019 {
25020 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25021 test_array [0] = 0
25022
25023   ;
25024   return 0;
25025 }
25026 _ACEOF
25027 rm -f conftest.$ac_objext
25028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25029   (eval $ac_compile) 2>conftest.er1
25030   ac_status=$?
25031   grep -v '^ *+' conftest.er1 >conftest.err
25032   rm -f conftest.er1
25033   cat conftest.err >&5
25034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035   (exit $ac_status); } &&
25036          { ac_try='test -z "$ac_c_werror_flag"
25037                          || test ! -s conftest.err'
25038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25039   (eval $ac_try) 2>&5
25040   ac_status=$?
25041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042   (exit $ac_status); }; } &&
25043          { ac_try='test -s conftest.$ac_objext'
25044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25045   (eval $ac_try) 2>&5
25046   ac_status=$?
25047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048   (exit $ac_status); }; }; then
25049   ac_hi=-1 ac_mid=-1
25050   while :; do
25051     cat >conftest.$ac_ext <<_ACEOF
25052 /* confdefs.h.  */
25053 _ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h.  */
25057 $ac_includes_default
25058 int
25059 main ()
25060 {
25061 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25062 test_array [0] = 0
25063
25064   ;
25065   return 0;
25066 }
25067 _ACEOF
25068 rm -f conftest.$ac_objext
25069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25070   (eval $ac_compile) 2>conftest.er1
25071   ac_status=$?
25072   grep -v '^ *+' conftest.er1 >conftest.err
25073   rm -f conftest.er1
25074   cat conftest.err >&5
25075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076   (exit $ac_status); } &&
25077          { ac_try='test -z "$ac_c_werror_flag"
25078                          || test ! -s conftest.err'
25079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25080   (eval $ac_try) 2>&5
25081   ac_status=$?
25082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25083   (exit $ac_status); }; } &&
25084          { ac_try='test -s conftest.$ac_objext'
25085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25086   (eval $ac_try) 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; }; then
25090   ac_lo=$ac_mid; break
25091 else
25092   echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25094
25095 ac_hi=`expr '(' $ac_mid ')' - 1`
25096                        if test $ac_mid -le $ac_hi; then
25097                          ac_lo= ac_hi=
25098                          break
25099                        fi
25100                        ac_mid=`expr 2 '*' $ac_mid`
25101 fi
25102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25103   done
25104 else
25105   echo "$as_me: failed program was:" >&5
25106 sed 's/^/| /' conftest.$ac_ext >&5
25107
25108 ac_lo= ac_hi=
25109 fi
25110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25111 fi
25112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25113 # Binary search between lo and hi bounds.
25114 while test "x$ac_lo" != "x$ac_hi"; do
25115   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25116   cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 $ac_includes_default
25123 int
25124 main ()
25125 {
25126 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25127 test_array [0] = 0
25128
25129   ;
25130   return 0;
25131 }
25132 _ACEOF
25133 rm -f conftest.$ac_objext
25134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25135   (eval $ac_compile) 2>conftest.er1
25136   ac_status=$?
25137   grep -v '^ *+' conftest.er1 >conftest.err
25138   rm -f conftest.er1
25139   cat conftest.err >&5
25140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141   (exit $ac_status); } &&
25142          { ac_try='test -z "$ac_c_werror_flag"
25143                          || test ! -s conftest.err'
25144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25145   (eval $ac_try) 2>&5
25146   ac_status=$?
25147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148   (exit $ac_status); }; } &&
25149          { ac_try='test -s conftest.$ac_objext'
25150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25151   (eval $ac_try) 2>&5
25152   ac_status=$?
25153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154   (exit $ac_status); }; }; then
25155   ac_hi=$ac_mid
25156 else
25157   echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25159
25160 ac_lo=`expr '(' $ac_mid ')' + 1`
25161 fi
25162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25163 done
25164 case $ac_lo in
25165 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25166 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25167 See \`config.log' for more details." >&5
25168 echo "$as_me: error: cannot compute sizeof (int *), 77
25169 See \`config.log' for more details." >&2;}
25170    { (exit 1); exit 1; }; } ;;
25171 esac
25172 else
25173   if test "$cross_compiling" = yes; then
25174   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25175 See \`config.log' for more details." >&5
25176 echo "$as_me: error: cannot run test program while cross compiling
25177 See \`config.log' for more details." >&2;}
25178    { (exit 1); exit 1; }; }
25179 else
25180   cat >conftest.$ac_ext <<_ACEOF
25181 /* confdefs.h.  */
25182 _ACEOF
25183 cat confdefs.h >>conftest.$ac_ext
25184 cat >>conftest.$ac_ext <<_ACEOF
25185 /* end confdefs.h.  */
25186 $ac_includes_default
25187 long longval () { return (long) (sizeof (int *)); }
25188 unsigned long ulongval () { return (long) (sizeof (int *)); }
25189 #include <stdio.h>
25190 #include <stdlib.h>
25191 int
25192 main ()
25193 {
25194
25195   FILE *f = fopen ("conftest.val", "w");
25196   if (! f)
25197     exit (1);
25198   if (((long) (sizeof (int *))) < 0)
25199     {
25200       long i = longval ();
25201       if (i != ((long) (sizeof (int *))))
25202         exit (1);
25203       fprintf (f, "%ld\n", i);
25204     }
25205   else
25206     {
25207       unsigned long i = ulongval ();
25208       if (i != ((long) (sizeof (int *))))
25209         exit (1);
25210       fprintf (f, "%lu\n", i);
25211     }
25212   exit (ferror (f) || fclose (f) != 0);
25213
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 rm -f conftest$ac_exeext
25219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25220   (eval $ac_link) 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25225   (eval $ac_try) 2>&5
25226   ac_status=$?
25227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25228   (exit $ac_status); }; }; then
25229   ac_cv_sizeof_int_p=`cat conftest.val`
25230 else
25231   echo "$as_me: program exited with status $ac_status" >&5
25232 echo "$as_me: failed program was:" >&5
25233 sed 's/^/| /' conftest.$ac_ext >&5
25234
25235 ( exit $ac_status )
25236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25237 See \`config.log' for more details." >&5
25238 echo "$as_me: error: cannot compute sizeof (int *), 77
25239 See \`config.log' for more details." >&2;}
25240    { (exit 1); exit 1; }; }
25241 fi
25242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25243 fi
25244 fi
25245 rm -f conftest.val
25246 else
25247   ac_cv_sizeof_int_p=0
25248 fi
25249 fi
25250 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25251 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25252 cat >>confdefs.h <<_ACEOF
25253 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25254 _ACEOF
25255
25256
25257
25258 # Check for sys/types.h types
25259 echo "$as_me:$LINENO: checking for u_int type" >&5
25260 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25261 if test "${ac_cv_have_u_int+set}" = set; then
25262   echo $ECHO_N "(cached) $ECHO_C" >&6
25263 else
25264
25265     cat >conftest.$ac_ext <<_ACEOF
25266 /* confdefs.h.  */
25267 _ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h.  */
25271  #include <sys/types.h>
25272 int
25273 main ()
25274 {
25275  u_int a; a = 1;
25276   ;
25277   return 0;
25278 }
25279 _ACEOF
25280 rm -f conftest.$ac_objext
25281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25282   (eval $ac_compile) 2>conftest.er1
25283   ac_status=$?
25284   grep -v '^ *+' conftest.er1 >conftest.err
25285   rm -f conftest.er1
25286   cat conftest.err >&5
25287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25288   (exit $ac_status); } &&
25289          { ac_try='test -z "$ac_c_werror_flag"
25290                          || test ! -s conftest.err'
25291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25292   (eval $ac_try) 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; } &&
25296          { ac_try='test -s conftest.$ac_objext'
25297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25298   (eval $ac_try) 2>&5
25299   ac_status=$?
25300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301   (exit $ac_status); }; }; then
25302    ac_cv_have_u_int="yes"
25303 else
25304   echo "$as_me: failed program was:" >&5
25305 sed 's/^/| /' conftest.$ac_ext >&5
25306
25307  ac_cv_have_u_int="no"
25308
25309 fi
25310 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25311
25312 fi
25313 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25314 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25315 if test "x$ac_cv_have_u_int" = "xyes" ; then
25316    cat >>confdefs.h <<\_ACEOF
25317 #define HAVE_U_INT 1
25318 _ACEOF
25319
25320    have_u_int=1
25321 fi
25322
25323 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25324 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25325 if test "${ac_cv_have_intmax_t+set}" = set; then
25326   echo $ECHO_N "(cached) $ECHO_C" >&6
25327 else
25328
25329    cat >conftest.$ac_ext <<_ACEOF
25330 /* confdefs.h.  */
25331 _ACEOF
25332 cat confdefs.h >>conftest.$ac_ext
25333 cat >>conftest.$ac_ext <<_ACEOF
25334 /* end confdefs.h.  */
25335  #include <sys/types.h>
25336 int
25337 main ()
25338 {
25339  intmax_t a; a = 1;
25340   ;
25341   return 0;
25342 }
25343 _ACEOF
25344 rm -f conftest.$ac_objext
25345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25346   (eval $ac_compile) 2>conftest.er1
25347   ac_status=$?
25348   grep -v '^ *+' conftest.er1 >conftest.err
25349   rm -f conftest.er1
25350   cat conftest.err >&5
25351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25352   (exit $ac_status); } &&
25353          { ac_try='test -z "$ac_c_werror_flag"
25354                          || test ! -s conftest.err'
25355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25356   (eval $ac_try) 2>&5
25357   ac_status=$?
25358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25359   (exit $ac_status); }; } &&
25360          { ac_try='test -s conftest.$ac_objext'
25361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25362   (eval $ac_try) 2>&5
25363   ac_status=$?
25364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25365   (exit $ac_status); }; }; then
25366    ac_cv_have_intmax_t="yes"
25367 else
25368   echo "$as_me: failed program was:" >&5
25369 sed 's/^/| /' conftest.$ac_ext >&5
25370
25371
25372          cat >conftest.$ac_ext <<_ACEOF
25373 /* confdefs.h.  */
25374 _ACEOF
25375 cat confdefs.h >>conftest.$ac_ext
25376 cat >>conftest.$ac_ext <<_ACEOF
25377 /* end confdefs.h.  */
25378  #include <stdint.h>
25379 int
25380 main ()
25381 {
25382  intmax_t a; a = 1;
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 rm -f conftest.$ac_objext
25388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25389   (eval $ac_compile) 2>conftest.er1
25390   ac_status=$?
25391   grep -v '^ *+' conftest.er1 >conftest.err
25392   rm -f conftest.er1
25393   cat conftest.err >&5
25394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395   (exit $ac_status); } &&
25396          { ac_try='test -z "$ac_c_werror_flag"
25397                          || test ! -s conftest.err'
25398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25399   (eval $ac_try) 2>&5
25400   ac_status=$?
25401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25402   (exit $ac_status); }; } &&
25403          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
25409    ac_cv_have_intmax_t="yes"
25410 else
25411   echo "$as_me: failed program was:" >&5
25412 sed 's/^/| /' conftest.$ac_ext >&5
25413
25414  ac_cv_have_intmax_t="no"
25415
25416 fi
25417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25418
25419
25420 fi
25421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25422
25423
25424 fi
25425 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25426 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25427 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25428    cat >>confdefs.h <<\_ACEOF
25429 #define HAVE_INTMAX_T 1
25430 _ACEOF
25431
25432    have_intmax_t=1
25433 fi
25434
25435
25436 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25437 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25438 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25439   echo $ECHO_N "(cached) $ECHO_C" >&6
25440 else
25441
25442    cat >conftest.$ac_ext <<_ACEOF
25443 /* confdefs.h.  */
25444 _ACEOF
25445 cat confdefs.h >>conftest.$ac_ext
25446 cat >>conftest.$ac_ext <<_ACEOF
25447 /* end confdefs.h.  */
25448  #include <sys/types.h>
25449 int
25450 main ()
25451 {
25452  u_intmax_t a; a = 1;
25453   ;
25454   return 0;
25455 }
25456 _ACEOF
25457 rm -f conftest.$ac_objext
25458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25459   (eval $ac_compile) 2>conftest.er1
25460   ac_status=$?
25461   grep -v '^ *+' conftest.er1 >conftest.err
25462   rm -f conftest.er1
25463   cat conftest.err >&5
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); } &&
25466          { ac_try='test -z "$ac_c_werror_flag"
25467                          || test ! -s conftest.err'
25468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469   (eval $ac_try) 2>&5
25470   ac_status=$?
25471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472   (exit $ac_status); }; } &&
25473          { ac_try='test -s conftest.$ac_objext'
25474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25475   (eval $ac_try) 2>&5
25476   ac_status=$?
25477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25478   (exit $ac_status); }; }; then
25479    ac_cv_have_u_intmax_t="yes"
25480 else
25481   echo "$as_me: failed program was:" >&5
25482 sed 's/^/| /' conftest.$ac_ext >&5
25483
25484
25485          cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491  #include <stdint.h>
25492 int
25493 main ()
25494 {
25495  u_intmax_t a; a = 1;
25496   ;
25497   return 0;
25498 }
25499 _ACEOF
25500 rm -f conftest.$ac_objext
25501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25502   (eval $ac_compile) 2>conftest.er1
25503   ac_status=$?
25504   grep -v '^ *+' conftest.er1 >conftest.err
25505   rm -f conftest.er1
25506   cat conftest.err >&5
25507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25508   (exit $ac_status); } &&
25509          { ac_try='test -z "$ac_c_werror_flag"
25510                          || test ! -s conftest.err'
25511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25512   (eval $ac_try) 2>&5
25513   ac_status=$?
25514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25515   (exit $ac_status); }; } &&
25516          { ac_try='test -s conftest.$ac_objext'
25517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25518   (eval $ac_try) 2>&5
25519   ac_status=$?
25520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521   (exit $ac_status); }; }; then
25522    ac_cv_have_u_intmax_t="yes"
25523 else
25524   echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25526
25527  ac_cv_have_u_intmax_t="no"
25528
25529 fi
25530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25531
25532
25533 fi
25534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25535
25536 fi
25537 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25538 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25539 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25540    cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_U_INTMAX_T 1
25542 _ACEOF
25543
25544    have_u_intmax_t=1
25545 fi
25546
25547
25548 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25549 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25550 if test "${ac_cv_have_intxx_t+set}" = set; then
25551   echo $ECHO_N "(cached) $ECHO_C" >&6
25552 else
25553
25554    cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h.  */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h.  */
25560  #include <sys/types.h>
25561 int
25562 main ()
25563 {
25564  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25565   ;
25566   return 0;
25567 }
25568 _ACEOF
25569 rm -f conftest.$ac_objext
25570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25571   (eval $ac_compile) 2>conftest.er1
25572   ac_status=$?
25573   grep -v '^ *+' conftest.er1 >conftest.err
25574   rm -f conftest.er1
25575   cat conftest.err >&5
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); } &&
25578          { ac_try='test -z "$ac_c_werror_flag"
25579                          || test ! -s conftest.err'
25580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25581   (eval $ac_try) 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; } &&
25585          { ac_try='test -s conftest.$ac_objext'
25586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587   (eval $ac_try) 2>&5
25588   ac_status=$?
25589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590   (exit $ac_status); }; }; then
25591    ac_cv_have_intxx_t="yes"
25592 else
25593   echo "$as_me: failed program was:" >&5
25594 sed 's/^/| /' conftest.$ac_ext >&5
25595
25596  ac_cv_have_intxx_t="no"
25597
25598 fi
25599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25600
25601 fi
25602 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25603 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25604 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25605    cat >>confdefs.h <<\_ACEOF
25606 #define HAVE_INTXX_T 1
25607 _ACEOF
25608
25609    have_intxx_t=1
25610 fi
25611
25612 echo "$as_me:$LINENO: checking for int64_t type" >&5
25613 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25614 if test "${ac_cv_have_int64_t+set}" = set; then
25615   echo $ECHO_N "(cached) $ECHO_C" >&6
25616 else
25617
25618    cat >conftest.$ac_ext <<_ACEOF
25619 /* confdefs.h.  */
25620 _ACEOF
25621 cat confdefs.h >>conftest.$ac_ext
25622 cat >>conftest.$ac_ext <<_ACEOF
25623 /* end confdefs.h.  */
25624  #include <sys/types.h>
25625 int
25626 main ()
25627 {
25628  int64_t a; a = 1;
25629   ;
25630   return 0;
25631 }
25632 _ACEOF
25633 rm -f conftest.$ac_objext
25634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25635   (eval $ac_compile) 2>conftest.er1
25636   ac_status=$?
25637   grep -v '^ *+' conftest.er1 >conftest.err
25638   rm -f conftest.er1
25639   cat conftest.err >&5
25640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641   (exit $ac_status); } &&
25642          { ac_try='test -z "$ac_c_werror_flag"
25643                          || test ! -s conftest.err'
25644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645   (eval $ac_try) 2>&5
25646   ac_status=$?
25647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648   (exit $ac_status); }; } &&
25649          { ac_try='test -s conftest.$ac_objext'
25650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25651   (eval $ac_try) 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); }; }; then
25655    ac_cv_have_int64_t="yes"
25656 else
25657   echo "$as_me: failed program was:" >&5
25658 sed 's/^/| /' conftest.$ac_ext >&5
25659
25660  ac_cv_have_int64_t="no"
25661
25662 fi
25663 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25664
25665 fi
25666 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25667 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
25668 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25669    cat >>confdefs.h <<\_ACEOF
25670 #define HAVE_INT64_T 1
25671 _ACEOF
25672
25673    have_int64_t=1
25674 fi
25675
25676 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25677 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
25678 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25679   echo $ECHO_N "(cached) $ECHO_C" >&6
25680 else
25681
25682    cat >conftest.$ac_ext <<_ACEOF
25683 /* confdefs.h.  */
25684 _ACEOF
25685 cat confdefs.h >>conftest.$ac_ext
25686 cat >>conftest.$ac_ext <<_ACEOF
25687 /* end confdefs.h.  */
25688  #include <sys/types.h>
25689 int
25690 main ()
25691 {
25692  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25693   ;
25694   return 0;
25695 }
25696 _ACEOF
25697 rm -f conftest.$ac_objext
25698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25699   (eval $ac_compile) 2>conftest.er1
25700   ac_status=$?
25701   grep -v '^ *+' conftest.er1 >conftest.err
25702   rm -f conftest.er1
25703   cat conftest.err >&5
25704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705   (exit $ac_status); } &&
25706          { ac_try='test -z "$ac_c_werror_flag"
25707                          || test ! -s conftest.err'
25708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25709   (eval $ac_try) 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; } &&
25713          { ac_try='test -s conftest.$ac_objext'
25714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25715   (eval $ac_try) 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719    ac_cv_have_u_intxx_t="yes"
25720 else
25721   echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724  ac_cv_have_u_intxx_t="no"
25725
25726 fi
25727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25728
25729 fi
25730 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25731 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
25732 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25733    cat >>confdefs.h <<\_ACEOF
25734 #define HAVE_U_INTXX_T 1
25735 _ACEOF
25736
25737    have_u_intxx_t=1
25738 fi
25739
25740 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25741 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
25742 if test "${ac_cv_have_u_int64_t+set}" = set; then
25743   echo $ECHO_N "(cached) $ECHO_C" >&6
25744 else
25745
25746    cat >conftest.$ac_ext <<_ACEOF
25747 /* confdefs.h.  */
25748 _ACEOF
25749 cat confdefs.h >>conftest.$ac_ext
25750 cat >>conftest.$ac_ext <<_ACEOF
25751 /* end confdefs.h.  */
25752  #include <sys/types.h>
25753 int
25754 main ()
25755 {
25756  u_int64_t a; a = 1;
25757   ;
25758   return 0;
25759 }
25760 _ACEOF
25761 rm -f conftest.$ac_objext
25762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25763   (eval $ac_compile) 2>conftest.er1
25764   ac_status=$?
25765   grep -v '^ *+' conftest.er1 >conftest.err
25766   rm -f conftest.er1
25767   cat conftest.err >&5
25768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25769   (exit $ac_status); } &&
25770          { ac_try='test -z "$ac_c_werror_flag"
25771                          || test ! -s conftest.err'
25772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25773   (eval $ac_try) 2>&5
25774   ac_status=$?
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); }; } &&
25777          { ac_try='test -s conftest.$ac_objext'
25778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779   (eval $ac_try) 2>&5
25780   ac_status=$?
25781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782   (exit $ac_status); }; }; then
25783    ac_cv_have_u_int64_t="yes"
25784 else
25785   echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25787
25788  ac_cv_have_u_int64_t="no"
25789
25790 fi
25791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25792
25793 fi
25794 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25795 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
25796 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25797    cat >>confdefs.h <<\_ACEOF
25798 #define HAVE_U_INT64_T 1
25799 _ACEOF
25800
25801    have_u_int64_t=1
25802 fi
25803
25804 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25805            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25806 then
25807    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25808 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
25809    cat >conftest.$ac_ext <<_ACEOF
25810 /* confdefs.h.  */
25811 _ACEOF
25812 cat confdefs.h >>conftest.$ac_ext
25813 cat >>conftest.$ac_ext <<_ACEOF
25814 /* end confdefs.h.  */
25815  #include <sys/bitypes.h>
25816 int
25817 main ()
25818 {
25819  int8_t a; int16_t b; int32_t c;
25820         u_int8_t e; u_int16_t f; u_int32_t g;
25821         a = b = c = e = f = g = 1;
25822   ;
25823   return 0;
25824 }
25825 _ACEOF
25826 rm -f conftest.$ac_objext
25827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25828   (eval $ac_compile) 2>conftest.er1
25829   ac_status=$?
25830   grep -v '^ *+' conftest.er1 >conftest.err
25831   rm -f conftest.er1
25832   cat conftest.err >&5
25833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25834   (exit $ac_status); } &&
25835          { ac_try='test -z "$ac_c_werror_flag"
25836                          || test ! -s conftest.err'
25837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25838   (eval $ac_try) 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; } &&
25842          { ac_try='test -s conftest.$ac_objext'
25843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25844   (eval $ac_try) 2>&5
25845   ac_status=$?
25846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25847   (exit $ac_status); }; }; then
25848    cat >>confdefs.h <<\_ACEOF
25849 #define HAVE_U_INTXX_T 1
25850 _ACEOF
25851
25852         cat >>confdefs.h <<\_ACEOF
25853 #define HAVE_INTXX_T 1
25854 _ACEOF
25855
25856         cat >>confdefs.h <<\_ACEOF
25857 #define HAVE_SYS_BITYPES_H 1
25858 _ACEOF
25859
25860         echo "$as_me:$LINENO: result: yes" >&5
25861 echo "${ECHO_T}yes" >&6
25862 else
25863   echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25865
25866  echo "$as_me:$LINENO: result: no" >&5
25867 echo "${ECHO_T}no" >&6
25868
25869 fi
25870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25871 fi
25872
25873 if test -z "$have_u_intxx_t" ; then
25874    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25875 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
25876 if test "${ac_cv_have_uintxx_t+set}" = set; then
25877   echo $ECHO_N "(cached) $ECHO_C" >&6
25878 else
25879
25880       cat >conftest.$ac_ext <<_ACEOF
25881 /* confdefs.h.  */
25882 _ACEOF
25883 cat confdefs.h >>conftest.$ac_ext
25884 cat >>conftest.$ac_ext <<_ACEOF
25885 /* end confdefs.h.  */
25886  #include <sys/types.h>
25887 int
25888 main ()
25889 {
25890  uint8_t a; uint16_t b;
25891            uint32_t c; a = b = c = 1;
25892   ;
25893   return 0;
25894 }
25895 _ACEOF
25896 rm -f conftest.$ac_objext
25897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25898   (eval $ac_compile) 2>conftest.er1
25899   ac_status=$?
25900   grep -v '^ *+' conftest.er1 >conftest.err
25901   rm -f conftest.er1
25902   cat conftest.err >&5
25903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25904   (exit $ac_status); } &&
25905          { ac_try='test -z "$ac_c_werror_flag"
25906                          || test ! -s conftest.err'
25907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25908   (eval $ac_try) 2>&5
25909   ac_status=$?
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); }; } &&
25912          { ac_try='test -s conftest.$ac_objext'
25913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25914   (eval $ac_try) 2>&5
25915   ac_status=$?
25916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917   (exit $ac_status); }; }; then
25918    ac_cv_have_uintxx_t="yes"
25919 else
25920   echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25922
25923  ac_cv_have_uintxx_t="no"
25924
25925 fi
25926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25927
25928 fi
25929 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25930 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
25931    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25932       cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_UINTXX_T 1
25934 _ACEOF
25935
25936    fi
25937 fi
25938
25939 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25940           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25941 then
25942    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25943 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
25944    cat >conftest.$ac_ext <<_ACEOF
25945 /* confdefs.h.  */
25946 _ACEOF
25947 cat confdefs.h >>conftest.$ac_ext
25948 cat >>conftest.$ac_ext <<_ACEOF
25949 /* end confdefs.h.  */
25950  #include <sys/bitypes.h>
25951 int
25952 main ()
25953 {
25954  int64_t a; u_int64_t b;
25955        a = b = 1;
25956   ;
25957   return 0;
25958 }
25959 _ACEOF
25960 rm -f conftest.$ac_objext
25961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25962   (eval $ac_compile) 2>conftest.er1
25963   ac_status=$?
25964   grep -v '^ *+' conftest.er1 >conftest.err
25965   rm -f conftest.er1
25966   cat conftest.err >&5
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); } &&
25969          { ac_try='test -z "$ac_c_werror_flag"
25970                          || test ! -s conftest.err'
25971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25972   (eval $ac_try) 2>&5
25973   ac_status=$?
25974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975   (exit $ac_status); }; } &&
25976          { ac_try='test -s conftest.$ac_objext'
25977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25978   (eval $ac_try) 2>&5
25979   ac_status=$?
25980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25981   (exit $ac_status); }; }; then
25982    cat >>confdefs.h <<\_ACEOF
25983 #define HAVE_U_INT64_T 1
25984 _ACEOF
25985
25986        cat >>confdefs.h <<\_ACEOF
25987 #define HAVE_INT64_T 1
25988 _ACEOF
25989
25990        echo "$as_me:$LINENO: result: yes" >&5
25991 echo "${ECHO_T}yes" >&6
25992 else
25993   echo "$as_me: failed program was:" >&5
25994 sed 's/^/| /' conftest.$ac_ext >&5
25995
25996  echo "$as_me:$LINENO: result: no" >&5
25997 echo "${ECHO_T}no" >&6
25998
25999 fi
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26001 fi
26002
26003 if (test -z "$have_uintxx_t" && \
26004           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26005 then
26006    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26007 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26008    cat >conftest.$ac_ext <<_ACEOF
26009 /* confdefs.h.  */
26010 _ACEOF
26011 cat confdefs.h >>conftest.$ac_ext
26012 cat >>conftest.$ac_ext <<_ACEOF
26013 /* end confdefs.h.  */
26014  #include <sys/bitypes.h>
26015 int
26016 main ()
26017 {
26018  uint8_t a; uint16_t b;
26019           uint32_t c; a = b = c = 1;
26020   ;
26021   return 0;
26022 }
26023 _ACEOF
26024 rm -f conftest.$ac_objext
26025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26026   (eval $ac_compile) 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } &&
26033          { ac_try='test -z "$ac_c_werror_flag"
26034                          || test ! -s conftest.err'
26035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26036   (eval $ac_try) 2>&5
26037   ac_status=$?
26038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039   (exit $ac_status); }; } &&
26040          { ac_try='test -s conftest.$ac_objext'
26041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26042   (eval $ac_try) 2>&5
26043   ac_status=$?
26044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26045   (exit $ac_status); }; }; then
26046    cat >>confdefs.h <<\_ACEOF
26047 #define HAVE_UINTXX_T 1
26048 _ACEOF
26049
26050        echo "$as_me:$LINENO: result: yes" >&5
26051 echo "${ECHO_T}yes" >&6
26052 else
26053   echo "$as_me: failed program was:" >&5
26054 sed 's/^/| /' conftest.$ac_ext >&5
26055
26056  echo "$as_me:$LINENO: result: no" >&5
26057 echo "${ECHO_T}no" >&6
26058
26059 fi
26060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26061
26062 fi
26063
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080 for ac_func in \
26081         fork \
26082         getcwd \
26083         gethostname \
26084         getpid \
26085         gettimeofday \
26086         setpgid \
26087         setpgrp \
26088         setsid \
26089         signal \
26090         strerror \
26091         strncmp \
26092         strncpy \
26093         vfprintf \
26094
26095 do
26096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26097 echo "$as_me:$LINENO: checking for $ac_func" >&5
26098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26099 if eval "test \"\${$as_ac_var+set}\" = set"; then
26100   echo $ECHO_N "(cached) $ECHO_C" >&6
26101 else
26102   cat >conftest.$ac_ext <<_ACEOF
26103 /* confdefs.h.  */
26104 _ACEOF
26105 cat confdefs.h >>conftest.$ac_ext
26106 cat >>conftest.$ac_ext <<_ACEOF
26107 /* end confdefs.h.  */
26108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26110 #define $ac_func innocuous_$ac_func
26111
26112 /* System header to define __stub macros and hopefully few prototypes,
26113     which can conflict with char $ac_func (); below.
26114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26115     <limits.h> exists even on freestanding compilers.  */
26116
26117 #ifdef __STDC__
26118 # include <limits.h>
26119 #else
26120 # include <assert.h>
26121 #endif
26122
26123 #undef $ac_func
26124
26125 /* Override any gcc2 internal prototype to avoid an error.  */
26126 #ifdef __cplusplus
26127 extern "C"
26128 {
26129 #endif
26130 /* We use char because int might match the return type of a gcc2
26131    builtin and then its argument prototype would still apply.  */
26132 char $ac_func ();
26133 /* The GNU C library defines this for functions which it implements
26134     to always fail with ENOSYS.  Some functions are actually named
26135     something starting with __ and the normal name is an alias.  */
26136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26137 choke me
26138 #else
26139 char (*f) () = $ac_func;
26140 #endif
26141 #ifdef __cplusplus
26142 }
26143 #endif
26144
26145 int
26146 main ()
26147 {
26148 return f != $ac_func;
26149   ;
26150   return 0;
26151 }
26152 _ACEOF
26153 rm -f conftest.$ac_objext conftest$ac_exeext
26154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26155   (eval $ac_link) 2>conftest.er1
26156   ac_status=$?
26157   grep -v '^ *+' conftest.er1 >conftest.err
26158   rm -f conftest.er1
26159   cat conftest.err >&5
26160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26161   (exit $ac_status); } &&
26162          { ac_try='test -z "$ac_c_werror_flag"
26163                          || test ! -s conftest.err'
26164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26165   (eval $ac_try) 2>&5
26166   ac_status=$?
26167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26168   (exit $ac_status); }; } &&
26169          { ac_try='test -s conftest$ac_exeext'
26170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26171   (eval $ac_try) 2>&5
26172   ac_status=$?
26173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26174   (exit $ac_status); }; }; then
26175   eval "$as_ac_var=yes"
26176 else
26177   echo "$as_me: failed program was:" >&5
26178 sed 's/^/| /' conftest.$ac_ext >&5
26179
26180 eval "$as_ac_var=no"
26181 fi
26182 rm -f conftest.err conftest.$ac_objext \
26183       conftest$ac_exeext conftest.$ac_ext
26184 fi
26185 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26186 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26187 if test `eval echo '${'$as_ac_var'}'` = yes; then
26188   cat >>confdefs.h <<_ACEOF
26189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26190 _ACEOF
26191
26192 else
26193   echo 'configure: cannot find needed function.'; exit 1
26194
26195 fi
26196 done
26197
26198
26199
26200 for ac_func in fchdir
26201 do
26202 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26203 echo "$as_me:$LINENO: checking for $ac_func" >&5
26204 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26205 if eval "test \"\${$as_ac_var+set}\" = set"; then
26206   echo $ECHO_N "(cached) $ECHO_C" >&6
26207 else
26208   cat >conftest.$ac_ext <<_ACEOF
26209 /* confdefs.h.  */
26210 _ACEOF
26211 cat confdefs.h >>conftest.$ac_ext
26212 cat >>conftest.$ac_ext <<_ACEOF
26213 /* end confdefs.h.  */
26214 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26215    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26216 #define $ac_func innocuous_$ac_func
26217
26218 /* System header to define __stub macros and hopefully few prototypes,
26219     which can conflict with char $ac_func (); below.
26220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26221     <limits.h> exists even on freestanding compilers.  */
26222
26223 #ifdef __STDC__
26224 # include <limits.h>
26225 #else
26226 # include <assert.h>
26227 #endif
26228
26229 #undef $ac_func
26230
26231 /* Override any gcc2 internal prototype to avoid an error.  */
26232 #ifdef __cplusplus
26233 extern "C"
26234 {
26235 #endif
26236 /* We use char because int might match the return type of a gcc2
26237    builtin and then its argument prototype would still apply.  */
26238 char $ac_func ();
26239 /* The GNU C library defines this for functions which it implements
26240     to always fail with ENOSYS.  Some functions are actually named
26241     something starting with __ and the normal name is an alias.  */
26242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26243 choke me
26244 #else
26245 char (*f) () = $ac_func;
26246 #endif
26247 #ifdef __cplusplus
26248 }
26249 #endif
26250
26251 int
26252 main ()
26253 {
26254 return f != $ac_func;
26255   ;
26256   return 0;
26257 }
26258 _ACEOF
26259 rm -f conftest.$ac_objext conftest$ac_exeext
26260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26261   (eval $ac_link) 2>conftest.er1
26262   ac_status=$?
26263   grep -v '^ *+' conftest.er1 >conftest.err
26264   rm -f conftest.er1
26265   cat conftest.err >&5
26266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26267   (exit $ac_status); } &&
26268          { ac_try='test -z "$ac_c_werror_flag"
26269                          || test ! -s conftest.err'
26270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26271   (eval $ac_try) 2>&5
26272   ac_status=$?
26273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274   (exit $ac_status); }; } &&
26275          { ac_try='test -s conftest$ac_exeext'
26276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26277   (eval $ac_try) 2>&5
26278   ac_status=$?
26279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280   (exit $ac_status); }; }; then
26281   eval "$as_ac_var=yes"
26282 else
26283   echo "$as_me: failed program was:" >&5
26284 sed 's/^/| /' conftest.$ac_ext >&5
26285
26286 eval "$as_ac_var=no"
26287 fi
26288 rm -f conftest.err conftest.$ac_objext \
26289       conftest$ac_exeext conftest.$ac_ext
26290 fi
26291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26292 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26293 if test `eval echo '${'$as_ac_var'}'` = yes; then
26294   cat >>confdefs.h <<_ACEOF
26295 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26296 _ACEOF
26297  cat >>confdefs.h <<\_ACEOF
26298 #define HAVE_FCHDIR 1
26299 _ACEOF
26300
26301 fi
26302 done
26303
26304
26305 for ac_func in strtoll
26306 do
26307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26308 echo "$as_me:$LINENO: checking for $ac_func" >&5
26309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26310 if eval "test \"\${$as_ac_var+set}\" = set"; then
26311   echo $ECHO_N "(cached) $ECHO_C" >&6
26312 else
26313   cat >conftest.$ac_ext <<_ACEOF
26314 /* confdefs.h.  */
26315 _ACEOF
26316 cat confdefs.h >>conftest.$ac_ext
26317 cat >>conftest.$ac_ext <<_ACEOF
26318 /* end confdefs.h.  */
26319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26321 #define $ac_func innocuous_$ac_func
26322
26323 /* System header to define __stub macros and hopefully few prototypes,
26324     which can conflict with char $ac_func (); below.
26325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26326     <limits.h> exists even on freestanding compilers.  */
26327
26328 #ifdef __STDC__
26329 # include <limits.h>
26330 #else
26331 # include <assert.h>
26332 #endif
26333
26334 #undef $ac_func
26335
26336 /* Override any gcc2 internal prototype to avoid an error.  */
26337 #ifdef __cplusplus
26338 extern "C"
26339 {
26340 #endif
26341 /* We use char because int might match the return type of a gcc2
26342    builtin and then its argument prototype would still apply.  */
26343 char $ac_func ();
26344 /* The GNU C library defines this for functions which it implements
26345     to always fail with ENOSYS.  Some functions are actually named
26346     something starting with __ and the normal name is an alias.  */
26347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26348 choke me
26349 #else
26350 char (*f) () = $ac_func;
26351 #endif
26352 #ifdef __cplusplus
26353 }
26354 #endif
26355
26356 int
26357 main ()
26358 {
26359 return f != $ac_func;
26360   ;
26361   return 0;
26362 }
26363 _ACEOF
26364 rm -f conftest.$ac_objext conftest$ac_exeext
26365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26366   (eval $ac_link) 2>conftest.er1
26367   ac_status=$?
26368   grep -v '^ *+' conftest.er1 >conftest.err
26369   rm -f conftest.er1
26370   cat conftest.err >&5
26371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372   (exit $ac_status); } &&
26373          { ac_try='test -z "$ac_c_werror_flag"
26374                          || test ! -s conftest.err'
26375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26376   (eval $ac_try) 2>&5
26377   ac_status=$?
26378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26379   (exit $ac_status); }; } &&
26380          { ac_try='test -s conftest$ac_exeext'
26381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26382   (eval $ac_try) 2>&5
26383   ac_status=$?
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); }; }; then
26386   eval "$as_ac_var=yes"
26387 else
26388   echo "$as_me: failed program was:" >&5
26389 sed 's/^/| /' conftest.$ac_ext >&5
26390
26391 eval "$as_ac_var=no"
26392 fi
26393 rm -f conftest.err conftest.$ac_objext \
26394       conftest$ac_exeext conftest.$ac_ext
26395 fi
26396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26397 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26398 if test `eval echo '${'$as_ac_var'}'` = yes; then
26399   cat >>confdefs.h <<_ACEOF
26400 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26401 _ACEOF
26402  cat >>confdefs.h <<\_ACEOF
26403 #define HAVE_STRTOLL 1
26404 _ACEOF
26405
26406 fi
26407 done
26408
26409
26410
26411 for ac_func in chflags
26412 do
26413 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26414 echo "$as_me:$LINENO: checking for $ac_func" >&5
26415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26416 if eval "test \"\${$as_ac_var+set}\" = set"; then
26417   echo $ECHO_N "(cached) $ECHO_C" >&6
26418 else
26419   cat >conftest.$ac_ext <<_ACEOF
26420 /* confdefs.h.  */
26421 _ACEOF
26422 cat confdefs.h >>conftest.$ac_ext
26423 cat >>conftest.$ac_ext <<_ACEOF
26424 /* end confdefs.h.  */
26425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26426    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26427 #define $ac_func innocuous_$ac_func
26428
26429 /* System header to define __stub macros and hopefully few prototypes,
26430     which can conflict with char $ac_func (); below.
26431     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26432     <limits.h> exists even on freestanding compilers.  */
26433
26434 #ifdef __STDC__
26435 # include <limits.h>
26436 #else
26437 # include <assert.h>
26438 #endif
26439
26440 #undef $ac_func
26441
26442 /* Override any gcc2 internal prototype to avoid an error.  */
26443 #ifdef __cplusplus
26444 extern "C"
26445 {
26446 #endif
26447 /* We use char because int might match the return type of a gcc2
26448    builtin and then its argument prototype would still apply.  */
26449 char $ac_func ();
26450 /* The GNU C library defines this for functions which it implements
26451     to always fail with ENOSYS.  Some functions are actually named
26452     something starting with __ and the normal name is an alias.  */
26453 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26454 choke me
26455 #else
26456 char (*f) () = $ac_func;
26457 #endif
26458 #ifdef __cplusplus
26459 }
26460 #endif
26461
26462 int
26463 main ()
26464 {
26465 return f != $ac_func;
26466   ;
26467   return 0;
26468 }
26469 _ACEOF
26470 rm -f conftest.$ac_objext conftest$ac_exeext
26471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26472   (eval $ac_link) 2>conftest.er1
26473   ac_status=$?
26474   grep -v '^ *+' conftest.er1 >conftest.err
26475   rm -f conftest.er1
26476   cat conftest.err >&5
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); } &&
26479          { ac_try='test -z "$ac_c_werror_flag"
26480                          || test ! -s conftest.err'
26481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26482   (eval $ac_try) 2>&5
26483   ac_status=$?
26484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485   (exit $ac_status); }; } &&
26486          { ac_try='test -s conftest$ac_exeext'
26487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26488   (eval $ac_try) 2>&5
26489   ac_status=$?
26490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26491   (exit $ac_status); }; }; then
26492   eval "$as_ac_var=yes"
26493 else
26494   echo "$as_me: failed program was:" >&5
26495 sed 's/^/| /' conftest.$ac_ext >&5
26496
26497 eval "$as_ac_var=no"
26498 fi
26499 rm -f conftest.err conftest.$ac_objext \
26500       conftest$ac_exeext conftest.$ac_ext
26501 fi
26502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26504 if test `eval echo '${'$as_ac_var'}'` = yes; then
26505   cat >>confdefs.h <<_ACEOF
26506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26507 _ACEOF
26508
26509 fi
26510 done
26511
26512
26513
26514
26515
26516
26517 for ac_func in snprintf vsnprintf gethostid fseeko
26518 do
26519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26520 echo "$as_me:$LINENO: checking for $ac_func" >&5
26521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26522 if eval "test \"\${$as_ac_var+set}\" = set"; then
26523   echo $ECHO_N "(cached) $ECHO_C" >&6
26524 else
26525   cat >conftest.$ac_ext <<_ACEOF
26526 /* confdefs.h.  */
26527 _ACEOF
26528 cat confdefs.h >>conftest.$ac_ext
26529 cat >>conftest.$ac_ext <<_ACEOF
26530 /* end confdefs.h.  */
26531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26532    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26533 #define $ac_func innocuous_$ac_func
26534
26535 /* System header to define __stub macros and hopefully few prototypes,
26536     which can conflict with char $ac_func (); below.
26537     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26538     <limits.h> exists even on freestanding compilers.  */
26539
26540 #ifdef __STDC__
26541 # include <limits.h>
26542 #else
26543 # include <assert.h>
26544 #endif
26545
26546 #undef $ac_func
26547
26548 /* Override any gcc2 internal prototype to avoid an error.  */
26549 #ifdef __cplusplus
26550 extern "C"
26551 {
26552 #endif
26553 /* We use char because int might match the return type of a gcc2
26554    builtin and then its argument prototype would still apply.  */
26555 char $ac_func ();
26556 /* The GNU C library defines this for functions which it implements
26557     to always fail with ENOSYS.  Some functions are actually named
26558     something starting with __ and the normal name is an alias.  */
26559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26560 choke me
26561 #else
26562 char (*f) () = $ac_func;
26563 #endif
26564 #ifdef __cplusplus
26565 }
26566 #endif
26567
26568 int
26569 main ()
26570 {
26571 return f != $ac_func;
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 rm -f conftest.$ac_objext conftest$ac_exeext
26577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26578   (eval $ac_link) 2>conftest.er1
26579   ac_status=$?
26580   grep -v '^ *+' conftest.er1 >conftest.err
26581   rm -f conftest.er1
26582   cat conftest.err >&5
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); } &&
26585          { ac_try='test -z "$ac_c_werror_flag"
26586                          || test ! -s conftest.err'
26587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588   (eval $ac_try) 2>&5
26589   ac_status=$?
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); }; } &&
26592          { ac_try='test -s conftest$ac_exeext'
26593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26594   (eval $ac_try) 2>&5
26595   ac_status=$?
26596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26597   (exit $ac_status); }; }; then
26598   eval "$as_ac_var=yes"
26599 else
26600   echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26602
26603 eval "$as_ac_var=no"
26604 fi
26605 rm -f conftest.err conftest.$ac_objext \
26606       conftest$ac_exeext conftest.$ac_ext
26607 fi
26608 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26609 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26610 if test `eval echo '${'$as_ac_var'}'` = yes; then
26611   cat >>confdefs.h <<_ACEOF
26612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26613 _ACEOF
26614
26615 fi
26616 done
26617
26618
26619
26620
26621
26622
26623 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26624 do
26625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26626 echo "$as_me:$LINENO: checking for $ac_func" >&5
26627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26628 if eval "test \"\${$as_ac_var+set}\" = set"; then
26629   echo $ECHO_N "(cached) $ECHO_C" >&6
26630 else
26631   cat >conftest.$ac_ext <<_ACEOF
26632 /* confdefs.h.  */
26633 _ACEOF
26634 cat confdefs.h >>conftest.$ac_ext
26635 cat >>conftest.$ac_ext <<_ACEOF
26636 /* end confdefs.h.  */
26637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26639 #define $ac_func innocuous_$ac_func
26640
26641 /* System header to define __stub macros and hopefully few prototypes,
26642     which can conflict with char $ac_func (); below.
26643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26644     <limits.h> exists even on freestanding compilers.  */
26645
26646 #ifdef __STDC__
26647 # include <limits.h>
26648 #else
26649 # include <assert.h>
26650 #endif
26651
26652 #undef $ac_func
26653
26654 /* Override any gcc2 internal prototype to avoid an error.  */
26655 #ifdef __cplusplus
26656 extern "C"
26657 {
26658 #endif
26659 /* We use char because int might match the return type of a gcc2
26660    builtin and then its argument prototype would still apply.  */
26661 char $ac_func ();
26662 /* The GNU C library defines this for functions which it implements
26663     to always fail with ENOSYS.  Some functions are actually named
26664     something starting with __ and the normal name is an alias.  */
26665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26666 choke me
26667 #else
26668 char (*f) () = $ac_func;
26669 #endif
26670 #ifdef __cplusplus
26671 }
26672 #endif
26673
26674 int
26675 main ()
26676 {
26677 return f != $ac_func;
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26684   (eval $ac_link) 2>conftest.er1
26685   ac_status=$?
26686   grep -v '^ *+' conftest.er1 >conftest.err
26687   rm -f conftest.er1
26688   cat conftest.err >&5
26689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26690   (exit $ac_status); } &&
26691          { ac_try='test -z "$ac_c_werror_flag"
26692                          || test ! -s conftest.err'
26693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26694   (eval $ac_try) 2>&5
26695   ac_status=$?
26696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26697   (exit $ac_status); }; } &&
26698          { ac_try='test -s conftest$ac_exeext'
26699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26700   (eval $ac_try) 2>&5
26701   ac_status=$?
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); }; }; then
26704   eval "$as_ac_var=yes"
26705 else
26706   echo "$as_me: failed program was:" >&5
26707 sed 's/^/| /' conftest.$ac_ext >&5
26708
26709 eval "$as_ac_var=no"
26710 fi
26711 rm -f conftest.err conftest.$ac_objext \
26712       conftest$ac_exeext conftest.$ac_ext
26713 fi
26714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26716 if test `eval echo '${'$as_ac_var'}'` = yes; then
26717   cat >>confdefs.h <<_ACEOF
26718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26719 _ACEOF
26720
26721 fi
26722 done
26723
26724
26725 # If resolver functions are not in libc check for -lnsl or -lresolv.
26726 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26727 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
26728 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26729   echo $ECHO_N "(cached) $ECHO_C" >&6
26730 else
26731   cat >conftest.$ac_ext <<_ACEOF
26732 /* confdefs.h.  */
26733 _ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h.  */
26737 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26738    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26739 #define gethostbyname_r innocuous_gethostbyname_r
26740
26741 /* System header to define __stub macros and hopefully few prototypes,
26742     which can conflict with char gethostbyname_r (); below.
26743     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26744     <limits.h> exists even on freestanding compilers.  */
26745
26746 #ifdef __STDC__
26747 # include <limits.h>
26748 #else
26749 # include <assert.h>
26750 #endif
26751
26752 #undef gethostbyname_r
26753
26754 /* Override any gcc2 internal prototype to avoid an error.  */
26755 #ifdef __cplusplus
26756 extern "C"
26757 {
26758 #endif
26759 /* We use char because int might match the return type of a gcc2
26760    builtin and then its argument prototype would still apply.  */
26761 char gethostbyname_r ();
26762 /* The GNU C library defines this for functions which it implements
26763     to always fail with ENOSYS.  Some functions are actually named
26764     something starting with __ and the normal name is an alias.  */
26765 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
26766 choke me
26767 #else
26768 char (*f) () = gethostbyname_r;
26769 #endif
26770 #ifdef __cplusplus
26771 }
26772 #endif
26773
26774 int
26775 main ()
26776 {
26777 return f != gethostbyname_r;
26778   ;
26779   return 0;
26780 }
26781 _ACEOF
26782 rm -f conftest.$ac_objext conftest$ac_exeext
26783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26784   (eval $ac_link) 2>conftest.er1
26785   ac_status=$?
26786   grep -v '^ *+' conftest.er1 >conftest.err
26787   rm -f conftest.er1
26788   cat conftest.err >&5
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); } &&
26791          { ac_try='test -z "$ac_c_werror_flag"
26792                          || test ! -s conftest.err'
26793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794   (eval $ac_try) 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; } &&
26798          { ac_try='test -s conftest$ac_exeext'
26799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26800   (eval $ac_try) 2>&5
26801   ac_status=$?
26802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26803   (exit $ac_status); }; }; then
26804   ac_cv_func_gethostbyname_r=yes
26805 else
26806   echo "$as_me: failed program was:" >&5
26807 sed 's/^/| /' conftest.$ac_ext >&5
26808
26809 ac_cv_func_gethostbyname_r=no
26810 fi
26811 rm -f conftest.err conftest.$ac_objext \
26812       conftest$ac_exeext conftest.$ac_ext
26813 fi
26814 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26815 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
26816 if test $ac_cv_func_gethostbyname_r = yes; then
26817   echo "$as_me:$LINENO: result: using libc's resolver" >&5
26818 echo "${ECHO_T}using libc's resolver" >&6
26819 else
26820
26821 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26822 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
26823 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26824   echo $ECHO_N "(cached) $ECHO_C" >&6
26825 else
26826   ac_check_lib_save_LIBS=$LIBS
26827 LIBS="-lnsl  $LIBS"
26828 cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h.  */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h.  */
26834
26835 /* Override any gcc2 internal prototype to avoid an error.  */
26836 #ifdef __cplusplus
26837 extern "C"
26838 #endif
26839 /* We use char because int might match the return type of a gcc2
26840    builtin and then its argument prototype would still apply.  */
26841 char gethostbyname_r ();
26842 int
26843 main ()
26844 {
26845 gethostbyname_r ();
26846   ;
26847   return 0;
26848 }
26849 _ACEOF
26850 rm -f conftest.$ac_objext conftest$ac_exeext
26851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26852   (eval $ac_link) 2>conftest.er1
26853   ac_status=$?
26854   grep -v '^ *+' conftest.er1 >conftest.err
26855   rm -f conftest.er1
26856   cat conftest.err >&5
26857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858   (exit $ac_status); } &&
26859          { ac_try='test -z "$ac_c_werror_flag"
26860                          || test ! -s conftest.err'
26861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26862   (eval $ac_try) 2>&5
26863   ac_status=$?
26864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26865   (exit $ac_status); }; } &&
26866          { ac_try='test -s conftest$ac_exeext'
26867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26868   (eval $ac_try) 2>&5
26869   ac_status=$?
26870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26871   (exit $ac_status); }; }; then
26872   ac_cv_lib_nsl_gethostbyname_r=yes
26873 else
26874   echo "$as_me: failed program was:" >&5
26875 sed 's/^/| /' conftest.$ac_ext >&5
26876
26877 ac_cv_lib_nsl_gethostbyname_r=no
26878 fi
26879 rm -f conftest.err conftest.$ac_objext \
26880       conftest$ac_exeext conftest.$ac_ext
26881 LIBS=$ac_check_lib_save_LIBS
26882 fi
26883 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26884 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
26885 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26886   cat >>confdefs.h <<_ACEOF
26887 #define HAVE_LIBNSL 1
26888 _ACEOF
26889
26890   LIBS="-lnsl $LIBS"
26891
26892 fi
26893
26894
26895 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26896 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
26897 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26898   echo $ECHO_N "(cached) $ECHO_C" >&6
26899 else
26900   ac_check_lib_save_LIBS=$LIBS
26901 LIBS="-lresolv  $LIBS"
26902 cat >conftest.$ac_ext <<_ACEOF
26903 /* confdefs.h.  */
26904 _ACEOF
26905 cat confdefs.h >>conftest.$ac_ext
26906 cat >>conftest.$ac_ext <<_ACEOF
26907 /* end confdefs.h.  */
26908
26909 /* Override any gcc2 internal prototype to avoid an error.  */
26910 #ifdef __cplusplus
26911 extern "C"
26912 #endif
26913 /* We use char because int might match the return type of a gcc2
26914    builtin and then its argument prototype would still apply.  */
26915 char gethostbyname_r ();
26916 int
26917 main ()
26918 {
26919 gethostbyname_r ();
26920   ;
26921   return 0;
26922 }
26923 _ACEOF
26924 rm -f conftest.$ac_objext conftest$ac_exeext
26925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26926   (eval $ac_link) 2>conftest.er1
26927   ac_status=$?
26928   grep -v '^ *+' conftest.er1 >conftest.err
26929   rm -f conftest.er1
26930   cat conftest.err >&5
26931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26932   (exit $ac_status); } &&
26933          { ac_try='test -z "$ac_c_werror_flag"
26934                          || test ! -s conftest.err'
26935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26936   (eval $ac_try) 2>&5
26937   ac_status=$?
26938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939   (exit $ac_status); }; } &&
26940          { ac_try='test -s conftest$ac_exeext'
26941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26942   (eval $ac_try) 2>&5
26943   ac_status=$?
26944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26945   (exit $ac_status); }; }; then
26946   ac_cv_lib_resolv_gethostbyname_r=yes
26947 else
26948   echo "$as_me: failed program was:" >&5
26949 sed 's/^/| /' conftest.$ac_ext >&5
26950
26951 ac_cv_lib_resolv_gethostbyname_r=no
26952 fi
26953 rm -f conftest.err conftest.$ac_objext \
26954       conftest$ac_exeext conftest.$ac_ext
26955 LIBS=$ac_check_lib_save_LIBS
26956 fi
26957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26958 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
26959 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26960   cat >>confdefs.h <<_ACEOF
26961 #define HAVE_LIBRESOLV 1
26962 _ACEOF
26963
26964   LIBS="-lresolv $LIBS"
26965
26966 fi
26967
26968 fi
26969
26970
26971
26972
26973
26974 for ac_func in inet_pton
26975 do
26976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26977 echo "$as_me:$LINENO: checking for $ac_func" >&5
26978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26979 if eval "test \"\${$as_ac_var+set}\" = set"; then
26980   echo $ECHO_N "(cached) $ECHO_C" >&6
26981 else
26982   cat >conftest.$ac_ext <<_ACEOF
26983 /* confdefs.h.  */
26984 _ACEOF
26985 cat confdefs.h >>conftest.$ac_ext
26986 cat >>conftest.$ac_ext <<_ACEOF
26987 /* end confdefs.h.  */
26988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26990 #define $ac_func innocuous_$ac_func
26991
26992 /* System header to define __stub macros and hopefully few prototypes,
26993     which can conflict with char $ac_func (); below.
26994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26995     <limits.h> exists even on freestanding compilers.  */
26996
26997 #ifdef __STDC__
26998 # include <limits.h>
26999 #else
27000 # include <assert.h>
27001 #endif
27002
27003 #undef $ac_func
27004
27005 /* Override any gcc2 internal prototype to avoid an error.  */
27006 #ifdef __cplusplus
27007 extern "C"
27008 {
27009 #endif
27010 /* We use char because int might match the return type of a gcc2
27011    builtin and then its argument prototype would still apply.  */
27012 char $ac_func ();
27013 /* The GNU C library defines this for functions which it implements
27014     to always fail with ENOSYS.  Some functions are actually named
27015     something starting with __ and the normal name is an alias.  */
27016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27017 choke me
27018 #else
27019 char (*f) () = $ac_func;
27020 #endif
27021 #ifdef __cplusplus
27022 }
27023 #endif
27024
27025 int
27026 main ()
27027 {
27028 return f != $ac_func;
27029   ;
27030   return 0;
27031 }
27032 _ACEOF
27033 rm -f conftest.$ac_objext conftest$ac_exeext
27034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27035   (eval $ac_link) 2>conftest.er1
27036   ac_status=$?
27037   grep -v '^ *+' conftest.er1 >conftest.err
27038   rm -f conftest.er1
27039   cat conftest.err >&5
27040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041   (exit $ac_status); } &&
27042          { ac_try='test -z "$ac_c_werror_flag"
27043                          || test ! -s conftest.err'
27044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045   (eval $ac_try) 2>&5
27046   ac_status=$?
27047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048   (exit $ac_status); }; } &&
27049          { ac_try='test -s conftest$ac_exeext'
27050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051   (eval $ac_try) 2>&5
27052   ac_status=$?
27053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054   (exit $ac_status); }; }; then
27055   eval "$as_ac_var=yes"
27056 else
27057   echo "$as_me: failed program was:" >&5
27058 sed 's/^/| /' conftest.$ac_ext >&5
27059
27060 eval "$as_ac_var=no"
27061 fi
27062 rm -f conftest.err conftest.$ac_objext \
27063       conftest$ac_exeext conftest.$ac_ext
27064 fi
27065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27067 if test `eval echo '${'$as_ac_var'}'` = yes; then
27068   cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27070 _ACEOF
27071  cat >>confdefs.h <<\_ACEOF
27072 #define HAVE_INET_PTON 1
27073 _ACEOF
27074
27075 fi
27076 done
27077
27078
27079 for ac_func in inet_ntop
27080 do
27081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27082 echo "$as_me:$LINENO: checking for $ac_func" >&5
27083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27084 if eval "test \"\${$as_ac_var+set}\" = set"; then
27085   echo $ECHO_N "(cached) $ECHO_C" >&6
27086 else
27087   cat >conftest.$ac_ext <<_ACEOF
27088 /* confdefs.h.  */
27089 _ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h.  */
27093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27095 #define $ac_func innocuous_$ac_func
27096
27097 /* System header to define __stub macros and hopefully few prototypes,
27098     which can conflict with char $ac_func (); below.
27099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27100     <limits.h> exists even on freestanding compilers.  */
27101
27102 #ifdef __STDC__
27103 # include <limits.h>
27104 #else
27105 # include <assert.h>
27106 #endif
27107
27108 #undef $ac_func
27109
27110 /* Override any gcc2 internal prototype to avoid an error.  */
27111 #ifdef __cplusplus
27112 extern "C"
27113 {
27114 #endif
27115 /* We use char because int might match the return type of a gcc2
27116    builtin and then its argument prototype would still apply.  */
27117 char $ac_func ();
27118 /* The GNU C library defines this for functions which it implements
27119     to always fail with ENOSYS.  Some functions are actually named
27120     something starting with __ and the normal name is an alias.  */
27121 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27122 choke me
27123 #else
27124 char (*f) () = $ac_func;
27125 #endif
27126 #ifdef __cplusplus
27127 }
27128 #endif
27129
27130 int
27131 main ()
27132 {
27133 return f != $ac_func;
27134   ;
27135   return 0;
27136 }
27137 _ACEOF
27138 rm -f conftest.$ac_objext conftest$ac_exeext
27139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27140   (eval $ac_link) 2>conftest.er1
27141   ac_status=$?
27142   grep -v '^ *+' conftest.er1 >conftest.err
27143   rm -f conftest.er1
27144   cat conftest.err >&5
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); } &&
27147          { ac_try='test -z "$ac_c_werror_flag"
27148                          || test ! -s conftest.err'
27149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27150   (eval $ac_try) 2>&5
27151   ac_status=$?
27152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27153   (exit $ac_status); }; } &&
27154          { ac_try='test -s conftest$ac_exeext'
27155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27156   (eval $ac_try) 2>&5
27157   ac_status=$?
27158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27159   (exit $ac_status); }; }; then
27160   eval "$as_ac_var=yes"
27161 else
27162   echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165 eval "$as_ac_var=no"
27166 fi
27167 rm -f conftest.err conftest.$ac_objext \
27168       conftest$ac_exeext conftest.$ac_ext
27169 fi
27170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27172 if test `eval echo '${'$as_ac_var'}'` = yes; then
27173   cat >>confdefs.h <<_ACEOF
27174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27175 _ACEOF
27176  cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_INET_NTOP 1
27178 _ACEOF
27179
27180 fi
27181 done
27182
27183
27184 for ac_func in gethostbyname2
27185 do
27186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27187 echo "$as_me:$LINENO: checking for $ac_func" >&5
27188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27189 if eval "test \"\${$as_ac_var+set}\" = set"; then
27190   echo $ECHO_N "(cached) $ECHO_C" >&6
27191 else
27192   cat >conftest.$ac_ext <<_ACEOF
27193 /* confdefs.h.  */
27194 _ACEOF
27195 cat confdefs.h >>conftest.$ac_ext
27196 cat >>conftest.$ac_ext <<_ACEOF
27197 /* end confdefs.h.  */
27198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27200 #define $ac_func innocuous_$ac_func
27201
27202 /* System header to define __stub macros and hopefully few prototypes,
27203     which can conflict with char $ac_func (); below.
27204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27205     <limits.h> exists even on freestanding compilers.  */
27206
27207 #ifdef __STDC__
27208 # include <limits.h>
27209 #else
27210 # include <assert.h>
27211 #endif
27212
27213 #undef $ac_func
27214
27215 /* Override any gcc2 internal prototype to avoid an error.  */
27216 #ifdef __cplusplus
27217 extern "C"
27218 {
27219 #endif
27220 /* We use char because int might match the return type of a gcc2
27221    builtin and then its argument prototype would still apply.  */
27222 char $ac_func ();
27223 /* The GNU C library defines this for functions which it implements
27224     to always fail with ENOSYS.  Some functions are actually named
27225     something starting with __ and the normal name is an alias.  */
27226 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27227 choke me
27228 #else
27229 char (*f) () = $ac_func;
27230 #endif
27231 #ifdef __cplusplus
27232 }
27233 #endif
27234
27235 int
27236 main ()
27237 {
27238 return f != $ac_func;
27239   ;
27240   return 0;
27241 }
27242 _ACEOF
27243 rm -f conftest.$ac_objext conftest$ac_exeext
27244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27245   (eval $ac_link) 2>conftest.er1
27246   ac_status=$?
27247   grep -v '^ *+' conftest.er1 >conftest.err
27248   rm -f conftest.er1
27249   cat conftest.err >&5
27250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251   (exit $ac_status); } &&
27252          { ac_try='test -z "$ac_c_werror_flag"
27253                          || test ! -s conftest.err'
27254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27255   (eval $ac_try) 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); }; } &&
27259          { ac_try='test -s conftest$ac_exeext'
27260   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27261   (eval $ac_try) 2>&5
27262   ac_status=$?
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); }; }; then
27265   eval "$as_ac_var=yes"
27266 else
27267   echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270 eval "$as_ac_var=no"
27271 fi
27272 rm -f conftest.err conftest.$ac_objext \
27273       conftest$ac_exeext conftest.$ac_ext
27274 fi
27275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27276 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27277 if test `eval echo '${'$as_ac_var'}'` = yes; then
27278   cat >>confdefs.h <<_ACEOF
27279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27280 _ACEOF
27281  cat >>confdefs.h <<\_ACEOF
27282 #define HAVE_GETHOSTBYNAME2 1
27283 _ACEOF
27284
27285 fi
27286 done
27287
27288
27289 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27290 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27291 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27292   echo $ECHO_N "(cached) $ECHO_C" >&6
27293 else
27294   cat >conftest.$ac_ext <<_ACEOF
27295 /* confdefs.h.  */
27296 _ACEOF
27297 cat confdefs.h >>conftest.$ac_ext
27298 cat >>conftest.$ac_ext <<_ACEOF
27299 /* end confdefs.h.  */
27300 #include <sys/socket.h>
27301 int
27302 main ()
27303 {
27304 struct sockaddr s; s.sa_len;
27305   ;
27306   return 0;
27307 }
27308 _ACEOF
27309 rm -f conftest.$ac_objext
27310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27311   (eval $ac_compile) 2>conftest.er1
27312   ac_status=$?
27313   grep -v '^ *+' conftest.er1 >conftest.err
27314   rm -f conftest.er1
27315   cat conftest.err >&5
27316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27317   (exit $ac_status); } &&
27318          { ac_try='test -z "$ac_c_werror_flag"
27319                          || test ! -s conftest.err'
27320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27321   (eval $ac_try) 2>&5
27322   ac_status=$?
27323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27324   (exit $ac_status); }; } &&
27325          { ac_try='test -s conftest.$ac_objext'
27326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27327   (eval $ac_try) 2>&5
27328   ac_status=$?
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); }; }; then
27331   ac_cv_struct_sockaddr_sa_len=yes
27332 else
27333   echo "$as_me: failed program was:" >&5
27334 sed 's/^/| /' conftest.$ac_ext >&5
27335
27336 ac_cv_struct_sockaddr_sa_len=no
27337 fi
27338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27339 fi
27340 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27341 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27342
27343  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27344
27345 cat >>confdefs.h <<\_ACEOF
27346 #define HAVE_SA_LEN 1
27347 _ACEOF
27348
27349  fi
27350
27351
27352 echo "$as_me:$LINENO: checking for IPv6 support" >&5
27353 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
27354 if test "${ac_cv_ipv6_support+set}" = set; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 else
27357   cat >conftest.$ac_ext <<_ACEOF
27358 /* confdefs.h.  */
27359 _ACEOF
27360 cat confdefs.h >>conftest.$ac_ext
27361 cat >>conftest.$ac_ext <<_ACEOF
27362 /* end confdefs.h.  */
27363  #include <sys/types.h>
27364 #include <sys/socket.h>
27365 #include <netinet/in.h>
27366 int
27367 main ()
27368 {
27369 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
27370  0;
27371   ;
27372   return 0;
27373 }
27374 _ACEOF
27375 rm -f conftest.$ac_objext conftest$ac_exeext
27376 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27377   (eval $ac_link) 2>conftest.er1
27378   ac_status=$?
27379   grep -v '^ *+' conftest.er1 >conftest.err
27380   rm -f conftest.er1
27381   cat conftest.err >&5
27382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383   (exit $ac_status); } &&
27384          { ac_try='test -z "$ac_c_werror_flag"
27385                          || test ! -s conftest.err'
27386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387   (eval $ac_try) 2>&5
27388   ac_status=$?
27389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390   (exit $ac_status); }; } &&
27391          { ac_try='test -s conftest$ac_exeext'
27392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393   (eval $ac_try) 2>&5
27394   ac_status=$?
27395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396   (exit $ac_status); }; }; then
27397   ac_cv_ipv6_support=yes
27398 else
27399   echo "$as_me: failed program was:" >&5
27400 sed 's/^/| /' conftest.$ac_ext >&5
27401
27402 ac_cv_ipv6_support=no
27403 fi
27404 rm -f conftest.err conftest.$ac_objext \
27405       conftest$ac_exeext conftest.$ac_ext
27406 fi
27407 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
27408 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
27409
27410 if test "$ac_cv_ipv6_support" = yes; then
27411
27412 cat >>confdefs.h <<\_ACEOF
27413 #define HAVE_IPV6 1
27414 _ACEOF
27415
27416 fi
27417
27418
27419
27420
27421 for ac_func in strftime
27422 do
27423 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27424 echo "$as_me:$LINENO: checking for $ac_func" >&5
27425 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27426 if eval "test \"\${$as_ac_var+set}\" = set"; then
27427   echo $ECHO_N "(cached) $ECHO_C" >&6
27428 else
27429   cat >conftest.$ac_ext <<_ACEOF
27430 /* confdefs.h.  */
27431 _ACEOF
27432 cat confdefs.h >>conftest.$ac_ext
27433 cat >>conftest.$ac_ext <<_ACEOF
27434 /* end confdefs.h.  */
27435 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27437 #define $ac_func innocuous_$ac_func
27438
27439 /* System header to define __stub macros and hopefully few prototypes,
27440     which can conflict with char $ac_func (); below.
27441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27442     <limits.h> exists even on freestanding compilers.  */
27443
27444 #ifdef __STDC__
27445 # include <limits.h>
27446 #else
27447 # include <assert.h>
27448 #endif
27449
27450 #undef $ac_func
27451
27452 /* Override any gcc2 internal prototype to avoid an error.  */
27453 #ifdef __cplusplus
27454 extern "C"
27455 {
27456 #endif
27457 /* We use char because int might match the return type of a gcc2
27458    builtin and then its argument prototype would still apply.  */
27459 char $ac_func ();
27460 /* The GNU C library defines this for functions which it implements
27461     to always fail with ENOSYS.  Some functions are actually named
27462     something starting with __ and the normal name is an alias.  */
27463 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27464 choke me
27465 #else
27466 char (*f) () = $ac_func;
27467 #endif
27468 #ifdef __cplusplus
27469 }
27470 #endif
27471
27472 int
27473 main ()
27474 {
27475 return f != $ac_func;
27476   ;
27477   return 0;
27478 }
27479 _ACEOF
27480 rm -f conftest.$ac_objext conftest$ac_exeext
27481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27482   (eval $ac_link) 2>conftest.er1
27483   ac_status=$?
27484   grep -v '^ *+' conftest.er1 >conftest.err
27485   rm -f conftest.er1
27486   cat conftest.err >&5
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); } &&
27489          { ac_try='test -z "$ac_c_werror_flag"
27490                          || test ! -s conftest.err'
27491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27492   (eval $ac_try) 2>&5
27493   ac_status=$?
27494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27495   (exit $ac_status); }; } &&
27496          { ac_try='test -s conftest$ac_exeext'
27497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27498   (eval $ac_try) 2>&5
27499   ac_status=$?
27500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27501   (exit $ac_status); }; }; then
27502   eval "$as_ac_var=yes"
27503 else
27504   echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27506
27507 eval "$as_ac_var=no"
27508 fi
27509 rm -f conftest.err conftest.$ac_objext \
27510       conftest$ac_exeext conftest.$ac_ext
27511 fi
27512 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27513 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27514 if test `eval echo '${'$as_ac_var'}'` = yes; then
27515   cat >>confdefs.h <<_ACEOF
27516 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27517 _ACEOF
27518
27519 else
27520   # strftime is in -lintl on SCO UNIX.
27521 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27522 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
27523 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27524   echo $ECHO_N "(cached) $ECHO_C" >&6
27525 else
27526   ac_check_lib_save_LIBS=$LIBS
27527 LIBS="-lintl  $LIBS"
27528 cat >conftest.$ac_ext <<_ACEOF
27529 /* confdefs.h.  */
27530 _ACEOF
27531 cat confdefs.h >>conftest.$ac_ext
27532 cat >>conftest.$ac_ext <<_ACEOF
27533 /* end confdefs.h.  */
27534
27535 /* Override any gcc2 internal prototype to avoid an error.  */
27536 #ifdef __cplusplus
27537 extern "C"
27538 #endif
27539 /* We use char because int might match the return type of a gcc2
27540    builtin and then its argument prototype would still apply.  */
27541 char strftime ();
27542 int
27543 main ()
27544 {
27545 strftime ();
27546   ;
27547   return 0;
27548 }
27549 _ACEOF
27550 rm -f conftest.$ac_objext conftest$ac_exeext
27551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27552   (eval $ac_link) 2>conftest.er1
27553   ac_status=$?
27554   grep -v '^ *+' conftest.er1 >conftest.err
27555   rm -f conftest.er1
27556   cat conftest.err >&5
27557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558   (exit $ac_status); } &&
27559          { ac_try='test -z "$ac_c_werror_flag"
27560                          || test ! -s conftest.err'
27561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27562   (eval $ac_try) 2>&5
27563   ac_status=$?
27564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565   (exit $ac_status); }; } &&
27566          { ac_try='test -s conftest$ac_exeext'
27567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27568   (eval $ac_try) 2>&5
27569   ac_status=$?
27570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27571   (exit $ac_status); }; }; then
27572   ac_cv_lib_intl_strftime=yes
27573 else
27574   echo "$as_me: failed program was:" >&5
27575 sed 's/^/| /' conftest.$ac_ext >&5
27576
27577 ac_cv_lib_intl_strftime=no
27578 fi
27579 rm -f conftest.err conftest.$ac_objext \
27580       conftest$ac_exeext conftest.$ac_ext
27581 LIBS=$ac_check_lib_save_LIBS
27582 fi
27583 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27584 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
27585 if test $ac_cv_lib_intl_strftime = yes; then
27586   cat >>confdefs.h <<\_ACEOF
27587 #define HAVE_STRFTIME 1
27588 _ACEOF
27589
27590 LIBS="-lintl $LIBS"
27591 fi
27592
27593 fi
27594 done
27595
27596
27597 for ac_func in vprintf
27598 do
27599 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27600 echo "$as_me:$LINENO: checking for $ac_func" >&5
27601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27602 if eval "test \"\${$as_ac_var+set}\" = set"; then
27603   echo $ECHO_N "(cached) $ECHO_C" >&6
27604 else
27605   cat >conftest.$ac_ext <<_ACEOF
27606 /* confdefs.h.  */
27607 _ACEOF
27608 cat confdefs.h >>conftest.$ac_ext
27609 cat >>conftest.$ac_ext <<_ACEOF
27610 /* end confdefs.h.  */
27611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27613 #define $ac_func innocuous_$ac_func
27614
27615 /* System header to define __stub macros and hopefully few prototypes,
27616     which can conflict with char $ac_func (); below.
27617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27618     <limits.h> exists even on freestanding compilers.  */
27619
27620 #ifdef __STDC__
27621 # include <limits.h>
27622 #else
27623 # include <assert.h>
27624 #endif
27625
27626 #undef $ac_func
27627
27628 /* Override any gcc2 internal prototype to avoid an error.  */
27629 #ifdef __cplusplus
27630 extern "C"
27631 {
27632 #endif
27633 /* We use char because int might match the return type of a gcc2
27634    builtin and then its argument prototype would still apply.  */
27635 char $ac_func ();
27636 /* The GNU C library defines this for functions which it implements
27637     to always fail with ENOSYS.  Some functions are actually named
27638     something starting with __ and the normal name is an alias.  */
27639 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27640 choke me
27641 #else
27642 char (*f) () = $ac_func;
27643 #endif
27644 #ifdef __cplusplus
27645 }
27646 #endif
27647
27648 int
27649 main ()
27650 {
27651 return f != $ac_func;
27652   ;
27653   return 0;
27654 }
27655 _ACEOF
27656 rm -f conftest.$ac_objext conftest$ac_exeext
27657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27658   (eval $ac_link) 2>conftest.er1
27659   ac_status=$?
27660   grep -v '^ *+' conftest.er1 >conftest.err
27661   rm -f conftest.er1
27662   cat conftest.err >&5
27663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664   (exit $ac_status); } &&
27665          { ac_try='test -z "$ac_c_werror_flag"
27666                          || test ! -s conftest.err'
27667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27668   (eval $ac_try) 2>&5
27669   ac_status=$?
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); }; } &&
27672          { ac_try='test -s conftest$ac_exeext'
27673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27674   (eval $ac_try) 2>&5
27675   ac_status=$?
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); }; }; then
27678   eval "$as_ac_var=yes"
27679 else
27680   echo "$as_me: failed program was:" >&5
27681 sed 's/^/| /' conftest.$ac_ext >&5
27682
27683 eval "$as_ac_var=no"
27684 fi
27685 rm -f conftest.err conftest.$ac_objext \
27686       conftest$ac_exeext conftest.$ac_ext
27687 fi
27688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27689 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27690 if test `eval echo '${'$as_ac_var'}'` = yes; then
27691   cat >>confdefs.h <<_ACEOF
27692 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27693 _ACEOF
27694
27695 echo "$as_me:$LINENO: checking for _doprnt" >&5
27696 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
27697 if test "${ac_cv_func__doprnt+set}" = set; then
27698   echo $ECHO_N "(cached) $ECHO_C" >&6
27699 else
27700   cat >conftest.$ac_ext <<_ACEOF
27701 /* confdefs.h.  */
27702 _ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h.  */
27706 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27707    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27708 #define _doprnt innocuous__doprnt
27709
27710 /* System header to define __stub macros and hopefully few prototypes,
27711     which can conflict with char _doprnt (); below.
27712     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27713     <limits.h> exists even on freestanding compilers.  */
27714
27715 #ifdef __STDC__
27716 # include <limits.h>
27717 #else
27718 # include <assert.h>
27719 #endif
27720
27721 #undef _doprnt
27722
27723 /* Override any gcc2 internal prototype to avoid an error.  */
27724 #ifdef __cplusplus
27725 extern "C"
27726 {
27727 #endif
27728 /* We use char because int might match the return type of a gcc2
27729    builtin and then its argument prototype would still apply.  */
27730 char _doprnt ();
27731 /* The GNU C library defines this for functions which it implements
27732     to always fail with ENOSYS.  Some functions are actually named
27733     something starting with __ and the normal name is an alias.  */
27734 #if defined (__stub__doprnt) || defined (__stub____doprnt)
27735 choke me
27736 #else
27737 char (*f) () = _doprnt;
27738 #endif
27739 #ifdef __cplusplus
27740 }
27741 #endif
27742
27743 int
27744 main ()
27745 {
27746 return f != _doprnt;
27747   ;
27748   return 0;
27749 }
27750 _ACEOF
27751 rm -f conftest.$ac_objext conftest$ac_exeext
27752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27753   (eval $ac_link) 2>conftest.er1
27754   ac_status=$?
27755   grep -v '^ *+' conftest.er1 >conftest.err
27756   rm -f conftest.er1
27757   cat conftest.err >&5
27758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27759   (exit $ac_status); } &&
27760          { ac_try='test -z "$ac_c_werror_flag"
27761                          || test ! -s conftest.err'
27762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27763   (eval $ac_try) 2>&5
27764   ac_status=$?
27765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27766   (exit $ac_status); }; } &&
27767          { ac_try='test -s conftest$ac_exeext'
27768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27769   (eval $ac_try) 2>&5
27770   ac_status=$?
27771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27772   (exit $ac_status); }; }; then
27773   ac_cv_func__doprnt=yes
27774 else
27775   echo "$as_me: failed program was:" >&5
27776 sed 's/^/| /' conftest.$ac_ext >&5
27777
27778 ac_cv_func__doprnt=no
27779 fi
27780 rm -f conftest.err conftest.$ac_objext \
27781       conftest$ac_exeext conftest.$ac_ext
27782 fi
27783 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27784 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
27785 if test $ac_cv_func__doprnt = yes; then
27786
27787 cat >>confdefs.h <<\_ACEOF
27788 #define HAVE_DOPRNT 1
27789 _ACEOF
27790
27791 fi
27792
27793 fi
27794 done
27795
27796
27797 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27798 # for constant arguments.  Useless!
27799 echo "$as_me:$LINENO: checking for working alloca.h" >&5
27800 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
27801 if test "${ac_cv_working_alloca_h+set}" = set; then
27802   echo $ECHO_N "(cached) $ECHO_C" >&6
27803 else
27804   cat >conftest.$ac_ext <<_ACEOF
27805 /* confdefs.h.  */
27806 _ACEOF
27807 cat confdefs.h >>conftest.$ac_ext
27808 cat >>conftest.$ac_ext <<_ACEOF
27809 /* end confdefs.h.  */
27810 #include <alloca.h>
27811 int
27812 main ()
27813 {
27814 char *p = (char *) alloca (2 * sizeof (int));
27815   ;
27816   return 0;
27817 }
27818 _ACEOF
27819 rm -f conftest.$ac_objext conftest$ac_exeext
27820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27821   (eval $ac_link) 2>conftest.er1
27822   ac_status=$?
27823   grep -v '^ *+' conftest.er1 >conftest.err
27824   rm -f conftest.er1
27825   cat conftest.err >&5
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } &&
27828          { ac_try='test -z "$ac_c_werror_flag"
27829                          || test ! -s conftest.err'
27830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27831   (eval $ac_try) 2>&5
27832   ac_status=$?
27833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27834   (exit $ac_status); }; } &&
27835          { ac_try='test -s conftest$ac_exeext'
27836   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27837   (eval $ac_try) 2>&5
27838   ac_status=$?
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); }; }; then
27841   ac_cv_working_alloca_h=yes
27842 else
27843   echo "$as_me: failed program was:" >&5
27844 sed 's/^/| /' conftest.$ac_ext >&5
27845
27846 ac_cv_working_alloca_h=no
27847 fi
27848 rm -f conftest.err conftest.$ac_objext \
27849       conftest$ac_exeext conftest.$ac_ext
27850 fi
27851 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27852 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
27853 if test $ac_cv_working_alloca_h = yes; then
27854
27855 cat >>confdefs.h <<\_ACEOF
27856 #define HAVE_ALLOCA_H 1
27857 _ACEOF
27858
27859 fi
27860
27861 echo "$as_me:$LINENO: checking for alloca" >&5
27862 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
27863 if test "${ac_cv_func_alloca_works+set}" = set; then
27864   echo $ECHO_N "(cached) $ECHO_C" >&6
27865 else
27866   cat >conftest.$ac_ext <<_ACEOF
27867 /* confdefs.h.  */
27868 _ACEOF
27869 cat confdefs.h >>conftest.$ac_ext
27870 cat >>conftest.$ac_ext <<_ACEOF
27871 /* end confdefs.h.  */
27872 #ifdef __GNUC__
27873 # define alloca __builtin_alloca
27874 #else
27875 # ifdef _MSC_VER
27876 #  include <malloc.h>
27877 #  define alloca _alloca
27878 # else
27879 #  if HAVE_ALLOCA_H
27880 #   include <alloca.h>
27881 #  else
27882 #   ifdef _AIX
27883  #pragma alloca
27884 #   else
27885 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27886 char *alloca ();
27887 #    endif
27888 #   endif
27889 #  endif
27890 # endif
27891 #endif
27892
27893 int
27894 main ()
27895 {
27896 char *p = (char *) alloca (1);
27897   ;
27898   return 0;
27899 }
27900 _ACEOF
27901 rm -f conftest.$ac_objext conftest$ac_exeext
27902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27903   (eval $ac_link) 2>conftest.er1
27904   ac_status=$?
27905   grep -v '^ *+' conftest.er1 >conftest.err
27906   rm -f conftest.er1
27907   cat conftest.err >&5
27908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27909   (exit $ac_status); } &&
27910          { ac_try='test -z "$ac_c_werror_flag"
27911                          || test ! -s conftest.err'
27912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27913   (eval $ac_try) 2>&5
27914   ac_status=$?
27915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27916   (exit $ac_status); }; } &&
27917          { ac_try='test -s conftest$ac_exeext'
27918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27919   (eval $ac_try) 2>&5
27920   ac_status=$?
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); }; }; then
27923   ac_cv_func_alloca_works=yes
27924 else
27925   echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27927
27928 ac_cv_func_alloca_works=no
27929 fi
27930 rm -f conftest.err conftest.$ac_objext \
27931       conftest$ac_exeext conftest.$ac_ext
27932 fi
27933 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27934 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27935
27936 if test $ac_cv_func_alloca_works = yes; then
27937
27938 cat >>confdefs.h <<\_ACEOF
27939 #define HAVE_ALLOCA 1
27940 _ACEOF
27941
27942 else
27943   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27944 # that cause trouble.  Some versions do not even contain alloca or
27945 # contain a buggy version.  If you still want to use their alloca,
27946 # use ar to extract alloca.o from them instead of compiling alloca.c.
27947
27948 ALLOCA=alloca.$ac_objext
27949
27950 cat >>confdefs.h <<\_ACEOF
27951 #define C_ALLOCA 1
27952 _ACEOF
27953
27954
27955 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27956 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27957 if test "${ac_cv_os_cray+set}" = set; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 #if defined(CRAY) && ! defined(CRAY2)
27967 webecray
27968 #else
27969 wenotbecray
27970 #endif
27971
27972 _ACEOF
27973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27974   $EGREP "webecray" >/dev/null 2>&1; then
27975   ac_cv_os_cray=yes
27976 else
27977   ac_cv_os_cray=no
27978 fi
27979 rm -f conftest*
27980
27981 fi
27982 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27983 echo "${ECHO_T}$ac_cv_os_cray" >&6
27984 if test $ac_cv_os_cray = yes; then
27985   for ac_func in _getb67 GETB67 getb67; do
27986     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27987 echo "$as_me:$LINENO: checking for $ac_func" >&5
27988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27989 if eval "test \"\${$as_ac_var+set}\" = set"; then
27990   echo $ECHO_N "(cached) $ECHO_C" >&6
27991 else
27992   cat >conftest.$ac_ext <<_ACEOF
27993 /* confdefs.h.  */
27994 _ACEOF
27995 cat confdefs.h >>conftest.$ac_ext
27996 cat >>conftest.$ac_ext <<_ACEOF
27997 /* end confdefs.h.  */
27998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28000 #define $ac_func innocuous_$ac_func
28001
28002 /* System header to define __stub macros and hopefully few prototypes,
28003     which can conflict with char $ac_func (); below.
28004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28005     <limits.h> exists even on freestanding compilers.  */
28006
28007 #ifdef __STDC__
28008 # include <limits.h>
28009 #else
28010 # include <assert.h>
28011 #endif
28012
28013 #undef $ac_func
28014
28015 /* Override any gcc2 internal prototype to avoid an error.  */
28016 #ifdef __cplusplus
28017 extern "C"
28018 {
28019 #endif
28020 /* We use char because int might match the return type of a gcc2
28021    builtin and then its argument prototype would still apply.  */
28022 char $ac_func ();
28023 /* The GNU C library defines this for functions which it implements
28024     to always fail with ENOSYS.  Some functions are actually named
28025     something starting with __ and the normal name is an alias.  */
28026 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28027 choke me
28028 #else
28029 char (*f) () = $ac_func;
28030 #endif
28031 #ifdef __cplusplus
28032 }
28033 #endif
28034
28035 int
28036 main ()
28037 {
28038 return f != $ac_func;
28039   ;
28040   return 0;
28041 }
28042 _ACEOF
28043 rm -f conftest.$ac_objext conftest$ac_exeext
28044 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28045   (eval $ac_link) 2>conftest.er1
28046   ac_status=$?
28047   grep -v '^ *+' conftest.er1 >conftest.err
28048   rm -f conftest.er1
28049   cat conftest.err >&5
28050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051   (exit $ac_status); } &&
28052          { ac_try='test -z "$ac_c_werror_flag"
28053                          || test ! -s conftest.err'
28054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28055   (eval $ac_try) 2>&5
28056   ac_status=$?
28057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28058   (exit $ac_status); }; } &&
28059          { ac_try='test -s conftest$ac_exeext'
28060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28061   (eval $ac_try) 2>&5
28062   ac_status=$?
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); }; }; then
28065   eval "$as_ac_var=yes"
28066 else
28067   echo "$as_me: failed program was:" >&5
28068 sed 's/^/| /' conftest.$ac_ext >&5
28069
28070 eval "$as_ac_var=no"
28071 fi
28072 rm -f conftest.err conftest.$ac_objext \
28073       conftest$ac_exeext conftest.$ac_ext
28074 fi
28075 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28076 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28077 if test `eval echo '${'$as_ac_var'}'` = yes; then
28078
28079 cat >>confdefs.h <<_ACEOF
28080 #define CRAY_STACKSEG_END $ac_func
28081 _ACEOF
28082
28083     break
28084 fi
28085
28086   done
28087 fi
28088
28089 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28090 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28091 if test "${ac_cv_c_stack_direction+set}" = set; then
28092   echo $ECHO_N "(cached) $ECHO_C" >&6
28093 else
28094   if test "$cross_compiling" = yes; then
28095   ac_cv_c_stack_direction=0
28096 else
28097   cat >conftest.$ac_ext <<_ACEOF
28098 /* confdefs.h.  */
28099 _ACEOF
28100 cat confdefs.h >>conftest.$ac_ext
28101 cat >>conftest.$ac_ext <<_ACEOF
28102 /* end confdefs.h.  */
28103 int
28104 find_stack_direction ()
28105 {
28106   static char *addr = 0;
28107   auto char dummy;
28108   if (addr == 0)
28109     {
28110       addr = &dummy;
28111       return find_stack_direction ();
28112     }
28113   else
28114     return (&dummy > addr) ? 1 : -1;
28115 }
28116
28117 int
28118 main ()
28119 {
28120   exit (find_stack_direction () < 0);
28121 }
28122 _ACEOF
28123 rm -f conftest$ac_exeext
28124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28125   (eval $ac_link) 2>&5
28126   ac_status=$?
28127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28130   (eval $ac_try) 2>&5
28131   ac_status=$?
28132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28133   (exit $ac_status); }; }; then
28134   ac_cv_c_stack_direction=1
28135 else
28136   echo "$as_me: program exited with status $ac_status" >&5
28137 echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140 ( exit $ac_status )
28141 ac_cv_c_stack_direction=-1
28142 fi
28143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28144 fi
28145 fi
28146 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28147 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28148
28149 cat >>confdefs.h <<_ACEOF
28150 #define STACK_DIRECTION $ac_cv_c_stack_direction
28151 _ACEOF
28152
28153
28154 fi
28155
28156 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28157 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28158 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28159 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28160   echo $ECHO_N "(cached) $ECHO_C" >&6
28161 else
28162   ac_check_lib_save_LIBS=$LIBS
28163 LIBS="-lsun  $LIBS"
28164 cat >conftest.$ac_ext <<_ACEOF
28165 /* confdefs.h.  */
28166 _ACEOF
28167 cat confdefs.h >>conftest.$ac_ext
28168 cat >>conftest.$ac_ext <<_ACEOF
28169 /* end confdefs.h.  */
28170
28171 /* Override any gcc2 internal prototype to avoid an error.  */
28172 #ifdef __cplusplus
28173 extern "C"
28174 #endif
28175 /* We use char because int might match the return type of a gcc2
28176    builtin and then its argument prototype would still apply.  */
28177 char getmntent ();
28178 int
28179 main ()
28180 {
28181 getmntent ();
28182   ;
28183   return 0;
28184 }
28185 _ACEOF
28186 rm -f conftest.$ac_objext conftest$ac_exeext
28187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28188   (eval $ac_link) 2>conftest.er1
28189   ac_status=$?
28190   grep -v '^ *+' conftest.er1 >conftest.err
28191   rm -f conftest.er1
28192   cat conftest.err >&5
28193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194   (exit $ac_status); } &&
28195          { ac_try='test -z "$ac_c_werror_flag"
28196                          || test ! -s conftest.err'
28197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28198   (eval $ac_try) 2>&5
28199   ac_status=$?
28200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28201   (exit $ac_status); }; } &&
28202          { ac_try='test -s conftest$ac_exeext'
28203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28204   (eval $ac_try) 2>&5
28205   ac_status=$?
28206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28207   (exit $ac_status); }; }; then
28208   ac_cv_lib_sun_getmntent=yes
28209 else
28210   echo "$as_me: failed program was:" >&5
28211 sed 's/^/| /' conftest.$ac_ext >&5
28212
28213 ac_cv_lib_sun_getmntent=no
28214 fi
28215 rm -f conftest.err conftest.$ac_objext \
28216       conftest$ac_exeext conftest.$ac_ext
28217 LIBS=$ac_check_lib_save_LIBS
28218 fi
28219 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28220 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28221 if test $ac_cv_lib_sun_getmntent = yes; then
28222   LIBS="-lsun $LIBS"
28223 else
28224   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28225 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28226 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28227   echo $ECHO_N "(cached) $ECHO_C" >&6
28228 else
28229   ac_check_lib_save_LIBS=$LIBS
28230 LIBS="-lseq  $LIBS"
28231 cat >conftest.$ac_ext <<_ACEOF
28232 /* confdefs.h.  */
28233 _ACEOF
28234 cat confdefs.h >>conftest.$ac_ext
28235 cat >>conftest.$ac_ext <<_ACEOF
28236 /* end confdefs.h.  */
28237
28238 /* Override any gcc2 internal prototype to avoid an error.  */
28239 #ifdef __cplusplus
28240 extern "C"
28241 #endif
28242 /* We use char because int might match the return type of a gcc2
28243    builtin and then its argument prototype would still apply.  */
28244 char getmntent ();
28245 int
28246 main ()
28247 {
28248 getmntent ();
28249   ;
28250   return 0;
28251 }
28252 _ACEOF
28253 rm -f conftest.$ac_objext conftest$ac_exeext
28254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28255   (eval $ac_link) 2>conftest.er1
28256   ac_status=$?
28257   grep -v '^ *+' conftest.er1 >conftest.err
28258   rm -f conftest.er1
28259   cat conftest.err >&5
28260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28261   (exit $ac_status); } &&
28262          { ac_try='test -z "$ac_c_werror_flag"
28263                          || test ! -s conftest.err'
28264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265   (eval $ac_try) 2>&5
28266   ac_status=$?
28267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268   (exit $ac_status); }; } &&
28269          { ac_try='test -s conftest$ac_exeext'
28270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28271   (eval $ac_try) 2>&5
28272   ac_status=$?
28273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28274   (exit $ac_status); }; }; then
28275   ac_cv_lib_seq_getmntent=yes
28276 else
28277   echo "$as_me: failed program was:" >&5
28278 sed 's/^/| /' conftest.$ac_ext >&5
28279
28280 ac_cv_lib_seq_getmntent=no
28281 fi
28282 rm -f conftest.err conftest.$ac_objext \
28283       conftest$ac_exeext conftest.$ac_ext
28284 LIBS=$ac_check_lib_save_LIBS
28285 fi
28286 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28287 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28288 if test $ac_cv_lib_seq_getmntent = yes; then
28289   LIBS="-lseq $LIBS"
28290 else
28291   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28292 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28293 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28294   echo $ECHO_N "(cached) $ECHO_C" >&6
28295 else
28296   ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-lgen  $LIBS"
28298 cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304
28305 /* Override any gcc2 internal prototype to avoid an error.  */
28306 #ifdef __cplusplus
28307 extern "C"
28308 #endif
28309 /* We use char because int might match the return type of a gcc2
28310    builtin and then its argument prototype would still apply.  */
28311 char getmntent ();
28312 int
28313 main ()
28314 {
28315 getmntent ();
28316   ;
28317   return 0;
28318 }
28319 _ACEOF
28320 rm -f conftest.$ac_objext conftest$ac_exeext
28321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28322   (eval $ac_link) 2>conftest.er1
28323   ac_status=$?
28324   grep -v '^ *+' conftest.er1 >conftest.err
28325   rm -f conftest.er1
28326   cat conftest.err >&5
28327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28328   (exit $ac_status); } &&
28329          { ac_try='test -z "$ac_c_werror_flag"
28330                          || test ! -s conftest.err'
28331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332   (eval $ac_try) 2>&5
28333   ac_status=$?
28334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335   (exit $ac_status); }; } &&
28336          { ac_try='test -s conftest$ac_exeext'
28337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28338   (eval $ac_try) 2>&5
28339   ac_status=$?
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); }; }; then
28342   ac_cv_lib_gen_getmntent=yes
28343 else
28344   echo "$as_me: failed program was:" >&5
28345 sed 's/^/| /' conftest.$ac_ext >&5
28346
28347 ac_cv_lib_gen_getmntent=no
28348 fi
28349 rm -f conftest.err conftest.$ac_objext \
28350       conftest$ac_exeext conftest.$ac_ext
28351 LIBS=$ac_check_lib_save_LIBS
28352 fi
28353 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28354 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28355 if test $ac_cv_lib_gen_getmntent = yes; then
28356   LIBS="-lgen $LIBS"
28357 fi
28358
28359 fi
28360
28361 fi
28362
28363
28364 for ac_func in getmntent
28365 do
28366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28367 echo "$as_me:$LINENO: checking for $ac_func" >&5
28368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28369 if eval "test \"\${$as_ac_var+set}\" = set"; then
28370   echo $ECHO_N "(cached) $ECHO_C" >&6
28371 else
28372   cat >conftest.$ac_ext <<_ACEOF
28373 /* confdefs.h.  */
28374 _ACEOF
28375 cat confdefs.h >>conftest.$ac_ext
28376 cat >>conftest.$ac_ext <<_ACEOF
28377 /* end confdefs.h.  */
28378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28380 #define $ac_func innocuous_$ac_func
28381
28382 /* System header to define __stub macros and hopefully few prototypes,
28383     which can conflict with char $ac_func (); below.
28384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28385     <limits.h> exists even on freestanding compilers.  */
28386
28387 #ifdef __STDC__
28388 # include <limits.h>
28389 #else
28390 # include <assert.h>
28391 #endif
28392
28393 #undef $ac_func
28394
28395 /* Override any gcc2 internal prototype to avoid an error.  */
28396 #ifdef __cplusplus
28397 extern "C"
28398 {
28399 #endif
28400 /* We use char because int might match the return type of a gcc2
28401    builtin and then its argument prototype would still apply.  */
28402 char $ac_func ();
28403 /* The GNU C library defines this for functions which it implements
28404     to always fail with ENOSYS.  Some functions are actually named
28405     something starting with __ and the normal name is an alias.  */
28406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28407 choke me
28408 #else
28409 char (*f) () = $ac_func;
28410 #endif
28411 #ifdef __cplusplus
28412 }
28413 #endif
28414
28415 int
28416 main ()
28417 {
28418 return f != $ac_func;
28419   ;
28420   return 0;
28421 }
28422 _ACEOF
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28425   (eval $ac_link) 2>conftest.er1
28426   ac_status=$?
28427   grep -v '^ *+' conftest.er1 >conftest.err
28428   rm -f conftest.er1
28429   cat conftest.err >&5
28430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28431   (exit $ac_status); } &&
28432          { ac_try='test -z "$ac_c_werror_flag"
28433                          || test ! -s conftest.err'
28434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28435   (eval $ac_try) 2>&5
28436   ac_status=$?
28437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28438   (exit $ac_status); }; } &&
28439          { ac_try='test -s conftest$ac_exeext'
28440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28441   (eval $ac_try) 2>&5
28442   ac_status=$?
28443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); }; }; then
28445   eval "$as_ac_var=yes"
28446 else
28447   echo "$as_me: failed program was:" >&5
28448 sed 's/^/| /' conftest.$ac_ext >&5
28449
28450 eval "$as_ac_var=no"
28451 fi
28452 rm -f conftest.err conftest.$ac_objext \
28453       conftest$ac_exeext conftest.$ac_ext
28454 fi
28455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28457 if test `eval echo '${'$as_ac_var'}'` = yes; then
28458   cat >>confdefs.h <<_ACEOF
28459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28460 _ACEOF
28461
28462 fi
28463 done
28464
28465
28466 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28467 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
28468 if test "${ac_cv_func_closedir_void+set}" = set; then
28469   echo $ECHO_N "(cached) $ECHO_C" >&6
28470 else
28471   if test "$cross_compiling" = yes; then
28472   ac_cv_func_closedir_void=yes
28473 else
28474   cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480 $ac_includes_default
28481 #include <$ac_header_dirent>
28482 #ifndef __cplusplus
28483 int closedir ();
28484 #endif
28485
28486 int
28487 main ()
28488 {
28489 exit (closedir (opendir (".")) != 0);
28490   ;
28491   return 0;
28492 }
28493 _ACEOF
28494 rm -f conftest$ac_exeext
28495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28496   (eval $ac_link) 2>&5
28497   ac_status=$?
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28501   (eval $ac_try) 2>&5
28502   ac_status=$?
28503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504   (exit $ac_status); }; }; then
28505   ac_cv_func_closedir_void=no
28506 else
28507   echo "$as_me: program exited with status $ac_status" >&5
28508 echo "$as_me: failed program was:" >&5
28509 sed 's/^/| /' conftest.$ac_ext >&5
28510
28511 ( exit $ac_status )
28512 ac_cv_func_closedir_void=yes
28513 fi
28514 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28515 fi
28516 fi
28517 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28518 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
28519 if test $ac_cv_func_closedir_void = yes; then
28520
28521 cat >>confdefs.h <<\_ACEOF
28522 #define CLOSEDIR_VOID 1
28523 _ACEOF
28524
28525 fi
28526
28527 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28528 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
28529 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28530   echo $ECHO_N "(cached) $ECHO_C" >&6
28531 else
28532   if test "$cross_compiling" = yes; then
28533   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28534 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28535    { (exit 1); exit 1; }; }
28536 else
28537   cat >conftest.$ac_ext <<_ACEOF
28538 /* confdefs.h.  */
28539 _ACEOF
28540 cat confdefs.h >>conftest.$ac_ext
28541 cat >>conftest.$ac_ext <<_ACEOF
28542 /* end confdefs.h.  */
28543 #if HAVE_UNISTD_H
28544 # include <unistd.h>
28545 #endif
28546
28547 int
28548 main ()
28549 {
28550 /* If this system has a BSD-style setpgrp which takes arguments,
28551   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28552   exit successfully. */
28553   exit (setpgrp (1,1) == -1 ? 0 : 1);
28554   ;
28555   return 0;
28556 }
28557 _ACEOF
28558 rm -f conftest$ac_exeext
28559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28560   (eval $ac_link) 2>&5
28561   ac_status=$?
28562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28563   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28565   (eval $ac_try) 2>&5
28566   ac_status=$?
28567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28568   (exit $ac_status); }; }; then
28569   ac_cv_func_setpgrp_void=no
28570 else
28571   echo "$as_me: program exited with status $ac_status" >&5
28572 echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.$ac_ext >&5
28574
28575 ( exit $ac_status )
28576 ac_cv_func_setpgrp_void=yes
28577 fi
28578 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28579 fi
28580 fi
28581 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28582 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
28583 if test $ac_cv_func_setpgrp_void = yes; then
28584
28585 cat >>confdefs.h <<\_ACEOF
28586 #define SETPGRP_VOID 1
28587 _ACEOF
28588
28589 fi
28590                       # AC_FUNC_FNMATCH    dnl use local version
28591
28592
28593 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28594 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
28595 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28596   echo $ECHO_N "(cached) $ECHO_C" >&6
28597 else
28598   ac_check_lib_save_LIBS=$LIBS
28599 LIBS="-lintl  $LIBS"
28600 cat >conftest.$ac_ext <<_ACEOF
28601 /* confdefs.h.  */
28602 _ACEOF
28603 cat confdefs.h >>conftest.$ac_ext
28604 cat >>conftest.$ac_ext <<_ACEOF
28605 /* end confdefs.h.  */
28606
28607 /* Override any gcc2 internal prototype to avoid an error.  */
28608 #ifdef __cplusplus
28609 extern "C"
28610 #endif
28611 /* We use char because int might match the return type of a gcc2
28612    builtin and then its argument prototype would still apply.  */
28613 char gettext ();
28614 int
28615 main ()
28616 {
28617 gettext ();
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 rm -f conftest.$ac_objext conftest$ac_exeext
28623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28624   (eval $ac_link) 2>conftest.er1
28625   ac_status=$?
28626   grep -v '^ *+' conftest.er1 >conftest.err
28627   rm -f conftest.er1
28628   cat conftest.err >&5
28629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28630   (exit $ac_status); } &&
28631          { ac_try='test -z "$ac_c_werror_flag"
28632                          || test ! -s conftest.err'
28633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28634   (eval $ac_try) 2>&5
28635   ac_status=$?
28636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); }; } &&
28638          { ac_try='test -s conftest$ac_exeext'
28639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28640   (eval $ac_try) 2>&5
28641   ac_status=$?
28642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28643   (exit $ac_status); }; }; then
28644   ac_cv_lib_intl_gettext=yes
28645 else
28646   echo "$as_me: failed program was:" >&5
28647 sed 's/^/| /' conftest.$ac_ext >&5
28648
28649 ac_cv_lib_intl_gettext=no
28650 fi
28651 rm -f conftest.err conftest.$ac_objext \
28652       conftest$ac_exeext conftest.$ac_ext
28653 LIBS=$ac_check_lib_save_LIBS
28654 fi
28655 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28656 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
28657 if test $ac_cv_lib_intl_gettext = yes; then
28658   LIBS="$LIBS -lintl"
28659 fi
28660
28661
28662
28663
28664 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28665 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
28666 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28667   echo $ECHO_N "(cached) $ECHO_C" >&6
28668 else
28669   ac_check_lib_save_LIBS=$LIBS
28670 LIBS="-lsun  $LIBS"
28671 cat >conftest.$ac_ext <<_ACEOF
28672 /* confdefs.h.  */
28673 _ACEOF
28674 cat confdefs.h >>conftest.$ac_ext
28675 cat >>conftest.$ac_ext <<_ACEOF
28676 /* end confdefs.h.  */
28677
28678 /* Override any gcc2 internal prototype to avoid an error.  */
28679 #ifdef __cplusplus
28680 extern "C"
28681 #endif
28682 /* We use char because int might match the return type of a gcc2
28683    builtin and then its argument prototype would still apply.  */
28684 char getpwnam ();
28685 int
28686 main ()
28687 {
28688 getpwnam ();
28689   ;
28690   return 0;
28691 }
28692 _ACEOF
28693 rm -f conftest.$ac_objext conftest$ac_exeext
28694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28695   (eval $ac_link) 2>conftest.er1
28696   ac_status=$?
28697   grep -v '^ *+' conftest.er1 >conftest.err
28698   rm -f conftest.er1
28699   cat conftest.err >&5
28700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28701   (exit $ac_status); } &&
28702          { ac_try='test -z "$ac_c_werror_flag"
28703                          || test ! -s conftest.err'
28704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705   (eval $ac_try) 2>&5
28706   ac_status=$?
28707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708   (exit $ac_status); }; } &&
28709          { ac_try='test -s conftest$ac_exeext'
28710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711   (eval $ac_try) 2>&5
28712   ac_status=$?
28713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714   (exit $ac_status); }; }; then
28715   ac_cv_lib_sun_getpwnam=yes
28716 else
28717   echo "$as_me: failed program was:" >&5
28718 sed 's/^/| /' conftest.$ac_ext >&5
28719
28720 ac_cv_lib_sun_getpwnam=no
28721 fi
28722 rm -f conftest.err conftest.$ac_objext \
28723       conftest$ac_exeext conftest.$ac_ext
28724 LIBS=$ac_check_lib_save_LIBS
28725 fi
28726 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28727 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
28728 if test $ac_cv_lib_sun_getpwnam = yes; then
28729   cat >>confdefs.h <<_ACEOF
28730 #define HAVE_LIBSUN 1
28731 _ACEOF
28732
28733   LIBS="-lsun $LIBS"
28734
28735 fi
28736
28737
28738
28739 for ac_header in zlib.h
28740 do
28741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28742 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28743   echo "$as_me:$LINENO: checking for $ac_header" >&5
28744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28746   echo $ECHO_N "(cached) $ECHO_C" >&6
28747 fi
28748 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28749 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28750 else
28751   # Is the header compilable?
28752 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28754 cat >conftest.$ac_ext <<_ACEOF
28755 /* confdefs.h.  */
28756 _ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h.  */
28760 $ac_includes_default
28761 #include <$ac_header>
28762 _ACEOF
28763 rm -f conftest.$ac_objext
28764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28765   (eval $ac_compile) 2>conftest.er1
28766   ac_status=$?
28767   grep -v '^ *+' conftest.er1 >conftest.err
28768   rm -f conftest.er1
28769   cat conftest.err >&5
28770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771   (exit $ac_status); } &&
28772          { ac_try='test -z "$ac_c_werror_flag"
28773                          || test ! -s conftest.err'
28774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775   (eval $ac_try) 2>&5
28776   ac_status=$?
28777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778   (exit $ac_status); }; } &&
28779          { ac_try='test -s conftest.$ac_objext'
28780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28781   (eval $ac_try) 2>&5
28782   ac_status=$?
28783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28784   (exit $ac_status); }; }; then
28785   ac_header_compiler=yes
28786 else
28787   echo "$as_me: failed program was:" >&5
28788 sed 's/^/| /' conftest.$ac_ext >&5
28789
28790 ac_header_compiler=no
28791 fi
28792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28793 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28794 echo "${ECHO_T}$ac_header_compiler" >&6
28795
28796 # Is the header present?
28797 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28798 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28799 cat >conftest.$ac_ext <<_ACEOF
28800 /* confdefs.h.  */
28801 _ACEOF
28802 cat confdefs.h >>conftest.$ac_ext
28803 cat >>conftest.$ac_ext <<_ACEOF
28804 /* end confdefs.h.  */
28805 #include <$ac_header>
28806 _ACEOF
28807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28809   ac_status=$?
28810   grep -v '^ *+' conftest.er1 >conftest.err
28811   rm -f conftest.er1
28812   cat conftest.err >&5
28813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28814   (exit $ac_status); } >/dev/null; then
28815   if test -s conftest.err; then
28816     ac_cpp_err=$ac_c_preproc_warn_flag
28817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28818   else
28819     ac_cpp_err=
28820   fi
28821 else
28822   ac_cpp_err=yes
28823 fi
28824 if test -z "$ac_cpp_err"; then
28825   ac_header_preproc=yes
28826 else
28827   echo "$as_me: failed program was:" >&5
28828 sed 's/^/| /' conftest.$ac_ext >&5
28829
28830   ac_header_preproc=no
28831 fi
28832 rm -f conftest.err conftest.$ac_ext
28833 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28834 echo "${ECHO_T}$ac_header_preproc" >&6
28835
28836 # So?  What about this header?
28837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28838   yes:no: )
28839     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28841     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28843     ac_header_preproc=yes
28844     ;;
28845   no:yes:* )
28846     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28848     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28849 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28850     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28852     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28853 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28854     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28856     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28858     (
28859       cat <<\_ASBOX
28860 ## ------------------------------------------ ##
28861 ## Report this to the AC_PACKAGE_NAME lists.  ##
28862 ## ------------------------------------------ ##
28863 _ASBOX
28864     ) |
28865       sed "s/^/$as_me: WARNING:     /" >&2
28866     ;;
28867 esac
28868 echo "$as_me:$LINENO: checking for $ac_header" >&5
28869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28871   echo $ECHO_N "(cached) $ECHO_C" >&6
28872 else
28873   eval "$as_ac_Header=\$ac_header_preproc"
28874 fi
28875 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28876 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28877
28878 fi
28879 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28880   cat >>confdefs.h <<_ACEOF
28881 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28882 _ACEOF
28883
28884 fi
28885
28886 done
28887
28888 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28889 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
28890 if test "${ac_cv_lib_z_deflate+set}" = set; then
28891   echo $ECHO_N "(cached) $ECHO_C" >&6
28892 else
28893   ac_check_lib_save_LIBS=$LIBS
28894 LIBS="-lz  $LIBS"
28895 cat >conftest.$ac_ext <<_ACEOF
28896 /* confdefs.h.  */
28897 _ACEOF
28898 cat confdefs.h >>conftest.$ac_ext
28899 cat >>conftest.$ac_ext <<_ACEOF
28900 /* end confdefs.h.  */
28901
28902 /* Override any gcc2 internal prototype to avoid an error.  */
28903 #ifdef __cplusplus
28904 extern "C"
28905 #endif
28906 /* We use char because int might match the return type of a gcc2
28907    builtin and then its argument prototype would still apply.  */
28908 char deflate ();
28909 int
28910 main ()
28911 {
28912 deflate ();
28913   ;
28914   return 0;
28915 }
28916 _ACEOF
28917 rm -f conftest.$ac_objext conftest$ac_exeext
28918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28919   (eval $ac_link) 2>conftest.er1
28920   ac_status=$?
28921   grep -v '^ *+' conftest.er1 >conftest.err
28922   rm -f conftest.er1
28923   cat conftest.err >&5
28924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925   (exit $ac_status); } &&
28926          { ac_try='test -z "$ac_c_werror_flag"
28927                          || test ! -s conftest.err'
28928   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28929   (eval $ac_try) 2>&5
28930   ac_status=$?
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); }; } &&
28933          { ac_try='test -s conftest$ac_exeext'
28934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28935   (eval $ac_try) 2>&5
28936   ac_status=$?
28937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28938   (exit $ac_status); }; }; then
28939   ac_cv_lib_z_deflate=yes
28940 else
28941   echo "$as_me: failed program was:" >&5
28942 sed 's/^/| /' conftest.$ac_ext >&5
28943
28944 ac_cv_lib_z_deflate=no
28945 fi
28946 rm -f conftest.err conftest.$ac_objext \
28947       conftest$ac_exeext conftest.$ac_ext
28948 LIBS=$ac_check_lib_save_LIBS
28949 fi
28950 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28951 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
28952 if test $ac_cv_lib_z_deflate = yes; then
28953   FDLIBS="-lz"
28954 fi
28955
28956 have_zlib=no
28957 if test x$FDLIBS = x-lz; then
28958   cat >>confdefs.h <<\_ACEOF
28959 #define HAVE_LIBZ 1
28960 _ACEOF
28961
28962   have_zlib=yes
28963 fi
28964
28965 #
28966 # Check for ACL libraries
28967 #
28968 have_acl=no
28969 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28970   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28971 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
28972 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28973   echo $ECHO_N "(cached) $ECHO_C" >&6
28974 fi
28975 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28976 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
28977 else
28978   # Is the header compilable?
28979 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28980 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
28981 cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987 $ac_includes_default
28988 #include <sys/acl.h>
28989 _ACEOF
28990 rm -f conftest.$ac_objext
28991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28992   (eval $ac_compile) 2>conftest.er1
28993   ac_status=$?
28994   grep -v '^ *+' conftest.er1 >conftest.err
28995   rm -f conftest.er1
28996   cat conftest.err >&5
28997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998   (exit $ac_status); } &&
28999          { ac_try='test -z "$ac_c_werror_flag"
29000                          || test ! -s conftest.err'
29001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29002   (eval $ac_try) 2>&5
29003   ac_status=$?
29004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29005   (exit $ac_status); }; } &&
29006          { ac_try='test -s conftest.$ac_objext'
29007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29008   (eval $ac_try) 2>&5
29009   ac_status=$?
29010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29011   (exit $ac_status); }; }; then
29012   ac_header_compiler=yes
29013 else
29014   echo "$as_me: failed program was:" >&5
29015 sed 's/^/| /' conftest.$ac_ext >&5
29016
29017 ac_header_compiler=no
29018 fi
29019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29020 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29021 echo "${ECHO_T}$ac_header_compiler" >&6
29022
29023 # Is the header present?
29024 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29025 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29026 cat >conftest.$ac_ext <<_ACEOF
29027 /* confdefs.h.  */
29028 _ACEOF
29029 cat confdefs.h >>conftest.$ac_ext
29030 cat >>conftest.$ac_ext <<_ACEOF
29031 /* end confdefs.h.  */
29032 #include <sys/acl.h>
29033 _ACEOF
29034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29036   ac_status=$?
29037   grep -v '^ *+' conftest.er1 >conftest.err
29038   rm -f conftest.er1
29039   cat conftest.err >&5
29040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29041   (exit $ac_status); } >/dev/null; then
29042   if test -s conftest.err; then
29043     ac_cpp_err=$ac_c_preproc_warn_flag
29044     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29045   else
29046     ac_cpp_err=
29047   fi
29048 else
29049   ac_cpp_err=yes
29050 fi
29051 if test -z "$ac_cpp_err"; then
29052   ac_header_preproc=yes
29053 else
29054   echo "$as_me: failed program was:" >&5
29055 sed 's/^/| /' conftest.$ac_ext >&5
29056
29057   ac_header_preproc=no
29058 fi
29059 rm -f conftest.err conftest.$ac_ext
29060 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29061 echo "${ECHO_T}$ac_header_preproc" >&6
29062
29063 # So?  What about this header?
29064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29065   yes:no: )
29066     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29067 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29068     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29069 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29070     ac_header_preproc=yes
29071     ;;
29072   no:yes:* )
29073     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29074 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29075     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29076 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29077     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29078 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29079     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29080 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29081     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29082 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29083     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29084 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29085     (
29086       cat <<\_ASBOX
29087 ## ------------------------------------------ ##
29088 ## Report this to the AC_PACKAGE_NAME lists.  ##
29089 ## ------------------------------------------ ##
29090 _ASBOX
29091     ) |
29092       sed "s/^/$as_me: WARNING:     /" >&2
29093     ;;
29094 esac
29095 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29096 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29097 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29098   echo $ECHO_N "(cached) $ECHO_C" >&6
29099 else
29100   ac_cv_header_sys_acl_h=$ac_header_preproc
29101 fi
29102 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29103 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29104
29105 fi
29106
29107
29108 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29109 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29110 if test "${ac_cv_func_acl_get_file+set}" = set; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113   cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h.  */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h.  */
29119 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29120    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29121 #define acl_get_file innocuous_acl_get_file
29122
29123 /* System header to define __stub macros and hopefully few prototypes,
29124     which can conflict with char acl_get_file (); below.
29125     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29126     <limits.h> exists even on freestanding compilers.  */
29127
29128 #ifdef __STDC__
29129 # include <limits.h>
29130 #else
29131 # include <assert.h>
29132 #endif
29133
29134 #undef acl_get_file
29135
29136 /* Override any gcc2 internal prototype to avoid an error.  */
29137 #ifdef __cplusplus
29138 extern "C"
29139 {
29140 #endif
29141 /* We use char because int might match the return type of a gcc2
29142    builtin and then its argument prototype would still apply.  */
29143 char acl_get_file ();
29144 /* The GNU C library defines this for functions which it implements
29145     to always fail with ENOSYS.  Some functions are actually named
29146     something starting with __ and the normal name is an alias.  */
29147 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29148 choke me
29149 #else
29150 char (*f) () = acl_get_file;
29151 #endif
29152 #ifdef __cplusplus
29153 }
29154 #endif
29155
29156 int
29157 main ()
29158 {
29159 return f != acl_get_file;
29160   ;
29161   return 0;
29162 }
29163 _ACEOF
29164 rm -f conftest.$ac_objext conftest$ac_exeext
29165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29166   (eval $ac_link) 2>conftest.er1
29167   ac_status=$?
29168   grep -v '^ *+' conftest.er1 >conftest.err
29169   rm -f conftest.er1
29170   cat conftest.err >&5
29171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29172   (exit $ac_status); } &&
29173          { ac_try='test -z "$ac_c_werror_flag"
29174                          || test ! -s conftest.err'
29175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29176   (eval $ac_try) 2>&5
29177   ac_status=$?
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); }; } &&
29180          { ac_try='test -s conftest$ac_exeext'
29181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29182   (eval $ac_try) 2>&5
29183   ac_status=$?
29184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185   (exit $ac_status); }; }; then
29186   ac_cv_func_acl_get_file=yes
29187 else
29188   echo "$as_me: failed program was:" >&5
29189 sed 's/^/| /' conftest.$ac_ext >&5
29190
29191 ac_cv_func_acl_get_file=no
29192 fi
29193 rm -f conftest.err conftest.$ac_objext \
29194       conftest$ac_exeext conftest.$ac_ext
29195 fi
29196 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29197 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29198 if test $ac_cv_func_acl_get_file = yes; then
29199   have_acl=yes
29200 else
29201   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29202 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29203 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29204   echo $ECHO_N "(cached) $ECHO_C" >&6
29205 else
29206   ac_check_lib_save_LIBS=$LIBS
29207 LIBS="-lacl  $LIBS"
29208 cat >conftest.$ac_ext <<_ACEOF
29209 /* confdefs.h.  */
29210 _ACEOF
29211 cat confdefs.h >>conftest.$ac_ext
29212 cat >>conftest.$ac_ext <<_ACEOF
29213 /* end confdefs.h.  */
29214
29215 /* Override any gcc2 internal prototype to avoid an error.  */
29216 #ifdef __cplusplus
29217 extern "C"
29218 #endif
29219 /* We use char because int might match the return type of a gcc2
29220    builtin and then its argument prototype would still apply.  */
29221 char acl_get_file ();
29222 int
29223 main ()
29224 {
29225 acl_get_file ();
29226   ;
29227   return 0;
29228 }
29229 _ACEOF
29230 rm -f conftest.$ac_objext conftest$ac_exeext
29231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29232   (eval $ac_link) 2>conftest.er1
29233   ac_status=$?
29234   grep -v '^ *+' conftest.er1 >conftest.err
29235   rm -f conftest.er1
29236   cat conftest.err >&5
29237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29238   (exit $ac_status); } &&
29239          { ac_try='test -z "$ac_c_werror_flag"
29240                          || test ! -s conftest.err'
29241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29242   (eval $ac_try) 2>&5
29243   ac_status=$?
29244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29245   (exit $ac_status); }; } &&
29246          { ac_try='test -s conftest$ac_exeext'
29247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29248   (eval $ac_try) 2>&5
29249   ac_status=$?
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); }; }; then
29252   ac_cv_lib_acl_acl_get_file=yes
29253 else
29254   echo "$as_me: failed program was:" >&5
29255 sed 's/^/| /' conftest.$ac_ext >&5
29256
29257 ac_cv_lib_acl_acl_get_file=no
29258 fi
29259 rm -f conftest.err conftest.$ac_objext \
29260       conftest$ac_exeext conftest.$ac_ext
29261 LIBS=$ac_check_lib_save_LIBS
29262 fi
29263 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29264 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29265 if test $ac_cv_lib_acl_acl_get_file = yes; then
29266   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29267 else
29268   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29269 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29270 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29271   echo $ECHO_N "(cached) $ECHO_C" >&6
29272 else
29273   ac_check_lib_save_LIBS=$LIBS
29274 LIBS="-lsec  $LIBS"
29275 cat >conftest.$ac_ext <<_ACEOF
29276 /* confdefs.h.  */
29277 _ACEOF
29278 cat confdefs.h >>conftest.$ac_ext
29279 cat >>conftest.$ac_ext <<_ACEOF
29280 /* end confdefs.h.  */
29281
29282 /* Override any gcc2 internal prototype to avoid an error.  */
29283 #ifdef __cplusplus
29284 extern "C"
29285 #endif
29286 /* We use char because int might match the return type of a gcc2
29287    builtin and then its argument prototype would still apply.  */
29288 char acltotext ();
29289 int
29290 main ()
29291 {
29292 acltotext ();
29293   ;
29294   return 0;
29295 }
29296 _ACEOF
29297 rm -f conftest.$ac_objext conftest$ac_exeext
29298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29299   (eval $ac_link) 2>conftest.er1
29300   ac_status=$?
29301   grep -v '^ *+' conftest.er1 >conftest.err
29302   rm -f conftest.er1
29303   cat conftest.err >&5
29304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305   (exit $ac_status); } &&
29306          { ac_try='test -z "$ac_c_werror_flag"
29307                          || test ! -s conftest.err'
29308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29309   (eval $ac_try) 2>&5
29310   ac_status=$?
29311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29312   (exit $ac_status); }; } &&
29313          { ac_try='test -s conftest$ac_exeext'
29314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29315   (eval $ac_try) 2>&5
29316   ac_status=$?
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); }; }; then
29319   ac_cv_lib_sec_acltotext=yes
29320 else
29321   echo "$as_me: failed program was:" >&5
29322 sed 's/^/| /' conftest.$ac_ext >&5
29323
29324 ac_cv_lib_sec_acltotext=no
29325 fi
29326 rm -f conftest.err conftest.$ac_objext \
29327       conftest$ac_exeext conftest.$ac_ext
29328 LIBS=$ac_check_lib_save_LIBS
29329 fi
29330 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29331 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29332 if test $ac_cv_lib_sec_acltotext = yes; then
29333   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29334 fi
29335
29336
29337 fi
29338
29339
29340 fi
29341
29342 if test $have_acl = yes; then
29343    cat >>confdefs.h <<\_ACEOF
29344 #define HAVE_ACL 1
29345 _ACEOF
29346
29347 fi
29348
29349 PTHREAD_LIB=""
29350 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29351 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29352 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29353   echo $ECHO_N "(cached) $ECHO_C" >&6
29354 else
29355   ac_check_lib_save_LIBS=$LIBS
29356 LIBS="-lpthread  $LIBS"
29357 cat >conftest.$ac_ext <<_ACEOF
29358 /* confdefs.h.  */
29359 _ACEOF
29360 cat confdefs.h >>conftest.$ac_ext
29361 cat >>conftest.$ac_ext <<_ACEOF
29362 /* end confdefs.h.  */
29363
29364 /* Override any gcc2 internal prototype to avoid an error.  */
29365 #ifdef __cplusplus
29366 extern "C"
29367 #endif
29368 /* We use char because int might match the return type of a gcc2
29369    builtin and then its argument prototype would still apply.  */
29370 char pthread_create ();
29371 int
29372 main ()
29373 {
29374 pthread_create ();
29375   ;
29376   return 0;
29377 }
29378 _ACEOF
29379 rm -f conftest.$ac_objext conftest$ac_exeext
29380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29381   (eval $ac_link) 2>conftest.er1
29382   ac_status=$?
29383   grep -v '^ *+' conftest.er1 >conftest.err
29384   rm -f conftest.er1
29385   cat conftest.err >&5
29386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387   (exit $ac_status); } &&
29388          { ac_try='test -z "$ac_c_werror_flag"
29389                          || test ! -s conftest.err'
29390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391   (eval $ac_try) 2>&5
29392   ac_status=$?
29393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394   (exit $ac_status); }; } &&
29395          { ac_try='test -s conftest$ac_exeext'
29396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397   (eval $ac_try) 2>&5
29398   ac_status=$?
29399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400   (exit $ac_status); }; }; then
29401   ac_cv_lib_pthread_pthread_create=yes
29402 else
29403   echo "$as_me: failed program was:" >&5
29404 sed 's/^/| /' conftest.$ac_ext >&5
29405
29406 ac_cv_lib_pthread_pthread_create=no
29407 fi
29408 rm -f conftest.err conftest.$ac_objext \
29409       conftest$ac_exeext conftest.$ac_ext
29410 LIBS=$ac_check_lib_save_LIBS
29411 fi
29412 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29413 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29414 if test $ac_cv_lib_pthread_pthread_create = yes; then
29415   PTHREAD_LIB="-lpthread"
29416 else
29417   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29418 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
29419 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29420   echo $ECHO_N "(cached) $ECHO_C" >&6
29421 else
29422   ac_check_lib_save_LIBS=$LIBS
29423 LIBS="-lpthreads  $LIBS"
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
29431 /* Override any gcc2 internal prototype to avoid an error.  */
29432 #ifdef __cplusplus
29433 extern "C"
29434 #endif
29435 /* We use char because int might match the return type of a gcc2
29436    builtin and then its argument prototype would still apply.  */
29437 char pthread_create ();
29438 int
29439 main ()
29440 {
29441 pthread_create ();
29442   ;
29443   return 0;
29444 }
29445 _ACEOF
29446 rm -f conftest.$ac_objext conftest$ac_exeext
29447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29448   (eval $ac_link) 2>conftest.er1
29449   ac_status=$?
29450   grep -v '^ *+' conftest.er1 >conftest.err
29451   rm -f conftest.er1
29452   cat conftest.err >&5
29453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454   (exit $ac_status); } &&
29455          { ac_try='test -z "$ac_c_werror_flag"
29456                          || test ! -s conftest.err'
29457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29458   (eval $ac_try) 2>&5
29459   ac_status=$?
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); }; } &&
29462          { ac_try='test -s conftest$ac_exeext'
29463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29464   (eval $ac_try) 2>&5
29465   ac_status=$?
29466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29467   (exit $ac_status); }; }; then
29468   ac_cv_lib_pthreads_pthread_create=yes
29469 else
29470   echo "$as_me: failed program was:" >&5
29471 sed 's/^/| /' conftest.$ac_ext >&5
29472
29473 ac_cv_lib_pthreads_pthread_create=no
29474 fi
29475 rm -f conftest.err conftest.$ac_objext \
29476       conftest$ac_exeext conftest.$ac_ext
29477 LIBS=$ac_check_lib_save_LIBS
29478 fi
29479 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29480 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
29481 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29482   PTHREAD_LIB="-lpthreads"
29483 else
29484   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29485 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
29486 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29487   echo $ECHO_N "(cached) $ECHO_C" >&6
29488 else
29489   ac_check_lib_save_LIBS=$LIBS
29490 LIBS="-lc_r  $LIBS"
29491 cat >conftest.$ac_ext <<_ACEOF
29492 /* confdefs.h.  */
29493 _ACEOF
29494 cat confdefs.h >>conftest.$ac_ext
29495 cat >>conftest.$ac_ext <<_ACEOF
29496 /* end confdefs.h.  */
29497
29498 /* Override any gcc2 internal prototype to avoid an error.  */
29499 #ifdef __cplusplus
29500 extern "C"
29501 #endif
29502 /* We use char because int might match the return type of a gcc2
29503    builtin and then its argument prototype would still apply.  */
29504 char pthread_create ();
29505 int
29506 main ()
29507 {
29508 pthread_create ();
29509   ;
29510   return 0;
29511 }
29512 _ACEOF
29513 rm -f conftest.$ac_objext conftest$ac_exeext
29514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29515   (eval $ac_link) 2>conftest.er1
29516   ac_status=$?
29517   grep -v '^ *+' conftest.er1 >conftest.err
29518   rm -f conftest.er1
29519   cat conftest.err >&5
29520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521   (exit $ac_status); } &&
29522          { ac_try='test -z "$ac_c_werror_flag"
29523                          || test ! -s conftest.err'
29524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29525   (eval $ac_try) 2>&5
29526   ac_status=$?
29527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29528   (exit $ac_status); }; } &&
29529          { ac_try='test -s conftest$ac_exeext'
29530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29531   (eval $ac_try) 2>&5
29532   ac_status=$?
29533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534   (exit $ac_status); }; }; then
29535   ac_cv_lib_c_r_pthread_create=yes
29536 else
29537   echo "$as_me: failed program was:" >&5
29538 sed 's/^/| /' conftest.$ac_ext >&5
29539
29540 ac_cv_lib_c_r_pthread_create=no
29541 fi
29542 rm -f conftest.err conftest.$ac_objext \
29543       conftest$ac_exeext conftest.$ac_ext
29544 LIBS=$ac_check_lib_save_LIBS
29545 fi
29546 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29547 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
29548 if test $ac_cv_lib_c_r_pthread_create = yes; then
29549   PTHREAD_LIB="-lc_r"
29550 else
29551   echo "$as_me:$LINENO: checking for pthread_create" >&5
29552 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
29553 if test "${ac_cv_func_pthread_create+set}" = set; then
29554   echo $ECHO_N "(cached) $ECHO_C" >&6
29555 else
29556   cat >conftest.$ac_ext <<_ACEOF
29557 /* confdefs.h.  */
29558 _ACEOF
29559 cat confdefs.h >>conftest.$ac_ext
29560 cat >>conftest.$ac_ext <<_ACEOF
29561 /* end confdefs.h.  */
29562 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29563    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29564 #define pthread_create innocuous_pthread_create
29565
29566 /* System header to define __stub macros and hopefully few prototypes,
29567     which can conflict with char pthread_create (); below.
29568     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29569     <limits.h> exists even on freestanding compilers.  */
29570
29571 #ifdef __STDC__
29572 # include <limits.h>
29573 #else
29574 # include <assert.h>
29575 #endif
29576
29577 #undef pthread_create
29578
29579 /* Override any gcc2 internal prototype to avoid an error.  */
29580 #ifdef __cplusplus
29581 extern "C"
29582 {
29583 #endif
29584 /* We use char because int might match the return type of a gcc2
29585    builtin and then its argument prototype would still apply.  */
29586 char pthread_create ();
29587 /* The GNU C library defines this for functions which it implements
29588     to always fail with ENOSYS.  Some functions are actually named
29589     something starting with __ and the normal name is an alias.  */
29590 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
29591 choke me
29592 #else
29593 char (*f) () = pthread_create;
29594 #endif
29595 #ifdef __cplusplus
29596 }
29597 #endif
29598
29599 int
29600 main ()
29601 {
29602 return f != pthread_create;
29603   ;
29604   return 0;
29605 }
29606 _ACEOF
29607 rm -f conftest.$ac_objext conftest$ac_exeext
29608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29609   (eval $ac_link) 2>conftest.er1
29610   ac_status=$?
29611   grep -v '^ *+' conftest.er1 >conftest.err
29612   rm -f conftest.er1
29613   cat conftest.err >&5
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); } &&
29616          { ac_try='test -z "$ac_c_werror_flag"
29617                          || test ! -s conftest.err'
29618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29619   (eval $ac_try) 2>&5
29620   ac_status=$?
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); }; } &&
29623          { ac_try='test -s conftest$ac_exeext'
29624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29625   (eval $ac_try) 2>&5
29626   ac_status=$?
29627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29628   (exit $ac_status); }; }; then
29629   ac_cv_func_pthread_create=yes
29630 else
29631   echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633
29634 ac_cv_func_pthread_create=no
29635 fi
29636 rm -f conftest.err conftest.$ac_objext \
29637       conftest$ac_exeext conftest.$ac_ext
29638 fi
29639 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29640 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
29641
29642
29643 fi
29644
29645
29646 fi
29647
29648
29649 fi
29650
29651
29652
29653 cat >>confdefs.h <<\_ACEOF
29654 #define FDLIBS 1
29655 _ACEOF
29656
29657
29658
29659 CFLAGS=${CFLAGS--O}
29660
29661 if test x$have_gcc = xyes ; then
29662    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29663    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29664 fi
29665 LDFLAGS=${LDFLAGS--O}
29666 DB_LIBS="${SQL_LFLAGS}"
29667 CPPFLAGS="$CPPFLAGS"
29668 CFLAGS="$CFLAGS"
29669
29670
29671
29672
29673
29674
29675
29676
29677
29678
29679
29680
29681
29682
29683
29684
29685 OBJLIST=
29686
29687
29688 lld="lld"
29689 llu="llu"
29690
29691 WCFLAGS=
29692 WLDFLAGS=
29693
29694 #
29695 # Finally we set appropriate distribution specific
29696 #  variables and defaults
29697 #
29698 # PFILES are platform specific files
29699 PFILES="platforms/Makefile"
29700 PSCMD="ps -e"
29701 WIN32=
29702 MACOSX=
29703 hostname=`uname -n | cut -d '.' -f 1`
29704 if test x${hostname} = x ; then
29705   hostname="localhost"
29706 fi
29707 case "$DISTNAME" in
29708 aix)
29709         DISTVER=`uname -r`
29710         PSCMD="ps -e -o pid,comm"
29711         PFILES="${PFILES} \
29712            platforms/aix/Makefile"
29713         TAPEDRIVE="/dev/rmt0.1"
29714   ;;
29715 alpha)
29716         DISTVER=`uname -r`
29717         PTHREAD_LIB="-lpthread -lexc"
29718         if test "${CC}" = "gcc" ; then
29719            lld="lld"
29720            llu="llu"
29721         else
29722            lld="ld"
29723            llu="lu"
29724         fi
29725         TAPEDRIVE="/dev/nrmt0"
29726   ;;
29727 bsdi)
29728         DISTVER=`uname -a |awk '{print $3}'`
29729         TAPEDRIVE="/dev/nrmt0"
29730         PTHREAD_LIB="-pthread"
29731         CFLAGS="${CFLAGS} -pthread"
29732         PSCMD="ps -ax -o pid,command"
29733         lld="qd"
29734         llu="qu"
29735         PFILES="${PFILES} \
29736             platforms/bsdi/Makefile \
29737             platforms/bsdi/bacula-fd \
29738             platforms/bsdi/bacula-sd \
29739             platforms/bsdi/bacula-dir"
29740         largefile_support="yes"
29741   ;;
29742 cygwin)
29743         DISTVER=`uname -a |awk '{print $3}'`
29744         TAPEDRIVE="/dev/nrst0"
29745         WIN32=win32
29746         WCFLAGS="-mwindows"
29747         WLDFLAGS="-mwindows"
29748   ;;
29749 darwin)
29750         DISTVER=`uname -r`
29751         TAPEDRIVE="/dev/nst0"
29752         PSCMD="ps -e -o pid,command"
29753         MACOSX=macosx
29754         PFILES="${PFILES} \
29755            platforms/darwin/Makefile"
29756   ;;
29757 debian)
29758         DISTVER=`cat /etc/debian_version`
29759         TAPEDRIVE="/dev/nrst0"
29760         PSCMD="ps -e -o pid,command"
29761   ;;
29762 freebsd)
29763         DISTVER=`uname -a |awk '{print $3}'`
29764         VER=`echo $DISTVER | cut -c 1`
29765         if test x$VER = x4 ; then
29766            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29767            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29768         fi
29769         lld="qd"
29770         llu="qu"
29771         TAPEDRIVE="/dev/nrsa0"
29772         PSCMD="ps -ax -o pid,command"
29773         PFILES="${PFILES} \
29774             platforms/freebsd/Makefile \
29775             platforms/freebsd/bacula-fd \
29776             platforms/freebsd/bacula-sd \
29777             platforms/freebsd/bacula-dir"
29778         largefile_support="yes"
29779   ;;
29780 hpux)
29781         PSCMD="UNIX95=1 ps -e -o pid,comm"
29782         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29783         DISTVER=`uname -r`
29784         TAPEDRIVE="/dev/rmt/0hnb"
29785         PTHREAD_LIB="-lpthread"
29786         cat >>confdefs.h <<\_ACEOF
29787 #define _INCLUDE_LONGLONG 1
29788 _ACEOF
29789
29790   ;;
29791 irix)
29792         DISTVER=`uname -r`
29793         TAPEDRIVE="/dev/rmt/0cbn"
29794         PSCMD="ps -e -o pid,comm"
29795         PFILES="${PFILES} \
29796             platforms/irix/Makefile \
29797             platforms/irix/bacula-fd \
29798             platforms/irix/bacula-sd \
29799             platforms/irix/bacula-dir"
29800   ;;
29801 netbsd)
29802         DISTVER=`uname -a |awk '{print $3}'`
29803         lld="qd"
29804         llu="qu"
29805         TAPEDRIVE="/dev/nrst0"
29806         PSCMD="ps -ax -o pid,command"
29807         PTHREAD_LIB="-pthread"
29808         CFLAGS="${CFLAGS} -pthread"
29809   ;;
29810 openbsd)
29811         DISTVER=`uname -a |awk '{print $3}'`
29812         lld="qd"
29813         llu="qu"
29814         TAPEDRIVE="/dev/nrst0"
29815         PSCMD="ps -ax -o pid,command"
29816         PTHREAD_LIB="-pthread"
29817         CFLAGS="${CFLAGS} -pthread"
29818         PFILES="${PFILES} \
29819             platforms/openbsd/Makefile \
29820             platforms/openbsd/bacula-fd \
29821             platforms/openbsd/bacula-sd \
29822             platforms/openbsd/bacula-dir"
29823   ;;
29824 redhat)
29825         if test -f /etc/whitebox-release ; then
29826            f=/etc/whitebox-release
29827         else
29828            f=/etc/redhat-release
29829         fi
29830         if test `cat $f | grep release |\
29831                    cut -f 3 -d ' '`x = "Enterprise"x ; then
29832            DISTVER="Enterprise "`cat $f | grep release |\
29833                     cut -f 6 -d ' '`
29834         else
29835             DISTVER=`cat /etc/redhat-release | grep release |\
29836                      cut -f 5 -d ' '`
29837         fi
29838         TAPEDRIVE="/dev/nst0"
29839         PSCMD="ps -e -o pid,command"
29840         PFILES="${PFILES} \
29841             platforms/redhat/Makefile \
29842             platforms/redhat/bacula-fd \
29843             platforms/redhat/bacula-sd \
29844             platforms/redhat/bacula-dir \
29845             platforms/redhat/bacula.spec \
29846             "
29847   ;;
29848 mandrake)
29849         DISTVER=`cat /etc/mandrake-release | grep release |\
29850            cut -f 5 -d ' '`
29851         TAPEDRIVE="/dev/nst0"
29852         PSCMD="ps -e -o pid,command"
29853         PFILES="${PFILES} \
29854             platforms/mandrake/Makefile \
29855             platforms/mandrake/bacula-fd \
29856             platforms/mandrake/bacula-sd \
29857             platforms/mandrake/bacula-dir \
29858             platforms/mandrake/bacula.spec \
29859             "
29860   ;;
29861 gentoo)
29862         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29863         TAPEDRIVE="/dev/nst0"
29864         PSCMD="ps -e -o pid,command"
29865         PFILES="${PFILES} \
29866             platforms/gentoo/Makefile \
29867          platforms/gentoo/bacula-init \
29868             platforms/gentoo/bacula-fd \
29869             platforms/gentoo/bacula-sd \
29870             platforms/gentoo/bacula-dir"
29871   ;;
29872 slackware)
29873         DISTVER=`cat /etc/slackware-version`
29874         TAPEDRIVE="/dev/nst0"
29875         PSCMD="ps -e -o pid,command"
29876         PFILES="${PFILES} \
29877             platforms/slackware/Makefile \
29878             platforms/slackware/rc.bacula-fd \
29879             platforms/slackware/rc.bacula-sd \
29880             platforms/slackware/rc.bacula-dir\
29881             platforms/slackware/functions.bacula"
29882   ;;
29883 solaris)
29884         DISTVER=`uname -r`
29885         TAPEDRIVE="/dev/rmt/0cbn"
29886         PSCMD="ps -e -o pid,comm"
29887         PFILES="${PFILES} \
29888             platforms/solaris/Makefile \
29889             platforms/solaris/bacula-fd \
29890             platforms/solaris/bacula-sd \
29891             platforms/solaris/bacula-dir"
29892         if test x$DISTVER = x5.6 ; then
29893             cat >>confdefs.h <<\_ACEOF
29894 #define HAVE_OLD_SOCKOPT 1
29895 _ACEOF
29896
29897         fi
29898         LIBS="$LIBS -lresolv"
29899   ;;
29900 suse)
29901         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29902             cut -f 3 -d ' '`
29903         TAPEDRIVE="/dev/nst0"
29904         PSCMD="ps -e -o pid,command"
29905         PFILES="${PFILES} \
29906             platforms/suse/Makefile \
29907             platforms/suse/bacula-fd \
29908             platforms/suse/bacula-sd \
29909             platforms/suse/bacula-dir \
29910             platforms/suse/bacula \
29911             platforms/suse/bacula.spec"
29912   ;;
29913 suse5)
29914         DISTNAME=suse
29915         DISTVER=5.x
29916         TAPEDRIVE="/dev/nst0"
29917         PSCMD="ps -e -o pid,command"
29918         PFILES="${PFILES} \
29919             platforms/suse/Makefile \
29920             platforms/suse/bacula-fd \
29921             platforms/suse/bacula-sd \
29922             platforms/suse/bacula-dir"
29923   ;;
29924 unknown)
29925         DISTVER=unknown
29926         TAPEDRIVE="/dev/nst0"
29927   ;;
29928 *)
29929   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29930   ;;
29931 esac
29932
29933
29934
29935 LIBS="$PTHREAD_LIB $LIBS"
29936
29937 cat >>confdefs.h <<_ACEOF
29938 #define lld "$lld"
29939 _ACEOF
29940
29941 cat >>confdefs.h <<_ACEOF
29942 #define llu "$llu"
29943 _ACEOF
29944
29945
29946
29947
29948
29949
29950
29951
29952 MCOMMON=./autoconf/Make.common
29953
29954
29955 if test "x${subsysdir}" = "x${sbindir}" ; then
29956    echo " "
29957    echo " "
29958    echo "You have set both --sbindir and --with-subsys-dir"
29959    echo "  equal to: ${subsysdir} "
29960    echo "This is not permitted. Please reconfigure."
29961    echo " "
29962    echo "Aborting configuration ..."
29963    echo " "
29964    echo " "
29965    exit 1
29966 fi
29967
29968                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           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/gnome-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 src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/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/pygtk-console/Makefile src/tools/Makefile po/Makefile.in $PFILES"
29969           ac_config_commands="$ac_config_commands default"
29970 cat >confcache <<\_ACEOF
29971 # This file is a shell script that caches the results of configure
29972 # tests run on this system so they can be shared between configure
29973 # scripts and configure runs, see configure's option --config-cache.
29974 # It is not useful on other systems.  If it contains results you don't
29975 # want to keep, you may remove or edit it.
29976 #
29977 # config.status only pays attention to the cache file if you give it
29978 # the --recheck option to rerun configure.
29979 #
29980 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29981 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29982 # following values.
29983
29984 _ACEOF
29985
29986 # The following way of writing the cache mishandles newlines in values,
29987 # but we know of no workaround that is simple, portable, and efficient.
29988 # So, don't put newlines in cache variables' values.
29989 # Ultrix sh set writes to stderr and can't be redirected directly,
29990 # and sets the high bit in the cache file unless we assign to the vars.
29991 {
29992   (set) 2>&1 |
29993     case `(ac_space=' '; set | grep ac_space) 2>&1` in
29994     *ac_space=\ *)
29995       # `set' does not quote correctly, so add quotes (double-quote
29996       # substitution turns \\\\ into \\, and sed turns \\ into \).
29997       sed -n \
29998         "s/'/'\\\\''/g;
29999           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30000       ;;
30001     *)
30002       # `set' quotes correctly as required by POSIX, so do not add quotes.
30003       sed -n \
30004         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30005       ;;
30006     esac;
30007 } |
30008   sed '
30009      t clear
30010      : clear
30011      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30012      t end
30013      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30014      : end' >>confcache
30015 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30016   if test -w $cache_file; then
30017     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30018     cat confcache >$cache_file
30019   else
30020     echo "not updating unwritable cache $cache_file"
30021   fi
30022 fi
30023 rm -f confcache
30024
30025 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30026 # Let make expand exec_prefix.
30027 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30028
30029 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30030 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30031 # trailing colons and then remove the whole line if VPATH becomes empty
30032 # (actually we leave an empty line to preserve line numbers).
30033 if test "x$srcdir" = x.; then
30034   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30035 s/:*\$(srcdir):*/:/;
30036 s/:*\${srcdir}:*/:/;
30037 s/:*@srcdir@:*/:/;
30038 s/^\([^=]*=[     ]*\):*/\1/;
30039 s/:*$//;
30040 s/^[^=]*=[       ]*$//;
30041 }'
30042 fi
30043
30044 DEFS=-DHAVE_CONFIG_H
30045
30046 ac_libobjs=
30047 ac_ltlibobjs=
30048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30049   # 1. Remove the extension, and $U if already installed.
30050   ac_i=`echo "$ac_i" |
30051          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30052   # 2. Add them.
30053   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30054   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30055 done
30056 LIBOBJS=$ac_libobjs
30057
30058 LTLIBOBJS=$ac_ltlibobjs
30059
30060
30061
30062 : ${CONFIG_STATUS=./config.status}
30063 ac_clean_files_save=$ac_clean_files
30064 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30065 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30066 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30067 cat >$CONFIG_STATUS <<_ACEOF
30068 #! $SHELL
30069 # Generated by $as_me.
30070 # Run this file to recreate the current configuration.
30071 # Compiler output produced by configure, useful for debugging
30072 # configure, is in config.log if it exists.
30073
30074 debug=false
30075 ac_cs_recheck=false
30076 ac_cs_silent=false
30077 SHELL=\${CONFIG_SHELL-$SHELL}
30078 _ACEOF
30079
30080 cat >>$CONFIG_STATUS <<\_ACEOF
30081 ## --------------------- ##
30082 ## M4sh Initialization.  ##
30083 ## --------------------- ##
30084
30085 # Be Bourne compatible
30086 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30087   emulate sh
30088   NULLCMD=:
30089   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30090   # is contrary to our usage.  Disable this feature.
30091   alias -g '${1+"$@"}'='"$@"'
30092 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30093   set -o posix
30094 fi
30095 DUALCASE=1; export DUALCASE # for MKS sh
30096
30097 # Support unset when possible.
30098 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30099   as_unset=unset
30100 else
30101   as_unset=false
30102 fi
30103
30104
30105 # Work around bugs in pre-3.0 UWIN ksh.
30106 $as_unset ENV MAIL MAILPATH
30107 PS1='$ '
30108 PS2='> '
30109 PS4='+ '
30110
30111 # NLS nuisances.
30112 for as_var in \
30113   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30114   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30115   LC_TELEPHONE LC_TIME
30116 do
30117   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30118     eval $as_var=C; export $as_var
30119   else
30120     $as_unset $as_var
30121   fi
30122 done
30123
30124 # Required to use basename.
30125 if expr a : '\(a\)' >/dev/null 2>&1; then
30126   as_expr=expr
30127 else
30128   as_expr=false
30129 fi
30130
30131 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30132   as_basename=basename
30133 else
30134   as_basename=false
30135 fi
30136
30137
30138 # Name of the executable.
30139 as_me=`$as_basename "$0" ||
30140 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30141          X"$0" : 'X\(//\)$' \| \
30142          X"$0" : 'X\(/\)$' \| \
30143          .     : '\(.\)' 2>/dev/null ||
30144 echo X/"$0" |
30145     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30146           /^X\/\(\/\/\)$/{ s//\1/; q; }
30147           /^X\/\(\/\).*/{ s//\1/; q; }
30148           s/.*/./; q'`
30149
30150
30151 # PATH needs CR, and LINENO needs CR and PATH.
30152 # Avoid depending upon Character Ranges.
30153 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30154 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30155 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30156 as_cr_digits='0123456789'
30157 as_cr_alnum=$as_cr_Letters$as_cr_digits
30158
30159 # The user is always right.
30160 if test "${PATH_SEPARATOR+set}" != set; then
30161   echo "#! /bin/sh" >conf$$.sh
30162   echo  "exit 0"   >>conf$$.sh
30163   chmod +x conf$$.sh
30164   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30165     PATH_SEPARATOR=';'
30166   else
30167     PATH_SEPARATOR=:
30168   fi
30169   rm -f conf$$.sh
30170 fi
30171
30172
30173   as_lineno_1=$LINENO
30174   as_lineno_2=$LINENO
30175   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30176   test "x$as_lineno_1" != "x$as_lineno_2" &&
30177   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30178   # Find who we are.  Look in the path if we contain no path at all
30179   # relative or not.
30180   case $0 in
30181     *[\\/]* ) as_myself=$0 ;;
30182     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30183 for as_dir in $PATH
30184 do
30185   IFS=$as_save_IFS
30186   test -z "$as_dir" && as_dir=.
30187   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30188 done
30189
30190        ;;
30191   esac
30192   # We did not find ourselves, most probably we were run as `sh COMMAND'
30193   # in which case we are not to be found in the path.
30194   if test "x$as_myself" = x; then
30195     as_myself=$0
30196   fi
30197   if test ! -f "$as_myself"; then
30198     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30199 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30200    { (exit 1); exit 1; }; }
30201   fi
30202   case $CONFIG_SHELL in
30203   '')
30204     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30206 do
30207   IFS=$as_save_IFS
30208   test -z "$as_dir" && as_dir=.
30209   for as_base in sh bash ksh sh5; do
30210          case $as_dir in
30211          /*)
30212            if ("$as_dir/$as_base" -c '
30213   as_lineno_1=$LINENO
30214   as_lineno_2=$LINENO
30215   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30216   test "x$as_lineno_1" != "x$as_lineno_2" &&
30217   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30218              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30219              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30220              CONFIG_SHELL=$as_dir/$as_base
30221              export CONFIG_SHELL
30222              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30223            fi;;
30224          esac
30225        done
30226 done
30227 ;;
30228   esac
30229
30230   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30231   # uniformly replaced by the line number.  The first 'sed' inserts a
30232   # line-number line before each line; the second 'sed' does the real
30233   # work.  The second script uses 'N' to pair each line-number line
30234   # with the numbered line, and appends trailing '-' during
30235   # substitution so that $LINENO is not a special case at line end.
30236   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30237   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30238   sed '=' <$as_myself |
30239     sed '
30240       N
30241       s,$,-,
30242       : loop
30243       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30244       t loop
30245       s,-$,,
30246       s,^['$as_cr_digits']*\n,,
30247     ' >$as_me.lineno &&
30248   chmod +x $as_me.lineno ||
30249     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30250 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30251    { (exit 1); exit 1; }; }
30252
30253   # Don't try to exec as it changes $[0], causing all sort of problems
30254   # (the dirname of $[0] is not the place where we might find the
30255   # original and so on.  Autoconf is especially sensible to this).
30256   . ./$as_me.lineno
30257   # Exit status is that of the last command.
30258   exit
30259 }
30260
30261
30262 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30263   *c*,-n*) ECHO_N= ECHO_C='
30264 ' ECHO_T='      ' ;;
30265   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30266   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30267 esac
30268
30269 if expr a : '\(a\)' >/dev/null 2>&1; then
30270   as_expr=expr
30271 else
30272   as_expr=false
30273 fi
30274
30275 rm -f conf$$ conf$$.exe conf$$.file
30276 echo >conf$$.file
30277 if ln -s conf$$.file conf$$ 2>/dev/null; then
30278   # We could just check for DJGPP; but this test a) works b) is more generic
30279   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30280   if test -f conf$$.exe; then
30281     # Don't use ln at all; we don't have any links
30282     as_ln_s='cp -p'
30283   else
30284     as_ln_s='ln -s'
30285   fi
30286 elif ln conf$$.file conf$$ 2>/dev/null; then
30287   as_ln_s=ln
30288 else
30289   as_ln_s='cp -p'
30290 fi
30291 rm -f conf$$ conf$$.exe conf$$.file
30292
30293 if mkdir -p . 2>/dev/null; then
30294   as_mkdir_p=:
30295 else
30296   test -d ./-p && rmdir ./-p
30297   as_mkdir_p=false
30298 fi
30299
30300 as_executable_p="test -f"
30301
30302 # Sed expression to map a string onto a valid CPP name.
30303 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30304
30305 # Sed expression to map a string onto a valid variable name.
30306 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30307
30308
30309 # IFS
30310 # We need space, tab and new line, in precisely that order.
30311 as_nl='
30312 '
30313 IFS="   $as_nl"
30314
30315 # CDPATH.
30316 $as_unset CDPATH
30317
30318 exec 6>&1
30319
30320 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30321 # report actual input values of CONFIG_FILES etc. instead of their
30322 # values after options handling.  Logging --version etc. is OK.
30323 exec 5>>config.log
30324 {
30325   echo
30326   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30327 ## Running $as_me. ##
30328 _ASBOX
30329 } >&5
30330 cat >&5 <<_CSEOF
30331
30332 This file was extended by $as_me, which was
30333 generated by GNU Autoconf 2.59.  Invocation command line was
30334
30335   CONFIG_FILES    = $CONFIG_FILES
30336   CONFIG_HEADERS  = $CONFIG_HEADERS
30337   CONFIG_LINKS    = $CONFIG_LINKS
30338   CONFIG_COMMANDS = $CONFIG_COMMANDS
30339   $ $0 $@
30340
30341 _CSEOF
30342 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30343 echo >&5
30344 _ACEOF
30345
30346 # Files that config.status was made for.
30347 if test -n "$ac_config_files"; then
30348   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30349 fi
30350
30351 if test -n "$ac_config_headers"; then
30352   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30353 fi
30354
30355 if test -n "$ac_config_links"; then
30356   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30357 fi
30358
30359 if test -n "$ac_config_commands"; then
30360   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30361 fi
30362
30363 cat >>$CONFIG_STATUS <<\_ACEOF
30364
30365 ac_cs_usage="\
30366 \`$as_me' instantiates files from templates according to the
30367 current configuration.
30368
30369 Usage: $0 [OPTIONS] [FILE]...
30370
30371   -h, --help       print this help, then exit
30372   -V, --version    print version number, then exit
30373   -q, --quiet      do not print progress messages
30374   -d, --debug      don't remove temporary files
30375       --recheck    update $as_me by reconfiguring in the same conditions
30376   --file=FILE[:TEMPLATE]
30377                    instantiate the configuration file FILE
30378   --header=FILE[:TEMPLATE]
30379                    instantiate the configuration header FILE
30380
30381 Configuration files:
30382 $config_files
30383
30384 Configuration headers:
30385 $config_headers
30386
30387 Configuration commands:
30388 $config_commands
30389
30390 Report bugs to <bug-autoconf@gnu.org>."
30391 _ACEOF
30392
30393 cat >>$CONFIG_STATUS <<_ACEOF
30394 ac_cs_version="\\
30395 config.status
30396 configured by $0, generated by GNU Autoconf 2.59,
30397   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30398
30399 Copyright (C) 2003 Free Software Foundation, Inc.
30400 This config.status script is free software; the Free Software Foundation
30401 gives unlimited permission to copy, distribute and modify it."
30402 srcdir=$srcdir
30403 INSTALL="$INSTALL"
30404 _ACEOF
30405
30406 cat >>$CONFIG_STATUS <<\_ACEOF
30407 # If no file are specified by the user, then we need to provide default
30408 # value.  By we need to know if files were specified by the user.
30409 ac_need_defaults=:
30410 while test $# != 0
30411 do
30412   case $1 in
30413   --*=*)
30414     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30415     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30416     ac_shift=:
30417     ;;
30418   -*)
30419     ac_option=$1
30420     ac_optarg=$2
30421     ac_shift=shift
30422     ;;
30423   *) # This is not an option, so the user has probably given explicit
30424      # arguments.
30425      ac_option=$1
30426      ac_need_defaults=false;;
30427   esac
30428
30429   case $ac_option in
30430   # Handling of the options.
30431 _ACEOF
30432 cat >>$CONFIG_STATUS <<\_ACEOF
30433   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30434     ac_cs_recheck=: ;;
30435   --version | --vers* | -V )
30436     echo "$ac_cs_version"; exit 0 ;;
30437   --he | --h)
30438     # Conflict between --help and --header
30439     { { echo "$as_me:$LINENO: error: ambiguous option: $1
30440 Try \`$0 --help' for more information." >&5
30441 echo "$as_me: error: ambiguous option: $1
30442 Try \`$0 --help' for more information." >&2;}
30443    { (exit 1); exit 1; }; };;
30444   --help | --hel | -h )
30445     echo "$ac_cs_usage"; exit 0 ;;
30446   --debug | --d* | -d )
30447     debug=: ;;
30448   --file | --fil | --fi | --f )
30449     $ac_shift
30450     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30451     ac_need_defaults=false;;
30452   --header | --heade | --head | --hea )
30453     $ac_shift
30454     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30455     ac_need_defaults=false;;
30456   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30457   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30458     ac_cs_silent=: ;;
30459
30460   # This is an error.
30461   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30462 Try \`$0 --help' for more information." >&5
30463 echo "$as_me: error: unrecognized option: $1
30464 Try \`$0 --help' for more information." >&2;}
30465    { (exit 1); exit 1; }; } ;;
30466
30467   *) ac_config_targets="$ac_config_targets $1" ;;
30468
30469   esac
30470   shift
30471 done
30472
30473 ac_configure_extra_args=
30474
30475 if $ac_cs_silent; then
30476   exec 6>/dev/null
30477   ac_configure_extra_args="$ac_configure_extra_args --silent"
30478 fi
30479
30480 _ACEOF
30481 cat >>$CONFIG_STATUS <<_ACEOF
30482 if \$ac_cs_recheck; then
30483   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30484   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30485 fi
30486
30487 _ACEOF
30488
30489 cat >>$CONFIG_STATUS <<_ACEOF
30490 #
30491 # INIT-COMMANDS section.
30492 #
30493
30494 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30495     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30496     # from automake.
30497     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30498     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30499     LINGUAS="${LINGUAS-%UNSET%}"
30500
30501
30502 _ACEOF
30503
30504
30505
30506 cat >>$CONFIG_STATUS <<\_ACEOF
30507 for ac_config_target in $ac_config_targets
30508 do
30509   case "$ac_config_target" in
30510   # Handling of arguments.
30511   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30512   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30513   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30514   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30515   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30516   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30517   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30518   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30519   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30520   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30521   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30522   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30523   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30524   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30525   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30526   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30527   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30528   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30529   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30530   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30531   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30532   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30533   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30534   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
30535   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30536   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30537   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30538   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30539   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30540   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30541   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30542   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30543   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30544   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30545   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30546   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30547   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30548   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30549   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30550   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
30551   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30552   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
30553   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30554   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30555   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30556   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30557   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30558   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30559   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30560   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30561   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30562   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30563   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30564   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30565   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30566   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30567   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30568   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30569   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30570   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30571   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30572   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30573   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30574   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30575   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30576   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30577   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30578   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30579   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30580   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30581   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30582   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30583   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30584   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30585   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30586   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30587   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30588   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30589   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30590   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30591   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30592   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30593   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30594   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30595   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30596   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30597   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30598   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30599   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30600   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30601   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30602   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30603   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30604   "src/pygtk-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/pygtk-console/Makefile" ;;
30605   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30606   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30607   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30608   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30609   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30610   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30611   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30612 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30613    { (exit 1); exit 1; }; };;
30614   esac
30615 done
30616
30617 # If the user did not use the arguments to specify the items to instantiate,
30618 # then the envvar interface is used.  Set only those that are not.
30619 # We use the long form for the default assignment because of an extremely
30620 # bizarre bug on SunOS 4.1.3.
30621 if $ac_need_defaults; then
30622   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30623   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30624   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30625 fi
30626
30627 # Have a temporary directory for convenience.  Make it in the build tree
30628 # simply because there is no reason to put it here, and in addition,
30629 # creating and moving files from /tmp can sometimes cause problems.
30630 # Create a temporary directory, and hook for its removal unless debugging.
30631 $debug ||
30632 {
30633   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30634   trap '{ (exit 1); exit 1; }' 1 2 13 15
30635 }
30636
30637 # Create a (secure) tmp directory for tmp files.
30638
30639 {
30640   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30641   test -n "$tmp" && test -d "$tmp"
30642 }  ||
30643 {
30644   tmp=./confstat$$-$RANDOM
30645   (umask 077 && mkdir $tmp)
30646 } ||
30647 {
30648    echo "$me: cannot create a temporary directory in ." >&2
30649    { (exit 1); exit 1; }
30650 }
30651
30652 _ACEOF
30653
30654 cat >>$CONFIG_STATUS <<_ACEOF
30655
30656 #
30657 # CONFIG_FILES section.
30658 #
30659
30660 # No need to generate the scripts if there are no CONFIG_FILES.
30661 # This happens for instance when ./config.status config.h
30662 if test -n "\$CONFIG_FILES"; then
30663   # Protect against being on the right side of a sed subst in config.status.
30664   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30665    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30666 s,@SHELL@,$SHELL,;t t
30667 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30668 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30669 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30670 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30671 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30672 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30673 s,@exec_prefix@,$exec_prefix,;t t
30674 s,@prefix@,$prefix,;t t
30675 s,@program_transform_name@,$program_transform_name,;t t
30676 s,@bindir@,$bindir,;t t
30677 s,@sbindir@,$sbindir,;t t
30678 s,@libexecdir@,$libexecdir,;t t
30679 s,@datadir@,$datadir,;t t
30680 s,@sysconfdir@,$sysconfdir,;t t
30681 s,@sharedstatedir@,$sharedstatedir,;t t
30682 s,@localstatedir@,$localstatedir,;t t
30683 s,@libdir@,$libdir,;t t
30684 s,@includedir@,$includedir,;t t
30685 s,@oldincludedir@,$oldincludedir,;t t
30686 s,@infodir@,$infodir,;t t
30687 s,@mandir@,$mandir,;t t
30688 s,@build_alias@,$build_alias,;t t
30689 s,@host_alias@,$host_alias,;t t
30690 s,@target_alias@,$target_alias,;t t
30691 s,@DEFS@,$DEFS,;t t
30692 s,@ECHO_C@,$ECHO_C,;t t
30693 s,@ECHO_N@,$ECHO_N,;t t
30694 s,@ECHO_T@,$ECHO_T,;t t
30695 s,@LIBS@,$LIBS,;t t
30696 s,@BUILD_DIR@,$BUILD_DIR,;t t
30697 s,@TOP_DIR@,$TOP_DIR,;t t
30698 s,@TRUEPRG@,$TRUEPRG,;t t
30699 s,@FALSEPRG@,$FALSEPRG,;t t
30700 s,@VERSION@,$VERSION,;t t
30701 s,@DATE@,$DATE,;t t
30702 s,@LSMDATE@,$LSMDATE,;t t
30703 s,@CC@,$CC,;t t
30704 s,@CFLAGS@,$CFLAGS,;t t
30705 s,@LDFLAGS@,$LDFLAGS,;t t
30706 s,@CPPFLAGS@,$CPPFLAGS,;t t
30707 s,@ac_ct_CC@,$ac_ct_CC,;t t
30708 s,@EXEEXT@,$EXEEXT,;t t
30709 s,@OBJEXT@,$OBJEXT,;t t
30710 s,@CXX@,$CXX,;t t
30711 s,@CXXFLAGS@,$CXXFLAGS,;t t
30712 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30713 s,@CPP@,$CPP,;t t
30714 s,@EGREP@,$EGREP,;t t
30715 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30716 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30717 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
30718 s,@RANLIB@,$RANLIB,;t t
30719 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
30720 s,@MV@,$MV,;t t
30721 s,@RM@,$RM,;t t
30722 s,@CP@,$CP,;t t
30723 s,@SED@,$SED,;t t
30724 s,@ECHO@,$ECHO,;t t
30725 s,@CMP@,$CMP,;t t
30726 s,@TBL@,$TBL,;t t
30727 s,@AR@,$AR,;t t
30728 s,@OPENSSL@,$OPENSSL,;t t
30729 s,@MTX@,$MTX,;t t
30730 s,@DD@,$DD,;t t
30731 s,@MKISOFS@,$MKISOFS,;t t
30732 s,@PYTHON@,$PYTHON,;t t
30733 s,@GROWISOFS@,$GROWISOFS,;t t
30734 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
30735 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
30736 s,@PKGCONFIG@,$PKGCONFIG,;t t
30737 s,@WXCONFIG@,$WXCONFIG,;t t
30738 s,@WXFLAGS@,$WXFLAGS,;t t
30739 s,@CDRECORD@,$CDRECORD,;t t
30740 s,@PIDOF@,$PIDOF,;t t
30741 s,@AWK@,$AWK,;t t
30742 s,@ARFLAGS@,$ARFLAGS,;t t
30743 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
30744 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
30745 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
30746 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
30747 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
30748 s,@build@,$build,;t t
30749 s,@build_cpu@,$build_cpu,;t t
30750 s,@build_vendor@,$build_vendor,;t t
30751 s,@build_os@,$build_os,;t t
30752 s,@host@,$host,;t t
30753 s,@host_cpu@,$host_cpu,;t t
30754 s,@host_vendor@,$host_vendor,;t t
30755 s,@host_os@,$host_os,;t t
30756 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
30757 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
30758 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
30759 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
30760 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
30761 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
30762 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
30763 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
30764 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
30765 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
30766 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
30767 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
30768 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
30769 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
30770 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
30771 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
30772 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
30773 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
30774 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
30775 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
30776 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
30777 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
30778 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
30779 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
30780 s,@SET_MAKE@,$SET_MAKE,;t t
30781 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
30782 s,@USE_NLS@,$USE_NLS,;t t
30783 s,@MSGFMT@,$MSGFMT,;t t
30784 s,@GMSGFMT@,$GMSGFMT,;t t
30785 s,@XGETTEXT@,$XGETTEXT,;t t
30786 s,@MSGMERGE@,$MSGMERGE,;t t
30787 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
30788 s,@LIBICONV@,$LIBICONV,;t t
30789 s,@LTLIBICONV@,$LTLIBICONV,;t t
30790 s,@INTLLIBS@,$INTLLIBS,;t t
30791 s,@LIBINTL@,$LIBINTL,;t t
30792 s,@LTLIBINTL@,$LTLIBINTL,;t t
30793 s,@POSUB@,$POSUB,;t t
30794 s,@GLIBC2@,$GLIBC2,;t t
30795 s,@ALLOCA@,$ALLOCA,;t t
30796 s,@GLIBC21@,$GLIBC21,;t t
30797 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
30798 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
30799 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
30800 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
30801 s,@INTLBISON@,$INTLBISON,;t t
30802 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
30803 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
30804 s,@CATOBJEXT@,$CATOBJEXT,;t t
30805 s,@DATADIRNAME@,$DATADIRNAME,;t t
30806 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
30807 s,@GENCAT@,$GENCAT,;t t
30808 s,@INTLOBJS@,$INTLOBJS,;t t
30809 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
30810 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
30811 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
30812 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
30813 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
30814 s,@GNOME_DIR@,$GNOME_DIR,;t t
30815 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
30816 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
30817 s,@WX_DIR@,$WX_DIR,;t t
30818 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
30819 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
30820 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
30821 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
30822 s,@STATIC_FD@,$STATIC_FD,;t t
30823 s,@STATIC_SD@,$STATIC_SD,;t t
30824 s,@STATIC_DIR@,$STATIC_DIR,;t t
30825 s,@STATIC_CONS@,$STATIC_CONS,;t t
30826 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
30827 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
30828 s,@ALL_DIRS@,$ALL_DIRS,;t t
30829 s,@DIRD_DIR@,$DIRD_DIR,;t t
30830 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
30831 s,@STORED_DIR@,$STORED_DIR,;t t
30832 s,@CONS_INC@,$CONS_INC,;t t
30833 s,@CONS_OBJ@,$CONS_OBJ,;t t
30834 s,@CONS_SRC@,$CONS_SRC,;t t
30835 s,@CONS_LIBS@,$CONS_LIBS,;t t
30836 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
30837 s,@READLINE_SRC@,$READLINE_SRC,;t t
30838 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30839 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
30840 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30841 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
30842 s,@working_dir@,$working_dir,;t t
30843 s,@scriptdir@,$scriptdir,;t t
30844 s,@dump_email@,$dump_email,;t t
30845 s,@job_email@,$job_email,;t t
30846 s,@smtp_host@,$smtp_host,;t t
30847 s,@piddir@,$piddir,;t t
30848 s,@subsysdir@,$subsysdir,;t t
30849 s,@baseport@,$baseport,;t t
30850 s,@dir_port@,$dir_port,;t t
30851 s,@fd_port@,$fd_port,;t t
30852 s,@sd_port@,$sd_port,;t t
30853 s,@dir_password@,$dir_password,;t t
30854 s,@fd_password@,$fd_password,;t t
30855 s,@sd_password@,$sd_password,;t t
30856 s,@mon_dir_password@,$mon_dir_password,;t t
30857 s,@mon_fd_password@,$mon_fd_password,;t t
30858 s,@mon_sd_password@,$mon_sd_password,;t t
30859 s,@dir_user@,$dir_user,;t t
30860 s,@dir_group@,$dir_group,;t t
30861 s,@sd_user@,$sd_user,;t t
30862 s,@sd_group@,$sd_group,;t t
30863 s,@fd_user@,$fd_user,;t t
30864 s,@fd_group@,$fd_group,;t t
30865 s,@SBINPERM@,$SBINPERM,;t t
30866 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
30867 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
30868 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
30869 s,@cats@,$cats,;t t
30870 s,@DB_NAME@,$DB_NAME,;t t
30871 s,@GETCONF@,$GETCONF,;t t
30872 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
30873 s,@X_CFLAGS@,$X_CFLAGS,;t t
30874 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30875 s,@X_LIBS@,$X_LIBS,;t t
30876 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30877 s,@LIBOBJS@,$LIBOBJS,;t t
30878 s,@FDLIBS@,$FDLIBS,;t t
30879 s,@DEBUG@,$DEBUG,;t t
30880 s,@DINCLUDE@,$DINCLUDE,;t t
30881 s,@DLIB@,$DLIB,;t t
30882 s,@DB_LIBS@,$DB_LIBS,;t t
30883 s,@WCFLAGS@,$WCFLAGS,;t t
30884 s,@WLDFLAGS@,$WLDFLAGS,;t t
30885 s,@WRAPLIBS@,$WRAPLIBS,;t t
30886 s,@OBJLIST@,$OBJLIST,;t t
30887 s,@hostname@,$hostname,;t t
30888 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
30889 s,@PSCMD@,$PSCMD,;t t
30890 s,@WIN32@,$WIN32,;t t
30891 s,@MACOSX@,$MACOSX,;t t
30892 s,@DISTNAME@,$DISTNAME,;t t
30893 s,@DISTVER@,$DISTVER,;t t
30894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30895 /@MCOMMON@/r $MCOMMON
30896 s,@MCOMMON@,,;t t
30897 CEOF
30898
30899 _ACEOF
30900
30901   cat >>$CONFIG_STATUS <<\_ACEOF
30902   # Split the substitutions into bite-sized pieces for seds with
30903   # small command number limits, like on Digital OSF/1 and HP-UX.
30904   ac_max_sed_lines=48
30905   ac_sed_frag=1 # Number of current file.
30906   ac_beg=1 # First line for current file.
30907   ac_end=$ac_max_sed_lines # Line after last line for current file.
30908   ac_more_lines=:
30909   ac_sed_cmds=
30910   while $ac_more_lines; do
30911     if test $ac_beg -gt 1; then
30912       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30913     else
30914       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30915     fi
30916     if test ! -s $tmp/subs.frag; then
30917       ac_more_lines=false
30918     else
30919       # The purpose of the label and of the branching condition is to
30920       # speed up the sed processing (if there are no `@' at all, there
30921       # is no need to browse any of the substitutions).
30922       # These are the two extra sed commands mentioned above.
30923       (echo ':t
30924   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30925       if test -z "$ac_sed_cmds"; then
30926         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30927       else
30928         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30929       fi
30930       ac_sed_frag=`expr $ac_sed_frag + 1`
30931       ac_beg=$ac_end
30932       ac_end=`expr $ac_end + $ac_max_sed_lines`
30933     fi
30934   done
30935   if test -z "$ac_sed_cmds"; then
30936     ac_sed_cmds=cat
30937   fi
30938 fi # test -n "$CONFIG_FILES"
30939
30940 _ACEOF
30941 cat >>$CONFIG_STATUS <<\_ACEOF
30942 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30943   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30944   case $ac_file in
30945   - | *:- | *:-:* ) # input from stdin
30946         cat >$tmp/stdin
30947         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30948         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30949   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30950         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30951   * )   ac_file_in=$ac_file.in ;;
30952   esac
30953
30954   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30955   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30957          X"$ac_file" : 'X\(//\)[^/]' \| \
30958          X"$ac_file" : 'X\(//\)$' \| \
30959          X"$ac_file" : 'X\(/\)' \| \
30960          .     : '\(.\)' 2>/dev/null ||
30961 echo X"$ac_file" |
30962     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30963           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30964           /^X\(\/\/\)$/{ s//\1/; q; }
30965           /^X\(\/\).*/{ s//\1/; q; }
30966           s/.*/./; q'`
30967   { if $as_mkdir_p; then
30968     mkdir -p "$ac_dir"
30969   else
30970     as_dir="$ac_dir"
30971     as_dirs=
30972     while test ! -d "$as_dir"; do
30973       as_dirs="$as_dir $as_dirs"
30974       as_dir=`(dirname "$as_dir") 2>/dev/null ||
30975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30976          X"$as_dir" : 'X\(//\)[^/]' \| \
30977          X"$as_dir" : 'X\(//\)$' \| \
30978          X"$as_dir" : 'X\(/\)' \| \
30979          .     : '\(.\)' 2>/dev/null ||
30980 echo X"$as_dir" |
30981     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30982           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30983           /^X\(\/\/\)$/{ s//\1/; q; }
30984           /^X\(\/\).*/{ s//\1/; q; }
30985           s/.*/./; q'`
30986     done
30987     test ! -n "$as_dirs" || mkdir $as_dirs
30988   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30989 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30990    { (exit 1); exit 1; }; }; }
30991
30992   ac_builddir=.
30993
30994 if test "$ac_dir" != .; then
30995   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30996   # A "../" for each directory in $ac_dir_suffix.
30997   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30998 else
30999   ac_dir_suffix= ac_top_builddir=
31000 fi
31001
31002 case $srcdir in
31003   .)  # No --srcdir option.  We are building in place.
31004     ac_srcdir=.
31005     if test -z "$ac_top_builddir"; then
31006        ac_top_srcdir=.
31007     else
31008        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31009     fi ;;
31010   [\\/]* | ?:[\\/]* )  # Absolute path.
31011     ac_srcdir=$srcdir$ac_dir_suffix;
31012     ac_top_srcdir=$srcdir ;;
31013   *) # Relative path.
31014     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31015     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31016 esac
31017
31018 # Do not use `cd foo && pwd` to compute absolute paths, because
31019 # the directories may not exist.
31020 case `pwd` in
31021 .) ac_abs_builddir="$ac_dir";;
31022 *)
31023   case "$ac_dir" in
31024   .) ac_abs_builddir=`pwd`;;
31025   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31026   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31027   esac;;
31028 esac
31029 case $ac_abs_builddir in
31030 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31031 *)
31032   case ${ac_top_builddir}. in
31033   .) ac_abs_top_builddir=$ac_abs_builddir;;
31034   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31035   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31036   esac;;
31037 esac
31038 case $ac_abs_builddir in
31039 .) ac_abs_srcdir=$ac_srcdir;;
31040 *)
31041   case $ac_srcdir in
31042   .) ac_abs_srcdir=$ac_abs_builddir;;
31043   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31044   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31045   esac;;
31046 esac
31047 case $ac_abs_builddir in
31048 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31049 *)
31050   case $ac_top_srcdir in
31051   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31052   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31053   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31054   esac;;
31055 esac
31056
31057
31058   case $INSTALL in
31059   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31060   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31061   esac
31062
31063   if test x"$ac_file" != x-; then
31064     { echo "$as_me:$LINENO: creating $ac_file" >&5
31065 echo "$as_me: creating $ac_file" >&6;}
31066     rm -f "$ac_file"
31067   fi
31068   # Let's still pretend it is `configure' which instantiates (i.e., don't
31069   # use $as_me), people would be surprised to read:
31070   #    /* config.h.  Generated by config.status.  */
31071   if test x"$ac_file" = x-; then
31072     configure_input=
31073   else
31074     configure_input="$ac_file.  "
31075   fi
31076   configure_input=$configure_input"Generated from `echo $ac_file_in |
31077                                      sed 's,.*/,,'` by configure."
31078
31079   # First look for the input files in the build tree, otherwise in the
31080   # src tree.
31081   ac_file_inputs=`IFS=:
31082     for f in $ac_file_in; do
31083       case $f in
31084       -) echo $tmp/stdin ;;
31085       [\\/$]*)
31086          # Absolute (can't be DOS-style, as IFS=:)
31087          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31088 echo "$as_me: error: cannot find input file: $f" >&2;}
31089    { (exit 1); exit 1; }; }
31090          echo "$f";;
31091       *) # Relative
31092          if test -f "$f"; then
31093            # Build tree
31094            echo "$f"
31095          elif test -f "$srcdir/$f"; then
31096            # Source tree
31097            echo "$srcdir/$f"
31098          else
31099            # /dev/null tree
31100            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31101 echo "$as_me: error: cannot find input file: $f" >&2;}
31102    { (exit 1); exit 1; }; }
31103          fi;;
31104       esac
31105     done` || { (exit 1); exit 1; }
31106 _ACEOF
31107 cat >>$CONFIG_STATUS <<_ACEOF
31108   sed "$ac_vpsub
31109 $extrasub
31110 _ACEOF
31111 cat >>$CONFIG_STATUS <<\_ACEOF
31112 :t
31113 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31114 s,@configure_input@,$configure_input,;t t
31115 s,@srcdir@,$ac_srcdir,;t t
31116 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31117 s,@top_srcdir@,$ac_top_srcdir,;t t
31118 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31119 s,@builddir@,$ac_builddir,;t t
31120 s,@abs_builddir@,$ac_abs_builddir,;t t
31121 s,@top_builddir@,$ac_top_builddir,;t t
31122 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31123 s,@INSTALL@,$ac_INSTALL,;t t
31124 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31125   rm -f $tmp/stdin
31126   if test x"$ac_file" != x-; then
31127     mv $tmp/out $ac_file
31128   else
31129     cat $tmp/out
31130     rm -f $tmp/out
31131   fi
31132
31133 done
31134 _ACEOF
31135 cat >>$CONFIG_STATUS <<\_ACEOF
31136
31137 #
31138 # CONFIG_HEADER section.
31139 #
31140
31141 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31142 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31143 #
31144 # ac_d sets the value in "#define NAME VALUE" lines.
31145 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31146 ac_dB='[         ].*$,\1#\2'
31147 ac_dC=' '
31148 ac_dD=',;t'
31149 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31150 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31151 ac_uB='$,\1#\2define\3'
31152 ac_uC=' '
31153 ac_uD=',;t'
31154
31155 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31156   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31157   case $ac_file in
31158   - | *:- | *:-:* ) # input from stdin
31159         cat >$tmp/stdin
31160         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31161         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31162   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31163         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31164   * )   ac_file_in=$ac_file.in ;;
31165   esac
31166
31167   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31168 echo "$as_me: creating $ac_file" >&6;}
31169
31170   # First look for the input files in the build tree, otherwise in the
31171   # src tree.
31172   ac_file_inputs=`IFS=:
31173     for f in $ac_file_in; do
31174       case $f in
31175       -) echo $tmp/stdin ;;
31176       [\\/$]*)
31177          # Absolute (can't be DOS-style, as IFS=:)
31178          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31179 echo "$as_me: error: cannot find input file: $f" >&2;}
31180    { (exit 1); exit 1; }; }
31181          # Do quote $f, to prevent DOS paths from being IFS'd.
31182          echo "$f";;
31183       *) # Relative
31184          if test -f "$f"; then
31185            # Build tree
31186            echo "$f"
31187          elif test -f "$srcdir/$f"; then
31188            # Source tree
31189            echo "$srcdir/$f"
31190          else
31191            # /dev/null tree
31192            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31193 echo "$as_me: error: cannot find input file: $f" >&2;}
31194    { (exit 1); exit 1; }; }
31195          fi;;
31196       esac
31197     done` || { (exit 1); exit 1; }
31198   # Remove the trailing spaces.
31199   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31200
31201 _ACEOF
31202
31203 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31204 # `conftest.undefs', that substitutes the proper values into
31205 # config.h.in to produce config.h.  The first handles `#define'
31206 # templates, and the second `#undef' templates.
31207 # And first: Protect against being on the right side of a sed subst in
31208 # config.status.  Protect against being in an unquoted here document
31209 # in config.status.
31210 rm -f conftest.defines conftest.undefs
31211 # Using a here document instead of a string reduces the quoting nightmare.
31212 # Putting comments in sed scripts is not portable.
31213 #
31214 # `end' is used to avoid that the second main sed command (meant for
31215 # 0-ary CPP macros) applies to n-ary macro definitions.
31216 # See the Autoconf documentation for `clear'.
31217 cat >confdef2sed.sed <<\_ACEOF
31218 s/[\\&,]/\\&/g
31219 s,[\\$`],\\&,g
31220 t clear
31221 : clear
31222 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31223 t end
31224 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31225 : end
31226 _ACEOF
31227 # If some macros were called several times there might be several times
31228 # the same #defines, which is useless.  Nevertheless, we may not want to
31229 # sort them, since we want the *last* AC-DEFINE to be honored.
31230 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31231 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31232 rm -f confdef2sed.sed
31233
31234 # This sed command replaces #undef with comments.  This is necessary, for
31235 # example, in the case of _POSIX_SOURCE, which is predefined and required
31236 # on some systems where configure will not decide to define it.
31237 cat >>conftest.undefs <<\_ACEOF
31238 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31239 _ACEOF
31240
31241 # Break up conftest.defines because some shells have a limit on the size
31242 # of here documents, and old seds have small limits too (100 cmds).
31243 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31244 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31245 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31246 echo '  :' >>$CONFIG_STATUS
31247 rm -f conftest.tail
31248 while grep . conftest.defines >/dev/null
31249 do
31250   # Write a limited-size here document to $tmp/defines.sed.
31251   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31252   # Speed up: don't consider the non `#define' lines.
31253   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31254   # Work around the forget-to-reset-the-flag bug.
31255   echo 't clr' >>$CONFIG_STATUS
31256   echo ': clr' >>$CONFIG_STATUS
31257   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31258   echo 'CEOF
31259   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31260   rm -f $tmp/in
31261   mv $tmp/out $tmp/in
31262 ' >>$CONFIG_STATUS
31263   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31264   rm -f conftest.defines
31265   mv conftest.tail conftest.defines
31266 done
31267 rm -f conftest.defines
31268 echo '  fi # grep' >>$CONFIG_STATUS
31269 echo >>$CONFIG_STATUS
31270
31271 # Break up conftest.undefs because some shells have a limit on the size
31272 # of here documents, and old seds have small limits too (100 cmds).
31273 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31274 rm -f conftest.tail
31275 while grep . conftest.undefs >/dev/null
31276 do
31277   # Write a limited-size here document to $tmp/undefs.sed.
31278   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31279   # Speed up: don't consider the non `#undef'
31280   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31281   # Work around the forget-to-reset-the-flag bug.
31282   echo 't clr' >>$CONFIG_STATUS
31283   echo ': clr' >>$CONFIG_STATUS
31284   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31285   echo 'CEOF
31286   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31287   rm -f $tmp/in
31288   mv $tmp/out $tmp/in
31289 ' >>$CONFIG_STATUS
31290   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31291   rm -f conftest.undefs
31292   mv conftest.tail conftest.undefs
31293 done
31294 rm -f conftest.undefs
31295
31296 cat >>$CONFIG_STATUS <<\_ACEOF
31297   # Let's still pretend it is `configure' which instantiates (i.e., don't
31298   # use $as_me), people would be surprised to read:
31299   #    /* config.h.  Generated by config.status.  */
31300   if test x"$ac_file" = x-; then
31301     echo "/* Generated by configure.  */" >$tmp/config.h
31302   else
31303     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31304   fi
31305   cat $tmp/in >>$tmp/config.h
31306   rm -f $tmp/in
31307   if test x"$ac_file" != x-; then
31308     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31309       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31310 echo "$as_me: $ac_file is unchanged" >&6;}
31311     else
31312       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31313 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31314          X"$ac_file" : 'X\(//\)[^/]' \| \
31315          X"$ac_file" : 'X\(//\)$' \| \
31316          X"$ac_file" : 'X\(/\)' \| \
31317          .     : '\(.\)' 2>/dev/null ||
31318 echo X"$ac_file" |
31319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31320           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31321           /^X\(\/\/\)$/{ s//\1/; q; }
31322           /^X\(\/\).*/{ s//\1/; q; }
31323           s/.*/./; q'`
31324       { if $as_mkdir_p; then
31325     mkdir -p "$ac_dir"
31326   else
31327     as_dir="$ac_dir"
31328     as_dirs=
31329     while test ! -d "$as_dir"; do
31330       as_dirs="$as_dir $as_dirs"
31331       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31333          X"$as_dir" : 'X\(//\)[^/]' \| \
31334          X"$as_dir" : 'X\(//\)$' \| \
31335          X"$as_dir" : 'X\(/\)' \| \
31336          .     : '\(.\)' 2>/dev/null ||
31337 echo X"$as_dir" |
31338     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31339           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31340           /^X\(\/\/\)$/{ s//\1/; q; }
31341           /^X\(\/\).*/{ s//\1/; q; }
31342           s/.*/./; q'`
31343     done
31344     test ! -n "$as_dirs" || mkdir $as_dirs
31345   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31346 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31347    { (exit 1); exit 1; }; }; }
31348
31349       rm -f $ac_file
31350       mv $tmp/config.h $ac_file
31351     fi
31352   else
31353     cat $tmp/config.h
31354     rm -f $tmp/config.h
31355   fi
31356 done
31357 _ACEOF
31358 cat >>$CONFIG_STATUS <<\_ACEOF
31359
31360 #
31361 # CONFIG_COMMANDS section.
31362 #
31363 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31364   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31365   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31366   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31367 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31368          X"$ac_dest" : 'X\(//\)[^/]' \| \
31369          X"$ac_dest" : 'X\(//\)$' \| \
31370          X"$ac_dest" : 'X\(/\)' \| \
31371          .     : '\(.\)' 2>/dev/null ||
31372 echo X"$ac_dest" |
31373     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31374           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31375           /^X\(\/\/\)$/{ s//\1/; q; }
31376           /^X\(\/\).*/{ s//\1/; q; }
31377           s/.*/./; q'`
31378   { if $as_mkdir_p; then
31379     mkdir -p "$ac_dir"
31380   else
31381     as_dir="$ac_dir"
31382     as_dirs=
31383     while test ! -d "$as_dir"; do
31384       as_dirs="$as_dir $as_dirs"
31385       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387          X"$as_dir" : 'X\(//\)[^/]' \| \
31388          X"$as_dir" : 'X\(//\)$' \| \
31389          X"$as_dir" : 'X\(/\)' \| \
31390          .     : '\(.\)' 2>/dev/null ||
31391 echo X"$as_dir" |
31392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31393           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31394           /^X\(\/\/\)$/{ s//\1/; q; }
31395           /^X\(\/\).*/{ s//\1/; q; }
31396           s/.*/./; q'`
31397     done
31398     test ! -n "$as_dirs" || mkdir $as_dirs
31399   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31400 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31401    { (exit 1); exit 1; }; }; }
31402
31403   ac_builddir=.
31404
31405 if test "$ac_dir" != .; then
31406   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31407   # A "../" for each directory in $ac_dir_suffix.
31408   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31409 else
31410   ac_dir_suffix= ac_top_builddir=
31411 fi
31412
31413 case $srcdir in
31414   .)  # No --srcdir option.  We are building in place.
31415     ac_srcdir=.
31416     if test -z "$ac_top_builddir"; then
31417        ac_top_srcdir=.
31418     else
31419        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31420     fi ;;
31421   [\\/]* | ?:[\\/]* )  # Absolute path.
31422     ac_srcdir=$srcdir$ac_dir_suffix;
31423     ac_top_srcdir=$srcdir ;;
31424   *) # Relative path.
31425     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31426     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31427 esac
31428
31429 # Do not use `cd foo && pwd` to compute absolute paths, because
31430 # the directories may not exist.
31431 case `pwd` in
31432 .) ac_abs_builddir="$ac_dir";;
31433 *)
31434   case "$ac_dir" in
31435   .) ac_abs_builddir=`pwd`;;
31436   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31437   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31438   esac;;
31439 esac
31440 case $ac_abs_builddir in
31441 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31442 *)
31443   case ${ac_top_builddir}. in
31444   .) ac_abs_top_builddir=$ac_abs_builddir;;
31445   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31446   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31447   esac;;
31448 esac
31449 case $ac_abs_builddir in
31450 .) ac_abs_srcdir=$ac_srcdir;;
31451 *)
31452   case $ac_srcdir in
31453   .) ac_abs_srcdir=$ac_abs_builddir;;
31454   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31455   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31456   esac;;
31457 esac
31458 case $ac_abs_builddir in
31459 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31460 *)
31461   case $ac_top_srcdir in
31462   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31463   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31464   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31465   esac;;
31466 esac
31467
31468
31469   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
31470 echo "$as_me: executing $ac_dest commands" >&6;}
31471   case $ac_dest in
31472     default-1 )
31473     for ac_file in $CONFIG_FILES; do
31474       # Support "outfile[:infile[:infile...]]"
31475       case "$ac_file" in
31476         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31477       esac
31478       # PO directories have a Makefile.in generated from Makefile.in.in.
31479       case "$ac_file" in */Makefile.in)
31480         # Adjust a relative srcdir.
31481         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31482         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31483         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31484         # In autoconf-2.13 it is called $ac_given_srcdir.
31485         # In autoconf-2.50 it is called $srcdir.
31486         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31487         case "$ac_given_srcdir" in
31488           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31489           /*) top_srcdir="$ac_given_srcdir" ;;
31490           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31491         esac
31492         # Treat a directory as a PO directory if and only if it has a
31493         # POTFILES.in file. This allows packages to have multiple PO
31494         # directories under different names or in different locations.
31495         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31496           rm -f "$ac_dir/POTFILES"
31497           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31498           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31499           POMAKEFILEDEPS="POTFILES.in"
31500           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31501           # on $ac_dir but don't depend on user-specified configuration
31502           # parameters.
31503           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31504             # The LINGUAS file contains the set of available languages.
31505             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31506               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31507             fi
31508             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31509             # Hide the ALL_LINGUAS assigment from automake.
31510             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31511             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31512           else
31513             # The set of available languages was given in configure.in.
31514             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31515           fi
31516           # Compute POFILES
31517           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31518           # Compute UPDATEPOFILES
31519           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31520           # Compute DUMMYPOFILES
31521           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31522           # Compute GMOFILES
31523           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31524           case "$ac_given_srcdir" in
31525             .) srcdirpre= ;;
31526             *) srcdirpre='$(srcdir)/' ;;
31527           esac
31528           POFILES=
31529           UPDATEPOFILES=
31530           DUMMYPOFILES=
31531           GMOFILES=
31532           for lang in $ALL_LINGUAS; do
31533             POFILES="$POFILES $srcdirpre$lang.po"
31534             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31535             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31536             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31537           done
31538           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31539           # environment variable.
31540           INST_LINGUAS=
31541           if test -n "$ALL_LINGUAS"; then
31542             for presentlang in $ALL_LINGUAS; do
31543               useit=no
31544               if test "%UNSET%" != "$LINGUAS"; then
31545                 desiredlanguages="$LINGUAS"
31546               else
31547                 desiredlanguages="$ALL_LINGUAS"
31548               fi
31549               for desiredlang in $desiredlanguages; do
31550                 # Use the presentlang catalog if desiredlang is
31551                 #   a. equal to presentlang, or
31552                 #   b. a variant of presentlang (because in this case,
31553                 #      presentlang can be used as a fallback for messages
31554                 #      which are not translated in the desiredlang catalog).
31555                 case "$desiredlang" in
31556                   "$presentlang"*) useit=yes;;
31557                 esac
31558               done
31559               if test $useit = yes; then
31560                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31561               fi
31562             done
31563           fi
31564           CATALOGS=
31565           if test -n "$INST_LINGUAS"; then
31566             for lang in $INST_LINGUAS; do
31567               CATALOGS="$CATALOGS $lang.gmo"
31568             done
31569           fi
31570           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31571           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"
31572           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31573             if test -f "$f"; then
31574               case "$f" in
31575                 *.orig | *.bak | *~) ;;
31576                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31577               esac
31578             fi
31579           done
31580         fi
31581         ;;
31582       esac
31583     done ;;
31584     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
31585  ;;
31586   esac
31587 done
31588 _ACEOF
31589
31590 cat >>$CONFIG_STATUS <<\_ACEOF
31591
31592 { (exit 0); exit 0; }
31593 _ACEOF
31594 chmod +x $CONFIG_STATUS
31595 ac_clean_files=$ac_clean_files_save
31596
31597
31598 # configure is writing to config.log, and then calls config.status.
31599 # config.status does its own redirection, appending to config.log.
31600 # Unfortunately, on DOS this fails, as config.log is still kept open
31601 # by configure, so config.status won't be able to write to it; its
31602 # output is simply discarded.  So we exec the FD to /dev/null,
31603 # effectively closing config.log, so it can be properly (re)opened and
31604 # appended to by config.status.  When coming back to configure, we
31605 # need to make the FD available again.
31606 if test "$no_create" != yes; then
31607   ac_cs_success=:
31608   ac_config_status_args=
31609   test "$silent" = yes &&
31610     ac_config_status_args="$ac_config_status_args --quiet"
31611   exec 5>/dev/null
31612   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31613   exec 5>>config.log
31614   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31615   # would make configure fail if this is the last instruction.
31616   $ac_cs_success || { (exit 1); exit 1; }
31617 fi
31618
31619
31620 cd scripts
31621 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31622 chmod 755 dvd-handler dvd-simulator
31623 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31624 cd ..
31625
31626 c=src/cats
31627
31628 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
31629 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
31630
31631 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
31632 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
31633
31634 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
31635 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
31636
31637 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
31638 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
31639
31640 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
31641 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
31642
31643 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
31644 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
31645
31646 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31647 chmod 755 $c/sqlite
31648 chmod 755 $c/mysql
31649
31650 chmod 755 src/win32/build-depkgs-mingw32
31651
31652 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31653    largefile_support="yes"
31654 fi
31655
31656 #
31657 # A whole lot of hand springs to get the compiler version.
31658 #  This is because gcc changed the output in version 3.0
31659 #
31660 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31661 if test "x${CCVERSION}" = "x" ; then
31662   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31663 fi
31664 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31665 if test x"${CXXVERSION}" = x ; then
31666   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31667 fi
31668
31669 if test "x${subsysdir}" = "x${sbindir}" ; then
31670    echo " "
31671    echo " "
31672    echo "You have set --sbindir and --with-subsys-dir"
31673    echo "  both equal to: ${subsysdir} "
31674    echo "  This is not permitted. Please reconfigure."
31675    echo " "
31676    echo "Aborting configuration ..."
31677    echo " "
31678    echo " "
31679    exit 1
31680 fi
31681
31682 if test "x${db_name}" = "xInternal" ; then
31683    echo " "
31684    echo " "
31685    echo "You have not specified either --enable-client-only or one of the"
31686    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31687    echo "  This is not permitted. Please reconfigure."
31688    echo " "
31689    echo "Aborting the configuration ..."
31690    echo " "
31691    echo " "
31692    exit 1
31693 fi
31694
31695 echo "
31696 Configuration on `date`:
31697
31698   Host:                       $host -- ${DISTNAME} ${DISTVER}
31699   Bacula version:             ${VERSION} (${DATE})
31700   Source code location:       ${srcdir}
31701   Install binaries:           ${sbindir}
31702   Install config files:       ${sysconfdir}
31703   Scripts directory:          ${scriptdir}
31704   Working directory:          ${working_dir}
31705   PID directory:              ${piddir}
31706   Subsys directory:           ${subsysdir}
31707   Man directory:              ${mandir}
31708   Data directory:             ${datadir}
31709   C Compiler:                 ${CC} ${CCVERSION}
31710   C++ Compiler:               ${CXX} ${CXXVERSION}
31711   Compiler flags:             ${WCFLAGS} ${CFLAGS}
31712   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
31713   Libraries:                  ${LIBS}
31714   Statically Linked Tools:    ${support_static_tools}
31715   Statically Linked FD:       ${support_static_fd}
31716   Statically Linked SD:       ${support_static_sd}
31717   Statically Linked DIR:      ${support_static_dir}
31718   Statically Linked CONS:     ${support_static_cons}
31719   Database type:              ${db_name}
31720   Database lib:               ${DB_LIBS}
31721
31722   Job Output Email:           ${job_email}
31723   Traceback Email:            ${dump_email}
31724   SMTP Host Address:          ${smtp_host}
31725
31726   Director Port:              ${dir_port}
31727   File daemon Port:           ${fd_port}
31728   Storage daemon Port:        ${sd_port}
31729
31730   Director User:              ${dir_user}
31731   Director Group:             ${dir_group}
31732   Storage Daemon User:        ${sd_user}
31733   Storage DaemonGroup:        ${sd_group}
31734   File Daemon User:           ${fd_user}
31735   File Daemon Group:          ${fd_group}
31736
31737   SQL binaries Directory      ${SQL_BINDIR}
31738
31739   Large file support:         $largefile_support
31740   Bacula conio support:       ${got_conio} ${CONS_LIBS}
31741   readline support:           ${got_readline} ${PRTREADLINE_SRC}
31742   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
31743   TLS support:                ${support_tls}
31744   Encryption support:         ${support_crypto}
31745   ZLIB support:               ${have_zlib}
31746   enable-smartalloc:          ${support_smartalloc}
31747   enable-gnome:               ${support_gnome} ${gnome_version}
31748   enable-wx-console:          ${support_wx_console} ${wx_version}
31749   enable-tray-monitor:        ${support_tray_monitor}
31750   client-only:                ${build_client_only}
31751   build-dird:                 ${build_dird}
31752   build-stored:               ${build_stored}
31753   ACL support:                ${have_acl}
31754   Python support:             ${support_python} ${PYTHON_LIBS}
31755
31756   " > config.out
31757
31758 cat config.out