]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
01a0bcdbaff741783a45d9bc22c5c05e2eb9a64a
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TOP_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DD MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO DVDRWFORMAT PKGCONFIG QMAKE QMAKEQT4 WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC2 ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR BAT_DIR QWT_INC QWT_LDFLAGS WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir archivedir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password db_name db_user dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_TYPE GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS WRAPLIBS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of bgnome-console GUI disabled
870   --enable-bat  enable build of bat Qt4 GUI disabled
871   --enable-bwx-console     enable build of wxWidgets console disabled
872   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
873   --enable-smartalloc     enable smartalloc debugging support disabled
874   --enable-static-tools   enable static tape tools disabled
875   --enable-static-fd      enable static File daemon disabled
876   --enable-static-sd      enable static Storage daemon disabled
877   --enable-static-dir     enable static Director disabled
878   --enable-static-cons    enable static Console disabled
879   --enable-client-only    build client (File daemon) only disabled
880   --enable-build-dird     enable building of dird (Director) enabled
881   --enable-build-stored   enable building of stored (Storage daemon) enabled
882  --disable-conio disable conio support enabled
883
884   --enable-ipv6             enable ipv6 support enabled
885
886   --disable-readline      disable readline support disable
887
888         --enable-batch-insert       enable the DB batch insert code disabled
889   --disable-largefile     omit support for large files
890
891 Optional Packages:
892   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
893   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
894   --with-gnu-ld           assume the C compiler uses GNU ld default=no
895   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
896   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
897   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
898   --without-libintl-prefix     don't search for libintl in includedir and libdir
899   --with-included-gettext use the GNU gettext library included here
900  --with-qwt[=DIR]                 specify qwt library directory
901  --with-readline[=DIR]         specify readline library directory
902
903   --with-python[=DIR]   Include Python support.  DIR is the Python base
904                           install directory, default is to search through
905                           a number of common places for the Python files.
906   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
907   --with-openssl[=DIR]
908                           Include OpenSSL support. DIR is the OpenSSL base
909   --with-working-dir=PATH        specify path of Bacula working directory
910   --with-archivedir=PATH        specify path of SD archive directory
911   --with-scriptdir=PATH    specify path of Bacula scripts directory
912   --with-dump-email=EMAIL        dump email address
913   --with-job-email=EMAIL         job output email address
914   --with-smtp-host=HOST          SMTP mail host address
915   --with-pid-dir=PATH            specify location of Bacula pid files
916   --with-subsys-dir=PATH         specify location of Bacula subsys file
917   --with-baseport=PORT           specify base port address for daemons
918   --with-dir-password=PASSWORD   specify Director's password
919   --with-fd-password=PASSWORD    specify Client's password
920   --with-sd-password=PASSWORD    specify Storage daemon's password
921   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
922   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
923   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
924   --with-db-name=DBNAME        specify database name (default bacula)
925   --with-db-user=UNAME         specify database user (default bacula)
926   --with-dir-user=USER           specify user for Director daemon
927   --with-dir-group=GROUP                 specify group for Director daemon
928   --with-sd-user=USER            specify user for Storage daemon
929   --with-sd-group=GROUP          specify group for Storage daemon
930   --with-fd-user=USER            specify user for File daemon
931   --with-fd-group=GROUP          specify group for File daemon
932   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
933   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
934                           base install directory, defaults to /usr/local/pgsql
935
936   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
937                           install directory, default is to search through
938                           a number of common places for the MySQL files.
939
940   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
941                           install directory, default is to search through
942                           a number of common places for the MySQL files.
943
944   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
945                           install directory, default is to search through
946                           a number of common places for the SQLite3 files.
947
948   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
949                           install directory, default is to search through
950                           a number of common places for the SQLite files.
951   --with-x                use the X Window System
952
953 Some influential environment variables:
954   CC          C compiler command
955   CFLAGS      C compiler flags
956   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
957               nonstandard directory <lib dir>
958   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
959               headers in a nonstandard directory <include dir>
960   CXX         C++ compiler command
961   CXXFLAGS    C++ compiler flags
962   CPP         C preprocessor
963   WXCONFIG    wx-config command. On some systems, you must set it to
964               wx-config-2.6 to use wxWidgets 2.6.
965   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
966
967 Use these variables to override the choices made by `configure' or to help
968 it to find libraries and programs with nonstandard names/locations.
969
970 _ACEOF
971 fi
972
973 if test "$ac_init_help" = "recursive"; then
974   # If there are subdirs, report their specific --help.
975   ac_popdir=`pwd`
976   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
977     test -d $ac_dir || continue
978     ac_builddir=.
979
980 if test "$ac_dir" != .; then
981   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
982   # A "../" for each directory in $ac_dir_suffix.
983   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
984 else
985   ac_dir_suffix= ac_top_builddir=
986 fi
987
988 case $srcdir in
989   .)  # No --srcdir option.  We are building in place.
990     ac_srcdir=.
991     if test -z "$ac_top_builddir"; then
992        ac_top_srcdir=.
993     else
994        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
995     fi ;;
996   [\\/]* | ?:[\\/]* )  # Absolute path.
997     ac_srcdir=$srcdir$ac_dir_suffix;
998     ac_top_srcdir=$srcdir ;;
999   *) # Relative path.
1000     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1001     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1002 esac
1003
1004 # Do not use `cd foo && pwd` to compute absolute paths, because
1005 # the directories may not exist.
1006 case `pwd` in
1007 .) ac_abs_builddir="$ac_dir";;
1008 *)
1009   case "$ac_dir" in
1010   .) ac_abs_builddir=`pwd`;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1012   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1017 *)
1018   case ${ac_top_builddir}. in
1019   .) ac_abs_top_builddir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1021   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_srcdir=$ac_srcdir;;
1026 *)
1027   case $ac_srcdir in
1028   .) ac_abs_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1030   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1031   esac;;
1032 esac
1033 case $ac_abs_builddir in
1034 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1035 *)
1036   case $ac_top_srcdir in
1037   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1038   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1039   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1040   esac;;
1041 esac
1042
1043     cd $ac_dir
1044     # Check for guested configure; otherwise get Cygnus style configure.
1045     if test -f $ac_srcdir/configure.gnu; then
1046       echo
1047       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1048     elif test -f $ac_srcdir/configure; then
1049       echo
1050       $SHELL $ac_srcdir/configure  --help=recursive
1051     elif test -f $ac_srcdir/configure.ac ||
1052            test -f $ac_srcdir/configure.in; then
1053       echo
1054       $ac_configure --help
1055     else
1056       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1057     fi
1058     cd $ac_popdir
1059   done
1060 fi
1061
1062 test -n "$ac_init_help" && exit 0
1063 if $ac_init_version; then
1064   cat <<\_ACEOF
1065
1066 Copyright (C) 2003 Free Software Foundation, Inc.
1067 This configure script is free software; the Free Software Foundation
1068 gives unlimited permission to copy, distribute and modify it.
1069 _ACEOF
1070   exit 0
1071 fi
1072 exec 5>config.log
1073 cat >&5 <<_ACEOF
1074 This file contains any messages produced by compilers while
1075 running configure, to aid debugging if configure makes a mistake.
1076
1077 It was created by $as_me, which was
1078 generated by GNU Autoconf 2.59.  Invocation command line was
1079
1080   $ $0 $@
1081
1082 _ACEOF
1083 {
1084 cat <<_ASUNAME
1085 ## --------- ##
1086 ## Platform. ##
1087 ## --------- ##
1088
1089 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1090 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1091 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1092 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1093 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1094
1095 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1096 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1097
1098 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1099 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1100 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1101 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1102 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1103 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1104 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1105
1106 _ASUNAME
1107
1108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1109 for as_dir in $PATH
1110 do
1111   IFS=$as_save_IFS
1112   test -z "$as_dir" && as_dir=.
1113   echo "PATH: $as_dir"
1114 done
1115
1116 } >&5
1117
1118 cat >&5 <<_ACEOF
1119
1120
1121 ## ----------- ##
1122 ## Core tests. ##
1123 ## ----------- ##
1124
1125 _ACEOF
1126
1127
1128 # Keep a trace of the command line.
1129 # Strip out --no-create and --no-recursion so they do not pile up.
1130 # Strip out --silent because we don't want to record it for future runs.
1131 # Also quote any args containing shell meta-characters.
1132 # Make two passes to allow for proper duplicate-argument suppression.
1133 ac_configure_args=
1134 ac_configure_args0=
1135 ac_configure_args1=
1136 ac_sep=
1137 ac_must_keep_next=false
1138 for ac_pass in 1 2
1139 do
1140   for ac_arg
1141   do
1142     case $ac_arg in
1143     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1144     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145     | -silent | --silent | --silen | --sile | --sil)
1146       continue ;;
1147     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1148       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1149     esac
1150     case $ac_pass in
1151     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1152     2)
1153       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1154       if test $ac_must_keep_next = true; then
1155         ac_must_keep_next=false # Got value, back to normal.
1156       else
1157         case $ac_arg in
1158           *=* | --config-cache | -C | -disable-* | --disable-* \
1159           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1160           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1161           | -with-* | --with-* | -without-* | --without-* | --x)
1162             case "$ac_configure_args0 " in
1163               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1164             esac
1165             ;;
1166           -* ) ac_must_keep_next=true ;;
1167         esac
1168       fi
1169       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1170       # Get rid of the leading space.
1171       ac_sep=" "
1172       ;;
1173     esac
1174   done
1175 done
1176 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1177 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1178
1179 # When interrupted or exit'd, cleanup temporary files, and complete
1180 # config.log.  We remove comments because anyway the quotes in there
1181 # would cause problems or look ugly.
1182 # WARNING: Be sure not to use single quotes in there, as some shells,
1183 # such as our DU 5.0 friend, will then `close' the trap.
1184 trap 'exit_status=$?
1185   # Save into config.log some information that might help in debugging.
1186   {
1187     echo
1188
1189     cat <<\_ASBOX
1190 ## ---------------- ##
1191 ## Cache variables. ##
1192 ## ---------------- ##
1193 _ASBOX
1194     echo
1195     # The following way of writing the cache mishandles newlines in values,
1196 {
1197   (set) 2>&1 |
1198     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1199     *ac_space=\ *)
1200       sed -n \
1201         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1202           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1203       ;;
1204     *)
1205       sed -n \
1206         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1207       ;;
1208     esac;
1209 }
1210     echo
1211
1212     cat <<\_ASBOX
1213 ## ----------------- ##
1214 ## Output variables. ##
1215 ## ----------------- ##
1216 _ASBOX
1217     echo
1218     for ac_var in $ac_subst_vars
1219     do
1220       eval ac_val=$`echo $ac_var`
1221       echo "$ac_var='"'"'$ac_val'"'"'"
1222     done | sort
1223     echo
1224
1225     if test -n "$ac_subst_files"; then
1226       cat <<\_ASBOX
1227 ## ------------- ##
1228 ## Output files. ##
1229 ## ------------- ##
1230 _ASBOX
1231       echo
1232       for ac_var in $ac_subst_files
1233       do
1234         eval ac_val=$`echo $ac_var`
1235         echo "$ac_var='"'"'$ac_val'"'"'"
1236       done | sort
1237       echo
1238     fi
1239
1240     if test -s confdefs.h; then
1241       cat <<\_ASBOX
1242 ## ----------- ##
1243 ## confdefs.h. ##
1244 ## ----------- ##
1245 _ASBOX
1246       echo
1247       sed "/^$/d" confdefs.h | sort
1248       echo
1249     fi
1250     test "$ac_signal" != 0 &&
1251       echo "$as_me: caught signal $ac_signal"
1252     echo "$as_me: exit $exit_status"
1253   } >&5
1254   rm -f core *.core &&
1255   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1256     exit $exit_status
1257      ' 0
1258 for ac_signal in 1 2 13 15; do
1259   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1260 done
1261 ac_signal=0
1262
1263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1264 rm -rf conftest* confdefs.h
1265 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1266 echo >confdefs.h
1267
1268 # Predefined preprocessor variables.
1269
1270 cat >>confdefs.h <<_ACEOF
1271 #define PACKAGE_NAME "$PACKAGE_NAME"
1272 _ACEOF
1273
1274
1275 cat >>confdefs.h <<_ACEOF
1276 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1277 _ACEOF
1278
1279
1280 cat >>confdefs.h <<_ACEOF
1281 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1282 _ACEOF
1283
1284
1285 cat >>confdefs.h <<_ACEOF
1286 #define PACKAGE_STRING "$PACKAGE_STRING"
1287 _ACEOF
1288
1289
1290 cat >>confdefs.h <<_ACEOF
1291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1292 _ACEOF
1293
1294
1295 # Let the site file select an alternate cache file if it wants to.
1296 # Prefer explicitly selected file to automatically selected ones.
1297 if test -z "$CONFIG_SITE"; then
1298   if test "x$prefix" != xNONE; then
1299     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1300   else
1301     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1302   fi
1303 fi
1304 for ac_site_file in $CONFIG_SITE; do
1305   if test -r "$ac_site_file"; then
1306     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1307 echo "$as_me: loading site script $ac_site_file" >&6;}
1308     sed 's/^/| /' "$ac_site_file" >&5
1309     . "$ac_site_file"
1310   fi
1311 done
1312
1313 if test -r "$cache_file"; then
1314   # Some versions of bash will fail to source /dev/null (special
1315   # files actually), so we avoid doing that.
1316   if test -f "$cache_file"; then
1317     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1318 echo "$as_me: loading cache $cache_file" >&6;}
1319     case $cache_file in
1320       [\\/]* | ?:[\\/]* ) . $cache_file;;
1321       *)                      . ./$cache_file;;
1322     esac
1323   fi
1324 else
1325   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1326 echo "$as_me: creating cache $cache_file" >&6;}
1327   >$cache_file
1328 fi
1329
1330 # Check that the precious variables saved in the cache have kept the same
1331 # value.
1332 ac_cache_corrupted=false
1333 for ac_var in `(set) 2>&1 |
1334                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1335   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1336   eval ac_new_set=\$ac_env_${ac_var}_set
1337   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1338   eval ac_new_val="\$ac_env_${ac_var}_value"
1339   case $ac_old_set,$ac_new_set in
1340     set,)
1341       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1342 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1343       ac_cache_corrupted=: ;;
1344     ,set)
1345       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1346 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1347       ac_cache_corrupted=: ;;
1348     ,);;
1349     *)
1350       if test "x$ac_old_val" != "x$ac_new_val"; then
1351         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1352 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1353         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1354 echo "$as_me:   former value:  $ac_old_val" >&2;}
1355         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1356 echo "$as_me:   current value: $ac_new_val" >&2;}
1357         ac_cache_corrupted=:
1358       fi;;
1359   esac
1360   # Pass precious variables to config.status.
1361   if test "$ac_new_set" = set; then
1362     case $ac_new_val in
1363     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1364       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1365     *) ac_arg=$ac_var=$ac_new_val ;;
1366     esac
1367     case " $ac_configure_args " in
1368       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1369       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1370     esac
1371   fi
1372 done
1373 if $ac_cache_corrupted; then
1374   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1375 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1376   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1377 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1378    { (exit 1); exit 1; }; }
1379 fi
1380
1381 ac_ext=c
1382 ac_cpp='$CPP $CPPFLAGS'
1383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 BUILD_DIR=`pwd`
1406 cd ..
1407 TOP_DIR=`pwd`
1408 cd ${BUILD_DIR}
1409
1410
1411 ac_aux_dir=
1412 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1413   if test -f $ac_dir/install-sh; then
1414     ac_aux_dir=$ac_dir
1415     ac_install_sh="$ac_aux_dir/install-sh -c"
1416     break
1417   elif test -f $ac_dir/install.sh; then
1418     ac_aux_dir=$ac_dir
1419     ac_install_sh="$ac_aux_dir/install.sh -c"
1420     break
1421   elif test -f $ac_dir/shtool; then
1422     ac_aux_dir=$ac_dir
1423     ac_install_sh="$ac_aux_dir/shtool install -c"
1424     break
1425   fi
1426 done
1427 if test -z "$ac_aux_dir"; then
1428   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1429 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1430    { (exit 1); exit 1; }; }
1431 fi
1432 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1433 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1434 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1435
1436           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1437
1438
1439
1440
1441
1442 for ac_prog in true
1443 do
1444   # Extract the first word of "$ac_prog", so it can be a program name with args.
1445 set dummy $ac_prog; ac_word=$2
1446 echo "$as_me:$LINENO: checking for $ac_word" >&5
1447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1448 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1449   echo $ECHO_N "(cached) $ECHO_C" >&6
1450 else
1451   case $TRUEPRG in
1452   [\\/]* | ?:[\\/]*)
1453   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1454   ;;
1455   *)
1456   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1457 for as_dir in $PATH
1458 do
1459   IFS=$as_save_IFS
1460   test -z "$as_dir" && as_dir=.
1461   for ac_exec_ext in '' $ac_executable_extensions; do
1462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1463     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1465     break 2
1466   fi
1467 done
1468 done
1469
1470   ;;
1471 esac
1472 fi
1473 TRUEPRG=$ac_cv_path_TRUEPRG
1474
1475 if test -n "$TRUEPRG"; then
1476   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1477 echo "${ECHO_T}$TRUEPRG" >&6
1478 else
1479   echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1481 fi
1482
1483   test -n "$TRUEPRG" && break
1484 done
1485 test -n "$TRUEPRG" || TRUEPRG=":"
1486
1487 for ac_prog in false
1488 do
1489   # Extract the first word of "$ac_prog", so it can be a program name with args.
1490 set dummy $ac_prog; ac_word=$2
1491 echo "$as_me:$LINENO: checking for $ac_word" >&5
1492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1494   echo $ECHO_N "(cached) $ECHO_C" >&6
1495 else
1496   case $FALSEPRG in
1497   [\\/]* | ?:[\\/]*)
1498   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1499   ;;
1500   *)
1501   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 for as_dir in $PATH
1503 do
1504   IFS=$as_save_IFS
1505   test -z "$as_dir" && as_dir=.
1506   for ac_exec_ext in '' $ac_executable_extensions; do
1507   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1509     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1510     break 2
1511   fi
1512 done
1513 done
1514
1515   ;;
1516 esac
1517 fi
1518 FALSEPRG=$ac_cv_path_FALSEPRG
1519
1520 if test -n "$FALSEPRG"; then
1521   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1522 echo "${ECHO_T}$FALSEPRG" >&6
1523 else
1524   echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528   test -n "$FALSEPRG" && break
1529 done
1530 test -n "$FALSEPRG" || FALSEPRG=":"
1531
1532
1533
1534 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1535 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1536 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1537 echo "configuring for bacula $VERSION ($DATE)"
1538
1539
1540
1541 ac_ext=c
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1546 if test -n "$ac_tool_prefix"; then
1547   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1549 echo "$as_me:$LINENO: checking for $ac_word" >&5
1550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551 if test "${ac_cv_prog_CC+set}" = set; then
1552   echo $ECHO_N "(cached) $ECHO_C" >&6
1553 else
1554   if test -n "$CC"; then
1555   ac_cv_prog_CC="$CC" # Let the user override the test.
1556 else
1557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1558 for as_dir in $PATH
1559 do
1560   IFS=$as_save_IFS
1561   test -z "$as_dir" && as_dir=.
1562   for ac_exec_ext in '' $ac_executable_extensions; do
1563   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566     break 2
1567   fi
1568 done
1569 done
1570
1571 fi
1572 fi
1573 CC=$ac_cv_prog_CC
1574 if test -n "$CC"; then
1575   echo "$as_me:$LINENO: result: $CC" >&5
1576 echo "${ECHO_T}$CC" >&6
1577 else
1578   echo "$as_me:$LINENO: result: no" >&5
1579 echo "${ECHO_T}no" >&6
1580 fi
1581
1582 fi
1583 if test -z "$ac_cv_prog_CC"; then
1584   ac_ct_CC=$CC
1585   # Extract the first word of "gcc", so it can be a program name with args.
1586 set dummy gcc; ac_word=$2
1587 echo "$as_me:$LINENO: checking for $ac_word" >&5
1588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1589 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1590   echo $ECHO_N "(cached) $ECHO_C" >&6
1591 else
1592   if test -n "$ac_ct_CC"; then
1593   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1594 else
1595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1596 for as_dir in $PATH
1597 do
1598   IFS=$as_save_IFS
1599   test -z "$as_dir" && as_dir=.
1600   for ac_exec_ext in '' $ac_executable_extensions; do
1601   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1602     ac_cv_prog_ac_ct_CC="gcc"
1603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1604     break 2
1605   fi
1606 done
1607 done
1608
1609 fi
1610 fi
1611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1612 if test -n "$ac_ct_CC"; then
1613   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1614 echo "${ECHO_T}$ac_ct_CC" >&6
1615 else
1616   echo "$as_me:$LINENO: result: no" >&5
1617 echo "${ECHO_T}no" >&6
1618 fi
1619
1620   CC=$ac_ct_CC
1621 else
1622   CC="$ac_cv_prog_CC"
1623 fi
1624
1625 if test -z "$CC"; then
1626   if test -n "$ac_tool_prefix"; then
1627   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}cc; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_CC+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$CC"; then
1635   ac_cv_prog_CC="$CC" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_CC="${ac_tool_prefix}cc"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 CC=$ac_cv_prog_CC
1654 if test -n "$CC"; then
1655   echo "$as_me:$LINENO: result: $CC" >&5
1656 echo "${ECHO_T}$CC" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 fi
1663 if test -z "$ac_cv_prog_CC"; then
1664   ac_ct_CC=$CC
1665   # Extract the first word of "cc", so it can be a program name with args.
1666 set dummy cc; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_CC"; then
1673   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_CC="cc"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689 fi
1690 fi
1691 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1692 if test -n "$ac_ct_CC"; then
1693   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1694 echo "${ECHO_T}$ac_ct_CC" >&6
1695 else
1696   echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1698 fi
1699
1700   CC=$ac_ct_CC
1701 else
1702   CC="$ac_cv_prog_CC"
1703 fi
1704
1705 fi
1706 if test -z "$CC"; then
1707   # Extract the first word of "cc", so it can be a program name with args.
1708 set dummy cc; ac_word=$2
1709 echo "$as_me:$LINENO: checking for $ac_word" >&5
1710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1711 if test "${ac_cv_prog_CC+set}" = set; then
1712   echo $ECHO_N "(cached) $ECHO_C" >&6
1713 else
1714   if test -n "$CC"; then
1715   ac_cv_prog_CC="$CC" # Let the user override the test.
1716 else
1717   ac_prog_rejected=no
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   for ac_exec_ext in '' $ac_executable_extensions; do
1724   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1726        ac_prog_rejected=yes
1727        continue
1728      fi
1729     ac_cv_prog_CC="cc"
1730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1731     break 2
1732   fi
1733 done
1734 done
1735
1736 if test $ac_prog_rejected = yes; then
1737   # We found a bogon in the path, so make sure we never use it.
1738   set dummy $ac_cv_prog_CC
1739   shift
1740   if test $# != 0; then
1741     # We chose a different compiler from the bogus one.
1742     # However, it has the same basename, so the bogon will be chosen
1743     # first if we set CC to just the basename; use the full file name.
1744     shift
1745     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1746   fi
1747 fi
1748 fi
1749 fi
1750 CC=$ac_cv_prog_CC
1751 if test -n "$CC"; then
1752   echo "$as_me:$LINENO: result: $CC" >&5
1753 echo "${ECHO_T}$CC" >&6
1754 else
1755   echo "$as_me:$LINENO: result: no" >&5
1756 echo "${ECHO_T}no" >&6
1757 fi
1758
1759 fi
1760 if test -z "$CC"; then
1761   if test -n "$ac_tool_prefix"; then
1762   for ac_prog in cl
1763   do
1764     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$CC"; then
1772   ac_cv_prog_CC="$CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 CC=$ac_cv_prog_CC
1791 if test -n "$CC"; then
1792   echo "$as_me:$LINENO: result: $CC" >&5
1793 echo "${ECHO_T}$CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799     test -n "$CC" && break
1800   done
1801 fi
1802 if test -z "$CC"; then
1803   ac_ct_CC=$CC
1804   for ac_prog in cl
1805 do
1806   # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$ac_ct_CC"; then
1814   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_ac_ct_CC="$ac_prog"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833 if test -n "$ac_ct_CC"; then
1834   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835 echo "${ECHO_T}$ac_ct_CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841   test -n "$ac_ct_CC" && break
1842 done
1843
1844   CC=$ac_ct_CC
1845 fi
1846
1847 fi
1848
1849
1850 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1851 See \`config.log' for more details." >&5
1852 echo "$as_me: error: no acceptable C compiler found in \$PATH
1853 See \`config.log' for more details." >&2;}
1854    { (exit 1); exit 1; }; }
1855
1856 # Provide some information about the compiler.
1857 echo "$as_me:$LINENO:" \
1858      "checking for C compiler version" >&5
1859 ac_compiler=`set X $ac_compile; echo $2`
1860 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1861   (eval $ac_compiler --version </dev/null >&5) 2>&5
1862   ac_status=$?
1863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1864   (exit $ac_status); }
1865 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1866   (eval $ac_compiler -v </dev/null >&5) 2>&5
1867   ac_status=$?
1868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1869   (exit $ac_status); }
1870 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1871   (eval $ac_compiler -V </dev/null >&5) 2>&5
1872   ac_status=$?
1873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874   (exit $ac_status); }
1875
1876 cat >conftest.$ac_ext <<_ACEOF
1877 /* confdefs.h.  */
1878 _ACEOF
1879 cat confdefs.h >>conftest.$ac_ext
1880 cat >>conftest.$ac_ext <<_ACEOF
1881 /* end confdefs.h.  */
1882
1883 int
1884 main ()
1885 {
1886
1887   ;
1888   return 0;
1889 }
1890 _ACEOF
1891 ac_clean_files_save=$ac_clean_files
1892 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1893 # Try to create an executable without -o first, disregard a.out.
1894 # It will help us diagnose broken compilers, and finding out an intuition
1895 # of exeext.
1896 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1897 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1898 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1899 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1900   (eval $ac_link_default) 2>&5
1901   ac_status=$?
1902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903   (exit $ac_status); }; then
1904   # Find the output, starting from the most likely.  This scheme is
1905 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1906 # resort.
1907
1908 # Be careful to initialize this variable, since it used to be cached.
1909 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1910 ac_cv_exeext=
1911 # b.out is created by i960 compilers.
1912 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1913 do
1914   test -f "$ac_file" || continue
1915   case $ac_file in
1916     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1917         ;;
1918     conftest.$ac_ext )
1919         # This is the source file.
1920         ;;
1921     [ab].out )
1922         # We found the default executable, but exeext='' is most
1923         # certainly right.
1924         break;;
1925     *.* )
1926         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1927         # FIXME: I believe we export ac_cv_exeext for Libtool,
1928         # but it would be cool to find out if it's true.  Does anybody
1929         # maintain Libtool? --akim.
1930         export ac_cv_exeext
1931         break;;
1932     * )
1933         break;;
1934   esac
1935 done
1936 else
1937   echo "$as_me: failed program was:" >&5
1938 sed 's/^/| /' conftest.$ac_ext >&5
1939
1940 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1941 See \`config.log' for more details." >&5
1942 echo "$as_me: error: C compiler cannot create executables
1943 See \`config.log' for more details." >&2;}
1944    { (exit 77); exit 77; }; }
1945 fi
1946
1947 ac_exeext=$ac_cv_exeext
1948 echo "$as_me:$LINENO: result: $ac_file" >&5
1949 echo "${ECHO_T}$ac_file" >&6
1950
1951 # Check the compiler produces executables we can run.  If not, either
1952 # the compiler is broken, or we cross compile.
1953 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1954 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1956 # If not cross compiling, check that we can run a simple program.
1957 if test "$cross_compiling" != yes; then
1958   if { ac_try='./$ac_file'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; }; then
1964     cross_compiling=no
1965   else
1966     if test "$cross_compiling" = maybe; then
1967         cross_compiling=yes
1968     else
1969         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1970 If you meant to cross compile, use \`--host'.
1971 See \`config.log' for more details." >&5
1972 echo "$as_me: error: cannot run C compiled programs.
1973 If you meant to cross compile, use \`--host'.
1974 See \`config.log' for more details." >&2;}
1975    { (exit 1); exit 1; }; }
1976     fi
1977   fi
1978 fi
1979 echo "$as_me:$LINENO: result: yes" >&5
1980 echo "${ECHO_T}yes" >&6
1981
1982 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1983 ac_clean_files=$ac_clean_files_save
1984 # Check the compiler produces executables we can run.  If not, either
1985 # the compiler is broken, or we cross compile.
1986 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1987 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1988 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1989 echo "${ECHO_T}$cross_compiling" >&6
1990
1991 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1992 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1994   (eval $ac_link) 2>&5
1995   ac_status=$?
1996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1997   (exit $ac_status); }; then
1998   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1999 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2000 # work properly (i.e., refer to `conftest.exe'), while it won't with
2001 # `rm'.
2002 for ac_file in conftest.exe conftest conftest.*; do
2003   test -f "$ac_file" || continue
2004   case $ac_file in
2005     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2006     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2007           export ac_cv_exeext
2008           break;;
2009     * ) break;;
2010   esac
2011 done
2012 else
2013   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2014 See \`config.log' for more details." >&5
2015 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2016 See \`config.log' for more details." >&2;}
2017    { (exit 1); exit 1; }; }
2018 fi
2019
2020 rm -f conftest$ac_cv_exeext
2021 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2022 echo "${ECHO_T}$ac_cv_exeext" >&6
2023
2024 rm -f conftest.$ac_ext
2025 EXEEXT=$ac_cv_exeext
2026 ac_exeext=$EXEEXT
2027 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2028 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2029 if test "${ac_cv_objext+set}" = set; then
2030   echo $ECHO_N "(cached) $ECHO_C" >&6
2031 else
2032   cat >conftest.$ac_ext <<_ACEOF
2033 /* confdefs.h.  */
2034 _ACEOF
2035 cat confdefs.h >>conftest.$ac_ext
2036 cat >>conftest.$ac_ext <<_ACEOF
2037 /* end confdefs.h.  */
2038
2039 int
2040 main ()
2041 {
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 rm -f conftest.o conftest.obj
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049   (eval $ac_compile) 2>&5
2050   ac_status=$?
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); }; then
2053   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2054   case $ac_file in
2055     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2056     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2057        break;;
2058   esac
2059 done
2060 else
2061   echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2063
2064 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2065 See \`config.log' for more details." >&5
2066 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2067 See \`config.log' for more details." >&2;}
2068    { (exit 1); exit 1; }; }
2069 fi
2070
2071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2072 fi
2073 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2074 echo "${ECHO_T}$ac_cv_objext" >&6
2075 OBJEXT=$ac_cv_objext
2076 ac_objext=$OBJEXT
2077 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2078 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2079 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2080   echo $ECHO_N "(cached) $ECHO_C" >&6
2081 else
2082   cat >conftest.$ac_ext <<_ACEOF
2083 /* confdefs.h.  */
2084 _ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h.  */
2088
2089 int
2090 main ()
2091 {
2092 #ifndef __GNUC__
2093        choke me
2094 #endif
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>conftest.er1
2103   ac_status=$?
2104   grep -v '^ *+' conftest.er1 >conftest.err
2105   rm -f conftest.er1
2106   cat conftest.err >&5
2107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108   (exit $ac_status); } &&
2109          { ac_try='test -z "$ac_c_werror_flag"
2110                          || test ! -s conftest.err'
2111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; } &&
2116          { ac_try='test -s conftest.$ac_objext'
2117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   ac_compiler_gnu=yes
2123 else
2124   echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2126
2127 ac_compiler_gnu=no
2128 fi
2129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2130 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2131
2132 fi
2133 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2134 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2135 GCC=`test $ac_compiler_gnu = yes && echo yes`
2136 ac_test_CFLAGS=${CFLAGS+set}
2137 ac_save_CFLAGS=$CFLAGS
2138 CFLAGS="-g"
2139 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2140 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2141 if test "${ac_cv_prog_cc_g+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   cat >conftest.$ac_ext <<_ACEOF
2145 /* confdefs.h.  */
2146 _ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h.  */
2150
2151 int
2152 main ()
2153 {
2154
2155   ;
2156   return 0;
2157 }
2158 _ACEOF
2159 rm -f conftest.$ac_objext
2160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2161   (eval $ac_compile) 2>conftest.er1
2162   ac_status=$?
2163   grep -v '^ *+' conftest.er1 >conftest.err
2164   rm -f conftest.er1
2165   cat conftest.err >&5
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); } &&
2168          { ac_try='test -z "$ac_c_werror_flag"
2169                          || test ! -s conftest.err'
2170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2171   (eval $ac_try) 2>&5
2172   ac_status=$?
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); }; } &&
2175          { ac_try='test -s conftest.$ac_objext'
2176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2177   (eval $ac_try) 2>&5
2178   ac_status=$?
2179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180   (exit $ac_status); }; }; then
2181   ac_cv_prog_cc_g=yes
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 ac_cv_prog_cc_g=no
2187 fi
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 fi
2190 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2191 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2192 if test "$ac_test_CFLAGS" = set; then
2193   CFLAGS=$ac_save_CFLAGS
2194 elif test $ac_cv_prog_cc_g = yes; then
2195   if test "$GCC" = yes; then
2196     CFLAGS="-g -O2"
2197   else
2198     CFLAGS="-g"
2199   fi
2200 else
2201   if test "$GCC" = yes; then
2202     CFLAGS="-O2"
2203   else
2204     CFLAGS=
2205   fi
2206 fi
2207 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2208 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2209 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2210   echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212   ac_cv_prog_cc_stdc=no
2213 ac_save_CC=$CC
2214 cat >conftest.$ac_ext <<_ACEOF
2215 /* confdefs.h.  */
2216 _ACEOF
2217 cat confdefs.h >>conftest.$ac_ext
2218 cat >>conftest.$ac_ext <<_ACEOF
2219 /* end confdefs.h.  */
2220 #include <stdarg.h>
2221 #include <stdio.h>
2222 #include <sys/types.h>
2223 #include <sys/stat.h>
2224 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2225 struct buf { int x; };
2226 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2227 static char *e (p, i)
2228      char **p;
2229      int i;
2230 {
2231   return p[i];
2232 }
2233 static char *f (char * (*g) (char **, int), char **p, ...)
2234 {
2235   char *s;
2236   va_list v;
2237   va_start (v,p);
2238   s = g (p, va_arg (v,int));
2239   va_end (v);
2240   return s;
2241 }
2242
2243 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2244    function prototypes and stuff, but not '\xHH' hex character constants.
2245    These don't provoke an error unfortunately, instead are silently treated
2246    as 'x'.  The following induces an error, until -std1 is added to get
2247    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2248    array size at least.  It's necessary to write '\x00'==0 to get something
2249    that's true only with -std1.  */
2250 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2251
2252 int test (int i, double x);
2253 struct s1 {int (*f) (int a);};
2254 struct s2 {int (*f) (double a);};
2255 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2256 int argc;
2257 char **argv;
2258 int
2259 main ()
2260 {
2261 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2262   ;
2263   return 0;
2264 }
2265 _ACEOF
2266 # Don't try gcc -ansi; that turns off useful extensions and
2267 # breaks some systems' header files.
2268 # AIX                   -qlanglvl=ansi
2269 # Ultrix and OSF/1      -std1
2270 # HP-UX 10.20 and later -Ae
2271 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2272 # SVR4                  -Xc -D__EXTENSIONS__
2273 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2274 do
2275   CC="$ac_save_CC $ac_arg"
2276   rm -f conftest.$ac_objext
2277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2278   (eval $ac_compile) 2>conftest.er1
2279   ac_status=$?
2280   grep -v '^ *+' conftest.er1 >conftest.err
2281   rm -f conftest.er1
2282   cat conftest.err >&5
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); } &&
2285          { ac_try='test -z "$ac_c_werror_flag"
2286                          || test ! -s conftest.err'
2287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288   (eval $ac_try) 2>&5
2289   ac_status=$?
2290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291   (exit $ac_status); }; } &&
2292          { ac_try='test -s conftest.$ac_objext'
2293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2294   (eval $ac_try) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; }; then
2298   ac_cv_prog_cc_stdc=$ac_arg
2299 break
2300 else
2301   echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 fi
2305 rm -f conftest.err conftest.$ac_objext
2306 done
2307 rm -f conftest.$ac_ext conftest.$ac_objext
2308 CC=$ac_save_CC
2309
2310 fi
2311
2312 case "x$ac_cv_prog_cc_stdc" in
2313   x|xno)
2314     echo "$as_me:$LINENO: result: none needed" >&5
2315 echo "${ECHO_T}none needed" >&6 ;;
2316   *)
2317     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2319     CC="$CC $ac_cv_prog_cc_stdc" ;;
2320 esac
2321
2322 # Some people use a C++ compiler to compile C.  Since we use `exit',
2323 # in C++ we need to declare it.  In case someone uses the same compiler
2324 # for both compiling C and C++ we need to have the C++ compiler decide
2325 # the declaration of exit, since it's the most demanding environment.
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #ifndef __cplusplus
2328   choke me
2329 #endif
2330 _ACEOF
2331 rm -f conftest.$ac_objext
2332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2333   (eval $ac_compile) 2>conftest.er1
2334   ac_status=$?
2335   grep -v '^ *+' conftest.er1 >conftest.err
2336   rm -f conftest.er1
2337   cat conftest.err >&5
2338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2339   (exit $ac_status); } &&
2340          { ac_try='test -z "$ac_c_werror_flag"
2341                          || test ! -s conftest.err'
2342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2343   (eval $ac_try) 2>&5
2344   ac_status=$?
2345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346   (exit $ac_status); }; } &&
2347          { ac_try='test -s conftest.$ac_objext'
2348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2349   (eval $ac_try) 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }; }; then
2353   for ac_declaration in \
2354    '' \
2355    'extern "C" void std::exit (int) throw (); using std::exit;' \
2356    'extern "C" void std::exit (int); using std::exit;' \
2357    'extern "C" void exit (int) throw ();' \
2358    'extern "C" void exit (int);' \
2359    'void exit (int);'
2360 do
2361   cat >conftest.$ac_ext <<_ACEOF
2362 /* confdefs.h.  */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h.  */
2367 $ac_declaration
2368 #include <stdlib.h>
2369 int
2370 main ()
2371 {
2372 exit (42);
2373   ;
2374   return 0;
2375 }
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379   (eval $ac_compile) 2>conftest.er1
2380   ac_status=$?
2381   grep -v '^ *+' conftest.er1 >conftest.err
2382   rm -f conftest.er1
2383   cat conftest.err >&5
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); } &&
2386          { ac_try='test -z "$ac_c_werror_flag"
2387                          || test ! -s conftest.err'
2388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2389   (eval $ac_try) 2>&5
2390   ac_status=$?
2391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392   (exit $ac_status); }; } &&
2393          { ac_try='test -s conftest.$ac_objext'
2394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2395   (eval $ac_try) 2>&5
2396   ac_status=$?
2397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }; }; then
2399   :
2400 else
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 continue
2405 fi
2406 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2407   cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h.  */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h.  */
2413 $ac_declaration
2414 int
2415 main ()
2416 {
2417 exit (42);
2418   ;
2419   return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424   (eval $ac_compile) 2>conftest.er1
2425   ac_status=$?
2426   grep -v '^ *+' conftest.er1 >conftest.err
2427   rm -f conftest.er1
2428   cat conftest.err >&5
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); } &&
2431          { ac_try='test -z "$ac_c_werror_flag"
2432                          || test ! -s conftest.err'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; } &&
2438          { ac_try='test -s conftest.$ac_objext'
2439   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2440   (eval $ac_try) 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }; }; then
2444   break
2445 else
2446   echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2448
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 done
2452 rm -f conftest*
2453 if test -n "$ac_declaration"; then
2454   echo '#ifdef __cplusplus' >>confdefs.h
2455   echo $ac_declaration      >>confdefs.h
2456   echo '#endif'             >>confdefs.h
2457 fi
2458
2459 else
2460   echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2462
2463 fi
2464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2465 ac_ext=c
2466 ac_cpp='$CPP $CPPFLAGS'
2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2470
2471 ac_ext=cc
2472 ac_cpp='$CXXCPP $CPPFLAGS'
2473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2476 if test -n "$ac_tool_prefix"; then
2477   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2478   do
2479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2481 echo "$as_me:$LINENO: checking for $ac_word" >&5
2482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2483 if test "${ac_cv_prog_CXX+set}" = set; then
2484   echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486   if test -n "$CXX"; then
2487   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2488 else
2489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 for as_dir in $PATH
2491 do
2492   IFS=$as_save_IFS
2493   test -z "$as_dir" && as_dir=.
2494   for ac_exec_ext in '' $ac_executable_extensions; do
2495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2496     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2498     break 2
2499   fi
2500 done
2501 done
2502
2503 fi
2504 fi
2505 CXX=$ac_cv_prog_CXX
2506 if test -n "$CXX"; then
2507   echo "$as_me:$LINENO: result: $CXX" >&5
2508 echo "${ECHO_T}$CXX" >&6
2509 else
2510   echo "$as_me:$LINENO: result: no" >&5
2511 echo "${ECHO_T}no" >&6
2512 fi
2513
2514     test -n "$CXX" && break
2515   done
2516 fi
2517 if test -z "$CXX"; then
2518   ac_ct_CXX=$CXX
2519   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2520 do
2521   # Extract the first word of "$ac_prog", so it can be a program name with args.
2522 set dummy $ac_prog; ac_word=$2
2523 echo "$as_me:$LINENO: checking for $ac_word" >&5
2524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2525 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2526   echo $ECHO_N "(cached) $ECHO_C" >&6
2527 else
2528   if test -n "$ac_ct_CXX"; then
2529   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2530 else
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 for as_dir in $PATH
2533 do
2534   IFS=$as_save_IFS
2535   test -z "$as_dir" && as_dir=.
2536   for ac_exec_ext in '' $ac_executable_extensions; do
2537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2538     ac_cv_prog_ac_ct_CXX="$ac_prog"
2539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540     break 2
2541   fi
2542 done
2543 done
2544
2545 fi
2546 fi
2547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2548 if test -n "$ac_ct_CXX"; then
2549   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2550 echo "${ECHO_T}$ac_ct_CXX" >&6
2551 else
2552   echo "$as_me:$LINENO: result: no" >&5
2553 echo "${ECHO_T}no" >&6
2554 fi
2555
2556   test -n "$ac_ct_CXX" && break
2557 done
2558 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2559
2560   CXX=$ac_ct_CXX
2561 fi
2562
2563
2564 # Provide some information about the compiler.
2565 echo "$as_me:$LINENO:" \
2566      "checking for C++ compiler version" >&5
2567 ac_compiler=`set X $ac_compile; echo $2`
2568 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2569   (eval $ac_compiler --version </dev/null >&5) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }
2573 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2574   (eval $ac_compiler -v </dev/null >&5) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }
2578 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2579   (eval $ac_compiler -V </dev/null >&5) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }
2583
2584 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2585 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2586 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2587   echo $ECHO_N "(cached) $ECHO_C" >&6
2588 else
2589   cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595
2596 int
2597 main ()
2598 {
2599 #ifndef __GNUC__
2600        choke me
2601 #endif
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 rm -f conftest.$ac_objext
2608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2609   (eval $ac_compile) 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } &&
2616          { ac_try='test -z "$ac_cxx_werror_flag"
2617                          || test ! -s conftest.err'
2618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619   (eval $ac_try) 2>&5
2620   ac_status=$?
2621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622   (exit $ac_status); }; } &&
2623          { ac_try='test -s conftest.$ac_objext'
2624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625   (eval $ac_try) 2>&5
2626   ac_status=$?
2627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628   (exit $ac_status); }; }; then
2629   ac_compiler_gnu=yes
2630 else
2631   echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_compiler_gnu=no
2635 fi
2636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2638
2639 fi
2640 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2641 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2642 GXX=`test $ac_compiler_gnu = yes && echo yes`
2643 ac_test_CXXFLAGS=${CXXFLAGS+set}
2644 ac_save_CXXFLAGS=$CXXFLAGS
2645 CXXFLAGS="-g"
2646 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2647 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2648 if test "${ac_cv_prog_cxx_g+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   cat >conftest.$ac_ext <<_ACEOF
2652 /* confdefs.h.  */
2653 _ACEOF
2654 cat confdefs.h >>conftest.$ac_ext
2655 cat >>conftest.$ac_ext <<_ACEOF
2656 /* end confdefs.h.  */
2657
2658 int
2659 main ()
2660 {
2661
2662   ;
2663   return 0;
2664 }
2665 _ACEOF
2666 rm -f conftest.$ac_objext
2667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2668   (eval $ac_compile) 2>conftest.er1
2669   ac_status=$?
2670   grep -v '^ *+' conftest.er1 >conftest.err
2671   rm -f conftest.er1
2672   cat conftest.err >&5
2673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674   (exit $ac_status); } &&
2675          { ac_try='test -z "$ac_cxx_werror_flag"
2676                          || test ! -s conftest.err'
2677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2678   (eval $ac_try) 2>&5
2679   ac_status=$?
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); }; } &&
2682          { ac_try='test -s conftest.$ac_objext'
2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684   (eval $ac_try) 2>&5
2685   ac_status=$?
2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687   (exit $ac_status); }; }; then
2688   ac_cv_prog_cxx_g=yes
2689 else
2690   echo "$as_me: failed program was:" >&5
2691 sed 's/^/| /' conftest.$ac_ext >&5
2692
2693 ac_cv_prog_cxx_g=no
2694 fi
2695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2696 fi
2697 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2698 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2699 if test "$ac_test_CXXFLAGS" = set; then
2700   CXXFLAGS=$ac_save_CXXFLAGS
2701 elif test $ac_cv_prog_cxx_g = yes; then
2702   if test "$GXX" = yes; then
2703     CXXFLAGS="-g -O2"
2704   else
2705     CXXFLAGS="-g"
2706   fi
2707 else
2708   if test "$GXX" = yes; then
2709     CXXFLAGS="-O2"
2710   else
2711     CXXFLAGS=
2712   fi
2713 fi
2714 for ac_declaration in \
2715    '' \
2716    'extern "C" void std::exit (int) throw (); using std::exit;' \
2717    'extern "C" void std::exit (int); using std::exit;' \
2718    'extern "C" void exit (int) throw ();' \
2719    'extern "C" void exit (int);' \
2720    'void exit (int);'
2721 do
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728 $ac_declaration
2729 #include <stdlib.h>
2730 int
2731 main ()
2732 {
2733 exit (42);
2734   ;
2735   return 0;
2736 }
2737 _ACEOF
2738 rm -f conftest.$ac_objext
2739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2740   (eval $ac_compile) 2>conftest.er1
2741   ac_status=$?
2742   grep -v '^ *+' conftest.er1 >conftest.err
2743   rm -f conftest.er1
2744   cat conftest.err >&5
2745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746   (exit $ac_status); } &&
2747          { ac_try='test -z "$ac_cxx_werror_flag"
2748                          || test ! -s conftest.err'
2749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750   (eval $ac_try) 2>&5
2751   ac_status=$?
2752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); }; } &&
2754          { ac_try='test -s conftest.$ac_objext'
2755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756   (eval $ac_try) 2>&5
2757   ac_status=$?
2758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759   (exit $ac_status); }; }; then
2760   :
2761 else
2762   echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2764
2765 continue
2766 fi
2767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2768   cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h.  */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h.  */
2774 $ac_declaration
2775 int
2776 main ()
2777 {
2778 exit (42);
2779   ;
2780   return 0;
2781 }
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785   (eval $ac_compile) 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_cxx_werror_flag"
2793                          || test ! -s conftest.err'
2794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795   (eval $ac_try) 2>&5
2796   ac_status=$?
2797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798   (exit $ac_status); }; } &&
2799          { ac_try='test -s conftest.$ac_objext'
2800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801   (eval $ac_try) 2>&5
2802   ac_status=$?
2803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804   (exit $ac_status); }; }; then
2805   break
2806 else
2807   echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2809
2810 fi
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2812 done
2813 rm -f conftest*
2814 if test -n "$ac_declaration"; then
2815   echo '#ifdef __cplusplus' >>confdefs.h
2816   echo $ac_declaration      >>confdefs.h
2817   echo '#endif'             >>confdefs.h
2818 fi
2819
2820 ac_ext=c
2821 ac_cpp='$CPP $CPPFLAGS'
2822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2825
2826 if test "x$CC" != xcc; then
2827   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2828 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2829 else
2830   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2831 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2832 fi
2833 set dummy $CC; ac_cc=`echo $2 |
2834                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2835 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2836   echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838   cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844
2845 int
2846 main ()
2847 {
2848
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 # Make sure it works both with $CC and with simple cc.
2854 # We do the test twice because some compilers refuse to overwrite an
2855 # existing .o file with -o, though they will create one.
2856 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2857 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } &&
2862    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); };
2867 then
2868   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2869   if test "x$CC" != xcc; then
2870     # Test first that cc exists at all.
2871     if { ac_try='cc -c conftest.$ac_ext >&5'
2872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); }; }; then
2877       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2878       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879   (eval $ac_try) 2>&5
2880   ac_status=$?
2881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882   (exit $ac_status); } &&
2883          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2884   (eval $ac_try) 2>&5
2885   ac_status=$?
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); };
2888       then
2889         # cc works too.
2890         :
2891       else
2892         # cc exists but doesn't like -o.
2893         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2894       fi
2895     fi
2896   fi
2897 else
2898   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2899 fi
2900 rm -f conftest*
2901
2902 fi
2903 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2904   echo "$as_me:$LINENO: result: yes" >&5
2905 echo "${ECHO_T}yes" >&6
2906 else
2907   echo "$as_me:$LINENO: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909
2910 cat >>confdefs.h <<\_ACEOF
2911 #define NO_MINUS_C_MINUS_O 1
2912 _ACEOF
2913
2914 fi
2915
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2923 # On Suns, sometimes $CPP names a directory.
2924 if test -n "$CPP" && test -d "$CPP"; then
2925   CPP=
2926 fi
2927 if test -z "$CPP"; then
2928   if test "${ac_cv_prog_CPP+set}" = set; then
2929   echo $ECHO_N "(cached) $ECHO_C" >&6
2930 else
2931       # Double quotes because CPP needs to be expanded
2932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2933     do
2934       ac_preproc_ok=false
2935 for ac_c_preproc_warn_flag in '' yes
2936 do
2937   # Use a header file that comes with gcc, so configuring glibc
2938   # with a fresh cross-compiler works.
2939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2940   # <limits.h> exists even on freestanding compilers.
2941   # On the NeXT, cc -E runs the code through the compiler's parser,
2942   # not just through cpp. "Syntax error" is here to catch this case.
2943   cat >conftest.$ac_ext <<_ACEOF
2944 /* confdefs.h.  */
2945 _ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h.  */
2949 #ifdef __STDC__
2950 # include <limits.h>
2951 #else
2952 # include <assert.h>
2953 #endif
2954                      Syntax error
2955 _ACEOF
2956 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2957   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2958   ac_status=$?
2959   grep -v '^ *+' conftest.er1 >conftest.err
2960   rm -f conftest.er1
2961   cat conftest.err >&5
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } >/dev/null; then
2964   if test -s conftest.err; then
2965     ac_cpp_err=$ac_c_preproc_warn_flag
2966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2967   else
2968     ac_cpp_err=
2969   fi
2970 else
2971   ac_cpp_err=yes
2972 fi
2973 if test -z "$ac_cpp_err"; then
2974   :
2975 else
2976   echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979   # Broken: fails on valid input.
2980 continue
2981 fi
2982 rm -f conftest.err conftest.$ac_ext
2983
2984   # OK, works on sane cases.  Now check whether non-existent headers
2985   # can be detected and how.
2986   cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h.  */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h.  */
2992 #include <ac_nonexistent.h>
2993 _ACEOF
2994 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2995   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2996   ac_status=$?
2997   grep -v '^ *+' conftest.er1 >conftest.err
2998   rm -f conftest.er1
2999   cat conftest.err >&5
3000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001   (exit $ac_status); } >/dev/null; then
3002   if test -s conftest.err; then
3003     ac_cpp_err=$ac_c_preproc_warn_flag
3004     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3005   else
3006     ac_cpp_err=
3007   fi
3008 else
3009   ac_cpp_err=yes
3010 fi
3011 if test -z "$ac_cpp_err"; then
3012   # Broken: success on invalid input.
3013 continue
3014 else
3015   echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3017
3018   # Passes both tests.
3019 ac_preproc_ok=:
3020 break
3021 fi
3022 rm -f conftest.err conftest.$ac_ext
3023
3024 done
3025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3026 rm -f conftest.err conftest.$ac_ext
3027 if $ac_preproc_ok; then
3028   break
3029 fi
3030
3031     done
3032     ac_cv_prog_CPP=$CPP
3033
3034 fi
3035   CPP=$ac_cv_prog_CPP
3036 else
3037   ac_cv_prog_CPP=$CPP
3038 fi
3039 echo "$as_me:$LINENO: result: $CPP" >&5
3040 echo "${ECHO_T}$CPP" >&6
3041 ac_preproc_ok=false
3042 for ac_c_preproc_warn_flag in '' yes
3043 do
3044   # Use a header file that comes with gcc, so configuring glibc
3045   # with a fresh cross-compiler works.
3046   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047   # <limits.h> exists even on freestanding compilers.
3048   # On the NeXT, cc -E runs the code through the compiler's parser,
3049   # not just through cpp. "Syntax error" is here to catch this case.
3050   cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056 #ifdef __STDC__
3057 # include <limits.h>
3058 #else
3059 # include <assert.h>
3060 #endif
3061                      Syntax error
3062 _ACEOF
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } >/dev/null; then
3071   if test -s conftest.err; then
3072     ac_cpp_err=$ac_c_preproc_warn_flag
3073     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   :
3082 else
3083   echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3085
3086   # Broken: fails on valid input.
3087 continue
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091   # OK, works on sane cases.  Now check whether non-existent headers
3092   # can be detected and how.
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 #include <ac_nonexistent.h>
3100 _ACEOF
3101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3102   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3103   ac_status=$?
3104   grep -v '^ *+' conftest.er1 >conftest.err
3105   rm -f conftest.er1
3106   cat conftest.err >&5
3107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108   (exit $ac_status); } >/dev/null; then
3109   if test -s conftest.err; then
3110     ac_cpp_err=$ac_c_preproc_warn_flag
3111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3112   else
3113     ac_cpp_err=
3114   fi
3115 else
3116   ac_cpp_err=yes
3117 fi
3118 if test -z "$ac_cpp_err"; then
3119   # Broken: success on invalid input.
3120 continue
3121 else
3122   echo "$as_me: failed program was:" >&5
3123 sed 's/^/| /' conftest.$ac_ext >&5
3124
3125   # Passes both tests.
3126 ac_preproc_ok=:
3127 break
3128 fi
3129 rm -f conftest.err conftest.$ac_ext
3130
3131 done
3132 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3133 rm -f conftest.err conftest.$ac_ext
3134 if $ac_preproc_ok; then
3135   :
3136 else
3137   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3138 See \`config.log' for more details." >&5
3139 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3140 See \`config.log' for more details." >&2;}
3141    { (exit 1); exit 1; }; }
3142 fi
3143
3144 ac_ext=c
3145 ac_cpp='$CPP $CPPFLAGS'
3146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151 echo "$as_me:$LINENO: checking for egrep" >&5
3152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3153 if test "${ac_cv_prog_egrep+set}" = set; then
3154   echo $ECHO_N "(cached) $ECHO_C" >&6
3155 else
3156   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3157     then ac_cv_prog_egrep='grep -E'
3158     else ac_cv_prog_egrep='egrep'
3159     fi
3160 fi
3161 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3162 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3163  EGREP=$ac_cv_prog_egrep
3164
3165
3166 if test $ac_cv_c_compiler_gnu = yes; then
3167     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3168 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3169 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3170   echo $ECHO_N "(cached) $ECHO_C" >&6
3171 else
3172     ac_pattern="Autoconf.*'x'"
3173   cat >conftest.$ac_ext <<_ACEOF
3174 /* confdefs.h.  */
3175 _ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h.  */
3179 #include <sgtty.h>
3180 Autoconf TIOCGETP
3181 _ACEOF
3182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3183   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3184   ac_cv_prog_gcc_traditional=yes
3185 else
3186   ac_cv_prog_gcc_traditional=no
3187 fi
3188 rm -f conftest*
3189
3190
3191   if test $ac_cv_prog_gcc_traditional = no; then
3192     cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198 #include <termio.h>
3199 Autoconf TCGETA
3200 _ACEOF
3201 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3202   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3203   ac_cv_prog_gcc_traditional=yes
3204 fi
3205 rm -f conftest*
3206
3207   fi
3208 fi
3209 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3210 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3211   if test $ac_cv_prog_gcc_traditional = yes; then
3212     CC="$CC -traditional"
3213   fi
3214 fi
3215
3216 BASECC=`basename $CC`
3217 have_gcc=no
3218 if test "x$BASECC" = xgcc; then
3219    cat >>confdefs.h <<\_ACEOF
3220 #define HAVE_GCC 1
3221 _ACEOF
3222
3223    have_gcc=yes
3224 fi
3225 # Extract the first word of "$CXX", so it can be a program name with args.
3226 set dummy $CXX; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_path_CXX+set}" = set; then
3230   echo $ECHO_N "(cached) $ECHO_C" >&6
3231 else
3232   case $CXX in
3233   [\\/]* | ?:[\\/]*)
3234   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3235   ;;
3236   *)
3237   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3239 do
3240   IFS=$as_save_IFS
3241   test -z "$as_dir" && as_dir=.
3242   for ac_exec_ext in '' $ac_executable_extensions; do
3243   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3244     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3246     break 2
3247   fi
3248 done
3249 done
3250
3251   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3252   ;;
3253 esac
3254 fi
3255 CXX=$ac_cv_path_CXX
3256
3257 if test -n "$CXX"; then
3258   echo "$as_me:$LINENO: result: $CXX" >&5
3259 echo "${ECHO_T}$CXX" >&6
3260 else
3261   echo "$as_me:$LINENO: result: no" >&5
3262 echo "${ECHO_T}no" >&6
3263 fi
3264
3265 if test ! -e $CXX; then
3266    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3267 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3268    { (exit 1); exit 1; }; }
3269 fi
3270
3271 # Find a good install program.  We prefer a C program (faster),
3272 # so one script is as good as another.  But avoid the broken or
3273 # incompatible versions:
3274 # SysV /etc/install, /usr/sbin/install
3275 # SunOS /usr/etc/install
3276 # IRIX /sbin/install
3277 # AIX /bin/install
3278 # AmigaOS /C/install, which installs bootblocks on floppy discs
3279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3282 # OS/2's system install, which has a completely different semantic
3283 # ./install, which can be erroneously created by make from ./install.sh.
3284 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3286 if test -z "$INSTALL"; then
3287 if test "${ac_cv_path_install+set}" = set; then
3288   echo $ECHO_N "(cached) $ECHO_C" >&6
3289 else
3290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3292 do
3293   IFS=$as_save_IFS
3294   test -z "$as_dir" && as_dir=.
3295   # Account for people who put trailing slashes in PATH elements.
3296 case $as_dir/ in
3297   ./ | .// | /cC/* | \
3298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3300   /usr/ucb/* ) ;;
3301   *)
3302     # OSF1 and SCO ODT 3.0 have their own names for install.
3303     # Don't use installbsd from OSF since it installs stuff as root
3304     # by default.
3305     for ac_prog in ginstall scoinst install; do
3306       for ac_exec_ext in '' $ac_executable_extensions; do
3307         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3308           if test $ac_prog = install &&
3309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3310             # AIX install.  It has an incompatible calling convention.
3311             :
3312           elif test $ac_prog = install &&
3313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3314             # program-specific install script used by HP pwplus--don't use.
3315             :
3316           else
3317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3318             break 3
3319           fi
3320         fi
3321       done
3322     done
3323     ;;
3324 esac
3325 done
3326
3327
3328 fi
3329   if test "${ac_cv_path_install+set}" = set; then
3330     INSTALL=$ac_cv_path_install
3331   else
3332     # As a last resort, use the slow shell script.  We don't cache a
3333     # path for INSTALL within a source directory, because that will
3334     # break other packages using the cache if that directory is
3335     # removed, or if the path is relative.
3336     INSTALL=$ac_install_sh
3337   fi
3338 fi
3339 echo "$as_me:$LINENO: result: $INSTALL" >&5
3340 echo "${ECHO_T}$INSTALL" >&6
3341
3342 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3343 # It thinks the first close brace ends the variable substitution.
3344 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3345
3346 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3347
3348 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3349
3350 if test -n "$ac_tool_prefix"; then
3351   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_RANLIB+set}" = set; then
3356   echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358   if test -n "$RANLIB"; then
3359   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366   for ac_exec_ext in '' $ac_executable_extensions; do
3367   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3369     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 RANLIB=$ac_cv_prog_RANLIB
3378 if test -n "$RANLIB"; then
3379   echo "$as_me:$LINENO: result: $RANLIB" >&5
3380 echo "${ECHO_T}$RANLIB" >&6
3381 else
3382   echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 fi
3387 if test -z "$ac_cv_prog_RANLIB"; then
3388   ac_ct_RANLIB=$RANLIB
3389   # Extract the first word of "ranlib", so it can be a program name with args.
3390 set dummy ranlib; ac_word=$2
3391 echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3393 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3394   echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396   if test -n "$ac_ct_RANLIB"; then
3397   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402   IFS=$as_save_IFS
3403   test -z "$as_dir" && as_dir=.
3404   for ac_exec_ext in '' $ac_executable_extensions; do
3405   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3406     ac_cv_prog_ac_ct_RANLIB="ranlib"
3407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408     break 2
3409   fi
3410 done
3411 done
3412
3413   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3414 fi
3415 fi
3416 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3417 if test -n "$ac_ct_RANLIB"; then
3418   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3419 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3420 else
3421   echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3423 fi
3424
3425   RANLIB=$ac_ct_RANLIB
3426 else
3427   RANLIB="$ac_cv_prog_RANLIB"
3428 fi
3429
3430 # Extract the first word of "mv", so it can be a program name with args.
3431 set dummy mv; ac_word=$2
3432 echo "$as_me:$LINENO: checking for $ac_word" >&5
3433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3434 if test "${ac_cv_path_MV+set}" = set; then
3435   echo $ECHO_N "(cached) $ECHO_C" >&6
3436 else
3437   case $MV in
3438   [\\/]* | ?:[\\/]*)
3439   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3440   ;;
3441   *)
3442   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3443 for as_dir in $PATH
3444 do
3445   IFS=$as_save_IFS
3446   test -z "$as_dir" && as_dir=.
3447   for ac_exec_ext in '' $ac_executable_extensions; do
3448   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451     break 2
3452   fi
3453 done
3454 done
3455
3456   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3457   ;;
3458 esac
3459 fi
3460 MV=$ac_cv_path_MV
3461
3462 if test -n "$MV"; then
3463   echo "$as_me:$LINENO: result: $MV" >&5
3464 echo "${ECHO_T}$MV" >&6
3465 else
3466   echo "$as_me:$LINENO: result: no" >&5
3467 echo "${ECHO_T}no" >&6
3468 fi
3469
3470 # Extract the first word of "rm", so it can be a program name with args.
3471 set dummy rm; ac_word=$2
3472 echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3474 if test "${ac_cv_path_RM+set}" = set; then
3475   echo $ECHO_N "(cached) $ECHO_C" >&6
3476 else
3477   case $RM in
3478   [\\/]* | ?:[\\/]*)
3479   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3480   ;;
3481   *)
3482   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for ac_exec_ext in '' $ac_executable_extensions; do
3488   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3489     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3490     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491     break 2
3492   fi
3493 done
3494 done
3495
3496   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3497   ;;
3498 esac
3499 fi
3500 RM=$ac_cv_path_RM
3501
3502 if test -n "$RM"; then
3503   echo "$as_me:$LINENO: result: $RM" >&5
3504 echo "${ECHO_T}$RM" >&6
3505 else
3506   echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3508 fi
3509
3510 # Extract the first word of "cp", so it can be a program name with args.
3511 set dummy cp; ac_word=$2
3512 echo "$as_me:$LINENO: checking for $ac_word" >&5
3513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3514 if test "${ac_cv_path_CP+set}" = set; then
3515   echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517   case $CP in
3518   [\\/]* | ?:[\\/]*)
3519   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3520   ;;
3521   *)
3522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527   for ac_exec_ext in '' $ac_executable_extensions; do
3528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534 done
3535
3536   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3537   ;;
3538 esac
3539 fi
3540 CP=$ac_cv_path_CP
3541
3542 if test -n "$CP"; then
3543   echo "$as_me:$LINENO: result: $CP" >&5
3544 echo "${ECHO_T}$CP" >&6
3545 else
3546   echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6
3548 fi
3549
3550 # Extract the first word of "sed", so it can be a program name with args.
3551 set dummy sed; ac_word=$2
3552 echo "$as_me:$LINENO: checking for $ac_word" >&5
3553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3554 if test "${ac_cv_path_SED+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557   case $SED in
3558   [\\/]* | ?:[\\/]*)
3559   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3560   ;;
3561   *)
3562   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3563 for as_dir in $PATH
3564 do
3565   IFS=$as_save_IFS
3566   test -z "$as_dir" && as_dir=.
3567   for ac_exec_ext in '' $ac_executable_extensions; do
3568   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3569     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571     break 2
3572   fi
3573 done
3574 done
3575
3576   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3577   ;;
3578 esac
3579 fi
3580 SED=$ac_cv_path_SED
3581
3582 if test -n "$SED"; then
3583   echo "$as_me:$LINENO: result: $SED" >&5
3584 echo "${ECHO_T}$SED" >&6
3585 else
3586   echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6
3588 fi
3589
3590 # Extract the first word of "echo", so it can be a program name with args.
3591 set dummy echo; ac_word=$2
3592 echo "$as_me:$LINENO: checking for $ac_word" >&5
3593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3594 if test "${ac_cv_path_ECHO+set}" = set; then
3595   echo $ECHO_N "(cached) $ECHO_C" >&6
3596 else
3597   case $ECHO in
3598   [\\/]* | ?:[\\/]*)
3599   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3600   ;;
3601   *)
3602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607   for ac_exec_ext in '' $ac_executable_extensions; do
3608   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614 done
3615
3616   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3617   ;;
3618 esac
3619 fi
3620 ECHO=$ac_cv_path_ECHO
3621
3622 if test -n "$ECHO"; then
3623   echo "$as_me:$LINENO: result: $ECHO" >&5
3624 echo "${ECHO_T}$ECHO" >&6
3625 else
3626   echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6
3628 fi
3629
3630 # Extract the first word of "cmp", so it can be a program name with args.
3631 set dummy cmp; ac_word=$2
3632 echo "$as_me:$LINENO: checking for $ac_word" >&5
3633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3634 if test "${ac_cv_path_CMP+set}" = set; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   case $CMP in
3638   [\\/]* | ?:[\\/]*)
3639   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3640   ;;
3641   *)
3642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645   IFS=$as_save_IFS
3646   test -z "$as_dir" && as_dir=.
3647   for ac_exec_ext in '' $ac_executable_extensions; do
3648   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651     break 2
3652   fi
3653 done
3654 done
3655
3656   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3657   ;;
3658 esac
3659 fi
3660 CMP=$ac_cv_path_CMP
3661
3662 if test -n "$CMP"; then
3663   echo "$as_me:$LINENO: result: $CMP" >&5
3664 echo "${ECHO_T}$CMP" >&6
3665 else
3666   echo "$as_me:$LINENO: result: no" >&5
3667 echo "${ECHO_T}no" >&6
3668 fi
3669
3670 # Extract the first word of "tbl", so it can be a program name with args.
3671 set dummy tbl; ac_word=$2
3672 echo "$as_me:$LINENO: checking for $ac_word" >&5
3673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3674 if test "${ac_cv_path_TBL+set}" = set; then
3675   echo $ECHO_N "(cached) $ECHO_C" >&6
3676 else
3677   case $TBL in
3678   [\\/]* | ?:[\\/]*)
3679   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3680   ;;
3681   *)
3682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3684 do
3685   IFS=$as_save_IFS
3686   test -z "$as_dir" && as_dir=.
3687   for ac_exec_ext in '' $ac_executable_extensions; do
3688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691     break 2
3692   fi
3693 done
3694 done
3695
3696   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3697   ;;
3698 esac
3699 fi
3700 TBL=$ac_cv_path_TBL
3701
3702 if test -n "$TBL"; then
3703   echo "$as_me:$LINENO: result: $TBL" >&5
3704 echo "${ECHO_T}$TBL" >&6
3705 else
3706   echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6
3708 fi
3709
3710 # Extract the first word of "ar", so it can be a program name with args.
3711 set dummy ar; ac_word=$2
3712 echo "$as_me:$LINENO: checking for $ac_word" >&5
3713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3714 if test "${ac_cv_path_AR+set}" = set; then
3715   echo $ECHO_N "(cached) $ECHO_C" >&6
3716 else
3717   case $AR in
3718   [\\/]* | ?:[\\/]*)
3719   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3720   ;;
3721   *)
3722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723 for as_dir in $PATH
3724 do
3725   IFS=$as_save_IFS
3726   test -z "$as_dir" && as_dir=.
3727   for ac_exec_ext in '' $ac_executable_extensions; do
3728   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3729     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3730     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731     break 2
3732   fi
3733 done
3734 done
3735
3736   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3737   ;;
3738 esac
3739 fi
3740 AR=$ac_cv_path_AR
3741
3742 if test -n "$AR"; then
3743   echo "$as_me:$LINENO: result: $AR" >&5
3744 echo "${ECHO_T}$AR" >&6
3745 else
3746   echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 fi
3749
3750 # Extract the first word of "openssl", so it can be a program name with args.
3751 set dummy openssl; ac_word=$2
3752 echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3754 if test "${ac_cv_path_OPENSSL+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   case $OPENSSL in
3758   [\\/]* | ?:[\\/]*)
3759   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3760   ;;
3761   *)
3762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765   IFS=$as_save_IFS
3766   test -z "$as_dir" && as_dir=.
3767   for ac_exec_ext in '' $ac_executable_extensions; do
3768   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3769     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771     break 2
3772   fi
3773 done
3774 done
3775
3776   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3777   ;;
3778 esac
3779 fi
3780 OPENSSL=$ac_cv_path_OPENSSL
3781
3782 if test -n "$OPENSSL"; then
3783   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3784 echo "${ECHO_T}$OPENSSL" >&6
3785 else
3786   echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3788 fi
3789
3790 # Extract the first word of "mtx", so it can be a program name with args.
3791 set dummy mtx; ac_word=$2
3792 echo "$as_me:$LINENO: checking for $ac_word" >&5
3793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3794 if test "${ac_cv_path_MTX+set}" = set; then
3795   echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797   case $MTX in
3798   [\\/]* | ?:[\\/]*)
3799   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3800   ;;
3801   *)
3802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805   IFS=$as_save_IFS
3806   test -z "$as_dir" && as_dir=.
3807   for ac_exec_ext in '' $ac_executable_extensions; do
3808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3809     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3811     break 2
3812   fi
3813 done
3814 done
3815
3816   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3817   ;;
3818 esac
3819 fi
3820 MTX=$ac_cv_path_MTX
3821
3822 if test -n "$MTX"; then
3823   echo "$as_me:$LINENO: result: $MTX" >&5
3824 echo "${ECHO_T}$MTX" >&6
3825 else
3826   echo "$as_me:$LINENO: result: no" >&5
3827 echo "${ECHO_T}no" >&6
3828 fi
3829
3830 # Extract the first word of "dd", so it can be a program name with args.
3831 set dummy dd; ac_word=$2
3832 echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3834 if test "${ac_cv_path_DD+set}" = set; then
3835   echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837   case $DD in
3838   [\\/]* | ?:[\\/]*)
3839   ac_cv_path_DD="$DD" # Let the user override the test with a path.
3840   ;;
3841   *)
3842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843 for as_dir in $PATH
3844 do
3845   IFS=$as_save_IFS
3846   test -z "$as_dir" && as_dir=.
3847   for ac_exec_ext in '' $ac_executable_extensions; do
3848   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
3850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851     break 2
3852   fi
3853 done
3854 done
3855
3856   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
3857   ;;
3858 esac
3859 fi
3860 DD=$ac_cv_path_DD
3861
3862 if test -n "$DD"; then
3863   echo "$as_me:$LINENO: result: $DD" >&5
3864 echo "${ECHO_T}$DD" >&6
3865 else
3866   echo "$as_me:$LINENO: result: no" >&5
3867 echo "${ECHO_T}no" >&6
3868 fi
3869
3870 # Extract the first word of "mkisofs", so it can be a program name with args.
3871 set dummy mkisofs; ac_word=$2
3872 echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3874 if test "${ac_cv_path_MKISOFS+set}" = set; then
3875   echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877   case $MKISOFS in
3878   [\\/]* | ?:[\\/]*)
3879   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3880   ;;
3881   *)
3882   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3884 do
3885   IFS=$as_save_IFS
3886   test -z "$as_dir" && as_dir=.
3887   for ac_exec_ext in '' $ac_executable_extensions; do
3888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3889     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891     break 2
3892   fi
3893 done
3894 done
3895
3896   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3897   ;;
3898 esac
3899 fi
3900 MKISOFS=$ac_cv_path_MKISOFS
3901
3902 if test -n "$MKISOFS"; then
3903   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3904 echo "${ECHO_T}$MKISOFS" >&6
3905 else
3906   echo "$as_me:$LINENO: result: no" >&5
3907 echo "${ECHO_T}no" >&6
3908 fi
3909
3910 # Extract the first word of "python", so it can be a program name with args.
3911 set dummy python; ac_word=$2
3912 echo "$as_me:$LINENO: checking for $ac_word" >&5
3913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3914 if test "${ac_cv_path_PYTHON+set}" = set; then
3915   echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917   case $PYTHON in
3918   [\\/]* | ?:[\\/]*)
3919   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3920   ;;
3921   *)
3922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3924 do
3925   IFS=$as_save_IFS
3926   test -z "$as_dir" && as_dir=.
3927   for ac_exec_ext in '' $ac_executable_extensions; do
3928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3929     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931     break 2
3932   fi
3933 done
3934 done
3935
3936   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3937   ;;
3938 esac
3939 fi
3940 PYTHON=$ac_cv_path_PYTHON
3941
3942 if test -n "$PYTHON"; then
3943   echo "$as_me:$LINENO: result: $PYTHON" >&5
3944 echo "${ECHO_T}$PYTHON" >&6
3945 else
3946   echo "$as_me:$LINENO: result: no" >&5
3947 echo "${ECHO_T}no" >&6
3948 fi
3949
3950 # Extract the first word of "growisofs", so it can be a program name with args.
3951 set dummy growisofs; ac_word=$2
3952 echo "$as_me:$LINENO: checking for $ac_word" >&5
3953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3954 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3955   echo $ECHO_N "(cached) $ECHO_C" >&6
3956 else
3957   case $GROWISOFS in
3958   [\\/]* | ?:[\\/]*)
3959   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3960   ;;
3961   *)
3962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965   IFS=$as_save_IFS
3966   test -z "$as_dir" && as_dir=.
3967   for ac_exec_ext in '' $ac_executable_extensions; do
3968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3971     break 2
3972   fi
3973 done
3974 done
3975
3976   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3977   ;;
3978 esac
3979 fi
3980 GROWISOFS=$ac_cv_path_GROWISOFS
3981
3982 if test -n "$GROWISOFS"; then
3983   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3984 echo "${ECHO_T}$GROWISOFS" >&6
3985 else
3986   echo "$as_me:$LINENO: result: no" >&5
3987 echo "${ECHO_T}no" >&6
3988 fi
3989
3990 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3991 set dummy dvd+rw-mediainfo; ac_word=$2
3992 echo "$as_me:$LINENO: checking for $ac_word" >&5
3993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3994 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   case $DVDRWMEDIAINFO in
3998   [\\/]* | ?:[\\/]*)
3999   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4000   ;;
4001   *)
4002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4004 do
4005   IFS=$as_save_IFS
4006   test -z "$as_dir" && as_dir=.
4007   for ac_exec_ext in '' $ac_executable_extensions; do
4008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4009     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4011     break 2
4012   fi
4013 done
4014 done
4015
4016   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4017   ;;
4018 esac
4019 fi
4020 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4021
4022 if test -n "$DVDRWMEDIAINFO"; then
4023   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4024 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4025 else
4026   echo "$as_me:$LINENO: result: no" >&5
4027 echo "${ECHO_T}no" >&6
4028 fi
4029
4030 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4031 set dummy dvd+rw-format; ac_word=$2
4032 echo "$as_me:$LINENO: checking for $ac_word" >&5
4033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4034 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4035   echo $ECHO_N "(cached) $ECHO_C" >&6
4036 else
4037   case $DVDRWFORMAT in
4038   [\\/]* | ?:[\\/]*)
4039   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4040   ;;
4041   *)
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   for ac_exec_ext in '' $ac_executable_extensions; do
4048   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4049     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4051     break 2
4052   fi
4053 done
4054 done
4055
4056   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4057   ;;
4058 esac
4059 fi
4060 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4061
4062 if test -n "$DVDRWFORMAT"; then
4063   echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4064 echo "${ECHO_T}$DVDRWFORMAT" >&6
4065 else
4066   echo "$as_me:$LINENO: result: no" >&5
4067 echo "${ECHO_T}no" >&6
4068 fi
4069
4070 # Extract the first word of "pkg-config", so it can be a program name with args.
4071 set dummy pkg-config; ac_word=$2
4072 echo "$as_me:$LINENO: checking for $ac_word" >&5
4073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4074 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4075   echo $ECHO_N "(cached) $ECHO_C" >&6
4076 else
4077   case $PKGCONFIG in
4078   [\\/]* | ?:[\\/]*)
4079   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4080   ;;
4081   *)
4082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4084 do
4085   IFS=$as_save_IFS
4086   test -z "$as_dir" && as_dir=.
4087   for ac_exec_ext in '' $ac_executable_extensions; do
4088   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4089     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4090     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091     break 2
4092   fi
4093 done
4094 done
4095
4096   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4097   ;;
4098 esac
4099 fi
4100 PKGCONFIG=$ac_cv_path_PKGCONFIG
4101
4102 if test -n "$PKGCONFIG"; then
4103   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4104 echo "${ECHO_T}$PKGCONFIG" >&6
4105 else
4106   echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6
4108 fi
4109
4110 # Extract the first word of "qmake", so it can be a program name with args.
4111 set dummy qmake; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_path_QMAKE+set}" = set; then
4115   echo $ECHO_N "(cached) $ECHO_C" >&6
4116 else
4117   case $QMAKE in
4118   [\\/]* | ?:[\\/]*)
4119   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4120   ;;
4121   *)
4122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4124 do
4125   IFS=$as_save_IFS
4126   test -z "$as_dir" && as_dir=.
4127   for ac_exec_ext in '' $ac_executable_extensions; do
4128   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4131     break 2
4132   fi
4133 done
4134 done
4135
4136   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4137   ;;
4138 esac
4139 fi
4140 QMAKE=$ac_cv_path_QMAKE
4141
4142 if test -n "$QMAKE"; then
4143   echo "$as_me:$LINENO: result: $QMAKE" >&5
4144 echo "${ECHO_T}$QMAKE" >&6
4145 else
4146   echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6
4148 fi
4149
4150 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4151 set dummy qmake-qt4; ac_word=$2
4152 echo "$as_me:$LINENO: checking for $ac_word" >&5
4153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4154 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4155   echo $ECHO_N "(cached) $ECHO_C" >&6
4156 else
4157   case $QMAKEQT4 in
4158   [\\/]* | ?:[\\/]*)
4159   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4160   ;;
4161   *)
4162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4164 do
4165   IFS=$as_save_IFS
4166   test -z "$as_dir" && as_dir=.
4167   for ac_exec_ext in '' $ac_executable_extensions; do
4168   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4171     break 2
4172   fi
4173 done
4174 done
4175
4176   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4177   ;;
4178 esac
4179 fi
4180 QMAKEQT4=$ac_cv_path_QMAKEQT4
4181
4182 if test -n "$QMAKEQT4"; then
4183   echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4184 echo "${ECHO_T}$QMAKEQT4" >&6
4185 else
4186   echo "$as_me:$LINENO: result: no" >&5
4187 echo "${ECHO_T}no" >&6
4188 fi
4189
4190
4191 if test "x$WXCONFIG" = x; then
4192   WXCONFIG=wx-config
4193 fi
4194 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4195 set dummy ${WXCONFIG}; ac_word=$2
4196 echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4198 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   case $WXCONFIG in
4202   [\\/]* | ?:[\\/]*)
4203   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4204   ;;
4205   *)
4206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207 for as_dir in $PATH
4208 do
4209   IFS=$as_save_IFS
4210   test -z "$as_dir" && as_dir=.
4211   for ac_exec_ext in '' $ac_executable_extensions; do
4212   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4214     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4215     break 2
4216   fi
4217 done
4218 done
4219
4220   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4221   ;;
4222 esac
4223 fi
4224 WXCONFIG=$ac_cv_path_WXCONFIG
4225
4226 if test -n "$WXCONFIG"; then
4227   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4228 echo "${ECHO_T}$WXCONFIG" >&6
4229 else
4230   echo "$as_me:$LINENO: result: no" >&5
4231 echo "${ECHO_T}no" >&6
4232 fi
4233
4234
4235 # Extract the first word of "cdrecord", so it can be a program name with args.
4236 set dummy cdrecord; ac_word=$2
4237 echo "$as_me:$LINENO: checking for $ac_word" >&5
4238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239 if test "${ac_cv_path_CDRECORD+set}" = set; then
4240   echo $ECHO_N "(cached) $ECHO_C" >&6
4241 else
4242   case $CDRECORD in
4243   [\\/]* | ?:[\\/]*)
4244   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4245   ;;
4246   *)
4247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 for as_dir in $PATH
4249 do
4250   IFS=$as_save_IFS
4251   test -z "$as_dir" && as_dir=.
4252   for ac_exec_ext in '' $ac_executable_extensions; do
4253   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4254     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4256     break 2
4257   fi
4258 done
4259 done
4260
4261   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4262   ;;
4263 esac
4264 fi
4265 CDRECORD=$ac_cv_path_CDRECORD
4266
4267 if test -n "$CDRECORD"; then
4268   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4269 echo "${ECHO_T}$CDRECORD" >&6
4270 else
4271   echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 fi
4274
4275 # Extract the first word of "pidof", so it can be a program name with args.
4276 set dummy pidof; ac_word=$2
4277 echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4279 if test "${ac_cv_path_PIDOF+set}" = set; then
4280   echo $ECHO_N "(cached) $ECHO_C" >&6
4281 else
4282   case $PIDOF in
4283   [\\/]* | ?:[\\/]*)
4284   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4285   ;;
4286   *)
4287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4288 for as_dir in $PATH
4289 do
4290   IFS=$as_save_IFS
4291   test -z "$as_dir" && as_dir=.
4292   for ac_exec_ext in '' $ac_executable_extensions; do
4293   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4294     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4296     break 2
4297   fi
4298 done
4299 done
4300
4301   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4302   ;;
4303 esac
4304 fi
4305 PIDOF=$ac_cv_path_PIDOF
4306
4307 if test -n "$PIDOF"; then
4308   echo "$as_me:$LINENO: result: $PIDOF" >&5
4309 echo "${ECHO_T}$PIDOF" >&6
4310 else
4311   echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6
4313 fi
4314
4315 for ac_prog in gawk mawk nawk awk
4316 do
4317   # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 echo "$as_me:$LINENO: checking for $ac_word" >&5
4320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4321 if test "${ac_cv_prog_AWK+set}" = set; then
4322   echo $ECHO_N "(cached) $ECHO_C" >&6
4323 else
4324   if test -n "$AWK"; then
4325   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4326 else
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH
4329 do
4330   IFS=$as_save_IFS
4331   test -z "$as_dir" && as_dir=.
4332   for ac_exec_ext in '' $ac_executable_extensions; do
4333   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4334     ac_cv_prog_AWK="$ac_prog"
4335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4336     break 2
4337   fi
4338 done
4339 done
4340
4341 fi
4342 fi
4343 AWK=$ac_cv_prog_AWK
4344 if test -n "$AWK"; then
4345   echo "$as_me:$LINENO: result: $AWK" >&5
4346 echo "${ECHO_T}$AWK" >&6
4347 else
4348   echo "$as_me:$LINENO: result: no" >&5
4349 echo "${ECHO_T}no" >&6
4350 fi
4351
4352   test -n "$AWK" && break
4353 done
4354
4355 # Some AWK programs fail, so test it and warn the user
4356 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4357       { if ((prog == $2) || (("(" prog ")") == $2) ||
4358            (("" prog "") == $2) ||
4359            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4360 else
4361   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4362    The regex engine of $AWK is too broken to be used you
4363    might want to install GNU AWK.
4364    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4365 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4366    The regex engine of $AWK is too broken to be used you
4367    might want to install GNU AWK.
4368    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4369    { (exit 1); exit 1; }; }
4370 fi
4371 THE_AWK=$AWK
4372 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4373 set dummy $THE_AWK; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_path_AWK+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   case $AWK in
4380   [\\/]* | ?:[\\/]*)
4381   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4382   ;;
4383   *)
4384   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 for as_dir in $PATH
4386 do
4387   IFS=$as_save_IFS
4388   test -z "$as_dir" && as_dir=.
4389   for ac_exec_ext in '' $ac_executable_extensions; do
4390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4391     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4393     break 2
4394   fi
4395 done
4396 done
4397
4398   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4399   ;;
4400 esac
4401 fi
4402 AWK=$ac_cv_path_AWK
4403
4404 if test -n "$AWK"; then
4405   echo "$as_me:$LINENO: result: $AWK" >&5
4406 echo "${ECHO_T}$AWK" >&6
4407 else
4408   echo "$as_me:$LINENO: result: no" >&5
4409 echo "${ECHO_T}no" >&6
4410 fi
4411
4412
4413
4414 test -n "$ARFLAG" || ARFLAGS="cr"
4415
4416
4417 MAKE_SHELL=/bin/sh
4418
4419
4420
4421
4422
4423
4424
4425 # Make sure we can run config.sub.
4426 $ac_config_sub sun4 >/dev/null 2>&1 ||
4427   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4428 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4429    { (exit 1); exit 1; }; }
4430
4431 echo "$as_me:$LINENO: checking build system type" >&5
4432 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4433 if test "${ac_cv_build+set}" = set; then
4434   echo $ECHO_N "(cached) $ECHO_C" >&6
4435 else
4436   ac_cv_build_alias=$build_alias
4437 test -z "$ac_cv_build_alias" &&
4438   ac_cv_build_alias=`$ac_config_guess`
4439 test -z "$ac_cv_build_alias" &&
4440   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4441 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4442    { (exit 1); exit 1; }; }
4443 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4444   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4445 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4446    { (exit 1); exit 1; }; }
4447
4448 fi
4449 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4450 echo "${ECHO_T}$ac_cv_build" >&6
4451 build=$ac_cv_build
4452 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4453 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4454 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4455
4456
4457
4458 echo "$as_me:$LINENO: checking host system type" >&5
4459 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4460 if test "${ac_cv_host+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   ac_cv_host_alias=$host_alias
4464 test -z "$ac_cv_host_alias" &&
4465   ac_cv_host_alias=$ac_cv_build_alias
4466 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4467   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4468 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4469    { (exit 1); exit 1; }; }
4470
4471 fi
4472 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4473 echo "${ECHO_T}$ac_cv_host" >&6
4474 host=$ac_cv_host
4475 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4476 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4477 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4478
4479
4480 case $host_os in
4481   *cygwin* ) CYGWIN=yes;;
4482          * ) CYGWIN=no;;
4483 esac
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_SUN_OS_TRUE=
4491   HAVE_SUN_OS_FALSE='#'
4492 else
4493   HAVE_SUN_OS_TRUE='#'
4494   HAVE_SUN_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_SUN_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_SUN_OS_TRUE=
4505   HAVE_SUN_OS_FALSE='#'
4506 else
4507   HAVE_SUN_OS_TRUE='#'
4508   HAVE_SUN_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_OSF1_OS_TRUE=
4518   HAVE_OSF1_OS_FALSE='#'
4519 else
4520   HAVE_OSF1_OS_TRUE='#'
4521   HAVE_OSF1_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_OSF1_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_OSF1_OS_TRUE=
4532   HAVE_OSF1_OS_FALSE='#'
4533 else
4534   HAVE_OSF1_OS_TRUE='#'
4535   HAVE_OSF1_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_AIX_OS_TRUE=
4545   HAVE_AIX_OS_FALSE='#'
4546 else
4547   HAVE_AIX_OS_TRUE='#'
4548   HAVE_AIX_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_AIX_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_AIX_OS_TRUE=
4559   HAVE_AIX_OS_FALSE='#'
4560 else
4561   HAVE_AIX_OS_TRUE='#'
4562   HAVE_AIX_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_HPUX_OS_TRUE=
4572   HAVE_HPUX_OS_FALSE='#'
4573 else
4574   HAVE_HPUX_OS_TRUE='#'
4575   HAVE_HPUX_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_HPUX_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_HPUX_OS_TRUE=
4586   HAVE_HPUX_OS_FALSE='#'
4587 else
4588   HAVE_HPUX_OS_TRUE='#'
4589   HAVE_HPUX_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_LINUX_OS_TRUE=
4599   HAVE_LINUX_OS_FALSE='#'
4600 else
4601   HAVE_LINUX_OS_TRUE='#'
4602   HAVE_LINUX_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_LINUX_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_LINUX_OS_TRUE=
4613   HAVE_LINUX_OS_FALSE='#'
4614 else
4615   HAVE_LINUX_OS_TRUE='#'
4616   HAVE_LINUX_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_FREEBSD_OS_TRUE=
4626   HAVE_FREEBSD_OS_FALSE='#'
4627 else
4628   HAVE_FREEBSD_OS_TRUE='#'
4629   HAVE_FREEBSD_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_FREEBSD_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_FREEBSD_OS_TRUE=
4640   HAVE_FREEBSD_OS_FALSE='#'
4641 else
4642   HAVE_FREEBSD_OS_TRUE='#'
4643   HAVE_FREEBSD_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_NETBSD_OS_TRUE=
4653   HAVE_NETBSD_OS_FALSE='#'
4654 else
4655   HAVE_NETBSD_OS_TRUE='#'
4656   HAVE_NETBSD_OS_FALSE=
4657 fi
4658         cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_NETBSD_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_NETBSD_OS_TRUE=
4667   HAVE_NETBSD_OS_FALSE='#'
4668 else
4669   HAVE_NETBSD_OS_TRUE='#'
4670   HAVE_NETBSD_OS_FALSE=
4671 fi
4672 fi
4673
4674 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4675 then
4676
4677
4678 if $TRUEPRG; then
4679   HAVE_OPENBSD_OS_TRUE=
4680   HAVE_OPENBSD_OS_FALSE='#'
4681 else
4682   HAVE_OPENBSD_OS_TRUE='#'
4683   HAVE_OPENBSD_OS_FALSE=
4684 fi
4685         cat >>confdefs.h <<\_ACEOF
4686 #define HAVE_OPENBSD_OS 1
4687 _ACEOF
4688
4689 else
4690
4691
4692 if $FALSEPRG; then
4693   HAVE_OPENBSD_OS_TRUE=
4694   HAVE_OPENBSD_OS_FALSE='#'
4695 else
4696   HAVE_OPENBSD_OS_TRUE='#'
4697   HAVE_OPENBSD_OS_FALSE=
4698 fi
4699 fi
4700
4701 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4702 then
4703
4704
4705 if $TRUEPRG; then
4706   HAVE_BSDI_OS_TRUE=
4707   HAVE_BSDI_OS_FALSE='#'
4708 else
4709   HAVE_BSDI_OS_TRUE='#'
4710   HAVE_BSDI_OS_FALSE=
4711 fi
4712         cat >>confdefs.h <<\_ACEOF
4713 #define HAVE_BSDI_OS 1
4714 _ACEOF
4715
4716 else
4717
4718
4719 if $FALSEPRG; then
4720   HAVE_BSDI_OS_TRUE=
4721   HAVE_BSDI_OS_FALSE='#'
4722 else
4723   HAVE_BSDI_OS_TRUE='#'
4724   HAVE_BSDI_OS_FALSE=
4725 fi
4726 fi
4727
4728 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4729 then
4730
4731
4732 if $TRUEPRG; then
4733   HAVE_SGI_OS_TRUE=
4734   HAVE_SGI_OS_FALSE='#'
4735 else
4736   HAVE_SGI_OS_TRUE='#'
4737   HAVE_SGI_OS_FALSE=
4738 fi
4739         cat >>confdefs.h <<\_ACEOF
4740 #define HAVE_SGI_OS 1
4741 _ACEOF
4742
4743 else
4744
4745
4746 if $FALSEPRG; then
4747   HAVE_SGI_OS_TRUE=
4748   HAVE_SGI_OS_FALSE='#'
4749 else
4750   HAVE_SGI_OS_TRUE='#'
4751   HAVE_SGI_OS_FALSE=
4752 fi
4753 fi
4754
4755 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
4756 then
4757
4758
4759 if $TRUEPRG; then
4760   HAVE_IRIX_OS_TRUE=
4761   HAVE_IRIX_OS_FALSE='#'
4762 else
4763   HAVE_IRIX_OS_TRUE='#'
4764   HAVE_IRIX_OS_FALSE=
4765 fi
4766         cat >>confdefs.h <<\_ACEOF
4767 #define HAVE_IRIX_OS 1
4768 _ACEOF
4769
4770 else
4771
4772
4773 if $FALSEPRG; then
4774   HAVE_IRIX_OS_TRUE=
4775   HAVE_IRIX_OS_FALSE='#'
4776 else
4777   HAVE_IRIX_OS_TRUE='#'
4778   HAVE_IRIX_OS_FALSE=
4779 fi
4780 fi
4781
4782 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4783 then
4784
4785
4786 if $TRUEPRG; then
4787   HAVE_DARWIN_OS_TRUE=
4788   HAVE_DARWIN_OS_FALSE='#'
4789 else
4790   HAVE_DARWIN_OS_TRUE='#'
4791   HAVE_DARWIN_OS_FALSE=
4792 fi
4793     cat >>confdefs.h <<\_ACEOF
4794 #define HAVE_DARWIN_OS 1
4795 _ACEOF
4796
4797 else
4798
4799
4800 if $FALSEPRG; then
4801   HAVE_DARWIN_OS_TRUE=
4802   HAVE_DARWIN_OS_FALSE='#'
4803 else
4804   HAVE_DARWIN_OS_TRUE='#'
4805   HAVE_DARWIN_OS_FALSE=
4806 fi
4807 fi
4808
4809
4810 # -----------------------------------------------------------
4811 # ----------------------------------------------------------
4812 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4813 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4814 if test "x$DISTNAME" != "x"
4815 then
4816         echo "distname set to $DISTNAME"
4817 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4818 then
4819         DISTNAME=alpha
4820 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4821 then
4822         DISTNAME=aix
4823 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4824 then
4825         DISTNAME=hpux
4826 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4827 then
4828         DISTNAME=solaris
4829 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4830 then
4831         DISTNAME=freebsd
4832 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4833 then
4834         DISTNAME=netbsd
4835 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4836 then
4837         DISTNAME=openbsd
4838 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4839 then
4840         DISTNAME=irix
4841 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4842 then
4843         DISTNAME=bsdi
4844 elif test -f /etc/SuSE-release
4845 then
4846         DISTNAME=suse
4847 elif test -d /etc/SuSEconfig
4848 then
4849         DISTNAME=suse5
4850 elif test -f /etc/mandrake-release
4851 then
4852         DISTNAME=mandrake
4853 elif test -f /etc/whitebox-release
4854 then
4855        DISTNAME=redhat
4856 elif test -f /etc/redhat-release
4857 then
4858         DISTNAME=redhat
4859 elif test -f /etc/gentoo-release
4860 then
4861         DISTNAME=gentoo
4862 elif test -f /etc/debian_version
4863 then
4864         DISTNAME=debian
4865 elif test -f /etc/slackware-version
4866 then
4867         DISTNAME=slackware
4868 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4869 then
4870     DISTNAME=darwin
4871 elif test -f /etc/engarde-version
4872 then
4873         DISTNAME=engarde
4874 elif test "$CYGWIN" = yes
4875 then
4876         DISTNAME=cygwin
4877         cat >>confdefs.h <<\_ACEOF
4878 #define HAVE_CYGWIN 1
4879 _ACEOF
4880
4881 else
4882         DISTNAME=unknown
4883 fi
4884 echo "$as_me:$LINENO: result: done" >&5
4885 echo "${ECHO_T}done" >&6
4886
4887
4888 # --------------------------------------------------
4889 # Suppport for gettext (translations)
4890 # By default, $datadir is ${prefix}/share
4891 # --------------------------------------------------
4892 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4893 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4894 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4895 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   cat >conftest.make <<\_ACEOF
4899 all:
4900         @echo 'ac_maketemp="$(MAKE)"'
4901 _ACEOF
4902 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4903 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4904 if test -n "$ac_maketemp"; then
4905   eval ac_cv_prog_make_${ac_make}_set=yes
4906 else
4907   eval ac_cv_prog_make_${ac_make}_set=no
4908 fi
4909 rm -f conftest.make
4910 fi
4911 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4912   echo "$as_me:$LINENO: result: yes" >&5
4913 echo "${ECHO_T}yes" >&6
4914   SET_MAKE=
4915 else
4916   echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4918   SET_MAKE="MAKE=${MAKE-make}"
4919 fi
4920
4921
4922
4923         MKINSTALLDIRS=
4924   if test -n "$ac_aux_dir"; then
4925     case "$ac_aux_dir" in
4926       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4927       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4928     esac
4929   fi
4930   if test -z "$MKINSTALLDIRS"; then
4931     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4932   fi
4933
4934
4935
4936   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4937 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4938     # Check whether --enable-nls or --disable-nls was given.
4939 if test "${enable_nls+set}" = set; then
4940   enableval="$enable_nls"
4941   USE_NLS=$enableval
4942 else
4943   USE_NLS=yes
4944 fi;
4945   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4946 echo "${ECHO_T}$USE_NLS" >&6
4947
4948
4949
4950
4951
4952
4953 # Prepare PATH_SEPARATOR.
4954 # The user is always right.
4955 if test "${PATH_SEPARATOR+set}" != set; then
4956   echo "#! /bin/sh" >conf$$.sh
4957   echo  "exit 0"   >>conf$$.sh
4958   chmod +x conf$$.sh
4959   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4960     PATH_SEPARATOR=';'
4961   else
4962     PATH_SEPARATOR=:
4963   fi
4964   rm -f conf$$.sh
4965 fi
4966
4967 # Find out how to test for executable files. Don't use a zero-byte file,
4968 # as systems may use methods other than mode bits to determine executability.
4969 cat >conf$$.file <<_ASEOF
4970 #! /bin/sh
4971 exit 0
4972 _ASEOF
4973 chmod +x conf$$.file
4974 if test -x conf$$.file >/dev/null 2>&1; then
4975   ac_executable_p="test -x"
4976 else
4977   ac_executable_p="test -f"
4978 fi
4979 rm -f conf$$.file
4980
4981 # Extract the first word of "msgfmt", so it can be a program name with args.
4982 set dummy msgfmt; ac_word=$2
4983 echo "$as_me:$LINENO: checking for $ac_word" >&5
4984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4985 if test "${ac_cv_path_MSGFMT+set}" = set; then
4986   echo $ECHO_N "(cached) $ECHO_C" >&6
4987 else
4988   case "$MSGFMT" in
4989   [\\/]* | ?:[\\/]*)
4990     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4991     ;;
4992   *)
4993     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4994     for ac_dir in $PATH; do
4995       IFS="$ac_save_IFS"
4996       test -z "$ac_dir" && ac_dir=.
4997       for ac_exec_ext in '' $ac_executable_extensions; do
4998         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4999           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5000           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5001      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5002             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5003             break 2
5004           fi
5005         fi
5006       done
5007     done
5008     IFS="$ac_save_IFS"
5009   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5010     ;;
5011 esac
5012 fi
5013 MSGFMT="$ac_cv_path_MSGFMT"
5014 if test "$MSGFMT" != ":"; then
5015   echo "$as_me:$LINENO: result: $MSGFMT" >&5
5016 echo "${ECHO_T}$MSGFMT" >&6
5017 else
5018   echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6
5020 fi
5021
5022   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5023 set dummy gmsgfmt; ac_word=$2
5024 echo "$as_me:$LINENO: checking for $ac_word" >&5
5025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029   case $GMSGFMT in
5030   [\\/]* | ?:[\\/]*)
5031   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5032   ;;
5033   *)
5034   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5036 do
5037   IFS=$as_save_IFS
5038   test -z "$as_dir" && as_dir=.
5039   for ac_exec_ext in '' $ac_executable_extensions; do
5040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5041     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5043     break 2
5044   fi
5045 done
5046 done
5047
5048   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5049   ;;
5050 esac
5051 fi
5052 GMSGFMT=$ac_cv_path_GMSGFMT
5053
5054 if test -n "$GMSGFMT"; then
5055   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5056 echo "${ECHO_T}$GMSGFMT" >&6
5057 else
5058   echo "$as_me:$LINENO: result: no" >&5
5059 echo "${ECHO_T}no" >&6
5060 fi
5061
5062
5063
5064 # Prepare PATH_SEPARATOR.
5065 # The user is always right.
5066 if test "${PATH_SEPARATOR+set}" != set; then
5067   echo "#! /bin/sh" >conf$$.sh
5068   echo  "exit 0"   >>conf$$.sh
5069   chmod +x conf$$.sh
5070   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5071     PATH_SEPARATOR=';'
5072   else
5073     PATH_SEPARATOR=:
5074   fi
5075   rm -f conf$$.sh
5076 fi
5077
5078 # Find out how to test for executable files. Don't use a zero-byte file,
5079 # as systems may use methods other than mode bits to determine executability.
5080 cat >conf$$.file <<_ASEOF
5081 #! /bin/sh
5082 exit 0
5083 _ASEOF
5084 chmod +x conf$$.file
5085 if test -x conf$$.file >/dev/null 2>&1; then
5086   ac_executable_p="test -x"
5087 else
5088   ac_executable_p="test -f"
5089 fi
5090 rm -f conf$$.file
5091
5092 # Extract the first word of "xgettext", so it can be a program name with args.
5093 set dummy xgettext; ac_word=$2
5094 echo "$as_me:$LINENO: checking for $ac_word" >&5
5095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5096 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5097   echo $ECHO_N "(cached) $ECHO_C" >&6
5098 else
5099   case "$XGETTEXT" in
5100   [\\/]* | ?:[\\/]*)
5101     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5102     ;;
5103   *)
5104     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5105     for ac_dir in $PATH; do
5106       IFS="$ac_save_IFS"
5107       test -z "$ac_dir" && ac_dir=.
5108       for ac_exec_ext in '' $ac_executable_extensions; do
5109         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5110           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5111           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5112      (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
5113             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5114             break 2
5115           fi
5116         fi
5117       done
5118     done
5119     IFS="$ac_save_IFS"
5120   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5121     ;;
5122 esac
5123 fi
5124 XGETTEXT="$ac_cv_path_XGETTEXT"
5125 if test "$XGETTEXT" != ":"; then
5126   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5127 echo "${ECHO_T}$XGETTEXT" >&6
5128 else
5129   echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5131 fi
5132
5133     rm -f messages.po
5134
5135
5136 # Prepare PATH_SEPARATOR.
5137 # The user is always right.
5138 if test "${PATH_SEPARATOR+set}" != set; then
5139   echo "#! /bin/sh" >conf$$.sh
5140   echo  "exit 0"   >>conf$$.sh
5141   chmod +x conf$$.sh
5142   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5143     PATH_SEPARATOR=';'
5144   else
5145     PATH_SEPARATOR=:
5146   fi
5147   rm -f conf$$.sh
5148 fi
5149
5150 # Find out how to test for executable files. Don't use a zero-byte file,
5151 # as systems may use methods other than mode bits to determine executability.
5152 cat >conf$$.file <<_ASEOF
5153 #! /bin/sh
5154 exit 0
5155 _ASEOF
5156 chmod +x conf$$.file
5157 if test -x conf$$.file >/dev/null 2>&1; then
5158   ac_executable_p="test -x"
5159 else
5160   ac_executable_p="test -f"
5161 fi
5162 rm -f conf$$.file
5163
5164 # Extract the first word of "msgmerge", so it can be a program name with args.
5165 set dummy msgmerge; ac_word=$2
5166 echo "$as_me:$LINENO: checking for $ac_word" >&5
5167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5168 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5169   echo $ECHO_N "(cached) $ECHO_C" >&6
5170 else
5171   case "$MSGMERGE" in
5172   [\\/]* | ?:[\\/]*)
5173     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5174     ;;
5175   *)
5176     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5177     for ac_dir in $PATH; do
5178       IFS="$ac_save_IFS"
5179       test -z "$ac_dir" && ac_dir=.
5180       for ac_exec_ext in '' $ac_executable_extensions; do
5181         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5182           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5183           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5184             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5185             break 2
5186           fi
5187         fi
5188       done
5189     done
5190     IFS="$ac_save_IFS"
5191   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5192     ;;
5193 esac
5194 fi
5195 MSGMERGE="$ac_cv_path_MSGMERGE"
5196 if test "$MSGMERGE" != ":"; then
5197   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5198 echo "${ECHO_T}$MSGMERGE" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203
5204
5205       if test "$GMSGFMT" != ":"; then
5206             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5207        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5208       : ;
5209     else
5210       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5211       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5212 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5213       GMSGFMT=":"
5214     fi
5215   fi
5216
5217       if test "$XGETTEXT" != ":"; then
5218             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5219        (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
5220       : ;
5221     else
5222       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5223 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5224       XGETTEXT=":"
5225     fi
5226         rm -f messages.po
5227   fi
5228
5229             ac_config_commands="$ac_config_commands default-1"
5230
5231
5232
5233       if test "X$prefix" = "XNONE"; then
5234     acl_final_prefix="$ac_default_prefix"
5235   else
5236     acl_final_prefix="$prefix"
5237   fi
5238   if test "X$exec_prefix" = "XNONE"; then
5239     acl_final_exec_prefix='${prefix}'
5240   else
5241     acl_final_exec_prefix="$exec_prefix"
5242   fi
5243   acl_save_prefix="$prefix"
5244   prefix="$acl_final_prefix"
5245   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5246   prefix="$acl_save_prefix"
5247
5248
5249 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5250 if test "${with_gnu_ld+set}" = set; then
5251   withval="$with_gnu_ld"
5252   test "$withval" = no || with_gnu_ld=yes
5253 else
5254   with_gnu_ld=no
5255 fi;
5256 # Prepare PATH_SEPARATOR.
5257 # The user is always right.
5258 if test "${PATH_SEPARATOR+set}" != set; then
5259   echo "#! /bin/sh" >conf$$.sh
5260   echo  "exit 0"   >>conf$$.sh
5261   chmod +x conf$$.sh
5262   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5263     PATH_SEPARATOR=';'
5264   else
5265     PATH_SEPARATOR=:
5266   fi
5267   rm -f conf$$.sh
5268 fi
5269 ac_prog=ld
5270 if test "$GCC" = yes; then
5271   # Check if gcc -print-prog-name=ld gives a path.
5272   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5273 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5274   case $host in
5275   *-*-mingw*)
5276     # gcc leaves a trailing carriage return which upsets mingw
5277     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5278   *)
5279     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5280   esac
5281   case $ac_prog in
5282     # Accept absolute paths.
5283     [\\/]* | [A-Za-z]:[\\/]*)
5284       re_direlt='/[^/][^/]*/\.\./'
5285       # Canonicalize the path of ld
5286       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5287       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5288         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5289       done
5290       test -z "$LD" && LD="$ac_prog"
5291       ;;
5292   "")
5293     # If it fails, then pretend we aren't using GCC.
5294     ac_prog=ld
5295     ;;
5296   *)
5297     # If it is relative, then search for the first ld in PATH.
5298     with_gnu_ld=unknown
5299     ;;
5300   esac
5301 elif test "$with_gnu_ld" = yes; then
5302   echo "$as_me:$LINENO: checking for GNU ld" >&5
5303 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5304 else
5305   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5306 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5307 fi
5308 if test "${acl_cv_path_LD+set}" = set; then
5309   echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311   if test -z "$LD"; then
5312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5313   for ac_dir in $PATH; do
5314     test -z "$ac_dir" && ac_dir=.
5315     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5316       acl_cv_path_LD="$ac_dir/$ac_prog"
5317       # Check to see if the program is GNU ld.  I'd rather use --version,
5318       # but apparently some GNU ld's only accept -v.
5319       # Break only if it was the GNU/non-GNU ld that we prefer.
5320       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5321       *GNU* | *'with BFD'*)
5322         test "$with_gnu_ld" != no && break ;;
5323       *)
5324         test "$with_gnu_ld" != yes && break ;;
5325       esac
5326     fi
5327   done
5328   IFS="$ac_save_ifs"
5329 else
5330   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5331 fi
5332 fi
5333
5334 LD="$acl_cv_path_LD"
5335 if test -n "$LD"; then
5336   echo "$as_me:$LINENO: result: $LD" >&5
5337 echo "${ECHO_T}$LD" >&6
5338 else
5339   echo "$as_me:$LINENO: result: no" >&5
5340 echo "${ECHO_T}no" >&6
5341 fi
5342 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5343 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5344    { (exit 1); exit 1; }; }
5345 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5346 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5347 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5351 case `$LD -v 2>&1 </dev/null` in
5352 *GNU* | *'with BFD'*)
5353   acl_cv_prog_gnu_ld=yes ;;
5354 *)
5355   acl_cv_prog_gnu_ld=no ;;
5356 esac
5357 fi
5358 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5359 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5360 with_gnu_ld=$acl_cv_prog_gnu_ld
5361
5362
5363
5364
5365                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5366 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5367 if test "${acl_cv_rpath+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370
5371     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5372     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5373     . ./conftest.sh
5374     rm -f ./conftest.sh
5375     acl_cv_rpath=done
5376
5377 fi
5378 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5379 echo "${ECHO_T}$acl_cv_rpath" >&6
5380   wl="$acl_cv_wl"
5381   libext="$acl_cv_libext"
5382   shlibext="$acl_cv_shlibext"
5383   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5384   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5385   hardcode_direct="$acl_cv_hardcode_direct"
5386   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5387     # Check whether --enable-rpath or --disable-rpath was given.
5388 if test "${enable_rpath+set}" = set; then
5389   enableval="$enable_rpath"
5390   :
5391 else
5392   enable_rpath=yes
5393 fi;
5394
5395
5396
5397
5398
5399
5400
5401     use_additional=yes
5402
5403   acl_save_prefix="$prefix"
5404   prefix="$acl_final_prefix"
5405   acl_save_exec_prefix="$exec_prefix"
5406   exec_prefix="$acl_final_exec_prefix"
5407
5408     eval additional_includedir=\"$includedir\"
5409     eval additional_libdir=\"$libdir\"
5410
5411   exec_prefix="$acl_save_exec_prefix"
5412   prefix="$acl_save_prefix"
5413
5414
5415 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5416 if test "${with_libiconv_prefix+set}" = set; then
5417   withval="$with_libiconv_prefix"
5418
5419     if test "X$withval" = "Xno"; then
5420       use_additional=no
5421     else
5422       if test "X$withval" = "X"; then
5423
5424   acl_save_prefix="$prefix"
5425   prefix="$acl_final_prefix"
5426   acl_save_exec_prefix="$exec_prefix"
5427   exec_prefix="$acl_final_exec_prefix"
5428
5429           eval additional_includedir=\"$includedir\"
5430           eval additional_libdir=\"$libdir\"
5431
5432   exec_prefix="$acl_save_exec_prefix"
5433   prefix="$acl_save_prefix"
5434
5435       else
5436         additional_includedir="$withval/include"
5437         additional_libdir="$withval/lib"
5438       fi
5439     fi
5440
5441 fi;
5442       LIBICONV=
5443   LTLIBICONV=
5444   INCICONV=
5445   rpathdirs=
5446   ltrpathdirs=
5447   names_already_handled=
5448   names_next_round='iconv '
5449   while test -n "$names_next_round"; do
5450     names_this_round="$names_next_round"
5451     names_next_round=
5452     for name in $names_this_round; do
5453       already_handled=
5454       for n in $names_already_handled; do
5455         if test "$n" = "$name"; then
5456           already_handled=yes
5457           break
5458         fi
5459       done
5460       if test -z "$already_handled"; then
5461         names_already_handled="$names_already_handled $name"
5462                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5463         eval value=\"\$HAVE_LIB$uppername\"
5464         if test -n "$value"; then
5465           if test "$value" = yes; then
5466             eval value=\"\$LIB$uppername\"
5467             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5468             eval value=\"\$LTLIB$uppername\"
5469             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5470           else
5471                                     :
5472           fi
5473         else
5474                               found_dir=
5475           found_la=
5476           found_so=
5477           found_a=
5478           if test $use_additional = yes; then
5479             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5480               found_dir="$additional_libdir"
5481               found_so="$additional_libdir/lib$name.$shlibext"
5482               if test -f "$additional_libdir/lib$name.la"; then
5483                 found_la="$additional_libdir/lib$name.la"
5484               fi
5485             else
5486               if test -f "$additional_libdir/lib$name.$libext"; then
5487                 found_dir="$additional_libdir"
5488                 found_a="$additional_libdir/lib$name.$libext"
5489                 if test -f "$additional_libdir/lib$name.la"; then
5490                   found_la="$additional_libdir/lib$name.la"
5491                 fi
5492               fi
5493             fi
5494           fi
5495           if test "X$found_dir" = "X"; then
5496             for x in $LDFLAGS $LTLIBICONV; do
5497
5498   acl_save_prefix="$prefix"
5499   prefix="$acl_final_prefix"
5500   acl_save_exec_prefix="$exec_prefix"
5501   exec_prefix="$acl_final_exec_prefix"
5502   eval x=\"$x\"
5503   exec_prefix="$acl_save_exec_prefix"
5504   prefix="$acl_save_prefix"
5505
5506               case "$x" in
5507                 -L*)
5508                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5509                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5510                     found_dir="$dir"
5511                     found_so="$dir/lib$name.$shlibext"
5512                     if test -f "$dir/lib$name.la"; then
5513                       found_la="$dir/lib$name.la"
5514                     fi
5515                   else
5516                     if test -f "$dir/lib$name.$libext"; then
5517                       found_dir="$dir"
5518                       found_a="$dir/lib$name.$libext"
5519                       if test -f "$dir/lib$name.la"; then
5520                         found_la="$dir/lib$name.la"
5521                       fi
5522                     fi
5523                   fi
5524                   ;;
5525               esac
5526               if test "X$found_dir" != "X"; then
5527                 break
5528               fi
5529             done
5530           fi
5531           if test "X$found_dir" != "X"; then
5532                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5533             if test "X$found_so" != "X"; then
5534                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5535                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5536               else
5537                                                                                 haveit=
5538                 for x in $ltrpathdirs; do
5539                   if test "X$x" = "X$found_dir"; then
5540                     haveit=yes
5541                     break
5542                   fi
5543                 done
5544                 if test -z "$haveit"; then
5545                   ltrpathdirs="$ltrpathdirs $found_dir"
5546                 fi
5547                                 if test "$hardcode_direct" = yes; then
5548                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5549                 else
5550                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5551                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5552                                                             haveit=
5553                     for x in $rpathdirs; do
5554                       if test "X$x" = "X$found_dir"; then
5555                         haveit=yes
5556                         break
5557                       fi
5558                     done
5559                     if test -z "$haveit"; then
5560                       rpathdirs="$rpathdirs $found_dir"
5561                     fi
5562                   else
5563                                                                                 haveit=
5564                     for x in $LDFLAGS $LIBICONV; do
5565
5566   acl_save_prefix="$prefix"
5567   prefix="$acl_final_prefix"
5568   acl_save_exec_prefix="$exec_prefix"
5569   exec_prefix="$acl_final_exec_prefix"
5570   eval x=\"$x\"
5571   exec_prefix="$acl_save_exec_prefix"
5572   prefix="$acl_save_prefix"
5573
5574                       if test "X$x" = "X-L$found_dir"; then
5575                         haveit=yes
5576                         break
5577                       fi
5578                     done
5579                     if test -z "$haveit"; then
5580                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5581                     fi
5582                     if test "$hardcode_minus_L" != no; then
5583                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5584                     else
5585                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5586                     fi
5587                   fi
5588                 fi
5589               fi
5590             else
5591               if test "X$found_a" != "X"; then
5592                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5593               else
5594                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5595               fi
5596             fi
5597                         additional_includedir=
5598             case "$found_dir" in
5599               */lib | */lib/)
5600                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5601                 additional_includedir="$basedir/include"
5602                 ;;
5603             esac
5604             if test "X$additional_includedir" != "X"; then
5605                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5606                 haveit=
5607                 if test "X$additional_includedir" = "X/usr/local/include"; then
5608                   if test -n "$GCC"; then
5609                     case $host_os in
5610                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5611                     esac
5612                   fi
5613                 fi
5614                 if test -z "$haveit"; then
5615                   for x in $CPPFLAGS $INCICONV; do
5616
5617   acl_save_prefix="$prefix"
5618   prefix="$acl_final_prefix"
5619   acl_save_exec_prefix="$exec_prefix"
5620   exec_prefix="$acl_final_exec_prefix"
5621   eval x=\"$x\"
5622   exec_prefix="$acl_save_exec_prefix"
5623   prefix="$acl_save_prefix"
5624
5625                     if test "X$x" = "X-I$additional_includedir"; then
5626                       haveit=yes
5627                       break
5628                     fi
5629                   done
5630                   if test -z "$haveit"; then
5631                     if test -d "$additional_includedir"; then
5632                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5633                     fi
5634                   fi
5635                 fi
5636               fi
5637             fi
5638                         if test -n "$found_la"; then
5639                                                         save_libdir="$libdir"
5640               case "$found_la" in
5641                 */* | *\\*) . "$found_la" ;;
5642                 *) . "./$found_la" ;;
5643               esac
5644               libdir="$save_libdir"
5645                             for dep in $dependency_libs; do
5646                 case "$dep" in
5647                   -L*)
5648                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5649                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5650                       haveit=
5651                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5652                         if test -n "$GCC"; then
5653                           case $host_os in
5654                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5655                           esac
5656                         fi
5657                       fi
5658                       if test -z "$haveit"; then
5659                         haveit=
5660                         for x in $LDFLAGS $LIBICONV; do
5661
5662   acl_save_prefix="$prefix"
5663   prefix="$acl_final_prefix"
5664   acl_save_exec_prefix="$exec_prefix"
5665   exec_prefix="$acl_final_exec_prefix"
5666   eval x=\"$x\"
5667   exec_prefix="$acl_save_exec_prefix"
5668   prefix="$acl_save_prefix"
5669
5670                           if test "X$x" = "X-L$additional_libdir"; then
5671                             haveit=yes
5672                             break
5673                           fi
5674                         done
5675                         if test -z "$haveit"; then
5676                           if test -d "$additional_libdir"; then
5677                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5678                           fi
5679                         fi
5680                         haveit=
5681                         for x in $LDFLAGS $LTLIBICONV; do
5682
5683   acl_save_prefix="$prefix"
5684   prefix="$acl_final_prefix"
5685   acl_save_exec_prefix="$exec_prefix"
5686   exec_prefix="$acl_final_exec_prefix"
5687   eval x=\"$x\"
5688   exec_prefix="$acl_save_exec_prefix"
5689   prefix="$acl_save_prefix"
5690
5691                           if test "X$x" = "X-L$additional_libdir"; then
5692                             haveit=yes
5693                             break
5694                           fi
5695                         done
5696                         if test -z "$haveit"; then
5697                           if test -d "$additional_libdir"; then
5698                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5699                           fi
5700                         fi
5701                       fi
5702                     fi
5703                     ;;
5704                   -R*)
5705                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5706                     if test "$enable_rpath" != no; then
5707                                                                   haveit=
5708                       for x in $rpathdirs; do
5709                         if test "X$x" = "X$dir"; then
5710                           haveit=yes
5711                           break
5712                         fi
5713                       done
5714                       if test -z "$haveit"; then
5715                         rpathdirs="$rpathdirs $dir"
5716                       fi
5717                                                                   haveit=
5718                       for x in $ltrpathdirs; do
5719                         if test "X$x" = "X$dir"; then
5720                           haveit=yes
5721                           break
5722                         fi
5723                       done
5724                       if test -z "$haveit"; then
5725                         ltrpathdirs="$ltrpathdirs $dir"
5726                       fi
5727                     fi
5728                     ;;
5729                   -l*)
5730                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5731                     ;;
5732                   *.la)
5733                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5734                     ;;
5735                   *)
5736                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5737                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5738                     ;;
5739                 esac
5740               done
5741             fi
5742           else
5743                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5744             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5745           fi
5746         fi
5747       fi
5748     done
5749   done
5750   if test "X$rpathdirs" != "X"; then
5751     if test -n "$hardcode_libdir_separator"; then
5752                         alldirs=
5753       for found_dir in $rpathdirs; do
5754         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5755       done
5756             acl_save_libdir="$libdir"
5757       libdir="$alldirs"
5758       eval flag=\"$hardcode_libdir_flag_spec\"
5759       libdir="$acl_save_libdir"
5760       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5761     else
5762             for found_dir in $rpathdirs; do
5763         acl_save_libdir="$libdir"
5764         libdir="$found_dir"
5765         eval flag=\"$hardcode_libdir_flag_spec\"
5766         libdir="$acl_save_libdir"
5767         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5768       done
5769     fi
5770   fi
5771   if test "X$ltrpathdirs" != "X"; then
5772             for found_dir in $ltrpathdirs; do
5773       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5774     done
5775   fi
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5795 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5796 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   gt_save_CPPFLAGS="$CPPFLAGS"
5800      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5801      gt_save_LIBS="$LIBS"
5802      LIBS="$LIBS -framework CoreFoundation"
5803      cat >conftest.$ac_ext <<_ACEOF
5804 /* confdefs.h.  */
5805 _ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h.  */
5809 #include <CFPreferences.h>
5810 int
5811 main ()
5812 {
5813 CFPreferencesCopyAppValue(NULL, NULL)
5814   ;
5815   return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext conftest$ac_exeext
5819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5820   (eval $ac_link) 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } &&
5827          { ac_try='test -z "$ac_c_werror_flag"
5828                          || test ! -s conftest.err'
5829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830   (eval $ac_try) 2>&5
5831   ac_status=$?
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); }; } &&
5834          { ac_try='test -s conftest$ac_exeext'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; }; then
5840   gt_cv_func_CFPreferencesCopyAppValue=yes
5841 else
5842   echo "$as_me: failed program was:" >&5
5843 sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 gt_cv_func_CFPreferencesCopyAppValue=no
5846 fi
5847 rm -f conftest.err conftest.$ac_objext \
5848       conftest$ac_exeext conftest.$ac_ext
5849      CPPFLAGS="$gt_save_CPPFLAGS"
5850      LIBS="$gt_save_LIBS"
5851 fi
5852 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5853 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5854   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5855
5856 cat >>confdefs.h <<\_ACEOF
5857 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5858 _ACEOF
5859
5860   fi
5861     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5862 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5863 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   gt_save_CPPFLAGS="$CPPFLAGS"
5867      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5868      gt_save_LIBS="$LIBS"
5869      LIBS="$LIBS -framework CoreFoundation"
5870      cat >conftest.$ac_ext <<_ACEOF
5871 /* confdefs.h.  */
5872 _ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h.  */
5876 #include <CFLocale.h>
5877 int
5878 main ()
5879 {
5880 CFLocaleCopyCurrent();
5881   ;
5882   return 0;
5883 }
5884 _ACEOF
5885 rm -f conftest.$ac_objext conftest$ac_exeext
5886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5887   (eval $ac_link) 2>conftest.er1
5888   ac_status=$?
5889   grep -v '^ *+' conftest.er1 >conftest.err
5890   rm -f conftest.er1
5891   cat conftest.err >&5
5892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893   (exit $ac_status); } &&
5894          { ac_try='test -z "$ac_c_werror_flag"
5895                          || test ! -s conftest.err'
5896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5897   (eval $ac_try) 2>&5
5898   ac_status=$?
5899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900   (exit $ac_status); }; } &&
5901          { ac_try='test -s conftest$ac_exeext'
5902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5903   (eval $ac_try) 2>&5
5904   ac_status=$?
5905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906   (exit $ac_status); }; }; then
5907   gt_cv_func_CFLocaleCopyCurrent=yes
5908 else
5909   echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5911
5912 gt_cv_func_CFLocaleCopyCurrent=no
5913 fi
5914 rm -f conftest.err conftest.$ac_objext \
5915       conftest$ac_exeext conftest.$ac_ext
5916      CPPFLAGS="$gt_save_CPPFLAGS"
5917      LIBS="$gt_save_LIBS"
5918 fi
5919 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5920 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5921   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5922
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_CFLOCALECOPYCURRENT 1
5925 _ACEOF
5926
5927   fi
5928   INTL_MACOSX_LIBS=
5929   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5930     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5931   fi
5932
5933
5934
5935
5936   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5937 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5938     # Check whether --enable-nls or --disable-nls was given.
5939 if test "${enable_nls+set}" = set; then
5940   enableval="$enable_nls"
5941   USE_NLS=$enableval
5942 else
5943   USE_NLS=yes
5944 fi;
5945   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5946 echo "${ECHO_T}$USE_NLS" >&6
5947
5948
5949
5950
5951   LIBINTL=
5952   LTLIBINTL=
5953   POSUB=
5954
5955     if test "$USE_NLS" = "yes"; then
5956     gt_use_preinstalled_gnugettext=no
5957
5958
5959
5960
5961
5962
5963         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5964 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5965 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5966   echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 #include <libintl.h>
5975 extern int _nl_msg_cat_cntr;
5976 extern int *_nl_domain_bindings;
5977 int
5978 main ()
5979 {
5980 bindtextdomain ("", "");
5981 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5982   ;
5983   return 0;
5984 }
5985 _ACEOF
5986 rm -f conftest.$ac_objext conftest$ac_exeext
5987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5988   (eval $ac_link) 2>conftest.er1
5989   ac_status=$?
5990   grep -v '^ *+' conftest.er1 >conftest.err
5991   rm -f conftest.er1
5992   cat conftest.err >&5
5993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994   (exit $ac_status); } &&
5995          { ac_try='test -z "$ac_c_werror_flag"
5996                          || test ! -s conftest.err'
5997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5998   (eval $ac_try) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); }; } &&
6002          { ac_try='test -s conftest$ac_exeext'
6003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6004   (eval $ac_try) 2>&5
6005   ac_status=$?
6006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007   (exit $ac_status); }; }; then
6008   gt_cv_func_gnugettext1_libc=yes
6009 else
6010   echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 gt_cv_func_gnugettext1_libc=no
6014 fi
6015 rm -f conftest.err conftest.$ac_objext \
6016       conftest$ac_exeext conftest.$ac_ext
6017 fi
6018 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6019 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6020
6021         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6022
6023
6024
6025
6026
6027           am_save_CPPFLAGS="$CPPFLAGS"
6028
6029   for element in $INCICONV; do
6030     haveit=
6031     for x in $CPPFLAGS; do
6032
6033   acl_save_prefix="$prefix"
6034   prefix="$acl_final_prefix"
6035   acl_save_exec_prefix="$exec_prefix"
6036   exec_prefix="$acl_final_exec_prefix"
6037   eval x=\"$x\"
6038   exec_prefix="$acl_save_exec_prefix"
6039   prefix="$acl_save_prefix"
6040
6041       if test "X$x" = "X$element"; then
6042         haveit=yes
6043         break
6044       fi
6045     done
6046     if test -z "$haveit"; then
6047       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6048     fi
6049   done
6050
6051
6052   echo "$as_me:$LINENO: checking for iconv" >&5
6053 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6054 if test "${am_cv_func_iconv+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057
6058     am_cv_func_iconv="no, consider installing GNU libiconv"
6059     am_cv_lib_iconv=no
6060     cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066 #include <stdlib.h>
6067 #include <iconv.h>
6068 int
6069 main ()
6070 {
6071 iconv_t cd = iconv_open("","");
6072        iconv(cd,NULL,NULL,NULL,NULL);
6073        iconv_close(cd);
6074   ;
6075   return 0;
6076 }
6077 _ACEOF
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6080   (eval $ac_link) 2>conftest.er1
6081   ac_status=$?
6082   grep -v '^ *+' conftest.er1 >conftest.err
6083   rm -f conftest.er1
6084   cat conftest.err >&5
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); } &&
6087          { ac_try='test -z "$ac_c_werror_flag"
6088                          || test ! -s conftest.err'
6089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6090   (eval $ac_try) 2>&5
6091   ac_status=$?
6092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093   (exit $ac_status); }; } &&
6094          { ac_try='test -s conftest$ac_exeext'
6095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096   (eval $ac_try) 2>&5
6097   ac_status=$?
6098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); }; }; then
6100   am_cv_func_iconv=yes
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 fi
6106 rm -f conftest.err conftest.$ac_objext \
6107       conftest$ac_exeext conftest.$ac_ext
6108     if test "$am_cv_func_iconv" != yes; then
6109       am_save_LIBS="$LIBS"
6110       LIBS="$LIBS $LIBICONV"
6111       cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 #include <stdlib.h>
6118 #include <iconv.h>
6119 int
6120 main ()
6121 {
6122 iconv_t cd = iconv_open("","");
6123          iconv(cd,NULL,NULL,NULL,NULL);
6124          iconv_close(cd);
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext conftest$ac_exeext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131   (eval $ac_link) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -z "$ac_c_werror_flag"
6139                          || test ! -s conftest.err'
6140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6141   (eval $ac_try) 2>&5
6142   ac_status=$?
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); }; } &&
6145          { ac_try='test -s conftest$ac_exeext'
6146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6147   (eval $ac_try) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); }; }; then
6151   am_cv_lib_iconv=yes
6152         am_cv_func_iconv=yes
6153 else
6154   echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.$ac_ext >&5
6156
6157 fi
6158 rm -f conftest.err conftest.$ac_objext \
6159       conftest$ac_exeext conftest.$ac_ext
6160       LIBS="$am_save_LIBS"
6161     fi
6162
6163 fi
6164 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6165 echo "${ECHO_T}$am_cv_func_iconv" >&6
6166   if test "$am_cv_func_iconv" = yes; then
6167
6168 cat >>confdefs.h <<\_ACEOF
6169 #define HAVE_ICONV 1
6170 _ACEOF
6171
6172   fi
6173   if test "$am_cv_lib_iconv" = yes; then
6174     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6175 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6176     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6177 echo "${ECHO_T}$LIBICONV" >&6
6178   else
6179             CPPFLAGS="$am_save_CPPFLAGS"
6180     LIBICONV=
6181     LTLIBICONV=
6182   fi
6183
6184
6185
6186
6187
6188
6189     use_additional=yes
6190
6191   acl_save_prefix="$prefix"
6192   prefix="$acl_final_prefix"
6193   acl_save_exec_prefix="$exec_prefix"
6194   exec_prefix="$acl_final_exec_prefix"
6195
6196     eval additional_includedir=\"$includedir\"
6197     eval additional_libdir=\"$libdir\"
6198
6199   exec_prefix="$acl_save_exec_prefix"
6200   prefix="$acl_save_prefix"
6201
6202
6203 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6204 if test "${with_libintl_prefix+set}" = set; then
6205   withval="$with_libintl_prefix"
6206
6207     if test "X$withval" = "Xno"; then
6208       use_additional=no
6209     else
6210       if test "X$withval" = "X"; then
6211
6212   acl_save_prefix="$prefix"
6213   prefix="$acl_final_prefix"
6214   acl_save_exec_prefix="$exec_prefix"
6215   exec_prefix="$acl_final_exec_prefix"
6216
6217           eval additional_includedir=\"$includedir\"
6218           eval additional_libdir=\"$libdir\"
6219
6220   exec_prefix="$acl_save_exec_prefix"
6221   prefix="$acl_save_prefix"
6222
6223       else
6224         additional_includedir="$withval/include"
6225         additional_libdir="$withval/lib"
6226       fi
6227     fi
6228
6229 fi;
6230       LIBINTL=
6231   LTLIBINTL=
6232   INCINTL=
6233   rpathdirs=
6234   ltrpathdirs=
6235   names_already_handled=
6236   names_next_round='intl '
6237   while test -n "$names_next_round"; do
6238     names_this_round="$names_next_round"
6239     names_next_round=
6240     for name in $names_this_round; do
6241       already_handled=
6242       for n in $names_already_handled; do
6243         if test "$n" = "$name"; then
6244           already_handled=yes
6245           break
6246         fi
6247       done
6248       if test -z "$already_handled"; then
6249         names_already_handled="$names_already_handled $name"
6250                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6251         eval value=\"\$HAVE_LIB$uppername\"
6252         if test -n "$value"; then
6253           if test "$value" = yes; then
6254             eval value=\"\$LIB$uppername\"
6255             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6256             eval value=\"\$LTLIB$uppername\"
6257             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6258           else
6259                                     :
6260           fi
6261         else
6262                               found_dir=
6263           found_la=
6264           found_so=
6265           found_a=
6266           if test $use_additional = yes; then
6267             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6268               found_dir="$additional_libdir"
6269               found_so="$additional_libdir/lib$name.$shlibext"
6270               if test -f "$additional_libdir/lib$name.la"; then
6271                 found_la="$additional_libdir/lib$name.la"
6272               fi
6273             else
6274               if test -f "$additional_libdir/lib$name.$libext"; then
6275                 found_dir="$additional_libdir"
6276                 found_a="$additional_libdir/lib$name.$libext"
6277                 if test -f "$additional_libdir/lib$name.la"; then
6278                   found_la="$additional_libdir/lib$name.la"
6279                 fi
6280               fi
6281             fi
6282           fi
6283           if test "X$found_dir" = "X"; then
6284             for x in $LDFLAGS $LTLIBINTL; do
6285
6286   acl_save_prefix="$prefix"
6287   prefix="$acl_final_prefix"
6288   acl_save_exec_prefix="$exec_prefix"
6289   exec_prefix="$acl_final_exec_prefix"
6290   eval x=\"$x\"
6291   exec_prefix="$acl_save_exec_prefix"
6292   prefix="$acl_save_prefix"
6293
6294               case "$x" in
6295                 -L*)
6296                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6297                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6298                     found_dir="$dir"
6299                     found_so="$dir/lib$name.$shlibext"
6300                     if test -f "$dir/lib$name.la"; then
6301                       found_la="$dir/lib$name.la"
6302                     fi
6303                   else
6304                     if test -f "$dir/lib$name.$libext"; then
6305                       found_dir="$dir"
6306                       found_a="$dir/lib$name.$libext"
6307                       if test -f "$dir/lib$name.la"; then
6308                         found_la="$dir/lib$name.la"
6309                       fi
6310                     fi
6311                   fi
6312                   ;;
6313               esac
6314               if test "X$found_dir" != "X"; then
6315                 break
6316               fi
6317             done
6318           fi
6319           if test "X$found_dir" != "X"; then
6320                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6321             if test "X$found_so" != "X"; then
6322                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6323                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6324               else
6325                                                                                 haveit=
6326                 for x in $ltrpathdirs; do
6327                   if test "X$x" = "X$found_dir"; then
6328                     haveit=yes
6329                     break
6330                   fi
6331                 done
6332                 if test -z "$haveit"; then
6333                   ltrpathdirs="$ltrpathdirs $found_dir"
6334                 fi
6335                                 if test "$hardcode_direct" = yes; then
6336                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6337                 else
6338                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6339                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6340                                                             haveit=
6341                     for x in $rpathdirs; do
6342                       if test "X$x" = "X$found_dir"; then
6343                         haveit=yes
6344                         break
6345                       fi
6346                     done
6347                     if test -z "$haveit"; then
6348                       rpathdirs="$rpathdirs $found_dir"
6349                     fi
6350                   else
6351                                                                                 haveit=
6352                     for x in $LDFLAGS $LIBINTL; do
6353
6354   acl_save_prefix="$prefix"
6355   prefix="$acl_final_prefix"
6356   acl_save_exec_prefix="$exec_prefix"
6357   exec_prefix="$acl_final_exec_prefix"
6358   eval x=\"$x\"
6359   exec_prefix="$acl_save_exec_prefix"
6360   prefix="$acl_save_prefix"
6361
6362                       if test "X$x" = "X-L$found_dir"; then
6363                         haveit=yes
6364                         break
6365                       fi
6366                     done
6367                     if test -z "$haveit"; then
6368                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6369                     fi
6370                     if test "$hardcode_minus_L" != no; then
6371                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6372                     else
6373                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6374                     fi
6375                   fi
6376                 fi
6377               fi
6378             else
6379               if test "X$found_a" != "X"; then
6380                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6381               else
6382                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6383               fi
6384             fi
6385                         additional_includedir=
6386             case "$found_dir" in
6387               */lib | */lib/)
6388                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6389                 additional_includedir="$basedir/include"
6390                 ;;
6391             esac
6392             if test "X$additional_includedir" != "X"; then
6393                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6394                 haveit=
6395                 if test "X$additional_includedir" = "X/usr/local/include"; then
6396                   if test -n "$GCC"; then
6397                     case $host_os in
6398                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6399                     esac
6400                   fi
6401                 fi
6402                 if test -z "$haveit"; then
6403                   for x in $CPPFLAGS $INCINTL; do
6404
6405   acl_save_prefix="$prefix"
6406   prefix="$acl_final_prefix"
6407   acl_save_exec_prefix="$exec_prefix"
6408   exec_prefix="$acl_final_exec_prefix"
6409   eval x=\"$x\"
6410   exec_prefix="$acl_save_exec_prefix"
6411   prefix="$acl_save_prefix"
6412
6413                     if test "X$x" = "X-I$additional_includedir"; then
6414                       haveit=yes
6415                       break
6416                     fi
6417                   done
6418                   if test -z "$haveit"; then
6419                     if test -d "$additional_includedir"; then
6420                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6421                     fi
6422                   fi
6423                 fi
6424               fi
6425             fi
6426                         if test -n "$found_la"; then
6427                                                         save_libdir="$libdir"
6428               case "$found_la" in
6429                 */* | *\\*) . "$found_la" ;;
6430                 *) . "./$found_la" ;;
6431               esac
6432               libdir="$save_libdir"
6433                             for dep in $dependency_libs; do
6434                 case "$dep" in
6435                   -L*)
6436                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6437                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6438                       haveit=
6439                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6440                         if test -n "$GCC"; then
6441                           case $host_os in
6442                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6443                           esac
6444                         fi
6445                       fi
6446                       if test -z "$haveit"; then
6447                         haveit=
6448                         for x in $LDFLAGS $LIBINTL; do
6449
6450   acl_save_prefix="$prefix"
6451   prefix="$acl_final_prefix"
6452   acl_save_exec_prefix="$exec_prefix"
6453   exec_prefix="$acl_final_exec_prefix"
6454   eval x=\"$x\"
6455   exec_prefix="$acl_save_exec_prefix"
6456   prefix="$acl_save_prefix"
6457
6458                           if test "X$x" = "X-L$additional_libdir"; then
6459                             haveit=yes
6460                             break
6461                           fi
6462                         done
6463                         if test -z "$haveit"; then
6464                           if test -d "$additional_libdir"; then
6465                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6466                           fi
6467                         fi
6468                         haveit=
6469                         for x in $LDFLAGS $LTLIBINTL; do
6470
6471   acl_save_prefix="$prefix"
6472   prefix="$acl_final_prefix"
6473   acl_save_exec_prefix="$exec_prefix"
6474   exec_prefix="$acl_final_exec_prefix"
6475   eval x=\"$x\"
6476   exec_prefix="$acl_save_exec_prefix"
6477   prefix="$acl_save_prefix"
6478
6479                           if test "X$x" = "X-L$additional_libdir"; then
6480                             haveit=yes
6481                             break
6482                           fi
6483                         done
6484                         if test -z "$haveit"; then
6485                           if test -d "$additional_libdir"; then
6486                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6487                           fi
6488                         fi
6489                       fi
6490                     fi
6491                     ;;
6492                   -R*)
6493                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6494                     if test "$enable_rpath" != no; then
6495                                                                   haveit=
6496                       for x in $rpathdirs; do
6497                         if test "X$x" = "X$dir"; then
6498                           haveit=yes
6499                           break
6500                         fi
6501                       done
6502                       if test -z "$haveit"; then
6503                         rpathdirs="$rpathdirs $dir"
6504                       fi
6505                                                                   haveit=
6506                       for x in $ltrpathdirs; do
6507                         if test "X$x" = "X$dir"; then
6508                           haveit=yes
6509                           break
6510                         fi
6511                       done
6512                       if test -z "$haveit"; then
6513                         ltrpathdirs="$ltrpathdirs $dir"
6514                       fi
6515                     fi
6516                     ;;
6517                   -l*)
6518                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6519                     ;;
6520                   *.la)
6521                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6522                     ;;
6523                   *)
6524                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6525                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6526                     ;;
6527                 esac
6528               done
6529             fi
6530           else
6531                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6532             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6533           fi
6534         fi
6535       fi
6536     done
6537   done
6538   if test "X$rpathdirs" != "X"; then
6539     if test -n "$hardcode_libdir_separator"; then
6540                         alldirs=
6541       for found_dir in $rpathdirs; do
6542         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6543       done
6544             acl_save_libdir="$libdir"
6545       libdir="$alldirs"
6546       eval flag=\"$hardcode_libdir_flag_spec\"
6547       libdir="$acl_save_libdir"
6548       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6549     else
6550             for found_dir in $rpathdirs; do
6551         acl_save_libdir="$libdir"
6552         libdir="$found_dir"
6553         eval flag=\"$hardcode_libdir_flag_spec\"
6554         libdir="$acl_save_libdir"
6555         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6556       done
6557     fi
6558   fi
6559   if test "X$ltrpathdirs" != "X"; then
6560             for found_dir in $ltrpathdirs; do
6561       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6562     done
6563   fi
6564
6565           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6566 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6567 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6568   echo $ECHO_N "(cached) $ECHO_C" >&6
6569 else
6570   gt_save_CPPFLAGS="$CPPFLAGS"
6571             CPPFLAGS="$CPPFLAGS $INCINTL"
6572             gt_save_LIBS="$LIBS"
6573             LIBS="$LIBS $LIBINTL"
6574                         cat >conftest.$ac_ext <<_ACEOF
6575 /* confdefs.h.  */
6576 _ACEOF
6577 cat confdefs.h >>conftest.$ac_ext
6578 cat >>conftest.$ac_ext <<_ACEOF
6579 /* end confdefs.h.  */
6580 #include <libintl.h>
6581 extern int _nl_msg_cat_cntr;
6582 extern
6583 #ifdef __cplusplus
6584 "C"
6585 #endif
6586 const char *_nl_expand_alias (const char *);
6587 int
6588 main ()
6589 {
6590 bindtextdomain ("", "");
6591 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext conftest$ac_exeext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6598   (eval $ac_link) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest$ac_exeext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   gt_cv_func_gnugettext1_libintl=yes
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 gt_cv_func_gnugettext1_libintl=no
6624 fi
6625 rm -f conftest.err conftest.$ac_objext \
6626       conftest$ac_exeext conftest.$ac_ext
6627                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6628               LIBS="$LIBS $LIBICONV"
6629               cat >conftest.$ac_ext <<_ACEOF
6630 /* confdefs.h.  */
6631 _ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h.  */
6635 #include <libintl.h>
6636 extern int _nl_msg_cat_cntr;
6637 extern
6638 #ifdef __cplusplus
6639 "C"
6640 #endif
6641 const char *_nl_expand_alias (const char *);
6642 int
6643 main ()
6644 {
6645 bindtextdomain ("", "");
6646 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6647   ;
6648   return 0;
6649 }
6650 _ACEOF
6651 rm -f conftest.$ac_objext conftest$ac_exeext
6652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6653   (eval $ac_link) 2>conftest.er1
6654   ac_status=$?
6655   grep -v '^ *+' conftest.er1 >conftest.err
6656   rm -f conftest.er1
6657   cat conftest.err >&5
6658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659   (exit $ac_status); } &&
6660          { ac_try='test -z "$ac_c_werror_flag"
6661                          || test ! -s conftest.err'
6662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6663   (eval $ac_try) 2>&5
6664   ac_status=$?
6665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666   (exit $ac_status); }; } &&
6667          { ac_try='test -s conftest$ac_exeext'
6668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6669   (eval $ac_try) 2>&5
6670   ac_status=$?
6671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6672   (exit $ac_status); }; }; then
6673   LIBINTL="$LIBINTL $LIBICONV"
6674                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6675                 gt_cv_func_gnugettext1_libintl=yes
6676
6677 else
6678   echo "$as_me: failed program was:" >&5
6679 sed 's/^/| /' conftest.$ac_ext >&5
6680
6681 fi
6682 rm -f conftest.err conftest.$ac_objext \
6683       conftest$ac_exeext conftest.$ac_ext
6684             fi
6685             CPPFLAGS="$gt_save_CPPFLAGS"
6686             LIBS="$gt_save_LIBS"
6687 fi
6688 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6689 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6690         fi
6691
6692                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6693            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6694                 && test "$PACKAGE" != gettext-runtime \
6695                 && test "$PACKAGE" != gettext-tools; }; then
6696           gt_use_preinstalled_gnugettext=yes
6697         else
6698                     LIBINTL=
6699           LTLIBINTL=
6700           INCINTL=
6701         fi
6702
6703
6704
6705     if test -n "$INTL_MACOSX_LIBS"; then
6706       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6707          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6708                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6709         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6710       fi
6711     fi
6712
6713     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6714        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6715
6716 cat >>confdefs.h <<\_ACEOF
6717 #define ENABLE_NLS 1
6718 _ACEOF
6719
6720     else
6721       USE_NLS=no
6722     fi
6723   fi
6724
6725   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6726 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6727   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6728 echo "${ECHO_T}$USE_NLS" >&6
6729   if test "$USE_NLS" = "yes"; then
6730     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6731 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6732     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6733       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6734         gt_source="external libintl"
6735       else
6736         gt_source="libc"
6737       fi
6738     else
6739       gt_source="included intl directory"
6740     fi
6741     echo "$as_me:$LINENO: result: $gt_source" >&5
6742 echo "${ECHO_T}$gt_source" >&6
6743   fi
6744
6745   if test "$USE_NLS" = "yes"; then
6746
6747     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6748       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6749         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6750 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6751         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6752 echo "${ECHO_T}$LIBINTL" >&6
6753
6754   for element in $INCINTL; do
6755     haveit=
6756     for x in $CPPFLAGS; do
6757
6758   acl_save_prefix="$prefix"
6759   prefix="$acl_final_prefix"
6760   acl_save_exec_prefix="$exec_prefix"
6761   exec_prefix="$acl_final_exec_prefix"
6762   eval x=\"$x\"
6763   exec_prefix="$acl_save_exec_prefix"
6764   prefix="$acl_save_prefix"
6765
6766       if test "X$x" = "X$element"; then
6767         haveit=yes
6768         break
6769       fi
6770     done
6771     if test -z "$haveit"; then
6772       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6773     fi
6774   done
6775
6776       fi
6777
6778
6779 cat >>confdefs.h <<\_ACEOF
6780 #define HAVE_GETTEXT 1
6781 _ACEOF
6782
6783
6784 cat >>confdefs.h <<\_ACEOF
6785 #define HAVE_DCGETTEXT 1
6786 _ACEOF
6787
6788     fi
6789
6790         POSUB=po
6791   fi
6792
6793
6794
6795     INTLLIBS="$LIBINTL"
6796
6797
6798
6799
6800
6801
6802 if test x${prefix} = xNONE ; then
6803    if test `eval echo ${datadir}` = NONE/share ; then
6804       datadir=/usr/share
6805    fi
6806 fi
6807
6808 # ------------------------------------------------------------------
6809 #  If the user has not set --prefix, we set our default to nothing.
6810 #  In this case, if the user has not set --sysconfdir, we set it
6811 #  to the package default of /etc/bacula.  If either --prefix or
6812 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6813 # ------------------------------------------------------------------
6814 if test x${prefix} = xNONE ; then
6815     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6816         sysconfdir=/etc/bacula
6817     fi
6818     prefix=
6819 fi
6820 sysconfdir=`eval echo ${sysconfdir}`
6821 datadir=`eval echo ${datadir}`
6822 localedir=`eval echo ${datadir}/locale`
6823 cat >>confdefs.h <<_ACEOF
6824 #define LOCALEDIR "$localedir"
6825 _ACEOF
6826
6827 cat >>confdefs.h <<_ACEOF
6828 #define SYSCONFDIR "$sysconfdir"
6829 _ACEOF
6830
6831
6832 # -------------------------------------------------------------------------
6833 #  If the user has not set --exec-prefix, we default to ${prefix}
6834 # -------------------------------------------------------------------------
6835 if test x${exec_prefix} = xNONE ; then
6836     exec_prefix=${prefix}
6837 fi
6838
6839 # ------------------------------------------------------------------
6840 # If the user has not set --sbindir, we set our default as /sbin
6841 # ------------------------------------------------------------------
6842 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6843     sbindir=${exec_prefix}/sbin
6844 fi
6845 sbindir=`eval echo ${sbindir}`
6846
6847
6848 # -------------------------------------------------------------------------
6849 #  If the user has not set --mandir, we default to /usr/share/man
6850 # -------------------------------------------------------------------------
6851 if test x$mandir = x'${prefix}/man' ; then
6852    mandir=/usr/share/man
6853 fi
6854
6855
6856 for ac_prog in msgfmt
6857 do
6858   # Extract the first word of "$ac_prog", so it can be a program name with args.
6859 set dummy $ac_prog; ac_word=$2
6860 echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6862 if test "${ac_cv_path_MSGFMT+set}" = set; then
6863   echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865   case $MSGFMT in
6866   [\\/]* | ?:[\\/]*)
6867   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6868   ;;
6869   *)
6870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875   for ac_exec_ext in '' $ac_executable_extensions; do
6876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882 done
6883
6884   ;;
6885 esac
6886 fi
6887 MSGFMT=$ac_cv_path_MSGFMT
6888
6889 if test -n "$MSGFMT"; then
6890   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6891 echo "${ECHO_T}$MSGFMT" >&6
6892 else
6893   echo "$as_me:$LINENO: result: no" >&5
6894 echo "${ECHO_T}no" >&6
6895 fi
6896
6897   test -n "$MSGFMT" && break
6898 done
6899 test -n "$MSGFMT" || MSGFMT="no"
6900
6901 if test "$MSGFMT" = "no"
6902 then
6903    echo 'msgfmt program not found, disabling NLS !'
6904    USE_NLS=no
6905    USE_INCLUDED_LIBINTL=no
6906 #else
6907
6908     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
6909 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6
6910 if test "${ac_cv_gnu_library_2+set}" = set; then
6911   echo $ECHO_N "(cached) $ECHO_C" >&6
6912 else
6913   cat >conftest.$ac_ext <<_ACEOF
6914 /* confdefs.h.  */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h.  */
6919
6920 #include <features.h>
6921 #ifdef __GNU_LIBRARY__
6922  #if (__GLIBC__ >= 2)
6923   Lucky GNU user
6924  #endif
6925 #endif
6926
6927 _ACEOF
6928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6929   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6930   ac_cv_gnu_library_2=yes
6931 else
6932   ac_cv_gnu_library_2=no
6933 fi
6934 rm -f conftest*
6935
6936
6937
6938 fi
6939 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
6940 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6
6941
6942     GLIBC2="$ac_cv_gnu_library_2"
6943
6944
6945
6946         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
6947 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
6948 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
6949   echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951   ac_check_lib_save_LIBS=$LIBS
6952 LIBS="-lcposix  $LIBS"
6953 cat >conftest.$ac_ext <<_ACEOF
6954 /* confdefs.h.  */
6955 _ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h.  */
6959
6960 /* Override any gcc2 internal prototype to avoid an error.  */
6961 #ifdef __cplusplus
6962 extern "C"
6963 #endif
6964 /* We use char because int might match the return type of a gcc2
6965    builtin and then its argument prototype would still apply.  */
6966 char strerror ();
6967 int
6968 main ()
6969 {
6970 strerror ();
6971   ;
6972   return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext conftest$ac_exeext
6976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6977   (eval $ac_link) 2>conftest.er1
6978   ac_status=$?
6979   grep -v '^ *+' conftest.er1 >conftest.err
6980   rm -f conftest.er1
6981   cat conftest.err >&5
6982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983   (exit $ac_status); } &&
6984          { ac_try='test -z "$ac_c_werror_flag"
6985                          || test ! -s conftest.err'
6986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987   (eval $ac_try) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); }; } &&
6991          { ac_try='test -s conftest$ac_exeext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_cv_lib_cposix_strerror=yes
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_cv_lib_cposix_strerror=no
7003 fi
7004 rm -f conftest.err conftest.$ac_objext \
7005       conftest$ac_exeext conftest.$ac_ext
7006 LIBS=$ac_check_lib_save_LIBS
7007 fi
7008 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7009 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
7010 if test $ac_cv_lib_cposix_strerror = yes; then
7011   LIBS="$LIBS -lcposix"
7012 fi
7013
7014
7015
7016 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7017 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7018 if test "${ac_cv_header_stdc+set}" = set; then
7019   echo $ECHO_N "(cached) $ECHO_C" >&6
7020 else
7021   cat >conftest.$ac_ext <<_ACEOF
7022 /* confdefs.h.  */
7023 _ACEOF
7024 cat confdefs.h >>conftest.$ac_ext
7025 cat >>conftest.$ac_ext <<_ACEOF
7026 /* end confdefs.h.  */
7027 #include <stdlib.h>
7028 #include <stdarg.h>
7029 #include <string.h>
7030 #include <float.h>
7031
7032 int
7033 main ()
7034 {
7035
7036   ;
7037   return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7042   (eval $ac_compile) 2>conftest.er1
7043   ac_status=$?
7044   grep -v '^ *+' conftest.er1 >conftest.err
7045   rm -f conftest.er1
7046   cat conftest.err >&5
7047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048   (exit $ac_status); } &&
7049          { ac_try='test -z "$ac_c_werror_flag"
7050                          || test ! -s conftest.err'
7051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7052   (eval $ac_try) 2>&5
7053   ac_status=$?
7054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7055   (exit $ac_status); }; } &&
7056          { ac_try='test -s conftest.$ac_objext'
7057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7058   (eval $ac_try) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); }; }; then
7062   ac_cv_header_stdc=yes
7063 else
7064   echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_header_stdc=no
7068 fi
7069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7070
7071 if test $ac_cv_header_stdc = yes; then
7072   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7073   cat >conftest.$ac_ext <<_ACEOF
7074 /* confdefs.h.  */
7075 _ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h.  */
7079 #include <string.h>
7080
7081 _ACEOF
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083   $EGREP "memchr" >/dev/null 2>&1; then
7084   :
7085 else
7086   ac_cv_header_stdc=no
7087 fi
7088 rm -f conftest*
7089
7090 fi
7091
7092 if test $ac_cv_header_stdc = yes; then
7093   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7094   cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h.  */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h.  */
7100 #include <stdlib.h>
7101
7102 _ACEOF
7103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7104   $EGREP "free" >/dev/null 2>&1; then
7105   :
7106 else
7107   ac_cv_header_stdc=no
7108 fi
7109 rm -f conftest*
7110
7111 fi
7112
7113 if test $ac_cv_header_stdc = yes; then
7114   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7115   if test "$cross_compiling" = yes; then
7116   :
7117 else
7118   cat >conftest.$ac_ext <<_ACEOF
7119 /* confdefs.h.  */
7120 _ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h.  */
7124 #include <ctype.h>
7125 #if ((' ' & 0x0FF) == 0x020)
7126 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7127 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7128 #else
7129 # define ISLOWER(c) \
7130                    (('a' <= (c) && (c) <= 'i') \
7131                      || ('j' <= (c) && (c) <= 'r') \
7132                      || ('s' <= (c) && (c) <= 'z'))
7133 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7134 #endif
7135
7136 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7137 int
7138 main ()
7139 {
7140   int i;
7141   for (i = 0; i < 256; i++)
7142     if (XOR (islower (i), ISLOWER (i))
7143         || toupper (i) != TOUPPER (i))
7144       exit(2);
7145   exit (0);
7146 }
7147 _ACEOF
7148 rm -f conftest$ac_exeext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7150   (eval $ac_link) 2>&5
7151   ac_status=$?
7152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7155   (eval $ac_try) 2>&5
7156   ac_status=$?
7157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158   (exit $ac_status); }; }; then
7159   :
7160 else
7161   echo "$as_me: program exited with status $ac_status" >&5
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7164
7165 ( exit $ac_status )
7166 ac_cv_header_stdc=no
7167 fi
7168 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7169 fi
7170 fi
7171 fi
7172 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7173 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7174 if test $ac_cv_header_stdc = yes; then
7175
7176 cat >>confdefs.h <<\_ACEOF
7177 #define STDC_HEADERS 1
7178 _ACEOF
7179
7180 fi
7181
7182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7184 if test "${ac_cv_c_const+set}" = set; then
7185   echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187   cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193
7194 int
7195 main ()
7196 {
7197 /* FIXME: Include the comments suggested by Paul. */
7198 #ifndef __cplusplus
7199   /* Ultrix mips cc rejects this.  */
7200   typedef int charset[2];
7201   const charset x;
7202   /* SunOS 4.1.1 cc rejects this.  */
7203   char const *const *ccp;
7204   char **p;
7205   /* NEC SVR4.0.2 mips cc rejects this.  */
7206   struct point {int x, y;};
7207   static struct point const zero = {0,0};
7208   /* AIX XL C 1.02.0.0 rejects this.
7209      It does not let you subtract one const X* pointer from another in
7210      an arm of an if-expression whose if-part is not a constant
7211      expression */
7212   const char *g = "string";
7213   ccp = &g + (g ? g-g : 0);
7214   /* HPUX 7.0 cc rejects these. */
7215   ++ccp;
7216   p = (char**) ccp;
7217   ccp = (char const *const *) p;
7218   { /* SCO 3.2v4 cc rejects this.  */
7219     char *t;
7220     char const *s = 0 ? (char *) 0 : (char const *) 0;
7221
7222     *t++ = 0;
7223   }
7224   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7225     int x[] = {25, 17};
7226     const int *foo = &x[0];
7227     ++foo;
7228   }
7229   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7230     typedef const int *iptr;
7231     iptr p = 0;
7232     ++p;
7233   }
7234   { /* AIX XL C 1.02.0.0 rejects this saying
7235        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7236     struct s { int j; const int *ap[3]; };
7237     struct s *b; b->j = 5;
7238   }
7239   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7240     const int foo = 10;
7241   }
7242 #endif
7243
7244   ;
7245   return 0;
7246 }
7247 _ACEOF
7248 rm -f conftest.$ac_objext
7249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7250   (eval $ac_compile) 2>conftest.er1
7251   ac_status=$?
7252   grep -v '^ *+' conftest.er1 >conftest.err
7253   rm -f conftest.er1
7254   cat conftest.err >&5
7255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256   (exit $ac_status); } &&
7257          { ac_try='test -z "$ac_c_werror_flag"
7258                          || test ! -s conftest.err'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; } &&
7264          { ac_try='test -s conftest.$ac_objext'
7265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266   (eval $ac_try) 2>&5
7267   ac_status=$?
7268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); }; }; then
7270   ac_cv_c_const=yes
7271 else
7272   echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_cv_c_const=no
7276 fi
7277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7278 fi
7279 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7280 echo "${ECHO_T}$ac_cv_c_const" >&6
7281 if test $ac_cv_c_const = no; then
7282
7283 cat >>confdefs.h <<\_ACEOF
7284 #define const
7285 _ACEOF
7286
7287 fi
7288
7289
7290   echo "$as_me:$LINENO: checking for signed" >&5
7291 echo $ECHO_N "checking for signed... $ECHO_C" >&6
7292 if test "${bh_cv_c_signed+set}" = set; then
7293   echo $ECHO_N "(cached) $ECHO_C" >&6
7294 else
7295   cat >conftest.$ac_ext <<_ACEOF
7296 /* confdefs.h.  */
7297 _ACEOF
7298 cat confdefs.h >>conftest.$ac_ext
7299 cat >>conftest.$ac_ext <<_ACEOF
7300 /* end confdefs.h.  */
7301
7302 int
7303 main ()
7304 {
7305 signed char x;
7306   ;
7307   return 0;
7308 }
7309 _ACEOF
7310 rm -f conftest.$ac_objext
7311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7312   (eval $ac_compile) 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -z "$ac_c_werror_flag"
7320                          || test ! -s conftest.err'
7321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322   (eval $ac_try) 2>&5
7323   ac_status=$?
7324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325   (exit $ac_status); }; } &&
7326          { ac_try='test -s conftest.$ac_objext'
7327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7328   (eval $ac_try) 2>&5
7329   ac_status=$?
7330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331   (exit $ac_status); }; }; then
7332   bh_cv_c_signed=yes
7333 else
7334   echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7336
7337 bh_cv_c_signed=no
7338 fi
7339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7340 fi
7341 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
7342 echo "${ECHO_T}$bh_cv_c_signed" >&6
7343   if test $bh_cv_c_signed = no; then
7344
7345 cat >>confdefs.h <<\_ACEOF
7346 #define signed
7347 _ACEOF
7348
7349   fi
7350
7351 echo "$as_me:$LINENO: checking for inline" >&5
7352 echo $ECHO_N "checking for inline... $ECHO_C" >&6
7353 if test "${ac_cv_c_inline+set}" = set; then
7354   echo $ECHO_N "(cached) $ECHO_C" >&6
7355 else
7356   ac_cv_c_inline=no
7357 for ac_kw in inline __inline__ __inline; do
7358   cat >conftest.$ac_ext <<_ACEOF
7359 /* confdefs.h.  */
7360 _ACEOF
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h.  */
7364 #ifndef __cplusplus
7365 typedef int foo_t;
7366 static $ac_kw foo_t static_foo () {return 0; }
7367 $ac_kw foo_t foo () {return 0; }
7368 #endif
7369
7370 _ACEOF
7371 rm -f conftest.$ac_objext
7372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7373   (eval $ac_compile) 2>conftest.er1
7374   ac_status=$?
7375   grep -v '^ *+' conftest.er1 >conftest.err
7376   rm -f conftest.er1
7377   cat conftest.err >&5
7378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379   (exit $ac_status); } &&
7380          { ac_try='test -z "$ac_c_werror_flag"
7381                          || test ! -s conftest.err'
7382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7383   (eval $ac_try) 2>&5
7384   ac_status=$?
7385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386   (exit $ac_status); }; } &&
7387          { ac_try='test -s conftest.$ac_objext'
7388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7389   (eval $ac_try) 2>&5
7390   ac_status=$?
7391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392   (exit $ac_status); }; }; then
7393   ac_cv_c_inline=$ac_kw; break
7394 else
7395   echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.$ac_ext >&5
7397
7398 fi
7399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7400 done
7401
7402 fi
7403 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7404 echo "${ECHO_T}$ac_cv_c_inline" >&6
7405
7406
7407 case $ac_cv_c_inline in
7408   inline | yes) ;;
7409   *)
7410     case $ac_cv_c_inline in
7411       no) ac_val=;;
7412       *) ac_val=$ac_cv_c_inline;;
7413     esac
7414     cat >>confdefs.h <<_ACEOF
7415 #ifndef __cplusplus
7416 #define inline $ac_val
7417 #endif
7418 _ACEOF
7419     ;;
7420 esac
7421
7422 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7433                   inttypes.h stdint.h unistd.h
7434 do
7435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7436 echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h.  */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h.  */
7447 $ac_includes_default
7448
7449 #include <$ac_header>
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7453   (eval $ac_compile) 2>conftest.er1
7454   ac_status=$?
7455   grep -v '^ *+' conftest.er1 >conftest.err
7456   rm -f conftest.er1
7457   cat conftest.err >&5
7458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459   (exit $ac_status); } &&
7460          { ac_try='test -z "$ac_c_werror_flag"
7461                          || test ! -s conftest.err'
7462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463   (eval $ac_try) 2>&5
7464   ac_status=$?
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); }; } &&
7467          { ac_try='test -s conftest.$ac_objext'
7468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469   (eval $ac_try) 2>&5
7470   ac_status=$?
7471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472   (exit $ac_status); }; }; then
7473   eval "$as_ac_Header=yes"
7474 else
7475   echo "$as_me: failed program was:" >&5
7476 sed 's/^/| /' conftest.$ac_ext >&5
7477
7478 eval "$as_ac_Header=no"
7479 fi
7480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7481 fi
7482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7485   cat >>confdefs.h <<_ACEOF
7486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7487 _ACEOF
7488
7489 fi
7490
7491 done
7492
7493
7494 echo "$as_me:$LINENO: checking for off_t" >&5
7495 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7496 if test "${ac_cv_type_off_t+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 $ac_includes_default
7506 int
7507 main ()
7508 {
7509 if ((off_t *) 0)
7510   return 0;
7511 if (sizeof (off_t))
7512   return 0;
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519   (eval $ac_compile) 2>conftest.er1
7520   ac_status=$?
7521   grep -v '^ *+' conftest.er1 >conftest.err
7522   rm -f conftest.er1
7523   cat conftest.err >&5
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); } &&
7526          { ac_try='test -z "$ac_c_werror_flag"
7527                          || test ! -s conftest.err'
7528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529   (eval $ac_try) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }; } &&
7533          { ac_try='test -s conftest.$ac_objext'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; }; then
7539   ac_cv_type_off_t=yes
7540 else
7541   echo "$as_me: failed program was:" >&5
7542 sed 's/^/| /' conftest.$ac_ext >&5
7543
7544 ac_cv_type_off_t=no
7545 fi
7546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7547 fi
7548 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7549 echo "${ECHO_T}$ac_cv_type_off_t" >&6
7550 if test $ac_cv_type_off_t = yes; then
7551   :
7552 else
7553
7554 cat >>confdefs.h <<_ACEOF
7555 #define off_t long
7556 _ACEOF
7557
7558 fi
7559
7560 echo "$as_me:$LINENO: checking for size_t" >&5
7561 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7562 if test "${ac_cv_type_size_t+set}" = set; then
7563   echo $ECHO_N "(cached) $ECHO_C" >&6
7564 else
7565   cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h.  */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h.  */
7571 $ac_includes_default
7572 int
7573 main ()
7574 {
7575 if ((size_t *) 0)
7576   return 0;
7577 if (sizeof (size_t))
7578   return 0;
7579   ;
7580   return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7585   (eval $ac_compile) 2>conftest.er1
7586   ac_status=$?
7587   grep -v '^ *+' conftest.er1 >conftest.err
7588   rm -f conftest.er1
7589   cat conftest.err >&5
7590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591   (exit $ac_status); } &&
7592          { ac_try='test -z "$ac_c_werror_flag"
7593                          || test ! -s conftest.err'
7594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7595   (eval $ac_try) 2>&5
7596   ac_status=$?
7597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598   (exit $ac_status); }; } &&
7599          { ac_try='test -s conftest.$ac_objext'
7600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7601   (eval $ac_try) 2>&5
7602   ac_status=$?
7603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7604   (exit $ac_status); }; }; then
7605   ac_cv_type_size_t=yes
7606 else
7607   echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7609
7610 ac_cv_type_size_t=no
7611 fi
7612 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7613 fi
7614 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7615 echo "${ECHO_T}$ac_cv_type_size_t" >&6
7616 if test $ac_cv_type_size_t = yes; then
7617   :
7618 else
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define size_t unsigned
7622 _ACEOF
7623
7624 fi
7625
7626
7627   echo "$as_me:$LINENO: checking for long long" >&5
7628 echo $ECHO_N "checking for long long... $ECHO_C" >&6
7629 if test "${ac_cv_type_long_long+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   cat >conftest.$ac_ext <<_ACEOF
7633 /* confdefs.h.  */
7634 _ACEOF
7635 cat confdefs.h >>conftest.$ac_ext
7636 cat >>conftest.$ac_ext <<_ACEOF
7637 /* end confdefs.h.  */
7638 long long ll = 1LL; int i = 63;
7639 int
7640 main ()
7641 {
7642 long long llmax = (long long) -1;
7643      return ll << i | ll >> i | llmax / ll | llmax % ll;
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest.$ac_objext conftest$ac_exeext
7649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7650   (eval $ac_link) 2>conftest.er1
7651   ac_status=$?
7652   grep -v '^ *+' conftest.er1 >conftest.err
7653   rm -f conftest.er1
7654   cat conftest.err >&5
7655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656   (exit $ac_status); } &&
7657          { ac_try='test -z "$ac_c_werror_flag"
7658                          || test ! -s conftest.err'
7659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7660   (eval $ac_try) 2>&5
7661   ac_status=$?
7662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663   (exit $ac_status); }; } &&
7664          { ac_try='test -s conftest$ac_exeext'
7665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7666   (eval $ac_try) 2>&5
7667   ac_status=$?
7668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669   (exit $ac_status); }; }; then
7670   ac_cv_type_long_long=yes
7671 else
7672   echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7674
7675 ac_cv_type_long_long=no
7676 fi
7677 rm -f conftest.err conftest.$ac_objext \
7678       conftest$ac_exeext conftest.$ac_ext
7679 fi
7680 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7681 echo "${ECHO_T}$ac_cv_type_long_long" >&6
7682   if test $ac_cv_type_long_long = yes; then
7683
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_LONG_LONG 1
7686 _ACEOF
7687
7688   fi
7689
7690
7691   echo "$as_me:$LINENO: checking for long double" >&5
7692 echo $ECHO_N "checking for long double... $ECHO_C" >&6
7693 if test "${gt_cv_c_long_double+set}" = set; then
7694   echo $ECHO_N "(cached) $ECHO_C" >&6
7695 else
7696   if test "$GCC" = yes; then
7697        gt_cv_c_long_double=yes
7698      else
7699        cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h.  */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h.  */
7705
7706          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
7707          long double foo = 0.0;
7708          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
7709          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
7710
7711 int
7712 main ()
7713 {
7714
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7721   (eval $ac_compile) 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } &&
7728          { ac_try='test -z "$ac_c_werror_flag"
7729                          || test ! -s conftest.err'
7730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731   (eval $ac_try) 2>&5
7732   ac_status=$?
7733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734   (exit $ac_status); }; } &&
7735          { ac_try='test -s conftest.$ac_objext'
7736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737   (eval $ac_try) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; }; then
7741   gt_cv_c_long_double=yes
7742 else
7743   echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7745
7746 gt_cv_c_long_double=no
7747 fi
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7749      fi
7750 fi
7751 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
7752 echo "${ECHO_T}$gt_cv_c_long_double" >&6
7753   if test $gt_cv_c_long_double = yes; then
7754
7755 cat >>confdefs.h <<\_ACEOF
7756 #define HAVE_LONG_DOUBLE 1
7757 _ACEOF
7758
7759   fi
7760
7761
7762   echo "$as_me:$LINENO: checking for wchar_t" >&5
7763 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
7764 if test "${gt_cv_c_wchar_t+set}" = set; then
7765   echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767   cat >conftest.$ac_ext <<_ACEOF
7768 /* confdefs.h.  */
7769 _ACEOF
7770 cat confdefs.h >>conftest.$ac_ext
7771 cat >>conftest.$ac_ext <<_ACEOF
7772 /* end confdefs.h.  */
7773 #include <stddef.h>
7774        wchar_t foo = (wchar_t)'\0';
7775 int
7776 main ()
7777 {
7778
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext
7784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785   (eval $ac_compile) 2>conftest.er1
7786   ac_status=$?
7787   grep -v '^ *+' conftest.er1 >conftest.err
7788   rm -f conftest.er1
7789   cat conftest.err >&5
7790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791   (exit $ac_status); } &&
7792          { ac_try='test -z "$ac_c_werror_flag"
7793                          || test ! -s conftest.err'
7794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795   (eval $ac_try) 2>&5
7796   ac_status=$?
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); }; } &&
7799          { ac_try='test -s conftest.$ac_objext'
7800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801   (eval $ac_try) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); }; }; then
7805   gt_cv_c_wchar_t=yes
7806 else
7807   echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7809
7810 gt_cv_c_wchar_t=no
7811 fi
7812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
7815 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
7816   if test $gt_cv_c_wchar_t = yes; then
7817
7818 cat >>confdefs.h <<\_ACEOF
7819 #define HAVE_WCHAR_T 1
7820 _ACEOF
7821
7822   fi
7823
7824
7825   echo "$as_me:$LINENO: checking for wint_t" >&5
7826 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
7827 if test "${gt_cv_c_wint_t+set}" = set; then
7828   echo $ECHO_N "(cached) $ECHO_C" >&6
7829 else
7830   cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #include <wchar.h>
7837        wint_t foo = (wchar_t)'\0';
7838 int
7839 main ()
7840 {
7841
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 rm -f conftest.$ac_objext
7847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848   (eval $ac_compile) 2>conftest.er1
7849   ac_status=$?
7850   grep -v '^ *+' conftest.er1 >conftest.err
7851   rm -f conftest.er1
7852   cat conftest.err >&5
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -z "$ac_c_werror_flag"
7856                          || test ! -s conftest.err'
7857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858   (eval $ac_try) 2>&5
7859   ac_status=$?
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); }; } &&
7862          { ac_try='test -s conftest.$ac_objext'
7863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864   (eval $ac_try) 2>&5
7865   ac_status=$?
7866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867   (exit $ac_status); }; }; then
7868   gt_cv_c_wint_t=yes
7869 else
7870   echo "$as_me: failed program was:" >&5
7871 sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 gt_cv_c_wint_t=no
7874 fi
7875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
7878 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
7879   if test $gt_cv_c_wint_t = yes; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_WINT_T 1
7883 _ACEOF
7884
7885   fi
7886
7887
7888   echo "$as_me:$LINENO: checking for inttypes.h" >&5
7889 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7890 if test "${gl_cv_header_inttypes_h+set}" = set; then
7891   echo $ECHO_N "(cached) $ECHO_C" >&6
7892 else
7893   cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h.  */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h.  */
7899 #include <sys/types.h>
7900 #include <inttypes.h>
7901 int
7902 main ()
7903 {
7904 uintmax_t i = (uintmax_t) -1;
7905   ;
7906   return 0;
7907 }
7908 _ACEOF
7909 rm -f conftest.$ac_objext
7910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7911   (eval $ac_compile) 2>conftest.er1
7912   ac_status=$?
7913   grep -v '^ *+' conftest.er1 >conftest.err
7914   rm -f conftest.er1
7915   cat conftest.err >&5
7916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); } &&
7918          { ac_try='test -z "$ac_c_werror_flag"
7919                          || test ! -s conftest.err'
7920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7921   (eval $ac_try) 2>&5
7922   ac_status=$?
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); }; } &&
7925          { ac_try='test -s conftest.$ac_objext'
7926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7927   (eval $ac_try) 2>&5
7928   ac_status=$?
7929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930   (exit $ac_status); }; }; then
7931   gl_cv_header_inttypes_h=yes
7932 else
7933   echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 gl_cv_header_inttypes_h=no
7937 fi
7938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
7941 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
7942   if test $gl_cv_header_inttypes_h = yes; then
7943
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
7946 _ACEOF
7947
7948   fi
7949
7950
7951   echo "$as_me:$LINENO: checking for stdint.h" >&5
7952 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
7953 if test "${gl_cv_header_stdint_h+set}" = set; then
7954   echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956   cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 #include <sys/types.h>
7963 #include <stdint.h>
7964 int
7965 main ()
7966 {
7967 uintmax_t i = (uintmax_t) -1;
7968   ;
7969   return 0;
7970 }
7971 _ACEOF
7972 rm -f conftest.$ac_objext
7973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7974   (eval $ac_compile) 2>conftest.er1
7975   ac_status=$?
7976   grep -v '^ *+' conftest.er1 >conftest.err
7977   rm -f conftest.er1
7978   cat conftest.err >&5
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); } &&
7981          { ac_try='test -z "$ac_c_werror_flag"
7982                          || test ! -s conftest.err'
7983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984   (eval $ac_try) 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; } &&
7988          { ac_try='test -s conftest.$ac_objext'
7989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990   (eval $ac_try) 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   gl_cv_header_stdint_h=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999 gl_cv_header_stdint_h=no
8000 fi
8001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8002 fi
8003 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8004 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8005   if test $gl_cv_header_stdint_h = yes; then
8006
8007 cat >>confdefs.h <<_ACEOF
8008 #define HAVE_STDINT_H_WITH_UINTMAX 1
8009 _ACEOF
8010
8011   fi
8012
8013
8014
8015
8016   echo "$as_me:$LINENO: checking for intmax_t" >&5
8017 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
8018 if test "${gt_cv_c_intmax_t+set}" = set; then
8019   echo $ECHO_N "(cached) $ECHO_C" >&6
8020 else
8021   cat >conftest.$ac_ext <<_ACEOF
8022 /* confdefs.h.  */
8023 _ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h.  */
8027
8028 #include <stddef.h>
8029 #include <stdlib.h>
8030 #if HAVE_STDINT_H_WITH_UINTMAX
8031 #include <stdint.h>
8032 #endif
8033 #if HAVE_INTTYPES_H_WITH_UINTMAX
8034 #include <inttypes.h>
8035 #endif
8036
8037 int
8038 main ()
8039 {
8040 intmax_t x = -1;
8041   ;
8042   return 0;
8043 }
8044 _ACEOF
8045 rm -f conftest.$ac_objext
8046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8047   (eval $ac_compile) 2>conftest.er1
8048   ac_status=$?
8049   grep -v '^ *+' conftest.er1 >conftest.err
8050   rm -f conftest.er1
8051   cat conftest.err >&5
8052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053   (exit $ac_status); } &&
8054          { ac_try='test -z "$ac_c_werror_flag"
8055                          || test ! -s conftest.err'
8056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8057   (eval $ac_try) 2>&5
8058   ac_status=$?
8059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060   (exit $ac_status); }; } &&
8061          { ac_try='test -s conftest.$ac_objext'
8062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8063   (eval $ac_try) 2>&5
8064   ac_status=$?
8065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066   (exit $ac_status); }; }; then
8067   gt_cv_c_intmax_t=yes
8068 else
8069   echo "$as_me: failed program was:" >&5
8070 sed 's/^/| /' conftest.$ac_ext >&5
8071
8072 gt_cv_c_intmax_t=no
8073 fi
8074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8077 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
8078   if test $gt_cv_c_intmax_t = yes; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define HAVE_INTMAX_T 1
8082 _ACEOF
8083
8084   fi
8085
8086
8087
8088   echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8089 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
8090 if test "${gt_cv_func_printf_posix+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093
8094       if test "$cross_compiling" = yes; then
8095
8096         cat >conftest.$ac_ext <<_ACEOF
8097 /* confdefs.h.  */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h.  */
8102
8103 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8104   notposix
8105 #endif
8106
8107 _ACEOF
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109   $EGREP "notposix" >/dev/null 2>&1; then
8110   gt_cv_func_printf_posix="guessing no"
8111 else
8112   gt_cv_func_printf_posix="guessing yes"
8113 fi
8114 rm -f conftest*
8115
8116
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124
8125 #include <stdio.h>
8126 #include <string.h>
8127 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8128    dollar expansion (possibly an autoconf bug).  */
8129 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8130 static char buf[100];
8131 int main ()
8132 {
8133   sprintf (buf, format, 33, 55);
8134   return (strcmp (buf, "55 33") != 0);
8135 }
8136 _ACEOF
8137 rm -f conftest$ac_exeext
8138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8139   (eval $ac_link) 2>&5
8140   ac_status=$?
8141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8144   (eval $ac_try) 2>&5
8145   ac_status=$?
8146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147   (exit $ac_status); }; }; then
8148   gt_cv_func_printf_posix=yes
8149 else
8150   echo "$as_me: program exited with status $ac_status" >&5
8151 echo "$as_me: failed program was:" >&5
8152 sed 's/^/| /' conftest.$ac_ext >&5
8153
8154 ( exit $ac_status )
8155 gt_cv_func_printf_posix=no
8156 fi
8157 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8158 fi
8159
8160 fi
8161 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8162 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
8163   case $gt_cv_func_printf_posix in
8164     *yes)
8165
8166 cat >>confdefs.h <<\_ACEOF
8167 #define HAVE_POSIX_PRINTF 1
8168 _ACEOF
8169
8170       ;;
8171   esac
8172
8173 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8174 # for constant arguments.  Useless!
8175 echo "$as_me:$LINENO: checking for working alloca.h" >&5
8176 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
8177 if test "${ac_cv_working_alloca_h+set}" = set; then
8178   echo $ECHO_N "(cached) $ECHO_C" >&6
8179 else
8180   cat >conftest.$ac_ext <<_ACEOF
8181 /* confdefs.h.  */
8182 _ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h.  */
8186 #include <alloca.h>
8187 int
8188 main ()
8189 {
8190 char *p = (char *) alloca (2 * sizeof (int));
8191   ;
8192   return 0;
8193 }
8194 _ACEOF
8195 rm -f conftest.$ac_objext conftest$ac_exeext
8196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8197   (eval $ac_link) 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } &&
8204          { ac_try='test -z "$ac_c_werror_flag"
8205                          || test ! -s conftest.err'
8206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207   (eval $ac_try) 2>&5
8208   ac_status=$?
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); }; } &&
8211          { ac_try='test -s conftest$ac_exeext'
8212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213   (eval $ac_try) 2>&5
8214   ac_status=$?
8215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216   (exit $ac_status); }; }; then
8217   ac_cv_working_alloca_h=yes
8218 else
8219   echo "$as_me: failed program was:" >&5
8220 sed 's/^/| /' conftest.$ac_ext >&5
8221
8222 ac_cv_working_alloca_h=no
8223 fi
8224 rm -f conftest.err conftest.$ac_objext \
8225       conftest$ac_exeext conftest.$ac_ext
8226 fi
8227 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8228 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
8229 if test $ac_cv_working_alloca_h = yes; then
8230
8231 cat >>confdefs.h <<\_ACEOF
8232 #define HAVE_ALLOCA_H 1
8233 _ACEOF
8234
8235 fi
8236
8237 echo "$as_me:$LINENO: checking for alloca" >&5
8238 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
8239 if test "${ac_cv_func_alloca_works+set}" = set; then
8240   echo $ECHO_N "(cached) $ECHO_C" >&6
8241 else
8242   cat >conftest.$ac_ext <<_ACEOF
8243 /* confdefs.h.  */
8244 _ACEOF
8245 cat confdefs.h >>conftest.$ac_ext
8246 cat >>conftest.$ac_ext <<_ACEOF
8247 /* end confdefs.h.  */
8248 #ifdef __GNUC__
8249 # define alloca __builtin_alloca
8250 #else
8251 # ifdef _MSC_VER
8252 #  include <malloc.h>
8253 #  define alloca _alloca
8254 # else
8255 #  if HAVE_ALLOCA_H
8256 #   include <alloca.h>
8257 #  else
8258 #   ifdef _AIX
8259  #pragma alloca
8260 #   else
8261 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8262 char *alloca ();
8263 #    endif
8264 #   endif
8265 #  endif
8266 # endif
8267 #endif
8268
8269 int
8270 main ()
8271 {
8272 char *p = (char *) alloca (1);
8273   ;
8274   return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279   (eval $ac_link) 2>conftest.er1
8280   ac_status=$?
8281   grep -v '^ *+' conftest.er1 >conftest.err
8282   rm -f conftest.er1
8283   cat conftest.err >&5
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); } &&
8286          { ac_try='test -z "$ac_c_werror_flag"
8287                          || test ! -s conftest.err'
8288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289   (eval $ac_try) 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest$ac_exeext'
8294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295   (eval $ac_try) 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; }; then
8299   ac_cv_func_alloca_works=yes
8300 else
8301   echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8303
8304 ac_cv_func_alloca_works=no
8305 fi
8306 rm -f conftest.err conftest.$ac_objext \
8307       conftest$ac_exeext conftest.$ac_ext
8308 fi
8309 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8310 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
8311
8312 if test $ac_cv_func_alloca_works = yes; then
8313
8314 cat >>confdefs.h <<\_ACEOF
8315 #define HAVE_ALLOCA 1
8316 _ACEOF
8317
8318 else
8319   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8320 # that cause trouble.  Some versions do not even contain alloca or
8321 # contain a buggy version.  If you still want to use their alloca,
8322 # use ar to extract alloca.o from them instead of compiling alloca.c.
8323
8324 ALLOCA=alloca.$ac_objext
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define C_ALLOCA 1
8328 _ACEOF
8329
8330
8331 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8332 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
8333 if test "${ac_cv_os_cray+set}" = set; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   cat >conftest.$ac_ext <<_ACEOF
8337 /* confdefs.h.  */
8338 _ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h.  */
8342 #if defined(CRAY) && ! defined(CRAY2)
8343 webecray
8344 #else
8345 wenotbecray
8346 #endif
8347
8348 _ACEOF
8349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8350   $EGREP "webecray" >/dev/null 2>&1; then
8351   ac_cv_os_cray=yes
8352 else
8353   ac_cv_os_cray=no
8354 fi
8355 rm -f conftest*
8356
8357 fi
8358 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
8359 echo "${ECHO_T}$ac_cv_os_cray" >&6
8360 if test $ac_cv_os_cray = yes; then
8361   for ac_func in _getb67 GETB67 getb67; do
8362     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8363 echo "$as_me:$LINENO: checking for $ac_func" >&5
8364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8365 if eval "test \"\${$as_ac_var+set}\" = set"; then
8366   echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368   cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h.  */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h.  */
8374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8375    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8376 #define $ac_func innocuous_$ac_func
8377
8378 /* System header to define __stub macros and hopefully few prototypes,
8379     which can conflict with char $ac_func (); below.
8380     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8381     <limits.h> exists even on freestanding compilers.  */
8382
8383 #ifdef __STDC__
8384 # include <limits.h>
8385 #else
8386 # include <assert.h>
8387 #endif
8388
8389 #undef $ac_func
8390
8391 /* Override any gcc2 internal prototype to avoid an error.  */
8392 #ifdef __cplusplus
8393 extern "C"
8394 {
8395 #endif
8396 /* We use char because int might match the return type of a gcc2
8397    builtin and then its argument prototype would still apply.  */
8398 char $ac_func ();
8399 /* The GNU C library defines this for functions which it implements
8400     to always fail with ENOSYS.  Some functions are actually named
8401     something starting with __ and the normal name is an alias.  */
8402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8403 choke me
8404 #else
8405 char (*f) () = $ac_func;
8406 #endif
8407 #ifdef __cplusplus
8408 }
8409 #endif
8410
8411 int
8412 main ()
8413 {
8414 return f != $ac_func;
8415   ;
8416   return 0;
8417 }
8418 _ACEOF
8419 rm -f conftest.$ac_objext conftest$ac_exeext
8420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8421   (eval $ac_link) 2>conftest.er1
8422   ac_status=$?
8423   grep -v '^ *+' conftest.er1 >conftest.err
8424   rm -f conftest.er1
8425   cat conftest.err >&5
8426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427   (exit $ac_status); } &&
8428          { ac_try='test -z "$ac_c_werror_flag"
8429                          || test ! -s conftest.err'
8430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8431   (eval $ac_try) 2>&5
8432   ac_status=$?
8433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434   (exit $ac_status); }; } &&
8435          { ac_try='test -s conftest$ac_exeext'
8436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8437   (eval $ac_try) 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; }; then
8441   eval "$as_ac_var=yes"
8442 else
8443   echo "$as_me: failed program was:" >&5
8444 sed 's/^/| /' conftest.$ac_ext >&5
8445
8446 eval "$as_ac_var=no"
8447 fi
8448 rm -f conftest.err conftest.$ac_objext \
8449       conftest$ac_exeext conftest.$ac_ext
8450 fi
8451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8452 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8453 if test `eval echo '${'$as_ac_var'}'` = yes; then
8454
8455 cat >>confdefs.h <<_ACEOF
8456 #define CRAY_STACKSEG_END $ac_func
8457 _ACEOF
8458
8459     break
8460 fi
8461
8462   done
8463 fi
8464
8465 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
8466 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
8467 if test "${ac_cv_c_stack_direction+set}" = set; then
8468   echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470   if test "$cross_compiling" = yes; then
8471   ac_cv_c_stack_direction=0
8472 else
8473   cat >conftest.$ac_ext <<_ACEOF
8474 /* confdefs.h.  */
8475 _ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h.  */
8479 int
8480 find_stack_direction ()
8481 {
8482   static char *addr = 0;
8483   auto char dummy;
8484   if (addr == 0)
8485     {
8486       addr = &dummy;
8487       return find_stack_direction ();
8488     }
8489   else
8490     return (&dummy > addr) ? 1 : -1;
8491 }
8492
8493 int
8494 main ()
8495 {
8496   exit (find_stack_direction () < 0);
8497 }
8498 _ACEOF
8499 rm -f conftest$ac_exeext
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501   (eval $ac_link) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506   (eval $ac_try) 2>&5
8507   ac_status=$?
8508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509   (exit $ac_status); }; }; then
8510   ac_cv_c_stack_direction=1
8511 else
8512   echo "$as_me: program exited with status $ac_status" >&5
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ( exit $ac_status )
8517 ac_cv_c_stack_direction=-1
8518 fi
8519 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 fi
8522 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
8523 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
8524
8525 cat >>confdefs.h <<_ACEOF
8526 #define STACK_DIRECTION $ac_cv_c_stack_direction
8527 _ACEOF
8528
8529
8530 fi
8531
8532
8533
8534 for ac_header in stdlib.h unistd.h
8535 do
8536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8538   echo "$as_me:$LINENO: checking for $ac_header" >&5
8539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 fi
8543 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8544 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8545 else
8546   # Is the header compilable?
8547 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8548 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h.  */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h.  */
8555 $ac_includes_default
8556 #include <$ac_header>
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8560   (eval $ac_compile) 2>conftest.er1
8561   ac_status=$?
8562   grep -v '^ *+' conftest.er1 >conftest.err
8563   rm -f conftest.er1
8564   cat conftest.err >&5
8565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566   (exit $ac_status); } &&
8567          { ac_try='test -z "$ac_c_werror_flag"
8568                          || test ! -s conftest.err'
8569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8570   (eval $ac_try) 2>&5
8571   ac_status=$?
8572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); }; } &&
8574          { ac_try='test -s conftest.$ac_objext'
8575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8576   (eval $ac_try) 2>&5
8577   ac_status=$?
8578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579   (exit $ac_status); }; }; then
8580   ac_header_compiler=yes
8581 else
8582   echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_header_compiler=no
8586 fi
8587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8588 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8589 echo "${ECHO_T}$ac_header_compiler" >&6
8590
8591 # Is the header present?
8592 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8595 /* confdefs.h.  */
8596 _ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h.  */
8600 #include <$ac_header>
8601 _ACEOF
8602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8603   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } >/dev/null; then
8610   if test -s conftest.err; then
8611     ac_cpp_err=$ac_c_preproc_warn_flag
8612     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8613   else
8614     ac_cpp_err=
8615   fi
8616 else
8617   ac_cpp_err=yes
8618 fi
8619 if test -z "$ac_cpp_err"; then
8620   ac_header_preproc=yes
8621 else
8622   echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8624
8625   ac_header_preproc=no
8626 fi
8627 rm -f conftest.err conftest.$ac_ext
8628 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8629 echo "${ECHO_T}$ac_header_preproc" >&6
8630
8631 # So?  What about this header?
8632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8633   yes:no: )
8634     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8635 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8636     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8637 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8638     ac_header_preproc=yes
8639     ;;
8640   no:yes:* )
8641     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8642 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8643     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8644 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8645     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8646 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8647     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8648 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8649     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8650 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8651     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8653     (
8654       cat <<\_ASBOX
8655 ## ------------------------------------------ ##
8656 ## Report this to the AC_PACKAGE_NAME lists.  ##
8657 ## ------------------------------------------ ##
8658 _ASBOX
8659     ) |
8660       sed "s/^/$as_me: WARNING:     /" >&2
8661     ;;
8662 esac
8663 echo "$as_me:$LINENO: checking for $ac_header" >&5
8664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8665 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8666   echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668   eval "$as_ac_Header=\$ac_header_preproc"
8669 fi
8670 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8671 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8672
8673 fi
8674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8675   cat >>confdefs.h <<_ACEOF
8676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8677 _ACEOF
8678
8679 fi
8680
8681 done
8682
8683
8684 for ac_func in getpagesize
8685 do
8686 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8687 echo "$as_me:$LINENO: checking for $ac_func" >&5
8688 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8689 if eval "test \"\${$as_ac_var+set}\" = set"; then
8690   echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692   cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h.  */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h.  */
8698 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8699    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8700 #define $ac_func innocuous_$ac_func
8701
8702 /* System header to define __stub macros and hopefully few prototypes,
8703     which can conflict with char $ac_func (); below.
8704     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8705     <limits.h> exists even on freestanding compilers.  */
8706
8707 #ifdef __STDC__
8708 # include <limits.h>
8709 #else
8710 # include <assert.h>
8711 #endif
8712
8713 #undef $ac_func
8714
8715 /* Override any gcc2 internal prototype to avoid an error.  */
8716 #ifdef __cplusplus
8717 extern "C"
8718 {
8719 #endif
8720 /* We use char because int might match the return type of a gcc2
8721    builtin and then its argument prototype would still apply.  */
8722 char $ac_func ();
8723 /* The GNU C library defines this for functions which it implements
8724     to always fail with ENOSYS.  Some functions are actually named
8725     something starting with __ and the normal name is an alias.  */
8726 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8727 choke me
8728 #else
8729 char (*f) () = $ac_func;
8730 #endif
8731 #ifdef __cplusplus
8732 }
8733 #endif
8734
8735 int
8736 main ()
8737 {
8738 return f != $ac_func;
8739   ;
8740   return 0;
8741 }
8742 _ACEOF
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8745   (eval $ac_link) 2>conftest.er1
8746   ac_status=$?
8747   grep -v '^ *+' conftest.er1 >conftest.err
8748   rm -f conftest.er1
8749   cat conftest.err >&5
8750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751   (exit $ac_status); } &&
8752          { ac_try='test -z "$ac_c_werror_flag"
8753                          || test ! -s conftest.err'
8754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8755   (eval $ac_try) 2>&5
8756   ac_status=$?
8757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758   (exit $ac_status); }; } &&
8759          { ac_try='test -s conftest$ac_exeext'
8760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8761   (eval $ac_try) 2>&5
8762   ac_status=$?
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); }; }; then
8765   eval "$as_ac_var=yes"
8766 else
8767   echo "$as_me: failed program was:" >&5
8768 sed 's/^/| /' conftest.$ac_ext >&5
8769
8770 eval "$as_ac_var=no"
8771 fi
8772 rm -f conftest.err conftest.$ac_objext \
8773       conftest$ac_exeext conftest.$ac_ext
8774 fi
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778   cat >>confdefs.h <<_ACEOF
8779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8780 _ACEOF
8781
8782 fi
8783 done
8784
8785 echo "$as_me:$LINENO: checking for working mmap" >&5
8786 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
8787 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8788   echo $ECHO_N "(cached) $ECHO_C" >&6
8789 else
8790   if test "$cross_compiling" = yes; then
8791   ac_cv_func_mmap_fixed_mapped=no
8792 else
8793   cat >conftest.$ac_ext <<_ACEOF
8794 /* confdefs.h.  */
8795 _ACEOF
8796 cat confdefs.h >>conftest.$ac_ext
8797 cat >>conftest.$ac_ext <<_ACEOF
8798 /* end confdefs.h.  */
8799 $ac_includes_default
8800 /* malloc might have been renamed as rpl_malloc. */
8801 #undef malloc
8802
8803 /* Thanks to Mike Haertel and Jim Avera for this test.
8804    Here is a matrix of mmap possibilities:
8805         mmap private not fixed
8806         mmap private fixed at somewhere currently unmapped
8807         mmap private fixed at somewhere already mapped
8808         mmap shared not fixed
8809         mmap shared fixed at somewhere currently unmapped
8810         mmap shared fixed at somewhere already mapped
8811    For private mappings, we should verify that changes cannot be read()
8812    back from the file, nor mmap's back from the file at a different
8813    address.  (There have been systems where private was not correctly
8814    implemented like the infamous i386 svr4.0, and systems where the
8815    VM page cache was not coherent with the file system buffer cache
8816    like early versions of FreeBSD and possibly contemporary NetBSD.)
8817    For shared mappings, we should conversely verify that changes get
8818    propagated back to all the places they're supposed to be.
8819
8820    Grep wants private fixed already mapped.
8821    The main things grep needs to know about mmap are:
8822    * does it exist and is it safe to write into the mmap'd area
8823    * how to use it (BSD variants)  */
8824
8825 #include <fcntl.h>
8826 #include <sys/mman.h>
8827
8828 #if !STDC_HEADERS && !HAVE_STDLIB_H
8829 char *malloc ();
8830 #endif
8831
8832 /* This mess was copied from the GNU getpagesize.h.  */
8833 #if !HAVE_GETPAGESIZE
8834 /* Assume that all systems that can run configure have sys/param.h.  */
8835 # if !HAVE_SYS_PARAM_H
8836 #  define HAVE_SYS_PARAM_H 1
8837 # endif
8838
8839 # ifdef _SC_PAGESIZE
8840 #  define getpagesize() sysconf(_SC_PAGESIZE)
8841 # else /* no _SC_PAGESIZE */
8842 #  if HAVE_SYS_PARAM_H
8843 #   include <sys/param.h>
8844 #   ifdef EXEC_PAGESIZE
8845 #    define getpagesize() EXEC_PAGESIZE
8846 #   else /* no EXEC_PAGESIZE */
8847 #    ifdef NBPG
8848 #     define getpagesize() NBPG * CLSIZE
8849 #     ifndef CLSIZE
8850 #      define CLSIZE 1
8851 #     endif /* no CLSIZE */
8852 #    else /* no NBPG */
8853 #     ifdef NBPC
8854 #      define getpagesize() NBPC
8855 #     else /* no NBPC */
8856 #      ifdef PAGESIZE
8857 #       define getpagesize() PAGESIZE
8858 #      endif /* PAGESIZE */
8859 #     endif /* no NBPC */
8860 #    endif /* no NBPG */
8861 #   endif /* no EXEC_PAGESIZE */
8862 #  else /* no HAVE_SYS_PARAM_H */
8863 #   define getpagesize() 8192   /* punt totally */
8864 #  endif /* no HAVE_SYS_PARAM_H */
8865 # endif /* no _SC_PAGESIZE */
8866
8867 #endif /* no HAVE_GETPAGESIZE */
8868
8869 int
8870 main ()
8871 {
8872   char *data, *data2, *data3;
8873   int i, pagesize;
8874   int fd;
8875
8876   pagesize = getpagesize ();
8877
8878   /* First, make a file with some known garbage in it. */
8879   data = (char *) malloc (pagesize);
8880   if (!data)
8881     exit (1);
8882   for (i = 0; i < pagesize; ++i)
8883     *(data + i) = rand ();
8884   umask (0);
8885   fd = creat ("conftest.mmap", 0600);
8886   if (fd < 0)
8887     exit (1);
8888   if (write (fd, data, pagesize) != pagesize)
8889     exit (1);
8890   close (fd);
8891
8892   /* Next, try to mmap the file at a fixed address which already has
8893      something else allocated at it.  If we can, also make sure that
8894      we see the same garbage.  */
8895   fd = open ("conftest.mmap", O_RDWR);
8896   if (fd < 0)
8897     exit (1);
8898   data2 = (char *) malloc (2 * pagesize);
8899   if (!data2)
8900     exit (1);
8901   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
8902   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8903                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
8904     exit (1);
8905   for (i = 0; i < pagesize; ++i)
8906     if (*(data + i) != *(data2 + i))
8907       exit (1);
8908
8909   /* Finally, make sure that changes to the mapped area do not
8910      percolate back to the file as seen by read().  (This is a bug on
8911      some variants of i386 svr4.0.)  */
8912   for (i = 0; i < pagesize; ++i)
8913     *(data2 + i) = *(data2 + i) + 1;
8914   data3 = (char *) malloc (pagesize);
8915   if (!data3)
8916     exit (1);
8917   if (read (fd, data3, pagesize) != pagesize)
8918     exit (1);
8919   for (i = 0; i < pagesize; ++i)
8920     if (*(data + i) != *(data3 + i))
8921       exit (1);
8922   close (fd);
8923   exit (0);
8924 }
8925 _ACEOF
8926 rm -f conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928   (eval $ac_link) 2>&5
8929   ac_status=$?
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933   (eval $ac_try) 2>&5
8934   ac_status=$?
8935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936   (exit $ac_status); }; }; then
8937   ac_cv_func_mmap_fixed_mapped=yes
8938 else
8939   echo "$as_me: program exited with status $ac_status" >&5
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8942
8943 ( exit $ac_status )
8944 ac_cv_func_mmap_fixed_mapped=no
8945 fi
8946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8947 fi
8948 fi
8949 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8950 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8951 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8952
8953 cat >>confdefs.h <<\_ACEOF
8954 #define HAVE_MMAP 1
8955 _ACEOF
8956
8957 fi
8958 rm -f conftest.mmap
8959
8960
8961     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
8962 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
8963 if test "${ac_cv_gnu_library_2_1+set}" = set; then
8964   echo $ECHO_N "(cached) $ECHO_C" >&6
8965 else
8966   cat >conftest.$ac_ext <<_ACEOF
8967 /* confdefs.h.  */
8968 _ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h.  */
8972
8973 #include <features.h>
8974 #ifdef __GNU_LIBRARY__
8975  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8976   Lucky GNU user
8977  #endif
8978 #endif
8979
8980 _ACEOF
8981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8982   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
8983   ac_cv_gnu_library_2_1=yes
8984 else
8985   ac_cv_gnu_library_2_1=no
8986 fi
8987 rm -f conftest*
8988
8989
8990
8991 fi
8992 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
8993 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
8994
8995     GLIBC21="$ac_cv_gnu_library_2_1"
8996
8997
8998
8999
9000   echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9001 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
9002 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9003   echo $ECHO_N "(cached) $ECHO_C" >&6
9004 else
9005
9006       if test "$cross_compiling" = yes; then
9007
9008           # Guess based on the CPU.
9009           case "$host_cpu" in
9010             alpha* | i3456786 | m68k | s390*)
9011               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9012             *)
9013               gt_cv_int_divbyzero_sigfpe="guessing no";;
9014           esac
9015
9016 else
9017   cat >conftest.$ac_ext <<_ACEOF
9018 /* confdefs.h.  */
9019 _ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h.  */
9023
9024 #include <stdlib.h>
9025 #include <signal.h>
9026
9027 static void
9028 #ifdef __cplusplus
9029 sigfpe_handler (int sig)
9030 #else
9031 sigfpe_handler (sig) int sig;
9032 #endif
9033 {
9034   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9035   exit (sig != SIGFPE);
9036 }
9037
9038 int x = 1;
9039 int y = 0;
9040 int z;
9041 int nan;
9042
9043 int main ()
9044 {
9045   signal (SIGFPE, sigfpe_handler);
9046 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9047 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9048   signal (SIGTRAP, sigfpe_handler);
9049 #endif
9050 /* Linux/SPARC yields signal SIGILL.  */
9051 #if defined (__sparc__) && defined (__linux__)
9052   signal (SIGILL, sigfpe_handler);
9053 #endif
9054
9055   z = x / y;
9056   nan = y / y;
9057   exit (1);
9058 }
9059
9060 _ACEOF
9061 rm -f conftest$ac_exeext
9062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9063   (eval $ac_link) 2>&5
9064   ac_status=$?
9065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9068   (eval $ac_try) 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   gt_cv_int_divbyzero_sigfpe=yes
9073 else
9074   echo "$as_me: program exited with status $ac_status" >&5
9075 echo "$as_me: failed program was:" >&5
9076 sed 's/^/| /' conftest.$ac_ext >&5
9077
9078 ( exit $ac_status )
9079 gt_cv_int_divbyzero_sigfpe=no
9080 fi
9081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9082 fi
9083
9084 fi
9085 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9086 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
9087   case "$gt_cv_int_divbyzero_sigfpe" in
9088     *yes) value=1;;
9089     *) value=0;;
9090   esac
9091
9092 cat >>confdefs.h <<_ACEOF
9093 #define INTDIV0_RAISES_SIGFPE $value
9094 _ACEOF
9095
9096
9097
9098   echo "$as_me:$LINENO: checking for unsigned long long" >&5
9099 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
9100 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9101   echo $ECHO_N "(cached) $ECHO_C" >&6
9102 else
9103   cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 unsigned long long ull = 1ULL; int i = 63;
9110 int
9111 main ()
9112 {
9113 unsigned long long ullmax = (unsigned long long) -1;
9114      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9115   ;
9116   return 0;
9117 }
9118 _ACEOF
9119 rm -f conftest.$ac_objext conftest$ac_exeext
9120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9121   (eval $ac_link) 2>conftest.er1
9122   ac_status=$?
9123   grep -v '^ *+' conftest.er1 >conftest.err
9124   rm -f conftest.er1
9125   cat conftest.err >&5
9126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127   (exit $ac_status); } &&
9128          { ac_try='test -z "$ac_c_werror_flag"
9129                          || test ! -s conftest.err'
9130   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131   (eval $ac_try) 2>&5
9132   ac_status=$?
9133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134   (exit $ac_status); }; } &&
9135          { ac_try='test -s conftest$ac_exeext'
9136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9137   (eval $ac_try) 2>&5
9138   ac_status=$?
9139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140   (exit $ac_status); }; }; then
9141   ac_cv_type_unsigned_long_long=yes
9142 else
9143   echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_cv_type_unsigned_long_long=no
9147 fi
9148 rm -f conftest.err conftest.$ac_objext \
9149       conftest$ac_exeext conftest.$ac_ext
9150 fi
9151 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9152 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
9153   if test $ac_cv_type_unsigned_long_long = yes; then
9154
9155 cat >>confdefs.h <<\_ACEOF
9156 #define HAVE_UNSIGNED_LONG_LONG 1
9157 _ACEOF
9158
9159   fi
9160
9161
9162
9163
9164   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9165
9166     test $ac_cv_type_unsigned_long_long = yes \
9167       && ac_type='unsigned long long' \
9168       || ac_type='unsigned long'
9169
9170 cat >>confdefs.h <<_ACEOF
9171 #define uintmax_t $ac_type
9172 _ACEOF
9173
9174   else
9175
9176 cat >>confdefs.h <<\_ACEOF
9177 #define HAVE_UINTMAX_T 1
9178 _ACEOF
9179
9180   fi
9181
9182
9183   echo "$as_me:$LINENO: checking for inttypes.h" >&5
9184 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
9185 if test "${gt_cv_header_inttypes_h+set}" = set; then
9186   echo $ECHO_N "(cached) $ECHO_C" >&6
9187 else
9188
9189     cat >conftest.$ac_ext <<_ACEOF
9190 /* confdefs.h.  */
9191 _ACEOF
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h.  */
9195 #include <sys/types.h>
9196 #include <inttypes.h>
9197 int
9198 main ()
9199 {
9200
9201   ;
9202   return 0;
9203 }
9204 _ACEOF
9205 rm -f conftest.$ac_objext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9207   (eval $ac_compile) 2>conftest.er1
9208   ac_status=$?
9209   grep -v '^ *+' conftest.er1 >conftest.err
9210   rm -f conftest.er1
9211   cat conftest.err >&5
9212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213   (exit $ac_status); } &&
9214          { ac_try='test -z "$ac_c_werror_flag"
9215                          || test ! -s conftest.err'
9216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217   (eval $ac_try) 2>&5
9218   ac_status=$?
9219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220   (exit $ac_status); }; } &&
9221          { ac_try='test -s conftest.$ac_objext'
9222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223   (eval $ac_try) 2>&5
9224   ac_status=$?
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); }; }; then
9227   gt_cv_header_inttypes_h=yes
9228 else
9229   echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232 gt_cv_header_inttypes_h=no
9233 fi
9234 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9235
9236 fi
9237 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9238 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
9239   if test $gt_cv_header_inttypes_h = yes; then
9240
9241 cat >>confdefs.h <<_ACEOF
9242 #define HAVE_INTTYPES_H 1
9243 _ACEOF
9244
9245   fi
9246
9247
9248
9249   if test $gt_cv_header_inttypes_h = yes; then
9250     echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
9251 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
9252 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
9253   echo $ECHO_N "(cached) $ECHO_C" >&6
9254 else
9255
9256         cat >conftest.$ac_ext <<_ACEOF
9257 /* confdefs.h.  */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h.  */
9262 #include <inttypes.h>
9263 #ifdef PRId32
9264 char *p = PRId32;
9265 #endif
9266
9267 int
9268 main ()
9269 {
9270
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9277   (eval $ac_compile) 2>conftest.er1
9278   ac_status=$?
9279   grep -v '^ *+' conftest.er1 >conftest.err
9280   rm -f conftest.er1
9281   cat conftest.err >&5
9282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9283   (exit $ac_status); } &&
9284          { ac_try='test -z "$ac_c_werror_flag"
9285                          || test ! -s conftest.err'
9286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287   (eval $ac_try) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; } &&
9291          { ac_try='test -s conftest.$ac_objext'
9292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293   (eval $ac_try) 2>&5
9294   ac_status=$?
9295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296   (exit $ac_status); }; }; then
9297   gt_cv_inttypes_pri_broken=no
9298 else
9299   echo "$as_me: failed program was:" >&5
9300 sed 's/^/| /' conftest.$ac_ext >&5
9301
9302 gt_cv_inttypes_pri_broken=yes
9303 fi
9304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9305
9306 fi
9307 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
9308 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
9309   fi
9310   if test "$gt_cv_inttypes_pri_broken" = yes; then
9311
9312 cat >>confdefs.h <<_ACEOF
9313 #define PRI_MACROS_BROKEN 1
9314 _ACEOF
9315
9316   fi
9317
9318
9319
9320 for ac_header in stdint.h
9321 do
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9324   echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 fi
9329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9331 else
9332   # Is the header compilable?
9333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9335 cat >conftest.$ac_ext <<_ACEOF
9336 /* confdefs.h.  */
9337 _ACEOF
9338 cat confdefs.h >>conftest.$ac_ext
9339 cat >>conftest.$ac_ext <<_ACEOF
9340 /* end confdefs.h.  */
9341 $ac_includes_default
9342 #include <$ac_header>
9343 _ACEOF
9344 rm -f conftest.$ac_objext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346   (eval $ac_compile) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest.$ac_objext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_header_compiler=yes
9367 else
9368   echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_header_compiler=no
9372 fi
9373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9375 echo "${ECHO_T}$ac_header_compiler" >&6
9376
9377 # Is the header present?
9378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9380 cat >conftest.$ac_ext <<_ACEOF
9381 /* confdefs.h.  */
9382 _ACEOF
9383 cat confdefs.h >>conftest.$ac_ext
9384 cat >>conftest.$ac_ext <<_ACEOF
9385 /* end confdefs.h.  */
9386 #include <$ac_header>
9387 _ACEOF
9388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9390   ac_status=$?
9391   grep -v '^ *+' conftest.er1 >conftest.err
9392   rm -f conftest.er1
9393   cat conftest.err >&5
9394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395   (exit $ac_status); } >/dev/null; then
9396   if test -s conftest.err; then
9397     ac_cpp_err=$ac_c_preproc_warn_flag
9398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9399   else
9400     ac_cpp_err=
9401   fi
9402 else
9403   ac_cpp_err=yes
9404 fi
9405 if test -z "$ac_cpp_err"; then
9406   ac_header_preproc=yes
9407 else
9408   echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411   ac_header_preproc=no
9412 fi
9413 rm -f conftest.err conftest.$ac_ext
9414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9415 echo "${ECHO_T}$ac_header_preproc" >&6
9416
9417 # So?  What about this header?
9418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9419   yes:no: )
9420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9424     ac_header_preproc=yes
9425     ;;
9426   no:yes:* )
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9439     (
9440       cat <<\_ASBOX
9441 ## ------------------------------------------ ##
9442 ## Report this to the AC_PACKAGE_NAME lists.  ##
9443 ## ------------------------------------------ ##
9444 _ASBOX
9445     ) |
9446       sed "s/^/$as_me: WARNING:     /" >&2
9447     ;;
9448 esac
9449 echo "$as_me:$LINENO: checking for $ac_header" >&5
9450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9452   echo $ECHO_N "(cached) $ECHO_C" >&6
9453 else
9454   eval "$as_ac_Header=\$ac_header_preproc"
9455 fi
9456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9458
9459 fi
9460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9461   cat >>confdefs.h <<_ACEOF
9462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9463 _ACEOF
9464
9465 fi
9466
9467 done
9468
9469     echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
9470 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
9471   result=
9472   cat >conftest.$ac_ext <<_ACEOF
9473 /* confdefs.h.  */
9474 _ACEOF
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h.  */
9478
9479 #include <limits.h>
9480 #if HAVE_STDINT_H
9481 #include <stdint.h>
9482 #endif
9483 #ifdef SIZE_MAX
9484 Found it
9485 #endif
9486
9487 _ACEOF
9488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9489   $EGREP "Found it" >/dev/null 2>&1; then
9490   result=yes
9491 fi
9492 rm -f conftest*
9493
9494   if test -z "$result"; then
9495                     if test "$cross_compiling" = yes; then
9496   # Depending upon the size, compute the lo and hi bounds.
9497 cat >conftest.$ac_ext <<_ACEOF
9498 /* confdefs.h.  */
9499 _ACEOF
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h.  */
9503 #include <stddef.h>
9504 int
9505 main ()
9506 {
9507 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
9508 test_array [0] = 0
9509
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext
9515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9516   (eval $ac_compile) 2>conftest.er1
9517   ac_status=$?
9518   grep -v '^ *+' conftest.er1 >conftest.err
9519   rm -f conftest.er1
9520   cat conftest.err >&5
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); } &&
9523          { ac_try='test -z "$ac_c_werror_flag"
9524                          || test ! -s conftest.err'
9525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9526   (eval $ac_try) 2>&5
9527   ac_status=$?
9528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529   (exit $ac_status); }; } &&
9530          { ac_try='test -s conftest.$ac_objext'
9531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9532   (eval $ac_try) 2>&5
9533   ac_status=$?
9534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535   (exit $ac_status); }; }; then
9536   ac_lo=0 ac_mid=0
9537   while :; do
9538     cat >conftest.$ac_ext <<_ACEOF
9539 /* confdefs.h.  */
9540 _ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h.  */
9544 #include <stddef.h>
9545 int
9546 main ()
9547 {
9548 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9549 test_array [0] = 0
9550
9551   ;
9552   return 0;
9553 }
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557   (eval $ac_compile) 2>conftest.er1
9558   ac_status=$?
9559   grep -v '^ *+' conftest.er1 >conftest.err
9560   rm -f conftest.er1
9561   cat conftest.err >&5
9562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563   (exit $ac_status); } &&
9564          { ac_try='test -z "$ac_c_werror_flag"
9565                          || test ! -s conftest.err'
9566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9567   (eval $ac_try) 2>&5
9568   ac_status=$?
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); }; } &&
9571          { ac_try='test -s conftest.$ac_objext'
9572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9573   (eval $ac_try) 2>&5
9574   ac_status=$?
9575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9576   (exit $ac_status); }; }; then
9577   ac_hi=$ac_mid; break
9578 else
9579   echo "$as_me: failed program was:" >&5
9580 sed 's/^/| /' conftest.$ac_ext >&5
9581
9582 ac_lo=`expr $ac_mid + 1`
9583                     if test $ac_lo -le $ac_mid; then
9584                       ac_lo= ac_hi=
9585                       break
9586                     fi
9587                     ac_mid=`expr 2 '*' $ac_mid + 1`
9588 fi
9589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9590   done
9591 else
9592   echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595 cat >conftest.$ac_ext <<_ACEOF
9596 /* confdefs.h.  */
9597 _ACEOF
9598 cat confdefs.h >>conftest.$ac_ext
9599 cat >>conftest.$ac_ext <<_ACEOF
9600 /* end confdefs.h.  */
9601 #include <stddef.h>
9602 int
9603 main ()
9604 {
9605 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
9606 test_array [0] = 0
9607
9608   ;
9609   return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9614   (eval $ac_compile) 2>conftest.er1
9615   ac_status=$?
9616   grep -v '^ *+' conftest.er1 >conftest.err
9617   rm -f conftest.er1
9618   cat conftest.err >&5
9619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620   (exit $ac_status); } &&
9621          { ac_try='test -z "$ac_c_werror_flag"
9622                          || test ! -s conftest.err'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; } &&
9628          { ac_try='test -s conftest.$ac_objext'
9629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9630   (eval $ac_try) 2>&5
9631   ac_status=$?
9632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633   (exit $ac_status); }; }; then
9634   ac_hi=-1 ac_mid=-1
9635   while :; do
9636     cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h.  */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h.  */
9642 #include <stddef.h>
9643 int
9644 main ()
9645 {
9646 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
9647 test_array [0] = 0
9648
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext
9654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9655   (eval $ac_compile) 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -z "$ac_c_werror_flag"
9663                          || test ! -s conftest.err'
9664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665   (eval $ac_try) 2>&5
9666   ac_status=$?
9667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); }; } &&
9669          { ac_try='test -s conftest.$ac_objext'
9670   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9671   (eval $ac_try) 2>&5
9672   ac_status=$?
9673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674   (exit $ac_status); }; }; then
9675   ac_lo=$ac_mid; break
9676 else
9677   echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9679
9680 ac_hi=`expr '(' $ac_mid ')' - 1`
9681                        if test $ac_mid -le $ac_hi; then
9682                          ac_lo= ac_hi=
9683                          break
9684                        fi
9685                        ac_mid=`expr 2 '*' $ac_mid`
9686 fi
9687 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9688   done
9689 else
9690   echo "$as_me: failed program was:" >&5
9691 sed 's/^/| /' conftest.$ac_ext >&5
9692
9693 ac_lo= ac_hi=
9694 fi
9695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9696 fi
9697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9698 # Binary search between lo and hi bounds.
9699 while test "x$ac_lo" != "x$ac_hi"; do
9700   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9701   cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707 #include <stddef.h>
9708 int
9709 main ()
9710 {
9711 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
9712 test_array [0] = 0
9713
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 rm -f conftest.$ac_objext
9719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9720   (eval $ac_compile) 2>conftest.er1
9721   ac_status=$?
9722   grep -v '^ *+' conftest.er1 >conftest.err
9723   rm -f conftest.er1
9724   cat conftest.err >&5
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); } &&
9727          { ac_try='test -z "$ac_c_werror_flag"
9728                          || test ! -s conftest.err'
9729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9730   (eval $ac_try) 2>&5
9731   ac_status=$?
9732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733   (exit $ac_status); }; } &&
9734          { ac_try='test -s conftest.$ac_objext'
9735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9736   (eval $ac_try) 2>&5
9737   ac_status=$?
9738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739   (exit $ac_status); }; }; then
9740   ac_hi=$ac_mid
9741 else
9742   echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9744
9745 ac_lo=`expr '(' $ac_mid ')' + 1`
9746 fi
9747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9748 done
9749 case $ac_lo in
9750 ?*) res_hi=$ac_lo;;
9751 '') result=? ;;
9752 esac
9753 else
9754   if test "$cross_compiling" = yes; then
9755   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9756 See \`config.log' for more details." >&5
9757 echo "$as_me: error: cannot run test program while cross compiling
9758 See \`config.log' for more details." >&2;}
9759    { (exit 1); exit 1; }; }
9760 else
9761   cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h.  */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h.  */
9767 #include <stddef.h>
9768 long longval () { return ~(size_t)0 / 10; }
9769 unsigned long ulongval () { return ~(size_t)0 / 10; }
9770 #include <stdio.h>
9771 #include <stdlib.h>
9772 int
9773 main ()
9774 {
9775
9776   FILE *f = fopen ("conftest.val", "w");
9777   if (! f)
9778     exit (1);
9779   if ((~(size_t)0 / 10) < 0)
9780     {
9781       long i = longval ();
9782       if (i != (~(size_t)0 / 10))
9783         exit (1);
9784       fprintf (f, "%ld\n", i);
9785     }
9786   else
9787     {
9788       unsigned long i = ulongval ();
9789       if (i != (~(size_t)0 / 10))
9790         exit (1);
9791       fprintf (f, "%lu\n", i);
9792     }
9793   exit (ferror (f) || fclose (f) != 0);
9794
9795   ;
9796   return 0;
9797 }
9798 _ACEOF
9799 rm -f conftest$ac_exeext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9801   (eval $ac_link) 2>&5
9802   ac_status=$?
9803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806   (eval $ac_try) 2>&5
9807   ac_status=$?
9808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809   (exit $ac_status); }; }; then
9810   res_hi=`cat conftest.val`
9811 else
9812   echo "$as_me: program exited with status $ac_status" >&5
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ( exit $ac_status )
9817 result=?
9818 fi
9819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9820 fi
9821 fi
9822 rm -f conftest.val
9823     if test "$cross_compiling" = yes; then
9824   # Depending upon the size, compute the lo and hi bounds.
9825 cat >conftest.$ac_ext <<_ACEOF
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 #include <stddef.h>
9832 int
9833 main ()
9834 {
9835 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
9836 test_array [0] = 0
9837
9838   ;
9839   return 0;
9840 }
9841 _ACEOF
9842 rm -f conftest.$ac_objext
9843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9844   (eval $ac_compile) 2>conftest.er1
9845   ac_status=$?
9846   grep -v '^ *+' conftest.er1 >conftest.err
9847   rm -f conftest.er1
9848   cat conftest.err >&5
9849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850   (exit $ac_status); } &&
9851          { ac_try='test -z "$ac_c_werror_flag"
9852                          || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_lo=0 ac_mid=0
9865   while :; do
9866     cat >conftest.$ac_ext <<_ACEOF
9867 /* confdefs.h.  */
9868 _ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h.  */
9872 #include <stddef.h>
9873 int
9874 main ()
9875 {
9876 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
9877 test_array [0] = 0
9878
9879   ;
9880   return 0;
9881 }
9882 _ACEOF
9883 rm -f conftest.$ac_objext
9884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9885   (eval $ac_compile) 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } &&
9892          { ac_try='test -z "$ac_c_werror_flag"
9893                          || test ! -s conftest.err'
9894   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9895   (eval $ac_try) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; } &&
9899          { ac_try='test -s conftest.$ac_objext'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; }; then
9905   ac_hi=$ac_mid; break
9906 else
9907   echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9909
9910 ac_lo=`expr $ac_mid + 1`
9911                     if test $ac_lo -le $ac_mid; then
9912                       ac_lo= ac_hi=
9913                       break
9914                     fi
9915                     ac_mid=`expr 2 '*' $ac_mid + 1`
9916 fi
9917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9918   done
9919 else
9920   echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9922
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929 #include <stddef.h>
9930 int
9931 main ()
9932 {
9933 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
9934 test_array [0] = 0
9935
9936   ;
9937   return 0;
9938 }
9939 _ACEOF
9940 rm -f conftest.$ac_objext
9941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9942   (eval $ac_compile) 2>conftest.er1
9943   ac_status=$?
9944   grep -v '^ *+' conftest.er1 >conftest.err
9945   rm -f conftest.er1
9946   cat conftest.err >&5
9947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948   (exit $ac_status); } &&
9949          { ac_try='test -z "$ac_c_werror_flag"
9950                          || test ! -s conftest.err'
9951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9952   (eval $ac_try) 2>&5
9953   ac_status=$?
9954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955   (exit $ac_status); }; } &&
9956          { ac_try='test -s conftest.$ac_objext'
9957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9958   (eval $ac_try) 2>&5
9959   ac_status=$?
9960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961   (exit $ac_status); }; }; then
9962   ac_hi=-1 ac_mid=-1
9963   while :; do
9964     cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h.  */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h.  */
9970 #include <stddef.h>
9971 int
9972 main ()
9973 {
9974 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
9975 test_array [0] = 0
9976
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9983   (eval $ac_compile) 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -z "$ac_c_werror_flag"
9991                          || test ! -s conftest.err'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; } &&
9997          { ac_try='test -s conftest.$ac_objext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003   ac_lo=$ac_mid; break
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008 ac_hi=`expr '(' $ac_mid ')' - 1`
10009                        if test $ac_mid -le $ac_hi; then
10010                          ac_lo= ac_hi=
10011                          break
10012                        fi
10013                        ac_mid=`expr 2 '*' $ac_mid`
10014 fi
10015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10016   done
10017 else
10018   echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 ac_lo= ac_hi=
10022 fi
10023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10024 fi
10025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10026 # Binary search between lo and hi bounds.
10027 while test "x$ac_lo" != "x$ac_hi"; do
10028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10029   cat >conftest.$ac_ext <<_ACEOF
10030 /* confdefs.h.  */
10031 _ACEOF
10032 cat confdefs.h >>conftest.$ac_ext
10033 cat >>conftest.$ac_ext <<_ACEOF
10034 /* end confdefs.h.  */
10035 #include <stddef.h>
10036 int
10037 main ()
10038 {
10039 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10040 test_array [0] = 0
10041
10042   ;
10043   return 0;
10044 }
10045 _ACEOF
10046 rm -f conftest.$ac_objext
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048   (eval $ac_compile) 2>conftest.er1
10049   ac_status=$?
10050   grep -v '^ *+' conftest.er1 >conftest.err
10051   rm -f conftest.er1
10052   cat conftest.err >&5
10053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054   (exit $ac_status); } &&
10055          { ac_try='test -z "$ac_c_werror_flag"
10056                          || test ! -s conftest.err'
10057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10058   (eval $ac_try) 2>&5
10059   ac_status=$?
10060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061   (exit $ac_status); }; } &&
10062          { ac_try='test -s conftest.$ac_objext'
10063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10064   (eval $ac_try) 2>&5
10065   ac_status=$?
10066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10067   (exit $ac_status); }; }; then
10068   ac_hi=$ac_mid
10069 else
10070   echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10072
10073 ac_lo=`expr '(' $ac_mid ')' + 1`
10074 fi
10075 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10076 done
10077 case $ac_lo in
10078 ?*) res_lo=$ac_lo;;
10079 '') result=? ;;
10080 esac
10081 else
10082   if test "$cross_compiling" = yes; then
10083   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10084 See \`config.log' for more details." >&5
10085 echo "$as_me: error: cannot run test program while cross compiling
10086 See \`config.log' for more details." >&2;}
10087    { (exit 1); exit 1; }; }
10088 else
10089   cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h.  */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h.  */
10095 #include <stddef.h>
10096 long longval () { return ~(size_t)0 % 10; }
10097 unsigned long ulongval () { return ~(size_t)0 % 10; }
10098 #include <stdio.h>
10099 #include <stdlib.h>
10100 int
10101 main ()
10102 {
10103
10104   FILE *f = fopen ("conftest.val", "w");
10105   if (! f)
10106     exit (1);
10107   if ((~(size_t)0 % 10) < 0)
10108     {
10109       long i = longval ();
10110       if (i != (~(size_t)0 % 10))
10111         exit (1);
10112       fprintf (f, "%ld\n", i);
10113     }
10114   else
10115     {
10116       unsigned long i = ulongval ();
10117       if (i != (~(size_t)0 % 10))
10118         exit (1);
10119       fprintf (f, "%lu\n", i);
10120     }
10121   exit (ferror (f) || fclose (f) != 0);
10122
10123   ;
10124   return 0;
10125 }
10126 _ACEOF
10127 rm -f conftest$ac_exeext
10128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10129   (eval $ac_link) 2>&5
10130   ac_status=$?
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10134   (eval $ac_try) 2>&5
10135   ac_status=$?
10136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10137   (exit $ac_status); }; }; then
10138   res_lo=`cat conftest.val`
10139 else
10140   echo "$as_me: program exited with status $ac_status" >&5
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ( exit $ac_status )
10145 result=?
10146 fi
10147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10148 fi
10149 fi
10150 rm -f conftest.val
10151     if test "$cross_compiling" = yes; then
10152   # Depending upon the size, compute the lo and hi bounds.
10153 cat >conftest.$ac_ext <<_ACEOF
10154 /* confdefs.h.  */
10155 _ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h.  */
10159 #include <stddef.h>
10160 int
10161 main ()
10162 {
10163 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10164 test_array [0] = 0
10165
10166   ;
10167   return 0;
10168 }
10169 _ACEOF
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172   (eval $ac_compile) 2>conftest.er1
10173   ac_status=$?
10174   grep -v '^ *+' conftest.er1 >conftest.err
10175   rm -f conftest.er1
10176   cat conftest.err >&5
10177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178   (exit $ac_status); } &&
10179          { ac_try='test -z "$ac_c_werror_flag"
10180                          || test ! -s conftest.err'
10181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182   (eval $ac_try) 2>&5
10183   ac_status=$?
10184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185   (exit $ac_status); }; } &&
10186          { ac_try='test -s conftest.$ac_objext'
10187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10188   (eval $ac_try) 2>&5
10189   ac_status=$?
10190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191   (exit $ac_status); }; }; then
10192   ac_lo=0 ac_mid=0
10193   while :; do
10194     cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h.  */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h.  */
10200 #include <stddef.h>
10201 int
10202 main ()
10203 {
10204 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10205 test_array [0] = 0
10206
10207   ;
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest.$ac_objext
10212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10213   (eval $ac_compile) 2>conftest.er1
10214   ac_status=$?
10215   grep -v '^ *+' conftest.er1 >conftest.err
10216   rm -f conftest.er1
10217   cat conftest.err >&5
10218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219   (exit $ac_status); } &&
10220          { ac_try='test -z "$ac_c_werror_flag"
10221                          || test ! -s conftest.err'
10222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10223   (eval $ac_try) 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; } &&
10227          { ac_try='test -s conftest.$ac_objext'
10228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10229   (eval $ac_try) 2>&5
10230   ac_status=$?
10231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232   (exit $ac_status); }; }; then
10233   ac_hi=$ac_mid; break
10234 else
10235   echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10237
10238 ac_lo=`expr $ac_mid + 1`
10239                     if test $ac_lo -le $ac_mid; then
10240                       ac_lo= ac_hi=
10241                       break
10242                     fi
10243                     ac_mid=`expr 2 '*' $ac_mid + 1`
10244 fi
10245 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10246   done
10247 else
10248   echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10250
10251 cat >conftest.$ac_ext <<_ACEOF
10252 /* confdefs.h.  */
10253 _ACEOF
10254 cat confdefs.h >>conftest.$ac_ext
10255 cat >>conftest.$ac_ext <<_ACEOF
10256 /* end confdefs.h.  */
10257 #include <stddef.h>
10258 int
10259 main ()
10260 {
10261 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10262 test_array [0] = 0
10263
10264   ;
10265   return 0;
10266 }
10267 _ACEOF
10268 rm -f conftest.$ac_objext
10269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10270   (eval $ac_compile) 2>conftest.er1
10271   ac_status=$?
10272   grep -v '^ *+' conftest.er1 >conftest.err
10273   rm -f conftest.er1
10274   cat conftest.err >&5
10275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276   (exit $ac_status); } &&
10277          { ac_try='test -z "$ac_c_werror_flag"
10278                          || test ! -s conftest.err'
10279   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10280   (eval $ac_try) 2>&5
10281   ac_status=$?
10282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283   (exit $ac_status); }; } &&
10284          { ac_try='test -s conftest.$ac_objext'
10285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10286   (eval $ac_try) 2>&5
10287   ac_status=$?
10288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289   (exit $ac_status); }; }; then
10290   ac_hi=-1 ac_mid=-1
10291   while :; do
10292     cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298 #include <stddef.h>
10299 int
10300 main ()
10301 {
10302 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
10303 test_array [0] = 0
10304
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext
10310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10311   (eval $ac_compile) 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } &&
10318          { ac_try='test -z "$ac_c_werror_flag"
10319                          || test ! -s conftest.err'
10320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321   (eval $ac_try) 2>&5
10322   ac_status=$?
10323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324   (exit $ac_status); }; } &&
10325          { ac_try='test -s conftest.$ac_objext'
10326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327   (eval $ac_try) 2>&5
10328   ac_status=$?
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   (exit $ac_status); }; }; then
10331   ac_lo=$ac_mid; break
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336 ac_hi=`expr '(' $ac_mid ')' - 1`
10337                        if test $ac_mid -le $ac_hi; then
10338                          ac_lo= ac_hi=
10339                          break
10340                        fi
10341                        ac_mid=`expr 2 '*' $ac_mid`
10342 fi
10343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10344   done
10345 else
10346   echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_lo= ac_hi=
10350 fi
10351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10352 fi
10353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10354 # Binary search between lo and hi bounds.
10355 while test "x$ac_lo" != "x$ac_hi"; do
10356   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10357   cat >conftest.$ac_ext <<_ACEOF
10358 /* confdefs.h.  */
10359 _ACEOF
10360 cat confdefs.h >>conftest.$ac_ext
10361 cat >>conftest.$ac_ext <<_ACEOF
10362 /* end confdefs.h.  */
10363 #include <stddef.h>
10364 int
10365 main ()
10366 {
10367 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10368 test_array [0] = 0
10369
10370   ;
10371   return 0;
10372 }
10373 _ACEOF
10374 rm -f conftest.$ac_objext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10376   (eval $ac_compile) 2>conftest.er1
10377   ac_status=$?
10378   grep -v '^ *+' conftest.er1 >conftest.err
10379   rm -f conftest.er1
10380   cat conftest.err >&5
10381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382   (exit $ac_status); } &&
10383          { ac_try='test -z "$ac_c_werror_flag"
10384                          || test ! -s conftest.err'
10385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10386   (eval $ac_try) 2>&5
10387   ac_status=$?
10388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); }; } &&
10390          { ac_try='test -s conftest.$ac_objext'
10391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10392   (eval $ac_try) 2>&5
10393   ac_status=$?
10394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395   (exit $ac_status); }; }; then
10396   ac_hi=$ac_mid
10397 else
10398   echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 ac_lo=`expr '(' $ac_mid ')' + 1`
10402 fi
10403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10404 done
10405 case $ac_lo in
10406 ?*) fits_in_uint=$ac_lo;;
10407 '') result=? ;;
10408 esac
10409 else
10410   if test "$cross_compiling" = yes; then
10411   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10412 See \`config.log' for more details." >&5
10413 echo "$as_me: error: cannot run test program while cross compiling
10414 See \`config.log' for more details." >&2;}
10415    { (exit 1); exit 1; }; }
10416 else
10417   cat >conftest.$ac_ext <<_ACEOF
10418 /* confdefs.h.  */
10419 _ACEOF
10420 cat confdefs.h >>conftest.$ac_ext
10421 cat >>conftest.$ac_ext <<_ACEOF
10422 /* end confdefs.h.  */
10423 #include <stddef.h>
10424 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
10425 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
10426 #include <stdio.h>
10427 #include <stdlib.h>
10428 int
10429 main ()
10430 {
10431
10432   FILE *f = fopen ("conftest.val", "w");
10433   if (! f)
10434     exit (1);
10435   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
10436     {
10437       long i = longval ();
10438       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10439         exit (1);
10440       fprintf (f, "%ld\n", i);
10441     }
10442   else
10443     {
10444       unsigned long i = ulongval ();
10445       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
10446         exit (1);
10447       fprintf (f, "%lu\n", i);
10448     }
10449   exit (ferror (f) || fclose (f) != 0);
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest$ac_exeext
10456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10457   (eval $ac_link) 2>&5
10458   ac_status=$?
10459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462   (eval $ac_try) 2>&5
10463   ac_status=$?
10464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465   (exit $ac_status); }; }; then
10466   fits_in_uint=`cat conftest.val`
10467 else
10468   echo "$as_me: program exited with status $ac_status" >&5
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 ( exit $ac_status )
10473 result=?
10474 fi
10475 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10476 fi
10477 fi
10478 rm -f conftest.val
10479     if test "$fits_in_uint" = 1; then
10480                   cat >conftest.$ac_ext <<_ACEOF
10481 /* confdefs.h.  */
10482 _ACEOF
10483 cat confdefs.h >>conftest.$ac_ext
10484 cat >>conftest.$ac_ext <<_ACEOF
10485 /* end confdefs.h.  */
10486 #include <stddef.h>
10487         extern size_t foo;
10488         extern unsigned long foo;
10489
10490 int
10491 main ()
10492 {
10493
10494   ;
10495   return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext
10499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10500   (eval $ac_compile) 2>conftest.er1
10501   ac_status=$?
10502   grep -v '^ *+' conftest.er1 >conftest.err
10503   rm -f conftest.er1
10504   cat conftest.err >&5
10505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506   (exit $ac_status); } &&
10507          { ac_try='test -z "$ac_c_werror_flag"
10508                          || test ! -s conftest.err'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; } &&
10514          { ac_try='test -s conftest.$ac_objext'
10515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10516   (eval $ac_try) 2>&5
10517   ac_status=$?
10518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10519   (exit $ac_status); }; }; then
10520   fits_in_uint=0
10521 else
10522   echo "$as_me: failed program was:" >&5
10523 sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 fi
10526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10527     fi
10528     if test -z "$result"; then
10529       if test "$fits_in_uint" = 1; then
10530         result="$res_hi$res_lo"U
10531       else
10532         result="$res_hi$res_lo"UL
10533       fi
10534     else
10535             result='~(size_t)0'
10536     fi
10537   fi
10538   echo "$as_me:$LINENO: result: $result" >&5
10539 echo "${ECHO_T}$result" >&6
10540   if test "$result" != yes; then
10541
10542 cat >>confdefs.h <<_ACEOF
10543 #define SIZE_MAX $result
10544 _ACEOF
10545
10546   fi
10547
10548
10549
10550
10551
10552 for ac_header in stdint.h
10553 do
10554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10556   echo "$as_me:$LINENO: checking for $ac_header" >&5
10557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10559   echo $ECHO_N "(cached) $ECHO_C" >&6
10560 fi
10561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10563 else
10564   # Is the header compilable?
10565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10567 cat >conftest.$ac_ext <<_ACEOF
10568 /* confdefs.h.  */
10569 _ACEOF
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h.  */
10573 $ac_includes_default
10574 #include <$ac_header>
10575 _ACEOF
10576 rm -f conftest.$ac_objext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10578   (eval $ac_compile) 2>conftest.er1
10579   ac_status=$?
10580   grep -v '^ *+' conftest.er1 >conftest.err
10581   rm -f conftest.er1
10582   cat conftest.err >&5
10583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584   (exit $ac_status); } &&
10585          { ac_try='test -z "$ac_c_werror_flag"
10586                          || test ! -s conftest.err'
10587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588   (eval $ac_try) 2>&5
10589   ac_status=$?
10590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591   (exit $ac_status); }; } &&
10592          { ac_try='test -s conftest.$ac_objext'
10593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594   (eval $ac_try) 2>&5
10595   ac_status=$?
10596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597   (exit $ac_status); }; }; then
10598   ac_header_compiler=yes
10599 else
10600   echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10602
10603 ac_header_compiler=no
10604 fi
10605 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10607 echo "${ECHO_T}$ac_header_compiler" >&6
10608
10609 # Is the header present?
10610 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10611 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10612 cat >conftest.$ac_ext <<_ACEOF
10613 /* confdefs.h.  */
10614 _ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h.  */
10618 #include <$ac_header>
10619 _ACEOF
10620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10621   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10622   ac_status=$?
10623   grep -v '^ *+' conftest.er1 >conftest.err
10624   rm -f conftest.er1
10625   cat conftest.err >&5
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); } >/dev/null; then
10628   if test -s conftest.err; then
10629     ac_cpp_err=$ac_c_preproc_warn_flag
10630     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10631   else
10632     ac_cpp_err=
10633   fi
10634 else
10635   ac_cpp_err=yes
10636 fi
10637 if test -z "$ac_cpp_err"; then
10638   ac_header_preproc=yes
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643   ac_header_preproc=no
10644 fi
10645 rm -f conftest.err conftest.$ac_ext
10646 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10647 echo "${ECHO_T}$ac_header_preproc" >&6
10648
10649 # So?  What about this header?
10650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10651   yes:no: )
10652     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10653 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10654     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10655 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10656     ac_header_preproc=yes
10657     ;;
10658   no:yes:* )
10659     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10660 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10661     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10662 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10663     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10664 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10665     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10666 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10667     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10668 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10669     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10670 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10671     (
10672       cat <<\_ASBOX
10673 ## ------------------------------------------ ##
10674 ## Report this to the AC_PACKAGE_NAME lists.  ##
10675 ## ------------------------------------------ ##
10676 _ASBOX
10677     ) |
10678       sed "s/^/$as_me: WARNING:     /" >&2
10679     ;;
10680 esac
10681 echo "$as_me:$LINENO: checking for $ac_header" >&5
10682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10684   echo $ECHO_N "(cached) $ECHO_C" >&6
10685 else
10686   eval "$as_ac_Header=\$ac_header_preproc"
10687 fi
10688 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10689 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10690
10691 fi
10692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10693   cat >>confdefs.h <<_ACEOF
10694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10695 _ACEOF
10696
10697 fi
10698
10699 done
10700
10701
10702
10703
10704
10705
10706
10707
10708   echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10709 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
10710 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10711   echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713   cat >conftest.$ac_ext <<_ACEOF
10714 /* confdefs.h.  */
10715 _ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h.  */
10719 $ac_includes_default
10720 int
10721 main ()
10722 {
10723 if ((ptrdiff_t *) 0)
10724   return 0;
10725 if (sizeof (ptrdiff_t))
10726   return 0;
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10733   (eval $ac_compile) 2>conftest.er1
10734   ac_status=$?
10735   grep -v '^ *+' conftest.er1 >conftest.err
10736   rm -f conftest.er1
10737   cat conftest.err >&5
10738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739   (exit $ac_status); } &&
10740          { ac_try='test -z "$ac_c_werror_flag"
10741                          || test ! -s conftest.err'
10742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10743   (eval $ac_try) 2>&5
10744   ac_status=$?
10745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746   (exit $ac_status); }; } &&
10747          { ac_try='test -s conftest.$ac_objext'
10748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10749   (eval $ac_try) 2>&5
10750   ac_status=$?
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); }; }; then
10753   ac_cv_type_ptrdiff_t=yes
10754 else
10755   echo "$as_me: failed program was:" >&5
10756 sed 's/^/| /' conftest.$ac_ext >&5
10757
10758 ac_cv_type_ptrdiff_t=no
10759 fi
10760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10761 fi
10762 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10763 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
10764 if test $ac_cv_type_ptrdiff_t = yes; then
10765   :
10766 else
10767
10768 cat >>confdefs.h <<\_ACEOF
10769 #define ptrdiff_t long
10770 _ACEOF
10771
10772
10773 fi
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10786 stdlib.h string.h unistd.h sys/param.h
10787 do
10788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10790   echo "$as_me:$LINENO: checking for $ac_header" >&5
10791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10792 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10793   echo $ECHO_N "(cached) $ECHO_C" >&6
10794 fi
10795 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10796 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10797 else
10798   # Is the header compilable?
10799 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10801 cat >conftest.$ac_ext <<_ACEOF
10802 /* confdefs.h.  */
10803 _ACEOF
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h.  */
10807 $ac_includes_default
10808 #include <$ac_header>
10809 _ACEOF
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812   (eval $ac_compile) 2>conftest.er1
10813   ac_status=$?
10814   grep -v '^ *+' conftest.er1 >conftest.err
10815   rm -f conftest.er1
10816   cat conftest.err >&5
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); } &&
10819          { ac_try='test -z "$ac_c_werror_flag"
10820                          || test ! -s conftest.err'
10821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10822   (eval $ac_try) 2>&5
10823   ac_status=$?
10824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; } &&
10826          { ac_try='test -s conftest.$ac_objext'
10827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10828   (eval $ac_try) 2>&5
10829   ac_status=$?
10830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10831   (exit $ac_status); }; }; then
10832   ac_header_compiler=yes
10833 else
10834   echo "$as_me: failed program was:" >&5
10835 sed 's/^/| /' conftest.$ac_ext >&5
10836
10837 ac_header_compiler=no
10838 fi
10839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10840 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10841 echo "${ECHO_T}$ac_header_compiler" >&6
10842
10843 # Is the header present?
10844 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10845 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 /* confdefs.h.  */
10848 _ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h.  */
10852 #include <$ac_header>
10853 _ACEOF
10854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10855   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10856   ac_status=$?
10857   grep -v '^ *+' conftest.er1 >conftest.err
10858   rm -f conftest.er1
10859   cat conftest.err >&5
10860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861   (exit $ac_status); } >/dev/null; then
10862   if test -s conftest.err; then
10863     ac_cpp_err=$ac_c_preproc_warn_flag
10864     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10865   else
10866     ac_cpp_err=
10867   fi
10868 else
10869   ac_cpp_err=yes
10870 fi
10871 if test -z "$ac_cpp_err"; then
10872   ac_header_preproc=yes
10873 else
10874   echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10876
10877   ac_header_preproc=no
10878 fi
10879 rm -f conftest.err conftest.$ac_ext
10880 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10881 echo "${ECHO_T}$ac_header_preproc" >&6
10882
10883 # So?  What about this header?
10884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10885   yes:no: )
10886     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10888     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10890     ac_header_preproc=yes
10891     ;;
10892   no:yes:* )
10893     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10895     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10896 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10897     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10899     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10900 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10903     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10905     (
10906       cat <<\_ASBOX
10907 ## ------------------------------------------ ##
10908 ## Report this to the AC_PACKAGE_NAME lists.  ##
10909 ## ------------------------------------------ ##
10910 _ASBOX
10911     ) |
10912       sed "s/^/$as_me: WARNING:     /" >&2
10913     ;;
10914 esac
10915 echo "$as_me:$LINENO: checking for $ac_header" >&5
10916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10918   echo $ECHO_N "(cached) $ECHO_C" >&6
10919 else
10920   eval "$as_ac_Header=\$ac_header_preproc"
10921 fi
10922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924
10925 fi
10926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10927   cat >>confdefs.h <<_ACEOF
10928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10929 _ACEOF
10930
10931 fi
10932
10933 done
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10959 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10960 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10961 __fsetlocking
10962 do
10963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10964 echo "$as_me:$LINENO: checking for $ac_func" >&5
10965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10966 if eval "test \"\${$as_ac_var+set}\" = set"; then
10967   echo $ECHO_N "(cached) $ECHO_C" >&6
10968 else
10969   cat >conftest.$ac_ext <<_ACEOF
10970 /* confdefs.h.  */
10971 _ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h.  */
10975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10977 #define $ac_func innocuous_$ac_func
10978
10979 /* System header to define __stub macros and hopefully few prototypes,
10980     which can conflict with char $ac_func (); below.
10981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10982     <limits.h> exists even on freestanding compilers.  */
10983
10984 #ifdef __STDC__
10985 # include <limits.h>
10986 #else
10987 # include <assert.h>
10988 #endif
10989
10990 #undef $ac_func
10991
10992 /* Override any gcc2 internal prototype to avoid an error.  */
10993 #ifdef __cplusplus
10994 extern "C"
10995 {
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998    builtin and then its argument prototype would still apply.  */
10999 char $ac_func ();
11000 /* The GNU C library defines this for functions which it implements
11001     to always fail with ENOSYS.  Some functions are actually named
11002     something starting with __ and the normal name is an alias.  */
11003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11004 choke me
11005 #else
11006 char (*f) () = $ac_func;
11007 #endif
11008 #ifdef __cplusplus
11009 }
11010 #endif
11011
11012 int
11013 main ()
11014 {
11015 return f != $ac_func;
11016   ;
11017   return 0;
11018 }
11019 _ACEOF
11020 rm -f conftest.$ac_objext conftest$ac_exeext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11022   (eval $ac_link) 2>conftest.er1
11023   ac_status=$?
11024   grep -v '^ *+' conftest.er1 >conftest.err
11025   rm -f conftest.er1
11026   cat conftest.err >&5
11027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028   (exit $ac_status); } &&
11029          { ac_try='test -z "$ac_c_werror_flag"
11030                          || test ! -s conftest.err'
11031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032   (eval $ac_try) 2>&5
11033   ac_status=$?
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); }; } &&
11036          { ac_try='test -s conftest$ac_exeext'
11037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11038   (eval $ac_try) 2>&5
11039   ac_status=$?
11040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11041   (exit $ac_status); }; }; then
11042   eval "$as_ac_var=yes"
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 eval "$as_ac_var=no"
11048 fi
11049 rm -f conftest.err conftest.$ac_objext \
11050       conftest$ac_exeext conftest.$ac_ext
11051 fi
11052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11054 if test `eval echo '${'$as_ac_var'}'` = yes; then
11055   cat >>confdefs.h <<_ACEOF
11056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11057 _ACEOF
11058
11059 fi
11060 done
11061
11062
11063
11064   echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11065 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
11066 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11067   echo $ECHO_N "(cached) $ECHO_C" >&6
11068 else
11069   cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <stdio.h>
11076 int
11077 main ()
11078 {
11079
11080 #ifndef _snprintf
11081   char *p = (char *) _snprintf;
11082 #endif
11083
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090   (eval $ac_compile) 2>conftest.er1
11091   ac_status=$?
11092   grep -v '^ *+' conftest.er1 >conftest.err
11093   rm -f conftest.er1
11094   cat conftest.err >&5
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); } &&
11097          { ac_try='test -z "$ac_c_werror_flag"
11098                          || test ! -s conftest.err'
11099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100   (eval $ac_try) 2>&5
11101   ac_status=$?
11102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103   (exit $ac_status); }; } &&
11104          { ac_try='test -s conftest.$ac_objext'
11105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11106   (eval $ac_try) 2>&5
11107   ac_status=$?
11108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11109   (exit $ac_status); }; }; then
11110   ac_cv_have_decl__snprintf=yes
11111 else
11112   echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 ac_cv_have_decl__snprintf=no
11116 fi
11117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11118 fi
11119 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11120 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
11121   if test $ac_cv_have_decl__snprintf = yes; then
11122     gt_value=1
11123   else
11124     gt_value=0
11125   fi
11126
11127 cat >>confdefs.h <<_ACEOF
11128 #define HAVE_DECL__SNPRINTF $gt_value
11129 _ACEOF
11130
11131
11132
11133   echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11134 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
11135 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11136   echo $ECHO_N "(cached) $ECHO_C" >&6
11137 else
11138   cat >conftest.$ac_ext <<_ACEOF
11139 /* confdefs.h.  */
11140 _ACEOF
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h.  */
11144 #include <stdio.h>
11145 int
11146 main ()
11147 {
11148
11149 #ifndef _snwprintf
11150   char *p = (char *) _snwprintf;
11151 #endif
11152
11153   ;
11154   return 0;
11155 }
11156 _ACEOF
11157 rm -f conftest.$ac_objext
11158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11159   (eval $ac_compile) 2>conftest.er1
11160   ac_status=$?
11161   grep -v '^ *+' conftest.er1 >conftest.err
11162   rm -f conftest.er1
11163   cat conftest.err >&5
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } &&
11166          { ac_try='test -z "$ac_c_werror_flag"
11167                          || test ! -s conftest.err'
11168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11169   (eval $ac_try) 2>&5
11170   ac_status=$?
11171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11172   (exit $ac_status); }; } &&
11173          { ac_try='test -s conftest.$ac_objext'
11174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11175   (eval $ac_try) 2>&5
11176   ac_status=$?
11177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11178   (exit $ac_status); }; }; then
11179   ac_cv_have_decl__snwprintf=yes
11180 else
11181   echo "$as_me: failed program was:" >&5
11182 sed 's/^/| /' conftest.$ac_ext >&5
11183
11184 ac_cv_have_decl__snwprintf=no
11185 fi
11186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11187 fi
11188 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11189 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
11190   if test $ac_cv_have_decl__snwprintf = yes; then
11191     gt_value=1
11192   else
11193     gt_value=0
11194   fi
11195
11196 cat >>confdefs.h <<_ACEOF
11197 #define HAVE_DECL__SNWPRINTF $gt_value
11198 _ACEOF
11199
11200
11201
11202
11203   echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11204 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
11205 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11206   echo $ECHO_N "(cached) $ECHO_C" >&6
11207 else
11208   cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <stdio.h>
11215 int
11216 main ()
11217 {
11218
11219 #ifndef feof_unlocked
11220   char *p = (char *) feof_unlocked;
11221 #endif
11222
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 rm -f conftest.$ac_objext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11229   (eval $ac_compile) 2>conftest.er1
11230   ac_status=$?
11231   grep -v '^ *+' conftest.er1 >conftest.err
11232   rm -f conftest.er1
11233   cat conftest.err >&5
11234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235   (exit $ac_status); } &&
11236          { ac_try='test -z "$ac_c_werror_flag"
11237                          || test ! -s conftest.err'
11238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239   (eval $ac_try) 2>&5
11240   ac_status=$?
11241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); }; } &&
11243          { ac_try='test -s conftest.$ac_objext'
11244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245   (eval $ac_try) 2>&5
11246   ac_status=$?
11247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248   (exit $ac_status); }; }; then
11249   ac_cv_have_decl_feof_unlocked=yes
11250 else
11251   echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11253
11254 ac_cv_have_decl_feof_unlocked=no
11255 fi
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11257 fi
11258 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11259 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
11260   if test $ac_cv_have_decl_feof_unlocked = yes; then
11261     gt_value=1
11262   else
11263     gt_value=0
11264   fi
11265
11266 cat >>confdefs.h <<_ACEOF
11267 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11268 _ACEOF
11269
11270
11271
11272   echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11273 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
11274 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11275   echo $ECHO_N "(cached) $ECHO_C" >&6
11276 else
11277   cat >conftest.$ac_ext <<_ACEOF
11278 /* confdefs.h.  */
11279 _ACEOF
11280 cat confdefs.h >>conftest.$ac_ext
11281 cat >>conftest.$ac_ext <<_ACEOF
11282 /* end confdefs.h.  */
11283 #include <stdio.h>
11284 int
11285 main ()
11286 {
11287
11288 #ifndef fgets_unlocked
11289   char *p = (char *) fgets_unlocked;
11290 #endif
11291
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 rm -f conftest.$ac_objext
11297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11298   (eval $ac_compile) 2>conftest.er1
11299   ac_status=$?
11300   grep -v '^ *+' conftest.er1 >conftest.err
11301   rm -f conftest.er1
11302   cat conftest.err >&5
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -z "$ac_c_werror_flag"
11306                          || test ! -s conftest.err'
11307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308   (eval $ac_try) 2>&5
11309   ac_status=$?
11310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311   (exit $ac_status); }; } &&
11312          { ac_try='test -s conftest.$ac_objext'
11313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314   (eval $ac_try) 2>&5
11315   ac_status=$?
11316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317   (exit $ac_status); }; }; then
11318   ac_cv_have_decl_fgets_unlocked=yes
11319 else
11320   echo "$as_me: failed program was:" >&5
11321 sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 ac_cv_have_decl_fgets_unlocked=no
11324 fi
11325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11326 fi
11327 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11328 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
11329   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11330     gt_value=1
11331   else
11332     gt_value=0
11333   fi
11334
11335 cat >>confdefs.h <<_ACEOF
11336 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11337 _ACEOF
11338
11339
11340
11341   echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11342 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
11343 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11344   echo $ECHO_N "(cached) $ECHO_C" >&6
11345 else
11346   cat >conftest.$ac_ext <<_ACEOF
11347 /* confdefs.h.  */
11348 _ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h.  */
11352 #include <stdio.h>
11353 int
11354 main ()
11355 {
11356
11357 #ifndef getc_unlocked
11358   char *p = (char *) getc_unlocked;
11359 #endif
11360
11361   ;
11362   return 0;
11363 }
11364 _ACEOF
11365 rm -f conftest.$ac_objext
11366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11367   (eval $ac_compile) 2>conftest.er1
11368   ac_status=$?
11369   grep -v '^ *+' conftest.er1 >conftest.err
11370   rm -f conftest.er1
11371   cat conftest.err >&5
11372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373   (exit $ac_status); } &&
11374          { ac_try='test -z "$ac_c_werror_flag"
11375                          || test ! -s conftest.err'
11376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377   (eval $ac_try) 2>&5
11378   ac_status=$?
11379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380   (exit $ac_status); }; } &&
11381          { ac_try='test -s conftest.$ac_objext'
11382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383   (eval $ac_try) 2>&5
11384   ac_status=$?
11385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386   (exit $ac_status); }; }; then
11387   ac_cv_have_decl_getc_unlocked=yes
11388 else
11389   echo "$as_me: failed program was:" >&5
11390 sed 's/^/| /' conftest.$ac_ext >&5
11391
11392 ac_cv_have_decl_getc_unlocked=no
11393 fi
11394 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11395 fi
11396 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11397 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
11398   if test $ac_cv_have_decl_getc_unlocked = yes; then
11399     gt_value=1
11400   else
11401     gt_value=0
11402   fi
11403
11404 cat >>confdefs.h <<_ACEOF
11405 #define HAVE_DECL_GETC_UNLOCKED $gt_value
11406 _ACEOF
11407
11408
11409
11410   case $gt_cv_func_printf_posix in
11411     *yes) HAVE_POSIX_PRINTF=1 ;;
11412     *) HAVE_POSIX_PRINTF=0 ;;
11413   esac
11414
11415   if test "$ac_cv_func_asprintf" = yes; then
11416     HAVE_ASPRINTF=1
11417   else
11418     HAVE_ASPRINTF=0
11419   fi
11420
11421   if test "$ac_cv_func_snprintf" = yes; then
11422     HAVE_SNPRINTF=1
11423   else
11424     HAVE_SNPRINTF=0
11425   fi
11426
11427   if test "$ac_cv_func_wprintf" = yes; then
11428     HAVE_WPRINTF=1
11429   else
11430     HAVE_WPRINTF=0
11431   fi
11432
11433
11434
11435
11436
11437
11438
11439           am_save_CPPFLAGS="$CPPFLAGS"
11440
11441   for element in $INCICONV; do
11442     haveit=
11443     for x in $CPPFLAGS; do
11444
11445   acl_save_prefix="$prefix"
11446   prefix="$acl_final_prefix"
11447   acl_save_exec_prefix="$exec_prefix"
11448   exec_prefix="$acl_final_exec_prefix"
11449   eval x=\"$x\"
11450   exec_prefix="$acl_save_exec_prefix"
11451   prefix="$acl_save_prefix"
11452
11453       if test "X$x" = "X$element"; then
11454         haveit=yes
11455         break
11456       fi
11457     done
11458     if test -z "$haveit"; then
11459       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11460     fi
11461   done
11462
11463
11464   echo "$as_me:$LINENO: checking for iconv" >&5
11465 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
11466 if test "${am_cv_func_iconv+set}" = set; then
11467   echo $ECHO_N "(cached) $ECHO_C" >&6
11468 else
11469
11470     am_cv_func_iconv="no, consider installing GNU libiconv"
11471     am_cv_lib_iconv=no
11472     cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h.  */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h.  */
11478 #include <stdlib.h>
11479 #include <iconv.h>
11480 int
11481 main ()
11482 {
11483 iconv_t cd = iconv_open("","");
11484        iconv(cd,NULL,NULL,NULL,NULL);
11485        iconv_close(cd);
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11492   (eval $ac_link) 2>conftest.er1
11493   ac_status=$?
11494   grep -v '^ *+' conftest.er1 >conftest.err
11495   rm -f conftest.er1
11496   cat conftest.err >&5
11497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11498   (exit $ac_status); } &&
11499          { ac_try='test -z "$ac_c_werror_flag"
11500                          || test ! -s conftest.err'
11501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11502   (eval $ac_try) 2>&5
11503   ac_status=$?
11504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505   (exit $ac_status); }; } &&
11506          { ac_try='test -s conftest$ac_exeext'
11507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508   (eval $ac_try) 2>&5
11509   ac_status=$?
11510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511   (exit $ac_status); }; }; then
11512   am_cv_func_iconv=yes
11513 else
11514   echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 fi
11518 rm -f conftest.err conftest.$ac_objext \
11519       conftest$ac_exeext conftest.$ac_ext
11520     if test "$am_cv_func_iconv" != yes; then
11521       am_save_LIBS="$LIBS"
11522       LIBS="$LIBS $LIBICONV"
11523       cat >conftest.$ac_ext <<_ACEOF
11524 /* confdefs.h.  */
11525 _ACEOF
11526 cat confdefs.h >>conftest.$ac_ext
11527 cat >>conftest.$ac_ext <<_ACEOF
11528 /* end confdefs.h.  */
11529 #include <stdlib.h>
11530 #include <iconv.h>
11531 int
11532 main ()
11533 {
11534 iconv_t cd = iconv_open("","");
11535          iconv(cd,NULL,NULL,NULL,NULL);
11536          iconv_close(cd);
11537   ;
11538   return 0;
11539 }
11540 _ACEOF
11541 rm -f conftest.$ac_objext conftest$ac_exeext
11542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11543   (eval $ac_link) 2>conftest.er1
11544   ac_status=$?
11545   grep -v '^ *+' conftest.er1 >conftest.err
11546   rm -f conftest.er1
11547   cat conftest.err >&5
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); } &&
11550          { ac_try='test -z "$ac_c_werror_flag"
11551                          || test ! -s conftest.err'
11552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11553   (eval $ac_try) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); }; } &&
11557          { ac_try='test -s conftest$ac_exeext'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   am_cv_lib_iconv=yes
11564         am_cv_func_iconv=yes
11565 else
11566   echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 fi
11570 rm -f conftest.err conftest.$ac_objext \
11571       conftest$ac_exeext conftest.$ac_ext
11572       LIBS="$am_save_LIBS"
11573     fi
11574
11575 fi
11576 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
11577 echo "${ECHO_T}$am_cv_func_iconv" >&6
11578   if test "$am_cv_func_iconv" = yes; then
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define HAVE_ICONV 1
11582 _ACEOF
11583
11584   fi
11585   if test "$am_cv_lib_iconv" = yes; then
11586     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
11587 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
11588     echo "$as_me:$LINENO: result: $LIBICONV" >&5
11589 echo "${ECHO_T}$LIBICONV" >&6
11590   else
11591             CPPFLAGS="$am_save_CPPFLAGS"
11592     LIBICONV=
11593     LTLIBICONV=
11594   fi
11595
11596
11597
11598   if test "$am_cv_func_iconv" = yes; then
11599     echo "$as_me:$LINENO: checking for iconv declaration" >&5
11600 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
11601     if test "${am_cv_proto_iconv+set}" = set; then
11602   echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604
11605       cat >conftest.$ac_ext <<_ACEOF
11606 /* confdefs.h.  */
11607 _ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h.  */
11611
11612 #include <stdlib.h>
11613 #include <iconv.h>
11614 extern
11615 #ifdef __cplusplus
11616 "C"
11617 #endif
11618 #if defined(__STDC__) || defined(__cplusplus)
11619 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
11620 #else
11621 size_t iconv();
11622 #endif
11623
11624 int
11625 main ()
11626 {
11627
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11634   (eval $ac_compile) 2>conftest.er1
11635   ac_status=$?
11636   grep -v '^ *+' conftest.er1 >conftest.err
11637   rm -f conftest.er1
11638   cat conftest.err >&5
11639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640   (exit $ac_status); } &&
11641          { ac_try='test -z "$ac_c_werror_flag"
11642                          || test ! -s conftest.err'
11643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11644   (eval $ac_try) 2>&5
11645   ac_status=$?
11646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647   (exit $ac_status); }; } &&
11648          { ac_try='test -s conftest.$ac_objext'
11649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650   (eval $ac_try) 2>&5
11651   ac_status=$?
11652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653   (exit $ac_status); }; }; then
11654   am_cv_proto_iconv_arg1=""
11655 else
11656   echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 am_cv_proto_iconv_arg1="const"
11660 fi
11661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11662       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);"
11663 fi
11664
11665     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
11666     echo "$as_me:$LINENO: result: ${ac_t:-
11667          }$am_cv_proto_iconv" >&5
11668 echo "${ECHO_T}${ac_t:-
11669          }$am_cv_proto_iconv" >&6
11670
11671 cat >>confdefs.h <<_ACEOF
11672 #define ICONV_CONST $am_cv_proto_iconv_arg1
11673 _ACEOF
11674
11675   fi
11676
11677
11678   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11679 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
11680 if test "${am_cv_langinfo_codeset+set}" = set; then
11681   echo $ECHO_N "(cached) $ECHO_C" >&6
11682 else
11683   cat >conftest.$ac_ext <<_ACEOF
11684 /* confdefs.h.  */
11685 _ACEOF
11686 cat confdefs.h >>conftest.$ac_ext
11687 cat >>conftest.$ac_ext <<_ACEOF
11688 /* end confdefs.h.  */
11689 #include <langinfo.h>
11690 int
11691 main ()
11692 {
11693 char* cs = nl_langinfo(CODESET);
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11700   (eval $ac_link) 2>conftest.er1
11701   ac_status=$?
11702   grep -v '^ *+' conftest.er1 >conftest.err
11703   rm -f conftest.er1
11704   cat conftest.err >&5
11705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706   (exit $ac_status); } &&
11707          { ac_try='test -z "$ac_c_werror_flag"
11708                          || test ! -s conftest.err'
11709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710   (eval $ac_try) 2>&5
11711   ac_status=$?
11712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713   (exit $ac_status); }; } &&
11714          { ac_try='test -s conftest$ac_exeext'
11715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716   (eval $ac_try) 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   am_cv_langinfo_codeset=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725 am_cv_langinfo_codeset=no
11726 fi
11727 rm -f conftest.err conftest.$ac_objext \
11728       conftest$ac_exeext conftest.$ac_ext
11729
11730 fi
11731 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11732 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
11733   if test $am_cv_langinfo_codeset = yes; then
11734
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_LANGINFO_CODESET 1
11737 _ACEOF
11738
11739   fi
11740
11741   if test $ac_cv_header_locale_h = yes; then
11742
11743   echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11744 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
11745 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
11746   echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748   cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754 #include <locale.h>
11755 int
11756 main ()
11757 {
11758 return LC_MESSAGES
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765   (eval $ac_link) 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -z "$ac_c_werror_flag"
11773                          || test ! -s conftest.err'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest$ac_exeext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   gt_cv_val_LC_MESSAGES=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 gt_cv_val_LC_MESSAGES=no
11791 fi
11792 rm -f conftest.err conftest.$ac_objext \
11793       conftest$ac_exeext conftest.$ac_ext
11794 fi
11795 echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
11796 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6
11797   if test $gt_cv_val_LC_MESSAGES = yes; then
11798
11799 cat >>confdefs.h <<\_ACEOF
11800 #define HAVE_LC_MESSAGES 1
11801 _ACEOF
11802
11803   fi
11804
11805   fi
11806
11807   if test -n "$INTL_MACOSX_LIBS"; then
11808     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11809   fi
11810
11811                       for ac_prog in bison
11812 do
11813   # Extract the first word of "$ac_prog", so it can be a program name with args.
11814 set dummy $ac_prog; ac_word=$2
11815 echo "$as_me:$LINENO: checking for $ac_word" >&5
11816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11817 if test "${ac_cv_prog_INTLBISON+set}" = set; then
11818   echo $ECHO_N "(cached) $ECHO_C" >&6
11819 else
11820   if test -n "$INTLBISON"; then
11821   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11822 else
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11825 do
11826   IFS=$as_save_IFS
11827   test -z "$as_dir" && as_dir=.
11828   for ac_exec_ext in '' $ac_executable_extensions; do
11829   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830     ac_cv_prog_INTLBISON="$ac_prog"
11831     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11832     break 2
11833   fi
11834 done
11835 done
11836
11837 fi
11838 fi
11839 INTLBISON=$ac_cv_prog_INTLBISON
11840 if test -n "$INTLBISON"; then
11841   echo "$as_me:$LINENO: result: $INTLBISON" >&5
11842 echo "${ECHO_T}$INTLBISON" >&6
11843 else
11844   echo "$as_me:$LINENO: result: no" >&5
11845 echo "${ECHO_T}no" >&6
11846 fi
11847
11848   test -n "$INTLBISON" && break
11849 done
11850
11851   if test -z "$INTLBISON"; then
11852     ac_verc_fail=yes
11853   else
11854         echo "$as_me:$LINENO: checking version of bison" >&5
11855 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
11856     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11857     case $ac_prog_version in
11858       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11859       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11860          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11861       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11862     esac
11863     echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11864 echo "${ECHO_T}$ac_prog_version" >&6
11865   fi
11866   if test $ac_verc_fail = yes; then
11867     INTLBISON=:
11868   fi
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
11886 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
11887 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
11888   echo $ECHO_N "(cached) $ECHO_C" >&6
11889 else
11890   gt_save_CPPFLAGS="$CPPFLAGS"
11891      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11892      gt_save_LIBS="$LIBS"
11893      LIBS="$LIBS -framework CoreFoundation"
11894      cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900 #include <CFPreferences.h>
11901 int
11902 main ()
11903 {
11904 CFPreferencesCopyAppValue(NULL, NULL)
11905   ;
11906   return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11911   (eval $ac_link) 2>conftest.er1
11912   ac_status=$?
11913   grep -v '^ *+' conftest.er1 >conftest.err
11914   rm -f conftest.er1
11915   cat conftest.err >&5
11916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917   (exit $ac_status); } &&
11918          { ac_try='test -z "$ac_c_werror_flag"
11919                          || test ! -s conftest.err'
11920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921   (eval $ac_try) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); }; } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   gt_cv_func_CFPreferencesCopyAppValue=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 gt_cv_func_CFPreferencesCopyAppValue=no
11937 fi
11938 rm -f conftest.err conftest.$ac_objext \
11939       conftest$ac_exeext conftest.$ac_ext
11940      CPPFLAGS="$gt_save_CPPFLAGS"
11941      LIBS="$gt_save_LIBS"
11942 fi
11943 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11944 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
11945   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11946
11947 cat >>confdefs.h <<\_ACEOF
11948 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
11949 _ACEOF
11950
11951   fi
11952     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
11953 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
11954 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
11955   echo $ECHO_N "(cached) $ECHO_C" >&6
11956 else
11957   gt_save_CPPFLAGS="$CPPFLAGS"
11958      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
11959      gt_save_LIBS="$LIBS"
11960      LIBS="$LIBS -framework CoreFoundation"
11961      cat >conftest.$ac_ext <<_ACEOF
11962 /* confdefs.h.  */
11963 _ACEOF
11964 cat confdefs.h >>conftest.$ac_ext
11965 cat >>conftest.$ac_ext <<_ACEOF
11966 /* end confdefs.h.  */
11967 #include <CFLocale.h>
11968 int
11969 main ()
11970 {
11971 CFLocaleCopyCurrent();
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11978   (eval $ac_link) 2>conftest.er1
11979   ac_status=$?
11980   grep -v '^ *+' conftest.er1 >conftest.err
11981   rm -f conftest.er1
11982   cat conftest.err >&5
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } &&
11985          { ac_try='test -z "$ac_c_werror_flag"
11986                          || test ! -s conftest.err'
11987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11988   (eval $ac_try) 2>&5
11989   ac_status=$?
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); }; } &&
11992          { ac_try='test -s conftest$ac_exeext'
11993   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11994   (eval $ac_try) 2>&5
11995   ac_status=$?
11996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); }; }; then
11998   gt_cv_func_CFLocaleCopyCurrent=yes
11999 else
12000   echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12002
12003 gt_cv_func_CFLocaleCopyCurrent=no
12004 fi
12005 rm -f conftest.err conftest.$ac_objext \
12006       conftest$ac_exeext conftest.$ac_ext
12007      CPPFLAGS="$gt_save_CPPFLAGS"
12008      LIBS="$gt_save_LIBS"
12009 fi
12010 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12011 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
12012   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12013
12014 cat >>confdefs.h <<\_ACEOF
12015 #define HAVE_CFLOCALECOPYCURRENT 1
12016 _ACEOF
12017
12018   fi
12019   INTL_MACOSX_LIBS=
12020   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12021     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12022   fi
12023
12024
12025
12026
12027   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12028 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12029     # Check whether --enable-nls or --disable-nls was given.
12030 if test "${enable_nls+set}" = set; then
12031   enableval="$enable_nls"
12032   USE_NLS=$enableval
12033 else
12034   USE_NLS=yes
12035 fi;
12036   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12037 echo "${ECHO_T}$USE_NLS" >&6
12038
12039
12040
12041
12042     BUILD_INCLUDED_LIBINTL=no
12043     USE_INCLUDED_LIBINTL=no
12044
12045   LIBINTL=
12046   LTLIBINTL=
12047   POSUB=
12048
12049     if test "$USE_NLS" = "yes"; then
12050     gt_use_preinstalled_gnugettext=no
12051
12052       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12053 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12054
12055 # Check whether --with-included-gettext or --without-included-gettext was given.
12056 if test "${with_included_gettext+set}" = set; then
12057   withval="$with_included_gettext"
12058   nls_cv_force_use_gnu_gettext=$withval
12059 else
12060   nls_cv_force_use_gnu_gettext=no
12061 fi;
12062       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12063 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12064
12065       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12066       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12067
12068
12069
12070
12071
12072
12073         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12074 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
12075 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12076   echo $ECHO_N "(cached) $ECHO_C" >&6
12077 else
12078   cat >conftest.$ac_ext <<_ACEOF
12079 /* confdefs.h.  */
12080 _ACEOF
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h.  */
12084 #include <libintl.h>
12085 extern int _nl_msg_cat_cntr;
12086 extern int *_nl_domain_bindings;
12087 int
12088 main ()
12089 {
12090 bindtextdomain ("", "");
12091 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12092   ;
12093   return 0;
12094 }
12095 _ACEOF
12096 rm -f conftest.$ac_objext conftest$ac_exeext
12097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12098   (eval $ac_link) 2>conftest.er1
12099   ac_status=$?
12100   grep -v '^ *+' conftest.er1 >conftest.err
12101   rm -f conftest.er1
12102   cat conftest.err >&5
12103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104   (exit $ac_status); } &&
12105          { ac_try='test -z "$ac_c_werror_flag"
12106                          || test ! -s conftest.err'
12107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108   (eval $ac_try) 2>&5
12109   ac_status=$?
12110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111   (exit $ac_status); }; } &&
12112          { ac_try='test -s conftest$ac_exeext'
12113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12114   (eval $ac_try) 2>&5
12115   ac_status=$?
12116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117   (exit $ac_status); }; }; then
12118   gt_cv_func_gnugettext1_libc=yes
12119 else
12120   echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 gt_cv_func_gnugettext1_libc=no
12124 fi
12125 rm -f conftest.err conftest.$ac_objext \
12126       conftest$ac_exeext conftest.$ac_ext
12127 fi
12128 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12129 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
12130
12131         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12132
12133
12134
12135     use_additional=yes
12136
12137   acl_save_prefix="$prefix"
12138   prefix="$acl_final_prefix"
12139   acl_save_exec_prefix="$exec_prefix"
12140   exec_prefix="$acl_final_exec_prefix"
12141
12142     eval additional_includedir=\"$includedir\"
12143     eval additional_libdir=\"$libdir\"
12144
12145   exec_prefix="$acl_save_exec_prefix"
12146   prefix="$acl_save_prefix"
12147
12148
12149 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
12150 if test "${with_libintl_prefix+set}" = set; then
12151   withval="$with_libintl_prefix"
12152
12153     if test "X$withval" = "Xno"; then
12154       use_additional=no
12155     else
12156       if test "X$withval" = "X"; then
12157
12158   acl_save_prefix="$prefix"
12159   prefix="$acl_final_prefix"
12160   acl_save_exec_prefix="$exec_prefix"
12161   exec_prefix="$acl_final_exec_prefix"
12162
12163           eval additional_includedir=\"$includedir\"
12164           eval additional_libdir=\"$libdir\"
12165
12166   exec_prefix="$acl_save_exec_prefix"
12167   prefix="$acl_save_prefix"
12168
12169       else
12170         additional_includedir="$withval/include"
12171         additional_libdir="$withval/lib"
12172       fi
12173     fi
12174
12175 fi;
12176       LIBINTL=
12177   LTLIBINTL=
12178   INCINTL=
12179   rpathdirs=
12180   ltrpathdirs=
12181   names_already_handled=
12182   names_next_round='intl '
12183   while test -n "$names_next_round"; do
12184     names_this_round="$names_next_round"
12185     names_next_round=
12186     for name in $names_this_round; do
12187       already_handled=
12188       for n in $names_already_handled; do
12189         if test "$n" = "$name"; then
12190           already_handled=yes
12191           break
12192         fi
12193       done
12194       if test -z "$already_handled"; then
12195         names_already_handled="$names_already_handled $name"
12196                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12197         eval value=\"\$HAVE_LIB$uppername\"
12198         if test -n "$value"; then
12199           if test "$value" = yes; then
12200             eval value=\"\$LIB$uppername\"
12201             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12202             eval value=\"\$LTLIB$uppername\"
12203             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12204           else
12205                                     :
12206           fi
12207         else
12208                               found_dir=
12209           found_la=
12210           found_so=
12211           found_a=
12212           if test $use_additional = yes; then
12213             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12214               found_dir="$additional_libdir"
12215               found_so="$additional_libdir/lib$name.$shlibext"
12216               if test -f "$additional_libdir/lib$name.la"; then
12217                 found_la="$additional_libdir/lib$name.la"
12218               fi
12219             else
12220               if test -f "$additional_libdir/lib$name.$libext"; then
12221                 found_dir="$additional_libdir"
12222                 found_a="$additional_libdir/lib$name.$libext"
12223                 if test -f "$additional_libdir/lib$name.la"; then
12224                   found_la="$additional_libdir/lib$name.la"
12225                 fi
12226               fi
12227             fi
12228           fi
12229           if test "X$found_dir" = "X"; then
12230             for x in $LDFLAGS $LTLIBINTL; do
12231
12232   acl_save_prefix="$prefix"
12233   prefix="$acl_final_prefix"
12234   acl_save_exec_prefix="$exec_prefix"
12235   exec_prefix="$acl_final_exec_prefix"
12236   eval x=\"$x\"
12237   exec_prefix="$acl_save_exec_prefix"
12238   prefix="$acl_save_prefix"
12239
12240               case "$x" in
12241                 -L*)
12242                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12243                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12244                     found_dir="$dir"
12245                     found_so="$dir/lib$name.$shlibext"
12246                     if test -f "$dir/lib$name.la"; then
12247                       found_la="$dir/lib$name.la"
12248                     fi
12249                   else
12250                     if test -f "$dir/lib$name.$libext"; then
12251                       found_dir="$dir"
12252                       found_a="$dir/lib$name.$libext"
12253                       if test -f "$dir/lib$name.la"; then
12254                         found_la="$dir/lib$name.la"
12255                       fi
12256                     fi
12257                   fi
12258                   ;;
12259               esac
12260               if test "X$found_dir" != "X"; then
12261                 break
12262               fi
12263             done
12264           fi
12265           if test "X$found_dir" != "X"; then
12266                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12267             if test "X$found_so" != "X"; then
12268                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12269                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12270               else
12271                                                                                 haveit=
12272                 for x in $ltrpathdirs; do
12273                   if test "X$x" = "X$found_dir"; then
12274                     haveit=yes
12275                     break
12276                   fi
12277                 done
12278                 if test -z "$haveit"; then
12279                   ltrpathdirs="$ltrpathdirs $found_dir"
12280                 fi
12281                                 if test "$hardcode_direct" = yes; then
12282                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12283                 else
12284                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12285                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12286                                                             haveit=
12287                     for x in $rpathdirs; do
12288                       if test "X$x" = "X$found_dir"; then
12289                         haveit=yes
12290                         break
12291                       fi
12292                     done
12293                     if test -z "$haveit"; then
12294                       rpathdirs="$rpathdirs $found_dir"
12295                     fi
12296                   else
12297                                                                                 haveit=
12298                     for x in $LDFLAGS $LIBINTL; do
12299
12300   acl_save_prefix="$prefix"
12301   prefix="$acl_final_prefix"
12302   acl_save_exec_prefix="$exec_prefix"
12303   exec_prefix="$acl_final_exec_prefix"
12304   eval x=\"$x\"
12305   exec_prefix="$acl_save_exec_prefix"
12306   prefix="$acl_save_prefix"
12307
12308                       if test "X$x" = "X-L$found_dir"; then
12309                         haveit=yes
12310                         break
12311                       fi
12312                     done
12313                     if test -z "$haveit"; then
12314                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12315                     fi
12316                     if test "$hardcode_minus_L" != no; then
12317                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12318                     else
12319                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12320                     fi
12321                   fi
12322                 fi
12323               fi
12324             else
12325               if test "X$found_a" != "X"; then
12326                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12327               else
12328                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12329               fi
12330             fi
12331                         additional_includedir=
12332             case "$found_dir" in
12333               */lib | */lib/)
12334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12335                 additional_includedir="$basedir/include"
12336                 ;;
12337             esac
12338             if test "X$additional_includedir" != "X"; then
12339                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12340                 haveit=
12341                 if test "X$additional_includedir" = "X/usr/local/include"; then
12342                   if test -n "$GCC"; then
12343                     case $host_os in
12344                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12345                     esac
12346                   fi
12347                 fi
12348                 if test -z "$haveit"; then
12349                   for x in $CPPFLAGS $INCINTL; do
12350
12351   acl_save_prefix="$prefix"
12352   prefix="$acl_final_prefix"
12353   acl_save_exec_prefix="$exec_prefix"
12354   exec_prefix="$acl_final_exec_prefix"
12355   eval x=\"$x\"
12356   exec_prefix="$acl_save_exec_prefix"
12357   prefix="$acl_save_prefix"
12358
12359                     if test "X$x" = "X-I$additional_includedir"; then
12360                       haveit=yes
12361                       break
12362                     fi
12363                   done
12364                   if test -z "$haveit"; then
12365                     if test -d "$additional_includedir"; then
12366                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12367                     fi
12368                   fi
12369                 fi
12370               fi
12371             fi
12372                         if test -n "$found_la"; then
12373                                                         save_libdir="$libdir"
12374               case "$found_la" in
12375                 */* | *\\*) . "$found_la" ;;
12376                 *) . "./$found_la" ;;
12377               esac
12378               libdir="$save_libdir"
12379                             for dep in $dependency_libs; do
12380                 case "$dep" in
12381                   -L*)
12382                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12383                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
12384                       haveit=
12385                       if test "X$additional_libdir" = "X/usr/local/lib"; then
12386                         if test -n "$GCC"; then
12387                           case $host_os in
12388                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12389                           esac
12390                         fi
12391                       fi
12392                       if test -z "$haveit"; then
12393                         haveit=
12394                         for x in $LDFLAGS $LIBINTL; do
12395
12396   acl_save_prefix="$prefix"
12397   prefix="$acl_final_prefix"
12398   acl_save_exec_prefix="$exec_prefix"
12399   exec_prefix="$acl_final_exec_prefix"
12400   eval x=\"$x\"
12401   exec_prefix="$acl_save_exec_prefix"
12402   prefix="$acl_save_prefix"
12403
12404                           if test "X$x" = "X-L$additional_libdir"; then
12405                             haveit=yes
12406                             break
12407                           fi
12408                         done
12409                         if test -z "$haveit"; then
12410                           if test -d "$additional_libdir"; then
12411                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12412                           fi
12413                         fi
12414                         haveit=
12415                         for x in $LDFLAGS $LTLIBINTL; do
12416
12417   acl_save_prefix="$prefix"
12418   prefix="$acl_final_prefix"
12419   acl_save_exec_prefix="$exec_prefix"
12420   exec_prefix="$acl_final_exec_prefix"
12421   eval x=\"$x\"
12422   exec_prefix="$acl_save_exec_prefix"
12423   prefix="$acl_save_prefix"
12424
12425                           if test "X$x" = "X-L$additional_libdir"; then
12426                             haveit=yes
12427                             break
12428                           fi
12429                         done
12430                         if test -z "$haveit"; then
12431                           if test -d "$additional_libdir"; then
12432                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12433                           fi
12434                         fi
12435                       fi
12436                     fi
12437                     ;;
12438                   -R*)
12439                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
12440                     if test "$enable_rpath" != no; then
12441                                                                   haveit=
12442                       for x in $rpathdirs; do
12443                         if test "X$x" = "X$dir"; then
12444                           haveit=yes
12445                           break
12446                         fi
12447                       done
12448                       if test -z "$haveit"; then
12449                         rpathdirs="$rpathdirs $dir"
12450                       fi
12451                                                                   haveit=
12452                       for x in $ltrpathdirs; do
12453                         if test "X$x" = "X$dir"; then
12454                           haveit=yes
12455                           break
12456                         fi
12457                       done
12458                       if test -z "$haveit"; then
12459                         ltrpathdirs="$ltrpathdirs $dir"
12460                       fi
12461                     fi
12462                     ;;
12463                   -l*)
12464                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12465                     ;;
12466                   *.la)
12467                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12468                     ;;
12469                   *)
12470                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12471                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12472                     ;;
12473                 esac
12474               done
12475             fi
12476           else
12477                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12478             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12479           fi
12480         fi
12481       fi
12482     done
12483   done
12484   if test "X$rpathdirs" != "X"; then
12485     if test -n "$hardcode_libdir_separator"; then
12486                         alldirs=
12487       for found_dir in $rpathdirs; do
12488         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12489       done
12490             acl_save_libdir="$libdir"
12491       libdir="$alldirs"
12492       eval flag=\"$hardcode_libdir_flag_spec\"
12493       libdir="$acl_save_libdir"
12494       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12495     else
12496             for found_dir in $rpathdirs; do
12497         acl_save_libdir="$libdir"
12498         libdir="$found_dir"
12499         eval flag=\"$hardcode_libdir_flag_spec\"
12500         libdir="$acl_save_libdir"
12501         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12502       done
12503     fi
12504   fi
12505   if test "X$ltrpathdirs" != "X"; then
12506             for found_dir in $ltrpathdirs; do
12507       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12508     done
12509   fi
12510
12511           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
12512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
12513 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   gt_save_CPPFLAGS="$CPPFLAGS"
12517             CPPFLAGS="$CPPFLAGS $INCINTL"
12518             gt_save_LIBS="$LIBS"
12519             LIBS="$LIBS $LIBINTL"
12520                         cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 #include <libintl.h>
12527 extern int _nl_msg_cat_cntr;
12528 extern
12529 #ifdef __cplusplus
12530 "C"
12531 #endif
12532 const char *_nl_expand_alias (const char *);
12533 int
12534 main ()
12535 {
12536 bindtextdomain ("", "");
12537 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12544   (eval $ac_link) 2>conftest.er1
12545   ac_status=$?
12546   grep -v '^ *+' conftest.er1 >conftest.err
12547   rm -f conftest.er1
12548   cat conftest.err >&5
12549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } &&
12551          { ac_try='test -z "$ac_c_werror_flag"
12552                          || test ! -s conftest.err'
12553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554   (eval $ac_try) 2>&5
12555   ac_status=$?
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); }; } &&
12558          { ac_try='test -s conftest$ac_exeext'
12559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12560   (eval $ac_try) 2>&5
12561   ac_status=$?
12562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12563   (exit $ac_status); }; }; then
12564   gt_cv_func_gnugettext1_libintl=yes
12565 else
12566   echo "$as_me: failed program was:" >&5
12567 sed 's/^/| /' conftest.$ac_ext >&5
12568
12569 gt_cv_func_gnugettext1_libintl=no
12570 fi
12571 rm -f conftest.err conftest.$ac_objext \
12572       conftest$ac_exeext conftest.$ac_ext
12573                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
12574               LIBS="$LIBS $LIBICONV"
12575               cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 #include <libintl.h>
12582 extern int _nl_msg_cat_cntr;
12583 extern
12584 #ifdef __cplusplus
12585 "C"
12586 #endif
12587 const char *_nl_expand_alias (const char *);
12588 int
12589 main ()
12590 {
12591 bindtextdomain ("", "");
12592 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12593   ;
12594   return 0;
12595 }
12596 _ACEOF
12597 rm -f conftest.$ac_objext conftest$ac_exeext
12598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12599   (eval $ac_link) 2>conftest.er1
12600   ac_status=$?
12601   grep -v '^ *+' conftest.er1 >conftest.err
12602   rm -f conftest.er1
12603   cat conftest.err >&5
12604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605   (exit $ac_status); } &&
12606          { ac_try='test -z "$ac_c_werror_flag"
12607                          || test ! -s conftest.err'
12608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609   (eval $ac_try) 2>&5
12610   ac_status=$?
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); }; } &&
12613          { ac_try='test -s conftest$ac_exeext'
12614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615   (eval $ac_try) 2>&5
12616   ac_status=$?
12617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618   (exit $ac_status); }; }; then
12619   LIBINTL="$LIBINTL $LIBICONV"
12620                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12621                 gt_cv_func_gnugettext1_libintl=yes
12622
12623 else
12624   echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12626
12627 fi
12628 rm -f conftest.err conftest.$ac_objext \
12629       conftest$ac_exeext conftest.$ac_ext
12630             fi
12631             CPPFLAGS="$gt_save_CPPFLAGS"
12632             LIBS="$gt_save_LIBS"
12633 fi
12634 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
12635 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
12636         fi
12637
12638                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
12639            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
12640                 && test "$PACKAGE" != gettext-runtime \
12641                 && test "$PACKAGE" != gettext-tools; }; then
12642           gt_use_preinstalled_gnugettext=yes
12643         else
12644                     LIBINTL=
12645           LTLIBINTL=
12646           INCINTL=
12647         fi
12648
12649
12650         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
12651                               nls_cv_use_gnu_gettext=yes
12652         fi
12653       fi
12654
12655       if test "$nls_cv_use_gnu_gettext" = "yes"; then
12656                 BUILD_INCLUDED_LIBINTL=yes
12657         USE_INCLUDED_LIBINTL=yes
12658         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
12659         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
12660         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
12661       fi
12662
12663       CATOBJEXT=
12664       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12665          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12666                 CATOBJEXT=.gmo
12667       fi
12668
12669
12670     if test -n "$INTL_MACOSX_LIBS"; then
12671       if test "$gt_use_preinstalled_gnugettext" = "yes" \
12672          || test "$nls_cv_use_gnu_gettext" = "yes"; then
12673                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12674         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12675       fi
12676     fi
12677
12678     if test "$gt_use_preinstalled_gnugettext" = "yes" \
12679        || test "$nls_cv_use_gnu_gettext" = "yes"; then
12680
12681 cat >>confdefs.h <<\_ACEOF
12682 #define ENABLE_NLS 1
12683 _ACEOF
12684
12685     else
12686       USE_NLS=no
12687     fi
12688   fi
12689
12690   echo "$as_me:$LINENO: checking whether to use NLS" >&5
12691 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
12692   echo "$as_me:$LINENO: result: $USE_NLS" >&5
12693 echo "${ECHO_T}$USE_NLS" >&6
12694   if test "$USE_NLS" = "yes"; then
12695     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
12696 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
12697     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12698       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12699         gt_source="external libintl"
12700       else
12701         gt_source="libc"
12702       fi
12703     else
12704       gt_source="included intl directory"
12705     fi
12706     echo "$as_me:$LINENO: result: $gt_source" >&5
12707 echo "${ECHO_T}$gt_source" >&6
12708   fi
12709
12710   if test "$USE_NLS" = "yes"; then
12711
12712     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12713       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
12714         echo "$as_me:$LINENO: checking how to link with libintl" >&5
12715 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
12716         echo "$as_me:$LINENO: result: $LIBINTL" >&5
12717 echo "${ECHO_T}$LIBINTL" >&6
12718
12719   for element in $INCINTL; do
12720     haveit=
12721     for x in $CPPFLAGS; do
12722
12723   acl_save_prefix="$prefix"
12724   prefix="$acl_final_prefix"
12725   acl_save_exec_prefix="$exec_prefix"
12726   exec_prefix="$acl_final_exec_prefix"
12727   eval x=\"$x\"
12728   exec_prefix="$acl_save_exec_prefix"
12729   prefix="$acl_save_prefix"
12730
12731       if test "X$x" = "X$element"; then
12732         haveit=yes
12733         break
12734       fi
12735     done
12736     if test -z "$haveit"; then
12737       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12738     fi
12739   done
12740
12741       fi
12742
12743
12744 cat >>confdefs.h <<\_ACEOF
12745 #define HAVE_GETTEXT 1
12746 _ACEOF
12747
12748
12749 cat >>confdefs.h <<\_ACEOF
12750 #define HAVE_DCGETTEXT 1
12751 _ACEOF
12752
12753     fi
12754
12755         POSUB=po
12756   fi
12757
12758
12759             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
12760       BUILD_INCLUDED_LIBINTL=yes
12761     fi
12762
12763
12764
12765
12766
12767         nls_cv_header_intl=
12768     nls_cv_header_libgt=
12769
12770         DATADIRNAME=share
12771
12772
12773         INSTOBJEXT=.mo
12774
12775
12776         GENCAT=gencat
12777
12778
12779         INTLOBJS=
12780     if test "$USE_INCLUDED_LIBINTL" = yes; then
12781       INTLOBJS="\$(GETTOBJS)"
12782     fi
12783
12784
12785         INTL_LIBTOOL_SUFFIX_PREFIX=
12786
12787
12788
12789     INTLLIBS="$LIBINTL"
12790
12791
12792
12793
12794
12795
12796 fi
12797
12798
12799 support_mysql=no
12800 support_sqlite=no
12801 support_sqlite3=no
12802 support_postgresql=no
12803 support_smartalloc=yes
12804 support_readline=yes
12805 support_conio=yes
12806 support_gnome=no
12807 support_bat=no
12808 support_wx_console=no
12809 support_tls=no
12810 support_crypto=no
12811 gnome_version=
12812 wx_version=
12813 support_static_tools=no
12814 support_static_fd=no
12815 support_static_sd=no
12816 support_static_dir=no
12817 support_static_cons=no
12818 support_python=no
12819 build_client_only=no
12820 build_dird=yes
12821 build_stored=yes
12822 cats=
12823 db_type=Internal
12824 DB_TYPE=bdb
12825
12826
12827 # -------------------------------------------
12828 # gnome (default off)
12829 # -------------------------------------------
12830 # Check whether --enable-gnome or --disable-gnome was given.
12831 if test "${enable_gnome+set}" = set; then
12832   enableval="$enable_gnome"
12833   if test x$enableval = xyes; then
12834     support_gnome=yes
12835   fi
12836 fi;
12837
12838 GNOME_DIR=
12839 if test x$support_gnome = xyes; then
12840   abc=`$PKGCONFIG --exists libgnomeui-2.0`
12841   pkg=$?
12842   if test $pkg = 0; then
12843      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
12844      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12845      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
12846      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
12847
12848
12849
12850
12851      GNOME_DIR=src/gnome2-console
12852      gnome_version="Version 2.x"
12853   else
12854      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
12855 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
12856    { (exit 1); exit 1; }; }
12857   fi
12858 fi
12859
12860
12861 # -------------------------------------------
12862 # bat (default off)
12863 # -------------------------------------------
12864 # Check whether --enable-bat or --disable-bat was given.
12865 if test "${enable_bat+set}" = set; then
12866   enableval="$enable_bat"
12867   if test x$enableval = xyes; then
12868
12869 cat >>confdefs.h <<\_ACEOF
12870 #define HAVE_BAT 1
12871 _ACEOF
12872
12873     support_bat=yes
12874   fi
12875 fi;
12876
12877 BAT_DIR=
12878 if test x$support_bat = xyes; then
12879   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
12880   pkg=$?
12881   if test $pkg = 0; then
12882      BAT_DIR=src/qt-console
12883   else
12884      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
12885 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
12886    { (exit 1); exit 1; }; }
12887   fi
12888 fi
12889
12890 #
12891 #  If bat is enabled, we need the qwt library
12892 got_qwt=no
12893 QWT_INC=
12894 QWT_LDFLAGS=
12895 if test x$support_bat = xyes; then
12896    echo "$as_me:$LINENO: checking for qwt support" >&5
12897 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6
12898
12899 # Check whether --with-qwt or --without-qwt was given.
12900 if test "${with_qwt+set}" = set; then
12901   withval="$with_qwt"
12902
12903         case "$with_qwt" in
12904         no)
12905           ;;
12906         yes|*)
12907           if test -f ${with_qwt}/include/qwt.h; then
12908              QWT_INC="${with_qwt}/include"
12909              QWT_LDFLAGS="-L${with_qwt}/lib"
12910           fi
12911           ;;
12912         esac
12913
12914
12915 fi;
12916 #
12917 # Search in standard places, or --with-qwt not specified
12918 #
12919    if test x$QWT_INC = x; then
12920       for root in /usr /usr/local; do
12921          for ver in qwt qwt5 qwt-qt4; do
12922             if test -f ${root}/include/${ver}/qwt.h; then
12923                QWT_INC="${root}/include/${ver}"
12924                if test -d ${root}/lib64/; then
12925                   QWT_LDFLAGS="-L${root}/lib64"
12926                else
12927                   QWT_LDFLAGS="-L${root}/lib"
12928                fi
12929                got_qwt=yes
12930                break;
12931             fi
12932          done
12933       done
12934    fi
12935    if test x$QWT_INC = x; then
12936       echo "$as_me:$LINENO: result: no" >&5
12937 echo "${ECHO_T}no" >&6
12938       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
12939 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
12940    { (exit 1); exit 1; }; }
12941       BAT_DIR=
12942       support_bat=no
12943    else
12944       echo "$as_me:$LINENO: result: yes" >&5
12945 echo "${ECHO_T}yes" >&6
12946    fi
12947 fi
12948
12949
12950
12951
12952
12953
12954 # -------------------------------------------
12955 # bwx-console (default off)
12956 # -------------------------------------------
12957 # Check whether --enable-bwx-console or --disable-bwx-console was given.
12958 if test "${enable_bwx_console+set}" = set; then
12959   enableval="$enable_bwx_console"
12960   if test x$enableval = xyes; then
12961     support_wx_console=yes
12962   fi
12963 fi;
12964
12965 WX_DIR=
12966 if test x$support_wx_console = xyes; then
12967   abc=`$WXCONFIG $WXFLAGS --cppflags`
12968   pkg=$?
12969   if test $pkg = 0; then
12970      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
12971      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
12972      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
12973
12974
12975
12976      WX_DIR=src/wx-console
12977   else
12978      echo " "
12979      echo "wx-config program not found. bwx-console disabled."
12980      echo " "
12981      support_wx_console=no
12982   fi
12983 fi
12984
12985
12986
12987 # -------------------------------------------
12988 # tray-monitor (default off)
12989 # -------------------------------------------
12990 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
12991 if test "${enable_tray_monitor+set}" = set; then
12992   enableval="$enable_tray_monitor"
12993   if test x$enableval = xyes; then
12994     support_tray_monitor=yes
12995   fi
12996 fi;
12997
12998 TRAY_MONITOR_DIR=
12999 if test x$support_tray_monitor = xyes; then
13000   abc=`$PKGCONFIG --exists gtk+-2.0`
13001   pkg=$?
13002   if test $pkg = 0; then
13003      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13004      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13005
13006
13007      TRAY_MONITOR_DIR=src/tray-monitor
13008      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13009      pkg=$?
13010      if test $pkg = 0; then
13011
13012 cat >>confdefs.h <<\_ACEOF
13013 #define HAVE_GTK_2_4 1
13014 _ACEOF
13015
13016      fi
13017   fi
13018 fi
13019
13020
13021 # -------------------------------------------
13022 # smartalloc (default off)
13023 # -------------------------------------------
13024 # Check whether --enable-smartalloc or --disable-smartalloc was given.
13025 if test "${enable_smartalloc+set}" = set; then
13026   enableval="$enable_smartalloc"
13027   if test x$enableval = xno; then
13028     support_smartalloc=no
13029   fi
13030 fi;
13031
13032 if test x$support_smartalloc = xyes; then
13033
13034 cat >>confdefs.h <<\_ACEOF
13035 #define SMARTALLOC 1
13036 _ACEOF
13037
13038 fi
13039
13040 # -------------------------------------------
13041 # static-tools (default off)
13042 # -------------------------------------------
13043 # Check whether --enable-static-tools or --disable-static-tools was given.
13044 if test "${enable_static_tools+set}" = set; then
13045   enableval="$enable_static_tools"
13046   if test x$enableval = xyes; then
13047      support_static_tools=yes
13048    fi
13049 fi;
13050
13051 TTOOL_LDFLAGS=
13052 if test x$support_static_tools = xyes; then
13053    TTOOL_LDFLAGS="-static"
13054 fi
13055
13056
13057 # -------------------------------------------
13058 # static-fd    (default off)
13059 # -------------------------------------------
13060 # Check whether --enable-static-fd or --disable-static-fd was given.
13061 if test "${enable_static_fd+set}" = set; then
13062   enableval="$enable_static_fd"
13063   if test x$enableval = xyes; then
13064      support_static_fd=yes
13065    fi
13066 fi;
13067
13068 STATIC_FD=
13069 if test x$support_static_fd = xyes; then
13070    STATIC_FD="static-bacula-fd"
13071 fi
13072
13073
13074 # -------------------------------------------
13075 # static-sd    (default off)
13076 # -------------------------------------------
13077 # Check whether --enable-static-sd or --disable-static-sd was given.
13078 if test "${enable_static_sd+set}" = set; then
13079   enableval="$enable_static_sd"
13080   if test x$enableval = xyes; then
13081      support_static_sd=yes
13082    fi
13083 fi;
13084
13085 STATIC_SD=
13086 if test x$support_static_sd = xyes; then
13087    STATIC_SD="static-bacula-sd"
13088 fi
13089
13090
13091 # -------------------------------------------
13092 # static-dir   (default off)
13093 # -------------------------------------------
13094 # Check whether --enable-static-dir or --disable-static-dir was given.
13095 if test "${enable_static_dir+set}" = set; then
13096   enableval="$enable_static_dir"
13097   if test x$enableval = xyes; then
13098      support_static_dir=yes
13099    fi
13100 fi;
13101
13102 STATIC_DIR=
13103 if test x$support_static_dir = xyes; then
13104    STATIC_DIR="static-bacula-dir"
13105 fi
13106
13107
13108 # -------------------------------------------
13109 # static-cons  (default off)
13110 # -------------------------------------------
13111 # Check whether --enable-static-cons or --disable-static-cons was given.
13112 if test "${enable_static_cons+set}" = set; then
13113   enableval="$enable_static_cons"
13114   if test x$enableval = xyes; then
13115      support_static_cons=yes
13116    fi
13117 fi;
13118
13119 STATIC_CONS=
13120 STATIC_GNOME_CONS=
13121 STATIC_WX_CONS=
13122 if test x$support_static_cons = xyes; then
13123    STATIC_CONS="static-bconsole"
13124    STATIC_GNOME_CONS="static-bgnome-console"
13125    STATIC_WX_CONS="static-bwx-console"
13126 fi
13127
13128
13129
13130
13131 # -------------------------------------------
13132 # client_only  (default off)
13133 # -------------------------------------------
13134 # Check whether --enable-client-only or --disable-client-only was given.
13135 if test "${enable_client_only+set}" = set; then
13136   enableval="$enable_client_only"
13137   if test x$enableval = xyes; then
13138       build_client_only=yes
13139       db_type=None
13140       DB_TYPE=none
13141    fi
13142 fi;
13143 if test x$build_client_only = xno; then
13144    ALL_DIRS="subdirs"
13145 else
13146    ALL_DIRS=""
13147 fi
13148
13149
13150 # -------------------------------------------
13151 # director  (default on)
13152 # -------------------------------------------
13153 # Check whether --enable-build-dird or --disable-build-dird was given.
13154 if test "${enable_build_dird+set}" = set; then
13155   enableval="$enable_build_dird"
13156   if test x$enableval = xno; then
13157       build_dird=no
13158    fi
13159 fi;
13160 if test x$build_dird = xyes; then
13161    DIRD_DIR="src/dird"
13162    DIR_TOOLS="DIRTOOLS"
13163 else
13164    DIRD_DIR=""
13165    DIR_TOOLS="NODIRTOOLS"
13166 fi
13167
13168
13169
13170 # -------------------------------------------
13171 # stored  (default on)
13172 # -------------------------------------------
13173 # Check whether --enable-build-stored or --disable-build-stored was given.
13174 if test "${enable_build_stored+set}" = set; then
13175   enableval="$enable_build_stored"
13176   if test x$enableval = xno; then
13177       build_stored=no
13178    fi
13179 fi;
13180 if test x$build_stored = xyes; then
13181    STORED_DIR="src/stored"
13182 else
13183    STORED_DIR=""
13184 fi
13185
13186
13187 # ---------------------------------------------------
13188 # Check for conio (Bacula readline substitute)(
13189 # ---------------------------------------------------
13190 # this allows you to turn it completely off
13191 # Check whether --enable-conio or --disable-conio was given.
13192 if test "${enable_conio+set}" = set; then
13193   enableval="$enable_conio"
13194   if test x$enableval = xno; then
13195      support_conio=no
13196   fi
13197
13198 fi;
13199
13200
13201 # ---------------------------------------------------
13202 # Check for IPv6 support
13203 # ---------------------------------------------------
13204 # this allows you to turn it completely off
13205 support_ipv6=yes
13206 # Check whether --enable-ipv6 or --disable-ipv6 was given.
13207 if test "${enable_ipv6+set}" = set; then
13208   enableval="$enable_ipv6"
13209   if test x$enableval = xno; then
13210      support_ipv6=no
13211   fi
13212
13213 fi;
13214
13215 if test x$support_ipv6 = xyes; then
13216     cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222  #include <sys/types.h>
13223 #include <sys/socket.h>
13224 #include <netinet/in.h>
13225 int
13226 main ()
13227 {
13228 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13229   ;
13230   return 0;
13231 }
13232 _ACEOF
13233 rm -f conftest.$ac_objext conftest$ac_exeext
13234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13235   (eval $ac_link) 2>conftest.er1
13236   ac_status=$?
13237   grep -v '^ *+' conftest.er1 >conftest.err
13238   rm -f conftest.er1
13239   cat conftest.err >&5
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); } &&
13242          { ac_try='test -z "$ac_c_werror_flag"
13243                          || test ! -s conftest.err'
13244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245   (eval $ac_try) 2>&5
13246   ac_status=$?
13247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); }; } &&
13249          { ac_try='test -s conftest$ac_exeext'
13250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251   (eval $ac_try) 2>&5
13252   ac_status=$?
13253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254   (exit $ac_status); }; }; then
13255   support_ipv6=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 support_ipv6=no
13261 fi
13262 rm -f conftest.err conftest.$ac_objext \
13263       conftest$ac_exeext conftest.$ac_ext
13264 fi
13265
13266 if test x$support_ipv6 = xyes; then
13267
13268 cat >>confdefs.h <<\_ACEOF
13269 #define HAVE_IPV6 1
13270 _ACEOF
13271
13272 fi
13273
13274
13275
13276 got_conio="no"
13277 if test x$support_conio = xyes; then
13278    if test "${ac_cv_header_termcap_h+set}" = set; then
13279   echo "$as_me:$LINENO: checking for termcap.h" >&5
13280 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13281 if test "${ac_cv_header_termcap_h+set}" = set; then
13282   echo $ECHO_N "(cached) $ECHO_C" >&6
13283 fi
13284 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13285 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13286 else
13287   # Is the header compilable?
13288 echo "$as_me:$LINENO: checking termcap.h usability" >&5
13289 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h.  */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h.  */
13296 $ac_includes_default
13297 #include <termcap.h>
13298 _ACEOF
13299 rm -f conftest.$ac_objext
13300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13301   (eval $ac_compile) 2>conftest.er1
13302   ac_status=$?
13303   grep -v '^ *+' conftest.er1 >conftest.err
13304   rm -f conftest.er1
13305   cat conftest.err >&5
13306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13307   (exit $ac_status); } &&
13308          { ac_try='test -z "$ac_c_werror_flag"
13309                          || test ! -s conftest.err'
13310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311   (eval $ac_try) 2>&5
13312   ac_status=$?
13313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314   (exit $ac_status); }; } &&
13315          { ac_try='test -s conftest.$ac_objext'
13316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13317   (eval $ac_try) 2>&5
13318   ac_status=$?
13319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320   (exit $ac_status); }; }; then
13321   ac_header_compiler=yes
13322 else
13323   echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_compiler=no
13327 fi
13328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13329 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13330 echo "${ECHO_T}$ac_header_compiler" >&6
13331
13332 # Is the header present?
13333 echo "$as_me:$LINENO: checking termcap.h presence" >&5
13334 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
13335 cat >conftest.$ac_ext <<_ACEOF
13336 /* confdefs.h.  */
13337 _ACEOF
13338 cat confdefs.h >>conftest.$ac_ext
13339 cat >>conftest.$ac_ext <<_ACEOF
13340 /* end confdefs.h.  */
13341 #include <termcap.h>
13342 _ACEOF
13343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13344   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } >/dev/null; then
13351   if test -s conftest.err; then
13352     ac_cpp_err=$ac_c_preproc_warn_flag
13353     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13354   else
13355     ac_cpp_err=
13356   fi
13357 else
13358   ac_cpp_err=yes
13359 fi
13360 if test -z "$ac_cpp_err"; then
13361   ac_header_preproc=yes
13362 else
13363   echo "$as_me: failed program was:" >&5
13364 sed 's/^/| /' conftest.$ac_ext >&5
13365
13366   ac_header_preproc=no
13367 fi
13368 rm -f conftest.err conftest.$ac_ext
13369 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 echo "${ECHO_T}$ac_header_preproc" >&6
13371
13372 # So?  What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13374   yes:no: )
13375     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13376 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13378 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13379     ac_header_preproc=yes
13380     ;;
13381   no:yes:* )
13382     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13383 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13384     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
13385 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
13386     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
13387 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
13388     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
13389 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13390     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
13391 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
13392     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
13393 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
13394     (
13395       cat <<\_ASBOX
13396 ## ------------------------------------------ ##
13397 ## Report this to the AC_PACKAGE_NAME lists.  ##
13398 ## ------------------------------------------ ##
13399 _ASBOX
13400     ) |
13401       sed "s/^/$as_me: WARNING:     /" >&2
13402     ;;
13403 esac
13404 echo "$as_me:$LINENO: checking for termcap.h" >&5
13405 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
13406 if test "${ac_cv_header_termcap_h+set}" = set; then
13407   echo $ECHO_N "(cached) $ECHO_C" >&6
13408 else
13409   ac_cv_header_termcap_h=$ac_header_preproc
13410 fi
13411 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
13413
13414 fi
13415 if test $ac_cv_header_termcap_h = yes; then
13416    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
13417 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
13418 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
13419   echo $ECHO_N "(cached) $ECHO_C" >&6
13420 else
13421   ac_check_lib_save_LIBS=$LIBS
13422 LIBS="-ltermcap  $LIBS"
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h.  */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h.  */
13429
13430 /* Override any gcc2 internal prototype to avoid an error.  */
13431 #ifdef __cplusplus
13432 extern "C"
13433 #endif
13434 /* We use char because int might match the return type of a gcc2
13435    builtin and then its argument prototype would still apply.  */
13436 char tgetent ();
13437 int
13438 main ()
13439 {
13440 tgetent ();
13441   ;
13442   return 0;
13443 }
13444 _ACEOF
13445 rm -f conftest.$ac_objext conftest$ac_exeext
13446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13447   (eval $ac_link) 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); } &&
13454          { ac_try='test -z "$ac_c_werror_flag"
13455                          || test ! -s conftest.err'
13456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457   (eval $ac_try) 2>&5
13458   ac_status=$?
13459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460   (exit $ac_status); }; } &&
13461          { ac_try='test -s conftest$ac_exeext'
13462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463   (eval $ac_try) 2>&5
13464   ac_status=$?
13465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); }; }; then
13467   ac_cv_lib_termcap_tgetent=yes
13468 else
13469   echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13471
13472 ac_cv_lib_termcap_tgetent=no
13473 fi
13474 rm -f conftest.err conftest.$ac_objext \
13475       conftest$ac_exeext conftest.$ac_ext
13476 LIBS=$ac_check_lib_save_LIBS
13477 fi
13478 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
13479 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
13480 if test $ac_cv_lib_termcap_tgetent = yes; then
13481    CONS_LIBS="-ltermcap"
13482          CONS_OBJ="conio.o"
13483          CONS_SRC="conio.c"
13484          got_conio="yes"
13485          support_readline=no
13486
13487 cat >>confdefs.h <<\_ACEOF
13488 #define HAVE_CONIO 1
13489 _ACEOF
13490
13491
13492 else
13493    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
13494 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
13495 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
13496   echo $ECHO_N "(cached) $ECHO_C" >&6
13497 else
13498   ac_check_lib_save_LIBS=$LIBS
13499 LIBS="-lncurses  $LIBS"
13500 cat >conftest.$ac_ext <<_ACEOF
13501 /* confdefs.h.  */
13502 _ACEOF
13503 cat confdefs.h >>conftest.$ac_ext
13504 cat >>conftest.$ac_ext <<_ACEOF
13505 /* end confdefs.h.  */
13506
13507 /* Override any gcc2 internal prototype to avoid an error.  */
13508 #ifdef __cplusplus
13509 extern "C"
13510 #endif
13511 /* We use char because int might match the return type of a gcc2
13512    builtin and then its argument prototype would still apply.  */
13513 char tgetent ();
13514 int
13515 main ()
13516 {
13517 tgetent ();
13518   ;
13519   return 0;
13520 }
13521 _ACEOF
13522 rm -f conftest.$ac_objext conftest$ac_exeext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13524   (eval $ac_link) 2>conftest.er1
13525   ac_status=$?
13526   grep -v '^ *+' conftest.er1 >conftest.err
13527   rm -f conftest.er1
13528   cat conftest.err >&5
13529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530   (exit $ac_status); } &&
13531          { ac_try='test -z "$ac_c_werror_flag"
13532                          || test ! -s conftest.err'
13533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534   (eval $ac_try) 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; } &&
13538          { ac_try='test -s conftest$ac_exeext'
13539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540   (eval $ac_try) 2>&5
13541   ac_status=$?
13542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543   (exit $ac_status); }; }; then
13544   ac_cv_lib_ncurses_tgetent=yes
13545 else
13546   echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 ac_cv_lib_ncurses_tgetent=no
13550 fi
13551 rm -f conftest.err conftest.$ac_objext \
13552       conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13554 fi
13555 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
13556 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
13557 if test $ac_cv_lib_ncurses_tgetent = yes; then
13558    CONS_LIBS="-lncurses"
13559            CONS_OBJ="conio.o"
13560            CONS_SRC="conio.c"
13561            got_conio="yes"
13562            support_readline=no
13563
13564 cat >>confdefs.h <<\_ACEOF
13565 #define HAVE_CONIO 1
13566 _ACEOF
13567
13568
13569 fi
13570
13571
13572 fi
13573
13574
13575 else
13576
13577
13578 for ac_header in curses.h
13579 do
13580 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13582   echo "$as_me:$LINENO: checking for $ac_header" >&5
13583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13584 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585   echo $ECHO_N "(cached) $ECHO_C" >&6
13586 fi
13587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13588 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13589 else
13590   # Is the header compilable?
13591 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13593 cat >conftest.$ac_ext <<_ACEOF
13594 /* confdefs.h.  */
13595 _ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h.  */
13599 $ac_includes_default
13600 #include <$ac_header>
13601 _ACEOF
13602 rm -f conftest.$ac_objext
13603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13604   (eval $ac_compile) 2>conftest.er1
13605   ac_status=$?
13606   grep -v '^ *+' conftest.er1 >conftest.err
13607   rm -f conftest.er1
13608   cat conftest.err >&5
13609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13610   (exit $ac_status); } &&
13611          { ac_try='test -z "$ac_c_werror_flag"
13612                          || test ! -s conftest.err'
13613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614   (eval $ac_try) 2>&5
13615   ac_status=$?
13616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); }; } &&
13618          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13624   ac_header_compiler=yes
13625 else
13626   echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629 ac_header_compiler=no
13630 fi
13631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13632 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13633 echo "${ECHO_T}$ac_header_compiler" >&6
13634
13635 # Is the header present?
13636 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13637 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13639 /* confdefs.h.  */
13640 _ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h.  */
13644 #include <$ac_header>
13645 _ACEOF
13646 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13647   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13648   ac_status=$?
13649   grep -v '^ *+' conftest.er1 >conftest.err
13650   rm -f conftest.er1
13651   cat conftest.err >&5
13652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653   (exit $ac_status); } >/dev/null; then
13654   if test -s conftest.err; then
13655     ac_cpp_err=$ac_c_preproc_warn_flag
13656     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13657   else
13658     ac_cpp_err=
13659   fi
13660 else
13661   ac_cpp_err=yes
13662 fi
13663 if test -z "$ac_cpp_err"; then
13664   ac_header_preproc=yes
13665 else
13666   echo "$as_me: failed program was:" >&5
13667 sed 's/^/| /' conftest.$ac_ext >&5
13668
13669   ac_header_preproc=no
13670 fi
13671 rm -f conftest.err conftest.$ac_ext
13672 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13673 echo "${ECHO_T}$ac_header_preproc" >&6
13674
13675 # So?  What about this header?
13676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13677   yes:no: )
13678     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13680     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13682     ac_header_preproc=yes
13683     ;;
13684   no:yes:* )
13685     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13687     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13688 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13692 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13697     (
13698       cat <<\_ASBOX
13699 ## ------------------------------------------ ##
13700 ## Report this to the AC_PACKAGE_NAME lists.  ##
13701 ## ------------------------------------------ ##
13702 _ASBOX
13703     ) |
13704       sed "s/^/$as_me: WARNING:     /" >&2
13705     ;;
13706 esac
13707 echo "$as_me:$LINENO: checking for $ac_header" >&5
13708 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13710   echo $ECHO_N "(cached) $ECHO_C" >&6
13711 else
13712   eval "$as_ac_Header=\$ac_header_preproc"
13713 fi
13714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13716
13717 fi
13718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13719   cat >>confdefs.h <<_ACEOF
13720 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13721 _ACEOF
13722
13723 fi
13724
13725 done
13726
13727          echo "$as_me:$LINENO: checking for term.h" >&5
13728 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
13729 if test "${ac_cv_header_term_h+set}" = set; then
13730   echo $ECHO_N "(cached) $ECHO_C" >&6
13731 else
13732   cat >conftest.$ac_ext <<_ACEOF
13733 /* confdefs.h.  */
13734 _ACEOF
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h.  */
13738 #if HAVE_CURSES_H
13739 #include <curses.h>
13740 #endif
13741
13742
13743 #include <term.h>
13744 _ACEOF
13745 rm -f conftest.$ac_objext
13746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13747   (eval $ac_compile) 2>conftest.er1
13748   ac_status=$?
13749   grep -v '^ *+' conftest.er1 >conftest.err
13750   rm -f conftest.er1
13751   cat conftest.err >&5
13752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753   (exit $ac_status); } &&
13754          { ac_try='test -z "$ac_c_werror_flag"
13755                          || test ! -s conftest.err'
13756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757   (eval $ac_try) 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest.$ac_objext'
13762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763   (eval $ac_try) 2>&5
13764   ac_status=$?
13765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766   (exit $ac_status); }; }; then
13767   ac_cv_header_term_h=yes
13768 else
13769   echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13771
13772 ac_cv_header_term_h=no
13773 fi
13774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13775 fi
13776 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
13777 echo "${ECHO_T}$ac_cv_header_term_h" >&6
13778 if test $ac_cv_header_term_h = yes; then
13779    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
13780 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
13781 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
13782   echo $ECHO_N "(cached) $ECHO_C" >&6
13783 else
13784   ac_check_lib_save_LIBS=$LIBS
13785 LIBS="-lcurses  $LIBS"
13786 cat >conftest.$ac_ext <<_ACEOF
13787 /* confdefs.h.  */
13788 _ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h.  */
13792
13793 /* Override any gcc2 internal prototype to avoid an error.  */
13794 #ifdef __cplusplus
13795 extern "C"
13796 #endif
13797 /* We use char because int might match the return type of a gcc2
13798    builtin and then its argument prototype would still apply.  */
13799 char tgetent ();
13800 int
13801 main ()
13802 {
13803 tgetent ();
13804   ;
13805   return 0;
13806 }
13807 _ACEOF
13808 rm -f conftest.$ac_objext conftest$ac_exeext
13809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13810   (eval $ac_link) 2>conftest.er1
13811   ac_status=$?
13812   grep -v '^ *+' conftest.er1 >conftest.err
13813   rm -f conftest.er1
13814   cat conftest.err >&5
13815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816   (exit $ac_status); } &&
13817          { ac_try='test -z "$ac_c_werror_flag"
13818                          || test ! -s conftest.err'
13819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13820   (eval $ac_try) 2>&5
13821   ac_status=$?
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); }; } &&
13824          { ac_try='test -s conftest$ac_exeext'
13825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826   (eval $ac_try) 2>&5
13827   ac_status=$?
13828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829   (exit $ac_status); }; }; then
13830   ac_cv_lib_curses_tgetent=yes
13831 else
13832   echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.$ac_ext >&5
13834
13835 ac_cv_lib_curses_tgetent=no
13836 fi
13837 rm -f conftest.err conftest.$ac_objext \
13838       conftest$ac_exeext conftest.$ac_ext
13839 LIBS=$ac_check_lib_save_LIBS
13840 fi
13841 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
13842 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
13843 if test $ac_cv_lib_curses_tgetent = yes; then
13844    CONS_LIBS="-lcurses"
13845                    CONS_OBJ="conio.o"
13846                    CONS_SRC="conio.c"
13847                    got_conio="yes"
13848                    support_readline=no
13849
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_CONIO 1
13852 _ACEOF
13853
13854
13855 fi
13856
13857
13858 else
13859    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
13860 fi
13861
13862
13863
13864 fi
13865
13866
13867 fi
13868
13869
13870 # ---------------------------------------------------
13871 # Check for readline support/directory (default off)
13872 # ---------------------------------------------------
13873 # this allows you to turn it completely off
13874 # Check whether --enable-readline or --disable-readline was given.
13875 if test "${enable_readline+set}" = set; then
13876   enableval="$enable_readline"
13877   if test x$enableval = xno; then
13878     support_readline=no
13879   fi
13880 fi;
13881
13882 got_readline="no"
13883 READLINE_SRC=
13884 if test x$support_readline = xyes; then
13885
13886 # Check whether --with-readline or --without-readline was given.
13887 if test "${with_readline+set}" = set; then
13888   withval="$with_readline"
13889
13890         case "$with_readline" in
13891         no) : ;;
13892         yes|*)
13893           if test -f ${with_readline}/readline.h; then
13894              CONS_INC="-I${with_readline}"
13895              CONS_LDFLAGS="-L$with_readline"
13896           elif test -f ${with_readline}/include/readline/readline.h; then
13897              CONS_INC="-I${with_readline}/include/readline"
13898              CONS_LDFLAGS="-L${with_readline}/lib"
13899              with_readline="${with_readline}/include/readline"
13900           else
13901              with_readline="/usr/include/readline"
13902           fi
13903           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
13904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13905   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
13906 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
13907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13908   echo $ECHO_N "(cached) $ECHO_C" >&6
13909 fi
13910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13911 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13912 else
13913   # Is the header compilable?
13914 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
13915 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13917 /* confdefs.h.  */
13918 _ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h.  */
13922 $ac_includes_default
13923 #include <${with_readline}/readline.h>
13924 _ACEOF
13925 rm -f conftest.$ac_objext
13926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13927   (eval $ac_compile) 2>conftest.er1
13928   ac_status=$?
13929   grep -v '^ *+' conftest.er1 >conftest.err
13930   rm -f conftest.er1
13931   cat conftest.err >&5
13932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933   (exit $ac_status); } &&
13934          { ac_try='test -z "$ac_c_werror_flag"
13935                          || test ! -s conftest.err'
13936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937   (eval $ac_try) 2>&5
13938   ac_status=$?
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); }; } &&
13941          { ac_try='test -s conftest.$ac_objext'
13942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943   (eval $ac_try) 2>&5
13944   ac_status=$?
13945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946   (exit $ac_status); }; }; then
13947   ac_header_compiler=yes
13948 else
13949   echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13951
13952 ac_header_compiler=no
13953 fi
13954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13955 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13956 echo "${ECHO_T}$ac_header_compiler" >&6
13957
13958 # Is the header present?
13959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
13960 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
13961 cat >conftest.$ac_ext <<_ACEOF
13962 /* confdefs.h.  */
13963 _ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h.  */
13967 #include <${with_readline}/readline.h>
13968 _ACEOF
13969 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13970   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13971   ac_status=$?
13972   grep -v '^ *+' conftest.er1 >conftest.err
13973   rm -f conftest.er1
13974   cat conftest.err >&5
13975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976   (exit $ac_status); } >/dev/null; then
13977   if test -s conftest.err; then
13978     ac_cpp_err=$ac_c_preproc_warn_flag
13979     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13980   else
13981     ac_cpp_err=
13982   fi
13983 else
13984   ac_cpp_err=yes
13985 fi
13986 if test -z "$ac_cpp_err"; then
13987   ac_header_preproc=yes
13988 else
13989   echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13991
13992   ac_header_preproc=no
13993 fi
13994 rm -f conftest.err conftest.$ac_ext
13995 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13996 echo "${ECHO_T}$ac_header_preproc" >&6
13997
13998 # So?  What about this header?
13999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14000   yes:no: )
14001     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14002 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14003     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14004 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14005     ac_header_preproc=yes
14006     ;;
14007   no:yes:* )
14008     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14009 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14010     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14011 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14012     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14013 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14014     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14015 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14016     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14017 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14018     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14019 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14020     (
14021       cat <<\_ASBOX
14022 ## ------------------------------------------ ##
14023 ## Report this to the AC_PACKAGE_NAME lists.  ##
14024 ## ------------------------------------------ ##
14025 _ASBOX
14026     ) |
14027       sed "s/^/$as_me: WARNING:     /" >&2
14028     ;;
14029 esac
14030 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14031 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
14032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14033   echo $ECHO_N "(cached) $ECHO_C" >&6
14034 else
14035   eval "$as_ac_Header=\$ac_header_preproc"
14036 fi
14037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14038 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14039
14040 fi
14041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14042
14043 cat >>confdefs.h <<\_ACEOF
14044 #define HAVE_READLINE 1
14045 _ACEOF
14046
14047                CONS_LIBS="-lreadline -lhistory -ltermcap"
14048                got_readline="yes"
14049
14050 else
14051    echo " "
14052                echo "readline.h not found. readline turned off ..."
14053                echo " "
14054
14055
14056 fi
14057
14058
14059           ;;
14060         esac
14061
14062 else
14063
14064        # check for standard readline library
14065        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14066   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14067 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14068 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14069   echo $ECHO_N "(cached) $ECHO_C" >&6
14070 fi
14071 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14072 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14073 else
14074   # Is the header compilable?
14075 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14076 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
14077 cat >conftest.$ac_ext <<_ACEOF
14078 /* confdefs.h.  */
14079 _ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h.  */
14083 $ac_includes_default
14084 #include </usr/include/readline/readline.h>
14085 _ACEOF
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088   (eval $ac_compile) 2>conftest.er1
14089   ac_status=$?
14090   grep -v '^ *+' conftest.er1 >conftest.err
14091   rm -f conftest.er1
14092   cat conftest.err >&5
14093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094   (exit $ac_status); } &&
14095          { ac_try='test -z "$ac_c_werror_flag"
14096                          || test ! -s conftest.err'
14097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098   (eval $ac_try) 2>&5
14099   ac_status=$?
14100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101   (exit $ac_status); }; } &&
14102          { ac_try='test -s conftest.$ac_objext'
14103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14104   (eval $ac_try) 2>&5
14105   ac_status=$?
14106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107   (exit $ac_status); }; }; then
14108   ac_header_compiler=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113 ac_header_compiler=no
14114 fi
14115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6
14118
14119 # Is the header present?
14120 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14121 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
14122 cat >conftest.$ac_ext <<_ACEOF
14123 /* confdefs.h.  */
14124 _ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h.  */
14128 #include </usr/include/readline/readline.h>
14129 _ACEOF
14130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14132   ac_status=$?
14133   grep -v '^ *+' conftest.er1 >conftest.err
14134   rm -f conftest.er1
14135   cat conftest.err >&5
14136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137   (exit $ac_status); } >/dev/null; then
14138   if test -s conftest.err; then
14139     ac_cpp_err=$ac_c_preproc_warn_flag
14140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14141   else
14142     ac_cpp_err=
14143   fi
14144 else
14145   ac_cpp_err=yes
14146 fi
14147 if test -z "$ac_cpp_err"; then
14148   ac_header_preproc=yes
14149 else
14150   echo "$as_me: failed program was:" >&5
14151 sed 's/^/| /' conftest.$ac_ext >&5
14152
14153   ac_header_preproc=no
14154 fi
14155 rm -f conftest.err conftest.$ac_ext
14156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14157 echo "${ECHO_T}$ac_header_preproc" >&6
14158
14159 # So?  What about this header?
14160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14161   yes:no: )
14162     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14163 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14164     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14165 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14166     ac_header_preproc=yes
14167     ;;
14168   no:yes:* )
14169     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14170 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14171     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14172 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14173     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14174 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14175     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14176 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14177     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14178 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14179     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14180 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14181     (
14182       cat <<\_ASBOX
14183 ## ------------------------------------------ ##
14184 ## Report this to the AC_PACKAGE_NAME lists.  ##
14185 ## ------------------------------------------ ##
14186 _ASBOX
14187     ) |
14188       sed "s/^/$as_me: WARNING:     /" >&2
14189     ;;
14190 esac
14191 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14192 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
14193 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14197 fi
14198 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14199 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
14200
14201 fi
14202 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14203
14204 cat >>confdefs.h <<\_ACEOF
14205 #define HAVE_READLINE 1
14206 _ACEOF
14207
14208            got_readline="yes"
14209            CONS_INC="-I/usr/include/readline"
14210            CONS_LIBS="-lreadline -ltermcap"
14211
14212 else
14213
14214            # Did not find standard library, so try Bacula's default
14215             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14217   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14218 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14219 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14220   echo $ECHO_N "(cached) $ECHO_C" >&6
14221 fi
14222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14223 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14224 else
14225   # Is the header compilable?
14226 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14227 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
14228 cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h.  */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h.  */
14234 $ac_includes_default
14235 #include <${TOP_DIR}/depkgs/readline/readline.h>
14236 _ACEOF
14237 rm -f conftest.$ac_objext
14238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14239   (eval $ac_compile) 2>conftest.er1
14240   ac_status=$?
14241   grep -v '^ *+' conftest.er1 >conftest.err
14242   rm -f conftest.er1
14243   cat conftest.err >&5
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); } &&
14246          { ac_try='test -z "$ac_c_werror_flag"
14247                          || test ! -s conftest.err'
14248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249   (eval $ac_try) 2>&5
14250   ac_status=$?
14251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252   (exit $ac_status); }; } &&
14253          { ac_try='test -s conftest.$ac_objext'
14254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255   (eval $ac_try) 2>&5
14256   ac_status=$?
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); }; }; then
14259   ac_header_compiler=yes
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264 ac_header_compiler=no
14265 fi
14266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14268 echo "${ECHO_T}$ac_header_compiler" >&6
14269
14270 # Is the header present?
14271 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14272 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14274 /* confdefs.h.  */
14275 _ACEOF
14276 cat confdefs.h >>conftest.$ac_ext
14277 cat >>conftest.$ac_ext <<_ACEOF
14278 /* end confdefs.h.  */
14279 #include <${TOP_DIR}/depkgs/readline/readline.h>
14280 _ACEOF
14281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } >/dev/null; then
14289   if test -s conftest.err; then
14290     ac_cpp_err=$ac_c_preproc_warn_flag
14291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14292   else
14293     ac_cpp_err=
14294   fi
14295 else
14296   ac_cpp_err=yes
14297 fi
14298 if test -z "$ac_cpp_err"; then
14299   ac_header_preproc=yes
14300 else
14301   echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14303
14304   ac_header_preproc=no
14305 fi
14306 rm -f conftest.err conftest.$ac_ext
14307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6
14309
14310 # So?  What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312   yes:no: )
14313     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14317     ac_header_preproc=yes
14318     ;;
14319   no:yes:* )
14320     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14322     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14332     (
14333       cat <<\_ASBOX
14334 ## ------------------------------------------ ##
14335 ## Report this to the AC_PACKAGE_NAME lists.  ##
14336 ## ------------------------------------------ ##
14337 _ASBOX
14338     ) |
14339       sed "s/^/$as_me: WARNING:     /" >&2
14340     ;;
14341 esac
14342 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14343 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
14344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   eval "$as_ac_Header=\$ac_header_preproc"
14348 fi
14349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14351
14352 fi
14353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14354
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_READLINE 1
14357 _ACEOF
14358
14359                  got_readline="yes"
14360                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14361                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14362                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14363                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14364
14365 else
14366    echo " "
14367                 echo "readline.h not found. readline turned off ..."
14368                 echo " "
14369
14370
14371 fi
14372
14373
14374
14375
14376 fi
14377
14378
14379
14380
14381 fi;
14382 fi
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393 # Minimal stuff for readline Makefile configuration
14394 MAKE_SHELL=/bin/sh
14395
14396 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14397 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
14398 if test "${ac_cv_header_stat_broken+set}" = set; then
14399   echo $ECHO_N "(cached) $ECHO_C" >&6
14400 else
14401   cat >conftest.$ac_ext <<_ACEOF
14402 /* confdefs.h.  */
14403 _ACEOF
14404 cat confdefs.h >>conftest.$ac_ext
14405 cat >>conftest.$ac_ext <<_ACEOF
14406 /* end confdefs.h.  */
14407 #include <sys/types.h>
14408 #include <sys/stat.h>
14409
14410 #if defined(S_ISBLK) && defined(S_IFDIR)
14411 # if S_ISBLK (S_IFDIR)
14412 You lose.
14413 # endif
14414 #endif
14415
14416 #if defined(S_ISBLK) && defined(S_IFCHR)
14417 # if S_ISBLK (S_IFCHR)
14418 You lose.
14419 # endif
14420 #endif
14421
14422 #if defined(S_ISLNK) && defined(S_IFREG)
14423 # if S_ISLNK (S_IFREG)
14424 You lose.
14425 # endif
14426 #endif
14427
14428 #if defined(S_ISSOCK) && defined(S_IFREG)
14429 # if S_ISSOCK (S_IFREG)
14430 You lose.
14431 # endif
14432 #endif
14433
14434 _ACEOF
14435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14436   $EGREP "You lose" >/dev/null 2>&1; then
14437   ac_cv_header_stat_broken=yes
14438 else
14439   ac_cv_header_stat_broken=no
14440 fi
14441 rm -f conftest*
14442
14443 fi
14444 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14445 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
14446 if test $ac_cv_header_stat_broken = yes; then
14447
14448 cat >>confdefs.h <<\_ACEOF
14449 #define STAT_MACROS_BROKEN 1
14450 _ACEOF
14451
14452 fi
14453
14454
14455
14456
14457
14458
14459 ac_header_dirent=no
14460 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14461   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14462 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14463 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
14464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14465   echo $ECHO_N "(cached) $ECHO_C" >&6
14466 else
14467   cat >conftest.$ac_ext <<_ACEOF
14468 /* confdefs.h.  */
14469 _ACEOF
14470 cat confdefs.h >>conftest.$ac_ext
14471 cat >>conftest.$ac_ext <<_ACEOF
14472 /* end confdefs.h.  */
14473 #include <sys/types.h>
14474 #include <$ac_hdr>
14475
14476 int
14477 main ()
14478 {
14479 if ((DIR *) 0)
14480 return 0;
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14487   (eval $ac_compile) 2>conftest.er1
14488   ac_status=$?
14489   grep -v '^ *+' conftest.er1 >conftest.err
14490   rm -f conftest.er1
14491   cat conftest.err >&5
14492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493   (exit $ac_status); } &&
14494          { ac_try='test -z "$ac_c_werror_flag"
14495                          || test ! -s conftest.err'
14496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14497   (eval $ac_try) 2>&5
14498   ac_status=$?
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); }; } &&
14501          { ac_try='test -s conftest.$ac_objext'
14502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14503   (eval $ac_try) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); }; }; then
14507   eval "$as_ac_Header=yes"
14508 else
14509   echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 eval "$as_ac_Header=no"
14513 fi
14514 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14515 fi
14516 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14517 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14519   cat >>confdefs.h <<_ACEOF
14520 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14521 _ACEOF
14522
14523 ac_header_dirent=$ac_hdr; break
14524 fi
14525
14526 done
14527 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14528 if test $ac_header_dirent = dirent.h; then
14529   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14530 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14531 if test "${ac_cv_search_opendir+set}" = set; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534   ac_func_search_save_LIBS=$LIBS
14535 ac_cv_search_opendir=no
14536 cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542
14543 /* Override any gcc2 internal prototype to avoid an error.  */
14544 #ifdef __cplusplus
14545 extern "C"
14546 #endif
14547 /* We use char because int might match the return type of a gcc2
14548    builtin and then its argument prototype would still apply.  */
14549 char opendir ();
14550 int
14551 main ()
14552 {
14553 opendir ();
14554   ;
14555   return 0;
14556 }
14557 _ACEOF
14558 rm -f conftest.$ac_objext conftest$ac_exeext
14559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14560   (eval $ac_link) 2>conftest.er1
14561   ac_status=$?
14562   grep -v '^ *+' conftest.er1 >conftest.err
14563   rm -f conftest.er1
14564   cat conftest.err >&5
14565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566   (exit $ac_status); } &&
14567          { ac_try='test -z "$ac_c_werror_flag"
14568                          || test ! -s conftest.err'
14569   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570   (eval $ac_try) 2>&5
14571   ac_status=$?
14572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573   (exit $ac_status); }; } &&
14574          { ac_try='test -s conftest$ac_exeext'
14575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14576   (eval $ac_try) 2>&5
14577   ac_status=$?
14578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579   (exit $ac_status); }; }; then
14580   ac_cv_search_opendir="none required"
14581 else
14582   echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14584
14585 fi
14586 rm -f conftest.err conftest.$ac_objext \
14587       conftest$ac_exeext conftest.$ac_ext
14588 if test "$ac_cv_search_opendir" = no; then
14589   for ac_lib in dir; do
14590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14591     cat >conftest.$ac_ext <<_ACEOF
14592 /* confdefs.h.  */
14593 _ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h.  */
14597
14598 /* Override any gcc2 internal prototype to avoid an error.  */
14599 #ifdef __cplusplus
14600 extern "C"
14601 #endif
14602 /* We use char because int might match the return type of a gcc2
14603    builtin and then its argument prototype would still apply.  */
14604 char opendir ();
14605 int
14606 main ()
14607 {
14608 opendir ();
14609   ;
14610   return 0;
14611 }
14612 _ACEOF
14613 rm -f conftest.$ac_objext conftest$ac_exeext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14615   (eval $ac_link) 2>conftest.er1
14616   ac_status=$?
14617   grep -v '^ *+' conftest.er1 >conftest.err
14618   rm -f conftest.er1
14619   cat conftest.err >&5
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); } &&
14622          { ac_try='test -z "$ac_c_werror_flag"
14623                          || test ! -s conftest.err'
14624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625   (eval $ac_try) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); }; } &&
14629          { ac_try='test -s conftest$ac_exeext'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   ac_cv_search_opendir="-l$ac_lib"
14636 break
14637 else
14638   echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 fi
14642 rm -f conftest.err conftest.$ac_objext \
14643       conftest$ac_exeext conftest.$ac_ext
14644   done
14645 fi
14646 LIBS=$ac_func_search_save_LIBS
14647 fi
14648 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14649 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14650 if test "$ac_cv_search_opendir" != no; then
14651   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14652
14653 fi
14654
14655 else
14656   echo "$as_me:$LINENO: checking for library containing opendir" >&5
14657 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
14658 if test "${ac_cv_search_opendir+set}" = set; then
14659   echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661   ac_func_search_save_LIBS=$LIBS
14662 ac_cv_search_opendir=no
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h.  */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h.  */
14669
14670 /* Override any gcc2 internal prototype to avoid an error.  */
14671 #ifdef __cplusplus
14672 extern "C"
14673 #endif
14674 /* We use char because int might match the return type of a gcc2
14675    builtin and then its argument prototype would still apply.  */
14676 char opendir ();
14677 int
14678 main ()
14679 {
14680 opendir ();
14681   ;
14682   return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14687   (eval $ac_link) 2>conftest.er1
14688   ac_status=$?
14689   grep -v '^ *+' conftest.er1 >conftest.err
14690   rm -f conftest.er1
14691   cat conftest.err >&5
14692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693   (exit $ac_status); } &&
14694          { ac_try='test -z "$ac_c_werror_flag"
14695                          || test ! -s conftest.err'
14696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14697   (eval $ac_try) 2>&5
14698   ac_status=$?
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); }; } &&
14701          { ac_try='test -s conftest$ac_exeext'
14702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14703   (eval $ac_try) 2>&5
14704   ac_status=$?
14705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706   (exit $ac_status); }; }; then
14707   ac_cv_search_opendir="none required"
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 fi
14713 rm -f conftest.err conftest.$ac_objext \
14714       conftest$ac_exeext conftest.$ac_ext
14715 if test "$ac_cv_search_opendir" = no; then
14716   for ac_lib in x; do
14717     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14718     cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h.  */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h.  */
14724
14725 /* Override any gcc2 internal prototype to avoid an error.  */
14726 #ifdef __cplusplus
14727 extern "C"
14728 #endif
14729 /* We use char because int might match the return type of a gcc2
14730    builtin and then its argument prototype would still apply.  */
14731 char opendir ();
14732 int
14733 main ()
14734 {
14735 opendir ();
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 rm -f conftest.$ac_objext conftest$ac_exeext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14742   (eval $ac_link) 2>conftest.er1
14743   ac_status=$?
14744   grep -v '^ *+' conftest.er1 >conftest.err
14745   rm -f conftest.er1
14746   cat conftest.err >&5
14747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748   (exit $ac_status); } &&
14749          { ac_try='test -z "$ac_c_werror_flag"
14750                          || test ! -s conftest.err'
14751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14752   (eval $ac_try) 2>&5
14753   ac_status=$?
14754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755   (exit $ac_status); }; } &&
14756          { ac_try='test -s conftest$ac_exeext'
14757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758   (eval $ac_try) 2>&5
14759   ac_status=$?
14760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761   (exit $ac_status); }; }; then
14762   ac_cv_search_opendir="-l$ac_lib"
14763 break
14764 else
14765   echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14767
14768 fi
14769 rm -f conftest.err conftest.$ac_objext \
14770       conftest$ac_exeext conftest.$ac_ext
14771   done
14772 fi
14773 LIBS=$ac_func_search_save_LIBS
14774 fi
14775 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14776 echo "${ECHO_T}$ac_cv_search_opendir" >&6
14777 if test "$ac_cv_search_opendir" != no; then
14778   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
14779
14780 fi
14781
14782 fi
14783
14784
14785
14786
14787
14788
14789
14790
14791 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
14792 do
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796 if eval "test \"\${$as_ac_var+set}\" = set"; then
14797   echo $ECHO_N "(cached) $ECHO_C" >&6
14798 else
14799   cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14807 #define $ac_func innocuous_$ac_func
14808
14809 /* System header to define __stub macros and hopefully few prototypes,
14810     which can conflict with char $ac_func (); below.
14811     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812     <limits.h> exists even on freestanding compilers.  */
14813
14814 #ifdef __STDC__
14815 # include <limits.h>
14816 #else
14817 # include <assert.h>
14818 #endif
14819
14820 #undef $ac_func
14821
14822 /* Override any gcc2 internal prototype to avoid an error.  */
14823 #ifdef __cplusplus
14824 extern "C"
14825 {
14826 #endif
14827 /* We use char because int might match the return type of a gcc2
14828    builtin and then its argument prototype would still apply.  */
14829 char $ac_func ();
14830 /* The GNU C library defines this for functions which it implements
14831     to always fail with ENOSYS.  Some functions are actually named
14832     something starting with __ and the normal name is an alias.  */
14833 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14834 choke me
14835 #else
14836 char (*f) () = $ac_func;
14837 #endif
14838 #ifdef __cplusplus
14839 }
14840 #endif
14841
14842 int
14843 main ()
14844 {
14845 return f != $ac_func;
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852   (eval $ac_link) 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_c_werror_flag"
14860                          || test ! -s conftest.err'
14861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14862   (eval $ac_try) 2>&5
14863   ac_status=$?
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); }; } &&
14866          { ac_try='test -s conftest$ac_exeext'
14867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14868   (eval $ac_try) 2>&5
14869   ac_status=$?
14870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871   (exit $ac_status); }; }; then
14872   eval "$as_ac_var=yes"
14873 else
14874   echo "$as_me: failed program was:" >&5
14875 sed 's/^/| /' conftest.$ac_ext >&5
14876
14877 eval "$as_ac_var=no"
14878 fi
14879 rm -f conftest.err conftest.$ac_objext \
14880       conftest$ac_exeext conftest.$ac_ext
14881 fi
14882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14884 if test `eval echo '${'$as_ac_var'}'` = yes; then
14885   cat >>confdefs.h <<_ACEOF
14886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14887 _ACEOF
14888
14889 fi
14890 done
14891
14892
14893
14894 for ac_func in nanosleep nl_langinfo
14895 do
14896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14897 echo "$as_me:$LINENO: checking for $ac_func" >&5
14898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14899 if eval "test \"\${$as_ac_var+set}\" = set"; then
14900   echo $ECHO_N "(cached) $ECHO_C" >&6
14901 else
14902   cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14910 #define $ac_func innocuous_$ac_func
14911
14912 /* System header to define __stub macros and hopefully few prototypes,
14913     which can conflict with char $ac_func (); below.
14914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14915     <limits.h> exists even on freestanding compilers.  */
14916
14917 #ifdef __STDC__
14918 # include <limits.h>
14919 #else
14920 # include <assert.h>
14921 #endif
14922
14923 #undef $ac_func
14924
14925 /* Override any gcc2 internal prototype to avoid an error.  */
14926 #ifdef __cplusplus
14927 extern "C"
14928 {
14929 #endif
14930 /* We use char because int might match the return type of a gcc2
14931    builtin and then its argument prototype would still apply.  */
14932 char $ac_func ();
14933 /* The GNU C library defines this for functions which it implements
14934     to always fail with ENOSYS.  Some functions are actually named
14935     something starting with __ and the normal name is an alias.  */
14936 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14937 choke me
14938 #else
14939 char (*f) () = $ac_func;
14940 #endif
14941 #ifdef __cplusplus
14942 }
14943 #endif
14944
14945 int
14946 main ()
14947 {
14948 return f != $ac_func;
14949   ;
14950   return 0;
14951 }
14952 _ACEOF
14953 rm -f conftest.$ac_objext conftest$ac_exeext
14954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14955   (eval $ac_link) 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } &&
14962          { ac_try='test -z "$ac_c_werror_flag"
14963                          || test ! -s conftest.err'
14964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14965   (eval $ac_try) 2>&5
14966   ac_status=$?
14967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968   (exit $ac_status); }; } &&
14969          { ac_try='test -s conftest$ac_exeext'
14970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14971   (eval $ac_try) 2>&5
14972   ac_status=$?
14973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974   (exit $ac_status); }; }; then
14975   eval "$as_ac_var=yes"
14976 else
14977   echo "$as_me: failed program was:" >&5
14978 sed 's/^/| /' conftest.$ac_ext >&5
14979
14980 eval "$as_ac_var=no"
14981 fi
14982 rm -f conftest.err conftest.$ac_objext \
14983       conftest$ac_exeext conftest.$ac_ext
14984 fi
14985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14987 if test `eval echo '${'$as_ac_var'}'` = yes; then
14988   cat >>confdefs.h <<_ACEOF
14989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14990 _ACEOF
14991
14992 fi
14993 done
14994
14995
14996 for ac_header in varargs.h
14997 do
14998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15000   echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15003   echo $ECHO_N "(cached) $ECHO_C" >&6
15004 fi
15005 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15006 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15007 else
15008   # Is the header compilable?
15009 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012 /* confdefs.h.  */
15013 _ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h.  */
15017 $ac_includes_default
15018 #include <$ac_header>
15019 _ACEOF
15020 rm -f conftest.$ac_objext
15021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15022   (eval $ac_compile) 2>conftest.er1
15023   ac_status=$?
15024   grep -v '^ *+' conftest.er1 >conftest.err
15025   rm -f conftest.er1
15026   cat conftest.err >&5
15027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028   (exit $ac_status); } &&
15029          { ac_try='test -z "$ac_c_werror_flag"
15030                          || test ! -s conftest.err'
15031   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15032   (eval $ac_try) 2>&5
15033   ac_status=$?
15034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035   (exit $ac_status); }; } &&
15036          { ac_try='test -s conftest.$ac_objext'
15037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15038   (eval $ac_try) 2>&5
15039   ac_status=$?
15040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041   (exit $ac_status); }; }; then
15042   ac_header_compiler=yes
15043 else
15044   echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047 ac_header_compiler=no
15048 fi
15049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15051 echo "${ECHO_T}$ac_header_compiler" >&6
15052
15053 # Is the header present?
15054 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15056 cat >conftest.$ac_ext <<_ACEOF
15057 /* confdefs.h.  */
15058 _ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h.  */
15062 #include <$ac_header>
15063 _ACEOF
15064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15066   ac_status=$?
15067   grep -v '^ *+' conftest.er1 >conftest.err
15068   rm -f conftest.er1
15069   cat conftest.err >&5
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); } >/dev/null; then
15072   if test -s conftest.err; then
15073     ac_cpp_err=$ac_c_preproc_warn_flag
15074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15075   else
15076     ac_cpp_err=
15077   fi
15078 else
15079   ac_cpp_err=yes
15080 fi
15081 if test -z "$ac_cpp_err"; then
15082   ac_header_preproc=yes
15083 else
15084   echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087   ac_header_preproc=no
15088 fi
15089 rm -f conftest.err conftest.$ac_ext
15090 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15091 echo "${ECHO_T}$ac_header_preproc" >&6
15092
15093 # So?  What about this header?
15094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15095   yes:no: )
15096     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15097 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15098     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15100     ac_header_preproc=yes
15101     ;;
15102   no:yes:* )
15103     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15104 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15105     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15106 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15107     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15108 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15109     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15110 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15111     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15113     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15114 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15115     (
15116       cat <<\_ASBOX
15117 ## ------------------------------------------ ##
15118 ## Report this to the AC_PACKAGE_NAME lists.  ##
15119 ## ------------------------------------------ ##
15120 _ASBOX
15121     ) |
15122       sed "s/^/$as_me: WARNING:     /" >&2
15123     ;;
15124 esac
15125 echo "$as_me:$LINENO: checking for $ac_header" >&5
15126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15127 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15128   echo $ECHO_N "(cached) $ECHO_C" >&6
15129 else
15130   eval "$as_ac_Header=\$ac_header_preproc"
15131 fi
15132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15133 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15134
15135 fi
15136 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15137   cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15139 _ACEOF
15140
15141 fi
15142
15143 done
15144
15145
15146 # End of readline/conio stuff
15147 # -----------------------------------------------------------------------
15148
15149 # -----------------------------------------------------------------------
15150 #  Check for Python support
15151 #
15152 echo "$as_me:$LINENO: checking for Python support" >&5
15153 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
15154
15155 # Check whether --with-python or --without-python was given.
15156 if test "${with_python+set}" = set; then
15157   withval="$with_python"
15158
15159   PYTHON_INCDIR=
15160   PYTHON_LIBS=
15161   if test "$withval" != "no"; then
15162      if test "$withval" = "yes"; then
15163         for python_root in /usr /usr/local /usr/sfw; do
15164           for ver in python2.2 python2.3 python2.4 python2.5; do
15165              if test -f $python_root/include/${ver}/Python.h; then
15166                 PYTHON_INCDIR=-I$python_root/include/${ver}
15167                 if test -d $python_root/lib64/${ver}/config; then
15168                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15169                 else
15170                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15171                 fi
15172                 break
15173              fi
15174           done
15175         done
15176         if test x$PYTHON_INCDIR = x; then
15177           if test -f $prefix/include/Python.h; then
15178              PYTHON_INCDIR=-I$prefix/include
15179              if test -d $prefix/lib64/config; then
15180                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15181              else
15182                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15183              fi
15184           else
15185            echo "$as_me:$LINENO: result: no" >&5
15186 echo "${ECHO_T}no" >&6
15187            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15188 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15189    { (exit 1); exit 1; }; }
15190           fi
15191         fi
15192      else
15193         if test -f $withval/Python.h; then
15194            PYTHON_INCDIR=-I$withval
15195            PYTHON_LIBS="-L$withval/config -lpython"
15196         elif test -f $withval/include/Python.h; then
15197            PYTHON_INCDIR=-I$withval/include
15198            if test -d $withval/lib64/config; then
15199               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15200            else
15201               PYTHON_LIBS="-L$withval/lib/config -lpython"
15202            fi
15203         elif test -f $withval/include/python/Python.h; then
15204            PYTHON_INCDIR=-I$withval/include/python
15205            if test -d $withval/lib64/python/config; then
15206               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15207            else
15208               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15209            fi
15210         else
15211            echo "$as_me:$LINENO: result: no" >&5
15212 echo "${ECHO_T}no" >&6
15213            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15214 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15215    { (exit 1); exit 1; }; }
15216         fi
15217      fi
15218      cat >>confdefs.h <<\_ACEOF
15219 #define HAVE_PYTHON 1
15220 _ACEOF
15221
15222      echo "$as_me:$LINENO: result: yes" >&5
15223 echo "${ECHO_T}yes" >&6
15224      support_python=yes
15225      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15226 echo "$as_me: checking for more Python libs" >&6;}
15227      saved_LIBS="$LIBS"; LIBS=
15228      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15229 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
15230 if test "${ac_cv_search_shm_open+set}" = set; then
15231   echo $ECHO_N "(cached) $ECHO_C" >&6
15232 else
15233   ac_func_search_save_LIBS=$LIBS
15234 ac_cv_search_shm_open=no
15235 cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241
15242 /* Override any gcc2 internal prototype to avoid an error.  */
15243 #ifdef __cplusplus
15244 extern "C"
15245 #endif
15246 /* We use char because int might match the return type of a gcc2
15247    builtin and then its argument prototype would still apply.  */
15248 char shm_open ();
15249 int
15250 main ()
15251 {
15252 shm_open ();
15253   ;
15254   return 0;
15255 }
15256 _ACEOF
15257 rm -f conftest.$ac_objext conftest$ac_exeext
15258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259   (eval $ac_link) 2>conftest.er1
15260   ac_status=$?
15261   grep -v '^ *+' conftest.er1 >conftest.err
15262   rm -f conftest.er1
15263   cat conftest.err >&5
15264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265   (exit $ac_status); } &&
15266          { ac_try='test -z "$ac_c_werror_flag"
15267                          || test ! -s conftest.err'
15268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269   (eval $ac_try) 2>&5
15270   ac_status=$?
15271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272   (exit $ac_status); }; } &&
15273          { ac_try='test -s conftest$ac_exeext'
15274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275   (eval $ac_try) 2>&5
15276   ac_status=$?
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); }; }; then
15279   ac_cv_search_shm_open="none required"
15280 else
15281   echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15283
15284 fi
15285 rm -f conftest.err conftest.$ac_objext \
15286       conftest$ac_exeext conftest.$ac_ext
15287 if test "$ac_cv_search_shm_open" = no; then
15288   for ac_lib in rt; do
15289     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15290     cat >conftest.$ac_ext <<_ACEOF
15291 /* confdefs.h.  */
15292 _ACEOF
15293 cat confdefs.h >>conftest.$ac_ext
15294 cat >>conftest.$ac_ext <<_ACEOF
15295 /* end confdefs.h.  */
15296
15297 /* Override any gcc2 internal prototype to avoid an error.  */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 /* We use char because int might match the return type of a gcc2
15302    builtin and then its argument prototype would still apply.  */
15303 char shm_open ();
15304 int
15305 main ()
15306 {
15307 shm_open ();
15308   ;
15309   return 0;
15310 }
15311 _ACEOF
15312 rm -f conftest.$ac_objext conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314   (eval $ac_link) 2>conftest.er1
15315   ac_status=$?
15316   grep -v '^ *+' conftest.er1 >conftest.err
15317   rm -f conftest.er1
15318   cat conftest.err >&5
15319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320   (exit $ac_status); } &&
15321          { ac_try='test -z "$ac_c_werror_flag"
15322                          || test ! -s conftest.err'
15323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324   (eval $ac_try) 2>&5
15325   ac_status=$?
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); }; } &&
15328          { ac_try='test -s conftest$ac_exeext'
15329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330   (eval $ac_try) 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; }; then
15334   ac_cv_search_shm_open="-l$ac_lib"
15335 break
15336 else
15337   echo "$as_me: failed program was:" >&5
15338 sed 's/^/| /' conftest.$ac_ext >&5
15339
15340 fi
15341 rm -f conftest.err conftest.$ac_objext \
15342       conftest$ac_exeext conftest.$ac_ext
15343   done
15344 fi
15345 LIBS=$ac_func_search_save_LIBS
15346 fi
15347 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15348 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
15349 if test "$ac_cv_search_shm_open" != no; then
15350   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
15351
15352 fi
15353
15354
15355 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15356 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
15357 if test "${ac_cv_lib_util_openpty+set}" = set; then
15358   echo $ECHO_N "(cached) $ECHO_C" >&6
15359 else
15360   ac_check_lib_save_LIBS=$LIBS
15361 LIBS="-lutil  $LIBS"
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368
15369 /* Override any gcc2 internal prototype to avoid an error.  */
15370 #ifdef __cplusplus
15371 extern "C"
15372 #endif
15373 /* We use char because int might match the return type of a gcc2
15374    builtin and then its argument prototype would still apply.  */
15375 char openpty ();
15376 int
15377 main ()
15378 {
15379 openpty ();
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 rm -f conftest.$ac_objext conftest$ac_exeext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15386   (eval $ac_link) 2>conftest.er1
15387   ac_status=$?
15388   grep -v '^ *+' conftest.er1 >conftest.err
15389   rm -f conftest.er1
15390   cat conftest.err >&5
15391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392   (exit $ac_status); } &&
15393          { ac_try='test -z "$ac_c_werror_flag"
15394                          || test ! -s conftest.err'
15395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396   (eval $ac_try) 2>&5
15397   ac_status=$?
15398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399   (exit $ac_status); }; } &&
15400          { ac_try='test -s conftest$ac_exeext'
15401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402   (eval $ac_try) 2>&5
15403   ac_status=$?
15404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405   (exit $ac_status); }; }; then
15406   ac_cv_lib_util_openpty=yes
15407 else
15408   echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15410
15411 ac_cv_lib_util_openpty=no
15412 fi
15413 rm -f conftest.err conftest.$ac_objext \
15414       conftest$ac_exeext conftest.$ac_ext
15415 LIBS=$ac_check_lib_save_LIBS
15416 fi
15417 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15418 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
15419 if test $ac_cv_lib_util_openpty = yes; then
15420   cat >>confdefs.h <<_ACEOF
15421 #define HAVE_LIBUTIL 1
15422 _ACEOF
15423
15424   LIBS="-lutil $LIBS"
15425
15426 fi
15427
15428      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15429      LIBS="$saved_LIBS"
15430   else
15431      echo "$as_me:$LINENO: result: no" >&5
15432 echo "${ECHO_T}no" >&6
15433   fi
15434
15435 else
15436
15437   echo "$as_me:$LINENO: result: no" >&5
15438 echo "${ECHO_T}no" >&6
15439
15440 fi;
15441
15442
15443
15444 #
15445 # Find where sockets are (especially for Solaris)
15446 # Do this before the TCP Wrappers test since tcp wrappers
15447 # uses the socket library and some linkers are stupid.
15448 #
15449 echo "$as_me:$LINENO: checking for socket" >&5
15450 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15451 if test "${ac_cv_func_socket+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   cat >conftest.$ac_ext <<_ACEOF
15455 /* confdefs.h.  */
15456 _ACEOF
15457 cat confdefs.h >>conftest.$ac_ext
15458 cat >>conftest.$ac_ext <<_ACEOF
15459 /* end confdefs.h.  */
15460 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15462 #define socket innocuous_socket
15463
15464 /* System header to define __stub macros and hopefully few prototypes,
15465     which can conflict with char socket (); below.
15466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15467     <limits.h> exists even on freestanding compilers.  */
15468
15469 #ifdef __STDC__
15470 # include <limits.h>
15471 #else
15472 # include <assert.h>
15473 #endif
15474
15475 #undef socket
15476
15477 /* Override any gcc2 internal prototype to avoid an error.  */
15478 #ifdef __cplusplus
15479 extern "C"
15480 {
15481 #endif
15482 /* We use char because int might match the return type of a gcc2
15483    builtin and then its argument prototype would still apply.  */
15484 char socket ();
15485 /* The GNU C library defines this for functions which it implements
15486     to always fail with ENOSYS.  Some functions are actually named
15487     something starting with __ and the normal name is an alias.  */
15488 #if defined (__stub_socket) || defined (__stub___socket)
15489 choke me
15490 #else
15491 char (*f) () = socket;
15492 #endif
15493 #ifdef __cplusplus
15494 }
15495 #endif
15496
15497 int
15498 main ()
15499 {
15500 return f != socket;
15501   ;
15502   return 0;
15503 }
15504 _ACEOF
15505 rm -f conftest.$ac_objext conftest$ac_exeext
15506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15507   (eval $ac_link) 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } &&
15514          { ac_try='test -z "$ac_c_werror_flag"
15515                          || test ! -s conftest.err'
15516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15517   (eval $ac_try) 2>&5
15518   ac_status=$?
15519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; } &&
15521          { ac_try='test -s conftest$ac_exeext'
15522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523   (eval $ac_try) 2>&5
15524   ac_status=$?
15525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); }; }; then
15527   ac_cv_func_socket=yes
15528 else
15529   echo "$as_me: failed program was:" >&5
15530 sed 's/^/| /' conftest.$ac_ext >&5
15531
15532 ac_cv_func_socket=no
15533 fi
15534 rm -f conftest.err conftest.$ac_objext \
15535       conftest$ac_exeext conftest.$ac_ext
15536 fi
15537 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15538 echo "${ECHO_T}$ac_cv_func_socket" >&6
15539 if test $ac_cv_func_socket = yes; then
15540   echo "$as_me:$LINENO: result: using libc's socket" >&5
15541 echo "${ECHO_T}using libc's socket" >&6
15542 else
15543
15544 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15545 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15546 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15547   echo $ECHO_N "(cached) $ECHO_C" >&6
15548 else
15549   ac_check_lib_save_LIBS=$LIBS
15550 LIBS="-lxnet  $LIBS"
15551 cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557
15558 /* Override any gcc2 internal prototype to avoid an error.  */
15559 #ifdef __cplusplus
15560 extern "C"
15561 #endif
15562 /* We use char because int might match the return type of a gcc2
15563    builtin and then its argument prototype would still apply.  */
15564 char socket ();
15565 int
15566 main ()
15567 {
15568 socket ();
15569   ;
15570   return 0;
15571 }
15572 _ACEOF
15573 rm -f conftest.$ac_objext conftest$ac_exeext
15574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575   (eval $ac_link) 2>conftest.er1
15576   ac_status=$?
15577   grep -v '^ *+' conftest.er1 >conftest.err
15578   rm -f conftest.er1
15579   cat conftest.err >&5
15580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581   (exit $ac_status); } &&
15582          { ac_try='test -z "$ac_c_werror_flag"
15583                          || test ! -s conftest.err'
15584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585   (eval $ac_try) 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } &&
15589          { ac_try='test -s conftest$ac_exeext'
15590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591   (eval $ac_try) 2>&5
15592   ac_status=$?
15593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594   (exit $ac_status); }; }; then
15595   ac_cv_lib_xnet_socket=yes
15596 else
15597   echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15599
15600 ac_cv_lib_xnet_socket=no
15601 fi
15602 rm -f conftest.err conftest.$ac_objext \
15603       conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS
15605 fi
15606 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15607 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15608 if test $ac_cv_lib_xnet_socket = yes; then
15609   cat >>confdefs.h <<_ACEOF
15610 #define HAVE_LIBXNET 1
15611 _ACEOF
15612
15613   LIBS="-lxnet $LIBS"
15614
15615 fi
15616
15617
15618 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15619 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15620 if test "${ac_cv_lib_socket_socket+set}" = set; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   ac_check_lib_save_LIBS=$LIBS
15624 LIBS="-lsocket  $LIBS"
15625 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631
15632 /* Override any gcc2 internal prototype to avoid an error.  */
15633 #ifdef __cplusplus
15634 extern "C"
15635 #endif
15636 /* We use char because int might match the return type of a gcc2
15637    builtin and then its argument prototype would still apply.  */
15638 char socket ();
15639 int
15640 main ()
15641 {
15642 socket ();
15643   ;
15644   return 0;
15645 }
15646 _ACEOF
15647 rm -f conftest.$ac_objext conftest$ac_exeext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15649   (eval $ac_link) 2>conftest.er1
15650   ac_status=$?
15651   grep -v '^ *+' conftest.er1 >conftest.err
15652   rm -f conftest.er1
15653   cat conftest.err >&5
15654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655   (exit $ac_status); } &&
15656          { ac_try='test -z "$ac_c_werror_flag"
15657                          || test ! -s conftest.err'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; } &&
15663          { ac_try='test -s conftest$ac_exeext'
15664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15665   (eval $ac_try) 2>&5
15666   ac_status=$?
15667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15668   (exit $ac_status); }; }; then
15669   ac_cv_lib_socket_socket=yes
15670 else
15671   echo "$as_me: failed program was:" >&5
15672 sed 's/^/| /' conftest.$ac_ext >&5
15673
15674 ac_cv_lib_socket_socket=no
15675 fi
15676 rm -f conftest.err conftest.$ac_objext \
15677       conftest$ac_exeext conftest.$ac_ext
15678 LIBS=$ac_check_lib_save_LIBS
15679 fi
15680 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15681 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15682 if test $ac_cv_lib_socket_socket = yes; then
15683   cat >>confdefs.h <<_ACEOF
15684 #define HAVE_LIBSOCKET 1
15685 _ACEOF
15686
15687   LIBS="-lsocket $LIBS"
15688
15689 fi
15690
15691
15692 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15693 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15694 if test "${ac_cv_lib_inet_socket+set}" = set; then
15695   echo $ECHO_N "(cached) $ECHO_C" >&6
15696 else
15697   ac_check_lib_save_LIBS=$LIBS
15698 LIBS="-linet  $LIBS"
15699 cat >conftest.$ac_ext <<_ACEOF
15700 /* confdefs.h.  */
15701 _ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h.  */
15705
15706 /* Override any gcc2 internal prototype to avoid an error.  */
15707 #ifdef __cplusplus
15708 extern "C"
15709 #endif
15710 /* We use char because int might match the return type of a gcc2
15711    builtin and then its argument prototype would still apply.  */
15712 char socket ();
15713 int
15714 main ()
15715 {
15716 socket ();
15717   ;
15718   return 0;
15719 }
15720 _ACEOF
15721 rm -f conftest.$ac_objext conftest$ac_exeext
15722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15723   (eval $ac_link) 2>conftest.er1
15724   ac_status=$?
15725   grep -v '^ *+' conftest.er1 >conftest.err
15726   rm -f conftest.er1
15727   cat conftest.err >&5
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); } &&
15730          { ac_try='test -z "$ac_c_werror_flag"
15731                          || test ! -s conftest.err'
15732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733   (eval $ac_try) 2>&5
15734   ac_status=$?
15735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736   (exit $ac_status); }; } &&
15737          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
15743   ac_cv_lib_inet_socket=yes
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748 ac_cv_lib_inet_socket=no
15749 fi
15750 rm -f conftest.err conftest.$ac_objext \
15751       conftest$ac_exeext conftest.$ac_ext
15752 LIBS=$ac_check_lib_save_LIBS
15753 fi
15754 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15755 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15756 if test $ac_cv_lib_inet_socket = yes; then
15757   cat >>confdefs.h <<_ACEOF
15758 #define HAVE_LIBINET 1
15759 _ACEOF
15760
15761   LIBS="-linet $LIBS"
15762
15763 fi
15764
15765 fi
15766
15767
15768
15769 # -----------------------------------------------------------
15770 # Check whether user wants TCP wrappers support (default off)
15771 # -----------------------------------------------------------
15772 TCPW_MSG="no"
15773 WRAPLIBS=""
15774
15775 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
15776 if test "${with_tcp_wrappers+set}" = set; then
15777   withval="$with_tcp_wrappers"
15778
15779     if test "x$withval" != "xno" ; then
15780        saved_LIBS="$LIBS"
15781        LIBS="$saved_LIBS -lwrap"
15782        echo "$as_me:$LINENO: checking for libwrap" >&5
15783 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
15784        echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
15785 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6
15786 if test "${ac_cv_search_nanosleep+set}" = set; then
15787   echo $ECHO_N "(cached) $ECHO_C" >&6
15788 else
15789   ac_func_search_save_LIBS=$LIBS
15790 ac_cv_search_nanosleep=no
15791 cat >conftest.$ac_ext <<_ACEOF
15792 /* confdefs.h.  */
15793 _ACEOF
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h.  */
15797
15798 /* Override any gcc2 internal prototype to avoid an error.  */
15799 #ifdef __cplusplus
15800 extern "C"
15801 #endif
15802 /* We use char because int might match the return type of a gcc2
15803    builtin and then its argument prototype would still apply.  */
15804 char nanosleep ();
15805 int
15806 main ()
15807 {
15808 nanosleep ();
15809   ;
15810   return 0;
15811 }
15812 _ACEOF
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815   (eval $ac_link) 2>conftest.er1
15816   ac_status=$?
15817   grep -v '^ *+' conftest.er1 >conftest.err
15818   rm -f conftest.er1
15819   cat conftest.err >&5
15820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821   (exit $ac_status); } &&
15822          { ac_try='test -z "$ac_c_werror_flag"
15823                          || test ! -s conftest.err'
15824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825   (eval $ac_try) 2>&5
15826   ac_status=$?
15827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828   (exit $ac_status); }; } &&
15829          { ac_try='test -s conftest$ac_exeext'
15830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15831   (eval $ac_try) 2>&5
15832   ac_status=$?
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); }; }; then
15835   ac_cv_search_nanosleep="none required"
15836 else
15837   echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15839
15840 fi
15841 rm -f conftest.err conftest.$ac_objext \
15842       conftest$ac_exeext conftest.$ac_ext
15843 if test "$ac_cv_search_nanosleep" = no; then
15844   for ac_lib in rt; do
15845     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15846     cat >conftest.$ac_ext <<_ACEOF
15847 /* confdefs.h.  */
15848 _ACEOF
15849 cat confdefs.h >>conftest.$ac_ext
15850 cat >>conftest.$ac_ext <<_ACEOF
15851 /* end confdefs.h.  */
15852
15853 /* Override any gcc2 internal prototype to avoid an error.  */
15854 #ifdef __cplusplus
15855 extern "C"
15856 #endif
15857 /* We use char because int might match the return type of a gcc2
15858    builtin and then its argument prototype would still apply.  */
15859 char nanosleep ();
15860 int
15861 main ()
15862 {
15863 nanosleep ();
15864   ;
15865   return 0;
15866 }
15867 _ACEOF
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870   (eval $ac_link) 2>conftest.er1
15871   ac_status=$?
15872   grep -v '^ *+' conftest.er1 >conftest.err
15873   rm -f conftest.er1
15874   cat conftest.err >&5
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); } &&
15877          { ac_try='test -z "$ac_c_werror_flag"
15878                          || test ! -s conftest.err'
15879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15880   (eval $ac_try) 2>&5
15881   ac_status=$?
15882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15883   (exit $ac_status); }; } &&
15884          { ac_try='test -s conftest$ac_exeext'
15885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15886   (eval $ac_try) 2>&5
15887   ac_status=$?
15888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889   (exit $ac_status); }; }; then
15890   ac_cv_search_nanosleep="-l$ac_lib"
15891 break
15892 else
15893   echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896 fi
15897 rm -f conftest.err conftest.$ac_objext \
15898       conftest$ac_exeext conftest.$ac_ext
15899   done
15900 fi
15901 LIBS=$ac_func_search_save_LIBS
15902 fi
15903 echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
15904 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6
15905 if test "$ac_cv_search_nanosleep" != no; then
15906   test "$ac_cv_search_nanosleep" = "none required" || LIBS="$ac_cv_search_nanosleep $LIBS"
15907
15908 fi
15909
15910        cat >conftest.$ac_ext <<_ACEOF
15911 /* confdefs.h.  */
15912 _ACEOF
15913 cat confdefs.h >>conftest.$ac_ext
15914 cat >>conftest.$ac_ext <<_ACEOF
15915 /* end confdefs.h.  */
15916  #include <sys/types.h>
15917             #include <tcpd.h>
15918              int deny_severity = 0;
15919              int allow_severity = 0;
15920              struct request_info *req;
15921 int
15922 main ()
15923 {
15924  hosts_access(req);
15925   ;
15926   return 0;
15927 }
15928 _ACEOF
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15931   (eval $ac_link) 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } &&
15938          { ac_try='test -z "$ac_c_werror_flag"
15939                          || test ! -s conftest.err'
15940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15941   (eval $ac_try) 2>&5
15942   ac_status=$?
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); }; } &&
15945          { ac_try='test -s conftest$ac_exeext'
15946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15947   (eval $ac_try) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); }; }; then
15951
15952             echo "$as_me:$LINENO: result: yes" >&5
15953 echo "${ECHO_T}yes" >&6
15954
15955 cat >>confdefs.h <<\_ACEOF
15956 #define HAVE_LIBWRAP 1
15957 _ACEOF
15958
15959             TCPW_MSG="yes"
15960             LIBS="$saved_LIBS"
15961             WRAPLIBS="-lwrap"
15962
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967
15968             LIBS="$saved_LIBS -lwrap -lnsl"
15969             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
15970             cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976  #include <sys/types.h>
15977                  #include <tcpd.h>
15978                  int deny_severity = 0;
15979                  int allow_severity = 0;
15980                  struct request_info *req;
15981 int
15982 main ()
15983 {
15984  hosts_access(req);
15985   ;
15986   return 0;
15987 }
15988 _ACEOF
15989 rm -f conftest.$ac_objext conftest$ac_exeext
15990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15991   (eval $ac_link) 2>conftest.er1
15992   ac_status=$?
15993   grep -v '^ *+' conftest.er1 >conftest.err
15994   rm -f conftest.er1
15995   cat conftest.err >&5
15996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997   (exit $ac_status); } &&
15998          { ac_try='test -z "$ac_c_werror_flag"
15999                          || test ! -s conftest.err'
16000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16001   (eval $ac_try) 2>&5
16002   ac_status=$?
16003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004   (exit $ac_status); }; } &&
16005          { ac_try='test -s conftest$ac_exeext'
16006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007   (eval $ac_try) 2>&5
16008   ac_status=$?
16009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010   (exit $ac_status); }; }; then
16011
16012                  echo "$as_me:$LINENO: result: yes" >&5
16013 echo "${ECHO_T}yes" >&6
16014
16015 cat >>confdefs.h <<\_ACEOF
16016 #define HAVE_LIBWRAP 1
16017 _ACEOF
16018
16019                  TCPW_MSG="yes"
16020                  LIBS="$saved_LIBS"
16021                  WRAPLIBS="-lwrap"
16022
16023 else
16024   echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16026
16027 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16028 echo "$as_me: error: *** libwrap missing" >&2;}
16029    { (exit 1); exit 1; }; }
16030
16031 fi
16032 rm -f conftest.err conftest.$ac_objext \
16033       conftest$ac_exeext conftest.$ac_ext
16034
16035 fi
16036 rm -f conftest.err conftest.$ac_objext \
16037       conftest$ac_exeext conftest.$ac_ext
16038     fi
16039
16040
16041 fi;
16042
16043 # -----------------------------------------------------------
16044 # Check whether OpenSSL is available
16045 # -----------------------------------------------------------
16046 echo "$as_me:$LINENO: checking for OpenSSL" >&5
16047 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
16048
16049 # Check whether --with-openssl or --without-openssl was given.
16050 if test "${with_openssl+set}" = set; then
16051   withval="$with_openssl"
16052   with_openssl_directory=${withval}
16053 fi;
16054
16055 if test "x$with_openssl_directory" != "x"; then
16056         OPENSSL_LIBS="-lssl -lcrypto"
16057         OPENSSL_INC=""
16058
16059         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16060                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16061                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16062         fi
16063
16064         saved_LIBS="${LIBS}"
16065         saved_CFLAGS="${CFLAGS}"
16066         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16067         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16068
16069         cat >conftest.$ac_ext <<_ACEOF
16070 /* confdefs.h.  */
16071 _ACEOF
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h.  */
16075  #include <openssl/ssl.h>
16076 int
16077 main ()
16078 {
16079  CRYPTO_set_id_callback(NULL);
16080   ;
16081   return 0;
16082 }
16083 _ACEOF
16084 rm -f conftest.$ac_objext conftest$ac_exeext
16085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16086   (eval $ac_link) 2>conftest.er1
16087   ac_status=$?
16088   grep -v '^ *+' conftest.er1 >conftest.err
16089   rm -f conftest.er1
16090   cat conftest.err >&5
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); } &&
16093          { ac_try='test -z "$ac_c_werror_flag"
16094                          || test ! -s conftest.err'
16095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16096   (eval $ac_try) 2>&5
16097   ac_status=$?
16098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099   (exit $ac_status); }; } &&
16100          { ac_try='test -s conftest$ac_exeext'
16101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102   (eval $ac_try) 2>&5
16103   ac_status=$?
16104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105   (exit $ac_status); }; }; then
16106
16107                         support_tls="yes"
16108                         support_crypto="yes"
16109
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114  support_tls="no"
16115
16116 fi
16117 rm -f conftest.err conftest.$ac_objext \
16118       conftest$ac_exeext conftest.$ac_ext
16119
16120         cat >conftest.$ac_ext <<_ACEOF
16121 /* confdefs.h.  */
16122 _ACEOF
16123 cat confdefs.h >>conftest.$ac_ext
16124 cat >>conftest.$ac_ext <<_ACEOF
16125 /* end confdefs.h.  */
16126  #include <openssl/evp.h>
16127 int
16128 main ()
16129 {
16130  EVP_sha512();
16131   ;
16132   return 0;
16133 }
16134 _ACEOF
16135 rm -f conftest.$ac_objext conftest$ac_exeext
16136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16137   (eval $ac_link) 2>conftest.er1
16138   ac_status=$?
16139   grep -v '^ *+' conftest.er1 >conftest.err
16140   rm -f conftest.er1
16141   cat conftest.err >&5
16142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16143   (exit $ac_status); } &&
16144          { ac_try='test -z "$ac_c_werror_flag"
16145                          || test ! -s conftest.err'
16146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16147   (eval $ac_try) 2>&5
16148   ac_status=$?
16149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150   (exit $ac_status); }; } &&
16151          { ac_try='test -s conftest$ac_exeext'
16152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153   (eval $ac_try) 2>&5
16154   ac_status=$?
16155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156   (exit $ac_status); }; }; then
16157    ac_cv_openssl_sha2="yes"
16158 else
16159   echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16161
16162  ac_cv_openssl_sha2="no"
16163
16164 fi
16165 rm -f conftest.err conftest.$ac_objext \
16166       conftest$ac_exeext conftest.$ac_ext
16167
16168         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16169         # implementation, presumably for export reasons. If 192bit AES
16170         # is available, we assume that we're running with a 'non-export'
16171         # openssl library.
16172         cat >conftest.$ac_ext <<_ACEOF
16173 /* confdefs.h.  */
16174 _ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h.  */
16178  #include <openssl/evp.h>
16179 int
16180 main ()
16181 {
16182  EVP_aes_192_cbc();
16183   ;
16184   return 0;
16185 }
16186 _ACEOF
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189   (eval $ac_link) 2>conftest.er1
16190   ac_status=$?
16191   grep -v '^ *+' conftest.er1 >conftest.err
16192   rm -f conftest.er1
16193   cat conftest.err >&5
16194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195   (exit $ac_status); } &&
16196          { ac_try='test -z "$ac_c_werror_flag"
16197                          || test ! -s conftest.err'
16198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16199   (eval $ac_try) 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; } &&
16203          { ac_try='test -s conftest$ac_exeext'
16204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16205   (eval $ac_try) 2>&5
16206   ac_status=$?
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); }; }; then
16209    ac_cv_openssl_export="no"
16210 else
16211   echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214  ac_cv_openssl_export="yes"
16215
16216 fi
16217 rm -f conftest.err conftest.$ac_objext \
16218       conftest$ac_exeext conftest.$ac_ext
16219
16220         LIBS="${saved_LIBS}"
16221         CFLAGS="${saved_CFLAGS}"
16222
16223         if test "$support_tls" = "yes"; then
16224
16225 cat >>confdefs.h <<\_ACEOF
16226 #define HAVE_OPENSSL 1
16227 _ACEOF
16228
16229
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_TLS 1
16232 _ACEOF
16233
16234
16235 cat >>confdefs.h <<\_ACEOF
16236 #define HAVE_CRYPTO 1
16237 _ACEOF
16238
16239         fi
16240
16241         if test "$ac_cv_openssl_sha2" = "yes"; then
16242
16243 cat >>confdefs.h <<\_ACEOF
16244 #define HAVE_SHA2 1
16245 _ACEOF
16246
16247         fi
16248
16249         if test "$ac_cv_openssl_export" = "yes"; then
16250
16251 cat >>confdefs.h <<\_ACEOF
16252 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16253 _ACEOF
16254
16255         fi
16256 else
16257         support_tls="no"
16258         support_crypto="no"
16259         OPENSSL_LIBS=""
16260         OPENSSL_INC=""
16261 fi
16262
16263 echo "$as_me:$LINENO: result: $support_tls" >&5
16264 echo "${ECHO_T}$support_tls" >&6
16265
16266
16267
16268
16269 # -----------------------------------------------------------
16270 # Python and OpenSSL are using dlopen
16271 # -----------------------------------------------------------
16272
16273 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16274    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16275 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
16276 if test "${ac_cv_search_dlopen+set}" = set; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   ac_func_search_save_LIBS=$LIBS
16280 ac_cv_search_dlopen=no
16281 cat >conftest.$ac_ext <<_ACEOF
16282 /* confdefs.h.  */
16283 _ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h.  */
16287
16288 /* Override any gcc2 internal prototype to avoid an error.  */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 /* We use char because int might match the return type of a gcc2
16293    builtin and then its argument prototype would still apply.  */
16294 char dlopen ();
16295 int
16296 main ()
16297 {
16298 dlopen ();
16299   ;
16300   return 0;
16301 }
16302 _ACEOF
16303 rm -f conftest.$ac_objext conftest$ac_exeext
16304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16305   (eval $ac_link) 2>conftest.er1
16306   ac_status=$?
16307   grep -v '^ *+' conftest.er1 >conftest.err
16308   rm -f conftest.er1
16309   cat conftest.err >&5
16310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16311   (exit $ac_status); } &&
16312          { ac_try='test -z "$ac_c_werror_flag"
16313                          || test ! -s conftest.err'
16314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16315   (eval $ac_try) 2>&5
16316   ac_status=$?
16317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318   (exit $ac_status); }; } &&
16319          { ac_try='test -s conftest$ac_exeext'
16320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16321   (eval $ac_try) 2>&5
16322   ac_status=$?
16323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324   (exit $ac_status); }; }; then
16325   ac_cv_search_dlopen="none required"
16326 else
16327   echo "$as_me: failed program was:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16329
16330 fi
16331 rm -f conftest.err conftest.$ac_objext \
16332       conftest$ac_exeext conftest.$ac_ext
16333 if test "$ac_cv_search_dlopen" = no; then
16334   for ac_lib in dl; do
16335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16336     cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342
16343 /* Override any gcc2 internal prototype to avoid an error.  */
16344 #ifdef __cplusplus
16345 extern "C"
16346 #endif
16347 /* We use char because int might match the return type of a gcc2
16348    builtin and then its argument prototype would still apply.  */
16349 char dlopen ();
16350 int
16351 main ()
16352 {
16353 dlopen ();
16354   ;
16355   return 0;
16356 }
16357 _ACEOF
16358 rm -f conftest.$ac_objext conftest$ac_exeext
16359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16360   (eval $ac_link) 2>conftest.er1
16361   ac_status=$?
16362   grep -v '^ *+' conftest.er1 >conftest.err
16363   rm -f conftest.er1
16364   cat conftest.err >&5
16365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366   (exit $ac_status); } &&
16367          { ac_try='test -z "$ac_c_werror_flag"
16368                          || test ! -s conftest.err'
16369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16370   (eval $ac_try) 2>&5
16371   ac_status=$?
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); }; } &&
16374          { ac_try='test -s conftest$ac_exeext'
16375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376   (eval $ac_try) 2>&5
16377   ac_status=$?
16378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379   (exit $ac_status); }; }; then
16380   ac_cv_search_dlopen="-l$ac_lib"
16381 break
16382 else
16383   echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 fi
16387 rm -f conftest.err conftest.$ac_objext \
16388       conftest$ac_exeext conftest.$ac_ext
16389   done
16390 fi
16391 LIBS=$ac_func_search_save_LIBS
16392 fi
16393 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16394 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
16395 if test "$ac_cv_search_dlopen" != no; then
16396   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
16397
16398 fi
16399
16400 fi
16401
16402 # ------------------------------------------
16403 # Where to place working dir
16404 # ------------------------------------------
16405 working_dir=`eval echo ${prefix}/var/bacula/working`
16406
16407 # Check whether --with-working-dir or --without-working-dir was given.
16408 if test "${with_working_dir+set}" = set; then
16409   withval="$with_working_dir"
16410
16411        if test "x$withval" != "xno" ; then
16412               working_dir=$withval
16413        fi
16414
16415
16416 fi;
16417
16418
16419
16420 # ------------------------------------------------------------------
16421 # If the user has not set archivedir, we set our default as /tmp
16422 # ------------------------------------------------------------------
16423 archive_dir=/tmp
16424
16425 # Check whether --with-archivedir or --without-archivedir was given.
16426 if test "${with_archivedir+set}" = set; then
16427   withval="$with_archivedir"
16428
16429        if test "x$withval" != "xno" ; then
16430               archivedir=$withval
16431        fi
16432
16433
16434 fi;
16435
16436
16437
16438
16439
16440 # ------------------------------------------
16441 # Where to place scriptdir (script files)
16442 # ------------------------------------------
16443 scriptdir=`eval echo ${sysconfdir}`
16444
16445 # Check whether --with-scriptdir or --without-scriptdir was given.
16446 if test "${with_scriptdir+set}" = set; then
16447   withval="$with_scriptdir"
16448
16449        if test "x$withval" != "xno" ; then
16450               scriptdir=$withval
16451        fi
16452
16453
16454 fi;
16455
16456
16457
16458
16459 # ------------------------------------------
16460 # Where to send dump email
16461 # ------------------------------------------
16462 dump_email=root@localhost
16463
16464 # Check whether --with-dump-email or --without-dump-email was given.
16465 if test "${with_dump_email+set}" = set; then
16466   withval="$with_dump_email"
16467
16468        if test "x$withval" != "xno" ; then
16469               dump_email=$withval
16470        fi
16471
16472
16473 fi;
16474
16475
16476
16477 # ------------------------------------------
16478 # Where to send job email
16479 # ------------------------------------------
16480 job_email=root@localhost
16481
16482 # Check whether --with-job-email or --without-job-email was given.
16483 if test "${with_job_email+set}" = set; then
16484   withval="$with_job_email"
16485
16486        if test "x$withval" != "xno" ; then
16487               job_email=$withval
16488        fi
16489
16490
16491 fi;
16492
16493
16494
16495 # ------------------------------------------
16496 # Where to find smtp host
16497 # ------------------------------------------
16498 smtp_host=localhost
16499
16500 # Check whether --with-smtp_host or --without-smtp_host was given.
16501 if test "${with_smtp_host+set}" = set; then
16502   withval="$with_smtp_host"
16503
16504        if test "x$withval" != "xno" ; then
16505               smtp_host=$withval
16506        fi
16507
16508
16509 fi;
16510
16511
16512
16513
16514 # ------------------------------------
16515 # Where to place pid files
16516 # ------------------------------------
16517 piddir=/var/run
16518
16519 # Check whether --with-pid-dir or --without-pid-dir was given.
16520 if test "${with_pid_dir+set}" = set; then
16521   withval="$with_pid_dir"
16522
16523         if test "x$withval" != "xno" ; then
16524             piddir=$withval
16525         fi
16526
16527
16528 fi;
16529
16530 cat >>confdefs.h <<_ACEOF
16531 #define _PATH_BACULA_PIDDIR "$piddir"
16532 _ACEOF
16533
16534
16535
16536
16537 # ------------------------------------
16538 # Where to place subsys "lock file"
16539 # ------------------------------------
16540 subsysdir=/var/run/subsys
16541 if test -d /var/run/subsys; then
16542    subsysdir=/var/run/subsys
16543 elif test -d /var/lock/subsys; then
16544    subsysdir=/var/lock/subsys
16545 else
16546    subsysdir=/var/run/subsys
16547 fi
16548
16549 # Check whether --with-subsys-dir or --without-subsys-dir was given.
16550 if test "${with_subsys_dir+set}" = set; then
16551   withval="$with_subsys_dir"
16552
16553         if test "x$withval" != "xno" ; then
16554             subsysdir=$withval
16555         fi
16556
16557
16558 fi;
16559
16560
16561
16562
16563
16564 # ------------------------------------
16565 # Where to start assigning ports
16566 # ------------------------------------
16567 baseport=9101
16568
16569 # Check whether --with-baseport or --without-baseport was given.
16570 if test "${with_baseport+set}" = set; then
16571   withval="$with_baseport"
16572
16573         if test "x$withval" != "xno" ; then
16574              baseport=$withval
16575         fi
16576
16577
16578 fi;
16579
16580
16581 dir_port=`expr $baseport`
16582 fd_port=`expr $baseport + 1`
16583 sd_port=`expr $fd_port + 1`
16584
16585
16586
16587
16588
16589
16590 # ------------------------------------------
16591 # Generate passwords
16592 # ------------------------------------------
16593 dir_password=
16594
16595 # Check whether --with-dir-password or --without-dir-password was given.
16596 if test "${with_dir_password+set}" = set; then
16597   withval="$with_dir_password"
16598
16599        if test "x$withval" != "xno" ; then
16600            dir_password=$withval
16601        fi
16602
16603
16604 fi;
16605
16606 if test "x$dir_password" = "x" ; then
16607    if test "x$OPENSSL" = "xnone" ; then
16608       key=`autoconf/randpass 33`
16609    else
16610       key=`openssl rand -base64 33`
16611    fi
16612    dir_password=$key
16613 fi
16614
16615 fd_password=
16616
16617 # Check whether --with-fd-password or --without-fd-password was given.
16618 if test "${with_fd_password+set}" = set; then
16619   withval="$with_fd_password"
16620
16621        if test "x$withval" != "xno" ; then
16622            fd_password=$withval
16623        fi
16624
16625
16626 fi;
16627
16628 if test "x$fd_password" = "x" ; then
16629    if test "x$OPENSSL" = "xnone" ; then
16630       key=`autoconf/randpass 37`
16631    else
16632       key=`openssl rand -base64 33`
16633    fi
16634    fd_password=$key
16635 fi
16636
16637 sd_password=
16638
16639 # Check whether --with-sd-password or --without-sd-password was given.
16640 if test "${with_sd_password+set}" = set; then
16641   withval="$with_sd_password"
16642
16643        if test "x$withval" != "xno" ; then
16644            sd_password=$withval
16645        fi
16646
16647
16648 fi;
16649
16650 if test "x$sd_password" = "x" ; then
16651    if test "x$OPENSSL" = "xnone" ; then
16652       key=`autoconf/randpass 41`
16653    else
16654       key=`openssl rand -base64 33`
16655    fi
16656    sd_password=$key
16657 fi
16658
16659 mon_dir_password=
16660
16661 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
16662 if test "${with_mon_dir_password+set}" = set; then
16663   withval="$with_mon_dir_password"
16664
16665        if test "x$withval" != "xno" ; then
16666            mon_dir_password=$withval
16667        fi
16668
16669
16670 fi;
16671
16672 if test "x$mon_dir_password" = "x" ; then
16673    if test "x$OPENSSL" = "xnone" ; then
16674       key=`autoconf/randpass 33`
16675    else
16676       key=`openssl rand -base64 33`
16677    fi
16678    mon_dir_password=$key
16679 fi
16680
16681 mon_fd_password=
16682
16683 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
16684 if test "${with_mon_fd_password+set}" = set; then
16685   withval="$with_mon_fd_password"
16686
16687        if test "x$withval" != "xno" ; then
16688            mon_fd_password=$withval
16689        fi
16690
16691
16692 fi;
16693
16694 if test "x$mon_fd_password" = "x" ; then
16695    if test "x$OPENSSL" = "xnone" ; then
16696       key=`autoconf/randpass 37`
16697    else
16698       key=`openssl rand -base64 33`
16699    fi
16700    mon_fd_password=$key
16701 fi
16702
16703 mon_sd_password=
16704
16705 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
16706 if test "${with_mon_sd_password+set}" = set; then
16707   withval="$with_mon_sd_password"
16708
16709        if test "x$withval" != "xno" ; then
16710            mon_sd_password=$withval
16711        fi
16712
16713
16714 fi;
16715
16716 if test "x$mon_sd_password" = "x" ; then
16717    if test "x$OPENSSL" = "xnone" ; then
16718       key=`autoconf/randpass 41`
16719    else
16720       key=`openssl rand -base64 33`
16721    fi
16722    mon_sd_password=$key
16723 fi
16724
16725
16726
16727
16728
16729
16730
16731
16732 #
16733 # Pickup any database name
16734 #
16735 db_name=bacula
16736
16737 # Check whether --with-db_name or --without-db_name was given.
16738 if test "${with_db_name+set}" = set; then
16739   withval="$with_db_name"
16740
16741         if test "x$withval" != "x" ; then
16742              db_name=$withval
16743         fi
16744
16745
16746 fi;
16747
16748
16749 db_user=bacula
16750
16751 # Check whether --with-db_user or --without-db_user was given.
16752 if test "${with_db_user+set}" = set; then
16753   withval="$with_db_user"
16754
16755         if test "x$withval" != "x" ; then
16756              db_user=$withval
16757         fi
16758
16759
16760 fi;
16761
16762
16763
16764 #
16765 # Handle users and groups for each daemon
16766 #
16767 dir_user=
16768
16769 # Check whether --with-dir_user or --without-dir_user was given.
16770 if test "${with_dir_user+set}" = set; then
16771   withval="$with_dir_user"
16772
16773         if test "x$withval" != "x" ; then
16774              dir_user=$withval
16775         fi
16776
16777
16778 fi;
16779
16780 dir_group=
16781
16782 # Check whether --with-dir_group or --without-dir_group was given.
16783 if test "${with_dir_group+set}" = set; then
16784   withval="$with_dir_group"
16785
16786         if test "x$withval" != "x" ; then
16787              dir_group=$withval
16788         fi
16789
16790
16791 fi;
16792
16793 sd_user=
16794
16795 # Check whether --with-sd_user or --without-sd_user was given.
16796 if test "${with_sd_user+set}" = set; then
16797   withval="$with_sd_user"
16798
16799         if test "x$withval" != "x" ; then
16800              sd_user=$withval
16801         fi
16802
16803
16804 fi;
16805
16806 sd_group=
16807
16808 # Check whether --with-sd_group or --without-sd_group was given.
16809 if test "${with_sd_group+set}" = set; then
16810   withval="$with_sd_group"
16811
16812         if test "x$withval" != "x" ; then
16813              sd_group=$withval
16814         fi
16815
16816
16817 fi;
16818
16819 fd_user=
16820
16821 # Check whether --with-fd_user or --without-fd_user was given.
16822 if test "${with_fd_user+set}" = set; then
16823   withval="$with_fd_user"
16824
16825         if test "x$withval" != "x" ; then
16826              fd_user=$withval
16827         fi
16828
16829
16830 fi;
16831
16832 fd_group=
16833
16834 # Check whether --with-fd_group or --without-fd_group was given.
16835 if test "${with_fd_group+set}" = set; then
16836   withval="$with_fd_group"
16837
16838         if test "x$withval" != "x" ; then
16839              fd_group=$withval
16840         fi
16841
16842
16843 fi;
16844
16845
16846
16847
16848
16849
16850
16851
16852 #
16853 # allow setting default executable permissions
16854 #
16855 SBINPERM=0754
16856
16857 # Check whether --with-sbin-perm or --without-sbin-perm was given.
16858 if test "${with_sbin_perm+set}" = set; then
16859   withval="$with_sbin_perm"
16860
16861         if test "x$withval" != "x" ; then
16862             SBINPERM=$withval
16863         fi
16864
16865
16866 fi;
16867
16868
16869
16870 # ------------------------------------------------
16871 # Bacula check for various SQL database engines
16872 # ------------------------------------------------
16873 SQL_LIB=
16874
16875 db_found=no
16876 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
16877 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
16878
16879 # Check whether --with-postgresql or --without-postgresql was given.
16880 if test "${with_postgresql+set}" = set; then
16881   withval="$with_postgresql"
16882
16883   if test "$withval" != "no"; then
16884       if test "$db_found" = "yes"; then
16885           echo "$as_me:$LINENO: result: error" >&5
16886 echo "${ECHO_T}error" >&6
16887           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
16888 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
16889    { (exit 1); exit 1; }; };
16890       fi
16891       if test "$withval" = "yes"; then
16892           PG_CONFIG=`which pg_config`
16893           if test -n "$PG_CONFIG";then
16894               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
16895               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
16896               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
16897           elif test -f /usr/local/include/libpq-fe.h; then
16898               POSTGRESQL_INCDIR=/usr/local/include
16899               if test -d /usr/local/lib64; then
16900                  POSTGRESQL_LIBDIR=/usr/local/lib64
16901               else
16902                  POSTGRESQL_LIBDIR=/usr/local/lib
16903               fi
16904               POSTGRESQL_BINDIR=/usr/local/bin
16905           elif test -f /usr/include/libpq-fe.h; then
16906               POSTGRESQL_INCDIR=/usr/include
16907               if test -d /usr/lib64; then
16908                  POSTGRESQL_LIBDIR=/usr/lib64
16909               else
16910                  POSTGRESQL_LIBDIR=/usr/lib
16911               fi
16912               POSTGRESQL_BINDIR=/usr/bin
16913           elif test -f /usr/include/pgsql/libpq-fe.h; then
16914               POSTGRESQL_INCDIR=/usr/include/pgsql
16915               if test -d /usr/lib64/pgsql; then
16916                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
16917               else
16918                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
16919               fi
16920               POSTGRESQL_BINDIR=/usr/bin
16921           elif test -f /usr/include/postgresql/libpq-fe.h; then
16922               POSTGRESQL_INCDIR=/usr/include/postgresql
16923               if test -d /usr/lib64/postgresql; then
16924                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
16925               else
16926                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
16927               fi
16928               POSTGRESQL_BINDIR=/usr/bin
16929           else
16930               echo "$as_me:$LINENO: result: no" >&5
16931 echo "${ECHO_T}no" >&6
16932               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
16933 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
16934    { (exit 1); exit 1; }; }
16935           fi
16936       elif test -f $withval/include/libpq-fe.h; then
16937           POSTGRESQL_INCDIR=$withval/include
16938           POSTGRESQL_LIBDIR=$withval/lib
16939           POSTGRESQL_BINDIR=$withval/bin
16940       elif test -f $withval/include/postgresql/libpq-fe.h; then
16941           POSTGRESQL_INCDIR=$withval/include/postgresql
16942      if test -d $withval/lib64; then
16943          POSTGRESQL_LIBDIR=$withval/lib64
16944      else
16945          POSTGRESQL_LIBDIR=$withval/lib
16946      fi
16947           POSTGRESQL_BINDIR=$withval/bin
16948       else
16949           echo "$as_me:$LINENO: result: no" >&5
16950 echo "${ECHO_T}no" >&6
16951           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
16952 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
16953    { (exit 1); exit 1; }; }
16954       fi
16955       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
16956       echo "$as_me:$LINENO: checking for crypt" >&5
16957 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
16958 if test "${ac_cv_func_crypt+set}" = set; then
16959   echo $ECHO_N "(cached) $ECHO_C" >&6
16960 else
16961   cat >conftest.$ac_ext <<_ACEOF
16962 /* confdefs.h.  */
16963 _ACEOF
16964 cat confdefs.h >>conftest.$ac_ext
16965 cat >>conftest.$ac_ext <<_ACEOF
16966 /* end confdefs.h.  */
16967 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
16968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16969 #define crypt innocuous_crypt
16970
16971 /* System header to define __stub macros and hopefully few prototypes,
16972     which can conflict with char crypt (); below.
16973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16974     <limits.h> exists even on freestanding compilers.  */
16975
16976 #ifdef __STDC__
16977 # include <limits.h>
16978 #else
16979 # include <assert.h>
16980 #endif
16981
16982 #undef crypt
16983
16984 /* Override any gcc2 internal prototype to avoid an error.  */
16985 #ifdef __cplusplus
16986 extern "C"
16987 {
16988 #endif
16989 /* We use char because int might match the return type of a gcc2
16990    builtin and then its argument prototype would still apply.  */
16991 char crypt ();
16992 /* The GNU C library defines this for functions which it implements
16993     to always fail with ENOSYS.  Some functions are actually named
16994     something starting with __ and the normal name is an alias.  */
16995 #if defined (__stub_crypt) || defined (__stub___crypt)
16996 choke me
16997 #else
16998 char (*f) () = crypt;
16999 #endif
17000 #ifdef __cplusplus
17001 }
17002 #endif
17003
17004 int
17005 main ()
17006 {
17007 return f != crypt;
17008   ;
17009   return 0;
17010 }
17011 _ACEOF
17012 rm -f conftest.$ac_objext conftest$ac_exeext
17013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17014   (eval $ac_link) 2>conftest.er1
17015   ac_status=$?
17016   grep -v '^ *+' conftest.er1 >conftest.err
17017   rm -f conftest.er1
17018   cat conftest.err >&5
17019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020   (exit $ac_status); } &&
17021          { ac_try='test -z "$ac_c_werror_flag"
17022                          || test ! -s conftest.err'
17023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024   (eval $ac_try) 2>&5
17025   ac_status=$?
17026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027   (exit $ac_status); }; } &&
17028          { ac_try='test -s conftest$ac_exeext'
17029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030   (eval $ac_try) 2>&5
17031   ac_status=$?
17032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033   (exit $ac_status); }; }; then
17034   ac_cv_func_crypt=yes
17035 else
17036   echo "$as_me: failed program was:" >&5
17037 sed 's/^/| /' conftest.$ac_ext >&5
17038
17039 ac_cv_func_crypt=no
17040 fi
17041 rm -f conftest.err conftest.$ac_objext \
17042       conftest$ac_exeext conftest.$ac_ext
17043 fi
17044 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17045 echo "${ECHO_T}$ac_cv_func_crypt" >&6
17046 if test $ac_cv_func_crypt = yes; then
17047   :
17048 else
17049   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17050 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
17051 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17052   echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054   ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lcrypt  $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 /* confdefs.h.  */
17058 _ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h.  */
17062
17063 /* Override any gcc2 internal prototype to avoid an error.  */
17064 #ifdef __cplusplus
17065 extern "C"
17066 #endif
17067 /* We use char because int might match the return type of a gcc2
17068    builtin and then its argument prototype would still apply.  */
17069 char crypt ();
17070 int
17071 main ()
17072 {
17073 crypt ();
17074   ;
17075   return 0;
17076 }
17077 _ACEOF
17078 rm -f conftest.$ac_objext conftest$ac_exeext
17079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17080   (eval $ac_link) 2>conftest.er1
17081   ac_status=$?
17082   grep -v '^ *+' conftest.er1 >conftest.err
17083   rm -f conftest.er1
17084   cat conftest.err >&5
17085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086   (exit $ac_status); } &&
17087          { ac_try='test -z "$ac_c_werror_flag"
17088                          || test ! -s conftest.err'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; } &&
17094          { ac_try='test -s conftest$ac_exeext'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; }; then
17100   ac_cv_lib_crypt_crypt=yes
17101 else
17102   echo "$as_me: failed program was:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17104
17105 ac_cv_lib_crypt_crypt=no
17106 fi
17107 rm -f conftest.err conftest.$ac_objext \
17108       conftest$ac_exeext conftest.$ac_ext
17109 LIBS=$ac_check_lib_save_LIBS
17110 fi
17111 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17112 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
17113 if test $ac_cv_lib_crypt_crypt = yes; then
17114   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17115 fi
17116
17117 fi
17118
17119       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17120       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17121       SQL_BINDIR=$POSTGRESQL_BINDIR
17122       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17123
17124       cat >>confdefs.h <<\_ACEOF
17125 #define HAVE_POSTGRESQL 1
17126 _ACEOF
17127
17128       echo "$as_me:$LINENO: result: yes" >&5
17129 echo "${ECHO_T}yes" >&6
17130       db_found=yes
17131       support_postgresql=yes
17132       db_type=PostgreSQL
17133       DB_TYPE=postgresql
17134   else
17135       echo "$as_me:$LINENO: result: no" >&5
17136 echo "${ECHO_T}no" >&6
17137   fi
17138
17139 else
17140
17141   echo "$as_me:$LINENO: result: no" >&5
17142 echo "${ECHO_T}no" >&6
17143
17144 fi;
17145
17146
17147
17148
17149
17150
17151
17152 db_found=no
17153 echo "$as_me:$LINENO: checking for MySQL support" >&5
17154 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
17155
17156 # Check whether --with-mysql or --without-mysql was given.
17157 if test "${with_mysql+set}" = set; then
17158   withval="$with_mysql"
17159
17160   if test "$withval" != "no"; then
17161         if test "$withval" = "yes"; then
17162            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17163                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17164                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17165                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17166                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17167                    else
17168                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17169                    fi
17170                    MYSQL_BINDIR=/usr/local/mysql/bin
17171            elif test -f /usr/include/mysql/mysql.h; then
17172                    MYSQL_INCDIR=/usr/include/mysql
17173                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17174                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17175                            MYSQL_LIBDIR=/usr/lib64/mysql
17176                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17177                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17178                            MYSQL_LIBDIR=/usr/lib/mysql
17179                    else
17180                            MYSQL_LIBDIR=/usr/lib
17181                    fi
17182                    MYSQL_BINDIR=/usr/bin
17183            elif test -f /usr/include/mysql.h; then
17184                    MYSQL_INCDIR=/usr/include
17185                    if test -f /usr/lib64/libmysqlclient_r.a \
17186                         -o -f /usr/lib64/libmysqlclient_r.so; then
17187                            MYSQL_LIBDIR=/usr/lib64
17188                    else
17189                            MYSQL_LIBDIR=/usr/lib
17190                    fi
17191                    MYSQL_BINDIR=/usr/bin
17192            elif test -f /usr/local/include/mysql/mysql.h; then
17193                    MYSQL_INCDIR=/usr/local/include/mysql
17194                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17195                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17196                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17197                    else
17198                            MYSQL_LIBDIR=/usr/local/lib/mysql
17199                    fi
17200                    MYSQL_BINDIR=/usr/local/bin
17201            elif test -f /usr/local/include/mysql.h; then
17202                    MYSQL_INCDIR=/usr/local/include
17203                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17204                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17205                            MYSQL_LIBDIR=/usr/local/lib64
17206                    else
17207                            MYSQL_LIBDIR=/usr/local/lib
17208                    fi
17209                    MYSQL_BINDIR=/usr/local/bin
17210            else
17211               echo "$as_me:$LINENO: result: no" >&5
17212 echo "${ECHO_T}no" >&6
17213               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17214 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17215    { (exit 1); exit 1; }; }
17216            fi
17217         else
17218            if test -f $withval/include/mysql/mysql.h; then
17219               MYSQL_INCDIR=$withval/include/mysql
17220               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17221                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17222                  MYSQL_LIBDIR=$withval/lib64/mysql
17223               else
17224                  MYSQL_LIBDIR=$withval/lib/mysql
17225                  # Solaris ...
17226                  if test -f $withval/lib/libmysqlclient_r.so; then
17227                     MYSQL_LIBDIR=$withval/lib
17228                  fi
17229               fi
17230               MYSQL_BINDIR=$withval/bin
17231            elif test -f $withval/include/mysql.h; then
17232               MYSQL_INCDIR=$withval/include
17233               if test -f $withval/lib64/libmysqlclient_r.a \
17234                    -o -f $withval/lib64/libmysqlclient_r.so; then
17235                  MYSQL_LIBDIR=$withval/lib64
17236               else
17237                  MYSQL_LIBDIR=$withval/lib
17238               fi
17239               MYSQL_BINDIR=$withval/bin
17240            else
17241               echo "$as_me:$LINENO: result: no" >&5
17242 echo "${ECHO_T}no" >&6
17243               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17244 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17245    { (exit 1); exit 1; }; }
17246            fi
17247         fi
17248     SQL_INCLUDE=-I$MYSQL_INCDIR
17249     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17250          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17251        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17252        cat >>confdefs.h <<\_ACEOF
17253 #define HAVE_THREAD_SAFE_MYSQL 1
17254 _ACEOF
17255
17256     fi
17257     SQL_BINDIR=$MYSQL_BINDIR
17258     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17259
17260     cat >>confdefs.h <<\_ACEOF
17261 #define HAVE_MYSQL 1
17262 _ACEOF
17263
17264     echo "$as_me:$LINENO: result: yes" >&5
17265 echo "${ECHO_T}yes" >&6
17266     db_found=yes
17267     support_mysql=yes
17268     db_type=MySQL
17269     DB_TYPE=mysql
17270
17271   else
17272         echo "$as_me:$LINENO: result: no" >&5
17273 echo "${ECHO_T}no" >&6
17274   fi
17275
17276
17277 fi;
17278
17279
17280 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
17281 if test "${with_embedded_mysql+set}" = set; then
17282   withval="$with_embedded_mysql"
17283
17284   if test "$withval" != "no"; then
17285         if test "$withval" = "yes"; then
17286                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17287                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17288                         if test -d /usr/local/mysql/lib64/mysql; then
17289                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17290                         else
17291                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17292                         fi
17293                         MYSQL_BINDIR=/usr/local/mysql/bin
17294                 elif test -f /usr/include/mysql/mysql.h; then
17295                         MYSQL_INCDIR=/usr/include/mysql
17296                         if test -d /usr/lib64/mysql; then
17297                                 MYSQL_LIBDIR=/usr/lib64/mysql
17298                         else
17299                                 MYSQL_LIBDIR=/usr/lib/mysql
17300                         fi
17301                         MYSQL_BINDIR=/usr/bin
17302                 elif test -f /usr/include/mysql.h; then
17303                         MYSQL_INCDIR=/usr/include
17304                         if test -d /usr/lib64; then
17305                                 MYSQL_LIBDIR=/usr/lib64
17306                         else
17307                                 MYSQL_LIBDIR=/usr/lib
17308                         fi
17309                         MYSQL_BINDIR=/usr/bin
17310                 elif test -f /usr/local/include/mysql/mysql.h; then
17311                         MYSQL_INCDIR=/usr/local/include/mysql
17312                         if test -d /usr/local/lib64/mysql; then
17313                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17314                         else
17315                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17316                         fi
17317                         MYSQL_BINDIR=/usr/local/bin
17318                 elif test -f /usr/local/include/mysql.h; then
17319                         MYSQL_INCDIR=/usr/local/include
17320                         if test -d /usr/local/lib64; then
17321                                 MYSQL_LIBDIR=/usr/local/lib64
17322                         else
17323                                 MYSQL_LIBDIR=/usr/local/lib
17324                         fi
17325                         MYSQL_BINDIR=/usr/local/bin
17326                 else
17327                    echo "$as_me:$LINENO: result: no" >&5
17328 echo "${ECHO_T}no" >&6
17329                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17330 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17331    { (exit 1); exit 1; }; }
17332                 fi
17333         else
17334                 if test -f $withval/include/mysql/mysql.h; then
17335                         MYSQL_INCDIR=$withval/include/mysql
17336                         if test -d $withval/lib64/mysql; then
17337                                 MYSQL_LIBDIR=$withval/lib64/mysql
17338                         else
17339                                 MYSQL_LIBDIR=$withval/lib/mysql
17340                         fi
17341                         MYSQL_BINDIR=$withval/bin
17342                 elif test -f $withval/include/mysql.h; then
17343                         MYSQL_INCDIR=$withval/include
17344                         if test -d $withval/lib64; then
17345                                 MYSQL_LIBDIR=$withval/lib64
17346                         else
17347                                 MYSQL_LIBDIR=$withval/lib
17348                         fi
17349                         MYSQL_BINDIR=$withval/bin
17350                 else
17351                    echo "$as_me:$LINENO: result: no" >&5
17352 echo "${ECHO_T}no" >&6
17353                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17354 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17355    { (exit 1); exit 1; }; }
17356                 fi
17357         fi
17358     SQL_INCLUDE=-I$MYSQL_INCDIR
17359     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17360     SQL_BINDIR=$MYSQL_BINDIR
17361     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17362
17363     cat >>confdefs.h <<\_ACEOF
17364 #define HAVE_MYSQL 1
17365 _ACEOF
17366
17367     cat >>confdefs.h <<\_ACEOF
17368 #define HAVE_EMBEDDED_MYSQL 1
17369 _ACEOF
17370
17371     echo "$as_me:$LINENO: result: yes" >&5
17372 echo "${ECHO_T}yes" >&6
17373     db_found=yes
17374     support_mysql=yes
17375     db_type=MySQL
17376     DB_TYPE=mysql
17377
17378   else
17379         echo "$as_me:$LINENO: result: no" >&5
17380 echo "${ECHO_T}no" >&6
17381   fi
17382
17383
17384 fi;
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394 db_found=no
17395 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17396 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
17397
17398 # Check whether --with-sqlite3 or --without-sqlite3 was given.
17399 if test "${with_sqlite3+set}" = set; then
17400   withval="$with_sqlite3"
17401
17402   if test "$withval" != "no"; then
17403      if test "$withval" = "yes"; then
17404         if test -f /usr/local/include/sqlite3.h; then
17405            SQLITE_INCDIR=/usr/local/include
17406            if test -d /usr/local/lib64; then
17407               SQLITE_LIBDIR=/usr/local/lib64
17408            else
17409               SQLITE_LIBDIR=/usr/local/lib
17410            fi
17411            SQLITE_BINDIR=/usr/local/bin
17412         elif test -f /usr/include/sqlite3.h; then
17413            SQLITE_INCDIR=/usr/include
17414            if test -d /usr/lib64; then
17415               SQLITE_LIBDIR=/usr/lib64
17416            else
17417               SQLITE_LIBDIR=/usr/lib
17418            fi
17419            SQLITE_BINDIR=/usr/bin
17420         elif test -f $prefix/include/sqlite3.h; then
17421            SQLITE_INCDIR=$prefix/include
17422            if test -d $prefix/lib64; then
17423               SQLITE_LIBDIR=$prefix/lib64
17424            else
17425               SQLITE_LIBDIR=$prefix/lib
17426            fi
17427            SQLITE_BINDIR=$prefix/bin
17428         else
17429            echo "$as_me:$LINENO: result: no" >&5
17430 echo "${ECHO_T}no" >&6
17431            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17432 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17433    { (exit 1); exit 1; }; }
17434         fi
17435      else
17436         if test -f $withval/sqlite3.h; then
17437            SQLITE_INCDIR=$withval
17438            SQLITE_LIBDIR=$withval
17439            SQLITE_BINDIR=$withval
17440         elif test -f $withval/include/sqlite3.h; then
17441            SQLITE_INCDIR=$withval/include
17442            if test -d $withval/lib64; then
17443               SQLITE_LIBDIR=$withval/lib64
17444            else
17445               SQLITE_LIBDIR=$withval/lib
17446            fi
17447            SQLITE_BINDIR=$withval/bin
17448         else
17449            echo "$as_me:$LINENO: result: no" >&5
17450 echo "${ECHO_T}no" >&6
17451            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17452 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17453    { (exit 1); exit 1; }; }
17454         fi
17455      fi
17456      SQL_INCLUDE=-I$SQLITE_INCDIR
17457      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17458      SQL_BINDIR=$SQLITE_BINDIR
17459      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17460
17461      cat >>confdefs.h <<\_ACEOF
17462 #define HAVE_SQLITE3 1
17463 _ACEOF
17464
17465      echo "$as_me:$LINENO: result: yes" >&5
17466 echo "${ECHO_T}yes" >&6
17467      db_found=yes
17468      support_sqlite3=yes
17469      db_type=SQLite3
17470      DB_TYPE=sqlite3
17471
17472   else
17473      echo "$as_me:$LINENO: result: no" >&5
17474 echo "${ECHO_T}no" >&6
17475   fi
17476
17477 else
17478
17479   echo "$as_me:$LINENO: result: no" >&5
17480 echo "${ECHO_T}no" >&6
17481
17482 fi;
17483
17484
17485
17486
17487
17488
17489
17490 db_found=no
17491 echo "$as_me:$LINENO: checking for SQLite support" >&5
17492 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
17493
17494 # Check whether --with-sqlite or --without-sqlite was given.
17495 if test "${with_sqlite+set}" = set; then
17496   withval="$with_sqlite"
17497
17498   if test "$withval" != "no"; then
17499      if test "$withval" = "yes"; then
17500         if test -f /usr/local/include/sqlite.h; then
17501            SQLITE_INCDIR=/usr/local/include
17502            if test -d /usr/local/lib64; then
17503               SQLITE_LIBDIR=/usr/local/lib64
17504            else
17505               SQLITE_LIBDIR=/usr/local/lib
17506            fi
17507            SQLITE_BINDIR=/usr/local/bin
17508         elif test -f /usr/include/sqlite.h; then
17509            SQLITE_INCDIR=/usr/include
17510            if test -d /usr/lib64; then
17511               SQLITE_LIBDIR=/usr/lib64
17512            else
17513               SQLITE_LIBDIR=/usr/lib
17514            fi
17515            SQLITE_BINDIR=/usr/bin
17516         elif test -f $prefix/include/sqlite.h; then
17517            SQLITE_INCDIR=$prefix/include
17518            if test -d $prefix/lib64; then
17519               SQLITE_LIBDIR=$prefix/lib64
17520            else
17521               SQLITE_LIBDIR=$prefix/lib
17522            fi
17523            SQLITE_BINDIR=$prefix/bin
17524         else
17525            echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6
17527            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17528 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17529    { (exit 1); exit 1; }; }
17530         fi
17531      else
17532         if test -f $withval/sqlite.h; then
17533            SQLITE_INCDIR=$withval
17534            SQLITE_LIBDIR=$withval
17535            SQLITE_BINDIR=$withval
17536         elif test -f $withval/include/sqlite.h; then
17537            SQLITE_INCDIR=$withval/include
17538            if test -d $withval/lib64; then
17539               SQLITE_LIBDIR=$withval/lib64
17540            else
17541               SQLITE_LIBDIR=$withval/lib
17542            fi
17543            SQLITE_BINDIR=$withval/bin
17544         else
17545            echo "$as_me:$LINENO: result: no" >&5
17546 echo "${ECHO_T}no" >&6
17547            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17548 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17549    { (exit 1); exit 1; }; }
17550         fi
17551      fi
17552      SQL_INCLUDE=-I$SQLITE_INCDIR
17553      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17554      SQL_BINDIR=$SQLITE_BINDIR
17555      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17556
17557      cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_SQLITE 1
17559 _ACEOF
17560
17561      echo "$as_me:$LINENO: result: yes" >&5
17562 echo "${ECHO_T}yes" >&6
17563      db_found=yes
17564      support_sqlite=yes
17565      db_type=SQLite
17566      DB_TYPE=sqlite
17567
17568   else
17569      echo "$as_me:$LINENO: result: no" >&5
17570 echo "${ECHO_T}no" >&6
17571   fi
17572
17573 else
17574
17575   echo "$as_me:$LINENO: result: no" >&5
17576 echo "${ECHO_T}no" >&6
17577
17578 fi;
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588 # -------------------------------------------
17589 # enable batch attribute DB insert (default on)
17590 # -------------------------------------------
17591 support_batch_insert=no
17592 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17593 pkg=$?
17594 if test $pkg = 0; then
17595    support_batch_insert=yes
17596    # Check whether --enable-batch-insert or --disable-batch-insert was given.
17597 if test "${enable_batch_insert+set}" = set; then
17598   enableval="$enable_batch_insert"
17599   if test x$enableval = xno; then
17600        support_batch_insert=no
17601       else
17602        support_batch_insert=yes
17603      fi
17604 fi;
17605 fi
17606
17607 # Check if postgresql support batch mode
17608 if test x$DB_TYPE = xpostgresql; then
17609    A=`nm $SQL_LIB | grep PQputCopyData`
17610    pkg=$?
17611    if test $pkg != 0; then
17612       support_batch_insert=no
17613    fi
17614 fi
17615
17616 if test $support_batch_insert = yes ; then
17617
17618 cat >>confdefs.h <<\_ACEOF
17619 #define HAVE_BATCH_FILE_INSERT 1
17620 _ACEOF
17621
17622 fi
17623
17624
17625 cat >>confdefs.h <<\_ACEOF
17626 #define PROTOTYPES 1
17627 _ACEOF
17628
17629
17630 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17631     if test -z "$CCOPTS"; then
17632         CCOPTS='-g -O2 -Wall'
17633     fi
17634     CFLAGS="$CCOPTS"
17635 fi
17636
17637
17638
17639
17640 largefile_support="no"
17641
17642    # Check whether --enable-largefile or --disable-largefile was given.
17643 if test "${enable_largefile+set}" = set; then
17644   enableval="$enable_largefile"
17645
17646 fi;
17647    if test "$enable_largefile" != no; then
17648      if test -n "$ac_tool_prefix"; then
17649   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17650 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17651 echo "$as_me:$LINENO: checking for $ac_word" >&5
17652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17653 if test "${ac_cv_prog_GETCONF+set}" = set; then
17654   echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656   if test -n "$GETCONF"; then
17657   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17658 else
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17661 do
17662   IFS=$as_save_IFS
17663   test -z "$as_dir" && as_dir=.
17664   for ac_exec_ext in '' $ac_executable_extensions; do
17665   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17668     break 2
17669   fi
17670 done
17671 done
17672
17673 fi
17674 fi
17675 GETCONF=$ac_cv_prog_GETCONF
17676 if test -n "$GETCONF"; then
17677   echo "$as_me:$LINENO: result: $GETCONF" >&5
17678 echo "${ECHO_T}$GETCONF" >&6
17679 else
17680   echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6
17682 fi
17683
17684 fi
17685 if test -z "$ac_cv_prog_GETCONF"; then
17686   ac_ct_GETCONF=$GETCONF
17687   # Extract the first word of "getconf", so it can be a program name with args.
17688 set dummy getconf; ac_word=$2
17689 echo "$as_me:$LINENO: checking for $ac_word" >&5
17690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17691 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17692   echo $ECHO_N "(cached) $ECHO_C" >&6
17693 else
17694   if test -n "$ac_ct_GETCONF"; then
17695   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17696 else
17697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17698 for as_dir in $PATH
17699 do
17700   IFS=$as_save_IFS
17701   test -z "$as_dir" && as_dir=.
17702   for ac_exec_ext in '' $ac_executable_extensions; do
17703   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17704     ac_cv_prog_ac_ct_GETCONF="getconf"
17705     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17706     break 2
17707   fi
17708 done
17709 done
17710
17711 fi
17712 fi
17713 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17714 if test -n "$ac_ct_GETCONF"; then
17715   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17716 echo "${ECHO_T}$ac_ct_GETCONF" >&6
17717 else
17718   echo "$as_me:$LINENO: result: no" >&5
17719 echo "${ECHO_T}no" >&6
17720 fi
17721
17722   GETCONF=$ac_ct_GETCONF
17723 else
17724   GETCONF="$ac_cv_prog_GETCONF"
17725 fi
17726
17727      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17728 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
17729 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17730   echo $ECHO_N "(cached) $ECHO_C" >&6
17731 else
17732   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17733         ac_cv_sys_largefile_CFLAGS=no
17734         case "$host_os" in
17735            # IRIX 6.2 and later require cc -n32.
17736            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17737              if test "$GCC" != yes; then
17738                ac_cv_sys_largefile_CFLAGS=-n32
17739              fi
17740              ac_save_CC="$CC"
17741              CC="$CC $ac_cv_sys_largefile_CFLAGS"
17742              cat >conftest.$ac_ext <<_ACEOF
17743 /* confdefs.h.  */
17744 _ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h.  */
17748
17749 int
17750 main ()
17751 {
17752
17753   ;
17754   return 0;
17755 }
17756 _ACEOF
17757 rm -f conftest.$ac_objext conftest$ac_exeext
17758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17759   (eval $ac_link) 2>conftest.er1
17760   ac_status=$?
17761   grep -v '^ *+' conftest.er1 >conftest.err
17762   rm -f conftest.er1
17763   cat conftest.err >&5
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); } &&
17766          { ac_try='test -z "$ac_c_werror_flag"
17767                          || test ! -s conftest.err'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; } &&
17773          { ac_try='test -s conftest$ac_exeext'
17774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17775   (eval $ac_try) 2>&5
17776   ac_status=$?
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); }; }; then
17779   :
17780 else
17781   echo "$as_me: failed program was:" >&5
17782 sed 's/^/| /' conftest.$ac_ext >&5
17783
17784 ac_cv_sys_largefile_CFLAGS=no
17785 fi
17786 rm -f conftest.err conftest.$ac_objext \
17787       conftest$ac_exeext conftest.$ac_ext
17788              CC="$ac_save_CC"
17789            esac
17790       }
17791 fi
17792 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17793 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
17794      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17795 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
17796 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17797   echo $ECHO_N "(cached) $ECHO_C" >&6
17798 else
17799   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17800         ac_cv_sys_largefile_LDFLAGS=no
17801
17802       }
17803 fi
17804 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17805 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
17806      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17807 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
17808 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17809   echo $ECHO_N "(cached) $ECHO_C" >&6
17810 else
17811   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17812         ac_cv_sys_largefile_LIBS=no
17813
17814       }
17815 fi
17816 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17817 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
17818
17819      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17820        case "$ac_flag" in
17821        no) ;;
17822        -D_FILE_OFFSET_BITS=*) ;;
17823        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17824        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17825        -D?* | -I?*)
17826          case "$ac_flag" in
17827    no) ;;
17828    ?*)
17829      case "$CPPFLAGS" in
17830      '') CPPFLAGS="$ac_flag" ;;
17831      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17832      esac ;;
17833    esac ;;
17834        *)
17835          case "$ac_flag" in
17836    no) ;;
17837    ?*)
17838      case "$CFLAGS" in
17839      '') CFLAGS="$ac_flag" ;;
17840      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17841      esac ;;
17842    esac ;;
17843        esac
17844      done
17845      case "$ac_cv_sys_largefile_LDFLAGS" in
17846    no) ;;
17847    ?*)
17848      case "$LDFLAGS" in
17849      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17850      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17851      esac ;;
17852    esac
17853      case "$ac_cv_sys_largefile_LIBS" in
17854    no) ;;
17855    ?*)
17856      case "$LIBS" in
17857      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17858      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17859      esac ;;
17860    esac
17861      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17862 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
17863 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17864   echo $ECHO_N "(cached) $ECHO_C" >&6
17865 else
17866   ac_cv_sys_file_offset_bits=no
17867       ac_cv_sys_file_offset_bits=64
17868       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17869         case "$ac_flag" in
17870         -D_FILE_OFFSET_BITS)
17871           ac_cv_sys_file_offset_bits=1 ;;
17872         -D_FILE_OFFSET_BITS=*)
17873           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17874         esac
17875       done
17876
17877 fi
17878 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17879 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
17880    if test "$ac_cv_sys_file_offset_bits" != no; then
17881
17882 cat >>confdefs.h <<_ACEOF
17883 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17884 _ACEOF
17885
17886    fi
17887      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17888 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
17889 if test "${ac_cv_sys_largefile_source+set}" = set; then
17890   echo $ECHO_N "(cached) $ECHO_C" >&6
17891 else
17892   ac_cv_sys_largefile_source=no
17893       ac_cv_sys_largefile_source=1
17894       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17895         case "$ac_flag" in
17896         -D_LARGEFILE_SOURCE)
17897           ac_cv_sys_largefile_source=1 ;;
17898         -D_LARGEFILE_SOURCE=*)
17899           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17900         esac
17901       done
17902
17903 fi
17904 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17905 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
17906    if test "$ac_cv_sys_largefile_source" != no; then
17907
17908 cat >>confdefs.h <<_ACEOF
17909 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17910 _ACEOF
17911
17912    fi
17913      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17914 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
17915 if test "${ac_cv_sys_large_files+set}" = set; then
17916   echo $ECHO_N "(cached) $ECHO_C" >&6
17917 else
17918   ac_cv_sys_large_files=no
17919       ac_cv_sys_large_files=1
17920       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17921         case "$ac_flag" in
17922         -D_LARGE_FILES)
17923           ac_cv_sys_large_files=1 ;;
17924         -D_LARGE_FILES=*)
17925           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17926         esac
17927       done
17928
17929 fi
17930 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17931 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
17932    if test "$ac_cv_sys_large_files" != no; then
17933
17934 cat >>confdefs.h <<_ACEOF
17935 #define _LARGE_FILES $ac_cv_sys_large_files
17936 _ACEOF
17937
17938    fi
17939    fi
17940
17941
17942
17943 echo "$as_me:$LINENO: checking for X" >&5
17944 echo $ECHO_N "checking for X... $ECHO_C" >&6
17945
17946
17947 # Check whether --with-x or --without-x was given.
17948 if test "${with_x+set}" = set; then
17949   withval="$with_x"
17950
17951 fi;
17952 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17953 if test "x$with_x" = xno; then
17954   # The user explicitly disabled X.
17955   have_x=disabled
17956 else
17957   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
17958     # Both variables are already set.
17959     have_x=yes
17960   else
17961     if test "${ac_cv_have_x+set}" = set; then
17962   echo $ECHO_N "(cached) $ECHO_C" >&6
17963 else
17964   # One or both of the vars are not set, and there is no cached value.
17965 ac_x_includes=no ac_x_libraries=no
17966 rm -fr conftest.dir
17967 if mkdir conftest.dir; then
17968   cd conftest.dir
17969   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
17970   cat >Imakefile <<'_ACEOF'
17971 acfindx:
17972         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
17973 _ACEOF
17974   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
17975     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17976     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
17977     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17978     for ac_extension in a so sl; do
17979       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
17980          test -f $ac_im_libdir/libX11.$ac_extension; then
17981         ac_im_usrlibdir=$ac_im_libdir; break
17982       fi
17983     done
17984     # Screen out bogus values from the imake configuration.  They are
17985     # bogus both because they are the default anyway, and because
17986     # using them would break gcc on systems where it needs fixed includes.
17987     case $ac_im_incroot in
17988         /usr/include) ;;
17989         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17990     esac
17991     case $ac_im_usrlibdir in
17992         /usr/lib | /lib) ;;
17993         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17994     esac
17995   fi
17996   cd ..
17997   rm -fr conftest.dir
17998 fi
17999
18000 # Standard set of common directories for X headers.
18001 # Check X11 before X11Rn because it is often a symlink to the current release.
18002 ac_x_header_dirs='
18003 /usr/X11/include
18004 /usr/X11R6/include
18005 /usr/X11R5/include
18006 /usr/X11R4/include
18007
18008 /usr/include/X11
18009 /usr/include/X11R6
18010 /usr/include/X11R5
18011 /usr/include/X11R4
18012
18013 /usr/local/X11/include
18014 /usr/local/X11R6/include
18015 /usr/local/X11R5/include
18016 /usr/local/X11R4/include
18017
18018 /usr/local/include/X11
18019 /usr/local/include/X11R6
18020 /usr/local/include/X11R5
18021 /usr/local/include/X11R4
18022
18023 /usr/X386/include
18024 /usr/x386/include
18025 /usr/XFree86/include/X11
18026
18027 /usr/include
18028 /usr/local/include
18029 /usr/unsupported/include
18030 /usr/athena/include
18031 /usr/local/x11r5/include
18032 /usr/lpp/Xamples/include
18033
18034 /usr/openwin/include
18035 /usr/openwin/share/include'
18036
18037 if test "$ac_x_includes" = no; then
18038   # Guess where to find include files, by looking for Xlib.h.
18039   # First, try using that file with no special directory specified.
18040   cat >conftest.$ac_ext <<_ACEOF
18041 /* confdefs.h.  */
18042 _ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h.  */
18046 #include <X11/Xlib.h>
18047 _ACEOF
18048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18049   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18050   ac_status=$?
18051   grep -v '^ *+' conftest.er1 >conftest.err
18052   rm -f conftest.er1
18053   cat conftest.err >&5
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } >/dev/null; then
18056   if test -s conftest.err; then
18057     ac_cpp_err=$ac_c_preproc_warn_flag
18058     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18059   else
18060     ac_cpp_err=
18061   fi
18062 else
18063   ac_cpp_err=yes
18064 fi
18065 if test -z "$ac_cpp_err"; then
18066   # We can compile using X headers with no special include directory.
18067 ac_x_includes=
18068 else
18069   echo "$as_me: failed program was:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18071
18072   for ac_dir in $ac_x_header_dirs; do
18073   if test -r "$ac_dir/X11/Xlib.h"; then
18074     ac_x_includes=$ac_dir
18075     break
18076   fi
18077 done
18078 fi
18079 rm -f conftest.err conftest.$ac_ext
18080 fi # $ac_x_includes = no
18081
18082 if test "$ac_x_libraries" = no; then
18083   # Check for the libraries.
18084   # See if we find them without any special options.
18085   # Don't add to $LIBS permanently.
18086   ac_save_LIBS=$LIBS
18087   LIBS="-lX11 $LIBS"
18088   cat >conftest.$ac_ext <<_ACEOF
18089 /* confdefs.h.  */
18090 _ACEOF
18091 cat confdefs.h >>conftest.$ac_ext
18092 cat >>conftest.$ac_ext <<_ACEOF
18093 /* end confdefs.h.  */
18094 #include <X11/Xlib.h>
18095 int
18096 main ()
18097 {
18098 XrmInitialize ()
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest.$ac_objext conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105   (eval $ac_link) 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -z "$ac_c_werror_flag"
18113                          || test ! -s conftest.err'
18114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115   (eval $ac_try) 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; } &&
18119          { ac_try='test -s conftest$ac_exeext'
18120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121   (eval $ac_try) 2>&5
18122   ac_status=$?
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); }; }; then
18125   LIBS=$ac_save_LIBS
18126 # We can link X programs with no special library path.
18127 ac_x_libraries=
18128 else
18129   echo "$as_me: failed program was:" >&5
18130 sed 's/^/| /' conftest.$ac_ext >&5
18131
18132 LIBS=$ac_save_LIBS
18133 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18134 do
18135   # Don't even attempt the hair of trying to link an X program!
18136   for ac_extension in a so sl; do
18137     if test -r $ac_dir/libXt.$ac_extension; then
18138       ac_x_libraries=$ac_dir
18139       break 2
18140     fi
18141   done
18142 done
18143 fi
18144 rm -f conftest.err conftest.$ac_objext \
18145       conftest$ac_exeext conftest.$ac_ext
18146 fi # $ac_x_libraries = no
18147
18148 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18149   # Didn't find X anywhere.  Cache the known absence of X.
18150   ac_cv_have_x="have_x=no"
18151 else
18152   # Record where we found X for the cache.
18153   ac_cv_have_x="have_x=yes \
18154                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18155 fi
18156 fi
18157
18158   fi
18159   eval "$ac_cv_have_x"
18160 fi # $with_x != no
18161
18162 if test "$have_x" != yes; then
18163   echo "$as_me:$LINENO: result: $have_x" >&5
18164 echo "${ECHO_T}$have_x" >&6
18165   no_x=yes
18166 else
18167   # If each of the values was on the command line, it overrides each guess.
18168   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18169   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18170   # Update the cache value to reflect the command line values.
18171   ac_cv_have_x="have_x=yes \
18172                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18173   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18174 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
18175 fi
18176
18177 if test "$no_x" = yes; then
18178   # Not all programs may use this symbol, but it does not hurt to define it.
18179
18180 cat >>confdefs.h <<\_ACEOF
18181 #define X_DISPLAY_MISSING 1
18182 _ACEOF
18183
18184   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18185 else
18186   if test -n "$x_includes"; then
18187     X_CFLAGS="$X_CFLAGS -I$x_includes"
18188   fi
18189
18190   # It would also be nice to do this for all -L options, not just this one.
18191   if test -n "$x_libraries"; then
18192     X_LIBS="$X_LIBS -L$x_libraries"
18193     # For Solaris; some versions of Sun CC require a space after -R and
18194     # others require no space.  Words are not sufficient . . . .
18195     case `(uname -sr) 2>/dev/null` in
18196     "SunOS 5"*)
18197       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18198 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18199       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18200       cat >conftest.$ac_ext <<_ACEOF
18201 /* confdefs.h.  */
18202 _ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h.  */
18206
18207 int
18208 main ()
18209 {
18210
18211   ;
18212   return 0;
18213 }
18214 _ACEOF
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18217   (eval $ac_link) 2>conftest.er1
18218   ac_status=$?
18219   grep -v '^ *+' conftest.er1 >conftest.err
18220   rm -f conftest.er1
18221   cat conftest.err >&5
18222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223   (exit $ac_status); } &&
18224          { ac_try='test -z "$ac_c_werror_flag"
18225                          || test ! -s conftest.err'
18226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227   (eval $ac_try) 2>&5
18228   ac_status=$?
18229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230   (exit $ac_status); }; } &&
18231          { ac_try='test -s conftest$ac_exeext'
18232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233   (eval $ac_try) 2>&5
18234   ac_status=$?
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); }; }; then
18237   ac_R_nospace=yes
18238 else
18239   echo "$as_me: failed program was:" >&5
18240 sed 's/^/| /' conftest.$ac_ext >&5
18241
18242 ac_R_nospace=no
18243 fi
18244 rm -f conftest.err conftest.$ac_objext \
18245       conftest$ac_exeext conftest.$ac_ext
18246       if test $ac_R_nospace = yes; then
18247         echo "$as_me:$LINENO: result: no" >&5
18248 echo "${ECHO_T}no" >&6
18249         X_LIBS="$X_LIBS -R$x_libraries"
18250       else
18251         LIBS="$ac_xsave_LIBS -R $x_libraries"
18252         cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258
18259 int
18260 main ()
18261 {
18262
18263   ;
18264   return 0;
18265 }
18266 _ACEOF
18267 rm -f conftest.$ac_objext conftest$ac_exeext
18268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18269   (eval $ac_link) 2>conftest.er1
18270   ac_status=$?
18271   grep -v '^ *+' conftest.er1 >conftest.err
18272   rm -f conftest.er1
18273   cat conftest.err >&5
18274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275   (exit $ac_status); } &&
18276          { ac_try='test -z "$ac_c_werror_flag"
18277                          || test ! -s conftest.err'
18278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279   (eval $ac_try) 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; } &&
18283          { ac_try='test -s conftest$ac_exeext'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; }; then
18289   ac_R_space=yes
18290 else
18291   echo "$as_me: failed program was:" >&5
18292 sed 's/^/| /' conftest.$ac_ext >&5
18293
18294 ac_R_space=no
18295 fi
18296 rm -f conftest.err conftest.$ac_objext \
18297       conftest$ac_exeext conftest.$ac_ext
18298         if test $ac_R_space = yes; then
18299           echo "$as_me:$LINENO: result: yes" >&5
18300 echo "${ECHO_T}yes" >&6
18301           X_LIBS="$X_LIBS -R $x_libraries"
18302         else
18303           echo "$as_me:$LINENO: result: neither works" >&5
18304 echo "${ECHO_T}neither works" >&6
18305         fi
18306       fi
18307       LIBS=$ac_xsave_LIBS
18308     esac
18309   fi
18310
18311   # Check for system-dependent libraries X programs must link with.
18312   # Do this before checking for the system-independent R6 libraries
18313   # (-lICE), since we may need -lsocket or whatever for X linking.
18314
18315   if test "$ISC" = yes; then
18316     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18317   else
18318     # Martyn Johnson says this is needed for Ultrix, if the X
18319     # libraries were built with DECnet support.  And Karl Berry says
18320     # the Alpha needs dnet_stub (dnet does not exist).
18321     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18322     cat >conftest.$ac_ext <<_ACEOF
18323 /* confdefs.h.  */
18324 _ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h.  */
18328
18329 /* Override any gcc2 internal prototype to avoid an error.  */
18330 #ifdef __cplusplus
18331 extern "C"
18332 #endif
18333 /* We use char because int might match the return type of a gcc2
18334    builtin and then its argument prototype would still apply.  */
18335 char XOpenDisplay ();
18336 int
18337 main ()
18338 {
18339 XOpenDisplay ();
18340   ;
18341   return 0;
18342 }
18343 _ACEOF
18344 rm -f conftest.$ac_objext conftest$ac_exeext
18345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18346   (eval $ac_link) 2>conftest.er1
18347   ac_status=$?
18348   grep -v '^ *+' conftest.er1 >conftest.err
18349   rm -f conftest.er1
18350   cat conftest.err >&5
18351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352   (exit $ac_status); } &&
18353          { ac_try='test -z "$ac_c_werror_flag"
18354                          || test ! -s conftest.err'
18355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18356   (eval $ac_try) 2>&5
18357   ac_status=$?
18358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359   (exit $ac_status); }; } &&
18360          { ac_try='test -s conftest$ac_exeext'
18361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362   (eval $ac_try) 2>&5
18363   ac_status=$?
18364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365   (exit $ac_status); }; }; then
18366   :
18367 else
18368   echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18370
18371 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18372 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
18373 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   ac_check_lib_save_LIBS=$LIBS
18377 LIBS="-ldnet  $LIBS"
18378 cat >conftest.$ac_ext <<_ACEOF
18379 /* confdefs.h.  */
18380 _ACEOF
18381 cat confdefs.h >>conftest.$ac_ext
18382 cat >>conftest.$ac_ext <<_ACEOF
18383 /* end confdefs.h.  */
18384
18385 /* Override any gcc2 internal prototype to avoid an error.  */
18386 #ifdef __cplusplus
18387 extern "C"
18388 #endif
18389 /* We use char because int might match the return type of a gcc2
18390    builtin and then its argument prototype would still apply.  */
18391 char dnet_ntoa ();
18392 int
18393 main ()
18394 {
18395 dnet_ntoa ();
18396   ;
18397   return 0;
18398 }
18399 _ACEOF
18400 rm -f conftest.$ac_objext conftest$ac_exeext
18401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18402   (eval $ac_link) 2>conftest.er1
18403   ac_status=$?
18404   grep -v '^ *+' conftest.er1 >conftest.err
18405   rm -f conftest.er1
18406   cat conftest.err >&5
18407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408   (exit $ac_status); } &&
18409          { ac_try='test -z "$ac_c_werror_flag"
18410                          || test ! -s conftest.err'
18411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18412   (eval $ac_try) 2>&5
18413   ac_status=$?
18414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18415   (exit $ac_status); }; } &&
18416          { ac_try='test -s conftest$ac_exeext'
18417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18418   (eval $ac_try) 2>&5
18419   ac_status=$?
18420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421   (exit $ac_status); }; }; then
18422   ac_cv_lib_dnet_dnet_ntoa=yes
18423 else
18424   echo "$as_me: failed program was:" >&5
18425 sed 's/^/| /' conftest.$ac_ext >&5
18426
18427 ac_cv_lib_dnet_dnet_ntoa=no
18428 fi
18429 rm -f conftest.err conftest.$ac_objext \
18430       conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18432 fi
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18434 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
18435 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18436   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18437 fi
18438
18439     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18440       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18441 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
18442 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18443   echo $ECHO_N "(cached) $ECHO_C" >&6
18444 else
18445   ac_check_lib_save_LIBS=$LIBS
18446 LIBS="-ldnet_stub  $LIBS"
18447 cat >conftest.$ac_ext <<_ACEOF
18448 /* confdefs.h.  */
18449 _ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h.  */
18453
18454 /* Override any gcc2 internal prototype to avoid an error.  */
18455 #ifdef __cplusplus
18456 extern "C"
18457 #endif
18458 /* We use char because int might match the return type of a gcc2
18459    builtin and then its argument prototype would still apply.  */
18460 char dnet_ntoa ();
18461 int
18462 main ()
18463 {
18464 dnet_ntoa ();
18465   ;
18466   return 0;
18467 }
18468 _ACEOF
18469 rm -f conftest.$ac_objext conftest$ac_exeext
18470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18471   (eval $ac_link) 2>conftest.er1
18472   ac_status=$?
18473   grep -v '^ *+' conftest.er1 >conftest.err
18474   rm -f conftest.er1
18475   cat conftest.err >&5
18476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477   (exit $ac_status); } &&
18478          { ac_try='test -z "$ac_c_werror_flag"
18479                          || test ! -s conftest.err'
18480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481   (eval $ac_try) 2>&5
18482   ac_status=$?
18483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484   (exit $ac_status); }; } &&
18485          { ac_try='test -s conftest$ac_exeext'
18486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18487   (eval $ac_try) 2>&5
18488   ac_status=$?
18489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490   (exit $ac_status); }; }; then
18491   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18492 else
18493   echo "$as_me: failed program was:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18495
18496 ac_cv_lib_dnet_stub_dnet_ntoa=no
18497 fi
18498 rm -f conftest.err conftest.$ac_objext \
18499       conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS
18501 fi
18502 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18503 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
18504 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18505   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18506 fi
18507
18508     fi
18509 fi
18510 rm -f conftest.err conftest.$ac_objext \
18511       conftest$ac_exeext conftest.$ac_ext
18512     LIBS="$ac_xsave_LIBS"
18513
18514     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18515     # to get the SysV transport functions.
18516     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18517     # needs -lnsl.
18518     # The nsl library prevents programs from opening the X display
18519     # on Irix 5.2, according to T.E. Dickey.
18520     # The functions gethostbyname, getservbyname, and inet_addr are
18521     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18522     echo "$as_me:$LINENO: checking for gethostbyname" >&5
18523 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
18524 if test "${ac_cv_func_gethostbyname+set}" = set; then
18525   echo $ECHO_N "(cached) $ECHO_C" >&6
18526 else
18527   cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18534    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18535 #define gethostbyname innocuous_gethostbyname
18536
18537 /* System header to define __stub macros and hopefully few prototypes,
18538     which can conflict with char gethostbyname (); below.
18539     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18540     <limits.h> exists even on freestanding compilers.  */
18541
18542 #ifdef __STDC__
18543 # include <limits.h>
18544 #else
18545 # include <assert.h>
18546 #endif
18547
18548 #undef gethostbyname
18549
18550 /* Override any gcc2 internal prototype to avoid an error.  */
18551 #ifdef __cplusplus
18552 extern "C"
18553 {
18554 #endif
18555 /* We use char because int might match the return type of a gcc2
18556    builtin and then its argument prototype would still apply.  */
18557 char gethostbyname ();
18558 /* The GNU C library defines this for functions which it implements
18559     to always fail with ENOSYS.  Some functions are actually named
18560     something starting with __ and the normal name is an alias.  */
18561 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
18562 choke me
18563 #else
18564 char (*f) () = gethostbyname;
18565 #endif
18566 #ifdef __cplusplus
18567 }
18568 #endif
18569
18570 int
18571 main ()
18572 {
18573 return f != gethostbyname;
18574   ;
18575   return 0;
18576 }
18577 _ACEOF
18578 rm -f conftest.$ac_objext conftest$ac_exeext
18579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18580   (eval $ac_link) 2>conftest.er1
18581   ac_status=$?
18582   grep -v '^ *+' conftest.er1 >conftest.err
18583   rm -f conftest.er1
18584   cat conftest.err >&5
18585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18586   (exit $ac_status); } &&
18587          { ac_try='test -z "$ac_c_werror_flag"
18588                          || test ! -s conftest.err'
18589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18590   (eval $ac_try) 2>&5
18591   ac_status=$?
18592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593   (exit $ac_status); }; } &&
18594          { ac_try='test -s conftest$ac_exeext'
18595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18596   (eval $ac_try) 2>&5
18597   ac_status=$?
18598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599   (exit $ac_status); }; }; then
18600   ac_cv_func_gethostbyname=yes
18601 else
18602   echo "$as_me: failed program was:" >&5
18603 sed 's/^/| /' conftest.$ac_ext >&5
18604
18605 ac_cv_func_gethostbyname=no
18606 fi
18607 rm -f conftest.err conftest.$ac_objext \
18608       conftest$ac_exeext conftest.$ac_ext
18609 fi
18610 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18611 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
18612
18613     if test $ac_cv_func_gethostbyname = no; then
18614       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18615 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
18616 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18617   echo $ECHO_N "(cached) $ECHO_C" >&6
18618 else
18619   ac_check_lib_save_LIBS=$LIBS
18620 LIBS="-lnsl  $LIBS"
18621 cat >conftest.$ac_ext <<_ACEOF
18622 /* confdefs.h.  */
18623 _ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h.  */
18627
18628 /* Override any gcc2 internal prototype to avoid an error.  */
18629 #ifdef __cplusplus
18630 extern "C"
18631 #endif
18632 /* We use char because int might match the return type of a gcc2
18633    builtin and then its argument prototype would still apply.  */
18634 char gethostbyname ();
18635 int
18636 main ()
18637 {
18638 gethostbyname ();
18639   ;
18640   return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18645   (eval $ac_link) 2>conftest.er1
18646   ac_status=$?
18647   grep -v '^ *+' conftest.er1 >conftest.err
18648   rm -f conftest.er1
18649   cat conftest.err >&5
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); } &&
18652          { ac_try='test -z "$ac_c_werror_flag"
18653                          || test ! -s conftest.err'
18654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18655   (eval $ac_try) 2>&5
18656   ac_status=$?
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); }; } &&
18659          { ac_try='test -s conftest$ac_exeext'
18660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18661   (eval $ac_try) 2>&5
18662   ac_status=$?
18663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664   (exit $ac_status); }; }; then
18665   ac_cv_lib_nsl_gethostbyname=yes
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 ac_cv_lib_nsl_gethostbyname=no
18671 fi
18672 rm -f conftest.err conftest.$ac_objext \
18673       conftest$ac_exeext conftest.$ac_ext
18674 LIBS=$ac_check_lib_save_LIBS
18675 fi
18676 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18677 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
18678 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18679   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18680 fi
18681
18682       if test $ac_cv_lib_nsl_gethostbyname = no; then
18683         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18684 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
18685 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18686   echo $ECHO_N "(cached) $ECHO_C" >&6
18687 else
18688   ac_check_lib_save_LIBS=$LIBS
18689 LIBS="-lbsd  $LIBS"
18690 cat >conftest.$ac_ext <<_ACEOF
18691 /* confdefs.h.  */
18692 _ACEOF
18693 cat confdefs.h >>conftest.$ac_ext
18694 cat >>conftest.$ac_ext <<_ACEOF
18695 /* end confdefs.h.  */
18696
18697 /* Override any gcc2 internal prototype to avoid an error.  */
18698 #ifdef __cplusplus
18699 extern "C"
18700 #endif
18701 /* We use char because int might match the return type of a gcc2
18702    builtin and then its argument prototype would still apply.  */
18703 char gethostbyname ();
18704 int
18705 main ()
18706 {
18707 gethostbyname ();
18708   ;
18709   return 0;
18710 }
18711 _ACEOF
18712 rm -f conftest.$ac_objext conftest$ac_exeext
18713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18714   (eval $ac_link) 2>conftest.er1
18715   ac_status=$?
18716   grep -v '^ *+' conftest.er1 >conftest.err
18717   rm -f conftest.er1
18718   cat conftest.err >&5
18719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720   (exit $ac_status); } &&
18721          { ac_try='test -z "$ac_c_werror_flag"
18722                          || test ! -s conftest.err'
18723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724   (eval $ac_try) 2>&5
18725   ac_status=$?
18726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727   (exit $ac_status); }; } &&
18728          { ac_try='test -s conftest$ac_exeext'
18729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730   (eval $ac_try) 2>&5
18731   ac_status=$?
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); }; }; then
18734   ac_cv_lib_bsd_gethostbyname=yes
18735 else
18736   echo "$as_me: failed program was:" >&5
18737 sed 's/^/| /' conftest.$ac_ext >&5
18738
18739 ac_cv_lib_bsd_gethostbyname=no
18740 fi
18741 rm -f conftest.err conftest.$ac_objext \
18742       conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18744 fi
18745 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18746 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
18747 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18748   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18749 fi
18750
18751       fi
18752     fi
18753
18754     # lieder@skyler.mavd.honeywell.com says without -lsocket,
18755     # socket/setsockopt and other routines are undefined under SCO ODT
18756     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
18757     # on later versions), says Simon Leinen: it contains gethostby*
18758     # variants that don't use the name server (or something).  -lsocket
18759     # must be given before -lnsl if both are needed.  We assume that
18760     # if connect needs -lnsl, so does gethostbyname.
18761     echo "$as_me:$LINENO: checking for connect" >&5
18762 echo $ECHO_N "checking for connect... $ECHO_C" >&6
18763 if test "${ac_cv_func_connect+set}" = set; then
18764   echo $ECHO_N "(cached) $ECHO_C" >&6
18765 else
18766   cat >conftest.$ac_ext <<_ACEOF
18767 /* confdefs.h.  */
18768 _ACEOF
18769 cat confdefs.h >>conftest.$ac_ext
18770 cat >>conftest.$ac_ext <<_ACEOF
18771 /* end confdefs.h.  */
18772 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18773    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18774 #define connect innocuous_connect
18775
18776 /* System header to define __stub macros and hopefully few prototypes,
18777     which can conflict with char connect (); below.
18778     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18779     <limits.h> exists even on freestanding compilers.  */
18780
18781 #ifdef __STDC__
18782 # include <limits.h>
18783 #else
18784 # include <assert.h>
18785 #endif
18786
18787 #undef connect
18788
18789 /* Override any gcc2 internal prototype to avoid an error.  */
18790 #ifdef __cplusplus
18791 extern "C"
18792 {
18793 #endif
18794 /* We use char because int might match the return type of a gcc2
18795    builtin and then its argument prototype would still apply.  */
18796 char connect ();
18797 /* The GNU C library defines this for functions which it implements
18798     to always fail with ENOSYS.  Some functions are actually named
18799     something starting with __ and the normal name is an alias.  */
18800 #if defined (__stub_connect) || defined (__stub___connect)
18801 choke me
18802 #else
18803 char (*f) () = connect;
18804 #endif
18805 #ifdef __cplusplus
18806 }
18807 #endif
18808
18809 int
18810 main ()
18811 {
18812 return f != connect;
18813   ;
18814   return 0;
18815 }
18816 _ACEOF
18817 rm -f conftest.$ac_objext conftest$ac_exeext
18818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18819   (eval $ac_link) 2>conftest.er1
18820   ac_status=$?
18821   grep -v '^ *+' conftest.er1 >conftest.err
18822   rm -f conftest.er1
18823   cat conftest.err >&5
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } &&
18826          { ac_try='test -z "$ac_c_werror_flag"
18827                          || test ! -s conftest.err'
18828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18829   (eval $ac_try) 2>&5
18830   ac_status=$?
18831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18832   (exit $ac_status); }; } &&
18833          { ac_try='test -s conftest$ac_exeext'
18834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18835   (eval $ac_try) 2>&5
18836   ac_status=$?
18837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18838   (exit $ac_status); }; }; then
18839   ac_cv_func_connect=yes
18840 else
18841   echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 ac_cv_func_connect=no
18845 fi
18846 rm -f conftest.err conftest.$ac_objext \
18847       conftest$ac_exeext conftest.$ac_ext
18848 fi
18849 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18850 echo "${ECHO_T}$ac_cv_func_connect" >&6
18851
18852     if test $ac_cv_func_connect = no; then
18853       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18854 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
18855 if test "${ac_cv_lib_socket_connect+set}" = set; then
18856   echo $ECHO_N "(cached) $ECHO_C" >&6
18857 else
18858   ac_check_lib_save_LIBS=$LIBS
18859 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18860 cat >conftest.$ac_ext <<_ACEOF
18861 /* confdefs.h.  */
18862 _ACEOF
18863 cat confdefs.h >>conftest.$ac_ext
18864 cat >>conftest.$ac_ext <<_ACEOF
18865 /* end confdefs.h.  */
18866
18867 /* Override any gcc2 internal prototype to avoid an error.  */
18868 #ifdef __cplusplus
18869 extern "C"
18870 #endif
18871 /* We use char because int might match the return type of a gcc2
18872    builtin and then its argument prototype would still apply.  */
18873 char connect ();
18874 int
18875 main ()
18876 {
18877 connect ();
18878   ;
18879   return 0;
18880 }
18881 _ACEOF
18882 rm -f conftest.$ac_objext conftest$ac_exeext
18883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18884   (eval $ac_link) 2>conftest.er1
18885   ac_status=$?
18886   grep -v '^ *+' conftest.er1 >conftest.err
18887   rm -f conftest.er1
18888   cat conftest.err >&5
18889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890   (exit $ac_status); } &&
18891          { ac_try='test -z "$ac_c_werror_flag"
18892                          || test ! -s conftest.err'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; } &&
18898          { ac_try='test -s conftest$ac_exeext'
18899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18900   (eval $ac_try) 2>&5
18901   ac_status=$?
18902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903   (exit $ac_status); }; }; then
18904   ac_cv_lib_socket_connect=yes
18905 else
18906   echo "$as_me: failed program was:" >&5
18907 sed 's/^/| /' conftest.$ac_ext >&5
18908
18909 ac_cv_lib_socket_connect=no
18910 fi
18911 rm -f conftest.err conftest.$ac_objext \
18912       conftest$ac_exeext conftest.$ac_ext
18913 LIBS=$ac_check_lib_save_LIBS
18914 fi
18915 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18916 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
18917 if test $ac_cv_lib_socket_connect = yes; then
18918   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18919 fi
18920
18921     fi
18922
18923     # Guillermo Gomez says -lposix is necessary on A/UX.
18924     echo "$as_me:$LINENO: checking for remove" >&5
18925 echo $ECHO_N "checking for remove... $ECHO_C" >&6
18926 if test "${ac_cv_func_remove+set}" = set; then
18927   echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929   cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18937 #define remove innocuous_remove
18938
18939 /* System header to define __stub macros and hopefully few prototypes,
18940     which can conflict with char remove (); below.
18941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942     <limits.h> exists even on freestanding compilers.  */
18943
18944 #ifdef __STDC__
18945 # include <limits.h>
18946 #else
18947 # include <assert.h>
18948 #endif
18949
18950 #undef remove
18951
18952 /* Override any gcc2 internal prototype to avoid an error.  */
18953 #ifdef __cplusplus
18954 extern "C"
18955 {
18956 #endif
18957 /* We use char because int might match the return type of a gcc2
18958    builtin and then its argument prototype would still apply.  */
18959 char remove ();
18960 /* The GNU C library defines this for functions which it implements
18961     to always fail with ENOSYS.  Some functions are actually named
18962     something starting with __ and the normal name is an alias.  */
18963 #if defined (__stub_remove) || defined (__stub___remove)
18964 choke me
18965 #else
18966 char (*f) () = remove;
18967 #endif
18968 #ifdef __cplusplus
18969 }
18970 #endif
18971
18972 int
18973 main ()
18974 {
18975 return f != remove;
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18982   (eval $ac_link) 2>conftest.er1
18983   ac_status=$?
18984   grep -v '^ *+' conftest.er1 >conftest.err
18985   rm -f conftest.er1
18986   cat conftest.err >&5
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); } &&
18989          { ac_try='test -z "$ac_c_werror_flag"
18990                          || test ! -s conftest.err'
18991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992   (eval $ac_try) 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; } &&
18996          { ac_try='test -s conftest$ac_exeext'
18997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998   (eval $ac_try) 2>&5
18999   ac_status=$?
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); }; }; then
19002   ac_cv_func_remove=yes
19003 else
19004   echo "$as_me: failed program was:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19006
19007 ac_cv_func_remove=no
19008 fi
19009 rm -f conftest.err conftest.$ac_objext \
19010       conftest$ac_exeext conftest.$ac_ext
19011 fi
19012 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19013 echo "${ECHO_T}$ac_cv_func_remove" >&6
19014
19015     if test $ac_cv_func_remove = no; then
19016       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19017 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19018 if test "${ac_cv_lib_posix_remove+set}" = set; then
19019   echo $ECHO_N "(cached) $ECHO_C" >&6
19020 else
19021   ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lposix  $LIBS"
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029
19030 /* Override any gcc2 internal prototype to avoid an error.  */
19031 #ifdef __cplusplus
19032 extern "C"
19033 #endif
19034 /* We use char because int might match the return type of a gcc2
19035    builtin and then its argument prototype would still apply.  */
19036 char remove ();
19037 int
19038 main ()
19039 {
19040 remove ();
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19047   (eval $ac_link) 2>conftest.er1
19048   ac_status=$?
19049   grep -v '^ *+' conftest.er1 >conftest.err
19050   rm -f conftest.er1
19051   cat conftest.err >&5
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); } &&
19054          { ac_try='test -z "$ac_c_werror_flag"
19055                          || test ! -s conftest.err'
19056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19057   (eval $ac_try) 2>&5
19058   ac_status=$?
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); }; } &&
19061          { ac_try='test -s conftest$ac_exeext'
19062   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063   (eval $ac_try) 2>&5
19064   ac_status=$?
19065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066   (exit $ac_status); }; }; then
19067   ac_cv_lib_posix_remove=yes
19068 else
19069   echo "$as_me: failed program was:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19071
19072 ac_cv_lib_posix_remove=no
19073 fi
19074 rm -f conftest.err conftest.$ac_objext \
19075       conftest$ac_exeext conftest.$ac_ext
19076 LIBS=$ac_check_lib_save_LIBS
19077 fi
19078 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19079 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19080 if test $ac_cv_lib_posix_remove = yes; then
19081   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19082 fi
19083
19084     fi
19085
19086     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19087     echo "$as_me:$LINENO: checking for shmat" >&5
19088 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19089 if test "${ac_cv_func_shmat+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19099    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19100 #define shmat innocuous_shmat
19101
19102 /* System header to define __stub macros and hopefully few prototypes,
19103     which can conflict with char shmat (); below.
19104     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19105     <limits.h> exists even on freestanding compilers.  */
19106
19107 #ifdef __STDC__
19108 # include <limits.h>
19109 #else
19110 # include <assert.h>
19111 #endif
19112
19113 #undef shmat
19114
19115 /* Override any gcc2 internal prototype to avoid an error.  */
19116 #ifdef __cplusplus
19117 extern "C"
19118 {
19119 #endif
19120 /* We use char because int might match the return type of a gcc2
19121    builtin and then its argument prototype would still apply.  */
19122 char shmat ();
19123 /* The GNU C library defines this for functions which it implements
19124     to always fail with ENOSYS.  Some functions are actually named
19125     something starting with __ and the normal name is an alias.  */
19126 #if defined (__stub_shmat) || defined (__stub___shmat)
19127 choke me
19128 #else
19129 char (*f) () = shmat;
19130 #endif
19131 #ifdef __cplusplus
19132 }
19133 #endif
19134
19135 int
19136 main ()
19137 {
19138 return f != shmat;
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 rm -f conftest.$ac_objext conftest$ac_exeext
19144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19145   (eval $ac_link) 2>conftest.er1
19146   ac_status=$?
19147   grep -v '^ *+' conftest.er1 >conftest.err
19148   rm -f conftest.er1
19149   cat conftest.err >&5
19150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151   (exit $ac_status); } &&
19152          { ac_try='test -z "$ac_c_werror_flag"
19153                          || test ! -s conftest.err'
19154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19155   (eval $ac_try) 2>&5
19156   ac_status=$?
19157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158   (exit $ac_status); }; } &&
19159          { ac_try='test -s conftest$ac_exeext'
19160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161   (eval $ac_try) 2>&5
19162   ac_status=$?
19163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164   (exit $ac_status); }; }; then
19165   ac_cv_func_shmat=yes
19166 else
19167   echo "$as_me: failed program was:" >&5
19168 sed 's/^/| /' conftest.$ac_ext >&5
19169
19170 ac_cv_func_shmat=no
19171 fi
19172 rm -f conftest.err conftest.$ac_objext \
19173       conftest$ac_exeext conftest.$ac_ext
19174 fi
19175 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19176 echo "${ECHO_T}$ac_cv_func_shmat" >&6
19177
19178     if test $ac_cv_func_shmat = no; then
19179       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19180 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19181 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19182   echo $ECHO_N "(cached) $ECHO_C" >&6
19183 else
19184   ac_check_lib_save_LIBS=$LIBS
19185 LIBS="-lipc  $LIBS"
19186 cat >conftest.$ac_ext <<_ACEOF
19187 /* confdefs.h.  */
19188 _ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h.  */
19192
19193 /* Override any gcc2 internal prototype to avoid an error.  */
19194 #ifdef __cplusplus
19195 extern "C"
19196 #endif
19197 /* We use char because int might match the return type of a gcc2
19198    builtin and then its argument prototype would still apply.  */
19199 char shmat ();
19200 int
19201 main ()
19202 {
19203 shmat ();
19204   ;
19205   return 0;
19206 }
19207 _ACEOF
19208 rm -f conftest.$ac_objext conftest$ac_exeext
19209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19210   (eval $ac_link) 2>conftest.er1
19211   ac_status=$?
19212   grep -v '^ *+' conftest.er1 >conftest.err
19213   rm -f conftest.er1
19214   cat conftest.err >&5
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); } &&
19217          { ac_try='test -z "$ac_c_werror_flag"
19218                          || test ! -s conftest.err'
19219   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19220   (eval $ac_try) 2>&5
19221   ac_status=$?
19222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223   (exit $ac_status); }; } &&
19224          { ac_try='test -s conftest$ac_exeext'
19225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19226   (eval $ac_try) 2>&5
19227   ac_status=$?
19228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229   (exit $ac_status); }; }; then
19230   ac_cv_lib_ipc_shmat=yes
19231 else
19232   echo "$as_me: failed program was:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19234
19235 ac_cv_lib_ipc_shmat=no
19236 fi
19237 rm -f conftest.err conftest.$ac_objext \
19238       conftest$ac_exeext conftest.$ac_ext
19239 LIBS=$ac_check_lib_save_LIBS
19240 fi
19241 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19242 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19243 if test $ac_cv_lib_ipc_shmat = yes; then
19244   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19245 fi
19246
19247     fi
19248   fi
19249
19250   # Check for libraries that X11R6 Xt/Xaw programs need.
19251   ac_save_LDFLAGS=$LDFLAGS
19252   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19253   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19254   # check for ICE first), but we must link in the order -lSM -lICE or
19255   # we get undefined symbols.  So assume we have SM if we have ICE.
19256   # These have to be linked with before -lX11, unlike the other
19257   # libraries we check for below, so use a different variable.
19258   # John Interrante, Karl Berry
19259   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19260 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19261 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19262   echo $ECHO_N "(cached) $ECHO_C" >&6
19263 else
19264   ac_check_lib_save_LIBS=$LIBS
19265 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19266 cat >conftest.$ac_ext <<_ACEOF
19267 /* confdefs.h.  */
19268 _ACEOF
19269 cat confdefs.h >>conftest.$ac_ext
19270 cat >>conftest.$ac_ext <<_ACEOF
19271 /* end confdefs.h.  */
19272
19273 /* Override any gcc2 internal prototype to avoid an error.  */
19274 #ifdef __cplusplus
19275 extern "C"
19276 #endif
19277 /* We use char because int might match the return type of a gcc2
19278    builtin and then its argument prototype would still apply.  */
19279 char IceConnectionNumber ();
19280 int
19281 main ()
19282 {
19283 IceConnectionNumber ();
19284   ;
19285   return 0;
19286 }
19287 _ACEOF
19288 rm -f conftest.$ac_objext conftest$ac_exeext
19289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19290   (eval $ac_link) 2>conftest.er1
19291   ac_status=$?
19292   grep -v '^ *+' conftest.er1 >conftest.err
19293   rm -f conftest.er1
19294   cat conftest.err >&5
19295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296   (exit $ac_status); } &&
19297          { ac_try='test -z "$ac_c_werror_flag"
19298                          || test ! -s conftest.err'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; } &&
19304          { ac_try='test -s conftest$ac_exeext'
19305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19306   (eval $ac_try) 2>&5
19307   ac_status=$?
19308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309   (exit $ac_status); }; }; then
19310   ac_cv_lib_ICE_IceConnectionNumber=yes
19311 else
19312   echo "$as_me: failed program was:" >&5
19313 sed 's/^/| /' conftest.$ac_ext >&5
19314
19315 ac_cv_lib_ICE_IceConnectionNumber=no
19316 fi
19317 rm -f conftest.err conftest.$ac_objext \
19318       conftest$ac_exeext conftest.$ac_ext
19319 LIBS=$ac_check_lib_save_LIBS
19320 fi
19321 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19322 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
19323 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19324   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19325 fi
19326
19327   LDFLAGS=$ac_save_LDFLAGS
19328
19329 fi
19330
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359
19360
19361
19362 for ac_header in \
19363         assert.h \
19364         fcntl.h \
19365         grp.h \
19366         pwd.h \
19367         libc.h \
19368         limits.h \
19369         stdarg.h \
19370         stdlib.h \
19371         stdint.h \
19372         string.h \
19373         strings.h \
19374         termios.h \
19375         termcap.h \
19376         term.h \
19377         unistd.h \
19378         sys/bitypes.h \
19379         sys/byteorder.h \
19380         sys/ioctl.h \
19381         sys/select.h \
19382         sys/socket.h \
19383         sys/sockio.h \
19384         sys/stat.h \
19385         sys/time.h \
19386         sys/types.h \
19387         arpa/nameser.h \
19388         resolv.h \
19389         mtio.h \
19390         sys/mtio.h \
19391         sys/tape.h \
19392         regex.h \
19393
19394 do
19395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19397   echo "$as_me:$LINENO: checking for $ac_header" >&5
19398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19399 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19400   echo $ECHO_N "(cached) $ECHO_C" >&6
19401 fi
19402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19404 else
19405   # Is the header compilable?
19406 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h.  */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h.  */
19414 $ac_includes_default
19415 #include <$ac_header>
19416 _ACEOF
19417 rm -f conftest.$ac_objext
19418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19419   (eval $ac_compile) 2>conftest.er1
19420   ac_status=$?
19421   grep -v '^ *+' conftest.er1 >conftest.err
19422   rm -f conftest.er1
19423   cat conftest.err >&5
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); } &&
19426          { ac_try='test -z "$ac_c_werror_flag"
19427                          || test ! -s conftest.err'
19428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429   (eval $ac_try) 2>&5
19430   ac_status=$?
19431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432   (exit $ac_status); }; } &&
19433          { ac_try='test -s conftest.$ac_objext'
19434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435   (eval $ac_try) 2>&5
19436   ac_status=$?
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); }; }; then
19439   ac_header_compiler=yes
19440 else
19441   echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_header_compiler=no
19445 fi
19446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19447 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19448 echo "${ECHO_T}$ac_header_compiler" >&6
19449
19450 # Is the header present?
19451 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19453 cat >conftest.$ac_ext <<_ACEOF
19454 /* confdefs.h.  */
19455 _ACEOF
19456 cat confdefs.h >>conftest.$ac_ext
19457 cat >>conftest.$ac_ext <<_ACEOF
19458 /* end confdefs.h.  */
19459 #include <$ac_header>
19460 _ACEOF
19461 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19462   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19463   ac_status=$?
19464   grep -v '^ *+' conftest.er1 >conftest.err
19465   rm -f conftest.er1
19466   cat conftest.err >&5
19467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468   (exit $ac_status); } >/dev/null; then
19469   if test -s conftest.err; then
19470     ac_cpp_err=$ac_c_preproc_warn_flag
19471     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19472   else
19473     ac_cpp_err=
19474   fi
19475 else
19476   ac_cpp_err=yes
19477 fi
19478 if test -z "$ac_cpp_err"; then
19479   ac_header_preproc=yes
19480 else
19481   echo "$as_me: failed program was:" >&5
19482 sed 's/^/| /' conftest.$ac_ext >&5
19483
19484   ac_header_preproc=no
19485 fi
19486 rm -f conftest.err conftest.$ac_ext
19487 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19488 echo "${ECHO_T}$ac_header_preproc" >&6
19489
19490 # So?  What about this header?
19491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19492   yes:no: )
19493     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19497     ac_header_preproc=yes
19498     ;;
19499   no:yes:* )
19500     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19502     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19503 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19504     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19506     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19507 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19510     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19512     (
19513       cat <<\_ASBOX
19514 ## ------------------------------------------ ##
19515 ## Report this to the AC_PACKAGE_NAME lists.  ##
19516 ## ------------------------------------------ ##
19517 _ASBOX
19518     ) |
19519       sed "s/^/$as_me: WARNING:     /" >&2
19520     ;;
19521 esac
19522 echo "$as_me:$LINENO: checking for $ac_header" >&5
19523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19524 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19525   echo $ECHO_N "(cached) $ECHO_C" >&6
19526 else
19527   eval "$as_ac_Header=\$ac_header_preproc"
19528 fi
19529 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19530 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19531
19532 fi
19533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19534   cat >>confdefs.h <<_ACEOF
19535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19536 _ACEOF
19537
19538 fi
19539
19540 done
19541
19542 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19543 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19544 if test "${ac_cv_header_stdc+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553 #include <stdlib.h>
19554 #include <stdarg.h>
19555 #include <string.h>
19556 #include <float.h>
19557
19558 int
19559 main ()
19560 {
19561
19562   ;
19563   return 0;
19564 }
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19568   (eval $ac_compile) 2>conftest.er1
19569   ac_status=$?
19570   grep -v '^ *+' conftest.er1 >conftest.err
19571   rm -f conftest.er1
19572   cat conftest.err >&5
19573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574   (exit $ac_status); } &&
19575          { ac_try='test -z "$ac_c_werror_flag"
19576                          || test ! -s conftest.err'
19577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578   (eval $ac_try) 2>&5
19579   ac_status=$?
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); }; } &&
19582          { ac_try='test -s conftest.$ac_objext'
19583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584   (eval $ac_try) 2>&5
19585   ac_status=$?
19586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587   (exit $ac_status); }; }; then
19588   ac_cv_header_stdc=yes
19589 else
19590   echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 ac_cv_header_stdc=no
19594 fi
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596
19597 if test $ac_cv_header_stdc = yes; then
19598   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19599   cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h.  */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h.  */
19605 #include <string.h>
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "memchr" >/dev/null 2>&1; then
19610   :
19611 else
19612   ac_cv_header_stdc=no
19613 fi
19614 rm -f conftest*
19615
19616 fi
19617
19618 if test $ac_cv_header_stdc = yes; then
19619   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19620   cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626 #include <stdlib.h>
19627
19628 _ACEOF
19629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19630   $EGREP "free" >/dev/null 2>&1; then
19631   :
19632 else
19633   ac_cv_header_stdc=no
19634 fi
19635 rm -f conftest*
19636
19637 fi
19638
19639 if test $ac_cv_header_stdc = yes; then
19640   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19641   if test "$cross_compiling" = yes; then
19642   :
19643 else
19644   cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h.  */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h.  */
19650 #include <ctype.h>
19651 #if ((' ' & 0x0FF) == 0x020)
19652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19654 #else
19655 # define ISLOWER(c) \
19656                    (('a' <= (c) && (c) <= 'i') \
19657                      || ('j' <= (c) && (c) <= 'r') \
19658                      || ('s' <= (c) && (c) <= 'z'))
19659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19660 #endif
19661
19662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19663 int
19664 main ()
19665 {
19666   int i;
19667   for (i = 0; i < 256; i++)
19668     if (XOR (islower (i), ISLOWER (i))
19669         || toupper (i) != TOUPPER (i))
19670       exit(2);
19671   exit (0);
19672 }
19673 _ACEOF
19674 rm -f conftest$ac_exeext
19675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19676   (eval $ac_link) 2>&5
19677   ac_status=$?
19678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681   (eval $ac_try) 2>&5
19682   ac_status=$?
19683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684   (exit $ac_status); }; }; then
19685   :
19686 else
19687   echo "$as_me: program exited with status $ac_status" >&5
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 ( exit $ac_status )
19692 ac_cv_header_stdc=no
19693 fi
19694 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19695 fi
19696 fi
19697 fi
19698 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19699 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19700 if test $ac_cv_header_stdc = yes; then
19701
19702 cat >>confdefs.h <<\_ACEOF
19703 #define STDC_HEADERS 1
19704 _ACEOF
19705
19706 fi
19707
19708 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19709 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
19710 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19711   echo $ECHO_N "(cached) $ECHO_C" >&6
19712 else
19713   cat >conftest.$ac_ext <<_ACEOF
19714 /* confdefs.h.  */
19715 _ACEOF
19716 cat confdefs.h >>conftest.$ac_ext
19717 cat >>conftest.$ac_ext <<_ACEOF
19718 /* end confdefs.h.  */
19719 #include <sys/types.h>
19720 int
19721 main ()
19722 {
19723 return makedev(0, 0);
19724   ;
19725   return 0;
19726 }
19727 _ACEOF
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19730   (eval $ac_link) 2>conftest.er1
19731   ac_status=$?
19732   grep -v '^ *+' conftest.er1 >conftest.err
19733   rm -f conftest.er1
19734   cat conftest.err >&5
19735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736   (exit $ac_status); } &&
19737          { ac_try='test -z "$ac_c_werror_flag"
19738                          || test ! -s conftest.err'
19739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19740   (eval $ac_try) 2>&5
19741   ac_status=$?
19742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19743   (exit $ac_status); }; } &&
19744          { ac_try='test -s conftest$ac_exeext'
19745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19746   (eval $ac_try) 2>&5
19747   ac_status=$?
19748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749   (exit $ac_status); }; }; then
19750   ac_cv_header_sys_types_h_makedev=yes
19751 else
19752   echo "$as_me: failed program was:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19754
19755 ac_cv_header_sys_types_h_makedev=no
19756 fi
19757 rm -f conftest.err conftest.$ac_objext \
19758       conftest$ac_exeext conftest.$ac_ext
19759
19760 fi
19761 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19762 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
19763
19764 if test $ac_cv_header_sys_types_h_makedev = no; then
19765 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19766   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19767 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19768 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 fi
19771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19772 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19773 else
19774   # Is the header compilable?
19775 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19776 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
19777 cat >conftest.$ac_ext <<_ACEOF
19778 /* confdefs.h.  */
19779 _ACEOF
19780 cat confdefs.h >>conftest.$ac_ext
19781 cat >>conftest.$ac_ext <<_ACEOF
19782 /* end confdefs.h.  */
19783 $ac_includes_default
19784 #include <sys/mkdev.h>
19785 _ACEOF
19786 rm -f conftest.$ac_objext
19787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19788   (eval $ac_compile) 2>conftest.er1
19789   ac_status=$?
19790   grep -v '^ *+' conftest.er1 >conftest.err
19791   rm -f conftest.er1
19792   cat conftest.err >&5
19793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794   (exit $ac_status); } &&
19795          { ac_try='test -z "$ac_c_werror_flag"
19796                          || test ! -s conftest.err'
19797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798   (eval $ac_try) 2>&5
19799   ac_status=$?
19800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801   (exit $ac_status); }; } &&
19802          { ac_try='test -s conftest.$ac_objext'
19803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19804   (eval $ac_try) 2>&5
19805   ac_status=$?
19806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19807   (exit $ac_status); }; }; then
19808   ac_header_compiler=yes
19809 else
19810   echo "$as_me: failed program was:" >&5
19811 sed 's/^/| /' conftest.$ac_ext >&5
19812
19813 ac_header_compiler=no
19814 fi
19815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19816 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19817 echo "${ECHO_T}$ac_header_compiler" >&6
19818
19819 # Is the header present?
19820 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19821 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
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 #include <sys/mkdev.h>
19829 _ACEOF
19830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19831   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19832   ac_status=$?
19833   grep -v '^ *+' conftest.er1 >conftest.err
19834   rm -f conftest.er1
19835   cat conftest.err >&5
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); } >/dev/null; then
19838   if test -s conftest.err; then
19839     ac_cpp_err=$ac_c_preproc_warn_flag
19840     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19841   else
19842     ac_cpp_err=
19843   fi
19844 else
19845   ac_cpp_err=yes
19846 fi
19847 if test -z "$ac_cpp_err"; then
19848   ac_header_preproc=yes
19849 else
19850   echo "$as_me: failed program was:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19852
19853   ac_header_preproc=no
19854 fi
19855 rm -f conftest.err conftest.$ac_ext
19856 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19857 echo "${ECHO_T}$ac_header_preproc" >&6
19858
19859 # So?  What about this header?
19860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19861   yes:no: )
19862     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19863 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19864     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19865 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19866     ac_header_preproc=yes
19867     ;;
19868   no:yes:* )
19869     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19870 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19871     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
19872 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19874 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19875     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
19876 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19877     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19878 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19879     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19880 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19881     (
19882       cat <<\_ASBOX
19883 ## ------------------------------------------ ##
19884 ## Report this to the AC_PACKAGE_NAME lists.  ##
19885 ## ------------------------------------------ ##
19886 _ASBOX
19887     ) |
19888       sed "s/^/$as_me: WARNING:     /" >&2
19889     ;;
19890 esac
19891 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19892 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
19893 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19894   echo $ECHO_N "(cached) $ECHO_C" >&6
19895 else
19896   ac_cv_header_sys_mkdev_h=$ac_header_preproc
19897 fi
19898 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19899 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
19900
19901 fi
19902 if test $ac_cv_header_sys_mkdev_h = yes; then
19903
19904 cat >>confdefs.h <<\_ACEOF
19905 #define MAJOR_IN_MKDEV 1
19906 _ACEOF
19907
19908 fi
19909
19910
19911
19912   if test $ac_cv_header_sys_mkdev_h = no; then
19913     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19914   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19915 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
19916 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19917   echo $ECHO_N "(cached) $ECHO_C" >&6
19918 fi
19919 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19920 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
19921 else
19922   # Is the header compilable?
19923 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19924 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
19925 cat >conftest.$ac_ext <<_ACEOF
19926 /* confdefs.h.  */
19927 _ACEOF
19928 cat confdefs.h >>conftest.$ac_ext
19929 cat >>conftest.$ac_ext <<_ACEOF
19930 /* end confdefs.h.  */
19931 $ac_includes_default
19932 #include <sys/sysmacros.h>
19933 _ACEOF
19934 rm -f conftest.$ac_objext
19935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19936   (eval $ac_compile) 2>conftest.er1
19937   ac_status=$?
19938   grep -v '^ *+' conftest.er1 >conftest.err
19939   rm -f conftest.er1
19940   cat conftest.err >&5
19941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19942   (exit $ac_status); } &&
19943          { ac_try='test -z "$ac_c_werror_flag"
19944                          || test ! -s conftest.err'
19945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946   (eval $ac_try) 2>&5
19947   ac_status=$?
19948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949   (exit $ac_status); }; } &&
19950          { ac_try='test -s conftest.$ac_objext'
19951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19952   (eval $ac_try) 2>&5
19953   ac_status=$?
19954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955   (exit $ac_status); }; }; then
19956   ac_header_compiler=yes
19957 else
19958   echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.$ac_ext >&5
19960
19961 ac_header_compiler=no
19962 fi
19963 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19964 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19965 echo "${ECHO_T}$ac_header_compiler" >&6
19966
19967 # Is the header present?
19968 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19969 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
19970 cat >conftest.$ac_ext <<_ACEOF
19971 /* confdefs.h.  */
19972 _ACEOF
19973 cat confdefs.h >>conftest.$ac_ext
19974 cat >>conftest.$ac_ext <<_ACEOF
19975 /* end confdefs.h.  */
19976 #include <sys/sysmacros.h>
19977 _ACEOF
19978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19979   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19980   ac_status=$?
19981   grep -v '^ *+' conftest.er1 >conftest.err
19982   rm -f conftest.er1
19983   cat conftest.err >&5
19984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985   (exit $ac_status); } >/dev/null; then
19986   if test -s conftest.err; then
19987     ac_cpp_err=$ac_c_preproc_warn_flag
19988     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19989   else
19990     ac_cpp_err=
19991   fi
19992 else
19993   ac_cpp_err=yes
19994 fi
19995 if test -z "$ac_cpp_err"; then
19996   ac_header_preproc=yes
19997 else
19998   echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001   ac_header_preproc=no
20002 fi
20003 rm -f conftest.err conftest.$ac_ext
20004 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20005 echo "${ECHO_T}$ac_header_preproc" >&6
20006
20007 # So?  What about this header?
20008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20009   yes:no: )
20010     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20011 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20012     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20013 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20014     ac_header_preproc=yes
20015     ;;
20016   no:yes:* )
20017     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20018 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20019     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20020 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20021     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20022 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20023     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20024 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20025     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20026 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20027     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20028 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20029     (
20030       cat <<\_ASBOX
20031 ## ------------------------------------------ ##
20032 ## Report this to the AC_PACKAGE_NAME lists.  ##
20033 ## ------------------------------------------ ##
20034 _ASBOX
20035     ) |
20036       sed "s/^/$as_me: WARNING:     /" >&2
20037     ;;
20038 esac
20039 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20040 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
20041 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20042   echo $ECHO_N "(cached) $ECHO_C" >&6
20043 else
20044   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20045 fi
20046 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20047 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
20048
20049 fi
20050 if test $ac_cv_header_sys_sysmacros_h = yes; then
20051
20052 cat >>confdefs.h <<\_ACEOF
20053 #define MAJOR_IN_SYSMACROS 1
20054 _ACEOF
20055
20056 fi
20057
20058
20059   fi
20060 fi
20061
20062
20063
20064
20065
20066
20067 ac_header_dirent=no
20068 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20069   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20070 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20071 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20072 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20073   echo $ECHO_N "(cached) $ECHO_C" >&6
20074 else
20075   cat >conftest.$ac_ext <<_ACEOF
20076 /* confdefs.h.  */
20077 _ACEOF
20078 cat confdefs.h >>conftest.$ac_ext
20079 cat >>conftest.$ac_ext <<_ACEOF
20080 /* end confdefs.h.  */
20081 #include <sys/types.h>
20082 #include <$ac_hdr>
20083
20084 int
20085 main ()
20086 {
20087 if ((DIR *) 0)
20088 return 0;
20089   ;
20090   return 0;
20091 }
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20095   (eval $ac_compile) 2>conftest.er1
20096   ac_status=$?
20097   grep -v '^ *+' conftest.er1 >conftest.err
20098   rm -f conftest.er1
20099   cat conftest.err >&5
20100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101   (exit $ac_status); } &&
20102          { ac_try='test -z "$ac_c_werror_flag"
20103                          || test ! -s conftest.err'
20104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20105   (eval $ac_try) 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; } &&
20109          { ac_try='test -s conftest.$ac_objext'
20110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111   (eval $ac_try) 2>&5
20112   ac_status=$?
20113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114   (exit $ac_status); }; }; then
20115   eval "$as_ac_Header=yes"
20116 else
20117   echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20119
20120 eval "$as_ac_Header=no"
20121 fi
20122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20123 fi
20124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20125 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20126 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20127   cat >>confdefs.h <<_ACEOF
20128 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20129 _ACEOF
20130
20131 ac_header_dirent=$ac_hdr; break
20132 fi
20133
20134 done
20135 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20136 if test $ac_header_dirent = dirent.h; then
20137   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20138 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20139 if test "${ac_cv_search_opendir+set}" = set; then
20140   echo $ECHO_N "(cached) $ECHO_C" >&6
20141 else
20142   ac_func_search_save_LIBS=$LIBS
20143 ac_cv_search_opendir=no
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150
20151 /* Override any gcc2 internal prototype to avoid an error.  */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 /* We use char because int might match the return type of a gcc2
20156    builtin and then its argument prototype would still apply.  */
20157 char opendir ();
20158 int
20159 main ()
20160 {
20161 opendir ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168   (eval $ac_link) 2>conftest.er1
20169   ac_status=$?
20170   grep -v '^ *+' conftest.er1 >conftest.err
20171   rm -f conftest.er1
20172   cat conftest.err >&5
20173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174   (exit $ac_status); } &&
20175          { ac_try='test -z "$ac_c_werror_flag"
20176                          || test ! -s conftest.err'
20177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178   (eval $ac_try) 2>&5
20179   ac_status=$?
20180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181   (exit $ac_status); }; } &&
20182          { ac_try='test -s conftest$ac_exeext'
20183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184   (eval $ac_try) 2>&5
20185   ac_status=$?
20186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187   (exit $ac_status); }; }; then
20188   ac_cv_search_opendir="none required"
20189 else
20190   echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20192
20193 fi
20194 rm -f conftest.err conftest.$ac_objext \
20195       conftest$ac_exeext conftest.$ac_ext
20196 if test "$ac_cv_search_opendir" = no; then
20197   for ac_lib in dir; do
20198     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20199     cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205
20206 /* Override any gcc2 internal prototype to avoid an error.  */
20207 #ifdef __cplusplus
20208 extern "C"
20209 #endif
20210 /* We use char because int might match the return type of a gcc2
20211    builtin and then its argument prototype would still apply.  */
20212 char opendir ();
20213 int
20214 main ()
20215 {
20216 opendir ();
20217   ;
20218   return 0;
20219 }
20220 _ACEOF
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223   (eval $ac_link) 2>conftest.er1
20224   ac_status=$?
20225   grep -v '^ *+' conftest.er1 >conftest.err
20226   rm -f conftest.er1
20227   cat conftest.err >&5
20228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229   (exit $ac_status); } &&
20230          { ac_try='test -z "$ac_c_werror_flag"
20231                          || test ! -s conftest.err'
20232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233   (eval $ac_try) 2>&5
20234   ac_status=$?
20235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236   (exit $ac_status); }; } &&
20237          { ac_try='test -s conftest$ac_exeext'
20238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239   (eval $ac_try) 2>&5
20240   ac_status=$?
20241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242   (exit $ac_status); }; }; then
20243   ac_cv_search_opendir="-l$ac_lib"
20244 break
20245 else
20246   echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20248
20249 fi
20250 rm -f conftest.err conftest.$ac_objext \
20251       conftest$ac_exeext conftest.$ac_ext
20252   done
20253 fi
20254 LIBS=$ac_func_search_save_LIBS
20255 fi
20256 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20257 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20258 if test "$ac_cv_search_opendir" != no; then
20259   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20260
20261 fi
20262
20263 else
20264   echo "$as_me:$LINENO: checking for library containing opendir" >&5
20265 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20266 if test "${ac_cv_search_opendir+set}" = set; then
20267   echo $ECHO_N "(cached) $ECHO_C" >&6
20268 else
20269   ac_func_search_save_LIBS=$LIBS
20270 ac_cv_search_opendir=no
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h.  */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h.  */
20277
20278 /* Override any gcc2 internal prototype to avoid an error.  */
20279 #ifdef __cplusplus
20280 extern "C"
20281 #endif
20282 /* We use char because int might match the return type of a gcc2
20283    builtin and then its argument prototype would still apply.  */
20284 char opendir ();
20285 int
20286 main ()
20287 {
20288 opendir ();
20289   ;
20290   return 0;
20291 }
20292 _ACEOF
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20295   (eval $ac_link) 2>conftest.er1
20296   ac_status=$?
20297   grep -v '^ *+' conftest.er1 >conftest.err
20298   rm -f conftest.er1
20299   cat conftest.err >&5
20300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); } &&
20302          { ac_try='test -z "$ac_c_werror_flag"
20303                          || test ! -s conftest.err'
20304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305   (eval $ac_try) 2>&5
20306   ac_status=$?
20307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308   (exit $ac_status); }; } &&
20309          { ac_try='test -s conftest$ac_exeext'
20310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20311   (eval $ac_try) 2>&5
20312   ac_status=$?
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); }; }; then
20315   ac_cv_search_opendir="none required"
20316 else
20317   echo "$as_me: failed program was:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20319
20320 fi
20321 rm -f conftest.err conftest.$ac_objext \
20322       conftest$ac_exeext conftest.$ac_ext
20323 if test "$ac_cv_search_opendir" = no; then
20324   for ac_lib in x; do
20325     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20326     cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332
20333 /* Override any gcc2 internal prototype to avoid an error.  */
20334 #ifdef __cplusplus
20335 extern "C"
20336 #endif
20337 /* We use char because int might match the return type of a gcc2
20338    builtin and then its argument prototype would still apply.  */
20339 char opendir ();
20340 int
20341 main ()
20342 {
20343 opendir ();
20344   ;
20345   return 0;
20346 }
20347 _ACEOF
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20350   (eval $ac_link) 2>conftest.er1
20351   ac_status=$?
20352   grep -v '^ *+' conftest.er1 >conftest.err
20353   rm -f conftest.er1
20354   cat conftest.err >&5
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); } &&
20357          { ac_try='test -z "$ac_c_werror_flag"
20358                          || test ! -s conftest.err'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; } &&
20364          { ac_try='test -s conftest$ac_exeext'
20365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366   (eval $ac_try) 2>&5
20367   ac_status=$?
20368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369   (exit $ac_status); }; }; then
20370   ac_cv_search_opendir="-l$ac_lib"
20371 break
20372 else
20373   echo "$as_me: failed program was:" >&5
20374 sed 's/^/| /' conftest.$ac_ext >&5
20375
20376 fi
20377 rm -f conftest.err conftest.$ac_objext \
20378       conftest$ac_exeext conftest.$ac_ext
20379   done
20380 fi
20381 LIBS=$ac_func_search_save_LIBS
20382 fi
20383 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20384 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20385 if test "$ac_cv_search_opendir" != no; then
20386   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20387
20388 fi
20389
20390 fi
20391
20392 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20393 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
20394 if test "${ac_cv_header_stat_broken+set}" = set; then
20395   echo $ECHO_N "(cached) $ECHO_C" >&6
20396 else
20397   cat >conftest.$ac_ext <<_ACEOF
20398 /* confdefs.h.  */
20399 _ACEOF
20400 cat confdefs.h >>conftest.$ac_ext
20401 cat >>conftest.$ac_ext <<_ACEOF
20402 /* end confdefs.h.  */
20403 #include <sys/types.h>
20404 #include <sys/stat.h>
20405
20406 #if defined(S_ISBLK) && defined(S_IFDIR)
20407 # if S_ISBLK (S_IFDIR)
20408 You lose.
20409 # endif
20410 #endif
20411
20412 #if defined(S_ISBLK) && defined(S_IFCHR)
20413 # if S_ISBLK (S_IFCHR)
20414 You lose.
20415 # endif
20416 #endif
20417
20418 #if defined(S_ISLNK) && defined(S_IFREG)
20419 # if S_ISLNK (S_IFREG)
20420 You lose.
20421 # endif
20422 #endif
20423
20424 #if defined(S_ISSOCK) && defined(S_IFREG)
20425 # if S_ISSOCK (S_IFREG)
20426 You lose.
20427 # endif
20428 #endif
20429
20430 _ACEOF
20431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20432   $EGREP "You lose" >/dev/null 2>&1; then
20433   ac_cv_header_stat_broken=yes
20434 else
20435   ac_cv_header_stat_broken=no
20436 fi
20437 rm -f conftest*
20438
20439 fi
20440 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20441 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
20442 if test $ac_cv_header_stat_broken = yes; then
20443
20444 cat >>confdefs.h <<\_ACEOF
20445 #define STAT_MACROS_BROKEN 1
20446 _ACEOF
20447
20448 fi
20449
20450 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20451 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20452 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20453   echo $ECHO_N "(cached) $ECHO_C" >&6
20454 else
20455   cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 #include <sys/types.h>
20462 #include <sys/wait.h>
20463 #ifndef WEXITSTATUS
20464 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20465 #endif
20466 #ifndef WIFEXITED
20467 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20468 #endif
20469
20470 int
20471 main ()
20472 {
20473   int s;
20474   wait (&s);
20475   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20476   ;
20477   return 0;
20478 }
20479 _ACEOF
20480 rm -f conftest.$ac_objext
20481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20482   (eval $ac_compile) 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -z "$ac_c_werror_flag"
20490                          || test ! -s conftest.err'
20491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20492   (eval $ac_try) 2>&5
20493   ac_status=$?
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); }; } &&
20496          { ac_try='test -s conftest.$ac_objext'
20497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20498   (eval $ac_try) 2>&5
20499   ac_status=$?
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); }; }; then
20502   ac_cv_header_sys_wait_h=yes
20503 else
20504   echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507 ac_cv_header_sys_wait_h=no
20508 fi
20509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20510 fi
20511 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20512 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20513 if test $ac_cv_header_sys_wait_h = yes; then
20514
20515 cat >>confdefs.h <<\_ACEOF
20516 #define HAVE_SYS_WAIT_H 1
20517 _ACEOF
20518
20519 fi
20520
20521 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20522 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20523 if test "${ac_cv_header_time+set}" = set; then
20524   echo $ECHO_N "(cached) $ECHO_C" >&6
20525 else
20526   cat >conftest.$ac_ext <<_ACEOF
20527 /* confdefs.h.  */
20528 _ACEOF
20529 cat confdefs.h >>conftest.$ac_ext
20530 cat >>conftest.$ac_ext <<_ACEOF
20531 /* end confdefs.h.  */
20532 #include <sys/types.h>
20533 #include <sys/time.h>
20534 #include <time.h>
20535
20536 int
20537 main ()
20538 {
20539 if ((struct tm *) 0)
20540 return 0;
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext
20546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20547   (eval $ac_compile) 2>conftest.er1
20548   ac_status=$?
20549   grep -v '^ *+' conftest.er1 >conftest.err
20550   rm -f conftest.er1
20551   cat conftest.err >&5
20552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553   (exit $ac_status); } &&
20554          { ac_try='test -z "$ac_c_werror_flag"
20555                          || test ! -s conftest.err'
20556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20557   (eval $ac_try) 2>&5
20558   ac_status=$?
20559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560   (exit $ac_status); }; } &&
20561          { ac_try='test -s conftest.$ac_objext'
20562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20563   (eval $ac_try) 2>&5
20564   ac_status=$?
20565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566   (exit $ac_status); }; }; then
20567   ac_cv_header_time=yes
20568 else
20569   echo "$as_me: failed program was:" >&5
20570 sed 's/^/| /' conftest.$ac_ext >&5
20571
20572 ac_cv_header_time=no
20573 fi
20574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20575 fi
20576 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20577 echo "${ECHO_T}$ac_cv_header_time" >&6
20578 if test $ac_cv_header_time = yes; then
20579
20580 cat >>confdefs.h <<\_ACEOF
20581 #define TIME_WITH_SYS_TIME 1
20582 _ACEOF
20583
20584 fi
20585
20586
20587 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
20589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20590   echo $ECHO_N "(cached) $ECHO_C" >&6
20591 else
20592   cat >conftest.$ac_ext <<_ACEOF
20593 /* confdefs.h.  */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h.  */
20598 $ac_includes_default
20599 int
20600 main ()
20601 {
20602 static struct stat ac_aggr;
20603 if (ac_aggr.st_blksize)
20604 return 0;
20605   ;
20606   return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext
20610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20611   (eval $ac_compile) 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -z "$ac_c_werror_flag"
20619                          || test ! -s conftest.err'
20620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20621   (eval $ac_try) 2>&5
20622   ac_status=$?
20623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624   (exit $ac_status); }; } &&
20625          { ac_try='test -s conftest.$ac_objext'
20626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627   (eval $ac_try) 2>&5
20628   ac_status=$?
20629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630   (exit $ac_status); }; }; then
20631   ac_cv_member_struct_stat_st_blksize=yes
20632 else
20633   echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20635
20636 cat >conftest.$ac_ext <<_ACEOF
20637 /* confdefs.h.  */
20638 _ACEOF
20639 cat confdefs.h >>conftest.$ac_ext
20640 cat >>conftest.$ac_ext <<_ACEOF
20641 /* end confdefs.h.  */
20642 $ac_includes_default
20643 int
20644 main ()
20645 {
20646 static struct stat ac_aggr;
20647 if (sizeof ac_aggr.st_blksize)
20648 return 0;
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 rm -f conftest.$ac_objext
20654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655   (eval $ac_compile) 2>conftest.er1
20656   ac_status=$?
20657   grep -v '^ *+' conftest.er1 >conftest.err
20658   rm -f conftest.er1
20659   cat conftest.err >&5
20660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661   (exit $ac_status); } &&
20662          { ac_try='test -z "$ac_c_werror_flag"
20663                          || test ! -s conftest.err'
20664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665   (eval $ac_try) 2>&5
20666   ac_status=$?
20667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668   (exit $ac_status); }; } &&
20669          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
20675   ac_cv_member_struct_stat_st_blksize=yes
20676 else
20677   echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20679
20680 ac_cv_member_struct_stat_st_blksize=no
20681 fi
20682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20683 fi
20684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20685 fi
20686 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20687 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
20688 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20689
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20692 _ACEOF
20693
20694
20695 cat >>confdefs.h <<\_ACEOF
20696 #define HAVE_ST_BLKSIZE 1
20697 _ACEOF
20698
20699 fi
20700
20701
20702 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20703 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
20704 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20705   echo $ECHO_N "(cached) $ECHO_C" >&6
20706 else
20707   cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 $ac_includes_default
20714 int
20715 main ()
20716 {
20717 static struct stat ac_aggr;
20718 if (ac_aggr.st_blocks)
20719 return 0;
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20726   (eval $ac_compile) 2>conftest.er1
20727   ac_status=$?
20728   grep -v '^ *+' conftest.er1 >conftest.err
20729   rm -f conftest.er1
20730   cat conftest.err >&5
20731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20732   (exit $ac_status); } &&
20733          { ac_try='test -z "$ac_c_werror_flag"
20734                          || test ! -s conftest.err'
20735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736   (eval $ac_try) 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest.$ac_objext'
20741   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742   (eval $ac_try) 2>&5
20743   ac_status=$?
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); }; }; then
20746   ac_cv_member_struct_stat_st_blocks=yes
20747 else
20748   echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 $ac_includes_default
20758 int
20759 main ()
20760 {
20761 static struct stat ac_aggr;
20762 if (sizeof ac_aggr.st_blocks)
20763 return 0;
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 rm -f conftest.$ac_objext
20769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20770   (eval $ac_compile) 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } &&
20777          { ac_try='test -z "$ac_c_werror_flag"
20778                          || test ! -s conftest.err'
20779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20780   (eval $ac_try) 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; } &&
20784          { ac_try='test -s conftest.$ac_objext'
20785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20786   (eval $ac_try) 2>&5
20787   ac_status=$?
20788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); }; }; then
20790   ac_cv_member_struct_stat_st_blocks=yes
20791 else
20792   echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 ac_cv_member_struct_stat_st_blocks=no
20796 fi
20797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20798 fi
20799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20800 fi
20801 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20802 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
20803 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20804
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20807 _ACEOF
20808
20809
20810 cat >>confdefs.h <<\_ACEOF
20811 #define HAVE_ST_BLOCKS 1
20812 _ACEOF
20813
20814 else
20815   case $LIBOBJS in
20816     "fileblocks.$ac_objext"   | \
20817   *" fileblocks.$ac_objext"   | \
20818     "fileblocks.$ac_objext "* | \
20819   *" fileblocks.$ac_objext "* ) ;;
20820   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
20821 esac
20822
20823 fi
20824
20825
20826 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20827 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20828 if test "${ac_cv_struct_tm+set}" = set; then
20829   echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <sys/types.h>
20838 #include <time.h>
20839
20840 int
20841 main ()
20842 {
20843 struct tm *tp; tp->tm_sec;
20844   ;
20845   return 0;
20846 }
20847 _ACEOF
20848 rm -f conftest.$ac_objext
20849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20850   (eval $ac_compile) 2>conftest.er1
20851   ac_status=$?
20852   grep -v '^ *+' conftest.er1 >conftest.err
20853   rm -f conftest.er1
20854   cat conftest.err >&5
20855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856   (exit $ac_status); } &&
20857          { ac_try='test -z "$ac_c_werror_flag"
20858                          || test ! -s conftest.err'
20859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860   (eval $ac_try) 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest.$ac_objext'
20865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866   (eval $ac_try) 2>&5
20867   ac_status=$?
20868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869   (exit $ac_status); }; }; then
20870   ac_cv_struct_tm=time.h
20871 else
20872   echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20874
20875 ac_cv_struct_tm=sys/time.h
20876 fi
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 fi
20879 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20880 echo "${ECHO_T}$ac_cv_struct_tm" >&6
20881 if test $ac_cv_struct_tm = sys/time.h; then
20882
20883 cat >>confdefs.h <<\_ACEOF
20884 #define TM_IN_SYS_TIME 1
20885 _ACEOF
20886
20887 fi
20888
20889 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20890 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
20891 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894   cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h.  */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h.  */
20900 #include <sys/types.h>
20901 #include <$ac_cv_struct_tm>
20902
20903
20904 int
20905 main ()
20906 {
20907 static struct tm ac_aggr;
20908 if (ac_aggr.tm_zone)
20909 return 0;
20910   ;
20911   return 0;
20912 }
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20916   (eval $ac_compile) 2>conftest.er1
20917   ac_status=$?
20918   grep -v '^ *+' conftest.er1 >conftest.err
20919   rm -f conftest.er1
20920   cat conftest.err >&5
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); } &&
20923          { ac_try='test -z "$ac_c_werror_flag"
20924                          || test ! -s conftest.err'
20925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20926   (eval $ac_try) 2>&5
20927   ac_status=$?
20928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20929   (exit $ac_status); }; } &&
20930          { ac_try='test -s conftest.$ac_objext'
20931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20932   (eval $ac_try) 2>&5
20933   ac_status=$?
20934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935   (exit $ac_status); }; }; then
20936   ac_cv_member_struct_tm_tm_zone=yes
20937 else
20938   echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 cat >conftest.$ac_ext <<_ACEOF
20942 /* confdefs.h.  */
20943 _ACEOF
20944 cat confdefs.h >>conftest.$ac_ext
20945 cat >>conftest.$ac_ext <<_ACEOF
20946 /* end confdefs.h.  */
20947 #include <sys/types.h>
20948 #include <$ac_cv_struct_tm>
20949
20950
20951 int
20952 main ()
20953 {
20954 static struct tm ac_aggr;
20955 if (sizeof ac_aggr.tm_zone)
20956 return 0;
20957   ;
20958   return 0;
20959 }
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20963   (eval $ac_compile) 2>conftest.er1
20964   ac_status=$?
20965   grep -v '^ *+' conftest.er1 >conftest.err
20966   rm -f conftest.er1
20967   cat conftest.err >&5
20968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20969   (exit $ac_status); } &&
20970          { ac_try='test -z "$ac_c_werror_flag"
20971                          || test ! -s conftest.err'
20972   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20973   (eval $ac_try) 2>&5
20974   ac_status=$?
20975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20976   (exit $ac_status); }; } &&
20977          { ac_try='test -s conftest.$ac_objext'
20978   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20979   (eval $ac_try) 2>&5
20980   ac_status=$?
20981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20982   (exit $ac_status); }; }; then
20983   ac_cv_member_struct_tm_tm_zone=yes
20984 else
20985   echo "$as_me: failed program was:" >&5
20986 sed 's/^/| /' conftest.$ac_ext >&5
20987
20988 ac_cv_member_struct_tm_tm_zone=no
20989 fi
20990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20991 fi
20992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20993 fi
20994 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20995 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
20996 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20997
20998 cat >>confdefs.h <<_ACEOF
20999 #define HAVE_STRUCT_TM_TM_ZONE 1
21000 _ACEOF
21001
21002
21003 fi
21004
21005 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21006
21007 cat >>confdefs.h <<\_ACEOF
21008 #define HAVE_TM_ZONE 1
21009 _ACEOF
21010
21011 else
21012   echo "$as_me:$LINENO: checking for tzname" >&5
21013 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
21014 if test "${ac_cv_var_tzname+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h.  */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h.  */
21023 #include <time.h>
21024 #ifndef tzname /* For SGI.  */
21025 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
21026 #endif
21027
21028 int
21029 main ()
21030 {
21031 atoi(*tzname);
21032   ;
21033   return 0;
21034 }
21035 _ACEOF
21036 rm -f conftest.$ac_objext conftest$ac_exeext
21037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21038   (eval $ac_link) 2>conftest.er1
21039   ac_status=$?
21040   grep -v '^ *+' conftest.er1 >conftest.err
21041   rm -f conftest.er1
21042   cat conftest.err >&5
21043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044   (exit $ac_status); } &&
21045          { ac_try='test -z "$ac_c_werror_flag"
21046                          || test ! -s conftest.err'
21047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048   (eval $ac_try) 2>&5
21049   ac_status=$?
21050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051   (exit $ac_status); }; } &&
21052          { ac_try='test -s conftest$ac_exeext'
21053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054   (eval $ac_try) 2>&5
21055   ac_status=$?
21056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057   (exit $ac_status); }; }; then
21058   ac_cv_var_tzname=yes
21059 else
21060   echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21062
21063 ac_cv_var_tzname=no
21064 fi
21065 rm -f conftest.err conftest.$ac_objext \
21066       conftest$ac_exeext conftest.$ac_ext
21067 fi
21068 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21069 echo "${ECHO_T}$ac_cv_var_tzname" >&6
21070   if test $ac_cv_var_tzname = yes; then
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_TZNAME 1
21074 _ACEOF
21075
21076   fi
21077 fi
21078
21079
21080 echo "$as_me:$LINENO: checking for utime.h" >&5
21081 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
21082 if test "${ba_cv_header_utime_h+set}" = set; then
21083   echo $ECHO_N "(cached) $ECHO_C" >&6
21084 else
21085   cat >conftest.$ac_ext <<_ACEOF
21086 /* confdefs.h.  */
21087 _ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h.  */
21091
21092 #include <sys/types.h>
21093 #include <utime.h>
21094 int
21095 main ()
21096 {
21097 struct utimbuf foo
21098   ;
21099   return 0;
21100 }
21101 _ACEOF
21102 rm -f conftest.$ac_objext
21103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21104   (eval $ac_compile) 2>conftest.er1
21105   ac_status=$?
21106   grep -v '^ *+' conftest.er1 >conftest.err
21107   rm -f conftest.er1
21108   cat conftest.err >&5
21109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21110   (exit $ac_status); } &&
21111          { ac_try='test -z "$ac_c_werror_flag"
21112                          || test ! -s conftest.err'
21113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21114   (eval $ac_try) 2>&5
21115   ac_status=$?
21116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117   (exit $ac_status); }; } &&
21118          { ac_try='test -s conftest.$ac_objext'
21119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21120   (eval $ac_try) 2>&5
21121   ac_status=$?
21122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21123   (exit $ac_status); }; }; then
21124   ba_cv_header_utime_h=yes
21125 else
21126   echo "$as_me: failed program was:" >&5
21127 sed 's/^/| /' conftest.$ac_ext >&5
21128
21129 ba_cv_header_utime_h=no
21130 fi
21131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21132 fi
21133 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21134 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
21135 test $ba_cv_header_utime_h = yes &&
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_UTIME_H 1
21138 _ACEOF
21139
21140
21141 echo "$as_me:$LINENO: checking for socklen_t" >&5
21142 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21143 if test "${ba_cv_header_socklen_t+set}" = set; then
21144   echo $ECHO_N "(cached) $ECHO_C" >&6
21145 else
21146   cat >conftest.$ac_ext <<_ACEOF
21147 /* confdefs.h.  */
21148 _ACEOF
21149 cat confdefs.h >>conftest.$ac_ext
21150 cat >>conftest.$ac_ext <<_ACEOF
21151 /* end confdefs.h.  */
21152
21153 #include <sys/types.h>
21154 #include <sys/socket.h>
21155 int
21156 main ()
21157 {
21158 socklen_t x
21159   ;
21160   return 0;
21161 }
21162 _ACEOF
21163 rm -f conftest.$ac_objext
21164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21165   (eval $ac_compile) 2>conftest.er1
21166   ac_status=$?
21167   grep -v '^ *+' conftest.er1 >conftest.err
21168   rm -f conftest.er1
21169   cat conftest.err >&5
21170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171   (exit $ac_status); } &&
21172          { ac_try='test -z "$ac_c_werror_flag"
21173                          || test ! -s conftest.err'
21174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21175   (eval $ac_try) 2>&5
21176   ac_status=$?
21177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21178   (exit $ac_status); }; } &&
21179          { ac_try='test -s conftest.$ac_objext'
21180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21181   (eval $ac_try) 2>&5
21182   ac_status=$?
21183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184   (exit $ac_status); }; }; then
21185   ba_cv_header_socklen_t=yes
21186 else
21187   echo "$as_me: failed program was:" >&5
21188 sed 's/^/| /' conftest.$ac_ext >&5
21189
21190 ba_cv_header_socklen_t=no
21191 fi
21192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21195 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
21196 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21197 #define HAVE_SOCKLEN_T 1
21198 _ACEOF
21199
21200
21201 echo "$as_me:$LINENO: checking for bigendian" >&5
21202 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
21203 if test "${ba_cv_bigendian+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   if test "$cross_compiling" = yes; then
21207   ba_cv_bigendian=no
21208 else
21209   cat >conftest.$ac_ext <<_ACEOF
21210 /* confdefs.h.  */
21211 _ACEOF
21212 cat confdefs.h >>conftest.$ac_ext
21213 cat >>conftest.$ac_ext <<_ACEOF
21214 /* end confdefs.h.  */
21215 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21216 _ACEOF
21217 rm -f conftest$ac_exeext
21218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21219   (eval $ac_link) 2>&5
21220   ac_status=$?
21221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21224   (eval $ac_try) 2>&5
21225   ac_status=$?
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); }; }; then
21228   ba_cv_bigendian=yes
21229 else
21230   echo "$as_me: program exited with status $ac_status" >&5
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21233
21234 ( exit $ac_status )
21235 ba_cv_bigendian=no
21236 fi
21237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21238 fi
21239 fi
21240 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21241 echo "${ECHO_T}$ba_cv_bigendian" >&6
21242 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21243 #define HAVE_BIGENDIAN 1
21244 _ACEOF
21245
21246
21247 ac_ext=cc
21248 ac_cpp='$CXXCPP $CPPFLAGS'
21249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21252
21253
21254 echo "$as_me:$LINENO: checking for typeof" >&5
21255 echo $ECHO_N "checking for typeof... $ECHO_C" >&6
21256 if test "${ba_cv_have_typeof+set}" = set; then
21257   echo $ECHO_N "(cached) $ECHO_C" >&6
21258 else
21259   if test "$cross_compiling" = yes; then
21260   ba_cv_have_typeof=no
21261 else
21262   cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268 main(){char *a = 0; a = (typeof a)a;}
21269 _ACEOF
21270 rm -f conftest$ac_exeext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21272   (eval $ac_link) 2>&5
21273   ac_status=$?
21274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21275   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277   (eval $ac_try) 2>&5
21278   ac_status=$?
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); }; }; then
21281   ba_cv_have_typeof=yes
21282 else
21283   echo "$as_me: program exited with status $ac_status" >&5
21284 echo "$as_me: failed program was:" >&5
21285 sed 's/^/| /' conftest.$ac_ext >&5
21286
21287 ( exit $ac_status )
21288 ba_cv_have_typeof=no
21289 fi
21290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21291 fi
21292 fi
21293 echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21294 echo "${ECHO_T}$ba_cv_have_typeof" >&6
21295 test $ba_cv_have_typeof = yes &&
21296 cat >>confdefs.h <<\_ACEOF
21297 #define HAVE_TYPEOF 1
21298 _ACEOF
21299
21300 ac_ext=c
21301 ac_cpp='$CPP $CPPFLAGS'
21302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21305
21306
21307 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21308 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21309 if test "${ac_cv_c_const+set}" = set; then
21310   echo $ECHO_N "(cached) $ECHO_C" >&6
21311 else
21312   cat >conftest.$ac_ext <<_ACEOF
21313 /* confdefs.h.  */
21314 _ACEOF
21315 cat confdefs.h >>conftest.$ac_ext
21316 cat >>conftest.$ac_ext <<_ACEOF
21317 /* end confdefs.h.  */
21318
21319 int
21320 main ()
21321 {
21322 /* FIXME: Include the comments suggested by Paul. */
21323 #ifndef __cplusplus
21324   /* Ultrix mips cc rejects this.  */
21325   typedef int charset[2];
21326   const charset x;
21327   /* SunOS 4.1.1 cc rejects this.  */
21328   char const *const *ccp;
21329   char **p;
21330   /* NEC SVR4.0.2 mips cc rejects this.  */
21331   struct point {int x, y;};
21332   static struct point const zero = {0,0};
21333   /* AIX XL C 1.02.0.0 rejects this.
21334      It does not let you subtract one const X* pointer from another in
21335      an arm of an if-expression whose if-part is not a constant
21336      expression */
21337   const char *g = "string";
21338   ccp = &g + (g ? g-g : 0);
21339   /* HPUX 7.0 cc rejects these. */
21340   ++ccp;
21341   p = (char**) ccp;
21342   ccp = (char const *const *) p;
21343   { /* SCO 3.2v4 cc rejects this.  */
21344     char *t;
21345     char const *s = 0 ? (char *) 0 : (char const *) 0;
21346
21347     *t++ = 0;
21348   }
21349   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21350     int x[] = {25, 17};
21351     const int *foo = &x[0];
21352     ++foo;
21353   }
21354   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21355     typedef const int *iptr;
21356     iptr p = 0;
21357     ++p;
21358   }
21359   { /* AIX XL C 1.02.0.0 rejects this saying
21360        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21361     struct s { int j; const int *ap[3]; };
21362     struct s *b; b->j = 5;
21363   }
21364   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21365     const int foo = 10;
21366   }
21367 #endif
21368
21369   ;
21370   return 0;
21371 }
21372 _ACEOF
21373 rm -f conftest.$ac_objext
21374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21375   (eval $ac_compile) 2>conftest.er1
21376   ac_status=$?
21377   grep -v '^ *+' conftest.er1 >conftest.err
21378   rm -f conftest.er1
21379   cat conftest.err >&5
21380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381   (exit $ac_status); } &&
21382          { ac_try='test -z "$ac_c_werror_flag"
21383                          || test ! -s conftest.err'
21384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385   (eval $ac_try) 2>&5
21386   ac_status=$?
21387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388   (exit $ac_status); }; } &&
21389          { ac_try='test -s conftest.$ac_objext'
21390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391   (eval $ac_try) 2>&5
21392   ac_status=$?
21393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394   (exit $ac_status); }; }; then
21395   ac_cv_c_const=yes
21396 else
21397   echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21399
21400 ac_cv_c_const=no
21401 fi
21402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21403 fi
21404 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21405 echo "${ECHO_T}$ac_cv_c_const" >&6
21406 if test $ac_cv_c_const = no; then
21407
21408 cat >>confdefs.h <<\_ACEOF
21409 #define const
21410 _ACEOF
21411
21412 fi
21413
21414
21415
21416 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21417 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
21418 fstype=no
21419 # The order of these tests is important.
21420 cat >conftest.$ac_ext <<_ACEOF
21421 /* confdefs.h.  */
21422 _ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h.  */
21426 #include <sys/statvfs.h>
21427 #include <sys/fstyp.h>
21428 _ACEOF
21429 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21430   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21431   ac_status=$?
21432   grep -v '^ *+' conftest.er1 >conftest.err
21433   rm -f conftest.er1
21434   cat conftest.err >&5
21435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436   (exit $ac_status); } >/dev/null; then
21437   if test -s conftest.err; then
21438     ac_cpp_err=$ac_c_preproc_warn_flag
21439     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21440   else
21441     ac_cpp_err=
21442   fi
21443 else
21444   ac_cpp_err=yes
21445 fi
21446 if test -z "$ac_cpp_err"; then
21447   cat >>confdefs.h <<\_ACEOF
21448 #define FSTYPE_STATVFS 1
21449 _ACEOF
21450  fstype=SVR4
21451 else
21452   echo "$as_me: failed program was:" >&5
21453 sed 's/^/| /' conftest.$ac_ext >&5
21454
21455
21456 fi
21457 rm -f conftest.err conftest.$ac_ext
21458 if test $fstype = no; then
21459 cat >conftest.$ac_ext <<_ACEOF
21460 /* confdefs.h.  */
21461 _ACEOF
21462 cat confdefs.h >>conftest.$ac_ext
21463 cat >>conftest.$ac_ext <<_ACEOF
21464 /* end confdefs.h.  */
21465 #include <sys/statfs.h>
21466 #include <sys/fstyp.h>
21467 _ACEOF
21468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21470   ac_status=$?
21471   grep -v '^ *+' conftest.er1 >conftest.err
21472   rm -f conftest.er1
21473   cat conftest.err >&5
21474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475   (exit $ac_status); } >/dev/null; then
21476   if test -s conftest.err; then
21477     ac_cpp_err=$ac_c_preproc_warn_flag
21478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21479   else
21480     ac_cpp_err=
21481   fi
21482 else
21483   ac_cpp_err=yes
21484 fi
21485 if test -z "$ac_cpp_err"; then
21486   cat >>confdefs.h <<\_ACEOF
21487 #define FSTYPE_USG_STATFS 1
21488 _ACEOF
21489  fstype=SVR3
21490 else
21491   echo "$as_me: failed program was:" >&5
21492 sed 's/^/| /' conftest.$ac_ext >&5
21493
21494
21495 fi
21496 rm -f conftest.err conftest.$ac_ext
21497 fi
21498 if test $fstype = no; then
21499 cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505 #include <sys/statfs.h>
21506 #include <sys/vmount.h>
21507 _ACEOF
21508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21510   ac_status=$?
21511   grep -v '^ *+' conftest.er1 >conftest.err
21512   rm -f conftest.er1
21513   cat conftest.err >&5
21514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515   (exit $ac_status); } >/dev/null; then
21516   if test -s conftest.err; then
21517     ac_cpp_err=$ac_c_preproc_warn_flag
21518     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21519   else
21520     ac_cpp_err=
21521   fi
21522 else
21523   ac_cpp_err=yes
21524 fi
21525 if test -z "$ac_cpp_err"; then
21526   cat >>confdefs.h <<\_ACEOF
21527 #define FSTYPE_AIX_STATFS 1
21528 _ACEOF
21529  fstype=AIX
21530 else
21531   echo "$as_me: failed program was:" >&5
21532 sed 's/^/| /' conftest.$ac_ext >&5
21533
21534
21535 fi
21536 rm -f conftest.err conftest.$ac_ext
21537 fi
21538 if test $fstype = no; then
21539 cat >conftest.$ac_ext <<_ACEOF
21540 /* confdefs.h.  */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h.  */
21545 #include <mntent.h>
21546 _ACEOF
21547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21549   ac_status=$?
21550   grep -v '^ *+' conftest.er1 >conftest.err
21551   rm -f conftest.er1
21552   cat conftest.err >&5
21553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554   (exit $ac_status); } >/dev/null; then
21555   if test -s conftest.err; then
21556     ac_cpp_err=$ac_c_preproc_warn_flag
21557     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21558   else
21559     ac_cpp_err=
21560   fi
21561 else
21562   ac_cpp_err=yes
21563 fi
21564 if test -z "$ac_cpp_err"; then
21565   cat >>confdefs.h <<\_ACEOF
21566 #define FSTYPE_MNTENT 1
21567 _ACEOF
21568  fstype=4.3BSD
21569 else
21570   echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573
21574 fi
21575 rm -f conftest.err conftest.$ac_ext
21576 fi
21577 if test $fstype = no; then
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 #include <sys/mount.h>
21585
21586 _ACEOF
21587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21588   $EGREP "f_type;" >/dev/null 2>&1; then
21589   cat >>confdefs.h <<\_ACEOF
21590 #define FSTYPE_STATFS 1
21591 _ACEOF
21592  fstype=4.4BSD/OSF1
21593 fi
21594 rm -f conftest*
21595
21596 fi
21597 if test $fstype = no; then
21598 cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 #include <sys/mount.h>
21605 #include <sys/fs_types.h>
21606 _ACEOF
21607 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21608   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21609   ac_status=$?
21610   grep -v '^ *+' conftest.er1 >conftest.err
21611   rm -f conftest.er1
21612   cat conftest.err >&5
21613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614   (exit $ac_status); } >/dev/null; then
21615   if test -s conftest.err; then
21616     ac_cpp_err=$ac_c_preproc_warn_flag
21617     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21618   else
21619     ac_cpp_err=
21620   fi
21621 else
21622   ac_cpp_err=yes
21623 fi
21624 if test -z "$ac_cpp_err"; then
21625   cat >>confdefs.h <<\_ACEOF
21626 #define FSTYPE_GETMNT 1
21627 _ACEOF
21628  fstype=Ultrix
21629 else
21630   echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21632
21633
21634 fi
21635 rm -f conftest.err conftest.$ac_ext
21636 fi
21637 echo "$as_me:$LINENO: result: $fstype" >&5
21638 echo "${ECHO_T}$fstype" >&6
21639
21640 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21641   echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21642 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21643 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21644   echo $ECHO_N "(cached) $ECHO_C" >&6
21645 fi
21646 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21647 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21648 else
21649   # Is the header compilable?
21650 echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21651 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6
21652 cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 $ac_includes_default
21659 #include <sys/statvfs.h>
21660 _ACEOF
21661 rm -f conftest.$ac_objext
21662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21663   (eval $ac_compile) 2>conftest.er1
21664   ac_status=$?
21665   grep -v '^ *+' conftest.er1 >conftest.err
21666   rm -f conftest.er1
21667   cat conftest.err >&5
21668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669   (exit $ac_status); } &&
21670          { ac_try='test -z "$ac_c_werror_flag"
21671                          || test ! -s conftest.err'
21672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21673   (eval $ac_try) 2>&5
21674   ac_status=$?
21675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21676   (exit $ac_status); }; } &&
21677          { ac_try='test -s conftest.$ac_objext'
21678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21679   (eval $ac_try) 2>&5
21680   ac_status=$?
21681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682   (exit $ac_status); }; }; then
21683   ac_header_compiler=yes
21684 else
21685   echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ac_header_compiler=no
21689 fi
21690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21691 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21692 echo "${ECHO_T}$ac_header_compiler" >&6
21693
21694 # Is the header present?
21695 echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21696 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h.  */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h.  */
21703 #include <sys/statvfs.h>
21704 _ACEOF
21705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21706   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } >/dev/null; then
21713   if test -s conftest.err; then
21714     ac_cpp_err=$ac_c_preproc_warn_flag
21715     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21716   else
21717     ac_cpp_err=
21718   fi
21719 else
21720   ac_cpp_err=yes
21721 fi
21722 if test -z "$ac_cpp_err"; then
21723   ac_header_preproc=yes
21724 else
21725   echo "$as_me: failed program was:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21727
21728   ac_header_preproc=no
21729 fi
21730 rm -f conftest.err conftest.$ac_ext
21731 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21732 echo "${ECHO_T}$ac_header_preproc" >&6
21733
21734 # So?  What about this header?
21735 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21736   yes:no: )
21737     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21738 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21739     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21740 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21741     ac_header_preproc=yes
21742     ;;
21743   no:yes:* )
21744     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21745 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21746     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
21747 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
21748     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21749 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21750     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
21751 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21752     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21753 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21754     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21755 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21756     (
21757       cat <<\_ASBOX
21758 ## ------------------------------------------ ##
21759 ## Report this to the AC_PACKAGE_NAME lists.  ##
21760 ## ------------------------------------------ ##
21761 _ASBOX
21762     ) |
21763       sed "s/^/$as_me: WARNING:     /" >&2
21764     ;;
21765 esac
21766 echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21767 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6
21768 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21769   echo $ECHO_N "(cached) $ECHO_C" >&6
21770 else
21771   ac_cv_header_sys_statvfs_h=$ac_header_preproc
21772 fi
21773 echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21774 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6
21775
21776 fi
21777 if test $ac_cv_header_sys_statvfs_h = yes; then
21778
21779 cat >>confdefs.h <<\_ACEOF
21780 #define HAVE_SYS_STATVFS_H 1
21781 _ACEOF
21782
21783 fi
21784
21785
21786
21787 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21788 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21789 if test "${ac_cv_type_signal+set}" = set; then
21790   echo $ECHO_N "(cached) $ECHO_C" >&6
21791 else
21792   cat >conftest.$ac_ext <<_ACEOF
21793 /* confdefs.h.  */
21794 _ACEOF
21795 cat confdefs.h >>conftest.$ac_ext
21796 cat >>conftest.$ac_ext <<_ACEOF
21797 /* end confdefs.h.  */
21798 #include <sys/types.h>
21799 #include <signal.h>
21800 #ifdef signal
21801 # undef signal
21802 #endif
21803 #ifdef __cplusplus
21804 extern "C" void (*signal (int, void (*)(int)))(int);
21805 #else
21806 void (*signal ()) ();
21807 #endif
21808
21809 int
21810 main ()
21811 {
21812 int i;
21813   ;
21814   return 0;
21815 }
21816 _ACEOF
21817 rm -f conftest.$ac_objext
21818 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21819   (eval $ac_compile) 2>conftest.er1
21820   ac_status=$?
21821   grep -v '^ *+' conftest.er1 >conftest.err
21822   rm -f conftest.er1
21823   cat conftest.err >&5
21824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21825   (exit $ac_status); } &&
21826          { ac_try='test -z "$ac_c_werror_flag"
21827                          || test ! -s conftest.err'
21828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829   (eval $ac_try) 2>&5
21830   ac_status=$?
21831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832   (exit $ac_status); }; } &&
21833          { ac_try='test -s conftest.$ac_objext'
21834   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835   (eval $ac_try) 2>&5
21836   ac_status=$?
21837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838   (exit $ac_status); }; }; then
21839   ac_cv_type_signal=void
21840 else
21841   echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 ac_cv_type_signal=int
21845 fi
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847 fi
21848 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21849 echo "${ECHO_T}$ac_cv_type_signal" >&6
21850
21851 cat >>confdefs.h <<_ACEOF
21852 #define RETSIGTYPE $ac_cv_type_signal
21853 _ACEOF
21854
21855
21856
21857   echo "$as_me:$LINENO: checking for type of signal functions" >&5
21858 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
21859   if test "${bash_cv_signal_vintage+set}" = set; then
21860   echo $ECHO_N "(cached) $ECHO_C" >&6
21861 else
21862
21863     cat >conftest.$ac_ext <<_ACEOF
21864 /* confdefs.h.  */
21865 _ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h.  */
21869 #include <signal.h>
21870 int
21871 main ()
21872 {
21873
21874       sigset_t ss;
21875       struct sigaction sa;
21876       sigemptyset(&ss); sigsuspend(&ss);
21877       sigaction(SIGINT, &sa, (struct sigaction *) 0);
21878       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21879
21880   ;
21881   return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21886   (eval $ac_link) 2>conftest.er1
21887   ac_status=$?
21888   grep -v '^ *+' conftest.er1 >conftest.err
21889   rm -f conftest.er1
21890   cat conftest.err >&5
21891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892   (exit $ac_status); } &&
21893          { ac_try='test -z "$ac_c_werror_flag"
21894                          || test ! -s conftest.err'
21895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21896   (eval $ac_try) 2>&5
21897   ac_status=$?
21898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899   (exit $ac_status); }; } &&
21900          { ac_try='test -s conftest$ac_exeext'
21901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21902   (eval $ac_try) 2>&5
21903   ac_status=$?
21904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905   (exit $ac_status); }; }; then
21906   bash_cv_signal_vintage="posix"
21907 else
21908   echo "$as_me: failed program was:" >&5
21909 sed 's/^/| /' conftest.$ac_ext >&5
21910
21911
21912       cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h.  */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h.  */
21918 #include <signal.h>
21919 int
21920 main ()
21921 {
21922
21923           int mask = sigmask(SIGINT);
21924           sigsetmask(mask); sigblock(mask); sigpause(mask);
21925
21926   ;
21927   return 0;
21928 }
21929 _ACEOF
21930 rm -f conftest.$ac_objext conftest$ac_exeext
21931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21932   (eval $ac_link) 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } &&
21939          { ac_try='test -z "$ac_c_werror_flag"
21940                          || test ! -s conftest.err'
21941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21942   (eval $ac_try) 2>&5
21943   ac_status=$?
21944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21945   (exit $ac_status); }; } &&
21946          { ac_try='test -s conftest$ac_exeext'
21947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21948   (eval $ac_try) 2>&5
21949   ac_status=$?
21950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21951   (exit $ac_status); }; }; then
21952   bash_cv_signal_vintage="4.2bsd"
21953 else
21954   echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957
21958         cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964
21965           #include <signal.h>
21966           RETSIGTYPE foo() { }
21967 int
21968 main ()
21969 {
21970
21971                   int mask = sigmask(SIGINT);
21972                   sigset(SIGINT, foo); sigrelse(SIGINT);
21973                   sighold(SIGINT); sigpause(SIGINT);
21974
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21981   (eval $ac_link) 2>conftest.er1
21982   ac_status=$?
21983   grep -v '^ *+' conftest.er1 >conftest.err
21984   rm -f conftest.er1
21985   cat conftest.err >&5
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); } &&
21988          { ac_try='test -z "$ac_c_werror_flag"
21989                          || test ! -s conftest.err'
21990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991   (eval $ac_try) 2>&5
21992   ac_status=$?
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); }; } &&
21995          { ac_try='test -s conftest$ac_exeext'
21996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997   (eval $ac_try) 2>&5
21998   ac_status=$?
21999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000   (exit $ac_status); }; }; then
22001   bash_cv_signal_vintage="svr3"
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 bash_cv_signal_vintage="v7"
22007
22008 fi
22009 rm -f conftest.err conftest.$ac_objext \
22010       conftest$ac_exeext conftest.$ac_ext
22011
22012 fi
22013 rm -f conftest.err conftest.$ac_objext \
22014       conftest$ac_exeext conftest.$ac_ext
22015
22016 fi
22017 rm -f conftest.err conftest.$ac_objext \
22018       conftest$ac_exeext conftest.$ac_ext
22019
22020 fi
22021
22022   echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22023 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
22024   if test "$bash_cv_signal_vintage" = "posix"; then
22025     cat >>confdefs.h <<\_ACEOF
22026 #define HAVE_POSIX_SIGNALS 1
22027 _ACEOF
22028
22029   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22030     cat >>confdefs.h <<\_ACEOF
22031 #define HAVE_BSD_SIGNALS 1
22032 _ACEOF
22033
22034   elif test "$bash_cv_signal_vintage" = "svr3"; then
22035     cat >>confdefs.h <<\_ACEOF
22036 #define HAVE_USG_SIGHOLD 1
22037 _ACEOF
22038
22039   fi
22040
22041 echo "$as_me:$LINENO: checking for mode_t" >&5
22042 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
22043 if test "${ac_cv_type_mode_t+set}" = set; then
22044   echo $ECHO_N "(cached) $ECHO_C" >&6
22045 else
22046   cat >conftest.$ac_ext <<_ACEOF
22047 /* confdefs.h.  */
22048 _ACEOF
22049 cat confdefs.h >>conftest.$ac_ext
22050 cat >>conftest.$ac_ext <<_ACEOF
22051 /* end confdefs.h.  */
22052 $ac_includes_default
22053 int
22054 main ()
22055 {
22056 if ((mode_t *) 0)
22057   return 0;
22058 if (sizeof (mode_t))
22059   return 0;
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066   (eval $ac_compile) 2>conftest.er1
22067   ac_status=$?
22068   grep -v '^ *+' conftest.er1 >conftest.err
22069   rm -f conftest.er1
22070   cat conftest.err >&5
22071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072   (exit $ac_status); } &&
22073          { ac_try='test -z "$ac_c_werror_flag"
22074                          || test ! -s conftest.err'
22075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076   (eval $ac_try) 2>&5
22077   ac_status=$?
22078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079   (exit $ac_status); }; } &&
22080          { ac_try='test -s conftest.$ac_objext'
22081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082   (eval $ac_try) 2>&5
22083   ac_status=$?
22084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085   (exit $ac_status); }; }; then
22086   ac_cv_type_mode_t=yes
22087 else
22088   echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22090
22091 ac_cv_type_mode_t=no
22092 fi
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22094 fi
22095 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22096 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22097 if test $ac_cv_type_mode_t = yes; then
22098   :
22099 else
22100
22101 cat >>confdefs.h <<_ACEOF
22102 #define mode_t int
22103 _ACEOF
22104
22105 fi
22106
22107 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22108 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22109 if test "${ac_cv_type_uid_t+set}" = set; then
22110   echo $ECHO_N "(cached) $ECHO_C" >&6
22111 else
22112   cat >conftest.$ac_ext <<_ACEOF
22113 /* confdefs.h.  */
22114 _ACEOF
22115 cat confdefs.h >>conftest.$ac_ext
22116 cat >>conftest.$ac_ext <<_ACEOF
22117 /* end confdefs.h.  */
22118 #include <sys/types.h>
22119
22120 _ACEOF
22121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22122   $EGREP "uid_t" >/dev/null 2>&1; then
22123   ac_cv_type_uid_t=yes
22124 else
22125   ac_cv_type_uid_t=no
22126 fi
22127 rm -f conftest*
22128
22129 fi
22130 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22131 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22132 if test $ac_cv_type_uid_t = no; then
22133
22134 cat >>confdefs.h <<\_ACEOF
22135 #define uid_t int
22136 _ACEOF
22137
22138
22139 cat >>confdefs.h <<\_ACEOF
22140 #define gid_t int
22141 _ACEOF
22142
22143 fi
22144
22145 echo "$as_me:$LINENO: checking for size_t" >&5
22146 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22147 if test "${ac_cv_type_size_t+set}" = set; then
22148   echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150   cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156 $ac_includes_default
22157 int
22158 main ()
22159 {
22160 if ((size_t *) 0)
22161   return 0;
22162 if (sizeof (size_t))
22163   return 0;
22164   ;
22165   return 0;
22166 }
22167 _ACEOF
22168 rm -f conftest.$ac_objext
22169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22170   (eval $ac_compile) 2>conftest.er1
22171   ac_status=$?
22172   grep -v '^ *+' conftest.er1 >conftest.err
22173   rm -f conftest.er1
22174   cat conftest.err >&5
22175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22176   (exit $ac_status); } &&
22177          { ac_try='test -z "$ac_c_werror_flag"
22178                          || test ! -s conftest.err'
22179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180   (eval $ac_try) 2>&5
22181   ac_status=$?
22182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183   (exit $ac_status); }; } &&
22184          { ac_try='test -s conftest.$ac_objext'
22185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22186   (eval $ac_try) 2>&5
22187   ac_status=$?
22188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22189   (exit $ac_status); }; }; then
22190   ac_cv_type_size_t=yes
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195 ac_cv_type_size_t=no
22196 fi
22197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22198 fi
22199 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22200 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22201 if test $ac_cv_type_size_t = yes; then
22202   :
22203 else
22204
22205 cat >>confdefs.h <<_ACEOF
22206 #define size_t unsigned
22207 _ACEOF
22208
22209 fi
22210
22211 echo "$as_me:$LINENO: checking for pid_t" >&5
22212 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22213 if test "${ac_cv_type_pid_t+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 $ac_includes_default
22223 int
22224 main ()
22225 {
22226 if ((pid_t *) 0)
22227   return 0;
22228 if (sizeof (pid_t))
22229   return 0;
22230   ;
22231   return 0;
22232 }
22233 _ACEOF
22234 rm -f conftest.$ac_objext
22235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22236   (eval $ac_compile) 2>conftest.er1
22237   ac_status=$?
22238   grep -v '^ *+' conftest.er1 >conftest.err
22239   rm -f conftest.er1
22240   cat conftest.err >&5
22241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242   (exit $ac_status); } &&
22243          { ac_try='test -z "$ac_c_werror_flag"
22244                          || test ! -s conftest.err'
22245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246   (eval $ac_try) 2>&5
22247   ac_status=$?
22248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249   (exit $ac_status); }; } &&
22250          { ac_try='test -s conftest.$ac_objext'
22251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252   (eval $ac_try) 2>&5
22253   ac_status=$?
22254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255   (exit $ac_status); }; }; then
22256   ac_cv_type_pid_t=yes
22257 else
22258   echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22260
22261 ac_cv_type_pid_t=no
22262 fi
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22264 fi
22265 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22266 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22267 if test $ac_cv_type_pid_t = yes; then
22268   :
22269 else
22270
22271 cat >>confdefs.h <<_ACEOF
22272 #define pid_t int
22273 _ACEOF
22274
22275 fi
22276
22277 echo "$as_me:$LINENO: checking for off_t" >&5
22278 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22279 if test "${ac_cv_type_off_t+set}" = set; then
22280   echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282   cat >conftest.$ac_ext <<_ACEOF
22283 /* confdefs.h.  */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h.  */
22288 $ac_includes_default
22289 int
22290 main ()
22291 {
22292 if ((off_t *) 0)
22293   return 0;
22294 if (sizeof (off_t))
22295   return 0;
22296   ;
22297   return 0;
22298 }
22299 _ACEOF
22300 rm -f conftest.$ac_objext
22301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22302   (eval $ac_compile) 2>conftest.er1
22303   ac_status=$?
22304   grep -v '^ *+' conftest.er1 >conftest.err
22305   rm -f conftest.er1
22306   cat conftest.err >&5
22307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308   (exit $ac_status); } &&
22309          { ac_try='test -z "$ac_c_werror_flag"
22310                          || test ! -s conftest.err'
22311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312   (eval $ac_try) 2>&5
22313   ac_status=$?
22314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315   (exit $ac_status); }; } &&
22316          { ac_try='test -s conftest.$ac_objext'
22317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318   (eval $ac_try) 2>&5
22319   ac_status=$?
22320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321   (exit $ac_status); }; }; then
22322   ac_cv_type_off_t=yes
22323 else
22324   echo "$as_me: failed program was:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22326
22327 ac_cv_type_off_t=no
22328 fi
22329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22330 fi
22331 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22332 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22333 if test $ac_cv_type_off_t = yes; then
22334   :
22335 else
22336
22337 cat >>confdefs.h <<_ACEOF
22338 #define off_t long
22339 _ACEOF
22340
22341 fi
22342
22343 echo "$as_me:$LINENO: checking for ino_t" >&5
22344 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
22345 if test "${ac_cv_type_ino_t+set}" = set; then
22346   echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348   cat >conftest.$ac_ext <<_ACEOF
22349 /* confdefs.h.  */
22350 _ACEOF
22351 cat confdefs.h >>conftest.$ac_ext
22352 cat >>conftest.$ac_ext <<_ACEOF
22353 /* end confdefs.h.  */
22354 $ac_includes_default
22355 int
22356 main ()
22357 {
22358 if ((ino_t *) 0)
22359   return 0;
22360 if (sizeof (ino_t))
22361   return 0;
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 rm -f conftest.$ac_objext
22367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22368   (eval $ac_compile) 2>conftest.er1
22369   ac_status=$?
22370   grep -v '^ *+' conftest.er1 >conftest.err
22371   rm -f conftest.er1
22372   cat conftest.err >&5
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); } &&
22375          { ac_try='test -z "$ac_c_werror_flag"
22376                          || test ! -s conftest.err'
22377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22378   (eval $ac_try) 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; } &&
22382          { ac_try='test -s conftest.$ac_objext'
22383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384   (eval $ac_try) 2>&5
22385   ac_status=$?
22386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387   (exit $ac_status); }; }; then
22388   ac_cv_type_ino_t=yes
22389 else
22390   echo "$as_me: failed program was:" >&5
22391 sed 's/^/| /' conftest.$ac_ext >&5
22392
22393 ac_cv_type_ino_t=no
22394 fi
22395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22396 fi
22397 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22398 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
22399 if test $ac_cv_type_ino_t = yes; then
22400   :
22401 else
22402
22403 cat >>confdefs.h <<_ACEOF
22404 #define ino_t unsigned long
22405 _ACEOF
22406
22407 fi
22408
22409 echo "$as_me:$LINENO: checking for dev_t" >&5
22410 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
22411 if test "${ac_cv_type_dev_t+set}" = set; then
22412   echo $ECHO_N "(cached) $ECHO_C" >&6
22413 else
22414   cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 $ac_includes_default
22421 int
22422 main ()
22423 {
22424 if ((dev_t *) 0)
22425   return 0;
22426 if (sizeof (dev_t))
22427   return 0;
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext
22433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22434   (eval $ac_compile) 2>conftest.er1
22435   ac_status=$?
22436   grep -v '^ *+' conftest.er1 >conftest.err
22437   rm -f conftest.er1
22438   cat conftest.err >&5
22439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440   (exit $ac_status); } &&
22441          { ac_try='test -z "$ac_c_werror_flag"
22442                          || test ! -s conftest.err'
22443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22444   (eval $ac_try) 2>&5
22445   ac_status=$?
22446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22447   (exit $ac_status); }; } &&
22448          { ac_try='test -s conftest.$ac_objext'
22449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22450   (eval $ac_try) 2>&5
22451   ac_status=$?
22452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453   (exit $ac_status); }; }; then
22454   ac_cv_type_dev_t=yes
22455 else
22456   echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22458
22459 ac_cv_type_dev_t=no
22460 fi
22461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22462 fi
22463 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22464 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
22465 if test $ac_cv_type_dev_t = yes; then
22466   :
22467 else
22468
22469 cat >>confdefs.h <<_ACEOF
22470 #define dev_t unsigned long
22471 _ACEOF
22472
22473 fi
22474
22475 echo "$as_me:$LINENO: checking for daddr_t" >&5
22476 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
22477 if test "${ac_cv_type_daddr_t+set}" = set; then
22478   echo $ECHO_N "(cached) $ECHO_C" >&6
22479 else
22480   cat >conftest.$ac_ext <<_ACEOF
22481 /* confdefs.h.  */
22482 _ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h.  */
22486 $ac_includes_default
22487 int
22488 main ()
22489 {
22490 if ((daddr_t *) 0)
22491   return 0;
22492 if (sizeof (daddr_t))
22493   return 0;
22494   ;
22495   return 0;
22496 }
22497 _ACEOF
22498 rm -f conftest.$ac_objext
22499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22500   (eval $ac_compile) 2>conftest.er1
22501   ac_status=$?
22502   grep -v '^ *+' conftest.er1 >conftest.err
22503   rm -f conftest.er1
22504   cat conftest.err >&5
22505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); } &&
22507          { ac_try='test -z "$ac_c_werror_flag"
22508                          || test ! -s conftest.err'
22509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22510   (eval $ac_try) 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); }; } &&
22514          { ac_try='test -s conftest.$ac_objext'
22515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22516   (eval $ac_try) 2>&5
22517   ac_status=$?
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); }; }; then
22520   ac_cv_type_daddr_t=yes
22521 else
22522   echo "$as_me: failed program was:" >&5
22523 sed 's/^/| /' conftest.$ac_ext >&5
22524
22525 ac_cv_type_daddr_t=no
22526 fi
22527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22528 fi
22529 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22530 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
22531 if test $ac_cv_type_daddr_t = yes; then
22532   :
22533 else
22534
22535 cat >>confdefs.h <<_ACEOF
22536 #define daddr_t long
22537 _ACEOF
22538
22539 fi
22540
22541 echo "$as_me:$LINENO: checking for major_t" >&5
22542 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
22543 if test "${ac_cv_type_major_t+set}" = set; then
22544   echo $ECHO_N "(cached) $ECHO_C" >&6
22545 else
22546   cat >conftest.$ac_ext <<_ACEOF
22547 /* confdefs.h.  */
22548 _ACEOF
22549 cat confdefs.h >>conftest.$ac_ext
22550 cat >>conftest.$ac_ext <<_ACEOF
22551 /* end confdefs.h.  */
22552 $ac_includes_default
22553 int
22554 main ()
22555 {
22556 if ((major_t *) 0)
22557   return 0;
22558 if (sizeof (major_t))
22559   return 0;
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 rm -f conftest.$ac_objext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22566   (eval $ac_compile) 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } &&
22573          { ac_try='test -z "$ac_c_werror_flag"
22574                          || test ! -s conftest.err'
22575   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576   (eval $ac_try) 2>&5
22577   ac_status=$?
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); }; } &&
22580          { ac_try='test -s conftest.$ac_objext'
22581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582   (eval $ac_try) 2>&5
22583   ac_status=$?
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); }; }; then
22586   ac_cv_type_major_t=yes
22587 else
22588   echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 ac_cv_type_major_t=no
22592 fi
22593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22594 fi
22595 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22596 echo "${ECHO_T}$ac_cv_type_major_t" >&6
22597 if test $ac_cv_type_major_t = yes; then
22598   :
22599 else
22600
22601 cat >>confdefs.h <<_ACEOF
22602 #define major_t int
22603 _ACEOF
22604
22605 fi
22606
22607 echo "$as_me:$LINENO: checking for minor_t" >&5
22608 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
22609 if test "${ac_cv_type_minor_t+set}" = set; then
22610   echo $ECHO_N "(cached) $ECHO_C" >&6
22611 else
22612   cat >conftest.$ac_ext <<_ACEOF
22613 /* confdefs.h.  */
22614 _ACEOF
22615 cat confdefs.h >>conftest.$ac_ext
22616 cat >>conftest.$ac_ext <<_ACEOF
22617 /* end confdefs.h.  */
22618 $ac_includes_default
22619 int
22620 main ()
22621 {
22622 if ((minor_t *) 0)
22623   return 0;
22624 if (sizeof (minor_t))
22625   return 0;
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext
22631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22632   (eval $ac_compile) 2>conftest.er1
22633   ac_status=$?
22634   grep -v '^ *+' conftest.er1 >conftest.err
22635   rm -f conftest.er1
22636   cat conftest.err >&5
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); } &&
22639          { ac_try='test -z "$ac_c_werror_flag"
22640                          || test ! -s conftest.err'
22641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642   (eval $ac_try) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; } &&
22646          { ac_try='test -s conftest.$ac_objext'
22647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; }; then
22652   ac_cv_type_minor_t=yes
22653 else
22654   echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ac_cv_type_minor_t=no
22658 fi
22659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22660 fi
22661 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22662 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
22663 if test $ac_cv_type_minor_t = yes; then
22664   :
22665 else
22666
22667 cat >>confdefs.h <<_ACEOF
22668 #define minor_t int
22669 _ACEOF
22670
22671 fi
22672
22673 echo "$as_me:$LINENO: checking for ssize_t" >&5
22674 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
22675 if test "${ac_cv_type_ssize_t+set}" = set; then
22676   echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678   cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 $ac_includes_default
22685 int
22686 main ()
22687 {
22688 if ((ssize_t *) 0)
22689   return 0;
22690 if (sizeof (ssize_t))
22691   return 0;
22692   ;
22693   return 0;
22694 }
22695 _ACEOF
22696 rm -f conftest.$ac_objext
22697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22698   (eval $ac_compile) 2>conftest.er1
22699   ac_status=$?
22700   grep -v '^ *+' conftest.er1 >conftest.err
22701   rm -f conftest.er1
22702   cat conftest.err >&5
22703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22704   (exit $ac_status); } &&
22705          { ac_try='test -z "$ac_c_werror_flag"
22706                          || test ! -s conftest.err'
22707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22708   (eval $ac_try) 2>&5
22709   ac_status=$?
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); }; } &&
22712          { ac_try='test -s conftest.$ac_objext'
22713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22714   (eval $ac_try) 2>&5
22715   ac_status=$?
22716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717   (exit $ac_status); }; }; then
22718   ac_cv_type_ssize_t=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723 ac_cv_type_ssize_t=no
22724 fi
22725 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22726 fi
22727 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22728 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
22729 if test $ac_cv_type_ssize_t = yes; then
22730   :
22731 else
22732
22733 cat >>confdefs.h <<_ACEOF
22734 #define ssize_t int
22735 _ACEOF
22736
22737 fi
22738
22739 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22740 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
22741 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22742   echo $ECHO_N "(cached) $ECHO_C" >&6
22743 else
22744   cat >conftest.$ac_ext <<_ACEOF
22745 /* confdefs.h.  */
22746 _ACEOF
22747 cat confdefs.h >>conftest.$ac_ext
22748 cat >>conftest.$ac_ext <<_ACEOF
22749 /* end confdefs.h.  */
22750 $ac_includes_default
22751 int
22752 main ()
22753 {
22754 static struct stat ac_aggr;
22755 if (ac_aggr.st_blocks)
22756 return 0;
22757   ;
22758   return 0;
22759 }
22760 _ACEOF
22761 rm -f conftest.$ac_objext
22762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22763   (eval $ac_compile) 2>conftest.er1
22764   ac_status=$?
22765   grep -v '^ *+' conftest.er1 >conftest.err
22766   rm -f conftest.er1
22767   cat conftest.err >&5
22768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22769   (exit $ac_status); } &&
22770          { ac_try='test -z "$ac_c_werror_flag"
22771                          || test ! -s conftest.err'
22772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773   (eval $ac_try) 2>&5
22774   ac_status=$?
22775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776   (exit $ac_status); }; } &&
22777          { ac_try='test -s conftest.$ac_objext'
22778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779   (eval $ac_try) 2>&5
22780   ac_status=$?
22781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782   (exit $ac_status); }; }; then
22783   ac_cv_member_struct_stat_st_blocks=yes
22784 else
22785   echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22787
22788 cat >conftest.$ac_ext <<_ACEOF
22789 /* confdefs.h.  */
22790 _ACEOF
22791 cat confdefs.h >>conftest.$ac_ext
22792 cat >>conftest.$ac_ext <<_ACEOF
22793 /* end confdefs.h.  */
22794 $ac_includes_default
22795 int
22796 main ()
22797 {
22798 static struct stat ac_aggr;
22799 if (sizeof ac_aggr.st_blocks)
22800 return 0;
22801   ;
22802   return 0;
22803 }
22804 _ACEOF
22805 rm -f conftest.$ac_objext
22806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22807   (eval $ac_compile) 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } &&
22814          { ac_try='test -z "$ac_c_werror_flag"
22815                          || test ! -s conftest.err'
22816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22817   (eval $ac_try) 2>&5
22818   ac_status=$?
22819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22820   (exit $ac_status); }; } &&
22821          { ac_try='test -s conftest.$ac_objext'
22822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22823   (eval $ac_try) 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); }; }; then
22827   ac_cv_member_struct_stat_st_blocks=yes
22828 else
22829   echo "$as_me: failed program was:" >&5
22830 sed 's/^/| /' conftest.$ac_ext >&5
22831
22832 ac_cv_member_struct_stat_st_blocks=no
22833 fi
22834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22835 fi
22836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837 fi
22838 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22839 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
22840 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22841
22842 cat >>confdefs.h <<_ACEOF
22843 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22844 _ACEOF
22845
22846
22847 cat >>confdefs.h <<\_ACEOF
22848 #define HAVE_ST_BLOCKS 1
22849 _ACEOF
22850
22851 else
22852   case $LIBOBJS in
22853     "fileblocks.$ac_objext"   | \
22854   *" fileblocks.$ac_objext"   | \
22855     "fileblocks.$ac_objext "* | \
22856   *" fileblocks.$ac_objext "* ) ;;
22857   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
22858 esac
22859
22860 fi
22861
22862
22863
22864 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22865 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
22866 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22867   echo $ECHO_N "(cached) $ECHO_C" >&6
22868 else
22869   cat >conftest.$ac_ext <<_ACEOF
22870 /* confdefs.h.  */
22871 _ACEOF
22872 cat confdefs.h >>conftest.$ac_ext
22873 cat >>conftest.$ac_ext <<_ACEOF
22874 /* end confdefs.h.  */
22875 $ac_includes_default
22876 int
22877 main ()
22878 {
22879 static struct stat ac_aggr;
22880 if (ac_aggr.st_rdev)
22881 return 0;
22882   ;
22883   return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest.$ac_objext
22887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22888   (eval $ac_compile) 2>conftest.er1
22889   ac_status=$?
22890   grep -v '^ *+' conftest.er1 >conftest.err
22891   rm -f conftest.er1
22892   cat conftest.err >&5
22893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894   (exit $ac_status); } &&
22895          { ac_try='test -z "$ac_c_werror_flag"
22896                          || test ! -s conftest.err'
22897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22898   (eval $ac_try) 2>&5
22899   ac_status=$?
22900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22901   (exit $ac_status); }; } &&
22902          { ac_try='test -s conftest.$ac_objext'
22903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22904   (eval $ac_try) 2>&5
22905   ac_status=$?
22906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907   (exit $ac_status); }; }; then
22908   ac_cv_member_struct_stat_st_rdev=yes
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913 cat >conftest.$ac_ext <<_ACEOF
22914 /* confdefs.h.  */
22915 _ACEOF
22916 cat confdefs.h >>conftest.$ac_ext
22917 cat >>conftest.$ac_ext <<_ACEOF
22918 /* end confdefs.h.  */
22919 $ac_includes_default
22920 int
22921 main ()
22922 {
22923 static struct stat ac_aggr;
22924 if (sizeof ac_aggr.st_rdev)
22925 return 0;
22926   ;
22927   return 0;
22928 }
22929 _ACEOF
22930 rm -f conftest.$ac_objext
22931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22932   (eval $ac_compile) 2>conftest.er1
22933   ac_status=$?
22934   grep -v '^ *+' conftest.er1 >conftest.err
22935   rm -f conftest.er1
22936   cat conftest.err >&5
22937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938   (exit $ac_status); } &&
22939          { ac_try='test -z "$ac_c_werror_flag"
22940                          || test ! -s conftest.err'
22941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22942   (eval $ac_try) 2>&5
22943   ac_status=$?
22944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945   (exit $ac_status); }; } &&
22946          { ac_try='test -s conftest.$ac_objext'
22947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22948   (eval $ac_try) 2>&5
22949   ac_status=$?
22950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951   (exit $ac_status); }; }; then
22952   ac_cv_member_struct_stat_st_rdev=yes
22953 else
22954   echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22956
22957 ac_cv_member_struct_stat_st_rdev=no
22958 fi
22959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22960 fi
22961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22962 fi
22963 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22964 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
22965 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22966
22967 cat >>confdefs.h <<_ACEOF
22968 #define HAVE_STRUCT_STAT_ST_RDEV 1
22969 _ACEOF
22970
22971
22972 cat >>confdefs.h <<\_ACEOF
22973 #define HAVE_ST_RDEV 1
22974 _ACEOF
22975
22976 fi
22977
22978
22979 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22980 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22981 if test "${ac_cv_struct_tm+set}" = set; then
22982   echo $ECHO_N "(cached) $ECHO_C" >&6
22983 else
22984   cat >conftest.$ac_ext <<_ACEOF
22985 /* confdefs.h.  */
22986 _ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h.  */
22990 #include <sys/types.h>
22991 #include <time.h>
22992
22993 int
22994 main ()
22995 {
22996 struct tm *tp; tp->tm_sec;
22997   ;
22998   return 0;
22999 }
23000 _ACEOF
23001 rm -f conftest.$ac_objext
23002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23003   (eval $ac_compile) 2>conftest.er1
23004   ac_status=$?
23005   grep -v '^ *+' conftest.er1 >conftest.err
23006   rm -f conftest.er1
23007   cat conftest.err >&5
23008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009   (exit $ac_status); } &&
23010          { ac_try='test -z "$ac_c_werror_flag"
23011                          || test ! -s conftest.err'
23012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23013   (eval $ac_try) 2>&5
23014   ac_status=$?
23015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23016   (exit $ac_status); }; } &&
23017          { ac_try='test -s conftest.$ac_objext'
23018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23019   (eval $ac_try) 2>&5
23020   ac_status=$?
23021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23022   (exit $ac_status); }; }; then
23023   ac_cv_struct_tm=time.h
23024 else
23025   echo "$as_me: failed program was:" >&5
23026 sed 's/^/| /' conftest.$ac_ext >&5
23027
23028 ac_cv_struct_tm=sys/time.h
23029 fi
23030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23031 fi
23032 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23033 echo "${ECHO_T}$ac_cv_struct_tm" >&6
23034 if test $ac_cv_struct_tm = sys/time.h; then
23035
23036 cat >>confdefs.h <<\_ACEOF
23037 #define TM_IN_SYS_TIME 1
23038 _ACEOF
23039
23040 fi
23041
23042 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23043 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23044 if test "${ac_cv_c_const+set}" = set; then
23045   echo $ECHO_N "(cached) $ECHO_C" >&6
23046 else
23047   cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 int
23055 main ()
23056 {
23057 /* FIXME: Include the comments suggested by Paul. */
23058 #ifndef __cplusplus
23059   /* Ultrix mips cc rejects this.  */
23060   typedef int charset[2];
23061   const charset x;
23062   /* SunOS 4.1.1 cc rejects this.  */
23063   char const *const *ccp;
23064   char **p;
23065   /* NEC SVR4.0.2 mips cc rejects this.  */
23066   struct point {int x, y;};
23067   static struct point const zero = {0,0};
23068   /* AIX XL C 1.02.0.0 rejects this.
23069      It does not let you subtract one const X* pointer from another in
23070      an arm of an if-expression whose if-part is not a constant
23071      expression */
23072   const char *g = "string";
23073   ccp = &g + (g ? g-g : 0);
23074   /* HPUX 7.0 cc rejects these. */
23075   ++ccp;
23076   p = (char**) ccp;
23077   ccp = (char const *const *) p;
23078   { /* SCO 3.2v4 cc rejects this.  */
23079     char *t;
23080     char const *s = 0 ? (char *) 0 : (char const *) 0;
23081
23082     *t++ = 0;
23083   }
23084   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23085     int x[] = {25, 17};
23086     const int *foo = &x[0];
23087     ++foo;
23088   }
23089   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23090     typedef const int *iptr;
23091     iptr p = 0;
23092     ++p;
23093   }
23094   { /* AIX XL C 1.02.0.0 rejects this saying
23095        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23096     struct s { int j; const int *ap[3]; };
23097     struct s *b; b->j = 5;
23098   }
23099   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23100     const int foo = 10;
23101   }
23102 #endif
23103
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext
23109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23110   (eval $ac_compile) 2>conftest.er1
23111   ac_status=$?
23112   grep -v '^ *+' conftest.er1 >conftest.err
23113   rm -f conftest.er1
23114   cat conftest.err >&5
23115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116   (exit $ac_status); } &&
23117          { ac_try='test -z "$ac_c_werror_flag"
23118                          || test ! -s conftest.err'
23119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120   (eval $ac_try) 2>&5
23121   ac_status=$?
23122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123   (exit $ac_status); }; } &&
23124          { ac_try='test -s conftest.$ac_objext'
23125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23126   (eval $ac_try) 2>&5
23127   ac_status=$?
23128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129   (exit $ac_status); }; }; then
23130   ac_cv_c_const=yes
23131 else
23132   echo "$as_me: failed program was:" >&5
23133 sed 's/^/| /' conftest.$ac_ext >&5
23134
23135 ac_cv_c_const=no
23136 fi
23137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23138 fi
23139 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23140 echo "${ECHO_T}$ac_cv_c_const" >&6
23141 if test $ac_cv_c_const = no; then
23142
23143 cat >>confdefs.h <<\_ACEOF
23144 #define const
23145 _ACEOF
23146
23147 fi
23148
23149
23150
23151 echo "$as_me:$LINENO: checking for char" >&5
23152 echo $ECHO_N "checking for char... $ECHO_C" >&6
23153 if test "${ac_cv_type_char+set}" = set; then
23154   echo $ECHO_N "(cached) $ECHO_C" >&6
23155 else
23156   cat >conftest.$ac_ext <<_ACEOF
23157 /* confdefs.h.  */
23158 _ACEOF
23159 cat confdefs.h >>conftest.$ac_ext
23160 cat >>conftest.$ac_ext <<_ACEOF
23161 /* end confdefs.h.  */
23162 $ac_includes_default
23163 int
23164 main ()
23165 {
23166 if ((char *) 0)
23167   return 0;
23168 if (sizeof (char))
23169   return 0;
23170   ;
23171   return 0;
23172 }
23173 _ACEOF
23174 rm -f conftest.$ac_objext
23175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23176   (eval $ac_compile) 2>conftest.er1
23177   ac_status=$?
23178   grep -v '^ *+' conftest.er1 >conftest.err
23179   rm -f conftest.er1
23180   cat conftest.err >&5
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); } &&
23183          { ac_try='test -z "$ac_c_werror_flag"
23184                          || test ! -s conftest.err'
23185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186   (eval $ac_try) 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; } &&
23190          { ac_try='test -s conftest.$ac_objext'
23191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23192   (eval $ac_try) 2>&5
23193   ac_status=$?
23194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195   (exit $ac_status); }; }; then
23196   ac_cv_type_char=yes
23197 else
23198   echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.$ac_ext >&5
23200
23201 ac_cv_type_char=no
23202 fi
23203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23204 fi
23205 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23206 echo "${ECHO_T}$ac_cv_type_char" >&6
23207
23208 echo "$as_me:$LINENO: checking size of char" >&5
23209 echo $ECHO_N "checking size of char... $ECHO_C" >&6
23210 if test "${ac_cv_sizeof_char+set}" = set; then
23211   echo $ECHO_N "(cached) $ECHO_C" >&6
23212 else
23213   if test "$ac_cv_type_char" = yes; then
23214   # The cast to unsigned long works around a bug in the HP C Compiler
23215   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23216   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23217   # This bug is HP SR number 8606223364.
23218   if test "$cross_compiling" = yes; then
23219   # Depending upon the size, compute the lo and hi bounds.
23220 cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h.  */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h.  */
23226 $ac_includes_default
23227 int
23228 main ()
23229 {
23230 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
23231 test_array [0] = 0
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 rm -f conftest.$ac_objext
23238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23239   (eval $ac_compile) 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } &&
23246          { ac_try='test -z "$ac_c_werror_flag"
23247                          || test ! -s conftest.err'
23248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23249   (eval $ac_try) 2>&5
23250   ac_status=$?
23251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252   (exit $ac_status); }; } &&
23253          { ac_try='test -s conftest.$ac_objext'
23254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23255   (eval $ac_try) 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; }; then
23259   ac_lo=0 ac_mid=0
23260   while :; do
23261     cat >conftest.$ac_ext <<_ACEOF
23262 /* confdefs.h.  */
23263 _ACEOF
23264 cat confdefs.h >>conftest.$ac_ext
23265 cat >>conftest.$ac_ext <<_ACEOF
23266 /* end confdefs.h.  */
23267 $ac_includes_default
23268 int
23269 main ()
23270 {
23271 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23272 test_array [0] = 0
23273
23274   ;
23275   return 0;
23276 }
23277 _ACEOF
23278 rm -f conftest.$ac_objext
23279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23280   (eval $ac_compile) 2>conftest.er1
23281   ac_status=$?
23282   grep -v '^ *+' conftest.er1 >conftest.err
23283   rm -f conftest.er1
23284   cat conftest.err >&5
23285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286   (exit $ac_status); } &&
23287          { ac_try='test -z "$ac_c_werror_flag"
23288                          || test ! -s conftest.err'
23289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290   (eval $ac_try) 2>&5
23291   ac_status=$?
23292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293   (exit $ac_status); }; } &&
23294          { ac_try='test -s conftest.$ac_objext'
23295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23296   (eval $ac_try) 2>&5
23297   ac_status=$?
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); }; }; then
23300   ac_hi=$ac_mid; break
23301 else
23302   echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23304
23305 ac_lo=`expr $ac_mid + 1`
23306                     if test $ac_lo -le $ac_mid; then
23307                       ac_lo= ac_hi=
23308                       break
23309                     fi
23310                     ac_mid=`expr 2 '*' $ac_mid + 1`
23311 fi
23312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23313   done
23314 else
23315   echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318 cat >conftest.$ac_ext <<_ACEOF
23319 /* confdefs.h.  */
23320 _ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h.  */
23324 $ac_includes_default
23325 int
23326 main ()
23327 {
23328 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
23329 test_array [0] = 0
23330
23331   ;
23332   return 0;
23333 }
23334 _ACEOF
23335 rm -f conftest.$ac_objext
23336 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23337   (eval $ac_compile) 2>conftest.er1
23338   ac_status=$?
23339   grep -v '^ *+' conftest.er1 >conftest.err
23340   rm -f conftest.er1
23341   cat conftest.err >&5
23342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343   (exit $ac_status); } &&
23344          { ac_try='test -z "$ac_c_werror_flag"
23345                          || test ! -s conftest.err'
23346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347   (eval $ac_try) 2>&5
23348   ac_status=$?
23349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350   (exit $ac_status); }; } &&
23351          { ac_try='test -s conftest.$ac_objext'
23352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23353   (eval $ac_try) 2>&5
23354   ac_status=$?
23355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356   (exit $ac_status); }; }; then
23357   ac_hi=-1 ac_mid=-1
23358   while :; do
23359     cat >conftest.$ac_ext <<_ACEOF
23360 /* confdefs.h.  */
23361 _ACEOF
23362 cat confdefs.h >>conftest.$ac_ext
23363 cat >>conftest.$ac_ext <<_ACEOF
23364 /* end confdefs.h.  */
23365 $ac_includes_default
23366 int
23367 main ()
23368 {
23369 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
23370 test_array [0] = 0
23371
23372   ;
23373   return 0;
23374 }
23375 _ACEOF
23376 rm -f conftest.$ac_objext
23377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23378   (eval $ac_compile) 2>conftest.er1
23379   ac_status=$?
23380   grep -v '^ *+' conftest.er1 >conftest.err
23381   rm -f conftest.er1
23382   cat conftest.err >&5
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); } &&
23385          { ac_try='test -z "$ac_c_werror_flag"
23386                          || test ! -s conftest.err'
23387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23388   (eval $ac_try) 2>&5
23389   ac_status=$?
23390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23391   (exit $ac_status); }; } &&
23392          { ac_try='test -s conftest.$ac_objext'
23393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23394   (eval $ac_try) 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; }; then
23398   ac_lo=$ac_mid; break
23399 else
23400   echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_hi=`expr '(' $ac_mid ')' - 1`
23404                        if test $ac_mid -le $ac_hi; then
23405                          ac_lo= ac_hi=
23406                          break
23407                        fi
23408                        ac_mid=`expr 2 '*' $ac_mid`
23409 fi
23410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23411   done
23412 else
23413   echo "$as_me: failed program was:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23415
23416 ac_lo= ac_hi=
23417 fi
23418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23419 fi
23420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23421 # Binary search between lo and hi bounds.
23422 while test "x$ac_lo" != "x$ac_hi"; do
23423   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23424   cat >conftest.$ac_ext <<_ACEOF
23425 /* confdefs.h.  */
23426 _ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h.  */
23430 $ac_includes_default
23431 int
23432 main ()
23433 {
23434 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
23435 test_array [0] = 0
23436
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext
23442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23443   (eval $ac_compile) 2>conftest.er1
23444   ac_status=$?
23445   grep -v '^ *+' conftest.er1 >conftest.err
23446   rm -f conftest.er1
23447   cat conftest.err >&5
23448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449   (exit $ac_status); } &&
23450          { ac_try='test -z "$ac_c_werror_flag"
23451                          || test ! -s conftest.err'
23452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23453   (eval $ac_try) 2>&5
23454   ac_status=$?
23455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456   (exit $ac_status); }; } &&
23457          { ac_try='test -s conftest.$ac_objext'
23458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23459   (eval $ac_try) 2>&5
23460   ac_status=$?
23461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23462   (exit $ac_status); }; }; then
23463   ac_hi=$ac_mid
23464 else
23465   echo "$as_me: failed program was:" >&5
23466 sed 's/^/| /' conftest.$ac_ext >&5
23467
23468 ac_lo=`expr '(' $ac_mid ')' + 1`
23469 fi
23470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23471 done
23472 case $ac_lo in
23473 ?*) ac_cv_sizeof_char=$ac_lo;;
23474 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23475 See \`config.log' for more details." >&5
23476 echo "$as_me: error: cannot compute sizeof (char), 77
23477 See \`config.log' for more details." >&2;}
23478    { (exit 1); exit 1; }; } ;;
23479 esac
23480 else
23481   if test "$cross_compiling" = yes; then
23482   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23483 See \`config.log' for more details." >&5
23484 echo "$as_me: error: cannot run test program while cross compiling
23485 See \`config.log' for more details." >&2;}
23486    { (exit 1); exit 1; }; }
23487 else
23488   cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h.  */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h.  */
23494 $ac_includes_default
23495 long longval () { return (long) (sizeof (char)); }
23496 unsigned long ulongval () { return (long) (sizeof (char)); }
23497 #include <stdio.h>
23498 #include <stdlib.h>
23499 int
23500 main ()
23501 {
23502
23503   FILE *f = fopen ("conftest.val", "w");
23504   if (! f)
23505     exit (1);
23506   if (((long) (sizeof (char))) < 0)
23507     {
23508       long i = longval ();
23509       if (i != ((long) (sizeof (char))))
23510         exit (1);
23511       fprintf (f, "%ld\n", i);
23512     }
23513   else
23514     {
23515       unsigned long i = ulongval ();
23516       if (i != ((long) (sizeof (char))))
23517         exit (1);
23518       fprintf (f, "%lu\n", i);
23519     }
23520   exit (ferror (f) || fclose (f) != 0);
23521
23522   ;
23523   return 0;
23524 }
23525 _ACEOF
23526 rm -f conftest$ac_exeext
23527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23528   (eval $ac_link) 2>&5
23529   ac_status=$?
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23532   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23533   (eval $ac_try) 2>&5
23534   ac_status=$?
23535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536   (exit $ac_status); }; }; then
23537   ac_cv_sizeof_char=`cat conftest.val`
23538 else
23539   echo "$as_me: program exited with status $ac_status" >&5
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 ( exit $ac_status )
23544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
23545 See \`config.log' for more details." >&5
23546 echo "$as_me: error: cannot compute sizeof (char), 77
23547 See \`config.log' for more details." >&2;}
23548    { (exit 1); exit 1; }; }
23549 fi
23550 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23551 fi
23552 fi
23553 rm -f conftest.val
23554 else
23555   ac_cv_sizeof_char=0
23556 fi
23557 fi
23558 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23559 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
23560 cat >>confdefs.h <<_ACEOF
23561 #define SIZEOF_CHAR $ac_cv_sizeof_char
23562 _ACEOF
23563
23564
23565 echo "$as_me:$LINENO: checking for short int" >&5
23566 echo $ECHO_N "checking for short int... $ECHO_C" >&6
23567 if test "${ac_cv_type_short_int+set}" = set; then
23568   echo $ECHO_N "(cached) $ECHO_C" >&6
23569 else
23570   cat >conftest.$ac_ext <<_ACEOF
23571 /* confdefs.h.  */
23572 _ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h.  */
23576 $ac_includes_default
23577 int
23578 main ()
23579 {
23580 if ((short int *) 0)
23581   return 0;
23582 if (sizeof (short int))
23583   return 0;
23584   ;
23585   return 0;
23586 }
23587 _ACEOF
23588 rm -f conftest.$ac_objext
23589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23590   (eval $ac_compile) 2>conftest.er1
23591   ac_status=$?
23592   grep -v '^ *+' conftest.er1 >conftest.err
23593   rm -f conftest.er1
23594   cat conftest.err >&5
23595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596   (exit $ac_status); } &&
23597          { ac_try='test -z "$ac_c_werror_flag"
23598                          || test ! -s conftest.err'
23599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23600   (eval $ac_try) 2>&5
23601   ac_status=$?
23602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23603   (exit $ac_status); }; } &&
23604          { ac_try='test -s conftest.$ac_objext'
23605   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23606   (eval $ac_try) 2>&5
23607   ac_status=$?
23608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609   (exit $ac_status); }; }; then
23610   ac_cv_type_short_int=yes
23611 else
23612   echo "$as_me: failed program was:" >&5
23613 sed 's/^/| /' conftest.$ac_ext >&5
23614
23615 ac_cv_type_short_int=no
23616 fi
23617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23618 fi
23619 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23620 echo "${ECHO_T}$ac_cv_type_short_int" >&6
23621
23622 echo "$as_me:$LINENO: checking size of short int" >&5
23623 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
23624 if test "${ac_cv_sizeof_short_int+set}" = set; then
23625   echo $ECHO_N "(cached) $ECHO_C" >&6
23626 else
23627   if test "$ac_cv_type_short_int" = yes; then
23628   # The cast to unsigned long works around a bug in the HP C Compiler
23629   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23630   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23631   # This bug is HP SR number 8606223364.
23632   if test "$cross_compiling" = yes; then
23633   # Depending upon the size, compute the lo and hi bounds.
23634 cat >conftest.$ac_ext <<_ACEOF
23635 /* confdefs.h.  */
23636 _ACEOF
23637 cat confdefs.h >>conftest.$ac_ext
23638 cat >>conftest.$ac_ext <<_ACEOF
23639 /* end confdefs.h.  */
23640 $ac_includes_default
23641 int
23642 main ()
23643 {
23644 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
23645 test_array [0] = 0
23646
23647   ;
23648   return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest.$ac_objext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23653   (eval $ac_compile) 2>conftest.er1
23654   ac_status=$?
23655   grep -v '^ *+' conftest.er1 >conftest.err
23656   rm -f conftest.er1
23657   cat conftest.err >&5
23658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23659   (exit $ac_status); } &&
23660          { ac_try='test -z "$ac_c_werror_flag"
23661                          || test ! -s conftest.err'
23662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663   (eval $ac_try) 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); }; } &&
23667          { ac_try='test -s conftest.$ac_objext'
23668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23669   (eval $ac_try) 2>&5
23670   ac_status=$?
23671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672   (exit $ac_status); }; }; then
23673   ac_lo=0 ac_mid=0
23674   while :; do
23675     cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h.  */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h.  */
23681 $ac_includes_default
23682 int
23683 main ()
23684 {
23685 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23686 test_array [0] = 0
23687
23688   ;
23689   return 0;
23690 }
23691 _ACEOF
23692 rm -f conftest.$ac_objext
23693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23694   (eval $ac_compile) 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } &&
23701          { ac_try='test -z "$ac_c_werror_flag"
23702                          || test ! -s conftest.err'
23703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23704   (eval $ac_try) 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; } &&
23708          { ac_try='test -s conftest.$ac_objext'
23709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710   (eval $ac_try) 2>&5
23711   ac_status=$?
23712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713   (exit $ac_status); }; }; then
23714   ac_hi=$ac_mid; break
23715 else
23716   echo "$as_me: failed program was:" >&5
23717 sed 's/^/| /' conftest.$ac_ext >&5
23718
23719 ac_lo=`expr $ac_mid + 1`
23720                     if test $ac_lo -le $ac_mid; then
23721                       ac_lo= ac_hi=
23722                       break
23723                     fi
23724                     ac_mid=`expr 2 '*' $ac_mid + 1`
23725 fi
23726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23727   done
23728 else
23729   echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h.  */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h.  */
23738 $ac_includes_default
23739 int
23740 main ()
23741 {
23742 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
23743 test_array [0] = 0
23744
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 rm -f conftest.$ac_objext
23750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23751   (eval $ac_compile) 2>conftest.er1
23752   ac_status=$?
23753   grep -v '^ *+' conftest.er1 >conftest.err
23754   rm -f conftest.er1
23755   cat conftest.err >&5
23756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757   (exit $ac_status); } &&
23758          { ac_try='test -z "$ac_c_werror_flag"
23759                          || test ! -s conftest.err'
23760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23761   (eval $ac_try) 2>&5
23762   ac_status=$?
23763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23764   (exit $ac_status); }; } &&
23765          { ac_try='test -s conftest.$ac_objext'
23766   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23767   (eval $ac_try) 2>&5
23768   ac_status=$?
23769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770   (exit $ac_status); }; }; then
23771   ac_hi=-1 ac_mid=-1
23772   while :; do
23773     cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779 $ac_includes_default
23780 int
23781 main ()
23782 {
23783 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
23784 test_array [0] = 0
23785
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23792   (eval $ac_compile) 2>conftest.er1
23793   ac_status=$?
23794   grep -v '^ *+' conftest.er1 >conftest.err
23795   rm -f conftest.er1
23796   cat conftest.err >&5
23797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23798   (exit $ac_status); } &&
23799          { ac_try='test -z "$ac_c_werror_flag"
23800                          || test ! -s conftest.err'
23801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23802   (eval $ac_try) 2>&5
23803   ac_status=$?
23804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23805   (exit $ac_status); }; } &&
23806          { ac_try='test -s conftest.$ac_objext'
23807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808   (eval $ac_try) 2>&5
23809   ac_status=$?
23810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811   (exit $ac_status); }; }; then
23812   ac_lo=$ac_mid; break
23813 else
23814   echo "$as_me: failed program was:" >&5
23815 sed 's/^/| /' conftest.$ac_ext >&5
23816
23817 ac_hi=`expr '(' $ac_mid ')' - 1`
23818                        if test $ac_mid -le $ac_hi; then
23819                          ac_lo= ac_hi=
23820                          break
23821                        fi
23822                        ac_mid=`expr 2 '*' $ac_mid`
23823 fi
23824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23825   done
23826 else
23827   echo "$as_me: failed program was:" >&5
23828 sed 's/^/| /' conftest.$ac_ext >&5
23829
23830 ac_lo= ac_hi=
23831 fi
23832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23833 fi
23834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23835 # Binary search between lo and hi bounds.
23836 while test "x$ac_lo" != "x$ac_hi"; do
23837   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23838   cat >conftest.$ac_ext <<_ACEOF
23839 /* confdefs.h.  */
23840 _ACEOF
23841 cat confdefs.h >>conftest.$ac_ext
23842 cat >>conftest.$ac_ext <<_ACEOF
23843 /* end confdefs.h.  */
23844 $ac_includes_default
23845 int
23846 main ()
23847 {
23848 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
23849 test_array [0] = 0
23850
23851   ;
23852   return 0;
23853 }
23854 _ACEOF
23855 rm -f conftest.$ac_objext
23856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23857   (eval $ac_compile) 2>conftest.er1
23858   ac_status=$?
23859   grep -v '^ *+' conftest.er1 >conftest.err
23860   rm -f conftest.er1
23861   cat conftest.err >&5
23862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23863   (exit $ac_status); } &&
23864          { ac_try='test -z "$ac_c_werror_flag"
23865                          || test ! -s conftest.err'
23866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867   (eval $ac_try) 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; } &&
23871          { ac_try='test -s conftest.$ac_objext'
23872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23873   (eval $ac_try) 2>&5
23874   ac_status=$?
23875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23876   (exit $ac_status); }; }; then
23877   ac_hi=$ac_mid
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882 ac_lo=`expr '(' $ac_mid ')' + 1`
23883 fi
23884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23885 done
23886 case $ac_lo in
23887 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23888 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23889 See \`config.log' for more details." >&5
23890 echo "$as_me: error: cannot compute sizeof (short int), 77
23891 See \`config.log' for more details." >&2;}
23892    { (exit 1); exit 1; }; } ;;
23893 esac
23894 else
23895   if test "$cross_compiling" = yes; then
23896   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
23897 See \`config.log' for more details." >&5
23898 echo "$as_me: error: cannot run test program while cross compiling
23899 See \`config.log' for more details." >&2;}
23900    { (exit 1); exit 1; }; }
23901 else
23902   cat >conftest.$ac_ext <<_ACEOF
23903 /* confdefs.h.  */
23904 _ACEOF
23905 cat confdefs.h >>conftest.$ac_ext
23906 cat >>conftest.$ac_ext <<_ACEOF
23907 /* end confdefs.h.  */
23908 $ac_includes_default
23909 long longval () { return (long) (sizeof (short int)); }
23910 unsigned long ulongval () { return (long) (sizeof (short int)); }
23911 #include <stdio.h>
23912 #include <stdlib.h>
23913 int
23914 main ()
23915 {
23916
23917   FILE *f = fopen ("conftest.val", "w");
23918   if (! f)
23919     exit (1);
23920   if (((long) (sizeof (short int))) < 0)
23921     {
23922       long i = longval ();
23923       if (i != ((long) (sizeof (short int))))
23924         exit (1);
23925       fprintf (f, "%ld\n", i);
23926     }
23927   else
23928     {
23929       unsigned long i = ulongval ();
23930       if (i != ((long) (sizeof (short int))))
23931         exit (1);
23932       fprintf (f, "%lu\n", i);
23933     }
23934   exit (ferror (f) || fclose (f) != 0);
23935
23936   ;
23937   return 0;
23938 }
23939 _ACEOF
23940 rm -f conftest$ac_exeext
23941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23942   (eval $ac_link) 2>&5
23943   ac_status=$?
23944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23946   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23947   (eval $ac_try) 2>&5
23948   ac_status=$?
23949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950   (exit $ac_status); }; }; then
23951   ac_cv_sizeof_short_int=`cat conftest.val`
23952 else
23953   echo "$as_me: program exited with status $ac_status" >&5
23954 echo "$as_me: failed program was:" >&5
23955 sed 's/^/| /' conftest.$ac_ext >&5
23956
23957 ( exit $ac_status )
23958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
23959 See \`config.log' for more details." >&5
23960 echo "$as_me: error: cannot compute sizeof (short int), 77
23961 See \`config.log' for more details." >&2;}
23962    { (exit 1); exit 1; }; }
23963 fi
23964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23965 fi
23966 fi
23967 rm -f conftest.val
23968 else
23969   ac_cv_sizeof_short_int=0
23970 fi
23971 fi
23972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23973 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
23974 cat >>confdefs.h <<_ACEOF
23975 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23976 _ACEOF
23977
23978
23979 echo "$as_me:$LINENO: checking for int" >&5
23980 echo $ECHO_N "checking for int... $ECHO_C" >&6
23981 if test "${ac_cv_type_int+set}" = set; then
23982   echo $ECHO_N "(cached) $ECHO_C" >&6
23983 else
23984   cat >conftest.$ac_ext <<_ACEOF
23985 /* confdefs.h.  */
23986 _ACEOF
23987 cat confdefs.h >>conftest.$ac_ext
23988 cat >>conftest.$ac_ext <<_ACEOF
23989 /* end confdefs.h.  */
23990 $ac_includes_default
23991 int
23992 main ()
23993 {
23994 if ((int *) 0)
23995   return 0;
23996 if (sizeof (int))
23997   return 0;
23998   ;
23999   return 0;
24000 }
24001 _ACEOF
24002 rm -f conftest.$ac_objext
24003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24004   (eval $ac_compile) 2>conftest.er1
24005   ac_status=$?
24006   grep -v '^ *+' conftest.er1 >conftest.err
24007   rm -f conftest.er1
24008   cat conftest.err >&5
24009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010   (exit $ac_status); } &&
24011          { ac_try='test -z "$ac_c_werror_flag"
24012                          || test ! -s conftest.err'
24013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24014   (eval $ac_try) 2>&5
24015   ac_status=$?
24016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017   (exit $ac_status); }; } &&
24018          { ac_try='test -s conftest.$ac_objext'
24019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020   (eval $ac_try) 2>&5
24021   ac_status=$?
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); }; }; then
24024   ac_cv_type_int=yes
24025 else
24026   echo "$as_me: failed program was:" >&5
24027 sed 's/^/| /' conftest.$ac_ext >&5
24028
24029 ac_cv_type_int=no
24030 fi
24031 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24032 fi
24033 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24034 echo "${ECHO_T}$ac_cv_type_int" >&6
24035
24036 echo "$as_me:$LINENO: checking size of int" >&5
24037 echo $ECHO_N "checking size of int... $ECHO_C" >&6
24038 if test "${ac_cv_sizeof_int+set}" = set; then
24039   echo $ECHO_N "(cached) $ECHO_C" >&6
24040 else
24041   if test "$ac_cv_type_int" = yes; then
24042   # The cast to unsigned long works around a bug in the HP C Compiler
24043   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24044   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24045   # This bug is HP SR number 8606223364.
24046   if test "$cross_compiling" = yes; then
24047   # Depending upon the size, compute the lo and hi bounds.
24048 cat >conftest.$ac_ext <<_ACEOF
24049 /* confdefs.h.  */
24050 _ACEOF
24051 cat confdefs.h >>conftest.$ac_ext
24052 cat >>conftest.$ac_ext <<_ACEOF
24053 /* end confdefs.h.  */
24054 $ac_includes_default
24055 int
24056 main ()
24057 {
24058 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
24059 test_array [0] = 0
24060
24061   ;
24062   return 0;
24063 }
24064 _ACEOF
24065 rm -f conftest.$ac_objext
24066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24067   (eval $ac_compile) 2>conftest.er1
24068   ac_status=$?
24069   grep -v '^ *+' conftest.er1 >conftest.err
24070   rm -f conftest.er1
24071   cat conftest.err >&5
24072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073   (exit $ac_status); } &&
24074          { ac_try='test -z "$ac_c_werror_flag"
24075                          || test ! -s conftest.err'
24076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24077   (eval $ac_try) 2>&5
24078   ac_status=$?
24079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24080   (exit $ac_status); }; } &&
24081          { ac_try='test -s conftest.$ac_objext'
24082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24083   (eval $ac_try) 2>&5
24084   ac_status=$?
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); }; }; then
24087   ac_lo=0 ac_mid=0
24088   while :; do
24089     cat >conftest.$ac_ext <<_ACEOF
24090 /* confdefs.h.  */
24091 _ACEOF
24092 cat confdefs.h >>conftest.$ac_ext
24093 cat >>conftest.$ac_ext <<_ACEOF
24094 /* end confdefs.h.  */
24095 $ac_includes_default
24096 int
24097 main ()
24098 {
24099 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24100 test_array [0] = 0
24101
24102   ;
24103   return 0;
24104 }
24105 _ACEOF
24106 rm -f conftest.$ac_objext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24108   (eval $ac_compile) 2>conftest.er1
24109   ac_status=$?
24110   grep -v '^ *+' conftest.er1 >conftest.err
24111   rm -f conftest.er1
24112   cat conftest.err >&5
24113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); } &&
24115          { ac_try='test -z "$ac_c_werror_flag"
24116                          || test ! -s conftest.err'
24117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24118   (eval $ac_try) 2>&5
24119   ac_status=$?
24120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24121   (exit $ac_status); }; } &&
24122          { ac_try='test -s conftest.$ac_objext'
24123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24124   (eval $ac_try) 2>&5
24125   ac_status=$?
24126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127   (exit $ac_status); }; }; then
24128   ac_hi=$ac_mid; break
24129 else
24130   echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24132
24133 ac_lo=`expr $ac_mid + 1`
24134                     if test $ac_lo -le $ac_mid; then
24135                       ac_lo= ac_hi=
24136                       break
24137                     fi
24138                     ac_mid=`expr 2 '*' $ac_mid + 1`
24139 fi
24140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24141   done
24142 else
24143   echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146 cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 $ac_includes_default
24153 int
24154 main ()
24155 {
24156 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
24157 test_array [0] = 0
24158
24159   ;
24160   return 0;
24161 }
24162 _ACEOF
24163 rm -f conftest.$ac_objext
24164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24165   (eval $ac_compile) 2>conftest.er1
24166   ac_status=$?
24167   grep -v '^ *+' conftest.er1 >conftest.err
24168   rm -f conftest.er1
24169   cat conftest.err >&5
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); } &&
24172          { ac_try='test -z "$ac_c_werror_flag"
24173                          || test ! -s conftest.err'
24174   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24175   (eval $ac_try) 2>&5
24176   ac_status=$?
24177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24178   (exit $ac_status); }; } &&
24179          { ac_try='test -s conftest.$ac_objext'
24180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24181   (eval $ac_try) 2>&5
24182   ac_status=$?
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); }; }; then
24185   ac_hi=-1 ac_mid=-1
24186   while :; do
24187     cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h.  */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h.  */
24193 $ac_includes_default
24194 int
24195 main ()
24196 {
24197 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
24198 test_array [0] = 0
24199
24200   ;
24201   return 0;
24202 }
24203 _ACEOF
24204 rm -f conftest.$ac_objext
24205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24206   (eval $ac_compile) 2>conftest.er1
24207   ac_status=$?
24208   grep -v '^ *+' conftest.er1 >conftest.err
24209   rm -f conftest.er1
24210   cat conftest.err >&5
24211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24212   (exit $ac_status); } &&
24213          { ac_try='test -z "$ac_c_werror_flag"
24214                          || test ! -s conftest.err'
24215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24216   (eval $ac_try) 2>&5
24217   ac_status=$?
24218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24219   (exit $ac_status); }; } &&
24220          { ac_try='test -s conftest.$ac_objext'
24221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24222   (eval $ac_try) 2>&5
24223   ac_status=$?
24224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225   (exit $ac_status); }; }; then
24226   ac_lo=$ac_mid; break
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231 ac_hi=`expr '(' $ac_mid ')' - 1`
24232                        if test $ac_mid -le $ac_hi; then
24233                          ac_lo= ac_hi=
24234                          break
24235                        fi
24236                        ac_mid=`expr 2 '*' $ac_mid`
24237 fi
24238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24239   done
24240 else
24241   echo "$as_me: failed program was:" >&5
24242 sed 's/^/| /' conftest.$ac_ext >&5
24243
24244 ac_lo= ac_hi=
24245 fi
24246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24247 fi
24248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24249 # Binary search between lo and hi bounds.
24250 while test "x$ac_lo" != "x$ac_hi"; do
24251   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24252   cat >conftest.$ac_ext <<_ACEOF
24253 /* confdefs.h.  */
24254 _ACEOF
24255 cat confdefs.h >>conftest.$ac_ext
24256 cat >>conftest.$ac_ext <<_ACEOF
24257 /* end confdefs.h.  */
24258 $ac_includes_default
24259 int
24260 main ()
24261 {
24262 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
24263 test_array [0] = 0
24264
24265   ;
24266   return 0;
24267 }
24268 _ACEOF
24269 rm -f conftest.$ac_objext
24270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24271   (eval $ac_compile) 2>conftest.er1
24272   ac_status=$?
24273   grep -v '^ *+' conftest.er1 >conftest.err
24274   rm -f conftest.er1
24275   cat conftest.err >&5
24276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24277   (exit $ac_status); } &&
24278          { ac_try='test -z "$ac_c_werror_flag"
24279                          || test ! -s conftest.err'
24280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24281   (eval $ac_try) 2>&5
24282   ac_status=$?
24283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24284   (exit $ac_status); }; } &&
24285          { ac_try='test -s conftest.$ac_objext'
24286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24287   (eval $ac_try) 2>&5
24288   ac_status=$?
24289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24290   (exit $ac_status); }; }; then
24291   ac_hi=$ac_mid
24292 else
24293   echo "$as_me: failed program was:" >&5
24294 sed 's/^/| /' conftest.$ac_ext >&5
24295
24296 ac_lo=`expr '(' $ac_mid ')' + 1`
24297 fi
24298 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24299 done
24300 case $ac_lo in
24301 ?*) ac_cv_sizeof_int=$ac_lo;;
24302 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24303 See \`config.log' for more details." >&5
24304 echo "$as_me: error: cannot compute sizeof (int), 77
24305 See \`config.log' for more details." >&2;}
24306    { (exit 1); exit 1; }; } ;;
24307 esac
24308 else
24309   if test "$cross_compiling" = yes; then
24310   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24311 See \`config.log' for more details." >&5
24312 echo "$as_me: error: cannot run test program while cross compiling
24313 See \`config.log' for more details." >&2;}
24314    { (exit 1); exit 1; }; }
24315 else
24316   cat >conftest.$ac_ext <<_ACEOF
24317 /* confdefs.h.  */
24318 _ACEOF
24319 cat confdefs.h >>conftest.$ac_ext
24320 cat >>conftest.$ac_ext <<_ACEOF
24321 /* end confdefs.h.  */
24322 $ac_includes_default
24323 long longval () { return (long) (sizeof (int)); }
24324 unsigned long ulongval () { return (long) (sizeof (int)); }
24325 #include <stdio.h>
24326 #include <stdlib.h>
24327 int
24328 main ()
24329 {
24330
24331   FILE *f = fopen ("conftest.val", "w");
24332   if (! f)
24333     exit (1);
24334   if (((long) (sizeof (int))) < 0)
24335     {
24336       long i = longval ();
24337       if (i != ((long) (sizeof (int))))
24338         exit (1);
24339       fprintf (f, "%ld\n", i);
24340     }
24341   else
24342     {
24343       unsigned long i = ulongval ();
24344       if (i != ((long) (sizeof (int))))
24345         exit (1);
24346       fprintf (f, "%lu\n", i);
24347     }
24348   exit (ferror (f) || fclose (f) != 0);
24349
24350   ;
24351   return 0;
24352 }
24353 _ACEOF
24354 rm -f conftest$ac_exeext
24355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24356   (eval $ac_link) 2>&5
24357   ac_status=$?
24358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361   (eval $ac_try) 2>&5
24362   ac_status=$?
24363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364   (exit $ac_status); }; }; then
24365   ac_cv_sizeof_int=`cat conftest.val`
24366 else
24367   echo "$as_me: program exited with status $ac_status" >&5
24368 echo "$as_me: failed program was:" >&5
24369 sed 's/^/| /' conftest.$ac_ext >&5
24370
24371 ( exit $ac_status )
24372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
24373 See \`config.log' for more details." >&5
24374 echo "$as_me: error: cannot compute sizeof (int), 77
24375 See \`config.log' for more details." >&2;}
24376    { (exit 1); exit 1; }; }
24377 fi
24378 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24379 fi
24380 fi
24381 rm -f conftest.val
24382 else
24383   ac_cv_sizeof_int=0
24384 fi
24385 fi
24386 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24387 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
24388 cat >>confdefs.h <<_ACEOF
24389 #define SIZEOF_INT $ac_cv_sizeof_int
24390 _ACEOF
24391
24392
24393 echo "$as_me:$LINENO: checking for long int" >&5
24394 echo $ECHO_N "checking for long int... $ECHO_C" >&6
24395 if test "${ac_cv_type_long_int+set}" = set; then
24396   echo $ECHO_N "(cached) $ECHO_C" >&6
24397 else
24398   cat >conftest.$ac_ext <<_ACEOF
24399 /* confdefs.h.  */
24400 _ACEOF
24401 cat confdefs.h >>conftest.$ac_ext
24402 cat >>conftest.$ac_ext <<_ACEOF
24403 /* end confdefs.h.  */
24404 $ac_includes_default
24405 int
24406 main ()
24407 {
24408 if ((long int *) 0)
24409   return 0;
24410 if (sizeof (long int))
24411   return 0;
24412   ;
24413   return 0;
24414 }
24415 _ACEOF
24416 rm -f conftest.$ac_objext
24417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24418   (eval $ac_compile) 2>conftest.er1
24419   ac_status=$?
24420   grep -v '^ *+' conftest.er1 >conftest.err
24421   rm -f conftest.er1
24422   cat conftest.err >&5
24423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424   (exit $ac_status); } &&
24425          { ac_try='test -z "$ac_c_werror_flag"
24426                          || test ! -s conftest.err'
24427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24428   (eval $ac_try) 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; } &&
24432          { ac_try='test -s conftest.$ac_objext'
24433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24434   (eval $ac_try) 2>&5
24435   ac_status=$?
24436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437   (exit $ac_status); }; }; then
24438   ac_cv_type_long_int=yes
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443 ac_cv_type_long_int=no
24444 fi
24445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24446 fi
24447 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24448 echo "${ECHO_T}$ac_cv_type_long_int" >&6
24449
24450 echo "$as_me:$LINENO: checking size of long int" >&5
24451 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
24452 if test "${ac_cv_sizeof_long_int+set}" = set; then
24453   echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455   if test "$ac_cv_type_long_int" = yes; then
24456   # The cast to unsigned long works around a bug in the HP C Compiler
24457   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24458   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24459   # This bug is HP SR number 8606223364.
24460   if test "$cross_compiling" = yes; then
24461   # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 $ac_includes_default
24469 int
24470 main ()
24471 {
24472 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
24473 test_array [0] = 0
24474
24475   ;
24476   return 0;
24477 }
24478 _ACEOF
24479 rm -f conftest.$ac_objext
24480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24481   (eval $ac_compile) 2>conftest.er1
24482   ac_status=$?
24483   grep -v '^ *+' conftest.er1 >conftest.err
24484   rm -f conftest.er1
24485   cat conftest.err >&5
24486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24487   (exit $ac_status); } &&
24488          { ac_try='test -z "$ac_c_werror_flag"
24489                          || test ! -s conftest.err'
24490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24491   (eval $ac_try) 2>&5
24492   ac_status=$?
24493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24494   (exit $ac_status); }; } &&
24495          { ac_try='test -s conftest.$ac_objext'
24496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497   (eval $ac_try) 2>&5
24498   ac_status=$?
24499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500   (exit $ac_status); }; }; then
24501   ac_lo=0 ac_mid=0
24502   while :; do
24503     cat >conftest.$ac_ext <<_ACEOF
24504 /* confdefs.h.  */
24505 _ACEOF
24506 cat confdefs.h >>conftest.$ac_ext
24507 cat >>conftest.$ac_ext <<_ACEOF
24508 /* end confdefs.h.  */
24509 $ac_includes_default
24510 int
24511 main ()
24512 {
24513 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24514 test_array [0] = 0
24515
24516   ;
24517   return 0;
24518 }
24519 _ACEOF
24520 rm -f conftest.$ac_objext
24521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24522   (eval $ac_compile) 2>conftest.er1
24523   ac_status=$?
24524   grep -v '^ *+' conftest.er1 >conftest.err
24525   rm -f conftest.er1
24526   cat conftest.err >&5
24527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24528   (exit $ac_status); } &&
24529          { ac_try='test -z "$ac_c_werror_flag"
24530                          || test ! -s conftest.err'
24531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24532   (eval $ac_try) 2>&5
24533   ac_status=$?
24534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24535   (exit $ac_status); }; } &&
24536          { ac_try='test -s conftest.$ac_objext'
24537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24538   (eval $ac_try) 2>&5
24539   ac_status=$?
24540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541   (exit $ac_status); }; }; then
24542   ac_hi=$ac_mid; break
24543 else
24544   echo "$as_me: failed program was:" >&5
24545 sed 's/^/| /' conftest.$ac_ext >&5
24546
24547 ac_lo=`expr $ac_mid + 1`
24548                     if test $ac_lo -le $ac_mid; then
24549                       ac_lo= ac_hi=
24550                       break
24551                     fi
24552                     ac_mid=`expr 2 '*' $ac_mid + 1`
24553 fi
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24555   done
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560 cat >conftest.$ac_ext <<_ACEOF
24561 /* confdefs.h.  */
24562 _ACEOF
24563 cat confdefs.h >>conftest.$ac_ext
24564 cat >>conftest.$ac_ext <<_ACEOF
24565 /* end confdefs.h.  */
24566 $ac_includes_default
24567 int
24568 main ()
24569 {
24570 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
24571 test_array [0] = 0
24572
24573   ;
24574   return 0;
24575 }
24576 _ACEOF
24577 rm -f conftest.$ac_objext
24578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24579   (eval $ac_compile) 2>conftest.er1
24580   ac_status=$?
24581   grep -v '^ *+' conftest.er1 >conftest.err
24582   rm -f conftest.er1
24583   cat conftest.err >&5
24584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585   (exit $ac_status); } &&
24586          { ac_try='test -z "$ac_c_werror_flag"
24587                          || test ! -s conftest.err'
24588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589   (eval $ac_try) 2>&5
24590   ac_status=$?
24591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592   (exit $ac_status); }; } &&
24593          { ac_try='test -s conftest.$ac_objext'
24594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595   (eval $ac_try) 2>&5
24596   ac_status=$?
24597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598   (exit $ac_status); }; }; then
24599   ac_hi=-1 ac_mid=-1
24600   while :; do
24601     cat >conftest.$ac_ext <<_ACEOF
24602 /* confdefs.h.  */
24603 _ACEOF
24604 cat confdefs.h >>conftest.$ac_ext
24605 cat >>conftest.$ac_ext <<_ACEOF
24606 /* end confdefs.h.  */
24607 $ac_includes_default
24608 int
24609 main ()
24610 {
24611 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
24612 test_array [0] = 0
24613
24614   ;
24615   return 0;
24616 }
24617 _ACEOF
24618 rm -f conftest.$ac_objext
24619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24620   (eval $ac_compile) 2>conftest.er1
24621   ac_status=$?
24622   grep -v '^ *+' conftest.er1 >conftest.err
24623   rm -f conftest.er1
24624   cat conftest.err >&5
24625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24626   (exit $ac_status); } &&
24627          { ac_try='test -z "$ac_c_werror_flag"
24628                          || test ! -s conftest.err'
24629   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24630   (eval $ac_try) 2>&5
24631   ac_status=$?
24632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24633   (exit $ac_status); }; } &&
24634          { ac_try='test -s conftest.$ac_objext'
24635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24636   (eval $ac_try) 2>&5
24637   ac_status=$?
24638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24639   (exit $ac_status); }; }; then
24640   ac_lo=$ac_mid; break
24641 else
24642   echo "$as_me: failed program was:" >&5
24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 ac_hi=`expr '(' $ac_mid ')' - 1`
24646                        if test $ac_mid -le $ac_hi; then
24647                          ac_lo= ac_hi=
24648                          break
24649                        fi
24650                        ac_mid=`expr 2 '*' $ac_mid`
24651 fi
24652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24653   done
24654 else
24655   echo "$as_me: failed program was:" >&5
24656 sed 's/^/| /' conftest.$ac_ext >&5
24657
24658 ac_lo= ac_hi=
24659 fi
24660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24661 fi
24662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24663 # Binary search between lo and hi bounds.
24664 while test "x$ac_lo" != "x$ac_hi"; do
24665   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24666   cat >conftest.$ac_ext <<_ACEOF
24667 /* confdefs.h.  */
24668 _ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h.  */
24672 $ac_includes_default
24673 int
24674 main ()
24675 {
24676 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
24677 test_array [0] = 0
24678
24679   ;
24680   return 0;
24681 }
24682 _ACEOF
24683 rm -f conftest.$ac_objext
24684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24685   (eval $ac_compile) 2>conftest.er1
24686   ac_status=$?
24687   grep -v '^ *+' conftest.er1 >conftest.err
24688   rm -f conftest.er1
24689   cat conftest.err >&5
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); } &&
24692          { ac_try='test -z "$ac_c_werror_flag"
24693                          || test ! -s conftest.err'
24694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24695   (eval $ac_try) 2>&5
24696   ac_status=$?
24697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698   (exit $ac_status); }; } &&
24699          { ac_try='test -s conftest.$ac_objext'
24700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24701   (eval $ac_try) 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; }; then
24705   ac_hi=$ac_mid
24706 else
24707   echo "$as_me: failed program was:" >&5
24708 sed 's/^/| /' conftest.$ac_ext >&5
24709
24710 ac_lo=`expr '(' $ac_mid ')' + 1`
24711 fi
24712 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24713 done
24714 case $ac_lo in
24715 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24716 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24717 See \`config.log' for more details." >&5
24718 echo "$as_me: error: cannot compute sizeof (long int), 77
24719 See \`config.log' for more details." >&2;}
24720    { (exit 1); exit 1; }; } ;;
24721 esac
24722 else
24723   if test "$cross_compiling" = yes; then
24724   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
24725 See \`config.log' for more details." >&5
24726 echo "$as_me: error: cannot run test program while cross compiling
24727 See \`config.log' for more details." >&2;}
24728    { (exit 1); exit 1; }; }
24729 else
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 $ac_includes_default
24737 long longval () { return (long) (sizeof (long int)); }
24738 unsigned long ulongval () { return (long) (sizeof (long int)); }
24739 #include <stdio.h>
24740 #include <stdlib.h>
24741 int
24742 main ()
24743 {
24744
24745   FILE *f = fopen ("conftest.val", "w");
24746   if (! f)
24747     exit (1);
24748   if (((long) (sizeof (long int))) < 0)
24749     {
24750       long i = longval ();
24751       if (i != ((long) (sizeof (long int))))
24752         exit (1);
24753       fprintf (f, "%ld\n", i);
24754     }
24755   else
24756     {
24757       unsigned long i = ulongval ();
24758       if (i != ((long) (sizeof (long int))))
24759         exit (1);
24760       fprintf (f, "%lu\n", i);
24761     }
24762   exit (ferror (f) || fclose (f) != 0);
24763
24764   ;
24765   return 0;
24766 }
24767 _ACEOF
24768 rm -f conftest$ac_exeext
24769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24770   (eval $ac_link) 2>&5
24771   ac_status=$?
24772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24773   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24775   (eval $ac_try) 2>&5
24776   ac_status=$?
24777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24778   (exit $ac_status); }; }; then
24779   ac_cv_sizeof_long_int=`cat conftest.val`
24780 else
24781   echo "$as_me: program exited with status $ac_status" >&5
24782 echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785 ( exit $ac_status )
24786 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
24787 See \`config.log' for more details." >&5
24788 echo "$as_me: error: cannot compute sizeof (long int), 77
24789 See \`config.log' for more details." >&2;}
24790    { (exit 1); exit 1; }; }
24791 fi
24792 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24793 fi
24794 fi
24795 rm -f conftest.val
24796 else
24797   ac_cv_sizeof_long_int=0
24798 fi
24799 fi
24800 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24801 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
24802 cat >>confdefs.h <<_ACEOF
24803 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24804 _ACEOF
24805
24806
24807 echo "$as_me:$LINENO: checking for long long int" >&5
24808 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
24809 if test "${ac_cv_type_long_long_int+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 $ac_includes_default
24819 int
24820 main ()
24821 {
24822 if ((long long int *) 0)
24823   return 0;
24824 if (sizeof (long long int))
24825   return 0;
24826   ;
24827   return 0;
24828 }
24829 _ACEOF
24830 rm -f conftest.$ac_objext
24831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24832   (eval $ac_compile) 2>conftest.er1
24833   ac_status=$?
24834   grep -v '^ *+' conftest.er1 >conftest.err
24835   rm -f conftest.er1
24836   cat conftest.err >&5
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } &&
24839          { ac_try='test -z "$ac_c_werror_flag"
24840                          || test ! -s conftest.err'
24841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24842   (eval $ac_try) 2>&5
24843   ac_status=$?
24844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845   (exit $ac_status); }; } &&
24846          { ac_try='test -s conftest.$ac_objext'
24847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24848   (eval $ac_try) 2>&5
24849   ac_status=$?
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); }; }; then
24852   ac_cv_type_long_long_int=yes
24853 else
24854   echo "$as_me: failed program was:" >&5
24855 sed 's/^/| /' conftest.$ac_ext >&5
24856
24857 ac_cv_type_long_long_int=no
24858 fi
24859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24860 fi
24861 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24862 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
24863
24864 echo "$as_me:$LINENO: checking size of long long int" >&5
24865 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
24866 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24867   echo $ECHO_N "(cached) $ECHO_C" >&6
24868 else
24869   if test "$ac_cv_type_long_long_int" = yes; then
24870   # The cast to unsigned long works around a bug in the HP C Compiler
24871   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24872   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24873   # This bug is HP SR number 8606223364.
24874   if test "$cross_compiling" = yes; then
24875   # Depending upon the size, compute the lo and hi bounds.
24876 cat >conftest.$ac_ext <<_ACEOF
24877 /* confdefs.h.  */
24878 _ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h.  */
24882 $ac_includes_default
24883 int
24884 main ()
24885 {
24886 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
24887 test_array [0] = 0
24888
24889   ;
24890   return 0;
24891 }
24892 _ACEOF
24893 rm -f conftest.$ac_objext
24894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24895   (eval $ac_compile) 2>conftest.er1
24896   ac_status=$?
24897   grep -v '^ *+' conftest.er1 >conftest.err
24898   rm -f conftest.er1
24899   cat conftest.err >&5
24900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } &&
24902          { ac_try='test -z "$ac_c_werror_flag"
24903                          || test ! -s conftest.err'
24904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905   (eval $ac_try) 2>&5
24906   ac_status=$?
24907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908   (exit $ac_status); }; } &&
24909          { ac_try='test -s conftest.$ac_objext'
24910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911   (eval $ac_try) 2>&5
24912   ac_status=$?
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); }; }; then
24915   ac_lo=0 ac_mid=0
24916   while :; do
24917     cat >conftest.$ac_ext <<_ACEOF
24918 /* confdefs.h.  */
24919 _ACEOF
24920 cat confdefs.h >>conftest.$ac_ext
24921 cat >>conftest.$ac_ext <<_ACEOF
24922 /* end confdefs.h.  */
24923 $ac_includes_default
24924 int
24925 main ()
24926 {
24927 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
24928 test_array [0] = 0
24929
24930   ;
24931   return 0;
24932 }
24933 _ACEOF
24934 rm -f conftest.$ac_objext
24935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24936   (eval $ac_compile) 2>conftest.er1
24937   ac_status=$?
24938   grep -v '^ *+' conftest.er1 >conftest.err
24939   rm -f conftest.er1
24940   cat conftest.err >&5
24941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942   (exit $ac_status); } &&
24943          { ac_try='test -z "$ac_c_werror_flag"
24944                          || test ! -s conftest.err'
24945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24946   (eval $ac_try) 2>&5
24947   ac_status=$?
24948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24949   (exit $ac_status); }; } &&
24950          { ac_try='test -s conftest.$ac_objext'
24951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24952   (eval $ac_try) 2>&5
24953   ac_status=$?
24954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24955   (exit $ac_status); }; }; then
24956   ac_hi=$ac_mid; break
24957 else
24958   echo "$as_me: failed program was:" >&5
24959 sed 's/^/| /' conftest.$ac_ext >&5
24960
24961 ac_lo=`expr $ac_mid + 1`
24962                     if test $ac_lo -le $ac_mid; then
24963                       ac_lo= ac_hi=
24964                       break
24965                     fi
24966                     ac_mid=`expr 2 '*' $ac_mid + 1`
24967 fi
24968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24969   done
24970 else
24971   echo "$as_me: failed program was:" >&5
24972 sed 's/^/| /' conftest.$ac_ext >&5
24973
24974 cat >conftest.$ac_ext <<_ACEOF
24975 /* confdefs.h.  */
24976 _ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h.  */
24980 $ac_includes_default
24981 int
24982 main ()
24983 {
24984 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
24985 test_array [0] = 0
24986
24987   ;
24988   return 0;
24989 }
24990 _ACEOF
24991 rm -f conftest.$ac_objext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24993   (eval $ac_compile) 2>conftest.er1
24994   ac_status=$?
24995   grep -v '^ *+' conftest.er1 >conftest.err
24996   rm -f conftest.er1
24997   cat conftest.err >&5
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); } &&
25000          { ac_try='test -z "$ac_c_werror_flag"
25001                          || test ! -s conftest.err'
25002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003   (eval $ac_try) 2>&5
25004   ac_status=$?
25005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006   (exit $ac_status); }; } &&
25007          { ac_try='test -s conftest.$ac_objext'
25008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009   (eval $ac_try) 2>&5
25010   ac_status=$?
25011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012   (exit $ac_status); }; }; then
25013   ac_hi=-1 ac_mid=-1
25014   while :; do
25015     cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 $ac_includes_default
25022 int
25023 main ()
25024 {
25025 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
25026 test_array [0] = 0
25027
25028   ;
25029   return 0;
25030 }
25031 _ACEOF
25032 rm -f conftest.$ac_objext
25033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25034   (eval $ac_compile) 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } &&
25041          { ac_try='test -z "$ac_c_werror_flag"
25042                          || test ! -s conftest.err'
25043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25044   (eval $ac_try) 2>&5
25045   ac_status=$?
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); }; } &&
25048          { ac_try='test -s conftest.$ac_objext'
25049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25050   (eval $ac_try) 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); }; }; then
25054   ac_lo=$ac_mid; break
25055 else
25056   echo "$as_me: failed program was:" >&5
25057 sed 's/^/| /' conftest.$ac_ext >&5
25058
25059 ac_hi=`expr '(' $ac_mid ')' - 1`
25060                        if test $ac_mid -le $ac_hi; then
25061                          ac_lo= ac_hi=
25062                          break
25063                        fi
25064                        ac_mid=`expr 2 '*' $ac_mid`
25065 fi
25066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25067   done
25068 else
25069   echo "$as_me: failed program was:" >&5
25070 sed 's/^/| /' conftest.$ac_ext >&5
25071
25072 ac_lo= ac_hi=
25073 fi
25074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25075 fi
25076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25077 # Binary search between lo and hi bounds.
25078 while test "x$ac_lo" != "x$ac_hi"; do
25079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25080   cat >conftest.$ac_ext <<_ACEOF
25081 /* confdefs.h.  */
25082 _ACEOF
25083 cat confdefs.h >>conftest.$ac_ext
25084 cat >>conftest.$ac_ext <<_ACEOF
25085 /* end confdefs.h.  */
25086 $ac_includes_default
25087 int
25088 main ()
25089 {
25090 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
25091 test_array [0] = 0
25092
25093   ;
25094   return 0;
25095 }
25096 _ACEOF
25097 rm -f conftest.$ac_objext
25098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25099   (eval $ac_compile) 2>conftest.er1
25100   ac_status=$?
25101   grep -v '^ *+' conftest.er1 >conftest.err
25102   rm -f conftest.er1
25103   cat conftest.err >&5
25104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25105   (exit $ac_status); } &&
25106          { ac_try='test -z "$ac_c_werror_flag"
25107                          || test ! -s conftest.err'
25108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25109   (eval $ac_try) 2>&5
25110   ac_status=$?
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); }; } &&
25113          { ac_try='test -s conftest.$ac_objext'
25114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25115   (eval $ac_try) 2>&5
25116   ac_status=$?
25117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25118   (exit $ac_status); }; }; then
25119   ac_hi=$ac_mid
25120 else
25121   echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 ac_lo=`expr '(' $ac_mid ')' + 1`
25125 fi
25126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25127 done
25128 case $ac_lo in
25129 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25130 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25131 See \`config.log' for more details." >&5
25132 echo "$as_me: error: cannot compute sizeof (long long int), 77
25133 See \`config.log' for more details." >&2;}
25134    { (exit 1); exit 1; }; } ;;
25135 esac
25136 else
25137   if test "$cross_compiling" = yes; then
25138   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25139 See \`config.log' for more details." >&5
25140 echo "$as_me: error: cannot run test program while cross compiling
25141 See \`config.log' for more details." >&2;}
25142    { (exit 1); exit 1; }; }
25143 else
25144   cat >conftest.$ac_ext <<_ACEOF
25145 /* confdefs.h.  */
25146 _ACEOF
25147 cat confdefs.h >>conftest.$ac_ext
25148 cat >>conftest.$ac_ext <<_ACEOF
25149 /* end confdefs.h.  */
25150 $ac_includes_default
25151 long longval () { return (long) (sizeof (long long int)); }
25152 unsigned long ulongval () { return (long) (sizeof (long long int)); }
25153 #include <stdio.h>
25154 #include <stdlib.h>
25155 int
25156 main ()
25157 {
25158
25159   FILE *f = fopen ("conftest.val", "w");
25160   if (! f)
25161     exit (1);
25162   if (((long) (sizeof (long long int))) < 0)
25163     {
25164       long i = longval ();
25165       if (i != ((long) (sizeof (long long int))))
25166         exit (1);
25167       fprintf (f, "%ld\n", i);
25168     }
25169   else
25170     {
25171       unsigned long i = ulongval ();
25172       if (i != ((long) (sizeof (long long int))))
25173         exit (1);
25174       fprintf (f, "%lu\n", i);
25175     }
25176   exit (ferror (f) || fclose (f) != 0);
25177
25178   ;
25179   return 0;
25180 }
25181 _ACEOF
25182 rm -f conftest$ac_exeext
25183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25184   (eval $ac_link) 2>&5
25185   ac_status=$?
25186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25189   (eval $ac_try) 2>&5
25190   ac_status=$?
25191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192   (exit $ac_status); }; }; then
25193   ac_cv_sizeof_long_long_int=`cat conftest.val`
25194 else
25195   echo "$as_me: program exited with status $ac_status" >&5
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25198
25199 ( exit $ac_status )
25200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
25201 See \`config.log' for more details." >&5
25202 echo "$as_me: error: cannot compute sizeof (long long int), 77
25203 See \`config.log' for more details." >&2;}
25204    { (exit 1); exit 1; }; }
25205 fi
25206 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25207 fi
25208 fi
25209 rm -f conftest.val
25210 else
25211   ac_cv_sizeof_long_long_int=0
25212 fi
25213 fi
25214 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25215 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
25216 cat >>confdefs.h <<_ACEOF
25217 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25218 _ACEOF
25219
25220
25221 echo "$as_me:$LINENO: checking for int *" >&5
25222 echo $ECHO_N "checking for int *... $ECHO_C" >&6
25223 if test "${ac_cv_type_int_p+set}" = set; then
25224   echo $ECHO_N "(cached) $ECHO_C" >&6
25225 else
25226   cat >conftest.$ac_ext <<_ACEOF
25227 /* confdefs.h.  */
25228 _ACEOF
25229 cat confdefs.h >>conftest.$ac_ext
25230 cat >>conftest.$ac_ext <<_ACEOF
25231 /* end confdefs.h.  */
25232 $ac_includes_default
25233 int
25234 main ()
25235 {
25236 if ((int * *) 0)
25237   return 0;
25238 if (sizeof (int *))
25239   return 0;
25240   ;
25241   return 0;
25242 }
25243 _ACEOF
25244 rm -f conftest.$ac_objext
25245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25246   (eval $ac_compile) 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } &&
25253          { ac_try='test -z "$ac_c_werror_flag"
25254                          || test ! -s conftest.err'
25255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25256   (eval $ac_try) 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; } &&
25260          { ac_try='test -s conftest.$ac_objext'
25261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25262   (eval $ac_try) 2>&5
25263   ac_status=$?
25264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25265   (exit $ac_status); }; }; then
25266   ac_cv_type_int_p=yes
25267 else
25268   echo "$as_me: failed program was:" >&5
25269 sed 's/^/| /' conftest.$ac_ext >&5
25270
25271 ac_cv_type_int_p=no
25272 fi
25273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25274 fi
25275 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25276 echo "${ECHO_T}$ac_cv_type_int_p" >&6
25277
25278 echo "$as_me:$LINENO: checking size of int *" >&5
25279 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
25280 if test "${ac_cv_sizeof_int_p+set}" = set; then
25281   echo $ECHO_N "(cached) $ECHO_C" >&6
25282 else
25283   if test "$ac_cv_type_int_p" = yes; then
25284   # The cast to unsigned long works around a bug in the HP C Compiler
25285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25287   # This bug is HP SR number 8606223364.
25288   if test "$cross_compiling" = yes; then
25289   # Depending upon the size, compute the lo and hi bounds.
25290 cat >conftest.$ac_ext <<_ACEOF
25291 /* confdefs.h.  */
25292 _ACEOF
25293 cat confdefs.h >>conftest.$ac_ext
25294 cat >>conftest.$ac_ext <<_ACEOF
25295 /* end confdefs.h.  */
25296 $ac_includes_default
25297 int
25298 main ()
25299 {
25300 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
25301 test_array [0] = 0
25302
25303   ;
25304   return 0;
25305 }
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25309   (eval $ac_compile) 2>conftest.er1
25310   ac_status=$?
25311   grep -v '^ *+' conftest.er1 >conftest.err
25312   rm -f conftest.er1
25313   cat conftest.err >&5
25314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315   (exit $ac_status); } &&
25316          { ac_try='test -z "$ac_c_werror_flag"
25317                          || test ! -s conftest.err'
25318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25319   (eval $ac_try) 2>&5
25320   ac_status=$?
25321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322   (exit $ac_status); }; } &&
25323          { ac_try='test -s conftest.$ac_objext'
25324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325   (eval $ac_try) 2>&5
25326   ac_status=$?
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); }; }; then
25329   ac_lo=0 ac_mid=0
25330   while :; do
25331     cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h.  */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h.  */
25337 $ac_includes_default
25338 int
25339 main ()
25340 {
25341 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25342 test_array [0] = 0
25343
25344   ;
25345   return 0;
25346 }
25347 _ACEOF
25348 rm -f conftest.$ac_objext
25349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25350   (eval $ac_compile) 2>conftest.er1
25351   ac_status=$?
25352   grep -v '^ *+' conftest.er1 >conftest.err
25353   rm -f conftest.er1
25354   cat conftest.err >&5
25355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25356   (exit $ac_status); } &&
25357          { ac_try='test -z "$ac_c_werror_flag"
25358                          || test ! -s conftest.err'
25359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25360   (eval $ac_try) 2>&5
25361   ac_status=$?
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); }; } &&
25364          { ac_try='test -s conftest.$ac_objext'
25365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366   (eval $ac_try) 2>&5
25367   ac_status=$?
25368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369   (exit $ac_status); }; }; then
25370   ac_hi=$ac_mid; break
25371 else
25372   echo "$as_me: failed program was:" >&5
25373 sed 's/^/| /' conftest.$ac_ext >&5
25374
25375 ac_lo=`expr $ac_mid + 1`
25376                     if test $ac_lo -le $ac_mid; then
25377                       ac_lo= ac_hi=
25378                       break
25379                     fi
25380                     ac_mid=`expr 2 '*' $ac_mid + 1`
25381 fi
25382 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25383   done
25384 else
25385   echo "$as_me: failed program was:" >&5
25386 sed 's/^/| /' conftest.$ac_ext >&5
25387
25388 cat >conftest.$ac_ext <<_ACEOF
25389 /* confdefs.h.  */
25390 _ACEOF
25391 cat confdefs.h >>conftest.$ac_ext
25392 cat >>conftest.$ac_ext <<_ACEOF
25393 /* end confdefs.h.  */
25394 $ac_includes_default
25395 int
25396 main ()
25397 {
25398 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
25399 test_array [0] = 0
25400
25401   ;
25402   return 0;
25403 }
25404 _ACEOF
25405 rm -f conftest.$ac_objext
25406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25407   (eval $ac_compile) 2>conftest.er1
25408   ac_status=$?
25409   grep -v '^ *+' conftest.er1 >conftest.err
25410   rm -f conftest.er1
25411   cat conftest.err >&5
25412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413   (exit $ac_status); } &&
25414          { ac_try='test -z "$ac_c_werror_flag"
25415                          || test ! -s conftest.err'
25416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417   (eval $ac_try) 2>&5
25418   ac_status=$?
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); }; } &&
25421          { ac_try='test -s conftest.$ac_objext'
25422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25423   (eval $ac_try) 2>&5
25424   ac_status=$?
25425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25426   (exit $ac_status); }; }; then
25427   ac_hi=-1 ac_mid=-1
25428   while :; do
25429     cat >conftest.$ac_ext <<_ACEOF
25430 /* confdefs.h.  */
25431 _ACEOF
25432 cat confdefs.h >>conftest.$ac_ext
25433 cat >>conftest.$ac_ext <<_ACEOF
25434 /* end confdefs.h.  */
25435 $ac_includes_default
25436 int
25437 main ()
25438 {
25439 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
25440 test_array [0] = 0
25441
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 rm -f conftest.$ac_objext
25447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25448   (eval $ac_compile) 2>conftest.er1
25449   ac_status=$?
25450   grep -v '^ *+' conftest.er1 >conftest.err
25451   rm -f conftest.er1
25452   cat conftest.err >&5
25453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25454   (exit $ac_status); } &&
25455          { ac_try='test -z "$ac_c_werror_flag"
25456                          || test ! -s conftest.err'
25457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25458   (eval $ac_try) 2>&5
25459   ac_status=$?
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; } &&
25462          { ac_try='test -s conftest.$ac_objext'
25463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25464   (eval $ac_try) 2>&5
25465   ac_status=$?
25466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25467   (exit $ac_status); }; }; then
25468   ac_lo=$ac_mid; break
25469 else
25470   echo "$as_me: failed program was:" >&5
25471 sed 's/^/| /' conftest.$ac_ext >&5
25472
25473 ac_hi=`expr '(' $ac_mid ')' - 1`
25474                        if test $ac_mid -le $ac_hi; then
25475                          ac_lo= ac_hi=
25476                          break
25477                        fi
25478                        ac_mid=`expr 2 '*' $ac_mid`
25479 fi
25480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25481   done
25482 else
25483   echo "$as_me: failed program was:" >&5
25484 sed 's/^/| /' conftest.$ac_ext >&5
25485
25486 ac_lo= ac_hi=
25487 fi
25488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25489 fi
25490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25491 # Binary search between lo and hi bounds.
25492 while test "x$ac_lo" != "x$ac_hi"; do
25493   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25494   cat >conftest.$ac_ext <<_ACEOF
25495 /* confdefs.h.  */
25496 _ACEOF
25497 cat confdefs.h >>conftest.$ac_ext
25498 cat >>conftest.$ac_ext <<_ACEOF
25499 /* end confdefs.h.  */
25500 $ac_includes_default
25501 int
25502 main ()
25503 {
25504 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
25505 test_array [0] = 0
25506
25507   ;
25508   return 0;
25509 }
25510 _ACEOF
25511 rm -f conftest.$ac_objext
25512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25513   (eval $ac_compile) 2>conftest.er1
25514   ac_status=$?
25515   grep -v '^ *+' conftest.er1 >conftest.err
25516   rm -f conftest.er1
25517   cat conftest.err >&5
25518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25519   (exit $ac_status); } &&
25520          { ac_try='test -z "$ac_c_werror_flag"
25521                          || test ! -s conftest.err'
25522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25523   (eval $ac_try) 2>&5
25524   ac_status=$?
25525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526   (exit $ac_status); }; } &&
25527          { ac_try='test -s conftest.$ac_objext'
25528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25529   (eval $ac_try) 2>&5
25530   ac_status=$?
25531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25532   (exit $ac_status); }; }; then
25533   ac_hi=$ac_mid
25534 else
25535   echo "$as_me: failed program was:" >&5
25536 sed 's/^/| /' conftest.$ac_ext >&5
25537
25538 ac_lo=`expr '(' $ac_mid ')' + 1`
25539 fi
25540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25541 done
25542 case $ac_lo in
25543 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25544 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25545 See \`config.log' for more details." >&5
25546 echo "$as_me: error: cannot compute sizeof (int *), 77
25547 See \`config.log' for more details." >&2;}
25548    { (exit 1); exit 1; }; } ;;
25549 esac
25550 else
25551   if test "$cross_compiling" = yes; then
25552   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
25553 See \`config.log' for more details." >&5
25554 echo "$as_me: error: cannot run test program while cross compiling
25555 See \`config.log' for more details." >&2;}
25556    { (exit 1); exit 1; }; }
25557 else
25558   cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h.  */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h.  */
25564 $ac_includes_default
25565 long longval () { return (long) (sizeof (int *)); }
25566 unsigned long ulongval () { return (long) (sizeof (int *)); }
25567 #include <stdio.h>
25568 #include <stdlib.h>
25569 int
25570 main ()
25571 {
25572
25573   FILE *f = fopen ("conftest.val", "w");
25574   if (! f)
25575     exit (1);
25576   if (((long) (sizeof (int *))) < 0)
25577     {
25578       long i = longval ();
25579       if (i != ((long) (sizeof (int *))))
25580         exit (1);
25581       fprintf (f, "%ld\n", i);
25582     }
25583   else
25584     {
25585       unsigned long i = ulongval ();
25586       if (i != ((long) (sizeof (int *))))
25587         exit (1);
25588       fprintf (f, "%lu\n", i);
25589     }
25590   exit (ferror (f) || fclose (f) != 0);
25591
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 rm -f conftest$ac_exeext
25597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25598   (eval $ac_link) 2>&5
25599   ac_status=$?
25600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603   (eval $ac_try) 2>&5
25604   ac_status=$?
25605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606   (exit $ac_status); }; }; then
25607   ac_cv_sizeof_int_p=`cat conftest.val`
25608 else
25609   echo "$as_me: program exited with status $ac_status" >&5
25610 echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613 ( exit $ac_status )
25614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
25615 See \`config.log' for more details." >&5
25616 echo "$as_me: error: cannot compute sizeof (int *), 77
25617 See \`config.log' for more details." >&2;}
25618    { (exit 1); exit 1; }; }
25619 fi
25620 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25621 fi
25622 fi
25623 rm -f conftest.val
25624 else
25625   ac_cv_sizeof_int_p=0
25626 fi
25627 fi
25628 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25629 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
25630 cat >>confdefs.h <<_ACEOF
25631 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25632 _ACEOF
25633
25634
25635
25636 # Check for sys/types.h types
25637 echo "$as_me:$LINENO: checking for u_int type" >&5
25638 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
25639 if test "${ac_cv_have_u_int+set}" = set; then
25640   echo $ECHO_N "(cached) $ECHO_C" >&6
25641 else
25642
25643     cat >conftest.$ac_ext <<_ACEOF
25644 /* confdefs.h.  */
25645 _ACEOF
25646 cat confdefs.h >>conftest.$ac_ext
25647 cat >>conftest.$ac_ext <<_ACEOF
25648 /* end confdefs.h.  */
25649  #include <sys/types.h>
25650 int
25651 main ()
25652 {
25653  u_int a; a = 1;
25654   ;
25655   return 0;
25656 }
25657 _ACEOF
25658 rm -f conftest.$ac_objext
25659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25660   (eval $ac_compile) 2>conftest.er1
25661   ac_status=$?
25662   grep -v '^ *+' conftest.er1 >conftest.err
25663   rm -f conftest.er1
25664   cat conftest.err >&5
25665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25666   (exit $ac_status); } &&
25667          { ac_try='test -z "$ac_c_werror_flag"
25668                          || test ! -s conftest.err'
25669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25670   (eval $ac_try) 2>&5
25671   ac_status=$?
25672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25673   (exit $ac_status); }; } &&
25674          { ac_try='test -s conftest.$ac_objext'
25675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25676   (eval $ac_try) 2>&5
25677   ac_status=$?
25678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25679   (exit $ac_status); }; }; then
25680    ac_cv_have_u_int="yes"
25681 else
25682   echo "$as_me: failed program was:" >&5
25683 sed 's/^/| /' conftest.$ac_ext >&5
25684
25685  ac_cv_have_u_int="no"
25686
25687 fi
25688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25689
25690 fi
25691 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25692 echo "${ECHO_T}$ac_cv_have_u_int" >&6
25693 if test "x$ac_cv_have_u_int" = "xyes" ; then
25694    cat >>confdefs.h <<\_ACEOF
25695 #define HAVE_U_INT 1
25696 _ACEOF
25697
25698    have_u_int=1
25699 fi
25700
25701 echo "$as_me:$LINENO: checking for intmax_t type" >&5
25702 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
25703 if test "${ac_cv_have_intmax_t+set}" = set; then
25704   echo $ECHO_N "(cached) $ECHO_C" >&6
25705 else
25706
25707    cat >conftest.$ac_ext <<_ACEOF
25708 /* confdefs.h.  */
25709 _ACEOF
25710 cat confdefs.h >>conftest.$ac_ext
25711 cat >>conftest.$ac_ext <<_ACEOF
25712 /* end confdefs.h.  */
25713  #include <sys/types.h>
25714 int
25715 main ()
25716 {
25717  intmax_t a; a = 1;
25718   ;
25719   return 0;
25720 }
25721 _ACEOF
25722 rm -f conftest.$ac_objext
25723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25724   (eval $ac_compile) 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } &&
25731          { ac_try='test -z "$ac_c_werror_flag"
25732                          || test ! -s conftest.err'
25733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25734   (eval $ac_try) 2>&5
25735   ac_status=$?
25736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737   (exit $ac_status); }; } &&
25738          { ac_try='test -s conftest.$ac_objext'
25739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25740   (eval $ac_try) 2>&5
25741   ac_status=$?
25742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25743   (exit $ac_status); }; }; then
25744    ac_cv_have_intmax_t="yes"
25745 else
25746   echo "$as_me: failed program was:" >&5
25747 sed 's/^/| /' conftest.$ac_ext >&5
25748
25749
25750          cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756  #include <stdint.h>
25757 int
25758 main ()
25759 {
25760  intmax_t a; a = 1;
25761   ;
25762   return 0;
25763 }
25764 _ACEOF
25765 rm -f conftest.$ac_objext
25766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25767   (eval $ac_compile) 2>conftest.er1
25768   ac_status=$?
25769   grep -v '^ *+' conftest.er1 >conftest.err
25770   rm -f conftest.er1
25771   cat conftest.err >&5
25772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773   (exit $ac_status); } &&
25774          { ac_try='test -z "$ac_c_werror_flag"
25775                          || test ! -s conftest.err'
25776   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25777   (eval $ac_try) 2>&5
25778   ac_status=$?
25779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25780   (exit $ac_status); }; } &&
25781          { ac_try='test -s conftest.$ac_objext'
25782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25783   (eval $ac_try) 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; }; then
25787    ac_cv_have_intmax_t="yes"
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792  ac_cv_have_intmax_t="no"
25793
25794 fi
25795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25796
25797
25798 fi
25799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25800
25801
25802 fi
25803 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25804 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
25805 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25806    cat >>confdefs.h <<\_ACEOF
25807 #define HAVE_INTMAX_T 1
25808 _ACEOF
25809
25810    have_intmax_t=1
25811 fi
25812
25813
25814 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25815 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
25816 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25817   echo $ECHO_N "(cached) $ECHO_C" >&6
25818 else
25819
25820    cat >conftest.$ac_ext <<_ACEOF
25821 /* confdefs.h.  */
25822 _ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h.  */
25826  #include <sys/types.h>
25827 int
25828 main ()
25829 {
25830  u_intmax_t a; a = 1;
25831   ;
25832   return 0;
25833 }
25834 _ACEOF
25835 rm -f conftest.$ac_objext
25836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25837   (eval $ac_compile) 2>conftest.er1
25838   ac_status=$?
25839   grep -v '^ *+' conftest.er1 >conftest.err
25840   rm -f conftest.er1
25841   cat conftest.err >&5
25842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843   (exit $ac_status); } &&
25844          { ac_try='test -z "$ac_c_werror_flag"
25845                          || test ! -s conftest.err'
25846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25847   (eval $ac_try) 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); }; } &&
25851          { ac_try='test -s conftest.$ac_objext'
25852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25853   (eval $ac_try) 2>&5
25854   ac_status=$?
25855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856   (exit $ac_status); }; }; then
25857    ac_cv_have_u_intmax_t="yes"
25858 else
25859   echo "$as_me: failed program was:" >&5
25860 sed 's/^/| /' conftest.$ac_ext >&5
25861
25862
25863          cat >conftest.$ac_ext <<_ACEOF
25864 /* confdefs.h.  */
25865 _ACEOF
25866 cat confdefs.h >>conftest.$ac_ext
25867 cat >>conftest.$ac_ext <<_ACEOF
25868 /* end confdefs.h.  */
25869  #include <stdint.h>
25870 int
25871 main ()
25872 {
25873  u_intmax_t a; a = 1;
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 rm -f conftest.$ac_objext
25879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25880   (eval $ac_compile) 2>conftest.er1
25881   ac_status=$?
25882   grep -v '^ *+' conftest.er1 >conftest.err
25883   rm -f conftest.er1
25884   cat conftest.err >&5
25885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886   (exit $ac_status); } &&
25887          { ac_try='test -z "$ac_c_werror_flag"
25888                          || test ! -s conftest.err'
25889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890   (eval $ac_try) 2>&5
25891   ac_status=$?
25892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893   (exit $ac_status); }; } &&
25894          { ac_try='test -s conftest.$ac_objext'
25895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25896   (eval $ac_try) 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; }; then
25900    ac_cv_have_u_intmax_t="yes"
25901 else
25902   echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.$ac_ext >&5
25904
25905  ac_cv_have_u_intmax_t="no"
25906
25907 fi
25908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25909
25910
25911 fi
25912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25913
25914 fi
25915 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25916 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
25917 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25918    cat >>confdefs.h <<\_ACEOF
25919 #define HAVE_U_INTMAX_T 1
25920 _ACEOF
25921
25922    have_u_intmax_t=1
25923 fi
25924
25925
25926 echo "$as_me:$LINENO: checking for intXX_t types" >&5
25927 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
25928 if test "${ac_cv_have_intxx_t+set}" = set; then
25929   echo $ECHO_N "(cached) $ECHO_C" >&6
25930 else
25931
25932    cat >conftest.$ac_ext <<_ACEOF
25933 /* confdefs.h.  */
25934 _ACEOF
25935 cat confdefs.h >>conftest.$ac_ext
25936 cat >>conftest.$ac_ext <<_ACEOF
25937 /* end confdefs.h.  */
25938  #include <sys/types.h>
25939 int
25940 main ()
25941 {
25942  int8_t a; int16_t b; int32_t c; a = b = c = 1;
25943   ;
25944   return 0;
25945 }
25946 _ACEOF
25947 rm -f conftest.$ac_objext
25948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25949   (eval $ac_compile) 2>conftest.er1
25950   ac_status=$?
25951   grep -v '^ *+' conftest.er1 >conftest.err
25952   rm -f conftest.er1
25953   cat conftest.err >&5
25954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25955   (exit $ac_status); } &&
25956          { ac_try='test -z "$ac_c_werror_flag"
25957                          || test ! -s conftest.err'
25958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25959   (eval $ac_try) 2>&5
25960   ac_status=$?
25961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962   (exit $ac_status); }; } &&
25963          { ac_try='test -s conftest.$ac_objext'
25964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25965   (eval $ac_try) 2>&5
25966   ac_status=$?
25967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25968   (exit $ac_status); }; }; then
25969    ac_cv_have_intxx_t="yes"
25970 else
25971   echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.$ac_ext >&5
25973
25974  ac_cv_have_intxx_t="no"
25975
25976 fi
25977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25978
25979 fi
25980 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25981 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
25982 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25983    cat >>confdefs.h <<\_ACEOF
25984 #define HAVE_INTXX_T 1
25985 _ACEOF
25986
25987    have_intxx_t=1
25988 fi
25989
25990 echo "$as_me:$LINENO: checking for int64_t type" >&5
25991 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
25992 if test "${ac_cv_have_int64_t+set}" = set; then
25993   echo $ECHO_N "(cached) $ECHO_C" >&6
25994 else
25995
25996    cat >conftest.$ac_ext <<_ACEOF
25997 /* confdefs.h.  */
25998 _ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h.  */
26002  #include <sys/types.h>
26003 int
26004 main ()
26005 {
26006  int64_t a; a = 1;
26007   ;
26008   return 0;
26009 }
26010 _ACEOF
26011 rm -f conftest.$ac_objext
26012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26013   (eval $ac_compile) 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } &&
26020          { ac_try='test -z "$ac_c_werror_flag"
26021                          || test ! -s conftest.err'
26022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26023   (eval $ac_try) 2>&5
26024   ac_status=$?
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); }; } &&
26027          { ac_try='test -s conftest.$ac_objext'
26028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26029   (eval $ac_try) 2>&5
26030   ac_status=$?
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); }; }; then
26033    ac_cv_have_int64_t="yes"
26034 else
26035   echo "$as_me: failed program was:" >&5
26036 sed 's/^/| /' conftest.$ac_ext >&5
26037
26038  ac_cv_have_int64_t="no"
26039
26040 fi
26041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26042
26043 fi
26044 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26045 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
26046 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26047    cat >>confdefs.h <<\_ACEOF
26048 #define HAVE_INT64_T 1
26049 _ACEOF
26050
26051    have_int64_t=1
26052 fi
26053
26054 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26055 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
26056 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26057   echo $ECHO_N "(cached) $ECHO_C" >&6
26058 else
26059
26060    cat >conftest.$ac_ext <<_ACEOF
26061 /* confdefs.h.  */
26062 _ACEOF
26063 cat confdefs.h >>conftest.$ac_ext
26064 cat >>conftest.$ac_ext <<_ACEOF
26065 /* end confdefs.h.  */
26066  #include <sys/types.h>
26067 int
26068 main ()
26069 {
26070  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26071   ;
26072   return 0;
26073 }
26074 _ACEOF
26075 rm -f conftest.$ac_objext
26076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26077   (eval $ac_compile) 2>conftest.er1
26078   ac_status=$?
26079   grep -v '^ *+' conftest.er1 >conftest.err
26080   rm -f conftest.er1
26081   cat conftest.err >&5
26082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26083   (exit $ac_status); } &&
26084          { ac_try='test -z "$ac_c_werror_flag"
26085                          || test ! -s conftest.err'
26086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26087   (eval $ac_try) 2>&5
26088   ac_status=$?
26089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26090   (exit $ac_status); }; } &&
26091          { ac_try='test -s conftest.$ac_objext'
26092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26093   (eval $ac_try) 2>&5
26094   ac_status=$?
26095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26096   (exit $ac_status); }; }; then
26097    ac_cv_have_u_intxx_t="yes"
26098 else
26099   echo "$as_me: failed program was:" >&5
26100 sed 's/^/| /' conftest.$ac_ext >&5
26101
26102  ac_cv_have_u_intxx_t="no"
26103
26104 fi
26105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26106
26107 fi
26108 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26109 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
26110 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26111    cat >>confdefs.h <<\_ACEOF
26112 #define HAVE_U_INTXX_T 1
26113 _ACEOF
26114
26115    have_u_intxx_t=1
26116 fi
26117
26118 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26119 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
26120 if test "${ac_cv_have_u_int64_t+set}" = set; then
26121   echo $ECHO_N "(cached) $ECHO_C" >&6
26122 else
26123
26124    cat >conftest.$ac_ext <<_ACEOF
26125 /* confdefs.h.  */
26126 _ACEOF
26127 cat confdefs.h >>conftest.$ac_ext
26128 cat >>conftest.$ac_ext <<_ACEOF
26129 /* end confdefs.h.  */
26130  #include <sys/types.h>
26131 int
26132 main ()
26133 {
26134  u_int64_t a; a = 1;
26135   ;
26136   return 0;
26137 }
26138 _ACEOF
26139 rm -f conftest.$ac_objext
26140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26141   (eval $ac_compile) 2>conftest.er1
26142   ac_status=$?
26143   grep -v '^ *+' conftest.er1 >conftest.err
26144   rm -f conftest.er1
26145   cat conftest.err >&5
26146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147   (exit $ac_status); } &&
26148          { ac_try='test -z "$ac_c_werror_flag"
26149                          || test ! -s conftest.err'
26150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26151   (eval $ac_try) 2>&5
26152   ac_status=$?
26153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26154   (exit $ac_status); }; } &&
26155          { ac_try='test -s conftest.$ac_objext'
26156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26157   (eval $ac_try) 2>&5
26158   ac_status=$?
26159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26160   (exit $ac_status); }; }; then
26161    ac_cv_have_u_int64_t="yes"
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166  ac_cv_have_u_int64_t="no"
26167
26168 fi
26169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26170
26171 fi
26172 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26173 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
26174 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26175    cat >>confdefs.h <<\_ACEOF
26176 #define HAVE_U_INT64_T 1
26177 _ACEOF
26178
26179    have_u_int64_t=1
26180 fi
26181
26182 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26183            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26184 then
26185    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26186 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
26187    cat >conftest.$ac_ext <<_ACEOF
26188 /* confdefs.h.  */
26189 _ACEOF
26190 cat confdefs.h >>conftest.$ac_ext
26191 cat >>conftest.$ac_ext <<_ACEOF
26192 /* end confdefs.h.  */
26193  #include <sys/bitypes.h>
26194 int
26195 main ()
26196 {
26197  int8_t a; int16_t b; int32_t c;
26198         u_int8_t e; u_int16_t f; u_int32_t g;
26199         a = b = c = e = f = g = 1;
26200   ;
26201   return 0;
26202 }
26203 _ACEOF
26204 rm -f conftest.$ac_objext
26205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26206   (eval $ac_compile) 2>conftest.er1
26207   ac_status=$?
26208   grep -v '^ *+' conftest.er1 >conftest.err
26209   rm -f conftest.er1
26210   cat conftest.err >&5
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); } &&
26213          { ac_try='test -z "$ac_c_werror_flag"
26214                          || test ! -s conftest.err'
26215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26216   (eval $ac_try) 2>&5
26217   ac_status=$?
26218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26219   (exit $ac_status); }; } &&
26220          { ac_try='test -s conftest.$ac_objext'
26221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26222   (eval $ac_try) 2>&5
26223   ac_status=$?
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); }; }; then
26226    cat >>confdefs.h <<\_ACEOF
26227 #define HAVE_U_INTXX_T 1
26228 _ACEOF
26229
26230         cat >>confdefs.h <<\_ACEOF
26231 #define HAVE_INTXX_T 1
26232 _ACEOF
26233
26234         cat >>confdefs.h <<\_ACEOF
26235 #define HAVE_SYS_BITYPES_H 1
26236 _ACEOF
26237
26238         echo "$as_me:$LINENO: result: yes" >&5
26239 echo "${ECHO_T}yes" >&6
26240 else
26241   echo "$as_me: failed program was:" >&5
26242 sed 's/^/| /' conftest.$ac_ext >&5
26243
26244  echo "$as_me:$LINENO: result: no" >&5
26245 echo "${ECHO_T}no" >&6
26246
26247 fi
26248 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26249 fi
26250
26251 if test -z "$have_u_intxx_t" ; then
26252    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26253 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
26254 if test "${ac_cv_have_uintxx_t+set}" = set; then
26255   echo $ECHO_N "(cached) $ECHO_C" >&6
26256 else
26257
26258       cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h.  */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h.  */
26264  #include <sys/types.h>
26265 int
26266 main ()
26267 {
26268  uint8_t a; uint16_t b;
26269            uint32_t c; a = b = c = 1;
26270   ;
26271   return 0;
26272 }
26273 _ACEOF
26274 rm -f conftest.$ac_objext
26275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26276   (eval $ac_compile) 2>conftest.er1
26277   ac_status=$?
26278   grep -v '^ *+' conftest.er1 >conftest.err
26279   rm -f conftest.er1
26280   cat conftest.err >&5
26281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26282   (exit $ac_status); } &&
26283          { ac_try='test -z "$ac_c_werror_flag"
26284                          || test ! -s conftest.err'
26285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26286   (eval $ac_try) 2>&5
26287   ac_status=$?
26288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289   (exit $ac_status); }; } &&
26290          { ac_try='test -s conftest.$ac_objext'
26291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26292   (eval $ac_try) 2>&5
26293   ac_status=$?
26294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295   (exit $ac_status); }; }; then
26296    ac_cv_have_uintxx_t="yes"
26297 else
26298   echo "$as_me: failed program was:" >&5
26299 sed 's/^/| /' conftest.$ac_ext >&5
26300
26301  ac_cv_have_uintxx_t="no"
26302
26303 fi
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26305
26306 fi
26307 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26308 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
26309    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26310       cat >>confdefs.h <<\_ACEOF
26311 #define HAVE_UINTXX_T 1
26312 _ACEOF
26313
26314    fi
26315 fi
26316
26317 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26318           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26319 then
26320    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26321 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
26322    cat >conftest.$ac_ext <<_ACEOF
26323 /* confdefs.h.  */
26324 _ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h.  */
26328  #include <sys/bitypes.h>
26329 int
26330 main ()
26331 {
26332  int64_t a; u_int64_t b;
26333        a = b = 1;
26334   ;
26335   return 0;
26336 }
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26340   (eval $ac_compile) 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } &&
26347          { ac_try='test -z "$ac_c_werror_flag"
26348                          || test ! -s conftest.err'
26349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350   (eval $ac_try) 2>&5
26351   ac_status=$?
26352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353   (exit $ac_status); }; } &&
26354          { ac_try='test -s conftest.$ac_objext'
26355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356   (eval $ac_try) 2>&5
26357   ac_status=$?
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); }; }; then
26360    cat >>confdefs.h <<\_ACEOF
26361 #define HAVE_U_INT64_T 1
26362 _ACEOF
26363
26364        cat >>confdefs.h <<\_ACEOF
26365 #define HAVE_INT64_T 1
26366 _ACEOF
26367
26368        echo "$as_me:$LINENO: result: yes" >&5
26369 echo "${ECHO_T}yes" >&6
26370 else
26371   echo "$as_me: failed program was:" >&5
26372 sed 's/^/| /' conftest.$ac_ext >&5
26373
26374  echo "$as_me:$LINENO: result: no" >&5
26375 echo "${ECHO_T}no" >&6
26376
26377 fi
26378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26379 fi
26380
26381 if (test -z "$have_uintxx_t" && \
26382           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26383 then
26384    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26385 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
26386    cat >conftest.$ac_ext <<_ACEOF
26387 /* confdefs.h.  */
26388 _ACEOF
26389 cat confdefs.h >>conftest.$ac_ext
26390 cat >>conftest.$ac_ext <<_ACEOF
26391 /* end confdefs.h.  */
26392  #include <sys/bitypes.h>
26393 int
26394 main ()
26395 {
26396  uint8_t a; uint16_t b;
26397           uint32_t c; a = b = c = 1;
26398   ;
26399   return 0;
26400 }
26401 _ACEOF
26402 rm -f conftest.$ac_objext
26403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26404   (eval $ac_compile) 2>conftest.er1
26405   ac_status=$?
26406   grep -v '^ *+' conftest.er1 >conftest.err
26407   rm -f conftest.er1
26408   cat conftest.err >&5
26409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410   (exit $ac_status); } &&
26411          { ac_try='test -z "$ac_c_werror_flag"
26412                          || test ! -s conftest.err'
26413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26414   (eval $ac_try) 2>&5
26415   ac_status=$?
26416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26417   (exit $ac_status); }; } &&
26418          { ac_try='test -s conftest.$ac_objext'
26419   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26420   (eval $ac_try) 2>&5
26421   ac_status=$?
26422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423   (exit $ac_status); }; }; then
26424    cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_UINTXX_T 1
26426 _ACEOF
26427
26428        echo "$as_me:$LINENO: result: yes" >&5
26429 echo "${ECHO_T}yes" >&6
26430 else
26431   echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26433
26434  echo "$as_me:$LINENO: result: no" >&5
26435 echo "${ECHO_T}no" >&6
26436
26437 fi
26438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26439
26440 fi
26441
26442
26443
26444
26445
26446
26447
26448
26449
26450
26451
26452
26453
26454
26455
26456
26457
26458 for ac_func in \
26459         fork \
26460         getcwd \
26461         gethostname \
26462         getpid \
26463         gettimeofday \
26464         setpgid \
26465         setpgrp \
26466         setsid \
26467         signal \
26468         strerror \
26469         strncmp \
26470         strncpy \
26471         vfprintf \
26472
26473 do
26474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26475 echo "$as_me:$LINENO: checking for $ac_func" >&5
26476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26477 if eval "test \"\${$as_ac_var+set}\" = set"; then
26478   echo $ECHO_N "(cached) $ECHO_C" >&6
26479 else
26480   cat >conftest.$ac_ext <<_ACEOF
26481 /* confdefs.h.  */
26482 _ACEOF
26483 cat confdefs.h >>conftest.$ac_ext
26484 cat >>conftest.$ac_ext <<_ACEOF
26485 /* end confdefs.h.  */
26486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26488 #define $ac_func innocuous_$ac_func
26489
26490 /* System header to define __stub macros and hopefully few prototypes,
26491     which can conflict with char $ac_func (); below.
26492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26493     <limits.h> exists even on freestanding compilers.  */
26494
26495 #ifdef __STDC__
26496 # include <limits.h>
26497 #else
26498 # include <assert.h>
26499 #endif
26500
26501 #undef $ac_func
26502
26503 /* Override any gcc2 internal prototype to avoid an error.  */
26504 #ifdef __cplusplus
26505 extern "C"
26506 {
26507 #endif
26508 /* We use char because int might match the return type of a gcc2
26509    builtin and then its argument prototype would still apply.  */
26510 char $ac_func ();
26511 /* The GNU C library defines this for functions which it implements
26512     to always fail with ENOSYS.  Some functions are actually named
26513     something starting with __ and the normal name is an alias.  */
26514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26515 choke me
26516 #else
26517 char (*f) () = $ac_func;
26518 #endif
26519 #ifdef __cplusplus
26520 }
26521 #endif
26522
26523 int
26524 main ()
26525 {
26526 return f != $ac_func;
26527   ;
26528   return 0;
26529 }
26530 _ACEOF
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533   (eval $ac_link) 2>conftest.er1
26534   ac_status=$?
26535   grep -v '^ *+' conftest.er1 >conftest.err
26536   rm -f conftest.er1
26537   cat conftest.err >&5
26538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539   (exit $ac_status); } &&
26540          { ac_try='test -z "$ac_c_werror_flag"
26541                          || test ! -s conftest.err'
26542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543   (eval $ac_try) 2>&5
26544   ac_status=$?
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); }; } &&
26547          { ac_try='test -s conftest$ac_exeext'
26548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549   (eval $ac_try) 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; }; then
26553   eval "$as_ac_var=yes"
26554 else
26555   echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558 eval "$as_ac_var=no"
26559 fi
26560 rm -f conftest.err conftest.$ac_objext \
26561       conftest$ac_exeext conftest.$ac_ext
26562 fi
26563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26565 if test `eval echo '${'$as_ac_var'}'` = yes; then
26566   cat >>confdefs.h <<_ACEOF
26567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26568 _ACEOF
26569
26570 else
26571   echo 'configure: cannot find needed function.'; exit 1
26572
26573 fi
26574 done
26575
26576
26577
26578 for ac_func in fchdir
26579 do
26580 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26581 echo "$as_me:$LINENO: checking for $ac_func" >&5
26582 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26583 if eval "test \"\${$as_ac_var+set}\" = set"; then
26584   echo $ECHO_N "(cached) $ECHO_C" >&6
26585 else
26586   cat >conftest.$ac_ext <<_ACEOF
26587 /* confdefs.h.  */
26588 _ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h.  */
26592 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26593    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26594 #define $ac_func innocuous_$ac_func
26595
26596 /* System header to define __stub macros and hopefully few prototypes,
26597     which can conflict with char $ac_func (); below.
26598     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26599     <limits.h> exists even on freestanding compilers.  */
26600
26601 #ifdef __STDC__
26602 # include <limits.h>
26603 #else
26604 # include <assert.h>
26605 #endif
26606
26607 #undef $ac_func
26608
26609 /* Override any gcc2 internal prototype to avoid an error.  */
26610 #ifdef __cplusplus
26611 extern "C"
26612 {
26613 #endif
26614 /* We use char because int might match the return type of a gcc2
26615    builtin and then its argument prototype would still apply.  */
26616 char $ac_func ();
26617 /* The GNU C library defines this for functions which it implements
26618     to always fail with ENOSYS.  Some functions are actually named
26619     something starting with __ and the normal name is an alias.  */
26620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26621 choke me
26622 #else
26623 char (*f) () = $ac_func;
26624 #endif
26625 #ifdef __cplusplus
26626 }
26627 #endif
26628
26629 int
26630 main ()
26631 {
26632 return f != $ac_func;
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 rm -f conftest.$ac_objext conftest$ac_exeext
26638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26639   (eval $ac_link) 2>conftest.er1
26640   ac_status=$?
26641   grep -v '^ *+' conftest.er1 >conftest.err
26642   rm -f conftest.er1
26643   cat conftest.err >&5
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); } &&
26646          { ac_try='test -z "$ac_c_werror_flag"
26647                          || test ! -s conftest.err'
26648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26649   (eval $ac_try) 2>&5
26650   ac_status=$?
26651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); }; } &&
26653          { ac_try='test -s conftest$ac_exeext'
26654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26655   (eval $ac_try) 2>&5
26656   ac_status=$?
26657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26658   (exit $ac_status); }; }; then
26659   eval "$as_ac_var=yes"
26660 else
26661   echo "$as_me: failed program was:" >&5
26662 sed 's/^/| /' conftest.$ac_ext >&5
26663
26664 eval "$as_ac_var=no"
26665 fi
26666 rm -f conftest.err conftest.$ac_objext \
26667       conftest$ac_exeext conftest.$ac_ext
26668 fi
26669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26670 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26671 if test `eval echo '${'$as_ac_var'}'` = yes; then
26672   cat >>confdefs.h <<_ACEOF
26673 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26674 _ACEOF
26675  cat >>confdefs.h <<\_ACEOF
26676 #define HAVE_FCHDIR 1
26677 _ACEOF
26678
26679 fi
26680 done
26681
26682
26683 for ac_func in strtoll
26684 do
26685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26686 echo "$as_me:$LINENO: checking for $ac_func" >&5
26687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26688 if eval "test \"\${$as_ac_var+set}\" = set"; then
26689   echo $ECHO_N "(cached) $ECHO_C" >&6
26690 else
26691   cat >conftest.$ac_ext <<_ACEOF
26692 /* confdefs.h.  */
26693 _ACEOF
26694 cat confdefs.h >>conftest.$ac_ext
26695 cat >>conftest.$ac_ext <<_ACEOF
26696 /* end confdefs.h.  */
26697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26698    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26699 #define $ac_func innocuous_$ac_func
26700
26701 /* System header to define __stub macros and hopefully few prototypes,
26702     which can conflict with char $ac_func (); below.
26703     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26704     <limits.h> exists even on freestanding compilers.  */
26705
26706 #ifdef __STDC__
26707 # include <limits.h>
26708 #else
26709 # include <assert.h>
26710 #endif
26711
26712 #undef $ac_func
26713
26714 /* Override any gcc2 internal prototype to avoid an error.  */
26715 #ifdef __cplusplus
26716 extern "C"
26717 {
26718 #endif
26719 /* We use char because int might match the return type of a gcc2
26720    builtin and then its argument prototype would still apply.  */
26721 char $ac_func ();
26722 /* The GNU C library defines this for functions which it implements
26723     to always fail with ENOSYS.  Some functions are actually named
26724     something starting with __ and the normal name is an alias.  */
26725 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26726 choke me
26727 #else
26728 char (*f) () = $ac_func;
26729 #endif
26730 #ifdef __cplusplus
26731 }
26732 #endif
26733
26734 int
26735 main ()
26736 {
26737 return f != $ac_func;
26738   ;
26739   return 0;
26740 }
26741 _ACEOF
26742 rm -f conftest.$ac_objext conftest$ac_exeext
26743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26744   (eval $ac_link) 2>conftest.er1
26745   ac_status=$?
26746   grep -v '^ *+' conftest.er1 >conftest.err
26747   rm -f conftest.er1
26748   cat conftest.err >&5
26749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750   (exit $ac_status); } &&
26751          { ac_try='test -z "$ac_c_werror_flag"
26752                          || test ! -s conftest.err'
26753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26754   (eval $ac_try) 2>&5
26755   ac_status=$?
26756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26757   (exit $ac_status); }; } &&
26758          { ac_try='test -s conftest$ac_exeext'
26759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26760   (eval $ac_try) 2>&5
26761   ac_status=$?
26762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763   (exit $ac_status); }; }; then
26764   eval "$as_ac_var=yes"
26765 else
26766   echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769 eval "$as_ac_var=no"
26770 fi
26771 rm -f conftest.err conftest.$ac_objext \
26772       conftest$ac_exeext conftest.$ac_ext
26773 fi
26774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26776 if test `eval echo '${'$as_ac_var'}'` = yes; then
26777   cat >>confdefs.h <<_ACEOF
26778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26779 _ACEOF
26780  cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_STRTOLL 1
26782 _ACEOF
26783
26784 fi
26785 done
26786
26787
26788 for ac_func in posix_fadvise
26789 do
26790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26791 echo "$as_me:$LINENO: checking for $ac_func" >&5
26792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26793 if eval "test \"\${$as_ac_var+set}\" = set"; then
26794   echo $ECHO_N "(cached) $ECHO_C" >&6
26795 else
26796   cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26804 #define $ac_func innocuous_$ac_func
26805
26806 /* System header to define __stub macros and hopefully few prototypes,
26807     which can conflict with char $ac_func (); below.
26808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26809     <limits.h> exists even on freestanding compilers.  */
26810
26811 #ifdef __STDC__
26812 # include <limits.h>
26813 #else
26814 # include <assert.h>
26815 #endif
26816
26817 #undef $ac_func
26818
26819 /* Override any gcc2 internal prototype to avoid an error.  */
26820 #ifdef __cplusplus
26821 extern "C"
26822 {
26823 #endif
26824 /* We use char because int might match the return type of a gcc2
26825    builtin and then its argument prototype would still apply.  */
26826 char $ac_func ();
26827 /* The GNU C library defines this for functions which it implements
26828     to always fail with ENOSYS.  Some functions are actually named
26829     something starting with __ and the normal name is an alias.  */
26830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26831 choke me
26832 #else
26833 char (*f) () = $ac_func;
26834 #endif
26835 #ifdef __cplusplus
26836 }
26837 #endif
26838
26839 int
26840 main ()
26841 {
26842 return f != $ac_func;
26843   ;
26844   return 0;
26845 }
26846 _ACEOF
26847 rm -f conftest.$ac_objext conftest$ac_exeext
26848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26849   (eval $ac_link) 2>conftest.er1
26850   ac_status=$?
26851   grep -v '^ *+' conftest.er1 >conftest.err
26852   rm -f conftest.er1
26853   cat conftest.err >&5
26854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26855   (exit $ac_status); } &&
26856          { ac_try='test -z "$ac_c_werror_flag"
26857                          || test ! -s conftest.err'
26858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859   (eval $ac_try) 2>&5
26860   ac_status=$?
26861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862   (exit $ac_status); }; } &&
26863          { ac_try='test -s conftest$ac_exeext'
26864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26865   (eval $ac_try) 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; }; then
26869   eval "$as_ac_var=yes"
26870 else
26871   echo "$as_me: failed program was:" >&5
26872 sed 's/^/| /' conftest.$ac_ext >&5
26873
26874 eval "$as_ac_var=no"
26875 fi
26876 rm -f conftest.err conftest.$ac_objext \
26877       conftest$ac_exeext conftest.$ac_ext
26878 fi
26879 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26880 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26881 if test `eval echo '${'$as_ac_var'}'` = yes; then
26882   cat >>confdefs.h <<_ACEOF
26883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26884 _ACEOF
26885
26886 fi
26887 done
26888
26889
26890 for ac_func in fdatasync
26891 do
26892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26893 echo "$as_me:$LINENO: checking for $ac_func" >&5
26894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26895 if eval "test \"\${$as_ac_var+set}\" = set"; then
26896   echo $ECHO_N "(cached) $ECHO_C" >&6
26897 else
26898   cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h.  */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h.  */
26904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26906 #define $ac_func innocuous_$ac_func
26907
26908 /* System header to define __stub macros and hopefully few prototypes,
26909     which can conflict with char $ac_func (); below.
26910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26911     <limits.h> exists even on freestanding compilers.  */
26912
26913 #ifdef __STDC__
26914 # include <limits.h>
26915 #else
26916 # include <assert.h>
26917 #endif
26918
26919 #undef $ac_func
26920
26921 /* Override any gcc2 internal prototype to avoid an error.  */
26922 #ifdef __cplusplus
26923 extern "C"
26924 {
26925 #endif
26926 /* We use char because int might match the return type of a gcc2
26927    builtin and then its argument prototype would still apply.  */
26928 char $ac_func ();
26929 /* The GNU C library defines this for functions which it implements
26930     to always fail with ENOSYS.  Some functions are actually named
26931     something starting with __ and the normal name is an alias.  */
26932 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26933 choke me
26934 #else
26935 char (*f) () = $ac_func;
26936 #endif
26937 #ifdef __cplusplus
26938 }
26939 #endif
26940
26941 int
26942 main ()
26943 {
26944 return f != $ac_func;
26945   ;
26946   return 0;
26947 }
26948 _ACEOF
26949 rm -f conftest.$ac_objext conftest$ac_exeext
26950 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26951   (eval $ac_link) 2>conftest.er1
26952   ac_status=$?
26953   grep -v '^ *+' conftest.er1 >conftest.err
26954   rm -f conftest.er1
26955   cat conftest.err >&5
26956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957   (exit $ac_status); } &&
26958          { ac_try='test -z "$ac_c_werror_flag"
26959                          || test ! -s conftest.err'
26960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961   (eval $ac_try) 2>&5
26962   ac_status=$?
26963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964   (exit $ac_status); }; } &&
26965          { ac_try='test -s conftest$ac_exeext'
26966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26967   (eval $ac_try) 2>&5
26968   ac_status=$?
26969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26970   (exit $ac_status); }; }; then
26971   eval "$as_ac_var=yes"
26972 else
26973   echo "$as_me: failed program was:" >&5
26974 sed 's/^/| /' conftest.$ac_ext >&5
26975
26976 eval "$as_ac_var=no"
26977 fi
26978 rm -f conftest.err conftest.$ac_objext \
26979       conftest$ac_exeext conftest.$ac_ext
26980 fi
26981 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26982 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26983 if test `eval echo '${'$as_ac_var'}'` = yes; then
26984   cat >>confdefs.h <<_ACEOF
26985 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26986 _ACEOF
26987
26988 fi
26989 done
26990
26991
26992
26993 for ac_func in chflags
26994 do
26995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26996 echo "$as_me:$LINENO: checking for $ac_func" >&5
26997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26998 if eval "test \"\${$as_ac_var+set}\" = set"; then
26999   echo $ECHO_N "(cached) $ECHO_C" >&6
27000 else
27001   cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27008    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27009 #define $ac_func innocuous_$ac_func
27010
27011 /* System header to define __stub macros and hopefully few prototypes,
27012     which can conflict with char $ac_func (); below.
27013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27014     <limits.h> exists even on freestanding compilers.  */
27015
27016 #ifdef __STDC__
27017 # include <limits.h>
27018 #else
27019 # include <assert.h>
27020 #endif
27021
27022 #undef $ac_func
27023
27024 /* Override any gcc2 internal prototype to avoid an error.  */
27025 #ifdef __cplusplus
27026 extern "C"
27027 {
27028 #endif
27029 /* We use char because int might match the return type of a gcc2
27030    builtin and then its argument prototype would still apply.  */
27031 char $ac_func ();
27032 /* The GNU C library defines this for functions which it implements
27033     to always fail with ENOSYS.  Some functions are actually named
27034     something starting with __ and the normal name is an alias.  */
27035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27036 choke me
27037 #else
27038 char (*f) () = $ac_func;
27039 #endif
27040 #ifdef __cplusplus
27041 }
27042 #endif
27043
27044 int
27045 main ()
27046 {
27047 return f != $ac_func;
27048   ;
27049   return 0;
27050 }
27051 _ACEOF
27052 rm -f conftest.$ac_objext conftest$ac_exeext
27053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27054   (eval $ac_link) 2>conftest.er1
27055   ac_status=$?
27056   grep -v '^ *+' conftest.er1 >conftest.err
27057   rm -f conftest.er1
27058   cat conftest.err >&5
27059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060   (exit $ac_status); } &&
27061          { ac_try='test -z "$ac_c_werror_flag"
27062                          || test ! -s conftest.err'
27063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27064   (eval $ac_try) 2>&5
27065   ac_status=$?
27066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27067   (exit $ac_status); }; } &&
27068          { ac_try='test -s conftest$ac_exeext'
27069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27070   (eval $ac_try) 2>&5
27071   ac_status=$?
27072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27073   (exit $ac_status); }; }; then
27074   eval "$as_ac_var=yes"
27075 else
27076   echo "$as_me: failed program was:" >&5
27077 sed 's/^/| /' conftest.$ac_ext >&5
27078
27079 eval "$as_ac_var=no"
27080 fi
27081 rm -f conftest.err conftest.$ac_objext \
27082       conftest$ac_exeext conftest.$ac_ext
27083 fi
27084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27085 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27086 if test `eval echo '${'$as_ac_var'}'` = yes; then
27087   cat >>confdefs.h <<_ACEOF
27088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27089 _ACEOF
27090
27091 fi
27092 done
27093
27094
27095
27096
27097
27098
27099 for ac_func in snprintf vsnprintf gethostid fseeko
27100 do
27101 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27102 echo "$as_me:$LINENO: checking for $ac_func" >&5
27103 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27104 if eval "test \"\${$as_ac_var+set}\" = set"; then
27105   echo $ECHO_N "(cached) $ECHO_C" >&6
27106 else
27107   cat >conftest.$ac_ext <<_ACEOF
27108 /* confdefs.h.  */
27109 _ACEOF
27110 cat confdefs.h >>conftest.$ac_ext
27111 cat >>conftest.$ac_ext <<_ACEOF
27112 /* end confdefs.h.  */
27113 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27114    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27115 #define $ac_func innocuous_$ac_func
27116
27117 /* System header to define __stub macros and hopefully few prototypes,
27118     which can conflict with char $ac_func (); below.
27119     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27120     <limits.h> exists even on freestanding compilers.  */
27121
27122 #ifdef __STDC__
27123 # include <limits.h>
27124 #else
27125 # include <assert.h>
27126 #endif
27127
27128 #undef $ac_func
27129
27130 /* Override any gcc2 internal prototype to avoid an error.  */
27131 #ifdef __cplusplus
27132 extern "C"
27133 {
27134 #endif
27135 /* We use char because int might match the return type of a gcc2
27136    builtin and then its argument prototype would still apply.  */
27137 char $ac_func ();
27138 /* The GNU C library defines this for functions which it implements
27139     to always fail with ENOSYS.  Some functions are actually named
27140     something starting with __ and the normal name is an alias.  */
27141 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27142 choke me
27143 #else
27144 char (*f) () = $ac_func;
27145 #endif
27146 #ifdef __cplusplus
27147 }
27148 #endif
27149
27150 int
27151 main ()
27152 {
27153 return f != $ac_func;
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext conftest$ac_exeext
27159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27160   (eval $ac_link) 2>conftest.er1
27161   ac_status=$?
27162   grep -v '^ *+' conftest.er1 >conftest.err
27163   rm -f conftest.er1
27164   cat conftest.err >&5
27165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27166   (exit $ac_status); } &&
27167          { ac_try='test -z "$ac_c_werror_flag"
27168                          || test ! -s conftest.err'
27169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27170   (eval $ac_try) 2>&5
27171   ac_status=$?
27172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27173   (exit $ac_status); }; } &&
27174          { ac_try='test -s conftest$ac_exeext'
27175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27176   (eval $ac_try) 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; }; then
27180   eval "$as_ac_var=yes"
27181 else
27182   echo "$as_me: failed program was:" >&5
27183 sed 's/^/| /' conftest.$ac_ext >&5
27184
27185 eval "$as_ac_var=no"
27186 fi
27187 rm -f conftest.err conftest.$ac_objext \
27188       conftest$ac_exeext conftest.$ac_ext
27189 fi
27190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27192 if test `eval echo '${'$as_ac_var'}'` = yes; then
27193   cat >>confdefs.h <<_ACEOF
27194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27195 _ACEOF
27196
27197 fi
27198 done
27199
27200
27201 echo "$as_me:$LINENO: checking for va_copy" >&5
27202 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
27203 if test "${ba_cv_va_copy+set}" = set; then
27204   echo $ECHO_N "(cached) $ECHO_C" >&6
27205 else
27206   cat >conftest.$ac_ext <<_ACEOF
27207 /* confdefs.h.  */
27208 _ACEOF
27209 cat confdefs.h >>conftest.$ac_ext
27210 cat >>conftest.$ac_ext <<_ACEOF
27211 /* end confdefs.h.  */
27212
27213 #include <stdarg.h>
27214 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27215 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27216
27217 int
27218 main ()
27219 {
27220 call_use_va_copy(1,2,3)
27221   ;
27222   return 0;
27223 }
27224 _ACEOF
27225 rm -f conftest.$ac_objext conftest$ac_exeext
27226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27227   (eval $ac_link) 2>conftest.er1
27228   ac_status=$?
27229   grep -v '^ *+' conftest.er1 >conftest.err
27230   rm -f conftest.er1
27231   cat conftest.err >&5
27232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233   (exit $ac_status); } &&
27234          { ac_try='test -z "$ac_c_werror_flag"
27235                          || test ! -s conftest.err'
27236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27237   (eval $ac_try) 2>&5
27238   ac_status=$?
27239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27240   (exit $ac_status); }; } &&
27241          { ac_try='test -s conftest$ac_exeext'
27242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27243   (eval $ac_try) 2>&5
27244   ac_status=$?
27245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27246   (exit $ac_status); }; }; then
27247   ba_cv_va_copy=yes
27248 else
27249   echo "$as_me: failed program was:" >&5
27250 sed 's/^/| /' conftest.$ac_ext >&5
27251
27252 ba_cv_va_copy=no
27253 fi
27254 rm -f conftest.err conftest.$ac_objext \
27255       conftest$ac_exeext conftest.$ac_ext
27256 fi
27257 echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27258 echo "${ECHO_T}$ba_cv_va_copy" >&6
27259 test $ba_cv_va_copy = yes &&
27260 cat >>confdefs.h <<\_ACEOF
27261 #define HAVE_VA_COPY 1
27262 _ACEOF
27263
27264
27265
27266
27267
27268
27269
27270 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27271 do
27272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27273 echo "$as_me:$LINENO: checking for $ac_func" >&5
27274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27275 if eval "test \"\${$as_ac_var+set}\" = set"; then
27276   echo $ECHO_N "(cached) $ECHO_C" >&6
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27286 #define $ac_func innocuous_$ac_func
27287
27288 /* System header to define __stub macros and hopefully few prototypes,
27289     which can conflict with char $ac_func (); below.
27290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27291     <limits.h> exists even on freestanding compilers.  */
27292
27293 #ifdef __STDC__
27294 # include <limits.h>
27295 #else
27296 # include <assert.h>
27297 #endif
27298
27299 #undef $ac_func
27300
27301 /* Override any gcc2 internal prototype to avoid an error.  */
27302 #ifdef __cplusplus
27303 extern "C"
27304 {
27305 #endif
27306 /* We use char because int might match the return type of a gcc2
27307    builtin and then its argument prototype would still apply.  */
27308 char $ac_func ();
27309 /* The GNU C library defines this for functions which it implements
27310     to always fail with ENOSYS.  Some functions are actually named
27311     something starting with __ and the normal name is an alias.  */
27312 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27313 choke me
27314 #else
27315 char (*f) () = $ac_func;
27316 #endif
27317 #ifdef __cplusplus
27318 }
27319 #endif
27320
27321 int
27322 main ()
27323 {
27324 return f != $ac_func;
27325   ;
27326   return 0;
27327 }
27328 _ACEOF
27329 rm -f conftest.$ac_objext conftest$ac_exeext
27330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27331   (eval $ac_link) 2>conftest.er1
27332   ac_status=$?
27333   grep -v '^ *+' conftest.er1 >conftest.err
27334   rm -f conftest.er1
27335   cat conftest.err >&5
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); } &&
27338          { ac_try='test -z "$ac_c_werror_flag"
27339                          || test ! -s conftest.err'
27340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27341   (eval $ac_try) 2>&5
27342   ac_status=$?
27343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344   (exit $ac_status); }; } &&
27345          { ac_try='test -s conftest$ac_exeext'
27346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27347   (eval $ac_try) 2>&5
27348   ac_status=$?
27349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27350   (exit $ac_status); }; }; then
27351   eval "$as_ac_var=yes"
27352 else
27353   echo "$as_me: failed program was:" >&5
27354 sed 's/^/| /' conftest.$ac_ext >&5
27355
27356 eval "$as_ac_var=no"
27357 fi
27358 rm -f conftest.err conftest.$ac_objext \
27359       conftest$ac_exeext conftest.$ac_ext
27360 fi
27361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27362 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27363 if test `eval echo '${'$as_ac_var'}'` = yes; then
27364   cat >>confdefs.h <<_ACEOF
27365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27366 _ACEOF
27367
27368 fi
27369 done
27370
27371
27372 # If resolver functions are not in libc check for -lnsl or -lresolv.
27373 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27374 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
27375 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27376   echo $ECHO_N "(cached) $ECHO_C" >&6
27377 else
27378   cat >conftest.$ac_ext <<_ACEOF
27379 /* confdefs.h.  */
27380 _ACEOF
27381 cat confdefs.h >>conftest.$ac_ext
27382 cat >>conftest.$ac_ext <<_ACEOF
27383 /* end confdefs.h.  */
27384 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27386 #define gethostbyname_r innocuous_gethostbyname_r
27387
27388 /* System header to define __stub macros and hopefully few prototypes,
27389     which can conflict with char gethostbyname_r (); below.
27390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27391     <limits.h> exists even on freestanding compilers.  */
27392
27393 #ifdef __STDC__
27394 # include <limits.h>
27395 #else
27396 # include <assert.h>
27397 #endif
27398
27399 #undef gethostbyname_r
27400
27401 /* Override any gcc2 internal prototype to avoid an error.  */
27402 #ifdef __cplusplus
27403 extern "C"
27404 {
27405 #endif
27406 /* We use char because int might match the return type of a gcc2
27407    builtin and then its argument prototype would still apply.  */
27408 char gethostbyname_r ();
27409 /* The GNU C library defines this for functions which it implements
27410     to always fail with ENOSYS.  Some functions are actually named
27411     something starting with __ and the normal name is an alias.  */
27412 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
27413 choke me
27414 #else
27415 char (*f) () = gethostbyname_r;
27416 #endif
27417 #ifdef __cplusplus
27418 }
27419 #endif
27420
27421 int
27422 main ()
27423 {
27424 return f != gethostbyname_r;
27425   ;
27426   return 0;
27427 }
27428 _ACEOF
27429 rm -f conftest.$ac_objext conftest$ac_exeext
27430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27431   (eval $ac_link) 2>conftest.er1
27432   ac_status=$?
27433   grep -v '^ *+' conftest.er1 >conftest.err
27434   rm -f conftest.er1
27435   cat conftest.err >&5
27436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27437   (exit $ac_status); } &&
27438          { ac_try='test -z "$ac_c_werror_flag"
27439                          || test ! -s conftest.err'
27440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27441   (eval $ac_try) 2>&5
27442   ac_status=$?
27443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27444   (exit $ac_status); }; } &&
27445          { ac_try='test -s conftest$ac_exeext'
27446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27447   (eval $ac_try) 2>&5
27448   ac_status=$?
27449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27450   (exit $ac_status); }; }; then
27451   ac_cv_func_gethostbyname_r=yes
27452 else
27453   echo "$as_me: failed program was:" >&5
27454 sed 's/^/| /' conftest.$ac_ext >&5
27455
27456 ac_cv_func_gethostbyname_r=no
27457 fi
27458 rm -f conftest.err conftest.$ac_objext \
27459       conftest$ac_exeext conftest.$ac_ext
27460 fi
27461 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27462 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
27463 if test $ac_cv_func_gethostbyname_r = yes; then
27464   echo "$as_me:$LINENO: result: using libc's resolver" >&5
27465 echo "${ECHO_T}using libc's resolver" >&6
27466 else
27467
27468 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27469 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
27470 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27471   echo $ECHO_N "(cached) $ECHO_C" >&6
27472 else
27473   ac_check_lib_save_LIBS=$LIBS
27474 LIBS="-lnsl  $LIBS"
27475 cat >conftest.$ac_ext <<_ACEOF
27476 /* confdefs.h.  */
27477 _ACEOF
27478 cat confdefs.h >>conftest.$ac_ext
27479 cat >>conftest.$ac_ext <<_ACEOF
27480 /* end confdefs.h.  */
27481
27482 /* Override any gcc2 internal prototype to avoid an error.  */
27483 #ifdef __cplusplus
27484 extern "C"
27485 #endif
27486 /* We use char because int might match the return type of a gcc2
27487    builtin and then its argument prototype would still apply.  */
27488 char gethostbyname_r ();
27489 int
27490 main ()
27491 {
27492 gethostbyname_r ();
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext conftest$ac_exeext
27498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27499   (eval $ac_link) 2>conftest.er1
27500   ac_status=$?
27501   grep -v '^ *+' conftest.er1 >conftest.err
27502   rm -f conftest.er1
27503   cat conftest.err >&5
27504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27505   (exit $ac_status); } &&
27506          { ac_try='test -z "$ac_c_werror_flag"
27507                          || test ! -s conftest.err'
27508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27509   (eval $ac_try) 2>&5
27510   ac_status=$?
27511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27512   (exit $ac_status); }; } &&
27513          { ac_try='test -s conftest$ac_exeext'
27514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27515   (eval $ac_try) 2>&5
27516   ac_status=$?
27517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27518   (exit $ac_status); }; }; then
27519   ac_cv_lib_nsl_gethostbyname_r=yes
27520 else
27521   echo "$as_me: failed program was:" >&5
27522 sed 's/^/| /' conftest.$ac_ext >&5
27523
27524 ac_cv_lib_nsl_gethostbyname_r=no
27525 fi
27526 rm -f conftest.err conftest.$ac_objext \
27527       conftest$ac_exeext conftest.$ac_ext
27528 LIBS=$ac_check_lib_save_LIBS
27529 fi
27530 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27531 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
27532 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27533   cat >>confdefs.h <<_ACEOF
27534 #define HAVE_LIBNSL 1
27535 _ACEOF
27536
27537   LIBS="-lnsl $LIBS"
27538
27539 fi
27540
27541
27542 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27543 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
27544 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27545   echo $ECHO_N "(cached) $ECHO_C" >&6
27546 else
27547   ac_check_lib_save_LIBS=$LIBS
27548 LIBS="-lresolv  $LIBS"
27549 cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555
27556 /* Override any gcc2 internal prototype to avoid an error.  */
27557 #ifdef __cplusplus
27558 extern "C"
27559 #endif
27560 /* We use char because int might match the return type of a gcc2
27561    builtin and then its argument prototype would still apply.  */
27562 char gethostbyname_r ();
27563 int
27564 main ()
27565 {
27566 gethostbyname_r ();
27567   ;
27568   return 0;
27569 }
27570 _ACEOF
27571 rm -f conftest.$ac_objext conftest$ac_exeext
27572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27573   (eval $ac_link) 2>conftest.er1
27574   ac_status=$?
27575   grep -v '^ *+' conftest.er1 >conftest.err
27576   rm -f conftest.er1
27577   cat conftest.err >&5
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } &&
27580          { ac_try='test -z "$ac_c_werror_flag"
27581                          || test ! -s conftest.err'
27582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27583   (eval $ac_try) 2>&5
27584   ac_status=$?
27585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27586   (exit $ac_status); }; } &&
27587          { ac_try='test -s conftest$ac_exeext'
27588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27589   (eval $ac_try) 2>&5
27590   ac_status=$?
27591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27592   (exit $ac_status); }; }; then
27593   ac_cv_lib_resolv_gethostbyname_r=yes
27594 else
27595   echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598 ac_cv_lib_resolv_gethostbyname_r=no
27599 fi
27600 rm -f conftest.err conftest.$ac_objext \
27601       conftest$ac_exeext conftest.$ac_ext
27602 LIBS=$ac_check_lib_save_LIBS
27603 fi
27604 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27605 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
27606 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27607   cat >>confdefs.h <<_ACEOF
27608 #define HAVE_LIBRESOLV 1
27609 _ACEOF
27610
27611   LIBS="-lresolv $LIBS"
27612
27613 fi
27614
27615 fi
27616
27617
27618
27619
27620
27621 for ac_func in inet_pton
27622 do
27623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27624 echo "$as_me:$LINENO: checking for $ac_func" >&5
27625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27626 if eval "test \"\${$as_ac_var+set}\" = set"; then
27627   echo $ECHO_N "(cached) $ECHO_C" >&6
27628 else
27629   cat >conftest.$ac_ext <<_ACEOF
27630 /* confdefs.h.  */
27631 _ACEOF
27632 cat confdefs.h >>conftest.$ac_ext
27633 cat >>conftest.$ac_ext <<_ACEOF
27634 /* end confdefs.h.  */
27635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27636    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27637 #define $ac_func innocuous_$ac_func
27638
27639 /* System header to define __stub macros and hopefully few prototypes,
27640     which can conflict with char $ac_func (); below.
27641     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27642     <limits.h> exists even on freestanding compilers.  */
27643
27644 #ifdef __STDC__
27645 # include <limits.h>
27646 #else
27647 # include <assert.h>
27648 #endif
27649
27650 #undef $ac_func
27651
27652 /* Override any gcc2 internal prototype to avoid an error.  */
27653 #ifdef __cplusplus
27654 extern "C"
27655 {
27656 #endif
27657 /* We use char because int might match the return type of a gcc2
27658    builtin and then its argument prototype would still apply.  */
27659 char $ac_func ();
27660 /* The GNU C library defines this for functions which it implements
27661     to always fail with ENOSYS.  Some functions are actually named
27662     something starting with __ and the normal name is an alias.  */
27663 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27664 choke me
27665 #else
27666 char (*f) () = $ac_func;
27667 #endif
27668 #ifdef __cplusplus
27669 }
27670 #endif
27671
27672 int
27673 main ()
27674 {
27675 return f != $ac_func;
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest.$ac_objext conftest$ac_exeext
27681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27682   (eval $ac_link) 2>conftest.er1
27683   ac_status=$?
27684   grep -v '^ *+' conftest.er1 >conftest.err
27685   rm -f conftest.er1
27686   cat conftest.err >&5
27687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688   (exit $ac_status); } &&
27689          { ac_try='test -z "$ac_c_werror_flag"
27690                          || test ! -s conftest.err'
27691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27692   (eval $ac_try) 2>&5
27693   ac_status=$?
27694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27695   (exit $ac_status); }; } &&
27696          { ac_try='test -s conftest$ac_exeext'
27697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27698   (eval $ac_try) 2>&5
27699   ac_status=$?
27700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27701   (exit $ac_status); }; }; then
27702   eval "$as_ac_var=yes"
27703 else
27704   echo "$as_me: failed program was:" >&5
27705 sed 's/^/| /' conftest.$ac_ext >&5
27706
27707 eval "$as_ac_var=no"
27708 fi
27709 rm -f conftest.err conftest.$ac_objext \
27710       conftest$ac_exeext conftest.$ac_ext
27711 fi
27712 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27713 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27714 if test `eval echo '${'$as_ac_var'}'` = yes; then
27715   cat >>confdefs.h <<_ACEOF
27716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27717 _ACEOF
27718  cat >>confdefs.h <<\_ACEOF
27719 #define HAVE_INET_PTON 1
27720 _ACEOF
27721
27722 fi
27723 done
27724
27725
27726 for ac_func in inet_ntop
27727 do
27728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27729 echo "$as_me:$LINENO: checking for $ac_func" >&5
27730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27731 if eval "test \"\${$as_ac_var+set}\" = set"; then
27732   echo $ECHO_N "(cached) $ECHO_C" >&6
27733 else
27734   cat >conftest.$ac_ext <<_ACEOF
27735 /* confdefs.h.  */
27736 _ACEOF
27737 cat confdefs.h >>conftest.$ac_ext
27738 cat >>conftest.$ac_ext <<_ACEOF
27739 /* end confdefs.h.  */
27740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27742 #define $ac_func innocuous_$ac_func
27743
27744 /* System header to define __stub macros and hopefully few prototypes,
27745     which can conflict with char $ac_func (); below.
27746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27747     <limits.h> exists even on freestanding compilers.  */
27748
27749 #ifdef __STDC__
27750 # include <limits.h>
27751 #else
27752 # include <assert.h>
27753 #endif
27754
27755 #undef $ac_func
27756
27757 /* Override any gcc2 internal prototype to avoid an error.  */
27758 #ifdef __cplusplus
27759 extern "C"
27760 {
27761 #endif
27762 /* We use char because int might match the return type of a gcc2
27763    builtin and then its argument prototype would still apply.  */
27764 char $ac_func ();
27765 /* The GNU C library defines this for functions which it implements
27766     to always fail with ENOSYS.  Some functions are actually named
27767     something starting with __ and the normal name is an alias.  */
27768 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27769 choke me
27770 #else
27771 char (*f) () = $ac_func;
27772 #endif
27773 #ifdef __cplusplus
27774 }
27775 #endif
27776
27777 int
27778 main ()
27779 {
27780 return f != $ac_func;
27781   ;
27782   return 0;
27783 }
27784 _ACEOF
27785 rm -f conftest.$ac_objext conftest$ac_exeext
27786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27787   (eval $ac_link) 2>conftest.er1
27788   ac_status=$?
27789   grep -v '^ *+' conftest.er1 >conftest.err
27790   rm -f conftest.er1
27791   cat conftest.err >&5
27792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27793   (exit $ac_status); } &&
27794          { ac_try='test -z "$ac_c_werror_flag"
27795                          || test ! -s conftest.err'
27796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27797   (eval $ac_try) 2>&5
27798   ac_status=$?
27799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27800   (exit $ac_status); }; } &&
27801          { ac_try='test -s conftest$ac_exeext'
27802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803   (eval $ac_try) 2>&5
27804   ac_status=$?
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); }; }; then
27807   eval "$as_ac_var=yes"
27808 else
27809   echo "$as_me: failed program was:" >&5
27810 sed 's/^/| /' conftest.$ac_ext >&5
27811
27812 eval "$as_ac_var=no"
27813 fi
27814 rm -f conftest.err conftest.$ac_objext \
27815       conftest$ac_exeext conftest.$ac_ext
27816 fi
27817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27818 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27819 if test `eval echo '${'$as_ac_var'}'` = yes; then
27820   cat >>confdefs.h <<_ACEOF
27821 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27822 _ACEOF
27823  cat >>confdefs.h <<\_ACEOF
27824 #define HAVE_INET_NTOP 1
27825 _ACEOF
27826
27827 fi
27828 done
27829
27830
27831 for ac_func in gethostbyname2
27832 do
27833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27834 echo "$as_me:$LINENO: checking for $ac_func" >&5
27835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27836 if eval "test \"\${$as_ac_var+set}\" = set"; then
27837   echo $ECHO_N "(cached) $ECHO_C" >&6
27838 else
27839   cat >conftest.$ac_ext <<_ACEOF
27840 /* confdefs.h.  */
27841 _ACEOF
27842 cat confdefs.h >>conftest.$ac_ext
27843 cat >>conftest.$ac_ext <<_ACEOF
27844 /* end confdefs.h.  */
27845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27847 #define $ac_func innocuous_$ac_func
27848
27849 /* System header to define __stub macros and hopefully few prototypes,
27850     which can conflict with char $ac_func (); below.
27851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27852     <limits.h> exists even on freestanding compilers.  */
27853
27854 #ifdef __STDC__
27855 # include <limits.h>
27856 #else
27857 # include <assert.h>
27858 #endif
27859
27860 #undef $ac_func
27861
27862 /* Override any gcc2 internal prototype to avoid an error.  */
27863 #ifdef __cplusplus
27864 extern "C"
27865 {
27866 #endif
27867 /* We use char because int might match the return type of a gcc2
27868    builtin and then its argument prototype would still apply.  */
27869 char $ac_func ();
27870 /* The GNU C library defines this for functions which it implements
27871     to always fail with ENOSYS.  Some functions are actually named
27872     something starting with __ and the normal name is an alias.  */
27873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27874 choke me
27875 #else
27876 char (*f) () = $ac_func;
27877 #endif
27878 #ifdef __cplusplus
27879 }
27880 #endif
27881
27882 int
27883 main ()
27884 {
27885 return f != $ac_func;
27886   ;
27887   return 0;
27888 }
27889 _ACEOF
27890 rm -f conftest.$ac_objext conftest$ac_exeext
27891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27892   (eval $ac_link) 2>conftest.er1
27893   ac_status=$?
27894   grep -v '^ *+' conftest.er1 >conftest.err
27895   rm -f conftest.er1
27896   cat conftest.err >&5
27897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898   (exit $ac_status); } &&
27899          { ac_try='test -z "$ac_c_werror_flag"
27900                          || test ! -s conftest.err'
27901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27902   (eval $ac_try) 2>&5
27903   ac_status=$?
27904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27905   (exit $ac_status); }; } &&
27906          { ac_try='test -s conftest$ac_exeext'
27907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27908   (eval $ac_try) 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); }; }; then
27912   eval "$as_ac_var=yes"
27913 else
27914   echo "$as_me: failed program was:" >&5
27915 sed 's/^/| /' conftest.$ac_ext >&5
27916
27917 eval "$as_ac_var=no"
27918 fi
27919 rm -f conftest.err conftest.$ac_objext \
27920       conftest$ac_exeext conftest.$ac_ext
27921 fi
27922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27924 if test `eval echo '${'$as_ac_var'}'` = yes; then
27925   cat >>confdefs.h <<_ACEOF
27926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27927 _ACEOF
27928  cat >>confdefs.h <<\_ACEOF
27929 #define HAVE_GETHOSTBYNAME2 1
27930 _ACEOF
27931
27932 fi
27933 done
27934
27935
27936 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27937 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
27938 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27939   echo $ECHO_N "(cached) $ECHO_C" >&6
27940 else
27941   cat >conftest.$ac_ext <<_ACEOF
27942 /* confdefs.h.  */
27943 _ACEOF
27944 cat confdefs.h >>conftest.$ac_ext
27945 cat >>conftest.$ac_ext <<_ACEOF
27946 /* end confdefs.h.  */
27947 #include <sys/socket.h>
27948 int
27949 main ()
27950 {
27951 struct sockaddr s; s.sa_len;
27952   ;
27953   return 0;
27954 }
27955 _ACEOF
27956 rm -f conftest.$ac_objext
27957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27958   (eval $ac_compile) 2>conftest.er1
27959   ac_status=$?
27960   grep -v '^ *+' conftest.er1 >conftest.err
27961   rm -f conftest.er1
27962   cat conftest.err >&5
27963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964   (exit $ac_status); } &&
27965          { ac_try='test -z "$ac_c_werror_flag"
27966                          || test ! -s conftest.err'
27967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27968   (eval $ac_try) 2>&5
27969   ac_status=$?
27970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971   (exit $ac_status); }; } &&
27972          { ac_try='test -s conftest.$ac_objext'
27973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27974   (eval $ac_try) 2>&5
27975   ac_status=$?
27976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27977   (exit $ac_status); }; }; then
27978   ac_cv_struct_sockaddr_sa_len=yes
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983 ac_cv_struct_sockaddr_sa_len=no
27984 fi
27985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27986 fi
27987 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27988 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
27989
27990  if test $ac_cv_struct_sockaddr_sa_len = yes; then
27991
27992 cat >>confdefs.h <<\_ACEOF
27993 #define HAVE_SA_LEN 1
27994 _ACEOF
27995
27996  fi
27997
27998
27999
28000
28001
28002 for ac_func in strftime
28003 do
28004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28005 echo "$as_me:$LINENO: checking for $ac_func" >&5
28006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28007 if eval "test \"\${$as_ac_var+set}\" = set"; then
28008   echo $ECHO_N "(cached) $ECHO_C" >&6
28009 else
28010   cat >conftest.$ac_ext <<_ACEOF
28011 /* confdefs.h.  */
28012 _ACEOF
28013 cat confdefs.h >>conftest.$ac_ext
28014 cat >>conftest.$ac_ext <<_ACEOF
28015 /* end confdefs.h.  */
28016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28018 #define $ac_func innocuous_$ac_func
28019
28020 /* System header to define __stub macros and hopefully few prototypes,
28021     which can conflict with char $ac_func (); below.
28022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28023     <limits.h> exists even on freestanding compilers.  */
28024
28025 #ifdef __STDC__
28026 # include <limits.h>
28027 #else
28028 # include <assert.h>
28029 #endif
28030
28031 #undef $ac_func
28032
28033 /* Override any gcc2 internal prototype to avoid an error.  */
28034 #ifdef __cplusplus
28035 extern "C"
28036 {
28037 #endif
28038 /* We use char because int might match the return type of a gcc2
28039    builtin and then its argument prototype would still apply.  */
28040 char $ac_func ();
28041 /* The GNU C library defines this for functions which it implements
28042     to always fail with ENOSYS.  Some functions are actually named
28043     something starting with __ and the normal name is an alias.  */
28044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28045 choke me
28046 #else
28047 char (*f) () = $ac_func;
28048 #endif
28049 #ifdef __cplusplus
28050 }
28051 #endif
28052
28053 int
28054 main ()
28055 {
28056 return f != $ac_func;
28057   ;
28058   return 0;
28059 }
28060 _ACEOF
28061 rm -f conftest.$ac_objext conftest$ac_exeext
28062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28063   (eval $ac_link) 2>conftest.er1
28064   ac_status=$?
28065   grep -v '^ *+' conftest.er1 >conftest.err
28066   rm -f conftest.er1
28067   cat conftest.err >&5
28068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28069   (exit $ac_status); } &&
28070          { ac_try='test -z "$ac_c_werror_flag"
28071                          || test ! -s conftest.err'
28072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28073   (eval $ac_try) 2>&5
28074   ac_status=$?
28075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076   (exit $ac_status); }; } &&
28077          { ac_try='test -s conftest$ac_exeext'
28078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28079   (eval $ac_try) 2>&5
28080   ac_status=$?
28081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28082   (exit $ac_status); }; }; then
28083   eval "$as_ac_var=yes"
28084 else
28085   echo "$as_me: failed program was:" >&5
28086 sed 's/^/| /' conftest.$ac_ext >&5
28087
28088 eval "$as_ac_var=no"
28089 fi
28090 rm -f conftest.err conftest.$ac_objext \
28091       conftest$ac_exeext conftest.$ac_ext
28092 fi
28093 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28094 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28095 if test `eval echo '${'$as_ac_var'}'` = yes; then
28096   cat >>confdefs.h <<_ACEOF
28097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28098 _ACEOF
28099
28100 else
28101   # strftime is in -lintl on SCO UNIX.
28102 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28103 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
28104 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28105   echo $ECHO_N "(cached) $ECHO_C" >&6
28106 else
28107   ac_check_lib_save_LIBS=$LIBS
28108 LIBS="-lintl  $LIBS"
28109 cat >conftest.$ac_ext <<_ACEOF
28110 /* confdefs.h.  */
28111 _ACEOF
28112 cat confdefs.h >>conftest.$ac_ext
28113 cat >>conftest.$ac_ext <<_ACEOF
28114 /* end confdefs.h.  */
28115
28116 /* Override any gcc2 internal prototype to avoid an error.  */
28117 #ifdef __cplusplus
28118 extern "C"
28119 #endif
28120 /* We use char because int might match the return type of a gcc2
28121    builtin and then its argument prototype would still apply.  */
28122 char strftime ();
28123 int
28124 main ()
28125 {
28126 strftime ();
28127   ;
28128   return 0;
28129 }
28130 _ACEOF
28131 rm -f conftest.$ac_objext conftest$ac_exeext
28132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28133   (eval $ac_link) 2>conftest.er1
28134   ac_status=$?
28135   grep -v '^ *+' conftest.er1 >conftest.err
28136   rm -f conftest.er1
28137   cat conftest.err >&5
28138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28139   (exit $ac_status); } &&
28140          { ac_try='test -z "$ac_c_werror_flag"
28141                          || test ! -s conftest.err'
28142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28143   (eval $ac_try) 2>&5
28144   ac_status=$?
28145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146   (exit $ac_status); }; } &&
28147          { ac_try='test -s conftest$ac_exeext'
28148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149   (eval $ac_try) 2>&5
28150   ac_status=$?
28151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152   (exit $ac_status); }; }; then
28153   ac_cv_lib_intl_strftime=yes
28154 else
28155   echo "$as_me: failed program was:" >&5
28156 sed 's/^/| /' conftest.$ac_ext >&5
28157
28158 ac_cv_lib_intl_strftime=no
28159 fi
28160 rm -f conftest.err conftest.$ac_objext \
28161       conftest$ac_exeext conftest.$ac_ext
28162 LIBS=$ac_check_lib_save_LIBS
28163 fi
28164 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28165 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
28166 if test $ac_cv_lib_intl_strftime = yes; then
28167   cat >>confdefs.h <<\_ACEOF
28168 #define HAVE_STRFTIME 1
28169 _ACEOF
28170
28171 LIBS="-lintl $LIBS"
28172 fi
28173
28174 fi
28175 done
28176
28177
28178 for ac_func in vprintf
28179 do
28180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28181 echo "$as_me:$LINENO: checking for $ac_func" >&5
28182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28183 if eval "test \"\${$as_ac_var+set}\" = set"; then
28184   echo $ECHO_N "(cached) $ECHO_C" >&6
28185 else
28186   cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28194 #define $ac_func innocuous_$ac_func
28195
28196 /* System header to define __stub macros and hopefully few prototypes,
28197     which can conflict with char $ac_func (); below.
28198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28199     <limits.h> exists even on freestanding compilers.  */
28200
28201 #ifdef __STDC__
28202 # include <limits.h>
28203 #else
28204 # include <assert.h>
28205 #endif
28206
28207 #undef $ac_func
28208
28209 /* Override any gcc2 internal prototype to avoid an error.  */
28210 #ifdef __cplusplus
28211 extern "C"
28212 {
28213 #endif
28214 /* We use char because int might match the return type of a gcc2
28215    builtin and then its argument prototype would still apply.  */
28216 char $ac_func ();
28217 /* The GNU C library defines this for functions which it implements
28218     to always fail with ENOSYS.  Some functions are actually named
28219     something starting with __ and the normal name is an alias.  */
28220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28221 choke me
28222 #else
28223 char (*f) () = $ac_func;
28224 #endif
28225 #ifdef __cplusplus
28226 }
28227 #endif
28228
28229 int
28230 main ()
28231 {
28232 return f != $ac_func;
28233   ;
28234   return 0;
28235 }
28236 _ACEOF
28237 rm -f conftest.$ac_objext conftest$ac_exeext
28238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28239   (eval $ac_link) 2>conftest.er1
28240   ac_status=$?
28241   grep -v '^ *+' conftest.er1 >conftest.err
28242   rm -f conftest.er1
28243   cat conftest.err >&5
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); } &&
28246          { ac_try='test -z "$ac_c_werror_flag"
28247                          || test ! -s conftest.err'
28248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28249   (eval $ac_try) 2>&5
28250   ac_status=$?
28251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28252   (exit $ac_status); }; } &&
28253          { ac_try='test -s conftest$ac_exeext'
28254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28255   (eval $ac_try) 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; }; then
28259   eval "$as_ac_var=yes"
28260 else
28261   echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28263
28264 eval "$as_ac_var=no"
28265 fi
28266 rm -f conftest.err conftest.$ac_objext \
28267       conftest$ac_exeext conftest.$ac_ext
28268 fi
28269 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28270 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28271 if test `eval echo '${'$as_ac_var'}'` = yes; then
28272   cat >>confdefs.h <<_ACEOF
28273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28274 _ACEOF
28275
28276 echo "$as_me:$LINENO: checking for _doprnt" >&5
28277 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
28278 if test "${ac_cv_func__doprnt+set}" = set; then
28279   echo $ECHO_N "(cached) $ECHO_C" >&6
28280 else
28281   cat >conftest.$ac_ext <<_ACEOF
28282 /* confdefs.h.  */
28283 _ACEOF
28284 cat confdefs.h >>conftest.$ac_ext
28285 cat >>conftest.$ac_ext <<_ACEOF
28286 /* end confdefs.h.  */
28287 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28289 #define _doprnt innocuous__doprnt
28290
28291 /* System header to define __stub macros and hopefully few prototypes,
28292     which can conflict with char _doprnt (); below.
28293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28294     <limits.h> exists even on freestanding compilers.  */
28295
28296 #ifdef __STDC__
28297 # include <limits.h>
28298 #else
28299 # include <assert.h>
28300 #endif
28301
28302 #undef _doprnt
28303
28304 /* Override any gcc2 internal prototype to avoid an error.  */
28305 #ifdef __cplusplus
28306 extern "C"
28307 {
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 _doprnt ();
28312 /* The GNU C library defines this for functions which it implements
28313     to always fail with ENOSYS.  Some functions are actually named
28314     something starting with __ and the normal name is an alias.  */
28315 #if defined (__stub__doprnt) || defined (__stub____doprnt)
28316 choke me
28317 #else
28318 char (*f) () = _doprnt;
28319 #endif
28320 #ifdef __cplusplus
28321 }
28322 #endif
28323
28324 int
28325 main ()
28326 {
28327 return f != _doprnt;
28328   ;
28329   return 0;
28330 }
28331 _ACEOF
28332 rm -f conftest.$ac_objext conftest$ac_exeext
28333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28334   (eval $ac_link) 2>conftest.er1
28335   ac_status=$?
28336   grep -v '^ *+' conftest.er1 >conftest.err
28337   rm -f conftest.er1
28338   cat conftest.err >&5
28339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28340   (exit $ac_status); } &&
28341          { ac_try='test -z "$ac_c_werror_flag"
28342                          || test ! -s conftest.err'
28343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28344   (eval $ac_try) 2>&5
28345   ac_status=$?
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); }; } &&
28348          { ac_try='test -s conftest$ac_exeext'
28349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28350   (eval $ac_try) 2>&5
28351   ac_status=$?
28352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28353   (exit $ac_status); }; }; then
28354   ac_cv_func__doprnt=yes
28355 else
28356   echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.$ac_ext >&5
28358
28359 ac_cv_func__doprnt=no
28360 fi
28361 rm -f conftest.err conftest.$ac_objext \
28362       conftest$ac_exeext conftest.$ac_ext
28363 fi
28364 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28365 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
28366 if test $ac_cv_func__doprnt = yes; then
28367
28368 cat >>confdefs.h <<\_ACEOF
28369 #define HAVE_DOPRNT 1
28370 _ACEOF
28371
28372 fi
28373
28374 fi
28375 done
28376
28377
28378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28379 # for constant arguments.  Useless!
28380 echo "$as_me:$LINENO: checking for working alloca.h" >&5
28381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
28382 if test "${ac_cv_working_alloca_h+set}" = set; then
28383   echo $ECHO_N "(cached) $ECHO_C" >&6
28384 else
28385   cat >conftest.$ac_ext <<_ACEOF
28386 /* confdefs.h.  */
28387 _ACEOF
28388 cat confdefs.h >>conftest.$ac_ext
28389 cat >>conftest.$ac_ext <<_ACEOF
28390 /* end confdefs.h.  */
28391 #include <alloca.h>
28392 int
28393 main ()
28394 {
28395 char *p = (char *) alloca (2 * sizeof (int));
28396   ;
28397   return 0;
28398 }
28399 _ACEOF
28400 rm -f conftest.$ac_objext conftest$ac_exeext
28401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28402   (eval $ac_link) 2>conftest.er1
28403   ac_status=$?
28404   grep -v '^ *+' conftest.er1 >conftest.err
28405   rm -f conftest.er1
28406   cat conftest.err >&5
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); } &&
28409          { ac_try='test -z "$ac_c_werror_flag"
28410                          || test ! -s conftest.err'
28411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28412   (eval $ac_try) 2>&5
28413   ac_status=$?
28414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28415   (exit $ac_status); }; } &&
28416          { ac_try='test -s conftest$ac_exeext'
28417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28418   (eval $ac_try) 2>&5
28419   ac_status=$?
28420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421   (exit $ac_status); }; }; then
28422   ac_cv_working_alloca_h=yes
28423 else
28424   echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427 ac_cv_working_alloca_h=no
28428 fi
28429 rm -f conftest.err conftest.$ac_objext \
28430       conftest$ac_exeext conftest.$ac_ext
28431 fi
28432 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28433 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
28434 if test $ac_cv_working_alloca_h = yes; then
28435
28436 cat >>confdefs.h <<\_ACEOF
28437 #define HAVE_ALLOCA_H 1
28438 _ACEOF
28439
28440 fi
28441
28442 echo "$as_me:$LINENO: checking for alloca" >&5
28443 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
28444 if test "${ac_cv_func_alloca_works+set}" = set; then
28445   echo $ECHO_N "(cached) $ECHO_C" >&6
28446 else
28447   cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 #ifdef __GNUC__
28454 # define alloca __builtin_alloca
28455 #else
28456 # ifdef _MSC_VER
28457 #  include <malloc.h>
28458 #  define alloca _alloca
28459 # else
28460 #  if HAVE_ALLOCA_H
28461 #   include <alloca.h>
28462 #  else
28463 #   ifdef _AIX
28464  #pragma alloca
28465 #   else
28466 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28467 char *alloca ();
28468 #    endif
28469 #   endif
28470 #  endif
28471 # endif
28472 #endif
28473
28474 int
28475 main ()
28476 {
28477 char *p = (char *) alloca (1);
28478   ;
28479   return 0;
28480 }
28481 _ACEOF
28482 rm -f conftest.$ac_objext conftest$ac_exeext
28483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28484   (eval $ac_link) 2>conftest.er1
28485   ac_status=$?
28486   grep -v '^ *+' conftest.er1 >conftest.err
28487   rm -f conftest.er1
28488   cat conftest.err >&5
28489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28490   (exit $ac_status); } &&
28491          { ac_try='test -z "$ac_c_werror_flag"
28492                          || test ! -s conftest.err'
28493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28494   (eval $ac_try) 2>&5
28495   ac_status=$?
28496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28497   (exit $ac_status); }; } &&
28498          { ac_try='test -s conftest$ac_exeext'
28499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28500   (eval $ac_try) 2>&5
28501   ac_status=$?
28502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28503   (exit $ac_status); }; }; then
28504   ac_cv_func_alloca_works=yes
28505 else
28506   echo "$as_me: failed program was:" >&5
28507 sed 's/^/| /' conftest.$ac_ext >&5
28508
28509 ac_cv_func_alloca_works=no
28510 fi
28511 rm -f conftest.err conftest.$ac_objext \
28512       conftest$ac_exeext conftest.$ac_ext
28513 fi
28514 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28515 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
28516
28517 if test $ac_cv_func_alloca_works = yes; then
28518
28519 cat >>confdefs.h <<\_ACEOF
28520 #define HAVE_ALLOCA 1
28521 _ACEOF
28522
28523 else
28524   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28525 # that cause trouble.  Some versions do not even contain alloca or
28526 # contain a buggy version.  If you still want to use their alloca,
28527 # use ar to extract alloca.o from them instead of compiling alloca.c.
28528
28529 ALLOCA=alloca.$ac_objext
28530
28531 cat >>confdefs.h <<\_ACEOF
28532 #define C_ALLOCA 1
28533 _ACEOF
28534
28535
28536 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28537 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
28538 if test "${ac_cv_os_cray+set}" = set; then
28539   echo $ECHO_N "(cached) $ECHO_C" >&6
28540 else
28541   cat >conftest.$ac_ext <<_ACEOF
28542 /* confdefs.h.  */
28543 _ACEOF
28544 cat confdefs.h >>conftest.$ac_ext
28545 cat >>conftest.$ac_ext <<_ACEOF
28546 /* end confdefs.h.  */
28547 #if defined(CRAY) && ! defined(CRAY2)
28548 webecray
28549 #else
28550 wenotbecray
28551 #endif
28552
28553 _ACEOF
28554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28555   $EGREP "webecray" >/dev/null 2>&1; then
28556   ac_cv_os_cray=yes
28557 else
28558   ac_cv_os_cray=no
28559 fi
28560 rm -f conftest*
28561
28562 fi
28563 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28564 echo "${ECHO_T}$ac_cv_os_cray" >&6
28565 if test $ac_cv_os_cray = yes; then
28566   for ac_func in _getb67 GETB67 getb67; do
28567     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28568 echo "$as_me:$LINENO: checking for $ac_func" >&5
28569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28570 if eval "test \"\${$as_ac_var+set}\" = set"; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28581 #define $ac_func innocuous_$ac_func
28582
28583 /* System header to define __stub macros and hopefully few prototypes,
28584     which can conflict with char $ac_func (); below.
28585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28586     <limits.h> exists even on freestanding compilers.  */
28587
28588 #ifdef __STDC__
28589 # include <limits.h>
28590 #else
28591 # include <assert.h>
28592 #endif
28593
28594 #undef $ac_func
28595
28596 /* Override any gcc2 internal prototype to avoid an error.  */
28597 #ifdef __cplusplus
28598 extern "C"
28599 {
28600 #endif
28601 /* We use char because int might match the return type of a gcc2
28602    builtin and then its argument prototype would still apply.  */
28603 char $ac_func ();
28604 /* The GNU C library defines this for functions which it implements
28605     to always fail with ENOSYS.  Some functions are actually named
28606     something starting with __ and the normal name is an alias.  */
28607 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28608 choke me
28609 #else
28610 char (*f) () = $ac_func;
28611 #endif
28612 #ifdef __cplusplus
28613 }
28614 #endif
28615
28616 int
28617 main ()
28618 {
28619 return f != $ac_func;
28620   ;
28621   return 0;
28622 }
28623 _ACEOF
28624 rm -f conftest.$ac_objext conftest$ac_exeext
28625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28626   (eval $ac_link) 2>conftest.er1
28627   ac_status=$?
28628   grep -v '^ *+' conftest.er1 >conftest.err
28629   rm -f conftest.er1
28630   cat conftest.err >&5
28631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632   (exit $ac_status); } &&
28633          { ac_try='test -z "$ac_c_werror_flag"
28634                          || test ! -s conftest.err'
28635   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636   (eval $ac_try) 2>&5
28637   ac_status=$?
28638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639   (exit $ac_status); }; } &&
28640          { ac_try='test -s conftest$ac_exeext'
28641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642   (eval $ac_try) 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; }; then
28646   eval "$as_ac_var=yes"
28647 else
28648   echo "$as_me: failed program was:" >&5
28649 sed 's/^/| /' conftest.$ac_ext >&5
28650
28651 eval "$as_ac_var=no"
28652 fi
28653 rm -f conftest.err conftest.$ac_objext \
28654       conftest$ac_exeext conftest.$ac_ext
28655 fi
28656 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28657 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28658 if test `eval echo '${'$as_ac_var'}'` = yes; then
28659
28660 cat >>confdefs.h <<_ACEOF
28661 #define CRAY_STACKSEG_END $ac_func
28662 _ACEOF
28663
28664     break
28665 fi
28666
28667   done
28668 fi
28669
28670 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28671 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
28672 if test "${ac_cv_c_stack_direction+set}" = set; then
28673   echo $ECHO_N "(cached) $ECHO_C" >&6
28674 else
28675   if test "$cross_compiling" = yes; then
28676   ac_cv_c_stack_direction=0
28677 else
28678   cat >conftest.$ac_ext <<_ACEOF
28679 /* confdefs.h.  */
28680 _ACEOF
28681 cat confdefs.h >>conftest.$ac_ext
28682 cat >>conftest.$ac_ext <<_ACEOF
28683 /* end confdefs.h.  */
28684 int
28685 find_stack_direction ()
28686 {
28687   static char *addr = 0;
28688   auto char dummy;
28689   if (addr == 0)
28690     {
28691       addr = &dummy;
28692       return find_stack_direction ();
28693     }
28694   else
28695     return (&dummy > addr) ? 1 : -1;
28696 }
28697
28698 int
28699 main ()
28700 {
28701   exit (find_stack_direction () < 0);
28702 }
28703 _ACEOF
28704 rm -f conftest$ac_exeext
28705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28706   (eval $ac_link) 2>&5
28707   ac_status=$?
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); } && { ac_try='./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_c_stack_direction=1
28716 else
28717   echo "$as_me: program exited with status $ac_status" >&5
28718 echo "$as_me: failed program was:" >&5
28719 sed 's/^/| /' conftest.$ac_ext >&5
28720
28721 ( exit $ac_status )
28722 ac_cv_c_stack_direction=-1
28723 fi
28724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28725 fi
28726 fi
28727 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28728 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
28729
28730 cat >>confdefs.h <<_ACEOF
28731 #define STACK_DIRECTION $ac_cv_c_stack_direction
28732 _ACEOF
28733
28734
28735 fi
28736
28737 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
28738 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
28739 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
28740 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
28741   echo $ECHO_N "(cached) $ECHO_C" >&6
28742 else
28743   ac_check_lib_save_LIBS=$LIBS
28744 LIBS="-lsun  $LIBS"
28745 cat >conftest.$ac_ext <<_ACEOF
28746 /* confdefs.h.  */
28747 _ACEOF
28748 cat confdefs.h >>conftest.$ac_ext
28749 cat >>conftest.$ac_ext <<_ACEOF
28750 /* end confdefs.h.  */
28751
28752 /* Override any gcc2 internal prototype to avoid an error.  */
28753 #ifdef __cplusplus
28754 extern "C"
28755 #endif
28756 /* We use char because int might match the return type of a gcc2
28757    builtin and then its argument prototype would still apply.  */
28758 char getmntent ();
28759 int
28760 main ()
28761 {
28762 getmntent ();
28763   ;
28764   return 0;
28765 }
28766 _ACEOF
28767 rm -f conftest.$ac_objext conftest$ac_exeext
28768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28769   (eval $ac_link) 2>conftest.er1
28770   ac_status=$?
28771   grep -v '^ *+' conftest.er1 >conftest.err
28772   rm -f conftest.er1
28773   cat conftest.err >&5
28774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775   (exit $ac_status); } &&
28776          { ac_try='test -z "$ac_c_werror_flag"
28777                          || test ! -s conftest.err'
28778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28779   (eval $ac_try) 2>&5
28780   ac_status=$?
28781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28782   (exit $ac_status); }; } &&
28783          { ac_try='test -s conftest$ac_exeext'
28784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28785   (eval $ac_try) 2>&5
28786   ac_status=$?
28787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788   (exit $ac_status); }; }; then
28789   ac_cv_lib_sun_getmntent=yes
28790 else
28791   echo "$as_me: failed program was:" >&5
28792 sed 's/^/| /' conftest.$ac_ext >&5
28793
28794 ac_cv_lib_sun_getmntent=no
28795 fi
28796 rm -f conftest.err conftest.$ac_objext \
28797       conftest$ac_exeext conftest.$ac_ext
28798 LIBS=$ac_check_lib_save_LIBS
28799 fi
28800 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
28801 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
28802 if test $ac_cv_lib_sun_getmntent = yes; then
28803   LIBS="-lsun $LIBS"
28804 else
28805   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
28806 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
28807 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
28808   echo $ECHO_N "(cached) $ECHO_C" >&6
28809 else
28810   ac_check_lib_save_LIBS=$LIBS
28811 LIBS="-lseq  $LIBS"
28812 cat >conftest.$ac_ext <<_ACEOF
28813 /* confdefs.h.  */
28814 _ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h.  */
28818
28819 /* Override any gcc2 internal prototype to avoid an error.  */
28820 #ifdef __cplusplus
28821 extern "C"
28822 #endif
28823 /* We use char because int might match the return type of a gcc2
28824    builtin and then its argument prototype would still apply.  */
28825 char getmntent ();
28826 int
28827 main ()
28828 {
28829 getmntent ();
28830   ;
28831   return 0;
28832 }
28833 _ACEOF
28834 rm -f conftest.$ac_objext conftest$ac_exeext
28835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28836   (eval $ac_link) 2>conftest.er1
28837   ac_status=$?
28838   grep -v '^ *+' conftest.er1 >conftest.err
28839   rm -f conftest.er1
28840   cat conftest.err >&5
28841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28842   (exit $ac_status); } &&
28843          { ac_try='test -z "$ac_c_werror_flag"
28844                          || test ! -s conftest.err'
28845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28846   (eval $ac_try) 2>&5
28847   ac_status=$?
28848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28849   (exit $ac_status); }; } &&
28850          { ac_try='test -s conftest$ac_exeext'
28851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28852   (eval $ac_try) 2>&5
28853   ac_status=$?
28854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855   (exit $ac_status); }; }; then
28856   ac_cv_lib_seq_getmntent=yes
28857 else
28858   echo "$as_me: failed program was:" >&5
28859 sed 's/^/| /' conftest.$ac_ext >&5
28860
28861 ac_cv_lib_seq_getmntent=no
28862 fi
28863 rm -f conftest.err conftest.$ac_objext \
28864       conftest$ac_exeext conftest.$ac_ext
28865 LIBS=$ac_check_lib_save_LIBS
28866 fi
28867 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
28868 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
28869 if test $ac_cv_lib_seq_getmntent = yes; then
28870   LIBS="-lseq $LIBS"
28871 else
28872   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
28873 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
28874 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
28875   echo $ECHO_N "(cached) $ECHO_C" >&6
28876 else
28877   ac_check_lib_save_LIBS=$LIBS
28878 LIBS="-lgen  $LIBS"
28879 cat >conftest.$ac_ext <<_ACEOF
28880 /* confdefs.h.  */
28881 _ACEOF
28882 cat confdefs.h >>conftest.$ac_ext
28883 cat >>conftest.$ac_ext <<_ACEOF
28884 /* end confdefs.h.  */
28885
28886 /* Override any gcc2 internal prototype to avoid an error.  */
28887 #ifdef __cplusplus
28888 extern "C"
28889 #endif
28890 /* We use char because int might match the return type of a gcc2
28891    builtin and then its argument prototype would still apply.  */
28892 char getmntent ();
28893 int
28894 main ()
28895 {
28896 getmntent ();
28897   ;
28898   return 0;
28899 }
28900 _ACEOF
28901 rm -f conftest.$ac_objext conftest$ac_exeext
28902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28903   (eval $ac_link) 2>conftest.er1
28904   ac_status=$?
28905   grep -v '^ *+' conftest.er1 >conftest.err
28906   rm -f conftest.er1
28907   cat conftest.err >&5
28908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909   (exit $ac_status); } &&
28910          { ac_try='test -z "$ac_c_werror_flag"
28911                          || test ! -s conftest.err'
28912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28913   (eval $ac_try) 2>&5
28914   ac_status=$?
28915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28916   (exit $ac_status); }; } &&
28917          { ac_try='test -s conftest$ac_exeext'
28918   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28919   (eval $ac_try) 2>&5
28920   ac_status=$?
28921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28922   (exit $ac_status); }; }; then
28923   ac_cv_lib_gen_getmntent=yes
28924 else
28925   echo "$as_me: failed program was:" >&5
28926 sed 's/^/| /' conftest.$ac_ext >&5
28927
28928 ac_cv_lib_gen_getmntent=no
28929 fi
28930 rm -f conftest.err conftest.$ac_objext \
28931       conftest$ac_exeext conftest.$ac_ext
28932 LIBS=$ac_check_lib_save_LIBS
28933 fi
28934 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
28935 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
28936 if test $ac_cv_lib_gen_getmntent = yes; then
28937   LIBS="-lgen $LIBS"
28938 fi
28939
28940 fi
28941
28942 fi
28943
28944
28945 for ac_func in getmntent
28946 do
28947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28948 echo "$as_me:$LINENO: checking for $ac_func" >&5
28949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28950 if eval "test \"\${$as_ac_var+set}\" = set"; then
28951   echo $ECHO_N "(cached) $ECHO_C" >&6
28952 else
28953   cat >conftest.$ac_ext <<_ACEOF
28954 /* confdefs.h.  */
28955 _ACEOF
28956 cat confdefs.h >>conftest.$ac_ext
28957 cat >>conftest.$ac_ext <<_ACEOF
28958 /* end confdefs.h.  */
28959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28961 #define $ac_func innocuous_$ac_func
28962
28963 /* System header to define __stub macros and hopefully few prototypes,
28964     which can conflict with char $ac_func (); below.
28965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28966     <limits.h> exists even on freestanding compilers.  */
28967
28968 #ifdef __STDC__
28969 # include <limits.h>
28970 #else
28971 # include <assert.h>
28972 #endif
28973
28974 #undef $ac_func
28975
28976 /* Override any gcc2 internal prototype to avoid an error.  */
28977 #ifdef __cplusplus
28978 extern "C"
28979 {
28980 #endif
28981 /* We use char because int might match the return type of a gcc2
28982    builtin and then its argument prototype would still apply.  */
28983 char $ac_func ();
28984 /* The GNU C library defines this for functions which it implements
28985     to always fail with ENOSYS.  Some functions are actually named
28986     something starting with __ and the normal name is an alias.  */
28987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28988 choke me
28989 #else
28990 char (*f) () = $ac_func;
28991 #endif
28992 #ifdef __cplusplus
28993 }
28994 #endif
28995
28996 int
28997 main ()
28998 {
28999 return f != $ac_func;
29000   ;
29001   return 0;
29002 }
29003 _ACEOF
29004 rm -f conftest.$ac_objext conftest$ac_exeext
29005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29006   (eval $ac_link) 2>conftest.er1
29007   ac_status=$?
29008   grep -v '^ *+' conftest.er1 >conftest.err
29009   rm -f conftest.er1
29010   cat conftest.err >&5
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); } &&
29013          { ac_try='test -z "$ac_c_werror_flag"
29014                          || test ! -s conftest.err'
29015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29016   (eval $ac_try) 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; } &&
29020          { ac_try='test -s conftest$ac_exeext'
29021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022   (eval $ac_try) 2>&5
29023   ac_status=$?
29024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025   (exit $ac_status); }; }; then
29026   eval "$as_ac_var=yes"
29027 else
29028   echo "$as_me: failed program was:" >&5
29029 sed 's/^/| /' conftest.$ac_ext >&5
29030
29031 eval "$as_ac_var=no"
29032 fi
29033 rm -f conftest.err conftest.$ac_objext \
29034       conftest$ac_exeext conftest.$ac_ext
29035 fi
29036 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29037 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29038 if test `eval echo '${'$as_ac_var'}'` = yes; then
29039   cat >>confdefs.h <<_ACEOF
29040 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29041 _ACEOF
29042
29043 fi
29044 done
29045
29046
29047 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29048 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
29049 if test "${ac_cv_func_closedir_void+set}" = set; then
29050   echo $ECHO_N "(cached) $ECHO_C" >&6
29051 else
29052   if test "$cross_compiling" = yes; then
29053   ac_cv_func_closedir_void=yes
29054 else
29055   cat >conftest.$ac_ext <<_ACEOF
29056 /* confdefs.h.  */
29057 _ACEOF
29058 cat confdefs.h >>conftest.$ac_ext
29059 cat >>conftest.$ac_ext <<_ACEOF
29060 /* end confdefs.h.  */
29061 $ac_includes_default
29062 #include <$ac_header_dirent>
29063 #ifndef __cplusplus
29064 int closedir ();
29065 #endif
29066
29067 int
29068 main ()
29069 {
29070 exit (closedir (opendir (".")) != 0);
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 rm -f conftest$ac_exeext
29076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29077   (eval $ac_link) 2>&5
29078   ac_status=$?
29079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29082   (eval $ac_try) 2>&5
29083   ac_status=$?
29084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085   (exit $ac_status); }; }; then
29086   ac_cv_func_closedir_void=no
29087 else
29088   echo "$as_me: program exited with status $ac_status" >&5
29089 echo "$as_me: failed program was:" >&5
29090 sed 's/^/| /' conftest.$ac_ext >&5
29091
29092 ( exit $ac_status )
29093 ac_cv_func_closedir_void=yes
29094 fi
29095 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29096 fi
29097 fi
29098 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29099 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
29100 if test $ac_cv_func_closedir_void = yes; then
29101
29102 cat >>confdefs.h <<\_ACEOF
29103 #define CLOSEDIR_VOID 1
29104 _ACEOF
29105
29106 fi
29107
29108 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29109 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
29110 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29111   echo $ECHO_N "(cached) $ECHO_C" >&6
29112 else
29113   if test "$cross_compiling" = yes; then
29114   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29115 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29116    { (exit 1); exit 1; }; }
29117 else
29118   cat >conftest.$ac_ext <<_ACEOF
29119 /* confdefs.h.  */
29120 _ACEOF
29121 cat confdefs.h >>conftest.$ac_ext
29122 cat >>conftest.$ac_ext <<_ACEOF
29123 /* end confdefs.h.  */
29124 #if HAVE_UNISTD_H
29125 # include <unistd.h>
29126 #endif
29127
29128 int
29129 main ()
29130 {
29131 /* If this system has a BSD-style setpgrp which takes arguments,
29132   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29133   exit successfully. */
29134   exit (setpgrp (1,1) == -1 ? 0 : 1);
29135   ;
29136   return 0;
29137 }
29138 _ACEOF
29139 rm -f conftest$ac_exeext
29140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29141   (eval $ac_link) 2>&5
29142   ac_status=$?
29143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29146   (eval $ac_try) 2>&5
29147   ac_status=$?
29148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29149   (exit $ac_status); }; }; then
29150   ac_cv_func_setpgrp_void=no
29151 else
29152   echo "$as_me: program exited with status $ac_status" >&5
29153 echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29155
29156 ( exit $ac_status )
29157 ac_cv_func_setpgrp_void=yes
29158 fi
29159 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29160 fi
29161 fi
29162 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29163 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
29164 if test $ac_cv_func_setpgrp_void = yes; then
29165
29166 cat >>confdefs.h <<\_ACEOF
29167 #define SETPGRP_VOID 1
29168 _ACEOF
29169
29170 fi
29171                       # AC_FUNC_FNMATCH    dnl use local version
29172
29173
29174 echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29175 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6
29176 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29177   echo $ECHO_N "(cached) $ECHO_C" >&6
29178 else
29179   ac_check_lib_save_LIBS=$LIBS
29180 LIBS="-lintl  $LIBS"
29181 cat >conftest.$ac_ext <<_ACEOF
29182 /* confdefs.h.  */
29183 _ACEOF
29184 cat confdefs.h >>conftest.$ac_ext
29185 cat >>conftest.$ac_ext <<_ACEOF
29186 /* end confdefs.h.  */
29187
29188 /* Override any gcc2 internal prototype to avoid an error.  */
29189 #ifdef __cplusplus
29190 extern "C"
29191 #endif
29192 /* We use char because int might match the return type of a gcc2
29193    builtin and then its argument prototype would still apply.  */
29194 char gettext ();
29195 int
29196 main ()
29197 {
29198 gettext ();
29199   ;
29200   return 0;
29201 }
29202 _ACEOF
29203 rm -f conftest.$ac_objext conftest$ac_exeext
29204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29205   (eval $ac_link) 2>conftest.er1
29206   ac_status=$?
29207   grep -v '^ *+' conftest.er1 >conftest.err
29208   rm -f conftest.er1
29209   cat conftest.err >&5
29210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29211   (exit $ac_status); } &&
29212          { ac_try='test -z "$ac_c_werror_flag"
29213                          || test ! -s conftest.err'
29214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29215   (eval $ac_try) 2>&5
29216   ac_status=$?
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); }; } &&
29219          { ac_try='test -s conftest$ac_exeext'
29220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221   (eval $ac_try) 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; }; then
29225   ac_cv_lib_intl_gettext=yes
29226 else
29227   echo "$as_me: failed program was:" >&5
29228 sed 's/^/| /' conftest.$ac_ext >&5
29229
29230 ac_cv_lib_intl_gettext=no
29231 fi
29232 rm -f conftest.err conftest.$ac_objext \
29233       conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29235 fi
29236 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29237 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6
29238 if test $ac_cv_lib_intl_gettext = yes; then
29239   LIBS="$LIBS -lintl"
29240 fi
29241
29242
29243
29244
29245 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29246 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
29247 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29248   echo $ECHO_N "(cached) $ECHO_C" >&6
29249 else
29250   ac_check_lib_save_LIBS=$LIBS
29251 LIBS="-lsun  $LIBS"
29252 cat >conftest.$ac_ext <<_ACEOF
29253 /* confdefs.h.  */
29254 _ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h.  */
29258
29259 /* Override any gcc2 internal prototype to avoid an error.  */
29260 #ifdef __cplusplus
29261 extern "C"
29262 #endif
29263 /* We use char because int might match the return type of a gcc2
29264    builtin and then its argument prototype would still apply.  */
29265 char getpwnam ();
29266 int
29267 main ()
29268 {
29269 getpwnam ();
29270   ;
29271   return 0;
29272 }
29273 _ACEOF
29274 rm -f conftest.$ac_objext conftest$ac_exeext
29275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29276   (eval $ac_link) 2>conftest.er1
29277   ac_status=$?
29278   grep -v '^ *+' conftest.er1 >conftest.err
29279   rm -f conftest.er1
29280   cat conftest.err >&5
29281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282   (exit $ac_status); } &&
29283          { ac_try='test -z "$ac_c_werror_flag"
29284                          || test ! -s conftest.err'
29285   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286   (eval $ac_try) 2>&5
29287   ac_status=$?
29288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289   (exit $ac_status); }; } &&
29290          { ac_try='test -s conftest$ac_exeext'
29291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292   (eval $ac_try) 2>&5
29293   ac_status=$?
29294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295   (exit $ac_status); }; }; then
29296   ac_cv_lib_sun_getpwnam=yes
29297 else
29298   echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301 ac_cv_lib_sun_getpwnam=no
29302 fi
29303 rm -f conftest.err conftest.$ac_objext \
29304       conftest$ac_exeext conftest.$ac_ext
29305 LIBS=$ac_check_lib_save_LIBS
29306 fi
29307 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29308 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
29309 if test $ac_cv_lib_sun_getpwnam = yes; then
29310   cat >>confdefs.h <<_ACEOF
29311 #define HAVE_LIBSUN 1
29312 _ACEOF
29313
29314   LIBS="-lsun $LIBS"
29315
29316 fi
29317
29318
29319
29320 for ac_header in zlib.h
29321 do
29322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29324   echo "$as_me:$LINENO: checking for $ac_header" >&5
29325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29327   echo $ECHO_N "(cached) $ECHO_C" >&6
29328 fi
29329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29331 else
29332   # Is the header compilable?
29333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29335 cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h.  */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h.  */
29341 $ac_includes_default
29342 #include <$ac_header>
29343 _ACEOF
29344 rm -f conftest.$ac_objext
29345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29346   (eval $ac_compile) 2>conftest.er1
29347   ac_status=$?
29348   grep -v '^ *+' conftest.er1 >conftest.err
29349   rm -f conftest.er1
29350   cat conftest.err >&5
29351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352   (exit $ac_status); } &&
29353          { ac_try='test -z "$ac_c_werror_flag"
29354                          || test ! -s conftest.err'
29355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29356   (eval $ac_try) 2>&5
29357   ac_status=$?
29358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29359   (exit $ac_status); }; } &&
29360          { ac_try='test -s conftest.$ac_objext'
29361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29362   (eval $ac_try) 2>&5
29363   ac_status=$?
29364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29365   (exit $ac_status); }; }; then
29366   ac_header_compiler=yes
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371 ac_header_compiler=no
29372 fi
29373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29375 echo "${ECHO_T}$ac_header_compiler" >&6
29376
29377 # Is the header present?
29378 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29380 cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386 #include <$ac_header>
29387 _ACEOF
29388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29390   ac_status=$?
29391   grep -v '^ *+' conftest.er1 >conftest.err
29392   rm -f conftest.er1
29393   cat conftest.err >&5
29394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29395   (exit $ac_status); } >/dev/null; then
29396   if test -s conftest.err; then
29397     ac_cpp_err=$ac_c_preproc_warn_flag
29398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29399   else
29400     ac_cpp_err=
29401   fi
29402 else
29403   ac_cpp_err=yes
29404 fi
29405 if test -z "$ac_cpp_err"; then
29406   ac_header_preproc=yes
29407 else
29408   echo "$as_me: failed program was:" >&5
29409 sed 's/^/| /' conftest.$ac_ext >&5
29410
29411   ac_header_preproc=no
29412 fi
29413 rm -f conftest.err conftest.$ac_ext
29414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29415 echo "${ECHO_T}$ac_header_preproc" >&6
29416
29417 # So?  What about this header?
29418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29419   yes:no: )
29420     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29424     ac_header_preproc=yes
29425     ;;
29426   no:yes:* )
29427     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29429     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29430 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29431     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29433     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29434 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29435     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29437     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29439     (
29440       cat <<\_ASBOX
29441 ## ------------------------------------------ ##
29442 ## Report this to the AC_PACKAGE_NAME lists.  ##
29443 ## ------------------------------------------ ##
29444 _ASBOX
29445     ) |
29446       sed "s/^/$as_me: WARNING:     /" >&2
29447     ;;
29448 esac
29449 echo "$as_me:$LINENO: checking for $ac_header" >&5
29450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29452   echo $ECHO_N "(cached) $ECHO_C" >&6
29453 else
29454   eval "$as_ac_Header=\$ac_header_preproc"
29455 fi
29456 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29457 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29458
29459 fi
29460 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29461   cat >>confdefs.h <<_ACEOF
29462 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29463 _ACEOF
29464
29465 fi
29466
29467 done
29468
29469 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29470 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
29471 if test "${ac_cv_lib_z_deflate+set}" = set; then
29472   echo $ECHO_N "(cached) $ECHO_C" >&6
29473 else
29474   ac_check_lib_save_LIBS=$LIBS
29475 LIBS="-lz  $LIBS"
29476 cat >conftest.$ac_ext <<_ACEOF
29477 /* confdefs.h.  */
29478 _ACEOF
29479 cat confdefs.h >>conftest.$ac_ext
29480 cat >>conftest.$ac_ext <<_ACEOF
29481 /* end confdefs.h.  */
29482
29483 /* Override any gcc2 internal prototype to avoid an error.  */
29484 #ifdef __cplusplus
29485 extern "C"
29486 #endif
29487 /* We use char because int might match the return type of a gcc2
29488    builtin and then its argument prototype would still apply.  */
29489 char deflate ();
29490 int
29491 main ()
29492 {
29493 deflate ();
29494   ;
29495   return 0;
29496 }
29497 _ACEOF
29498 rm -f conftest.$ac_objext conftest$ac_exeext
29499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29500   (eval $ac_link) 2>conftest.er1
29501   ac_status=$?
29502   grep -v '^ *+' conftest.er1 >conftest.err
29503   rm -f conftest.er1
29504   cat conftest.err >&5
29505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506   (exit $ac_status); } &&
29507          { ac_try='test -z "$ac_c_werror_flag"
29508                          || test ! -s conftest.err'
29509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29510   (eval $ac_try) 2>&5
29511   ac_status=$?
29512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29513   (exit $ac_status); }; } &&
29514          { ac_try='test -s conftest$ac_exeext'
29515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29516   (eval $ac_try) 2>&5
29517   ac_status=$?
29518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519   (exit $ac_status); }; }; then
29520   ac_cv_lib_z_deflate=yes
29521 else
29522   echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525 ac_cv_lib_z_deflate=no
29526 fi
29527 rm -f conftest.err conftest.$ac_objext \
29528       conftest$ac_exeext conftest.$ac_ext
29529 LIBS=$ac_check_lib_save_LIBS
29530 fi
29531 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29532 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
29533 if test $ac_cv_lib_z_deflate = yes; then
29534   FDLIBS="-lz"
29535 fi
29536
29537 have_zlib=no
29538 if test x$FDLIBS = x-lz; then
29539   cat >>confdefs.h <<\_ACEOF
29540 #define HAVE_LIBZ 1
29541 _ACEOF
29542
29543   have_zlib=yes
29544 fi
29545
29546 #
29547 # Check for ACL libraries
29548 #
29549 have_acl=no
29550 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29551   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29552 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29553 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29554   echo $ECHO_N "(cached) $ECHO_C" >&6
29555 fi
29556 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29557 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29558 else
29559   # Is the header compilable?
29560 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29561 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
29562 cat >conftest.$ac_ext <<_ACEOF
29563 /* confdefs.h.  */
29564 _ACEOF
29565 cat confdefs.h >>conftest.$ac_ext
29566 cat >>conftest.$ac_ext <<_ACEOF
29567 /* end confdefs.h.  */
29568 $ac_includes_default
29569 #include <sys/acl.h>
29570 _ACEOF
29571 rm -f conftest.$ac_objext
29572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29573   (eval $ac_compile) 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } &&
29580          { ac_try='test -z "$ac_c_werror_flag"
29581                          || test ! -s conftest.err'
29582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29583   (eval $ac_try) 2>&5
29584   ac_status=$?
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); }; } &&
29587          { ac_try='test -s conftest.$ac_objext'
29588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29589   (eval $ac_try) 2>&5
29590   ac_status=$?
29591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29592   (exit $ac_status); }; }; then
29593   ac_header_compiler=yes
29594 else
29595   echo "$as_me: failed program was:" >&5
29596 sed 's/^/| /' conftest.$ac_ext >&5
29597
29598 ac_header_compiler=no
29599 fi
29600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29601 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29602 echo "${ECHO_T}$ac_header_compiler" >&6
29603
29604 # Is the header present?
29605 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29606 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
29607 cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h.  */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h.  */
29613 #include <sys/acl.h>
29614 _ACEOF
29615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29616   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29617   ac_status=$?
29618   grep -v '^ *+' conftest.er1 >conftest.err
29619   rm -f conftest.er1
29620   cat conftest.err >&5
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); } >/dev/null; then
29623   if test -s conftest.err; then
29624     ac_cpp_err=$ac_c_preproc_warn_flag
29625     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29626   else
29627     ac_cpp_err=
29628   fi
29629 else
29630   ac_cpp_err=yes
29631 fi
29632 if test -z "$ac_cpp_err"; then
29633   ac_header_preproc=yes
29634 else
29635   echo "$as_me: failed program was:" >&5
29636 sed 's/^/| /' conftest.$ac_ext >&5
29637
29638   ac_header_preproc=no
29639 fi
29640 rm -f conftest.err conftest.$ac_ext
29641 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29642 echo "${ECHO_T}$ac_header_preproc" >&6
29643
29644 # So?  What about this header?
29645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29646   yes:no: )
29647     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29648 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29649     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29650 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29651     ac_header_preproc=yes
29652     ;;
29653   no:yes:* )
29654     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29655 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29656     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29657 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29658     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29659 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29660     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29661 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29662     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29663 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29664     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29665 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29666     (
29667       cat <<\_ASBOX
29668 ## ------------------------------------------ ##
29669 ## Report this to the AC_PACKAGE_NAME lists.  ##
29670 ## ------------------------------------------ ##
29671 _ASBOX
29672     ) |
29673       sed "s/^/$as_me: WARNING:     /" >&2
29674     ;;
29675 esac
29676 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29677 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
29678 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29679   echo $ECHO_N "(cached) $ECHO_C" >&6
29680 else
29681   ac_cv_header_sys_acl_h=$ac_header_preproc
29682 fi
29683 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29684 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
29685
29686 fi
29687
29688
29689 echo "$as_me:$LINENO: checking for acl_get_file" >&5
29690 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
29691 if test "${ac_cv_func_acl_get_file+set}" = set; then
29692   echo $ECHO_N "(cached) $ECHO_C" >&6
29693 else
29694   cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29701    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29702 #define acl_get_file innocuous_acl_get_file
29703
29704 /* System header to define __stub macros and hopefully few prototypes,
29705     which can conflict with char acl_get_file (); below.
29706     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29707     <limits.h> exists even on freestanding compilers.  */
29708
29709 #ifdef __STDC__
29710 # include <limits.h>
29711 #else
29712 # include <assert.h>
29713 #endif
29714
29715 #undef acl_get_file
29716
29717 /* Override any gcc2 internal prototype to avoid an error.  */
29718 #ifdef __cplusplus
29719 extern "C"
29720 {
29721 #endif
29722 /* We use char because int might match the return type of a gcc2
29723    builtin and then its argument prototype would still apply.  */
29724 char acl_get_file ();
29725 /* The GNU C library defines this for functions which it implements
29726     to always fail with ENOSYS.  Some functions are actually named
29727     something starting with __ and the normal name is an alias.  */
29728 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
29729 choke me
29730 #else
29731 char (*f) () = acl_get_file;
29732 #endif
29733 #ifdef __cplusplus
29734 }
29735 #endif
29736
29737 int
29738 main ()
29739 {
29740 return f != acl_get_file;
29741   ;
29742   return 0;
29743 }
29744 _ACEOF
29745 rm -f conftest.$ac_objext conftest$ac_exeext
29746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29747   (eval $ac_link) 2>conftest.er1
29748   ac_status=$?
29749   grep -v '^ *+' conftest.er1 >conftest.err
29750   rm -f conftest.er1
29751   cat conftest.err >&5
29752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29753   (exit $ac_status); } &&
29754          { ac_try='test -z "$ac_c_werror_flag"
29755                          || test ! -s conftest.err'
29756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757   (eval $ac_try) 2>&5
29758   ac_status=$?
29759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760   (exit $ac_status); }; } &&
29761          { ac_try='test -s conftest$ac_exeext'
29762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29763   (eval $ac_try) 2>&5
29764   ac_status=$?
29765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29766   (exit $ac_status); }; }; then
29767   ac_cv_func_acl_get_file=yes
29768 else
29769   echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29771
29772 ac_cv_func_acl_get_file=no
29773 fi
29774 rm -f conftest.err conftest.$ac_objext \
29775       conftest$ac_exeext conftest.$ac_ext
29776 fi
29777 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29778 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
29779 if test $ac_cv_func_acl_get_file = yes; then
29780   have_acl=yes
29781 else
29782   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29783 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
29784 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29785   echo $ECHO_N "(cached) $ECHO_C" >&6
29786 else
29787   ac_check_lib_save_LIBS=$LIBS
29788 LIBS="-lacl  $LIBS"
29789 cat >conftest.$ac_ext <<_ACEOF
29790 /* confdefs.h.  */
29791 _ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h.  */
29795
29796 /* Override any gcc2 internal prototype to avoid an error.  */
29797 #ifdef __cplusplus
29798 extern "C"
29799 #endif
29800 /* We use char because int might match the return type of a gcc2
29801    builtin and then its argument prototype would still apply.  */
29802 char acl_get_file ();
29803 int
29804 main ()
29805 {
29806 acl_get_file ();
29807   ;
29808   return 0;
29809 }
29810 _ACEOF
29811 rm -f conftest.$ac_objext conftest$ac_exeext
29812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29813   (eval $ac_link) 2>conftest.er1
29814   ac_status=$?
29815   grep -v '^ *+' conftest.er1 >conftest.err
29816   rm -f conftest.er1
29817   cat conftest.err >&5
29818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819   (exit $ac_status); } &&
29820          { ac_try='test -z "$ac_c_werror_flag"
29821                          || test ! -s conftest.err'
29822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29823   (eval $ac_try) 2>&5
29824   ac_status=$?
29825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826   (exit $ac_status); }; } &&
29827          { ac_try='test -s conftest$ac_exeext'
29828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29829   (eval $ac_try) 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833   ac_cv_lib_acl_acl_get_file=yes
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838 ac_cv_lib_acl_acl_get_file=no
29839 fi
29840 rm -f conftest.err conftest.$ac_objext \
29841       conftest$ac_exeext conftest.$ac_ext
29842 LIBS=$ac_check_lib_save_LIBS
29843 fi
29844 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29845 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
29846 if test $ac_cv_lib_acl_acl_get_file = yes; then
29847   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29848 else
29849   echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29850 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6
29851 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29852   echo $ECHO_N "(cached) $ECHO_C" >&6
29853 else
29854   ac_check_lib_save_LIBS=$LIBS
29855 LIBS="-lsec  $LIBS"
29856 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862
29863 /* Override any gcc2 internal prototype to avoid an error.  */
29864 #ifdef __cplusplus
29865 extern "C"
29866 #endif
29867 /* We use char because int might match the return type of a gcc2
29868    builtin and then its argument prototype would still apply.  */
29869 char acltotext ();
29870 int
29871 main ()
29872 {
29873 acltotext ();
29874   ;
29875   return 0;
29876 }
29877 _ACEOF
29878 rm -f conftest.$ac_objext conftest$ac_exeext
29879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29880   (eval $ac_link) 2>conftest.er1
29881   ac_status=$?
29882   grep -v '^ *+' conftest.er1 >conftest.err
29883   rm -f conftest.er1
29884   cat conftest.err >&5
29885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29886   (exit $ac_status); } &&
29887          { ac_try='test -z "$ac_c_werror_flag"
29888                          || test ! -s conftest.err'
29889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29890   (eval $ac_try) 2>&5
29891   ac_status=$?
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); }; } &&
29894          { ac_try='test -s conftest$ac_exeext'
29895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29896   (eval $ac_try) 2>&5
29897   ac_status=$?
29898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29899   (exit $ac_status); }; }; then
29900   ac_cv_lib_sec_acltotext=yes
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905 ac_cv_lib_sec_acltotext=no
29906 fi
29907 rm -f conftest.err conftest.$ac_objext \
29908       conftest$ac_exeext conftest.$ac_ext
29909 LIBS=$ac_check_lib_save_LIBS
29910 fi
29911 echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29912 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6
29913 if test $ac_cv_lib_sec_acltotext = yes; then
29914   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29915 fi
29916
29917
29918 fi
29919
29920
29921 fi
29922
29923 if test $have_acl = yes; then
29924    cat >>confdefs.h <<\_ACEOF
29925 #define HAVE_ACL 1
29926 _ACEOF
29927
29928 fi
29929
29930 PTHREAD_LIB=""
29931 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29932 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
29933 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29934   echo $ECHO_N "(cached) $ECHO_C" >&6
29935 else
29936   ac_check_lib_save_LIBS=$LIBS
29937 LIBS="-lpthread  $LIBS"
29938 cat >conftest.$ac_ext <<_ACEOF
29939 /* confdefs.h.  */
29940 _ACEOF
29941 cat confdefs.h >>conftest.$ac_ext
29942 cat >>conftest.$ac_ext <<_ACEOF
29943 /* end confdefs.h.  */
29944
29945 /* Override any gcc2 internal prototype to avoid an error.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 /* We use char because int might match the return type of a gcc2
29950    builtin and then its argument prototype would still apply.  */
29951 char pthread_create ();
29952 int
29953 main ()
29954 {
29955 pthread_create ();
29956   ;
29957   return 0;
29958 }
29959 _ACEOF
29960 rm -f conftest.$ac_objext conftest$ac_exeext
29961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29962   (eval $ac_link) 2>conftest.er1
29963   ac_status=$?
29964   grep -v '^ *+' conftest.er1 >conftest.err
29965   rm -f conftest.er1
29966   cat conftest.err >&5
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); } &&
29969          { ac_try='test -z "$ac_c_werror_flag"
29970                          || test ! -s conftest.err'
29971   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29972   (eval $ac_try) 2>&5
29973   ac_status=$?
29974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29975   (exit $ac_status); }; } &&
29976          { ac_try='test -s conftest$ac_exeext'
29977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29978   (eval $ac_try) 2>&5
29979   ac_status=$?
29980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29981   (exit $ac_status); }; }; then
29982   ac_cv_lib_pthread_pthread_create=yes
29983 else
29984   echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.$ac_ext >&5
29986
29987 ac_cv_lib_pthread_pthread_create=no
29988 fi
29989 rm -f conftest.err conftest.$ac_objext \
29990       conftest$ac_exeext conftest.$ac_ext
29991 LIBS=$ac_check_lib_save_LIBS
29992 fi
29993 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29994 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
29995 if test $ac_cv_lib_pthread_pthread_create = yes; then
29996   PTHREAD_LIB="-lpthread"
29997 else
29998   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29999 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
30000 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30001   echo $ECHO_N "(cached) $ECHO_C" >&6
30002 else
30003   ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lpthreads  $LIBS"
30005 cat >conftest.$ac_ext <<_ACEOF
30006 /* confdefs.h.  */
30007 _ACEOF
30008 cat confdefs.h >>conftest.$ac_ext
30009 cat >>conftest.$ac_ext <<_ACEOF
30010 /* end confdefs.h.  */
30011
30012 /* Override any gcc2 internal prototype to avoid an error.  */
30013 #ifdef __cplusplus
30014 extern "C"
30015 #endif
30016 /* We use char because int might match the return type of a gcc2
30017    builtin and then its argument prototype would still apply.  */
30018 char pthread_create ();
30019 int
30020 main ()
30021 {
30022 pthread_create ();
30023   ;
30024   return 0;
30025 }
30026 _ACEOF
30027 rm -f conftest.$ac_objext conftest$ac_exeext
30028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30029   (eval $ac_link) 2>conftest.er1
30030   ac_status=$?
30031   grep -v '^ *+' conftest.er1 >conftest.err
30032   rm -f conftest.er1
30033   cat conftest.err >&5
30034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30035   (exit $ac_status); } &&
30036          { ac_try='test -z "$ac_c_werror_flag"
30037                          || test ! -s conftest.err'
30038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30039   (eval $ac_try) 2>&5
30040   ac_status=$?
30041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30042   (exit $ac_status); }; } &&
30043          { ac_try='test -s conftest$ac_exeext'
30044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30045   (eval $ac_try) 2>&5
30046   ac_status=$?
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); }; }; then
30049   ac_cv_lib_pthreads_pthread_create=yes
30050 else
30051   echo "$as_me: failed program was:" >&5
30052 sed 's/^/| /' conftest.$ac_ext >&5
30053
30054 ac_cv_lib_pthreads_pthread_create=no
30055 fi
30056 rm -f conftest.err conftest.$ac_objext \
30057       conftest$ac_exeext conftest.$ac_ext
30058 LIBS=$ac_check_lib_save_LIBS
30059 fi
30060 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30061 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
30062 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30063   PTHREAD_LIB="-lpthreads"
30064 else
30065   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30066 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
30067 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30068   echo $ECHO_N "(cached) $ECHO_C" >&6
30069 else
30070   ac_check_lib_save_LIBS=$LIBS
30071 LIBS="-lc_r  $LIBS"
30072 cat >conftest.$ac_ext <<_ACEOF
30073 /* confdefs.h.  */
30074 _ACEOF
30075 cat confdefs.h >>conftest.$ac_ext
30076 cat >>conftest.$ac_ext <<_ACEOF
30077 /* end confdefs.h.  */
30078
30079 /* Override any gcc2 internal prototype to avoid an error.  */
30080 #ifdef __cplusplus
30081 extern "C"
30082 #endif
30083 /* We use char because int might match the return type of a gcc2
30084    builtin and then its argument prototype would still apply.  */
30085 char pthread_create ();
30086 int
30087 main ()
30088 {
30089 pthread_create ();
30090   ;
30091   return 0;
30092 }
30093 _ACEOF
30094 rm -f conftest.$ac_objext conftest$ac_exeext
30095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30096   (eval $ac_link) 2>conftest.er1
30097   ac_status=$?
30098   grep -v '^ *+' conftest.er1 >conftest.err
30099   rm -f conftest.er1
30100   cat conftest.err >&5
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); } &&
30103          { ac_try='test -z "$ac_c_werror_flag"
30104                          || test ! -s conftest.err'
30105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30106   (eval $ac_try) 2>&5
30107   ac_status=$?
30108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30109   (exit $ac_status); }; } &&
30110          { ac_try='test -s conftest$ac_exeext'
30111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30112   (eval $ac_try) 2>&5
30113   ac_status=$?
30114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30115   (exit $ac_status); }; }; then
30116   ac_cv_lib_c_r_pthread_create=yes
30117 else
30118   echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30120
30121 ac_cv_lib_c_r_pthread_create=no
30122 fi
30123 rm -f conftest.err conftest.$ac_objext \
30124       conftest$ac_exeext conftest.$ac_ext
30125 LIBS=$ac_check_lib_save_LIBS
30126 fi
30127 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30128 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
30129 if test $ac_cv_lib_c_r_pthread_create = yes; then
30130   PTHREAD_LIB="-lc_r"
30131 else
30132   echo "$as_me:$LINENO: checking for pthread_create" >&5
30133 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
30134 if test "${ac_cv_func_pthread_create+set}" = set; then
30135   echo $ECHO_N "(cached) $ECHO_C" >&6
30136 else
30137   cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h.  */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h.  */
30143 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30145 #define pthread_create innocuous_pthread_create
30146
30147 /* System header to define __stub macros and hopefully few prototypes,
30148     which can conflict with char pthread_create (); below.
30149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30150     <limits.h> exists even on freestanding compilers.  */
30151
30152 #ifdef __STDC__
30153 # include <limits.h>
30154 #else
30155 # include <assert.h>
30156 #endif
30157
30158 #undef pthread_create
30159
30160 /* Override any gcc2 internal prototype to avoid an error.  */
30161 #ifdef __cplusplus
30162 extern "C"
30163 {
30164 #endif
30165 /* We use char because int might match the return type of a gcc2
30166    builtin and then its argument prototype would still apply.  */
30167 char pthread_create ();
30168 /* The GNU C library defines this for functions which it implements
30169     to always fail with ENOSYS.  Some functions are actually named
30170     something starting with __ and the normal name is an alias.  */
30171 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
30172 choke me
30173 #else
30174 char (*f) () = pthread_create;
30175 #endif
30176 #ifdef __cplusplus
30177 }
30178 #endif
30179
30180 int
30181 main ()
30182 {
30183 return f != pthread_create;
30184   ;
30185   return 0;
30186 }
30187 _ACEOF
30188 rm -f conftest.$ac_objext conftest$ac_exeext
30189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30190   (eval $ac_link) 2>conftest.er1
30191   ac_status=$?
30192   grep -v '^ *+' conftest.er1 >conftest.err
30193   rm -f conftest.er1
30194   cat conftest.err >&5
30195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30196   (exit $ac_status); } &&
30197          { ac_try='test -z "$ac_c_werror_flag"
30198                          || test ! -s conftest.err'
30199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30200   (eval $ac_try) 2>&5
30201   ac_status=$?
30202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30203   (exit $ac_status); }; } &&
30204          { ac_try='test -s conftest$ac_exeext'
30205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30206   (eval $ac_try) 2>&5
30207   ac_status=$?
30208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209   (exit $ac_status); }; }; then
30210   ac_cv_func_pthread_create=yes
30211 else
30212   echo "$as_me: failed program was:" >&5
30213 sed 's/^/| /' conftest.$ac_ext >&5
30214
30215 ac_cv_func_pthread_create=no
30216 fi
30217 rm -f conftest.err conftest.$ac_objext \
30218       conftest$ac_exeext conftest.$ac_ext
30219 fi
30220 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30221 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
30222
30223
30224 fi
30225
30226
30227 fi
30228
30229
30230 fi
30231
30232
30233
30234 cat >>confdefs.h <<\_ACEOF
30235 #define FDLIBS 1
30236 _ACEOF
30237
30238
30239
30240 CFLAGS=${CFLAGS--O}
30241
30242 if test x$have_gcc = xyes ; then
30243    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30244    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30245 fi
30246 LDFLAGS=${LDFLAGS--O}
30247 DB_LIBS="${SQL_LFLAGS}"
30248 CPPFLAGS="$CPPFLAGS"
30249 CFLAGS="$CFLAGS"
30250
30251
30252
30253
30254
30255
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266 OBJLIST=
30267
30268
30269 lld="lld"
30270 llu="llu"
30271
30272 WCFLAGS=
30273 WLDFLAGS=
30274
30275 #
30276 # Finally we set appropriate distribution specific
30277 #  variables and defaults
30278 #
30279 # PFILES are platform specific files
30280 PFILES="platforms/Makefile"
30281 PSCMD="ps -e"
30282 WIN32=
30283 MACOSX=
30284 hostname=`uname -n | cut -d '.' -f 1`
30285 if test x${hostname} = x ; then
30286   hostname="localhost"
30287 fi
30288 case "$DISTNAME" in
30289 aix)
30290         DISTVER=`uname -r`
30291         PSCMD="ps -e -o pid,comm"
30292         PFILES="${PFILES} \
30293            platforms/aix/Makefile"
30294         TAPEDRIVE="/dev/rmt0.1"
30295   ;;
30296 alpha)
30297         DISTVER=`uname -r`
30298         PTHREAD_LIB="-lpthread -lexc"
30299         if test "${CC}" = "gcc" ; then
30300            lld="lld"
30301            llu="llu"
30302         else
30303            lld="ld"
30304            llu="lu"
30305         fi
30306         TAPEDRIVE="/dev/nrmt0"
30307   ;;
30308 bsdi)
30309         DISTVER=`uname -a |awk '{print $3}'`
30310         TAPEDRIVE="/dev/nrmt0"
30311         PTHREAD_LIB="-pthread"
30312         CFLAGS="${CFLAGS} -pthread"
30313         PSCMD="ps -ax -o pid,command"
30314         lld="qd"
30315         llu="qu"
30316         PFILES="${PFILES} \
30317             platforms/bsdi/Makefile \
30318             platforms/bsdi/bacula-fd \
30319             platforms/bsdi/bacula-sd \
30320             platforms/bsdi/bacula-dir"
30321         largefile_support="yes"
30322   ;;
30323 cygwin)
30324         DISTVER=`uname -a |awk '{print $3}'`
30325         TAPEDRIVE="/dev/nrst0"
30326         WIN32=win32
30327         WCFLAGS="-mwindows"
30328         WLDFLAGS="-mwindows"
30329   ;;
30330 darwin)
30331         DISTVER=`uname -r`
30332         TAPEDRIVE="/dev/nst0"
30333         PSCMD="ps -e -o pid,command"
30334         MACOSX=macosx
30335         PFILES="${PFILES} \
30336            platforms/darwin/Makefile"
30337   ;;
30338 debian)
30339         DISTVER=`cat /etc/debian_version`
30340         TAPEDRIVE="/dev/nrst0"
30341         PSCMD="ps -e -o pid,command"
30342   ;;
30343 freebsd)
30344         DISTVER=`uname -a |awk '{print $3}'`
30345         VER=`echo $DISTVER | cut -c 1`
30346         if test x$VER = x4 ; then
30347            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30348            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30349         fi
30350         lld="qd"
30351         llu="qu"
30352         TAPEDRIVE="/dev/nrsa0"
30353         PSCMD="ps -ax -o pid,command"
30354         PFILES="${PFILES} \
30355             platforms/freebsd/Makefile \
30356             platforms/freebsd/bacula-fd \
30357             platforms/freebsd/bacula-sd \
30358             platforms/freebsd/bacula-dir"
30359         largefile_support="yes"
30360   ;;
30361 hpux)
30362         PSCMD="UNIX95=1; ps -e -o pid,comm"
30363         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30364         DISTVER=`uname -r`
30365         TAPEDRIVE="/dev/rmt/0hnb"
30366         PTHREAD_LIB="-lpthread"
30367         cat >>confdefs.h <<\_ACEOF
30368 #define _INCLUDE_LONGLONG 1
30369 _ACEOF
30370
30371   ;;
30372 irix)
30373         DISTVER=`uname -r`
30374         TAPEDRIVE="/dev/rmt/0cbn"
30375         PSCMD="ps -e -o pid,comm"
30376         PFILES="${PFILES} \
30377             platforms/irix/Makefile \
30378             platforms/irix/bacula-fd \
30379             platforms/irix/bacula-sd \
30380             platforms/irix/bacula-dir"
30381   ;;
30382 netbsd)
30383         DISTVER=`uname -a |awk '{print $3}'`
30384         lld="qd"
30385         llu="qu"
30386         TAPEDRIVE="/dev/nrst0"
30387         PSCMD="ps -ax -o pid,command"
30388         PTHREAD_LIB="-pthread"
30389         CFLAGS="${CFLAGS} -pthread"
30390   ;;
30391 openbsd)
30392         DISTVER=`uname -a |awk '{print $3}'`
30393         lld="qd"
30394         llu="qu"
30395         TAPEDRIVE="/dev/nrst0"
30396         PSCMD="ps -ax -o pid,command"
30397         PTHREAD_LIB="-pthread"
30398         CFLAGS="${CFLAGS} -pthread"
30399         PFILES="${PFILES} \
30400             platforms/openbsd/Makefile \
30401             platforms/openbsd/bacula-fd \
30402             platforms/openbsd/bacula-sd \
30403             platforms/openbsd/bacula-dir"
30404   ;;
30405 redhat)
30406         if test -f /etc/whitebox-release ; then
30407            f=/etc/whitebox-release
30408         else
30409            f=/etc/redhat-release
30410         fi
30411         if test `cat $f | grep release |\
30412                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30413            DISTVER="Enterprise "`cat $f | grep release |\
30414                     cut -f 6 -d ' '`
30415         else
30416             DISTVER=`cat /etc/redhat-release | grep release |\
30417                      cut -f 5 -d ' '`
30418         fi
30419         TAPEDRIVE="/dev/nst0"
30420         PSCMD="ps -e -o pid,command"
30421         PFILES="${PFILES} \
30422             platforms/redhat/Makefile \
30423             platforms/redhat/bacula-fd \
30424             platforms/redhat/bacula-sd \
30425             platforms/redhat/bacula-dir \
30426             platforms/redhat/bacula.spec \
30427             "
30428   ;;
30429 mandrake)
30430         DISTVER=`cat /etc/mandrake-release | grep release |\
30431            cut -f 5 -d ' '`
30432         TAPEDRIVE="/dev/nst0"
30433         PSCMD="ps -e -o pid,command"
30434         PFILES="${PFILES} \
30435             platforms/mandrake/Makefile \
30436             platforms/mandrake/bacula-fd \
30437             platforms/mandrake/bacula-sd \
30438             platforms/mandrake/bacula-dir \
30439             platforms/mandrake/bacula.spec \
30440             "
30441   ;;
30442 gentoo)
30443         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30444         TAPEDRIVE="/dev/nst0"
30445         PSCMD="ps -e -o pid,command"
30446         PFILES="${PFILES} \
30447             platforms/gentoo/Makefile \
30448          platforms/gentoo/bacula-init \
30449             platforms/gentoo/bacula-fd \
30450             platforms/gentoo/bacula-sd \
30451             platforms/gentoo/bacula-dir"
30452   ;;
30453 slackware)
30454         DISTVER=`cat /etc/slackware-version`
30455         TAPEDRIVE="/dev/nst0"
30456         PSCMD="ps -e -o pid,command"
30457         PFILES="${PFILES} \
30458             platforms/slackware/Makefile \
30459             platforms/slackware/rc.bacula-fd \
30460             platforms/slackware/rc.bacula-sd \
30461             platforms/slackware/rc.bacula-dir\
30462             platforms/slackware/functions.bacula"
30463   ;;
30464 solaris)
30465         DISTVER=`uname -r`
30466         TAPEDRIVE="/dev/rmt/0cbn"
30467         PSCMD="ps -e -o pid,comm"
30468         PFILES="${PFILES} \
30469             platforms/solaris/Makefile \
30470             platforms/solaris/bacula-fd \
30471             platforms/solaris/bacula-sd \
30472             platforms/solaris/bacula-dir"
30473         if test x$DISTVER = x5.6 ; then
30474             cat >>confdefs.h <<\_ACEOF
30475 #define HAVE_OLD_SOCKOPT 1
30476 _ACEOF
30477
30478         fi
30479         LIBS="$LIBS -lresolv"
30480   ;;
30481 suse)
30482         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30483             cut -f 3 -d ' '`
30484         TAPEDRIVE="/dev/nst0"
30485         PSCMD="ps -e -o pid,command"
30486         PFILES="${PFILES} \
30487             platforms/suse/Makefile \
30488             platforms/suse/bacula-fd \
30489             platforms/suse/bacula-sd \
30490             platforms/suse/bacula-dir \
30491             platforms/suse/bacula \
30492             platforms/suse/bacula.spec"
30493   ;;
30494 suse5)
30495         DISTNAME=suse
30496         DISTVER=5.x
30497         TAPEDRIVE="/dev/nst0"
30498         PSCMD="ps -e -o pid,command"
30499         PFILES="${PFILES} \
30500             platforms/suse/Makefile \
30501             platforms/suse/bacula-fd \
30502             platforms/suse/bacula-sd \
30503             platforms/suse/bacula-dir"
30504   ;;
30505 unknown)
30506         DISTVER=unknown
30507         TAPEDRIVE="/dev/nst0"
30508   ;;
30509 *)
30510   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30511   ;;
30512 esac
30513
30514
30515
30516 LIBS="$PTHREAD_LIB $LIBS"
30517
30518 cat >>confdefs.h <<_ACEOF
30519 #define lld "$lld"
30520 _ACEOF
30521
30522 cat >>confdefs.h <<_ACEOF
30523 #define llu "$llu"
30524 _ACEOF
30525
30526
30527
30528
30529
30530
30531
30532
30533 MCOMMON=./autoconf/Make.common
30534
30535
30536 if test "x${subsysdir}" = "x${sbindir}" ; then
30537    echo " "
30538    echo " "
30539    echo "You have set both --sbindir and --with-subsys-dir"
30540    echo "  equal to: ${subsysdir} "
30541    echo "This is not permitted. Please reconfigure."
30542    echo " "
30543    echo "Aborting configuration ..."
30544    echo " "
30545    echo " "
30546    exit 1
30547 fi
30548
30549                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30550           ac_config_commands="$ac_config_commands default"
30551 cat >confcache <<\_ACEOF
30552 # This file is a shell script that caches the results of configure
30553 # tests run on this system so they can be shared between configure
30554 # scripts and configure runs, see configure's option --config-cache.
30555 # It is not useful on other systems.  If it contains results you don't
30556 # want to keep, you may remove or edit it.
30557 #
30558 # config.status only pays attention to the cache file if you give it
30559 # the --recheck option to rerun configure.
30560 #
30561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30563 # following values.
30564
30565 _ACEOF
30566
30567 # The following way of writing the cache mishandles newlines in values,
30568 # but we know of no workaround that is simple, portable, and efficient.
30569 # So, don't put newlines in cache variables' values.
30570 # Ultrix sh set writes to stderr and can't be redirected directly,
30571 # and sets the high bit in the cache file unless we assign to the vars.
30572 {
30573   (set) 2>&1 |
30574     case `(ac_space=' '; set | grep ac_space) 2>&1` in
30575     *ac_space=\ *)
30576       # `set' does not quote correctly, so add quotes (double-quote
30577       # substitution turns \\\\ into \\, and sed turns \\ into \).
30578       sed -n \
30579         "s/'/'\\\\''/g;
30580           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30581       ;;
30582     *)
30583       # `set' quotes correctly as required by POSIX, so do not add quotes.
30584       sed -n \
30585         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
30586       ;;
30587     esac;
30588 } |
30589   sed '
30590      t clear
30591      : clear
30592      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30593      t end
30594      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30595      : end' >>confcache
30596 if diff $cache_file confcache >/dev/null 2>&1; then :; else
30597   if test -w $cache_file; then
30598     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
30599     cat confcache >$cache_file
30600   else
30601     echo "not updating unwritable cache $cache_file"
30602   fi
30603 fi
30604 rm -f confcache
30605
30606 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30607 # Let make expand exec_prefix.
30608 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30609
30610 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30611 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30612 # trailing colons and then remove the whole line if VPATH becomes empty
30613 # (actually we leave an empty line to preserve line numbers).
30614 if test "x$srcdir" = x.; then
30615   ac_vpsub='/^[  ]*VPATH[        ]*=/{
30616 s/:*\$(srcdir):*/:/;
30617 s/:*\${srcdir}:*/:/;
30618 s/:*@srcdir@:*/:/;
30619 s/^\([^=]*=[     ]*\):*/\1/;
30620 s/:*$//;
30621 s/^[^=]*=[       ]*$//;
30622 }'
30623 fi
30624
30625 DEFS=-DHAVE_CONFIG_H
30626
30627 ac_libobjs=
30628 ac_ltlibobjs=
30629 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30630   # 1. Remove the extension, and $U if already installed.
30631   ac_i=`echo "$ac_i" |
30632          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
30633   # 2. Add them.
30634   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30635   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30636 done
30637 LIBOBJS=$ac_libobjs
30638
30639 LTLIBOBJS=$ac_ltlibobjs
30640
30641
30642
30643 : ${CONFIG_STATUS=./config.status}
30644 ac_clean_files_save=$ac_clean_files
30645 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30646 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30647 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30648 cat >$CONFIG_STATUS <<_ACEOF
30649 #! $SHELL
30650 # Generated by $as_me.
30651 # Run this file to recreate the current configuration.
30652 # Compiler output produced by configure, useful for debugging
30653 # configure, is in config.log if it exists.
30654
30655 debug=false
30656 ac_cs_recheck=false
30657 ac_cs_silent=false
30658 SHELL=\${CONFIG_SHELL-$SHELL}
30659 _ACEOF
30660
30661 cat >>$CONFIG_STATUS <<\_ACEOF
30662 ## --------------------- ##
30663 ## M4sh Initialization.  ##
30664 ## --------------------- ##
30665
30666 # Be Bourne compatible
30667 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30668   emulate sh
30669   NULLCMD=:
30670   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30671   # is contrary to our usage.  Disable this feature.
30672   alias -g '${1+"$@"}'='"$@"'
30673 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30674   set -o posix
30675 fi
30676 DUALCASE=1; export DUALCASE # for MKS sh
30677
30678 # Support unset when possible.
30679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30680   as_unset=unset
30681 else
30682   as_unset=false
30683 fi
30684
30685
30686 # Work around bugs in pre-3.0 UWIN ksh.
30687 $as_unset ENV MAIL MAILPATH
30688 PS1='$ '
30689 PS2='> '
30690 PS4='+ '
30691
30692 # NLS nuisances.
30693 for as_var in \
30694   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30695   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30696   LC_TELEPHONE LC_TIME
30697 do
30698   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30699     eval $as_var=C; export $as_var
30700   else
30701     $as_unset $as_var
30702   fi
30703 done
30704
30705 # Required to use basename.
30706 if expr a : '\(a\)' >/dev/null 2>&1; then
30707   as_expr=expr
30708 else
30709   as_expr=false
30710 fi
30711
30712 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30713   as_basename=basename
30714 else
30715   as_basename=false
30716 fi
30717
30718
30719 # Name of the executable.
30720 as_me=`$as_basename "$0" ||
30721 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30722          X"$0" : 'X\(//\)$' \| \
30723          X"$0" : 'X\(/\)$' \| \
30724          .     : '\(.\)' 2>/dev/null ||
30725 echo X/"$0" |
30726     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30727           /^X\/\(\/\/\)$/{ s//\1/; q; }
30728           /^X\/\(\/\).*/{ s//\1/; q; }
30729           s/.*/./; q'`
30730
30731
30732 # PATH needs CR, and LINENO needs CR and PATH.
30733 # Avoid depending upon Character Ranges.
30734 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30735 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30736 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30737 as_cr_digits='0123456789'
30738 as_cr_alnum=$as_cr_Letters$as_cr_digits
30739
30740 # The user is always right.
30741 if test "${PATH_SEPARATOR+set}" != set; then
30742   echo "#! /bin/sh" >conf$$.sh
30743   echo  "exit 0"   >>conf$$.sh
30744   chmod +x conf$$.sh
30745   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30746     PATH_SEPARATOR=';'
30747   else
30748     PATH_SEPARATOR=:
30749   fi
30750   rm -f conf$$.sh
30751 fi
30752
30753
30754   as_lineno_1=$LINENO
30755   as_lineno_2=$LINENO
30756   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30757   test "x$as_lineno_1" != "x$as_lineno_2" &&
30758   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
30759   # Find who we are.  Look in the path if we contain no path at all
30760   # relative or not.
30761   case $0 in
30762     *[\\/]* ) as_myself=$0 ;;
30763     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30764 for as_dir in $PATH
30765 do
30766   IFS=$as_save_IFS
30767   test -z "$as_dir" && as_dir=.
30768   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30769 done
30770
30771        ;;
30772   esac
30773   # We did not find ourselves, most probably we were run as `sh COMMAND'
30774   # in which case we are not to be found in the path.
30775   if test "x$as_myself" = x; then
30776     as_myself=$0
30777   fi
30778   if test ! -f "$as_myself"; then
30779     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30780 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30781    { (exit 1); exit 1; }; }
30782   fi
30783   case $CONFIG_SHELL in
30784   '')
30785     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30786 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30787 do
30788   IFS=$as_save_IFS
30789   test -z "$as_dir" && as_dir=.
30790   for as_base in sh bash ksh sh5; do
30791          case $as_dir in
30792          /*)
30793            if ("$as_dir/$as_base" -c '
30794   as_lineno_1=$LINENO
30795   as_lineno_2=$LINENO
30796   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30797   test "x$as_lineno_1" != "x$as_lineno_2" &&
30798   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
30799              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30800              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30801              CONFIG_SHELL=$as_dir/$as_base
30802              export CONFIG_SHELL
30803              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30804            fi;;
30805          esac
30806        done
30807 done
30808 ;;
30809   esac
30810
30811   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30812   # uniformly replaced by the line number.  The first 'sed' inserts a
30813   # line-number line before each line; the second 'sed' does the real
30814   # work.  The second script uses 'N' to pair each line-number line
30815   # with the numbered line, and appends trailing '-' during
30816   # substitution so that $LINENO is not a special case at line end.
30817   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30818   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
30819   sed '=' <$as_myself |
30820     sed '
30821       N
30822       s,$,-,
30823       : loop
30824       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30825       t loop
30826       s,-$,,
30827       s,^['$as_cr_digits']*\n,,
30828     ' >$as_me.lineno &&
30829   chmod +x $as_me.lineno ||
30830     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30831 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30832    { (exit 1); exit 1; }; }
30833
30834   # Don't try to exec as it changes $[0], causing all sort of problems
30835   # (the dirname of $[0] is not the place where we might find the
30836   # original and so on.  Autoconf is especially sensible to this).
30837   . ./$as_me.lineno
30838   # Exit status is that of the last command.
30839   exit
30840 }
30841
30842
30843 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30844   *c*,-n*) ECHO_N= ECHO_C='
30845 ' ECHO_T='      ' ;;
30846   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30847   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
30848 esac
30849
30850 if expr a : '\(a\)' >/dev/null 2>&1; then
30851   as_expr=expr
30852 else
30853   as_expr=false
30854 fi
30855
30856 rm -f conf$$ conf$$.exe conf$$.file
30857 echo >conf$$.file
30858 if ln -s conf$$.file conf$$ 2>/dev/null; then
30859   # We could just check for DJGPP; but this test a) works b) is more generic
30860   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30861   if test -f conf$$.exe; then
30862     # Don't use ln at all; we don't have any links
30863     as_ln_s='cp -p'
30864   else
30865     as_ln_s='ln -s'
30866   fi
30867 elif ln conf$$.file conf$$ 2>/dev/null; then
30868   as_ln_s=ln
30869 else
30870   as_ln_s='cp -p'
30871 fi
30872 rm -f conf$$ conf$$.exe conf$$.file
30873
30874 if mkdir -p . 2>/dev/null; then
30875   as_mkdir_p=:
30876 else
30877   test -d ./-p && rmdir ./-p
30878   as_mkdir_p=false
30879 fi
30880
30881 as_executable_p="test -f"
30882
30883 # Sed expression to map a string onto a valid CPP name.
30884 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30885
30886 # Sed expression to map a string onto a valid variable name.
30887 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30888
30889
30890 # IFS
30891 # We need space, tab and new line, in precisely that order.
30892 as_nl='
30893 '
30894 IFS="   $as_nl"
30895
30896 # CDPATH.
30897 $as_unset CDPATH
30898
30899 exec 6>&1
30900
30901 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30902 # report actual input values of CONFIG_FILES etc. instead of their
30903 # values after options handling.  Logging --version etc. is OK.
30904 exec 5>>config.log
30905 {
30906   echo
30907   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30908 ## Running $as_me. ##
30909 _ASBOX
30910 } >&5
30911 cat >&5 <<_CSEOF
30912
30913 This file was extended by $as_me, which was
30914 generated by GNU Autoconf 2.59.  Invocation command line was
30915
30916   CONFIG_FILES    = $CONFIG_FILES
30917   CONFIG_HEADERS  = $CONFIG_HEADERS
30918   CONFIG_LINKS    = $CONFIG_LINKS
30919   CONFIG_COMMANDS = $CONFIG_COMMANDS
30920   $ $0 $@
30921
30922 _CSEOF
30923 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30924 echo >&5
30925 _ACEOF
30926
30927 # Files that config.status was made for.
30928 if test -n "$ac_config_files"; then
30929   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30930 fi
30931
30932 if test -n "$ac_config_headers"; then
30933   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30934 fi
30935
30936 if test -n "$ac_config_links"; then
30937   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30938 fi
30939
30940 if test -n "$ac_config_commands"; then
30941   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30942 fi
30943
30944 cat >>$CONFIG_STATUS <<\_ACEOF
30945
30946 ac_cs_usage="\
30947 \`$as_me' instantiates files from templates according to the
30948 current configuration.
30949
30950 Usage: $0 [OPTIONS] [FILE]...
30951
30952   -h, --help       print this help, then exit
30953   -V, --version    print version number, then exit
30954   -q, --quiet      do not print progress messages
30955   -d, --debug      don't remove temporary files
30956       --recheck    update $as_me by reconfiguring in the same conditions
30957   --file=FILE[:TEMPLATE]
30958                    instantiate the configuration file FILE
30959   --header=FILE[:TEMPLATE]
30960                    instantiate the configuration header FILE
30961
30962 Configuration files:
30963 $config_files
30964
30965 Configuration headers:
30966 $config_headers
30967
30968 Configuration commands:
30969 $config_commands
30970
30971 Report bugs to <bug-autoconf@gnu.org>."
30972 _ACEOF
30973
30974 cat >>$CONFIG_STATUS <<_ACEOF
30975 ac_cs_version="\\
30976 config.status
30977 configured by $0, generated by GNU Autoconf 2.59,
30978   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30979
30980 Copyright (C) 2003 Free Software Foundation, Inc.
30981 This config.status script is free software; the Free Software Foundation
30982 gives unlimited permission to copy, distribute and modify it."
30983 srcdir=$srcdir
30984 INSTALL="$INSTALL"
30985 _ACEOF
30986
30987 cat >>$CONFIG_STATUS <<\_ACEOF
30988 # If no file are specified by the user, then we need to provide default
30989 # value.  By we need to know if files were specified by the user.
30990 ac_need_defaults=:
30991 while test $# != 0
30992 do
30993   case $1 in
30994   --*=*)
30995     ac_option=`expr "x$1" : 'x\([^=]*\)='`
30996     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30997     ac_shift=:
30998     ;;
30999   -*)
31000     ac_option=$1
31001     ac_optarg=$2
31002     ac_shift=shift
31003     ;;
31004   *) # This is not an option, so the user has probably given explicit
31005      # arguments.
31006      ac_option=$1
31007      ac_need_defaults=false;;
31008   esac
31009
31010   case $ac_option in
31011   # Handling of the options.
31012 _ACEOF
31013 cat >>$CONFIG_STATUS <<\_ACEOF
31014   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31015     ac_cs_recheck=: ;;
31016   --version | --vers* | -V )
31017     echo "$ac_cs_version"; exit 0 ;;
31018   --he | --h)
31019     # Conflict between --help and --header
31020     { { echo "$as_me:$LINENO: error: ambiguous option: $1
31021 Try \`$0 --help' for more information." >&5
31022 echo "$as_me: error: ambiguous option: $1
31023 Try \`$0 --help' for more information." >&2;}
31024    { (exit 1); exit 1; }; };;
31025   --help | --hel | -h )
31026     echo "$ac_cs_usage"; exit 0 ;;
31027   --debug | --d* | -d )
31028     debug=: ;;
31029   --file | --fil | --fi | --f )
31030     $ac_shift
31031     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31032     ac_need_defaults=false;;
31033   --header | --heade | --head | --hea )
31034     $ac_shift
31035     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31036     ac_need_defaults=false;;
31037   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31038   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31039     ac_cs_silent=: ;;
31040
31041   # This is an error.
31042   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31043 Try \`$0 --help' for more information." >&5
31044 echo "$as_me: error: unrecognized option: $1
31045 Try \`$0 --help' for more information." >&2;}
31046    { (exit 1); exit 1; }; } ;;
31047
31048   *) ac_config_targets="$ac_config_targets $1" ;;
31049
31050   esac
31051   shift
31052 done
31053
31054 ac_configure_extra_args=
31055
31056 if $ac_cs_silent; then
31057   exec 6>/dev/null
31058   ac_configure_extra_args="$ac_configure_extra_args --silent"
31059 fi
31060
31061 _ACEOF
31062 cat >>$CONFIG_STATUS <<_ACEOF
31063 if \$ac_cs_recheck; then
31064   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31065   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31066 fi
31067
31068 _ACEOF
31069
31070 cat >>$CONFIG_STATUS <<_ACEOF
31071 #
31072 # INIT-COMMANDS section.
31073 #
31074
31075 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31076     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31077     # from automake.
31078     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31079     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31080     LINGUAS="${LINGUAS-%UNSET%}"
31081
31082
31083 _ACEOF
31084
31085
31086
31087 cat >>$CONFIG_STATUS <<\_ACEOF
31088 for ac_config_target in $ac_config_targets
31089 do
31090   case "$ac_config_target" in
31091   # Handling of arguments.
31092   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31093   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31094   "manpages/Makefile" ) CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31095   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31096   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31097   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31098   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31099   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31100   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31101   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31102   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31103   "scripts/bacula-ctl-dir" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31104   "scripts/bacula-ctl-fd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31105   "scripts/bacula-ctl-sd" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31106   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31107   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31108   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31109   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31110   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31111   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31112   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31113   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31114   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31115   "scripts/bgnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31116   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31117   "scripts/disk-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31118   "scripts/dvd-handler" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31119   "scripts/dvd-simulator" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31120   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31121   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31122   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31123   "scripts/wxconsole.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31124   "scripts/wxconsole.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31125   "scripts/wxconsole.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31126   "scripts/bat.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31127   "scripts/bat.desktop.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31128   "scripts/bat.desktop.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31129   "scripts/bat.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31130   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31131   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31132   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31133   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31134   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31135   "src/gnome2-console/bgnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31136   "src/qt-console/bat.conf" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31137   "src/qt-console/bat.pro" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31138   "src/qt-console/install_conf_file" ) CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31139   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31140   "src/wx-console/bwx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31141   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31142   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31143   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31144   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31145   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31146   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31147   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31148   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31149   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31150   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31151   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31152   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31153   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31154   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31155   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31156   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31157   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31158   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31159   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31160   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31161   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31162   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31163   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31164   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31165   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31166   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31167   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31168   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31169   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31170   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31171   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31172   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31173   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31174   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31175   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31176   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31177   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31178   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31179   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31180   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31181   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31182   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31183   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31184   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31185   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31186   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31187   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31188   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31189   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31190   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31191   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31192   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31193   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31194   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31195   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31196   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31197   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31198   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31200    { (exit 1); exit 1; }; };;
31201   esac
31202 done
31203
31204 # If the user did not use the arguments to specify the items to instantiate,
31205 # then the envvar interface is used.  Set only those that are not.
31206 # We use the long form for the default assignment because of an extremely
31207 # bizarre bug on SunOS 4.1.3.
31208 if $ac_need_defaults; then
31209   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31210   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31211   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31212 fi
31213
31214 # Have a temporary directory for convenience.  Make it in the build tree
31215 # simply because there is no reason to put it here, and in addition,
31216 # creating and moving files from /tmp can sometimes cause problems.
31217 # Create a temporary directory, and hook for its removal unless debugging.
31218 $debug ||
31219 {
31220   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31221   trap '{ (exit 1); exit 1; }' 1 2 13 15
31222 }
31223
31224 # Create a (secure) tmp directory for tmp files.
31225
31226 {
31227   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31228   test -n "$tmp" && test -d "$tmp"
31229 }  ||
31230 {
31231   tmp=./confstat$$-$RANDOM
31232   (umask 077 && mkdir $tmp)
31233 } ||
31234 {
31235    echo "$me: cannot create a temporary directory in ." >&2
31236    { (exit 1); exit 1; }
31237 }
31238
31239 _ACEOF
31240
31241 cat >>$CONFIG_STATUS <<_ACEOF
31242
31243 #
31244 # CONFIG_FILES section.
31245 #
31246
31247 # No need to generate the scripts if there are no CONFIG_FILES.
31248 # This happens for instance when ./config.status config.h
31249 if test -n "\$CONFIG_FILES"; then
31250   # Protect against being on the right side of a sed subst in config.status.
31251   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31252    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31253 s,@SHELL@,$SHELL,;t t
31254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31260 s,@exec_prefix@,$exec_prefix,;t t
31261 s,@prefix@,$prefix,;t t
31262 s,@program_transform_name@,$program_transform_name,;t t
31263 s,@bindir@,$bindir,;t t
31264 s,@sbindir@,$sbindir,;t t
31265 s,@libexecdir@,$libexecdir,;t t
31266 s,@datadir@,$datadir,;t t
31267 s,@sysconfdir@,$sysconfdir,;t t
31268 s,@sharedstatedir@,$sharedstatedir,;t t
31269 s,@localstatedir@,$localstatedir,;t t
31270 s,@libdir@,$libdir,;t t
31271 s,@includedir@,$includedir,;t t
31272 s,@oldincludedir@,$oldincludedir,;t t
31273 s,@infodir@,$infodir,;t t
31274 s,@mandir@,$mandir,;t t
31275 s,@build_alias@,$build_alias,;t t
31276 s,@host_alias@,$host_alias,;t t
31277 s,@target_alias@,$target_alias,;t t
31278 s,@DEFS@,$DEFS,;t t
31279 s,@ECHO_C@,$ECHO_C,;t t
31280 s,@ECHO_N@,$ECHO_N,;t t
31281 s,@ECHO_T@,$ECHO_T,;t t
31282 s,@LIBS@,$LIBS,;t t
31283 s,@BUILD_DIR@,$BUILD_DIR,;t t
31284 s,@TOP_DIR@,$TOP_DIR,;t t
31285 s,@TRUEPRG@,$TRUEPRG,;t t
31286 s,@FALSEPRG@,$FALSEPRG,;t t
31287 s,@VERSION@,$VERSION,;t t
31288 s,@DATE@,$DATE,;t t
31289 s,@LSMDATE@,$LSMDATE,;t t
31290 s,@CC@,$CC,;t t
31291 s,@CFLAGS@,$CFLAGS,;t t
31292 s,@LDFLAGS@,$LDFLAGS,;t t
31293 s,@CPPFLAGS@,$CPPFLAGS,;t t
31294 s,@ac_ct_CC@,$ac_ct_CC,;t t
31295 s,@EXEEXT@,$EXEEXT,;t t
31296 s,@OBJEXT@,$OBJEXT,;t t
31297 s,@CXX@,$CXX,;t t
31298 s,@CXXFLAGS@,$CXXFLAGS,;t t
31299 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
31300 s,@CPP@,$CPP,;t t
31301 s,@EGREP@,$EGREP,;t t
31302 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31303 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31304 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31305 s,@RANLIB@,$RANLIB,;t t
31306 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
31307 s,@MV@,$MV,;t t
31308 s,@RM@,$RM,;t t
31309 s,@CP@,$CP,;t t
31310 s,@SED@,$SED,;t t
31311 s,@ECHO@,$ECHO,;t t
31312 s,@CMP@,$CMP,;t t
31313 s,@TBL@,$TBL,;t t
31314 s,@AR@,$AR,;t t
31315 s,@OPENSSL@,$OPENSSL,;t t
31316 s,@MTX@,$MTX,;t t
31317 s,@DD@,$DD,;t t
31318 s,@MKISOFS@,$MKISOFS,;t t
31319 s,@PYTHON@,$PYTHON,;t t
31320 s,@GROWISOFS@,$GROWISOFS,;t t
31321 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
31322 s,@DVDRWFORMAT@,$DVDRWFORMAT,;t t
31323 s,@PKGCONFIG@,$PKGCONFIG,;t t
31324 s,@QMAKE@,$QMAKE,;t t
31325 s,@QMAKEQT4@,$QMAKEQT4,;t t
31326 s,@WXCONFIG@,$WXCONFIG,;t t
31327 s,@WXFLAGS@,$WXFLAGS,;t t
31328 s,@CDRECORD@,$CDRECORD,;t t
31329 s,@PIDOF@,$PIDOF,;t t
31330 s,@AWK@,$AWK,;t t
31331 s,@ARFLAGS@,$ARFLAGS,;t t
31332 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
31333 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
31334 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
31335 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
31336 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
31337 s,@build@,$build,;t t
31338 s,@build_cpu@,$build_cpu,;t t
31339 s,@build_vendor@,$build_vendor,;t t
31340 s,@build_os@,$build_os,;t t
31341 s,@host@,$host,;t t
31342 s,@host_cpu@,$host_cpu,;t t
31343 s,@host_vendor@,$host_vendor,;t t
31344 s,@host_os@,$host_os,;t t
31345 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
31346 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
31347 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
31348 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
31349 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
31350 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
31351 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
31352 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
31353 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
31354 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
31355 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
31356 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
31357 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
31358 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
31359 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
31360 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
31361 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
31362 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
31363 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
31364 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
31365 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
31366 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
31367 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
31368 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
31369 s,@SET_MAKE@,$SET_MAKE,;t t
31370 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
31371 s,@USE_NLS@,$USE_NLS,;t t
31372 s,@MSGFMT@,$MSGFMT,;t t
31373 s,@GMSGFMT@,$GMSGFMT,;t t
31374 s,@XGETTEXT@,$XGETTEXT,;t t
31375 s,@MSGMERGE@,$MSGMERGE,;t t
31376 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
31377 s,@LIBICONV@,$LIBICONV,;t t
31378 s,@LTLIBICONV@,$LTLIBICONV,;t t
31379 s,@INTLLIBS@,$INTLLIBS,;t t
31380 s,@LIBINTL@,$LIBINTL,;t t
31381 s,@LTLIBINTL@,$LTLIBINTL,;t t
31382 s,@POSUB@,$POSUB,;t t
31383 s,@GLIBC2@,$GLIBC2,;t t
31384 s,@ALLOCA@,$ALLOCA,;t t
31385 s,@GLIBC21@,$GLIBC21,;t t
31386 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
31387 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
31388 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
31389 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
31390 s,@INTLBISON@,$INTLBISON,;t t
31391 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
31392 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
31393 s,@CATOBJEXT@,$CATOBJEXT,;t t
31394 s,@DATADIRNAME@,$DATADIRNAME,;t t
31395 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
31396 s,@GENCAT@,$GENCAT,;t t
31397 s,@INTLOBJS@,$INTLOBJS,;t t
31398 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
31399 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
31400 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
31401 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
31402 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
31403 s,@GNOME_DIR@,$GNOME_DIR,;t t
31404 s,@BAT_DIR@,$BAT_DIR,;t t
31405 s,@QWT_INC@,$QWT_INC,;t t
31406 s,@QWT_LDFLAGS@,$QWT_LDFLAGS,;t t
31407 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
31408 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
31409 s,@WX_DIR@,$WX_DIR,;t t
31410 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
31411 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
31412 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
31413 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
31414 s,@STATIC_FD@,$STATIC_FD,;t t
31415 s,@STATIC_SD@,$STATIC_SD,;t t
31416 s,@STATIC_DIR@,$STATIC_DIR,;t t
31417 s,@STATIC_CONS@,$STATIC_CONS,;t t
31418 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
31419 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
31420 s,@ALL_DIRS@,$ALL_DIRS,;t t
31421 s,@DIRD_DIR@,$DIRD_DIR,;t t
31422 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
31423 s,@STORED_DIR@,$STORED_DIR,;t t
31424 s,@CONS_INC@,$CONS_INC,;t t
31425 s,@CONS_OBJ@,$CONS_OBJ,;t t
31426 s,@CONS_SRC@,$CONS_SRC,;t t
31427 s,@CONS_LIBS@,$CONS_LIBS,;t t
31428 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
31429 s,@READLINE_SRC@,$READLINE_SRC,;t t
31430 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
31431 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
31432 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
31433 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
31434 s,@working_dir@,$working_dir,;t t
31435 s,@archivedir@,$archivedir,;t t
31436 s,@scriptdir@,$scriptdir,;t t
31437 s,@dump_email@,$dump_email,;t t
31438 s,@job_email@,$job_email,;t t
31439 s,@smtp_host@,$smtp_host,;t t
31440 s,@piddir@,$piddir,;t t
31441 s,@subsysdir@,$subsysdir,;t t
31442 s,@baseport@,$baseport,;t t
31443 s,@dir_port@,$dir_port,;t t
31444 s,@fd_port@,$fd_port,;t t
31445 s,@sd_port@,$sd_port,;t t
31446 s,@dir_password@,$dir_password,;t t
31447 s,@fd_password@,$fd_password,;t t
31448 s,@sd_password@,$sd_password,;t t
31449 s,@mon_dir_password@,$mon_dir_password,;t t
31450 s,@mon_fd_password@,$mon_fd_password,;t t
31451 s,@mon_sd_password@,$mon_sd_password,;t t
31452 s,@db_name@,$db_name,;t t
31453 s,@db_user@,$db_user,;t t
31454 s,@dir_user@,$dir_user,;t t
31455 s,@dir_group@,$dir_group,;t t
31456 s,@sd_user@,$sd_user,;t t
31457 s,@sd_group@,$sd_group,;t t
31458 s,@fd_user@,$fd_user,;t t
31459 s,@fd_group@,$fd_group,;t t
31460 s,@SBINPERM@,$SBINPERM,;t t
31461 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
31462 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
31463 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
31464 s,@cats@,$cats,;t t
31465 s,@DB_TYPE@,$DB_TYPE,;t t
31466 s,@GETCONF@,$GETCONF,;t t
31467 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
31468 s,@X_CFLAGS@,$X_CFLAGS,;t t
31469 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
31470 s,@X_LIBS@,$X_LIBS,;t t
31471 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
31472 s,@LIBOBJS@,$LIBOBJS,;t t
31473 s,@FDLIBS@,$FDLIBS,;t t
31474 s,@DEBUG@,$DEBUG,;t t
31475 s,@DINCLUDE@,$DINCLUDE,;t t
31476 s,@DLIB@,$DLIB,;t t
31477 s,@DB_LIBS@,$DB_LIBS,;t t
31478 s,@WCFLAGS@,$WCFLAGS,;t t
31479 s,@WLDFLAGS@,$WLDFLAGS,;t t
31480 s,@WRAPLIBS@,$WRAPLIBS,;t t
31481 s,@OBJLIST@,$OBJLIST,;t t
31482 s,@hostname@,$hostname,;t t
31483 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
31484 s,@PSCMD@,$PSCMD,;t t
31485 s,@WIN32@,$WIN32,;t t
31486 s,@MACOSX@,$MACOSX,;t t
31487 s,@DISTNAME@,$DISTNAME,;t t
31488 s,@DISTVER@,$DISTVER,;t t
31489 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
31490 /@MCOMMON@/r $MCOMMON
31491 s,@MCOMMON@,,;t t
31492 CEOF
31493
31494 _ACEOF
31495
31496   cat >>$CONFIG_STATUS <<\_ACEOF
31497   # Split the substitutions into bite-sized pieces for seds with
31498   # small command number limits, like on Digital OSF/1 and HP-UX.
31499   ac_max_sed_lines=48
31500   ac_sed_frag=1 # Number of current file.
31501   ac_beg=1 # First line for current file.
31502   ac_end=$ac_max_sed_lines # Line after last line for current file.
31503   ac_more_lines=:
31504   ac_sed_cmds=
31505   while $ac_more_lines; do
31506     if test $ac_beg -gt 1; then
31507       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31508     else
31509       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
31510     fi
31511     if test ! -s $tmp/subs.frag; then
31512       ac_more_lines=false
31513     else
31514       # The purpose of the label and of the branching condition is to
31515       # speed up the sed processing (if there are no `@' at all, there
31516       # is no need to browse any of the substitutions).
31517       # These are the two extra sed commands mentioned above.
31518       (echo ':t
31519   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
31520       if test -z "$ac_sed_cmds"; then
31521         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
31522       else
31523         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
31524       fi
31525       ac_sed_frag=`expr $ac_sed_frag + 1`
31526       ac_beg=$ac_end
31527       ac_end=`expr $ac_end + $ac_max_sed_lines`
31528     fi
31529   done
31530   if test -z "$ac_sed_cmds"; then
31531     ac_sed_cmds=cat
31532   fi
31533 fi # test -n "$CONFIG_FILES"
31534
31535 _ACEOF
31536 cat >>$CONFIG_STATUS <<\_ACEOF
31537 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
31538   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31539   case $ac_file in
31540   - | *:- | *:-:* ) # input from stdin
31541         cat >$tmp/stdin
31542         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31543         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31544   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31545         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31546   * )   ac_file_in=$ac_file.in ;;
31547   esac
31548
31549   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
31550   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31552          X"$ac_file" : 'X\(//\)[^/]' \| \
31553          X"$ac_file" : 'X\(//\)$' \| \
31554          X"$ac_file" : 'X\(/\)' \| \
31555          .     : '\(.\)' 2>/dev/null ||
31556 echo X"$ac_file" |
31557     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31558           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31559           /^X\(\/\/\)$/{ s//\1/; q; }
31560           /^X\(\/\).*/{ s//\1/; q; }
31561           s/.*/./; q'`
31562   { if $as_mkdir_p; then
31563     mkdir -p "$ac_dir"
31564   else
31565     as_dir="$ac_dir"
31566     as_dirs=
31567     while test ! -d "$as_dir"; do
31568       as_dirs="$as_dir $as_dirs"
31569       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31571          X"$as_dir" : 'X\(//\)[^/]' \| \
31572          X"$as_dir" : 'X\(//\)$' \| \
31573          X"$as_dir" : 'X\(/\)' \| \
31574          .     : '\(.\)' 2>/dev/null ||
31575 echo X"$as_dir" |
31576     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31577           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31578           /^X\(\/\/\)$/{ s//\1/; q; }
31579           /^X\(\/\).*/{ s//\1/; q; }
31580           s/.*/./; q'`
31581     done
31582     test ! -n "$as_dirs" || mkdir $as_dirs
31583   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31584 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31585    { (exit 1); exit 1; }; }; }
31586
31587   ac_builddir=.
31588
31589 if test "$ac_dir" != .; then
31590   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31591   # A "../" for each directory in $ac_dir_suffix.
31592   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31593 else
31594   ac_dir_suffix= ac_top_builddir=
31595 fi
31596
31597 case $srcdir in
31598   .)  # No --srcdir option.  We are building in place.
31599     ac_srcdir=.
31600     if test -z "$ac_top_builddir"; then
31601        ac_top_srcdir=.
31602     else
31603        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31604     fi ;;
31605   [\\/]* | ?:[\\/]* )  # Absolute path.
31606     ac_srcdir=$srcdir$ac_dir_suffix;
31607     ac_top_srcdir=$srcdir ;;
31608   *) # Relative path.
31609     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31610     ac_top_srcdir=$ac_top_builddir$srcdir ;;
31611 esac
31612
31613 # Do not use `cd foo && pwd` to compute absolute paths, because
31614 # the directories may not exist.
31615 case `pwd` in
31616 .) ac_abs_builddir="$ac_dir";;
31617 *)
31618   case "$ac_dir" in
31619   .) ac_abs_builddir=`pwd`;;
31620   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31621   *) ac_abs_builddir=`pwd`/"$ac_dir";;
31622   esac;;
31623 esac
31624 case $ac_abs_builddir in
31625 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31626 *)
31627   case ${ac_top_builddir}. in
31628   .) ac_abs_top_builddir=$ac_abs_builddir;;
31629   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31630   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31631   esac;;
31632 esac
31633 case $ac_abs_builddir in
31634 .) ac_abs_srcdir=$ac_srcdir;;
31635 *)
31636   case $ac_srcdir in
31637   .) ac_abs_srcdir=$ac_abs_builddir;;
31638   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31639   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31640   esac;;
31641 esac
31642 case $ac_abs_builddir in
31643 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31644 *)
31645   case $ac_top_srcdir in
31646   .) ac_abs_top_srcdir=$ac_abs_builddir;;
31647   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31648   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31649   esac;;
31650 esac
31651
31652
31653   case $INSTALL in
31654   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31655   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
31656   esac
31657
31658   if test x"$ac_file" != x-; then
31659     { echo "$as_me:$LINENO: creating $ac_file" >&5
31660 echo "$as_me: creating $ac_file" >&6;}
31661     rm -f "$ac_file"
31662   fi
31663   # Let's still pretend it is `configure' which instantiates (i.e., don't
31664   # use $as_me), people would be surprised to read:
31665   #    /* config.h.  Generated by config.status.  */
31666   if test x"$ac_file" = x-; then
31667     configure_input=
31668   else
31669     configure_input="$ac_file.  "
31670   fi
31671   configure_input=$configure_input"Generated from `echo $ac_file_in |
31672                                      sed 's,.*/,,'` by configure."
31673
31674   # First look for the input files in the build tree, otherwise in the
31675   # src tree.
31676   ac_file_inputs=`IFS=:
31677     for f in $ac_file_in; do
31678       case $f in
31679       -) echo $tmp/stdin ;;
31680       [\\/$]*)
31681          # Absolute (can't be DOS-style, as IFS=:)
31682          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31683 echo "$as_me: error: cannot find input file: $f" >&2;}
31684    { (exit 1); exit 1; }; }
31685          echo "$f";;
31686       *) # Relative
31687          if test -f "$f"; then
31688            # Build tree
31689            echo "$f"
31690          elif test -f "$srcdir/$f"; then
31691            # Source tree
31692            echo "$srcdir/$f"
31693          else
31694            # /dev/null tree
31695            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31696 echo "$as_me: error: cannot find input file: $f" >&2;}
31697    { (exit 1); exit 1; }; }
31698          fi;;
31699       esac
31700     done` || { (exit 1); exit 1; }
31701 _ACEOF
31702 cat >>$CONFIG_STATUS <<_ACEOF
31703   sed "$ac_vpsub
31704 $extrasub
31705 _ACEOF
31706 cat >>$CONFIG_STATUS <<\_ACEOF
31707 :t
31708 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31709 s,@configure_input@,$configure_input,;t t
31710 s,@srcdir@,$ac_srcdir,;t t
31711 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31712 s,@top_srcdir@,$ac_top_srcdir,;t t
31713 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31714 s,@builddir@,$ac_builddir,;t t
31715 s,@abs_builddir@,$ac_abs_builddir,;t t
31716 s,@top_builddir@,$ac_top_builddir,;t t
31717 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31718 s,@INSTALL@,$ac_INSTALL,;t t
31719 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31720   rm -f $tmp/stdin
31721   if test x"$ac_file" != x-; then
31722     mv $tmp/out $ac_file
31723   else
31724     cat $tmp/out
31725     rm -f $tmp/out
31726   fi
31727
31728 done
31729 _ACEOF
31730 cat >>$CONFIG_STATUS <<\_ACEOF
31731
31732 #
31733 # CONFIG_HEADER section.
31734 #
31735
31736 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
31737 # NAME is the cpp macro being defined and VALUE is the value it is being given.
31738 #
31739 # ac_d sets the value in "#define NAME VALUE" lines.
31740 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
31741 ac_dB='[         ].*$,\1#\2'
31742 ac_dC=' '
31743 ac_dD=',;t'
31744 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
31745 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
31746 ac_uB='$,\1#\2define\3'
31747 ac_uC=' '
31748 ac_uD=',;t'
31749
31750 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
31751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
31752   case $ac_file in
31753   - | *:- | *:-:* ) # input from stdin
31754         cat >$tmp/stdin
31755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
31758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
31759   * )   ac_file_in=$ac_file.in ;;
31760   esac
31761
31762   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
31763 echo "$as_me: creating $ac_file" >&6;}
31764
31765   # First look for the input files in the build tree, otherwise in the
31766   # src tree.
31767   ac_file_inputs=`IFS=:
31768     for f in $ac_file_in; do
31769       case $f in
31770       -) echo $tmp/stdin ;;
31771       [\\/$]*)
31772          # Absolute (can't be DOS-style, as IFS=:)
31773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31774 echo "$as_me: error: cannot find input file: $f" >&2;}
31775    { (exit 1); exit 1; }; }
31776          # Do quote $f, to prevent DOS paths from being IFS'd.
31777          echo "$f";;
31778       *) # Relative
31779          if test -f "$f"; then
31780            # Build tree
31781            echo "$f"
31782          elif test -f "$srcdir/$f"; then
31783            # Source tree
31784            echo "$srcdir/$f"
31785          else
31786            # /dev/null tree
31787            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31788 echo "$as_me: error: cannot find input file: $f" >&2;}
31789    { (exit 1); exit 1; }; }
31790          fi;;
31791       esac
31792     done` || { (exit 1); exit 1; }
31793   # Remove the trailing spaces.
31794   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
31795
31796 _ACEOF
31797
31798 # Transform confdefs.h into two sed scripts, `conftest.defines' and
31799 # `conftest.undefs', that substitutes the proper values into
31800 # config.h.in to produce config.h.  The first handles `#define'
31801 # templates, and the second `#undef' templates.
31802 # And first: Protect against being on the right side of a sed subst in
31803 # config.status.  Protect against being in an unquoted here document
31804 # in config.status.
31805 rm -f conftest.defines conftest.undefs
31806 # Using a here document instead of a string reduces the quoting nightmare.
31807 # Putting comments in sed scripts is not portable.
31808 #
31809 # `end' is used to avoid that the second main sed command (meant for
31810 # 0-ary CPP macros) applies to n-ary macro definitions.
31811 # See the Autoconf documentation for `clear'.
31812 cat >confdef2sed.sed <<\_ACEOF
31813 s/[\\&,]/\\&/g
31814 s,[\\$`],\\&,g
31815 t clear
31816 : clear
31817 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
31818 t end
31819 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
31820 : end
31821 _ACEOF
31822 # If some macros were called several times there might be several times
31823 # the same #defines, which is useless.  Nevertheless, we may not want to
31824 # sort them, since we want the *last* AC-DEFINE to be honored.
31825 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
31826 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
31827 rm -f confdef2sed.sed
31828
31829 # This sed command replaces #undef with comments.  This is necessary, for
31830 # example, in the case of _POSIX_SOURCE, which is predefined and required
31831 # on some systems where configure will not decide to define it.
31832 cat >>conftest.undefs <<\_ACEOF
31833 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
31834 _ACEOF
31835
31836 # Break up conftest.defines because some shells have a limit on the size
31837 # of here documents, and old seds have small limits too (100 cmds).
31838 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
31839 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
31840 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
31841 echo '  :' >>$CONFIG_STATUS
31842 rm -f conftest.tail
31843 while grep . conftest.defines >/dev/null
31844 do
31845   # Write a limited-size here document to $tmp/defines.sed.
31846   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
31847   # Speed up: don't consider the non `#define' lines.
31848   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
31849   # Work around the forget-to-reset-the-flag bug.
31850   echo 't clr' >>$CONFIG_STATUS
31851   echo ': clr' >>$CONFIG_STATUS
31852   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
31853   echo 'CEOF
31854   sed -f $tmp/defines.sed $tmp/in >$tmp/out
31855   rm -f $tmp/in
31856   mv $tmp/out $tmp/in
31857 ' >>$CONFIG_STATUS
31858   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
31859   rm -f conftest.defines
31860   mv conftest.tail conftest.defines
31861 done
31862 rm -f conftest.defines
31863 echo '  fi # grep' >>$CONFIG_STATUS
31864 echo >>$CONFIG_STATUS
31865
31866 # Break up conftest.undefs because some shells have a limit on the size
31867 # of here documents, and old seds have small limits too (100 cmds).
31868 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
31869 rm -f conftest.tail
31870 while grep . conftest.undefs >/dev/null
31871 do
31872   # Write a limited-size here document to $tmp/undefs.sed.
31873   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
31874   # Speed up: don't consider the non `#undef'
31875   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
31876   # Work around the forget-to-reset-the-flag bug.
31877   echo 't clr' >>$CONFIG_STATUS
31878   echo ': clr' >>$CONFIG_STATUS
31879   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
31880   echo 'CEOF
31881   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
31882   rm -f $tmp/in
31883   mv $tmp/out $tmp/in
31884 ' >>$CONFIG_STATUS
31885   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
31886   rm -f conftest.undefs
31887   mv conftest.tail conftest.undefs
31888 done
31889 rm -f conftest.undefs
31890
31891 cat >>$CONFIG_STATUS <<\_ACEOF
31892   # Let's still pretend it is `configure' which instantiates (i.e., don't
31893   # use $as_me), people would be surprised to read:
31894   #    /* config.h.  Generated by config.status.  */
31895   if test x"$ac_file" = x-; then
31896     echo "/* Generated by configure.  */" >$tmp/config.h
31897   else
31898     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
31899   fi
31900   cat $tmp/in >>$tmp/config.h
31901   rm -f $tmp/in
31902   if test x"$ac_file" != x-; then
31903     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
31904       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31905 echo "$as_me: $ac_file is unchanged" >&6;}
31906     else
31907       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
31908 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31909          X"$ac_file" : 'X\(//\)[^/]' \| \
31910          X"$ac_file" : 'X\(//\)$' \| \
31911          X"$ac_file" : 'X\(/\)' \| \
31912          .     : '\(.\)' 2>/dev/null ||
31913 echo X"$ac_file" |
31914     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31915           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31916           /^X\(\/\/\)$/{ s//\1/; q; }
31917           /^X\(\/\).*/{ s//\1/; q; }
31918           s/.*/./; q'`
31919       { if $as_mkdir_p; then
31920     mkdir -p "$ac_dir"
31921   else
31922     as_dir="$ac_dir"
31923     as_dirs=
31924     while test ! -d "$as_dir"; do
31925       as_dirs="$as_dir $as_dirs"
31926       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31928          X"$as_dir" : 'X\(//\)[^/]' \| \
31929          X"$as_dir" : 'X\(//\)$' \| \
31930          X"$as_dir" : 'X\(/\)' \| \
31931          .     : '\(.\)' 2>/dev/null ||
31932 echo X"$as_dir" |
31933     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31934           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31935           /^X\(\/\/\)$/{ s//\1/; q; }
31936           /^X\(\/\).*/{ s//\1/; q; }
31937           s/.*/./; q'`
31938     done
31939     test ! -n "$as_dirs" || mkdir $as_dirs
31940   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31941 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31942    { (exit 1); exit 1; }; }; }
31943
31944       rm -f $ac_file
31945       mv $tmp/config.h $ac_file
31946     fi
31947   else
31948     cat $tmp/config.h
31949     rm -f $tmp/config.h
31950   fi
31951 done
31952 _ACEOF
31953 cat >>$CONFIG_STATUS <<\_ACEOF
31954
31955 #
31956 # CONFIG_COMMANDS section.
31957 #
31958 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
31959   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
31960   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
31961   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
31962 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31963          X"$ac_dest" : 'X\(//\)[^/]' \| \
31964          X"$ac_dest" : 'X\(//\)$' \| \
31965          X"$ac_dest" : 'X\(/\)' \| \
31966          .     : '\(.\)' 2>/dev/null ||
31967 echo X"$ac_dest" |
31968     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31969           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31970           /^X\(\/\/\)$/{ s//\1/; q; }
31971           /^X\(\/\).*/{ s//\1/; q; }
31972           s/.*/./; q'`
31973   { if $as_mkdir_p; then
31974     mkdir -p "$ac_dir"
31975   else
31976     as_dir="$ac_dir"
31977     as_dirs=
31978     while test ! -d "$as_dir"; do
31979       as_dirs="$as_dir $as_dirs"
31980       as_dir=`(dirname "$as_dir") 2>/dev/null ||
31981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31982          X"$as_dir" : 'X\(//\)[^/]' \| \
31983          X"$as_dir" : 'X\(//\)$' \| \
31984          X"$as_dir" : 'X\(/\)' \| \
31985          .     : '\(.\)' 2>/dev/null ||
31986 echo X"$as_dir" |
31987     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31988           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31989           /^X\(\/\/\)$/{ s//\1/; q; }
31990           /^X\(\/\).*/{ s//\1/; q; }
31991           s/.*/./; q'`
31992     done
31993     test ! -n "$as_dirs" || mkdir $as_dirs
31994   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31996    { (exit 1); exit 1; }; }; }
31997
31998   ac_builddir=.
31999
32000 if test "$ac_dir" != .; then
32001   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32002   # A "../" for each directory in $ac_dir_suffix.
32003   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32004 else
32005   ac_dir_suffix= ac_top_builddir=
32006 fi
32007
32008 case $srcdir in
32009   .)  # No --srcdir option.  We are building in place.
32010     ac_srcdir=.
32011     if test -z "$ac_top_builddir"; then
32012        ac_top_srcdir=.
32013     else
32014        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32015     fi ;;
32016   [\\/]* | ?:[\\/]* )  # Absolute path.
32017     ac_srcdir=$srcdir$ac_dir_suffix;
32018     ac_top_srcdir=$srcdir ;;
32019   *) # Relative path.
32020     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32021     ac_top_srcdir=$ac_top_builddir$srcdir ;;
32022 esac
32023
32024 # Do not use `cd foo && pwd` to compute absolute paths, because
32025 # the directories may not exist.
32026 case `pwd` in
32027 .) ac_abs_builddir="$ac_dir";;
32028 *)
32029   case "$ac_dir" in
32030   .) ac_abs_builddir=`pwd`;;
32031   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32032   *) ac_abs_builddir=`pwd`/"$ac_dir";;
32033   esac;;
32034 esac
32035 case $ac_abs_builddir in
32036 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32037 *)
32038   case ${ac_top_builddir}. in
32039   .) ac_abs_top_builddir=$ac_abs_builddir;;
32040   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32041   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32042   esac;;
32043 esac
32044 case $ac_abs_builddir in
32045 .) ac_abs_srcdir=$ac_srcdir;;
32046 *)
32047   case $ac_srcdir in
32048   .) ac_abs_srcdir=$ac_abs_builddir;;
32049   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32050   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32051   esac;;
32052 esac
32053 case $ac_abs_builddir in
32054 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32055 *)
32056   case $ac_top_srcdir in
32057   .) ac_abs_top_srcdir=$ac_abs_builddir;;
32058   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32059   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32060   esac;;
32061 esac
32062
32063
32064   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32065 echo "$as_me: executing $ac_dest commands" >&6;}
32066   case $ac_dest in
32067     default-1 )
32068     for ac_file in $CONFIG_FILES; do
32069       # Support "outfile[:infile[:infile...]]"
32070       case "$ac_file" in
32071         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32072       esac
32073       # PO directories have a Makefile.in generated from Makefile.in.in.
32074       case "$ac_file" in */Makefile.in)
32075         # Adjust a relative srcdir.
32076         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32077         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32078         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32079         # In autoconf-2.13 it is called $ac_given_srcdir.
32080         # In autoconf-2.50 it is called $srcdir.
32081         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32082         case "$ac_given_srcdir" in
32083           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32084           /*) top_srcdir="$ac_given_srcdir" ;;
32085           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32086         esac
32087         # Treat a directory as a PO directory if and only if it has a
32088         # POTFILES.in file. This allows packages to have multiple PO
32089         # directories under different names or in different locations.
32090         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32091           rm -f "$ac_dir/POTFILES"
32092           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32093           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32094           POMAKEFILEDEPS="POTFILES.in"
32095           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32096           # on $ac_dir but don't depend on user-specified configuration
32097           # parameters.
32098           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32099             # The LINGUAS file contains the set of available languages.
32100             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32101               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32102             fi
32103             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32104             # Hide the ALL_LINGUAS assigment from automake.
32105             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32106             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32107           else
32108             # The set of available languages was given in configure.in.
32109             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32110           fi
32111           # Compute POFILES
32112           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32113           # Compute UPDATEPOFILES
32114           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32115           # Compute DUMMYPOFILES
32116           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32117           # Compute GMOFILES
32118           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32119           case "$ac_given_srcdir" in
32120             .) srcdirpre= ;;
32121             *) srcdirpre='$(srcdir)/' ;;
32122           esac
32123           POFILES=
32124           UPDATEPOFILES=
32125           DUMMYPOFILES=
32126           GMOFILES=
32127           for lang in $ALL_LINGUAS; do
32128             POFILES="$POFILES $srcdirpre$lang.po"
32129             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32130             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32131             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32132           done
32133           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32134           # environment variable.
32135           INST_LINGUAS=
32136           if test -n "$ALL_LINGUAS"; then
32137             for presentlang in $ALL_LINGUAS; do
32138               useit=no
32139               if test "%UNSET%" != "$LINGUAS"; then
32140                 desiredlanguages="$LINGUAS"
32141               else
32142                 desiredlanguages="$ALL_LINGUAS"
32143               fi
32144               for desiredlang in $desiredlanguages; do
32145                 # Use the presentlang catalog if desiredlang is
32146                 #   a. equal to presentlang, or
32147                 #   b. a variant of presentlang (because in this case,
32148                 #      presentlang can be used as a fallback for messages
32149                 #      which are not translated in the desiredlang catalog).
32150                 case "$desiredlang" in
32151                   "$presentlang"*) useit=yes;;
32152                 esac
32153               done
32154               if test $useit = yes; then
32155                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32156               fi
32157             done
32158           fi
32159           CATALOGS=
32160           if test -n "$INST_LINGUAS"; then
32161             for lang in $INST_LINGUAS; do
32162               CATALOGS="$CATALOGS $lang.gmo"
32163             done
32164           fi
32165           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32166           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"
32167           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32168             if test -f "$f"; then
32169               case "$f" in
32170                 *.orig | *.bak | *~) ;;
32171                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32172               esac
32173             fi
32174           done
32175         fi
32176         ;;
32177       esac
32178     done ;;
32179     default )
32180  ;;
32181   esac
32182 done
32183 _ACEOF
32184
32185 cat >>$CONFIG_STATUS <<\_ACEOF
32186
32187 { (exit 0); exit 0; }
32188 _ACEOF
32189 chmod +x $CONFIG_STATUS
32190 ac_clean_files=$ac_clean_files_save
32191
32192
32193 # configure is writing to config.log, and then calls config.status.
32194 # config.status does its own redirection, appending to config.log.
32195 # Unfortunately, on DOS this fails, as config.log is still kept open
32196 # by configure, so config.status won't be able to write to it; its
32197 # output is simply discarded.  So we exec the FD to /dev/null,
32198 # effectively closing config.log, so it can be properly (re)opened and
32199 # appended to by config.status.  When coming back to configure, we
32200 # need to make the FD available again.
32201 if test "$no_create" != yes; then
32202   ac_cs_success=:
32203   ac_config_status_args=
32204   test "$silent" = yes &&
32205     ac_config_status_args="$ac_config_status_args --quiet"
32206   exec 5>/dev/null
32207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32208   exec 5>>config.log
32209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32210   # would make configure fail if this is the last instruction.
32211   $ac_cs_success || { (exit 1); exit 1; }
32212 fi
32213
32214
32215 if test "${support_bat}" = "yes" ; then
32216   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32217   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32218   exit 1
32219   fi
32220
32221   QMAKEBIN="qmake"
32222
32223   if test "x$QMAKEQT4" != "xnone"; then
32224     QMAKEBIN=qmake-qt4
32225   fi
32226
32227
32228
32229   cd src/qt-console
32230   chmod 755 install_conf_file build-depkgs-qt-console
32231   echo "Creating bat Makefile"
32232   $QMAKEBIN
32233   cd ${BUILD_DIR}
32234 fi
32235
32236 echo "Doing make of dependencies"
32237 ${MAKE:-make} depend
32238
32239 cd scripts
32240 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32241 chmod 755 dvd-handler dvd-simulator
32242 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32243 cd ..
32244
32245 c=src/cats
32246
32247 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32248 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32249
32250 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32251 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32252
32253 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32254 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32255
32256 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32257 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32258
32259 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32260 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32261
32262 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32263 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32264
32265 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32266 chmod 755 $c/sqlite
32267 chmod 755 $c/mysql
32268
32269 chmod 755 src/win32/build-depkgs-mingw32
32270
32271
32272
32273 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32274    largefile_support="yes"
32275 fi
32276
32277 #
32278 # A whole lot of hand springs to get the compiler version.
32279 #  This is because gcc changed the output in version 3.0
32280 #
32281 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32282 if test "x${CCVERSION}" = "x" ; then
32283   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32284 fi
32285 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32286 if test x"${CXXVERSION}" = x ; then
32287   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32288 fi
32289
32290 if test "x${subsysdir}" = "x${sbindir}" ; then
32291    echo " "
32292    echo " "
32293    echo "You have set --sbindir and --with-subsys-dir"
32294    echo "  both equal to: ${subsysdir} "
32295    echo "  This is not permitted. Please reconfigure."
32296    echo " "
32297    echo "Aborting configuration ..."
32298    echo " "
32299    echo " "
32300    exit 1
32301 fi
32302
32303 if test "x${db_type}" = "xInternal" ; then
32304    echo " "
32305    echo " "
32306    echo "You have not specified either --enable-client-only or one of the"
32307    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
32308    echo "  This is not permitted. Please reconfigure."
32309    echo " "
32310    echo "Aborting the configuration ..."
32311    echo " "
32312    echo " "
32313    exit 1
32314 fi
32315
32316 echo "
32317 Configuration on `date`:
32318
32319   Host:                       $host -- ${DISTNAME} ${DISTVER}
32320   Bacula version:             ${VERSION} (${DATE})
32321   Source code location:       ${srcdir}
32322   Install binaries:           ${sbindir}
32323   Install config files:       ${sysconfdir}
32324   Scripts directory:          ${scriptdir}
32325   Archive directory:          ${archivedir}
32326   Working directory:          ${working_dir}
32327   PID directory:              ${piddir}
32328   Subsys directory:           ${subsysdir}
32329   Man directory:              ${mandir}
32330   Data directory:             ${datadir}
32331   C Compiler:                 ${CC} ${CCVERSION}
32332   C++ Compiler:               ${CXX} ${CXXVERSION}
32333   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32334   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32335   Libraries:                  ${LIBS}
32336   Statically Linked Tools:    ${support_static_tools}
32337   Statically Linked FD:       ${support_static_fd}
32338   Statically Linked SD:       ${support_static_sd}
32339   Statically Linked DIR:      ${support_static_dir}
32340   Statically Linked CONS:     ${support_static_cons}
32341   Database type:              ${db_type}
32342   Database lib:               ${DB_LIBS}
32343   Database name:              ${db_name}
32344   Database user:              ${db_user}
32345
32346   Job Output Email:           ${job_email}
32347   Traceback Email:            ${dump_email}
32348   SMTP Host Address:          ${smtp_host}
32349
32350   Director Port:              ${dir_port}
32351   File daemon Port:           ${fd_port}
32352   Storage daemon Port:        ${sd_port}
32353
32354   Director User:              ${dir_user}
32355   Director Group:             ${dir_group}
32356   Storage Daemon User:        ${sd_user}
32357   Storage DaemonGroup:        ${sd_group}
32358   File Daemon User:           ${fd_user}
32359   File Daemon Group:          ${fd_group}
32360
32361   SQL binaries Directory      ${SQL_BINDIR}
32362
32363   Large file support:         $largefile_support
32364   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32365   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32366   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32367   TLS support:                ${support_tls}
32368   Encryption support:         ${support_crypto}
32369   ZLIB support:               ${have_zlib}
32370   enable-smartalloc:          ${support_smartalloc}
32371   bat support:                ${support_bat} ${QWT_LDFLAGS}
32372   enable-gnome:               ${support_gnome} ${gnome_version}
32373   enable-bwx-console:         ${support_wx_console} ${wx_version}
32374   enable-tray-monitor:        ${support_tray_monitor}
32375   client-only:                ${build_client_only}
32376   build-dird:                 ${build_dird}
32377   build-stored:               ${build_stored}
32378   ACL support:                ${have_acl}
32379   Python support:             ${support_python} ${PYTHON_LIBS}
32380   Batch insert enabled:       ${support_batch_insert}
32381
32382   " > config.out
32383
32384 cat config.out