]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
- Add gettext macros in autoconf/gettext-macros.
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --disable-conio            disable conio support enabled
880
881   --disable-readline      disable readline support disable
882
883   --disable-largefile     omit support for large files
884
885 Optional Packages:
886   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
887   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
888   --with-gnu-ld           assume the C compiler uses GNU ld default=no
889   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
890   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
891   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
892   --without-libintl-prefix     don't search for libintl in includedir and libdir
893  --with-readline=DIR             specify readline library directory
894
895   --with-python=DIR       Include Python support.  DIR is the Python base
896                           install directory, default is to search through
897                           a number of common places for the Python files.
898   --with-tcp-wrappers=DIR        enable tcpwrappers support
899   --with-openssl[=DIR]
900                           Include OpenSSL support. DIR is the OpenSSL base
901   --with-working-dir=PATH        specify path of Bacula working directory
902   --with-scriptdir=PATH    specify path of Bacula scripts directory
903   --with-dump-email=EMAIL        dump email address
904   --with-job-email=EMAIL         job output email address
905   --with-smtp-host=HOST          SMTP mail host address
906   --with-pid-dir=PATH            specify location of Bacula pid files
907   --with-subsys-dir=PATH         specify location of Bacula subsys file
908   --with-baseport=PORT           specify base port address for daemons
909   --with-dir-password=PASSWORD   specify Director's password
910   --with-fd-password=PASSWORD    specify Client's password
911   --with-sd-password=PASSWORD    specify Storage daemon's password
912   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
913   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
914   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
915   --with-dir-user=USER           specify user for Director daemon
916   --with-dir-group=GROUP                 specify group for Director daemon
917   --with-sd-user=USER            specify user for Storage daemon
918   --with-sd-group=GROUP          specify group for Storage daemon
919   --with-fd-user=USER            specify user for File daemon
920   --with-fd-group=GROUP          specify group for File daemon
921   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
922   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
923                           base install directory, defaults to /usr/local/pgsql
924
925   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
926                           install directory, default is to search through
927                           a number of common places for the MySQL files.
928
929   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
930                           install directory, default is to search through
931                           a number of common places for the MySQL files.
932
933   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
934                           install directory, default is to search through
935                           a number of common places for the SQLite3 files.
936
937   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
938                           install directory, default is to search through
939                           a number of common places for the SQLite files.
940   --with-x                use the X Window System
941
942 Some influential environment variables:
943   CC          C compiler command
944   CFLAGS      C compiler flags
945   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
946               nonstandard directory <lib dir>
947   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
948               headers in a nonstandard directory <include dir>
949   CXX         C++ compiler command
950   CXXFLAGS    C++ compiler flags
951   CPP         C preprocessor
952   WXCONFIG    wx-config command. On some systems, you must set it to
953               wx-config-2.6 to use wxWidgets 2.6.
954   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
955
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
958
959 _ACEOF
960 fi
961
962 if test "$ac_init_help" = "recursive"; then
963   # If there are subdirs, report their specific --help.
964   ac_popdir=`pwd`
965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966     test -d $ac_dir || continue
967     ac_builddir=.
968
969 if test "$ac_dir" != .; then
970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971   # A "../" for each directory in $ac_dir_suffix.
972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
973 else
974   ac_dir_suffix= ac_top_builddir=
975 fi
976
977 case $srcdir in
978   .)  # No --srcdir option.  We are building in place.
979     ac_srcdir=.
980     if test -z "$ac_top_builddir"; then
981        ac_top_srcdir=.
982     else
983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
984     fi ;;
985   [\\/]* | ?:[\\/]* )  # Absolute path.
986     ac_srcdir=$srcdir$ac_dir_suffix;
987     ac_top_srcdir=$srcdir ;;
988   *) # Relative path.
989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
991 esac
992
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
995 case `pwd` in
996 .) ac_abs_builddir="$ac_dir";;
997 *)
998   case "$ac_dir" in
999   .) ac_abs_builddir=`pwd`;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 *)
1007   case ${ac_top_builddir}. in
1008   .) ac_abs_top_builddir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1015 *)
1016   case $ac_srcdir in
1017   .) ac_abs_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1020   esac;;
1021 esac
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 *)
1025   case $ac_top_srcdir in
1026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1029   esac;;
1030 esac
1031
1032     cd $ac_dir
1033     # Check for guested configure; otherwise get Cygnus style configure.
1034     if test -f $ac_srcdir/configure.gnu; then
1035       echo
1036       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1037     elif test -f $ac_srcdir/configure; then
1038       echo
1039       $SHELL $ac_srcdir/configure  --help=recursive
1040     elif test -f $ac_srcdir/configure.ac ||
1041            test -f $ac_srcdir/configure.in; then
1042       echo
1043       $ac_configure --help
1044     else
1045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046     fi
1047     cd $ac_popdir
1048   done
1049 fi
1050
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1053   cat <<\_ACEOF
1054
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1058 _ACEOF
1059   exit 0
1060 fi
1061 exec 5>config.log
1062 cat >&5 <<_ACEOF
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1065
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59.  Invocation command line was
1068
1069   $ $0 $@
1070
1071 _ACEOF
1072 {
1073 cat <<_ASUNAME
1074 ## --------- ##
1075 ## Platform. ##
1076 ## --------- ##
1077
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1086
1087 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1088 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1091 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1092 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1093 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1094
1095 _ASUNAME
1096
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1098 for as_dir in $PATH
1099 do
1100   IFS=$as_save_IFS
1101   test -z "$as_dir" && as_dir=.
1102   echo "PATH: $as_dir"
1103 done
1104
1105 } >&5
1106
1107 cat >&5 <<_ACEOF
1108
1109
1110 ## ----------- ##
1111 ## Core tests. ##
1112 ## ----------- ##
1113
1114 _ACEOF
1115
1116
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1122 ac_configure_args=
1123 ac_configure_args0=
1124 ac_configure_args1=
1125 ac_sep=
1126 ac_must_keep_next=false
1127 for ac_pass in 1 2
1128 do
1129   for ac_arg
1130   do
1131     case $ac_arg in
1132     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134     | -silent | --silent | --silen | --sile | --sil)
1135       continue ;;
1136     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1138     esac
1139     case $ac_pass in
1140     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141     2)
1142       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143       if test $ac_must_keep_next = true; then
1144         ac_must_keep_next=false # Got value, back to normal.
1145       else
1146         case $ac_arg in
1147           *=* | --config-cache | -C | -disable-* | --disable-* \
1148           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150           | -with-* | --with-* | -without-* | --without-* | --x)
1151             case "$ac_configure_args0 " in
1152               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1153             esac
1154             ;;
1155           -* ) ac_must_keep_next=true ;;
1156         esac
1157       fi
1158       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159       # Get rid of the leading space.
1160       ac_sep=" "
1161       ;;
1162     esac
1163   done
1164 done
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log.  We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174   # Save into config.log some information that might help in debugging.
1175   {
1176     echo
1177
1178     cat <<\_ASBOX
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1182 _ASBOX
1183     echo
1184     # The following way of writing the cache mishandles newlines in values,
1185 {
1186   (set) 2>&1 |
1187     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1188     *ac_space=\ *)
1189       sed -n \
1190         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1192       ;;
1193     *)
1194       sed -n \
1195         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196       ;;
1197     esac;
1198 }
1199     echo
1200
1201     cat <<\_ASBOX
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1205 _ASBOX
1206     echo
1207     for ac_var in $ac_subst_vars
1208     do
1209       eval ac_val=$`echo $ac_var`
1210       echo "$ac_var='"'"'$ac_val'"'"'"
1211     done | sort
1212     echo
1213
1214     if test -n "$ac_subst_files"; then
1215       cat <<\_ASBOX
1216 ## ------------- ##
1217 ## Output files. ##
1218 ## ------------- ##
1219 _ASBOX
1220       echo
1221       for ac_var in $ac_subst_files
1222       do
1223         eval ac_val=$`echo $ac_var`
1224         echo "$ac_var='"'"'$ac_val'"'"'"
1225       done | sort
1226       echo
1227     fi
1228
1229     if test -s confdefs.h; then
1230       cat <<\_ASBOX
1231 ## ----------- ##
1232 ## confdefs.h. ##
1233 ## ----------- ##
1234 _ASBOX
1235       echo
1236       sed "/^$/d" confdefs.h | sort
1237       echo
1238     fi
1239     test "$ac_signal" != 0 &&
1240       echo "$as_me: caught signal $ac_signal"
1241     echo "$as_me: exit $exit_status"
1242   } >&5
1243   rm -f core *.core &&
1244   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1245     exit $exit_status
1246      ' 0
1247 for ac_signal in 1 2 13 15; do
1248   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1249 done
1250 ac_signal=0
1251
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1255 echo >confdefs.h
1256
1257 # Predefined preprocessor variables.
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1281 _ACEOF
1282
1283
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287   if test "x$prefix" != xNONE; then
1288     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289   else
1290     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1291   fi
1292 fi
1293 for ac_site_file in $CONFIG_SITE; do
1294   if test -r "$ac_site_file"; then
1295     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297     sed 's/^/| /' "$ac_site_file" >&5
1298     . "$ac_site_file"
1299   fi
1300 done
1301
1302 if test -r "$cache_file"; then
1303   # Some versions of bash will fail to source /dev/null (special
1304   # files actually), so we avoid doing that.
1305   if test -f "$cache_file"; then
1306     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1308     case $cache_file in
1309       [\\/]* | ?:[\\/]* ) . $cache_file;;
1310       *)                      . ./$cache_file;;
1311     esac
1312   fi
1313 else
1314   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1316   >$cache_file
1317 fi
1318
1319 # Check that the precious variables saved in the cache have kept the same
1320 # value.
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325   eval ac_new_set=\$ac_env_${ac_var}_set
1326   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327   eval ac_new_val="\$ac_env_${ac_var}_value"
1328   case $ac_old_set,$ac_new_set in
1329     set,)
1330       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332       ac_cache_corrupted=: ;;
1333     ,set)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,);;
1338     *)
1339       if test "x$ac_old_val" != "x$ac_new_val"; then
1340         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1343 echo "$as_me:   former value:  $ac_old_val" >&2;}
1344         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1345 echo "$as_me:   current value: $ac_new_val" >&2;}
1346         ac_cache_corrupted=:
1347       fi;;
1348   esac
1349   # Pass precious variables to config.status.
1350   if test "$ac_new_set" = set; then
1351     case $ac_new_val in
1352     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354     *) ac_arg=$ac_var=$ac_new_val ;;
1355     esac
1356     case " $ac_configure_args " in
1357       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1358       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1359     esac
1360   fi
1361 done
1362 if $ac_cache_corrupted; then
1363   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 BUILD_DIR=`pwd`
1395 cd ..
1396 TOP_DIR=`pwd`
1397 cd ${BUILD_DIR}
1398
1399 ac_aux_dir=
1400 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1401   if test -f $ac_dir/install-sh; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/install-sh -c"
1404     break
1405   elif test -f $ac_dir/install.sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install.sh -c"
1408     break
1409   elif test -f $ac_dir/shtool; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/shtool install -c"
1412     break
1413   fi
1414 done
1415 if test -z "$ac_aux_dir"; then
1416   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1417 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1418    { (exit 1); exit 1; }; }
1419 fi
1420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1423
1424           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425
1426
1427
1428
1429
1430 for ac_prog in true
1431 do
1432   # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   case $TRUEPRG in
1440   [\\/]* | ?:[\\/]*)
1441   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1442   ;;
1443   *)
1444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458   ;;
1459 esac
1460 fi
1461 TRUEPRG=$ac_cv_path_TRUEPRG
1462
1463 if test -n "$TRUEPRG"; then
1464   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1465 echo "${ECHO_T}$TRUEPRG" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$TRUEPRG" && break
1472 done
1473 test -n "$TRUEPRG" || TRUEPRG=":"
1474
1475 for ac_prog in false
1476 do
1477   # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   case $FALSEPRG in
1485   [\\/]* | ?:[\\/]*)
1486   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1487   ;;
1488   *)
1489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503   ;;
1504 esac
1505 fi
1506 FALSEPRG=$ac_cv_path_FALSEPRG
1507
1508 if test -n "$FALSEPRG"; then
1509   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1510 echo "${ECHO_T}$FALSEPRG" >&6
1511 else
1512   echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516   test -n "$FALSEPRG" && break
1517 done
1518 test -n "$FALSEPRG" || FALSEPRG=":"
1519
1520
1521 #AC_CANONICAL_HOST
1522
1523 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1524 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1525 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 echo "configuring for bacula $VERSION ($DATE)"
1527
1528
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$CC"; then
1544   ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555     break 2
1556   fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 CC=$ac_cv_prog_CC
1563 if test -n "$CC"; then
1564   echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1566 else
1567   echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 fi
1572 if test -z "$ac_cv_prog_CC"; then
1573   ac_ct_CC=$CC
1574   # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   if test -n "$ac_ct_CC"; then
1582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   for ac_exec_ext in '' $ac_executable_extensions; do
1590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591     ac_cv_prog_ac_ct_CC="gcc"
1592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593     break 2
1594   fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605   echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609   CC=$ac_ct_CC
1610 else
1611   CC="$ac_cv_prog_CC"
1612 fi
1613
1614 if test -z "$CC"; then
1615   if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$CC"; then
1624   ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   for ac_exec_ext in '' $ac_executable_extensions; do
1632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633     ac_cv_prog_CC="${ac_tool_prefix}cc"
1634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635     break 2
1636   fi
1637 done
1638 done
1639
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644   echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$ac_cv_prog_CC"; then
1653   ac_ct_CC=$CC
1654   # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$ac_ct_CC"; then
1662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_ac_ct_CC="cc"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689   CC=$ac_ct_CC
1690 else
1691   CC="$ac_cv_prog_CC"
1692 fi
1693
1694 fi
1695 if test -z "$CC"; then
1696   # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$CC"; then
1704   ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706   ac_prog_rejected=no
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   for ac_exec_ext in '' $ac_executable_extensions; do
1713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715        ac_prog_rejected=yes
1716        continue
1717      fi
1718     ac_cv_prog_CC="cc"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725 if test $ac_prog_rejected = yes; then
1726   # We found a bogon in the path, so make sure we never use it.
1727   set dummy $ac_cv_prog_CC
1728   shift
1729   if test $# != 0; then
1730     # We chose a different compiler from the bogus one.
1731     # However, it has the same basename, so the bogon will be chosen
1732     # first if we set CC to just the basename; use the full file name.
1733     shift
1734     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1735   fi
1736 fi
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741   echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 fi
1749 if test -z "$CC"; then
1750   if test -n "$ac_tool_prefix"; then
1751   for ac_prog in cl
1752   do
1753     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$CC"; then
1761   ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781   echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788     test -n "$CC" && break
1789   done
1790 fi
1791 if test -z "$CC"; then
1792   ac_ct_CC=$CC
1793   for ac_prog in cl
1794 do
1795   # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$ac_ct_CC"; then
1803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_ac_ct_CC="$ac_prog"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830   test -n "$ac_ct_CC" && break
1831 done
1832
1833   CC=$ac_ct_CC
1834 fi
1835
1836 fi
1837
1838
1839 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&2;}
1843    { (exit 1); exit 1; }; }
1844
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847      "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850   (eval $ac_compiler --version </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855   (eval $ac_compiler -v </dev/null >&5) 2>&5
1856   ac_status=$?
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860   (eval $ac_compiler -V </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864
1865 cat >conftest.$ac_ext <<_ACEOF
1866 /* confdefs.h.  */
1867 _ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h.  */
1871
1872 int
1873 main ()
1874 {
1875
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1884 # of exeext.
1885 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1886 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889   (eval $ac_link_default) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; then
1893   # Find the output, starting from the most likely.  This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1895 # resort.
1896
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1899 ac_cv_exeext=
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1902 do
1903   test -f "$ac_file" || continue
1904   case $ac_file in
1905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1906         ;;
1907     conftest.$ac_ext )
1908         # This is the source file.
1909         ;;
1910     [ab].out )
1911         # We found the default executable, but exeext='' is most
1912         # certainly right.
1913         break;;
1914     *.* )
1915         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916         # FIXME: I believe we export ac_cv_exeext for Libtool,
1917         # but it would be cool to find out if it's true.  Does anybody
1918         # maintain Libtool? --akim.
1919         export ac_cv_exeext
1920         break;;
1921     * )
1922         break;;
1923   esac
1924 done
1925 else
1926   echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933    { (exit 77); exit 77; }; }
1934 fi
1935
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1939
1940 # Check the compiler produces executables we can run.  If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1943 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947   if { ac_try='./$ac_file'
1948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949   (eval $ac_try) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }; }; then
1953     cross_compiling=no
1954   else
1955     if test "$cross_compiling" = maybe; then
1956         cross_compiling=yes
1957     else
1958         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964    { (exit 1); exit 1; }; }
1965     fi
1966   fi
1967 fi
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1970
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run.  If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1979
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983   (eval $ac_link) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; then
1987   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1990 # `rm'.
1991 for ac_file in conftest.exe conftest conftest.*; do
1992   test -f "$ac_file" || continue
1993   case $ac_file in
1994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996           export ac_cv_exeext
1997           break;;
1998     * ) break;;
1999   esac
2000 done
2001 else
2002   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2012
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2015 ac_exeext=$EXEEXT
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038   (eval $ac_compile) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2043   case $ac_file in
2044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046        break;;
2047   esac
2048 done
2049 else
2050   echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2065 ac_objext=$OBJEXT
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h.  */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h.  */
2077
2078 int
2079 main ()
2080 {
2081 #ifndef __GNUC__
2082        choke me
2083 #endif
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>conftest.er1
2092   ac_status=$?
2093   grep -v '^ *+' conftest.er1 >conftest.err
2094   rm -f conftest.er1
2095   cat conftest.err >&5
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -z "$ac_c_werror_flag"
2099                          || test ! -s conftest.err'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_compiler_gnu=yes
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_compiler_gnu=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2124 GCC=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CFLAGS=${CFLAGS+set}
2126 ac_save_CFLAGS=$CFLAGS
2127 CFLAGS="-g"
2128 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_g+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>conftest.er1
2151   ac_status=$?
2152   grep -v '^ *+' conftest.er1 >conftest.err
2153   rm -f conftest.er1
2154   cat conftest.err >&5
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); } &&
2157          { ac_try='test -z "$ac_c_werror_flag"
2158                          || test ! -s conftest.err'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; } &&
2164          { ac_try='test -s conftest.$ac_objext'
2165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166   (eval $ac_try) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; }; then
2170   ac_cv_prog_cc_g=yes
2171 else
2172   echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_cv_prog_cc_g=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182   CFLAGS=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184   if test "$GCC" = yes; then
2185     CFLAGS="-g -O2"
2186   else
2187     CFLAGS="-g"
2188   fi
2189 else
2190   if test "$GCC" = yes; then
2191     CFLAGS="-O2"
2192   else
2193     CFLAGS=
2194   fi
2195 fi
2196 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2197 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2198 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   ac_cv_prog_cc_stdc=no
2202 ac_save_CC=$CC
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209 #include <stdarg.h>
2210 #include <stdio.h>
2211 #include <sys/types.h>
2212 #include <sys/stat.h>
2213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2214 struct buf { int x; };
2215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2216 static char *e (p, i)
2217      char **p;
2218      int i;
2219 {
2220   return p[i];
2221 }
2222 static char *f (char * (*g) (char **, int), char **p, ...)
2223 {
2224   char *s;
2225   va_list v;
2226   va_start (v,p);
2227   s = g (p, va_arg (v,int));
2228   va_end (v);
2229   return s;
2230 }
2231
2232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2233    function prototypes and stuff, but not '\xHH' hex character constants.
2234    These don't provoke an error unfortunately, instead are silently treated
2235    as 'x'.  The following induces an error, until -std1 is added to get
2236    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2237    array size at least.  It's necessary to write '\x00'==0 to get something
2238    that's true only with -std1.  */
2239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2240
2241 int test (int i, double x);
2242 struct s1 {int (*f) (int a);};
2243 struct s2 {int (*f) (double a);};
2244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2245 int argc;
2246 char **argv;
2247 int
2248 main ()
2249 {
2250 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 # Don't try gcc -ansi; that turns off useful extensions and
2256 # breaks some systems' header files.
2257 # AIX                   -qlanglvl=ansi
2258 # Ultrix and OSF/1      -std1
2259 # HP-UX 10.20 and later -Ae
2260 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2261 # SVR4                  -Xc -D__EXTENSIONS__
2262 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2263 do
2264   CC="$ac_save_CC $ac_arg"
2265   rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>conftest.er1
2268   ac_status=$?
2269   grep -v '^ *+' conftest.er1 >conftest.err
2270   rm -f conftest.er1
2271   cat conftest.err >&5
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); } &&
2274          { ac_try='test -z "$ac_c_werror_flag"
2275                          || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   ac_cv_prog_cc_stdc=$ac_arg
2288 break
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 fi
2294 rm -f conftest.err conftest.$ac_objext
2295 done
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2297 CC=$ac_save_CC
2298
2299 fi
2300
2301 case "x$ac_cv_prog_cc_stdc" in
2302   x|xno)
2303     echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2305   *)
2306     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308     CC="$CC $ac_cv_prog_cc_stdc" ;;
2309 esac
2310
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   for ac_declaration in \
2343    '' \
2344    'extern "C" void std::exit (int) throw (); using std::exit;' \
2345    'extern "C" void std::exit (int); using std::exit;' \
2346    'extern "C" void exit (int) throw ();' \
2347    'extern "C" void exit (int);' \
2348    'void exit (int);'
2349 do
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 $ac_declaration
2357 #include <stdlib.h>
2358 int
2359 main ()
2360 {
2361 exit (42);
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>conftest.er1
2369   ac_status=$?
2370   grep -v '^ *+' conftest.er1 >conftest.err
2371   rm -f conftest.er1
2372   cat conftest.err >&5
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -z "$ac_c_werror_flag"
2376                          || test ! -s conftest.err'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 continue
2394 fi
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396   cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402 $ac_declaration
2403 int
2404 main ()
2405 {
2406 exit (42);
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag"
2421                          || test ! -s conftest.err'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; } &&
2427          { ac_try='test -s conftest.$ac_objext'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; }; then
2433   break
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 fi
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 done
2441 rm -f conftest*
2442 if test -n "$ac_declaration"; then
2443   echo '#ifdef __cplusplus' >>confdefs.h
2444   echo $ac_declaration      >>confdefs.h
2445   echo '#endif'             >>confdefs.h
2446 fi
2447
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 fi
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
2460 ac_ext=cc
2461 ac_cpp='$CXXCPP $CPPFLAGS'
2462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2467   do
2468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CXX+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$CXX"; then
2476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 CXX=$ac_cv_prog_CXX
2495 if test -n "$CXX"; then
2496   echo "$as_me:$LINENO: result: $CXX" >&5
2497 echo "${ECHO_T}$CXX" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503     test -n "$CXX" && break
2504   done
2505 fi
2506 if test -z "$CXX"; then
2507   ac_ct_CXX=$CXX
2508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2509 do
2510   # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$ac_ct_CXX"; then
2518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527     ac_cv_prog_ac_ct_CXX="$ac_prog"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533
2534 fi
2535 fi
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2540 else
2541   echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 fi
2544
2545   test -n "$ac_ct_CXX" && break
2546 done
2547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2548
2549   CXX=$ac_ct_CXX
2550 fi
2551
2552
2553 # Provide some information about the compiler.
2554 echo "$as_me:$LINENO:" \
2555      "checking for C++ compiler version" >&5
2556 ac_compiler=`set X $ac_compile; echo $2`
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2558   (eval $ac_compiler --version </dev/null >&5) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }
2562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2563   (eval $ac_compiler -v </dev/null >&5) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2568   (eval $ac_compiler -V </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_cxx_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631 GXX=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CXXFLAGS=${CXXFLAGS+set}
2633 ac_save_CXXFLAGS=$CXXFLAGS
2634 CXXFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cxx_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_cxx_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cxx_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cxx_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689   CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691   if test "$GXX" = yes; then
2692     CXXFLAGS="-g -O2"
2693   else
2694     CXXFLAGS="-g"
2695   fi
2696 else
2697   if test "$GXX" = yes; then
2698     CXXFLAGS="-O2"
2699   else
2700     CXXFLAGS=
2701   fi
2702 fi
2703 for ac_declaration in \
2704    '' \
2705    'extern "C" void std::exit (int) throw (); using std::exit;' \
2706    'extern "C" void std::exit (int); using std::exit;' \
2707    'extern "C" void exit (int) throw ();' \
2708    'extern "C" void exit (int);' \
2709    'void exit (int);'
2710 do
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 $ac_declaration
2718 #include <stdlib.h>
2719 int
2720 main ()
2721 {
2722 exit (42);
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_cxx_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   :
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 continue
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 int
2765 main ()
2766 {
2767 exit (42);
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_cxx_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804   echo '#ifdef __cplusplus' >>confdefs.h
2805   echo $ac_declaration      >>confdefs.h
2806   echo '#endif'             >>confdefs.h
2807 fi
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815 if test "x$CC" != xcc; then
2816   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2817 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2818 else
2819   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2820 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2821 fi
2822 set dummy $CC; ac_cc=`echo $2 |
2823                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2824 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833
2834 int
2835 main ()
2836 {
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 # Make sure it works both with $CC and with simple cc.
2843 # We do the test twice because some compilers refuse to overwrite an
2844 # existing .o file with -o, though they will create one.
2845 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2846 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); };
2856 then
2857   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2858   if test "x$CC" != xcc; then
2859     # Test first that cc exists at all.
2860     if { ac_try='cc -c conftest.$ac_ext >&5'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2867       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          test -f conftest.$ac_objext && { (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); };
2877       then
2878         # cc works too.
2879         :
2880       else
2881         # cc exists but doesn't like -o.
2882         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883       fi
2884     fi
2885   fi
2886 else
2887   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2888 fi
2889 rm -f conftest*
2890
2891 fi
2892 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2893   echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6
2895 else
2896   echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898
2899 cat >>confdefs.h <<\_ACEOF
2900 #define NO_MINUS_C_MINUS_O 1
2901 _ACEOF
2902
2903 fi
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2914   CPP=
2915 fi
2916 if test -z "$CPP"; then
2917   if test "${ac_cv_prog_CPP+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920       # Double quotes because CPP needs to be expanded
2921     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2922     do
2923       ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943                      Syntax error
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <ac_nonexistent.h>
2982 _ACEOF
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   break
3018 fi
3019
3020     done
3021     ac_cv_prog_CPP=$CPP
3022
3023 fi
3024   CPP=$ac_cv_prog_CPP
3025 else
3026   ac_cv_prog_CPP=$CPP
3027 fi
3028 echo "$as_me:$LINENO: result: $CPP" >&5
3029 echo "${ECHO_T}$CPP" >&6
3030 ac_preproc_ok=false
3031 for ac_c_preproc_warn_flag in '' yes
3032 do
3033   # Use a header file that comes with gcc, so configuring glibc
3034   # with a fresh cross-compiler works.
3035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3036   # <limits.h> exists even on freestanding compilers.
3037   # On the NeXT, cc -E runs the code through the compiler's parser,
3038   # not just through cpp. "Syntax error" is here to catch this case.
3039   cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #ifdef __STDC__
3046 # include <limits.h>
3047 #else
3048 # include <assert.h>
3049 #endif
3050                      Syntax error
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } >/dev/null; then
3060   if test -s conftest.err; then
3061     ac_cpp_err=$ac_c_preproc_warn_flag
3062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063   else
3064     ac_cpp_err=
3065   fi
3066 else
3067   ac_cpp_err=yes
3068 fi
3069 if test -z "$ac_cpp_err"; then
3070   :
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Broken: fails on valid input.
3076 continue
3077 fi
3078 rm -f conftest.err conftest.$ac_ext
3079
3080   # OK, works on sane cases.  Now check whether non-existent headers
3081   # can be detected and how.
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #include <ac_nonexistent.h>
3089 _ACEOF
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } >/dev/null; then
3098   if test -s conftest.err; then
3099     ac_cpp_err=$ac_c_preproc_warn_flag
3100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101   else
3102     ac_cpp_err=
3103   fi
3104 else
3105   ac_cpp_err=yes
3106 fi
3107 if test -z "$ac_cpp_err"; then
3108   # Broken: success on invalid input.
3109 continue
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114   # Passes both tests.
3115 ac_preproc_ok=:
3116 break
3117 fi
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 done
3121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122 rm -f conftest.err conftest.$ac_ext
3123 if $ac_preproc_ok; then
3124   :
3125 else
3126   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }
3131 fi
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139
3140 echo "$as_me:$LINENO: checking for egrep" >&5
3141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3142 if test "${ac_cv_prog_egrep+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3146     then ac_cv_prog_egrep='grep -E'
3147     else ac_cv_prog_egrep='egrep'
3148     fi
3149 fi
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3152  EGREP=$ac_cv_prog_egrep
3153
3154
3155 if test $ac_cv_c_compiler_gnu = yes; then
3156     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3157 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3158 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161     ac_pattern="Autoconf.*'x'"
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <sgtty.h>
3169 Autoconf TIOCGETP
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173   ac_cv_prog_gcc_traditional=yes
3174 else
3175   ac_cv_prog_gcc_traditional=no
3176 fi
3177 rm -f conftest*
3178
3179
3180   if test $ac_cv_prog_gcc_traditional = no; then
3181     cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <termio.h>
3188 Autoconf TCGETA
3189 _ACEOF
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3192   ac_cv_prog_gcc_traditional=yes
3193 fi
3194 rm -f conftest*
3195
3196   fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3199 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3200   if test $ac_cv_prog_gcc_traditional = yes; then
3201     CC="$CC -traditional"
3202   fi
3203 fi
3204
3205 if test "x$CC" = xgcc; then
3206    cat >>confdefs.h <<\_ACEOF
3207 #define HAVE_GCC 1
3208 _ACEOF
3209
3210 fi
3211 # Extract the first word of "$CXX", so it can be a program name with args.
3212 set dummy $CXX; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_path_CXX+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   case $CXX in
3219   [\\/]* | ?:[\\/]*)
3220   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3221   ;;
3222   *)
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3238   ;;
3239 esac
3240 fi
3241 CXX=$ac_cv_path_CXX
3242
3243 if test -n "$CXX"; then
3244   echo "$as_me:$LINENO: result: $CXX" >&5
3245 echo "${ECHO_T}$CXX" >&6
3246 else
3247   echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3249 fi
3250
3251 if test ! -e $CXX; then
3252    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3253 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3254    { (exit 1); exit 1; }; }
3255 fi
3256
3257 # Find a good install program.  We prefer a C program (faster),
3258 # so one script is as good as another.  But avoid the broken or
3259 # incompatible versions:
3260 # SysV /etc/install, /usr/sbin/install
3261 # SunOS /usr/etc/install
3262 # IRIX /sbin/install
3263 # AIX /bin/install
3264 # AmigaOS /C/install, which installs bootblocks on floppy discs
3265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3268 # OS/2's system install, which has a completely different semantic
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   # Account for people who put trailing slashes in PATH elements.
3282 case $as_dir/ in
3283   ./ | .// | /cC/* | \
3284   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3285   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3286   /usr/ucb/* ) ;;
3287   *)
3288     # OSF1 and SCO ODT 3.0 have their own names for install.
3289     # Don't use installbsd from OSF since it installs stuff as root
3290     # by default.
3291     for ac_prog in ginstall scoinst install; do
3292       for ac_exec_ext in '' $ac_executable_extensions; do
3293         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3294           if test $ac_prog = install &&
3295             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296             # AIX install.  It has an incompatible calling convention.
3297             :
3298           elif test $ac_prog = install &&
3299             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300             # program-specific install script used by HP pwplus--don't use.
3301             :
3302           else
3303             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3304             break 3
3305           fi
3306         fi
3307       done
3308     done
3309     ;;
3310 esac
3311 done
3312
3313
3314 fi
3315   if test "${ac_cv_path_install+set}" = set; then
3316     INSTALL=$ac_cv_path_install
3317   else
3318     # As a last resort, use the slow shell script.  We don't cache a
3319     # path for INSTALL within a source directory, because that will
3320     # break other packages using the cache if that directory is
3321     # removed, or if the path is relative.
3322     INSTALL=$ac_install_sh
3323   fi
3324 fi
3325 echo "$as_me:$LINENO: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3327
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335
3336 if test -n "$ac_tool_prefix"; then
3337   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_RANLIB+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$RANLIB"; then
3345   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 RANLIB=$ac_cv_prog_RANLIB
3364 if test -n "$RANLIB"; then
3365   echo "$as_me:$LINENO: result: $RANLIB" >&5
3366 echo "${ECHO_T}$RANLIB" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372 fi
3373 if test -z "$ac_cv_prog_RANLIB"; then
3374   ac_ct_RANLIB=$RANLIB
3375   # Extract the first word of "ranlib", so it can be a program name with args.
3376 set dummy ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$ac_ct_RANLIB"; then
3383   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_RANLIB="ranlib"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3400 fi
3401 fi
3402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3403 if test -n "$ac_ct_RANLIB"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3405 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   RANLIB=$ac_ct_RANLIB
3412 else
3413   RANLIB="$ac_cv_prog_RANLIB"
3414 fi
3415
3416 # Extract the first word of "mv", so it can be a program name with args.
3417 set dummy mv; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_path_MV+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   case $MV in
3424   [\\/]* | ?:[\\/]*)
3425   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3426   ;;
3427   *)
3428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433   for ac_exec_ext in '' $ac_executable_extensions; do
3434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440 done
3441
3442   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3443   ;;
3444 esac
3445 fi
3446 MV=$ac_cv_path_MV
3447
3448 if test -n "$MV"; then
3449   echo "$as_me:$LINENO: result: $MV" >&5
3450 echo "${ECHO_T}$MV" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 # Extract the first word of "rm", so it can be a program name with args.
3457 set dummy rm; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_path_RM+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   case $RM in
3464   [\\/]* | ?:[\\/]*)
3465   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3466   ;;
3467   *)
3468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   for ac_exec_ext in '' $ac_executable_extensions; do
3474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480 done
3481
3482   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3483   ;;
3484 esac
3485 fi
3486 RM=$ac_cv_path_RM
3487
3488 if test -n "$RM"; then
3489   echo "$as_me:$LINENO: result: $RM" >&5
3490 echo "${ECHO_T}$RM" >&6
3491 else
3492   echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3494 fi
3495
3496 # Extract the first word of "cp", so it can be a program name with args.
3497 set dummy cp; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_CP+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   case $CP in
3504   [\\/]* | ?:[\\/]*)
3505   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3506   ;;
3507   *)
3508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513   for ac_exec_ext in '' $ac_executable_extensions; do
3514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520 done
3521
3522   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3523   ;;
3524 esac
3525 fi
3526 CP=$ac_cv_path_CP
3527
3528 if test -n "$CP"; then
3529   echo "$as_me:$LINENO: result: $CP" >&5
3530 echo "${ECHO_T}$CP" >&6
3531 else
3532   echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536 # Extract the first word of "sed", so it can be a program name with args.
3537 set dummy sed; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_SED+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   case $SED in
3544   [\\/]* | ?:[\\/]*)
3545   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3546   ;;
3547   *)
3548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3563   ;;
3564 esac
3565 fi
3566 SED=$ac_cv_path_SED
3567
3568 if test -n "$SED"; then
3569   echo "$as_me:$LINENO: result: $SED" >&5
3570 echo "${ECHO_T}$SED" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575
3576 # Extract the first word of "echo", so it can be a program name with args.
3577 set dummy echo; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_ECHO+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   case $ECHO in
3584   [\\/]* | ?:[\\/]*)
3585   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3586   ;;
3587   *)
3588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591   IFS=$as_save_IFS
3592   test -z "$as_dir" && as_dir=.
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600 done
3601
3602   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3603   ;;
3604 esac
3605 fi
3606 ECHO=$ac_cv_path_ECHO
3607
3608 if test -n "$ECHO"; then
3609   echo "$as_me:$LINENO: result: $ECHO" >&5
3610 echo "${ECHO_T}$ECHO" >&6
3611 else
3612   echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3614 fi
3615
3616 # Extract the first word of "cmp", so it can be a program name with args.
3617 set dummy cmp; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_path_CMP+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   case $CMP in
3624   [\\/]* | ?:[\\/]*)
3625   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3626   ;;
3627   *)
3628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640 done
3641
3642   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3643   ;;
3644 esac
3645 fi
3646 CMP=$ac_cv_path_CMP
3647
3648 if test -n "$CMP"; then
3649   echo "$as_me:$LINENO: result: $CMP" >&5
3650 echo "${ECHO_T}$CMP" >&6
3651 else
3652   echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656 # Extract the first word of "tbl", so it can be a program name with args.
3657 set dummy tbl; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_path_TBL+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   case $TBL in
3664   [\\/]* | ?:[\\/]*)
3665   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3666   ;;
3667   *)
3668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681
3682   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3683   ;;
3684 esac
3685 fi
3686 TBL=$ac_cv_path_TBL
3687
3688 if test -n "$TBL"; then
3689   echo "$as_me:$LINENO: result: $TBL" >&5
3690 echo "${ECHO_T}$TBL" >&6
3691 else
3692   echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 fi
3695
3696 # Extract the first word of "ar", so it can be a program name with args.
3697 set dummy ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_AR+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   case $AR in
3704   [\\/]* | ?:[\\/]*)
3705   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3706   ;;
3707   *)
3708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720 done
3721
3722   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3723   ;;
3724 esac
3725 fi
3726 AR=$ac_cv_path_AR
3727
3728 if test -n "$AR"; then
3729   echo "$as_me:$LINENO: result: $AR" >&5
3730 echo "${ECHO_T}$AR" >&6
3731 else
3732   echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 fi
3735
3736 # Extract the first word of "openssl", so it can be a program name with args.
3737 set dummy openssl; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_path_OPENSSL+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $OPENSSL in
3744   [\\/]* | ?:[\\/]*)
3745   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3746   ;;
3747   *)
3748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3763   ;;
3764 esac
3765 fi
3766 OPENSSL=$ac_cv_path_OPENSSL
3767
3768 if test -n "$OPENSSL"; then
3769   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3770 echo "${ECHO_T}$OPENSSL" >&6
3771 else
3772   echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3774 fi
3775
3776 # Extract the first word of "mtx", so it can be a program name with args.
3777 set dummy mtx; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_path_MTX+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   case $MTX in
3784   [\\/]* | ?:[\\/]*)
3785   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3786   ;;
3787   *)
3788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3803   ;;
3804 esac
3805 fi
3806 MTX=$ac_cv_path_MTX
3807
3808 if test -n "$MTX"; then
3809   echo "$as_me:$LINENO: result: $MTX" >&5
3810 echo "${ECHO_T}$MTX" >&6
3811 else
3812   echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816 # Extract the first word of "df", so it can be a program name with args.
3817 set dummy df; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DF+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   case $DF in
3824   [\\/]* | ?:[\\/]*)
3825   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3826   ;;
3827   *)
3828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3843   ;;
3844 esac
3845 fi
3846 DF=$ac_cv_path_DF
3847
3848 if test -n "$DF"; then
3849   echo "$as_me:$LINENO: result: $DF" >&5
3850 echo "${ECHO_T}$DF" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856 # Extract the first word of "mkisofs", so it can be a program name with args.
3857 set dummy mkisofs; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_path_MKISOFS+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   case $MKISOFS in
3864   [\\/]* | ?:[\\/]*)
3865   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3866   ;;
3867   *)
3868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3883   ;;
3884 esac
3885 fi
3886 MKISOFS=$ac_cv_path_MKISOFS
3887
3888 if test -n "$MKISOFS"; then
3889   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3890 echo "${ECHO_T}$MKISOFS" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896 # Extract the first word of "python", so it can be a program name with args.
3897 set dummy python; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_PYTHON+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $PYTHON in
3904   [\\/]* | ?:[\\/]*)
3905   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3906   ;;
3907   *)
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921
3922   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3923   ;;
3924 esac
3925 fi
3926 PYTHON=$ac_cv_path_PYTHON
3927
3928 if test -n "$PYTHON"; then
3929   echo "$as_me:$LINENO: result: $PYTHON" >&5
3930 echo "${ECHO_T}$PYTHON" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 # Extract the first word of "growisofs", so it can be a program name with args.
3937 set dummy growisofs; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   case $GROWISOFS in
3944   [\\/]* | ?:[\\/]*)
3945   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3946   ;;
3947   *)
3948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3963   ;;
3964 esac
3965 fi
3966 GROWISOFS=$ac_cv_path_GROWISOFS
3967
3968 if test -n "$GROWISOFS"; then
3969   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3970 echo "${ECHO_T}$GROWISOFS" >&6
3971 else
3972   echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3977 set dummy dvd+rw-mediainfo; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   case $DVDRWMEDIAINFO in
3984   [\\/]* | ?:[\\/]*)
3985   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3986   ;;
3987   *)
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4003   ;;
4004 esac
4005 fi
4006 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4007
4008 if test -n "$DVDRWMEDIAINFO"; then
4009   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4010 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016 # Extract the first word of "pkg-config", so it can be a program name with args.
4017 set dummy pkg-config; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   case $PKGCONFIG in
4024   [\\/]* | ?:[\\/]*)
4025   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4026   ;;
4027   *)
4028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4043   ;;
4044 esac
4045 fi
4046 PKGCONFIG=$ac_cv_path_PKGCONFIG
4047
4048 if test -n "$PKGCONFIG"; then
4049   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4050 echo "${ECHO_T}$PKGCONFIG" >&6
4051 else
4052   echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 if test "x$WXCONFIG" = x; then
4058   WXCONFIG=wx-config
4059 fi
4060 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4061 set dummy ${WXCONFIG}; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $WXCONFIG in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4087   ;;
4088 esac
4089 fi
4090 WXCONFIG=$ac_cv_path_WXCONFIG
4091
4092 if test -n "$WXCONFIG"; then
4093   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4094 echo "${ECHO_T}$WXCONFIG" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 # Extract the first word of "cdrecord", so it can be a program name with args.
4102 set dummy cdrecord; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_path_CDRECORD+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   case $CDRECORD in
4109   [\\/]* | ?:[\\/]*)
4110   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4111   ;;
4112   *)
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4128   ;;
4129 esac
4130 fi
4131 CDRECORD=$ac_cv_path_CDRECORD
4132
4133 if test -n "$CDRECORD"; then
4134   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4135 echo "${ECHO_T}$CDRECORD" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141 # Extract the first word of "pidof", so it can be a program name with args.
4142 set dummy pidof; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_path_PIDOF+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   case $PIDOF in
4149   [\\/]* | ?:[\\/]*)
4150   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4151   ;;
4152   *)
4153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166
4167   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4168   ;;
4169 esac
4170 fi
4171 PIDOF=$ac_cv_path_PIDOF
4172
4173 if test -n "$PIDOF"; then
4174   echo "$as_me:$LINENO: result: $PIDOF" >&5
4175 echo "${ECHO_T}$PIDOF" >&6
4176 else
4177   echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179 fi
4180
4181 for ac_prog in gawk mawk nawk awk
4182 do
4183   # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AWK+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if test -n "$AWK"; then
4191   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for ac_exec_ext in '' $ac_executable_extensions; do
4199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_AWK="$ac_prog"
4201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205 done
4206
4207 fi
4208 fi
4209 AWK=$ac_cv_prog_AWK
4210 if test -n "$AWK"; then
4211   echo "$as_me:$LINENO: result: $AWK" >&5
4212 echo "${ECHO_T}$AWK" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218   test -n "$AWK" && break
4219 done
4220
4221 # Some AWK programs fail, so test it and warn the user
4222 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4223       { if ((prog == $2) || (("(" prog ")") == $2) ||
4224            (("" prog "") == $2) ||
4225            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4226 else
4227   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4228    The regex engine of $AWK is too broken to be used you
4229    might want to install GNU AWK.
4230    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4231 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4232    The regex engine of $AWK is too broken to be used you
4233    might want to install GNU AWK.
4234    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237 THE_AWK=$AWK
4238 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4239 set dummy $THE_AWK; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_AWK+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   case $AWK in
4246   [\\/]* | ?:[\\/]*)
4247   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4248   ;;
4249   *)
4250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4265   ;;
4266 esac
4267 fi
4268 AWK=$ac_cv_path_AWK
4269
4270 if test -n "$AWK"; then
4271   echo "$as_me:$LINENO: result: $AWK" >&5
4272 echo "${ECHO_T}$AWK" >&6
4273 else
4274   echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 test -n "$ARFLAG" || ARFLAGS="cr"
4280
4281
4282 MAKE_SHELL=/bin/sh
4283
4284
4285
4286
4287
4288
4289
4290 # Make sure we can run config.sub.
4291 $ac_config_sub sun4 >/dev/null 2>&1 ||
4292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4294    { (exit 1); exit 1; }; }
4295
4296 echo "$as_me:$LINENO: checking build system type" >&5
4297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4298 if test "${ac_cv_build+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_cv_build_alias=$build_alias
4302 test -z "$ac_cv_build_alias" &&
4303   ac_cv_build_alias=`$ac_config_guess`
4304 test -z "$ac_cv_build_alias" &&
4305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4307    { (exit 1); exit 1; }; }
4308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4311    { (exit 1); exit 1; }; }
4312
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4315 echo "${ECHO_T}$ac_cv_build" >&6
4316 build=$ac_cv_build
4317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4320
4321
4322
4323 echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4325 if test "${ac_cv_host+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   ac_cv_host_alias=$host_alias
4329 test -z "$ac_cv_host_alias" &&
4330   ac_cv_host_alias=$ac_cv_build_alias
4331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4332   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4334    { (exit 1); exit 1; }; }
4335
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6
4339 host=$ac_cv_host
4340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4343
4344
4345 case $host_os in
4346   *cygwin* ) CYGWIN=yes;;
4347          * ) CYGWIN=no;;
4348 esac
4349
4350 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 then
4352
4353
4354 if $TRUEPRG; then
4355   HAVE_SUN_OS_TRUE=
4356   HAVE_SUN_OS_FALSE='#'
4357 else
4358   HAVE_SUN_OS_TRUE='#'
4359   HAVE_SUN_OS_FALSE=
4360 fi
4361         cat >>confdefs.h <<\_ACEOF
4362 #define HAVE_SUN_OS 1
4363 _ACEOF
4364
4365 else
4366
4367
4368 if $FALSEPRG; then
4369   HAVE_SUN_OS_TRUE=
4370   HAVE_SUN_OS_FALSE='#'
4371 else
4372   HAVE_SUN_OS_TRUE='#'
4373   HAVE_SUN_OS_FALSE=
4374 fi
4375 fi
4376
4377 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 then
4379
4380
4381 if $TRUEPRG; then
4382   HAVE_OSF1_OS_TRUE=
4383   HAVE_OSF1_OS_FALSE='#'
4384 else
4385   HAVE_OSF1_OS_TRUE='#'
4386   HAVE_OSF1_OS_FALSE=
4387 fi
4388         cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_OSF1_OS 1
4390 _ACEOF
4391
4392 else
4393
4394
4395 if $FALSEPRG; then
4396   HAVE_OSF1_OS_TRUE=
4397   HAVE_OSF1_OS_FALSE='#'
4398 else
4399   HAVE_OSF1_OS_TRUE='#'
4400   HAVE_OSF1_OS_FALSE=
4401 fi
4402 fi
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_AIX_OS_TRUE=
4410   HAVE_AIX_OS_FALSE='#'
4411 else
4412   HAVE_AIX_OS_TRUE='#'
4413   HAVE_AIX_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_AIX_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_AIX_OS_TRUE=
4424   HAVE_AIX_OS_FALSE='#'
4425 else
4426   HAVE_AIX_OS_TRUE='#'
4427   HAVE_AIX_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_HPUX_OS_TRUE=
4437   HAVE_HPUX_OS_FALSE='#'
4438 else
4439   HAVE_HPUX_OS_TRUE='#'
4440   HAVE_HPUX_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_HPUX_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_HPUX_OS_TRUE=
4451   HAVE_HPUX_OS_FALSE='#'
4452 else
4453   HAVE_HPUX_OS_TRUE='#'
4454   HAVE_HPUX_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_LINUX_OS_TRUE=
4464   HAVE_LINUX_OS_FALSE='#'
4465 else
4466   HAVE_LINUX_OS_TRUE='#'
4467   HAVE_LINUX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_LINUX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_LINUX_OS_TRUE=
4478   HAVE_LINUX_OS_FALSE='#'
4479 else
4480   HAVE_LINUX_OS_TRUE='#'
4481   HAVE_LINUX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_FREEBSD_OS_TRUE=
4491   HAVE_FREEBSD_OS_FALSE='#'
4492 else
4493   HAVE_FREEBSD_OS_TRUE='#'
4494   HAVE_FREEBSD_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_FREEBSD_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_FREEBSD_OS_TRUE=
4505   HAVE_FREEBSD_OS_FALSE='#'
4506 else
4507   HAVE_FREEBSD_OS_TRUE='#'
4508   HAVE_FREEBSD_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_NETBSD_OS_TRUE=
4518   HAVE_NETBSD_OS_FALSE='#'
4519 else
4520   HAVE_NETBSD_OS_TRUE='#'
4521   HAVE_NETBSD_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_NETBSD_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_NETBSD_OS_TRUE=
4532   HAVE_NETBSD_OS_FALSE='#'
4533 else
4534   HAVE_NETBSD_OS_TRUE='#'
4535   HAVE_NETBSD_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_OPENBSD_OS_TRUE=
4545   HAVE_OPENBSD_OS_FALSE='#'
4546 else
4547   HAVE_OPENBSD_OS_TRUE='#'
4548   HAVE_OPENBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_OPENBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_OPENBSD_OS_TRUE=
4559   HAVE_OPENBSD_OS_FALSE='#'
4560 else
4561   HAVE_OPENBSD_OS_TRUE='#'
4562   HAVE_OPENBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_BSDI_OS_TRUE=
4572   HAVE_BSDI_OS_FALSE='#'
4573 else
4574   HAVE_BSDI_OS_TRUE='#'
4575   HAVE_BSDI_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_BSDI_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_BSDI_OS_TRUE=
4586   HAVE_BSDI_OS_FALSE='#'
4587 else
4588   HAVE_BSDI_OS_TRUE='#'
4589   HAVE_BSDI_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_SGI_OS_TRUE=
4599   HAVE_SGI_OS_FALSE='#'
4600 else
4601   HAVE_SGI_OS_TRUE='#'
4602   HAVE_SGI_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_SGI_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_SGI_OS_TRUE=
4613   HAVE_SGI_OS_FALSE='#'
4614 else
4615   HAVE_SGI_OS_TRUE='#'
4616   HAVE_SGI_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_IRIX_OS_TRUE=
4626   HAVE_IRIX_OS_FALSE='#'
4627 else
4628   HAVE_IRIX_OS_TRUE='#'
4629   HAVE_IRIX_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_IRIX_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_IRIX_OS_TRUE=
4640   HAVE_IRIX_OS_FALSE='#'
4641 else
4642   HAVE_IRIX_OS_TRUE='#'
4643   HAVE_IRIX_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_DARWIN_OS_TRUE=
4653   HAVE_DARWIN_OS_FALSE='#'
4654 else
4655   HAVE_DARWIN_OS_TRUE='#'
4656   HAVE_DARWIN_OS_FALSE=
4657 fi
4658     cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_DARWIN_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_DARWIN_OS_TRUE=
4667   HAVE_DARWIN_OS_FALSE='#'
4668 else
4669   HAVE_DARWIN_OS_TRUE='#'
4670   HAVE_DARWIN_OS_FALSE=
4671 fi
4672 fi
4673
4674
4675 # -----------------------------------------------------------
4676 # ----------------------------------------------------------
4677 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4678 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4679 if test "x$DISTNAME" != "x"
4680 then
4681         echo "distname set to $DISTNAME"
4682 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4683 then
4684         DISTNAME=alpha
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4686 then
4687         DISTNAME=aix
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4689 then
4690         DISTNAME=hpux
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4692 then
4693         DISTNAME=solaris
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4695 then
4696         DISTNAME=freebsd
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4698 then
4699         DISTNAME=netbsd
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4701 then
4702         DISTNAME=openbsd
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4704 then
4705         DISTNAME=irix
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4707 then
4708         DISTNAME=bsdi
4709 elif test -f /etc/SuSE-release
4710 then
4711         DISTNAME=suse
4712 elif test -d /etc/SuSEconfig
4713 then
4714         DISTNAME=suse5
4715 elif test -f /etc/mandrake-release
4716 then
4717         DISTNAME=mandrake
4718 elif test -f /etc/whitebox-release
4719 then
4720        DISTNAME=redhat
4721 elif test -f /etc/redhat-release
4722 then
4723         DISTNAME=redhat
4724 elif test -f /etc/gentoo-release
4725 then
4726         DISTNAME=gentoo
4727 elif test -f /etc/debian_version
4728 then
4729         DISTNAME=debian
4730 elif test -f /etc/slackware-version
4731 then
4732         DISTNAME=slackware
4733 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4734 then
4735     DISTNAME=darwin
4736 elif test -f /etc/engarde-version
4737 then
4738         DISTNAME=engarde
4739 elif test "$CYGWIN" = yes
4740 then
4741         DISTNAME=cygwin
4742         cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_CYGWIN 1
4744 _ACEOF
4745
4746 else
4747         DISTNAME=unknown
4748 fi
4749 echo "$as_me:$LINENO: result: done" >&5
4750 echo "${ECHO_T}done" >&6
4751
4752
4753 # --------------------------------------------------
4754 # Suppport for gettext (translations)
4755 # By default, $datadir is ${prefix}/share
4756 # --------------------------------------------------
4757 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4758 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4759 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4760 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.make <<\_ACEOF
4764 all:
4765         @echo 'ac_maketemp="$(MAKE)"'
4766 _ACEOF
4767 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4768 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4769 if test -n "$ac_maketemp"; then
4770   eval ac_cv_prog_make_${ac_make}_set=yes
4771 else
4772   eval ac_cv_prog_make_${ac_make}_set=no
4773 fi
4774 rm -f conftest.make
4775 fi
4776 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4777   echo "$as_me:$LINENO: result: yes" >&5
4778 echo "${ECHO_T}yes" >&6
4779   SET_MAKE=
4780 else
4781   echo "$as_me:$LINENO: result: no" >&5
4782 echo "${ECHO_T}no" >&6
4783   SET_MAKE="MAKE=${MAKE-make}"
4784 fi
4785
4786
4787
4788         MKINSTALLDIRS=
4789   if test -n "$ac_aux_dir"; then
4790     case "$ac_aux_dir" in
4791       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4792       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4793     esac
4794   fi
4795   if test -z "$MKINSTALLDIRS"; then
4796     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4797   fi
4798
4799
4800
4801   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4803     # Check whether --enable-nls or --disable-nls was given.
4804 if test "${enable_nls+set}" = set; then
4805   enableval="$enable_nls"
4806   USE_NLS=$enableval
4807 else
4808   USE_NLS=yes
4809 fi;
4810   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4811 echo "${ECHO_T}$USE_NLS" >&6
4812
4813
4814
4815
4816
4817
4818 # Prepare PATH_SEPARATOR.
4819 # The user is always right.
4820 if test "${PATH_SEPARATOR+set}" != set; then
4821   echo "#! /bin/sh" >conf$$.sh
4822   echo  "exit 0"   >>conf$$.sh
4823   chmod +x conf$$.sh
4824   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4825     PATH_SEPARATOR=';'
4826   else
4827     PATH_SEPARATOR=:
4828   fi
4829   rm -f conf$$.sh
4830 fi
4831
4832 # Find out how to test for executable files. Don't use a zero-byte file,
4833 # as systems may use methods other than mode bits to determine executability.
4834 cat >conf$$.file <<_ASEOF
4835 #! /bin/sh
4836 exit 0
4837 _ASEOF
4838 chmod +x conf$$.file
4839 if test -x conf$$.file >/dev/null 2>&1; then
4840   ac_executable_p="test -x"
4841 else
4842   ac_executable_p="test -f"
4843 fi
4844 rm -f conf$$.file
4845
4846 # Extract the first word of "msgfmt", so it can be a program name with args.
4847 set dummy msgfmt; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_MSGFMT+set}" = set; then
4851   echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853   case "$MSGFMT" in
4854   [\\/]* | ?:[\\/]*)
4855     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4856     ;;
4857   *)
4858     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4859     for ac_dir in $PATH; do
4860       IFS="$ac_save_IFS"
4861       test -z "$ac_dir" && ac_dir=.
4862       for ac_exec_ext in '' $ac_executable_extensions; do
4863         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4864           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4865           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4866      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4867             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4868             break 2
4869           fi
4870         fi
4871       done
4872     done
4873     IFS="$ac_save_IFS"
4874   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4875     ;;
4876 esac
4877 fi
4878 MSGFMT="$ac_cv_path_MSGFMT"
4879 if test "$MSGFMT" != ":"; then
4880   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4881 echo "${ECHO_T}$MSGFMT" >&6
4882 else
4883   echo "$as_me:$LINENO: result: no" >&5
4884 echo "${ECHO_T}no" >&6
4885 fi
4886
4887   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4888 set dummy gmsgfmt; ac_word=$2
4889 echo "$as_me:$LINENO: checking for $ac_word" >&5
4890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4891 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4892   echo $ECHO_N "(cached) $ECHO_C" >&6
4893 else
4894   case $GMSGFMT in
4895   [\\/]* | ?:[\\/]*)
4896   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4897   ;;
4898   *)
4899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904   for ac_exec_ext in '' $ac_executable_extensions; do
4905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908     break 2
4909   fi
4910 done
4911 done
4912
4913   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4914   ;;
4915 esac
4916 fi
4917 GMSGFMT=$ac_cv_path_GMSGFMT
4918
4919 if test -n "$GMSGFMT"; then
4920   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4921 echo "${ECHO_T}$GMSGFMT" >&6
4922 else
4923   echo "$as_me:$LINENO: result: no" >&5
4924 echo "${ECHO_T}no" >&6
4925 fi
4926
4927
4928
4929 # Prepare PATH_SEPARATOR.
4930 # The user is always right.
4931 if test "${PATH_SEPARATOR+set}" != set; then
4932   echo "#! /bin/sh" >conf$$.sh
4933   echo  "exit 0"   >>conf$$.sh
4934   chmod +x conf$$.sh
4935   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4936     PATH_SEPARATOR=';'
4937   else
4938     PATH_SEPARATOR=:
4939   fi
4940   rm -f conf$$.sh
4941 fi
4942
4943 # Find out how to test for executable files. Don't use a zero-byte file,
4944 # as systems may use methods other than mode bits to determine executability.
4945 cat >conf$$.file <<_ASEOF
4946 #! /bin/sh
4947 exit 0
4948 _ASEOF
4949 chmod +x conf$$.file
4950 if test -x conf$$.file >/dev/null 2>&1; then
4951   ac_executable_p="test -x"
4952 else
4953   ac_executable_p="test -f"
4954 fi
4955 rm -f conf$$.file
4956
4957 # Extract the first word of "xgettext", so it can be a program name with args.
4958 set dummy xgettext; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   case "$XGETTEXT" in
4965   [\\/]* | ?:[\\/]*)
4966     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4967     ;;
4968   *)
4969     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4970     for ac_dir in $PATH; do
4971       IFS="$ac_save_IFS"
4972       test -z "$ac_dir" && ac_dir=.
4973       for ac_exec_ext in '' $ac_executable_extensions; do
4974         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4975           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4976           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4977      (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
4978             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4979             break 2
4980           fi
4981         fi
4982       done
4983     done
4984     IFS="$ac_save_IFS"
4985   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4986     ;;
4987 esac
4988 fi
4989 XGETTEXT="$ac_cv_path_XGETTEXT"
4990 if test "$XGETTEXT" != ":"; then
4991   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4992 echo "${ECHO_T}$XGETTEXT" >&6
4993 else
4994   echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6
4996 fi
4997
4998     rm -f messages.po
4999
5000
5001 # Prepare PATH_SEPARATOR.
5002 # The user is always right.
5003 if test "${PATH_SEPARATOR+set}" != set; then
5004   echo "#! /bin/sh" >conf$$.sh
5005   echo  "exit 0"   >>conf$$.sh
5006   chmod +x conf$$.sh
5007   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5008     PATH_SEPARATOR=';'
5009   else
5010     PATH_SEPARATOR=:
5011   fi
5012   rm -f conf$$.sh
5013 fi
5014
5015 # Find out how to test for executable files. Don't use a zero-byte file,
5016 # as systems may use methods other than mode bits to determine executability.
5017 cat >conf$$.file <<_ASEOF
5018 #! /bin/sh
5019 exit 0
5020 _ASEOF
5021 chmod +x conf$$.file
5022 if test -x conf$$.file >/dev/null 2>&1; then
5023   ac_executable_p="test -x"
5024 else
5025   ac_executable_p="test -f"
5026 fi
5027 rm -f conf$$.file
5028
5029 # Extract the first word of "msgmerge", so it can be a program name with args.
5030 set dummy msgmerge; ac_word=$2
5031 echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5033 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5034   echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036   case "$MSGMERGE" in
5037   [\\/]* | ?:[\\/]*)
5038     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5039     ;;
5040   *)
5041     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5042     for ac_dir in $PATH; do
5043       IFS="$ac_save_IFS"
5044       test -z "$ac_dir" && ac_dir=.
5045       for ac_exec_ext in '' $ac_executable_extensions; do
5046         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5047           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5048           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5049             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5050             break 2
5051           fi
5052         fi
5053       done
5054     done
5055     IFS="$ac_save_IFS"
5056   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5057     ;;
5058 esac
5059 fi
5060 MSGMERGE="$ac_cv_path_MSGMERGE"
5061 if test "$MSGMERGE" != ":"; then
5062   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5063 echo "${ECHO_T}$MSGMERGE" >&6
5064 else
5065   echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6
5067 fi
5068
5069
5070       if test "$GMSGFMT" != ":"; then
5071             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5072        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5073       : ;
5074     else
5075       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5076       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5077 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5078       GMSGFMT=":"
5079     fi
5080   fi
5081
5082       if test "$XGETTEXT" != ":"; then
5083             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5084        (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
5085       : ;
5086     else
5087       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5088 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5089       XGETTEXT=":"
5090     fi
5091         rm -f messages.po
5092   fi
5093
5094             ac_config_commands="$ac_config_commands default-1"
5095
5096
5097
5098       if test "X$prefix" = "XNONE"; then
5099     acl_final_prefix="$ac_default_prefix"
5100   else
5101     acl_final_prefix="$prefix"
5102   fi
5103   if test "X$exec_prefix" = "XNONE"; then
5104     acl_final_exec_prefix='${prefix}'
5105   else
5106     acl_final_exec_prefix="$exec_prefix"
5107   fi
5108   acl_save_prefix="$prefix"
5109   prefix="$acl_final_prefix"
5110   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5111   prefix="$acl_save_prefix"
5112
5113
5114 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5115 if test "${with_gnu_ld+set}" = set; then
5116   withval="$with_gnu_ld"
5117   test "$withval" = no || with_gnu_ld=yes
5118 else
5119   with_gnu_ld=no
5120 fi;
5121 # Prepare PATH_SEPARATOR.
5122 # The user is always right.
5123 if test "${PATH_SEPARATOR+set}" != set; then
5124   echo "#! /bin/sh" >conf$$.sh
5125   echo  "exit 0"   >>conf$$.sh
5126   chmod +x conf$$.sh
5127   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5128     PATH_SEPARATOR=';'
5129   else
5130     PATH_SEPARATOR=:
5131   fi
5132   rm -f conf$$.sh
5133 fi
5134 ac_prog=ld
5135 if test "$GCC" = yes; then
5136   # Check if gcc -print-prog-name=ld gives a path.
5137   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5138 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5139   case $host in
5140   *-*-mingw*)
5141     # gcc leaves a trailing carriage return which upsets mingw
5142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5143   *)
5144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5145   esac
5146   case $ac_prog in
5147     # Accept absolute paths.
5148     [\\/]* | [A-Za-z]:[\\/]*)
5149       re_direlt='/[^/][^/]*/\.\./'
5150       # Canonicalize the path of ld
5151       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5153         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5154       done
5155       test -z "$LD" && LD="$ac_prog"
5156       ;;
5157   "")
5158     # If it fails, then pretend we aren't using GCC.
5159     ac_prog=ld
5160     ;;
5161   *)
5162     # If it is relative, then search for the first ld in PATH.
5163     with_gnu_ld=unknown
5164     ;;
5165   esac
5166 elif test "$with_gnu_ld" = yes; then
5167   echo "$as_me:$LINENO: checking for GNU ld" >&5
5168 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5169 else
5170   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5171 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5172 fi
5173 if test "${acl_cv_path_LD+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -z "$LD"; then
5177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5178   for ac_dir in $PATH; do
5179     test -z "$ac_dir" && ac_dir=.
5180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5181       acl_cv_path_LD="$ac_dir/$ac_prog"
5182       # Check to see if the program is GNU ld.  I'd rather use --version,
5183       # but apparently some GNU ld's only accept -v.
5184       # Break only if it was the GNU/non-GNU ld that we prefer.
5185       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5186       *GNU* | *'with BFD'*)
5187         test "$with_gnu_ld" != no && break ;;
5188       *)
5189         test "$with_gnu_ld" != yes && break ;;
5190       esac
5191     fi
5192   done
5193   IFS="$ac_save_ifs"
5194 else
5195   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5196 fi
5197 fi
5198
5199 LD="$acl_cv_path_LD"
5200 if test -n "$LD"; then
5201   echo "$as_me:$LINENO: result: $LD" >&5
5202 echo "${ECHO_T}$LD" >&6
5203 else
5204   echo "$as_me:$LINENO: result: no" >&5
5205 echo "${ECHO_T}no" >&6
5206 fi
5207 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5208 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5209    { (exit 1); exit 1; }; }
5210 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5211 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5212 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5213   echo $ECHO_N "(cached) $ECHO_C" >&6
5214 else
5215   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5216 case `$LD -v 2>&1 </dev/null` in
5217 *GNU* | *'with BFD'*)
5218   acl_cv_prog_gnu_ld=yes ;;
5219 *)
5220   acl_cv_prog_gnu_ld=no ;;
5221 esac
5222 fi
5223 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5224 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5225 with_gnu_ld=$acl_cv_prog_gnu_ld
5226
5227
5228
5229
5230                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5231 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5232 if test "${acl_cv_rpath+set}" = set; then
5233   echo $ECHO_N "(cached) $ECHO_C" >&6
5234 else
5235
5236     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5237     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5238     . ./conftest.sh
5239     rm -f ./conftest.sh
5240     acl_cv_rpath=done
5241
5242 fi
5243 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5244 echo "${ECHO_T}$acl_cv_rpath" >&6
5245   wl="$acl_cv_wl"
5246   libext="$acl_cv_libext"
5247   shlibext="$acl_cv_shlibext"
5248   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5249   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5250   hardcode_direct="$acl_cv_hardcode_direct"
5251   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5252     # Check whether --enable-rpath or --disable-rpath was given.
5253 if test "${enable_rpath+set}" = set; then
5254   enableval="$enable_rpath"
5255   :
5256 else
5257   enable_rpath=yes
5258 fi;
5259
5260
5261
5262
5263
5264
5265
5266     use_additional=yes
5267
5268   acl_save_prefix="$prefix"
5269   prefix="$acl_final_prefix"
5270   acl_save_exec_prefix="$exec_prefix"
5271   exec_prefix="$acl_final_exec_prefix"
5272
5273     eval additional_includedir=\"$includedir\"
5274     eval additional_libdir=\"$libdir\"
5275
5276   exec_prefix="$acl_save_exec_prefix"
5277   prefix="$acl_save_prefix"
5278
5279
5280 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5281 if test "${with_libiconv_prefix+set}" = set; then
5282   withval="$with_libiconv_prefix"
5283
5284     if test "X$withval" = "Xno"; then
5285       use_additional=no
5286     else
5287       if test "X$withval" = "X"; then
5288
5289   acl_save_prefix="$prefix"
5290   prefix="$acl_final_prefix"
5291   acl_save_exec_prefix="$exec_prefix"
5292   exec_prefix="$acl_final_exec_prefix"
5293
5294           eval additional_includedir=\"$includedir\"
5295           eval additional_libdir=\"$libdir\"
5296
5297   exec_prefix="$acl_save_exec_prefix"
5298   prefix="$acl_save_prefix"
5299
5300       else
5301         additional_includedir="$withval/include"
5302         additional_libdir="$withval/lib"
5303       fi
5304     fi
5305
5306 fi;
5307       LIBICONV=
5308   LTLIBICONV=
5309   INCICONV=
5310   rpathdirs=
5311   ltrpathdirs=
5312   names_already_handled=
5313   names_next_round='iconv '
5314   while test -n "$names_next_round"; do
5315     names_this_round="$names_next_round"
5316     names_next_round=
5317     for name in $names_this_round; do
5318       already_handled=
5319       for n in $names_already_handled; do
5320         if test "$n" = "$name"; then
5321           already_handled=yes
5322           break
5323         fi
5324       done
5325       if test -z "$already_handled"; then
5326         names_already_handled="$names_already_handled $name"
5327                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5328         eval value=\"\$HAVE_LIB$uppername\"
5329         if test -n "$value"; then
5330           if test "$value" = yes; then
5331             eval value=\"\$LIB$uppername\"
5332             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5333             eval value=\"\$LTLIB$uppername\"
5334             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5335           else
5336                                     :
5337           fi
5338         else
5339                               found_dir=
5340           found_la=
5341           found_so=
5342           found_a=
5343           if test $use_additional = yes; then
5344             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5345               found_dir="$additional_libdir"
5346               found_so="$additional_libdir/lib$name.$shlibext"
5347               if test -f "$additional_libdir/lib$name.la"; then
5348                 found_la="$additional_libdir/lib$name.la"
5349               fi
5350             else
5351               if test -f "$additional_libdir/lib$name.$libext"; then
5352                 found_dir="$additional_libdir"
5353                 found_a="$additional_libdir/lib$name.$libext"
5354                 if test -f "$additional_libdir/lib$name.la"; then
5355                   found_la="$additional_libdir/lib$name.la"
5356                 fi
5357               fi
5358             fi
5359           fi
5360           if test "X$found_dir" = "X"; then
5361             for x in $LDFLAGS $LTLIBICONV; do
5362
5363   acl_save_prefix="$prefix"
5364   prefix="$acl_final_prefix"
5365   acl_save_exec_prefix="$exec_prefix"
5366   exec_prefix="$acl_final_exec_prefix"
5367   eval x=\"$x\"
5368   exec_prefix="$acl_save_exec_prefix"
5369   prefix="$acl_save_prefix"
5370
5371               case "$x" in
5372                 -L*)
5373                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5374                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5375                     found_dir="$dir"
5376                     found_so="$dir/lib$name.$shlibext"
5377                     if test -f "$dir/lib$name.la"; then
5378                       found_la="$dir/lib$name.la"
5379                     fi
5380                   else
5381                     if test -f "$dir/lib$name.$libext"; then
5382                       found_dir="$dir"
5383                       found_a="$dir/lib$name.$libext"
5384                       if test -f "$dir/lib$name.la"; then
5385                         found_la="$dir/lib$name.la"
5386                       fi
5387                     fi
5388                   fi
5389                   ;;
5390               esac
5391               if test "X$found_dir" != "X"; then
5392                 break
5393               fi
5394             done
5395           fi
5396           if test "X$found_dir" != "X"; then
5397                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5398             if test "X$found_so" != "X"; then
5399                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5400                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5401               else
5402                                                                                 haveit=
5403                 for x in $ltrpathdirs; do
5404                   if test "X$x" = "X$found_dir"; then
5405                     haveit=yes
5406                     break
5407                   fi
5408                 done
5409                 if test -z "$haveit"; then
5410                   ltrpathdirs="$ltrpathdirs $found_dir"
5411                 fi
5412                                 if test "$hardcode_direct" = yes; then
5413                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5414                 else
5415                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5416                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5417                                                             haveit=
5418                     for x in $rpathdirs; do
5419                       if test "X$x" = "X$found_dir"; then
5420                         haveit=yes
5421                         break
5422                       fi
5423                     done
5424                     if test -z "$haveit"; then
5425                       rpathdirs="$rpathdirs $found_dir"
5426                     fi
5427                   else
5428                                                                                 haveit=
5429                     for x in $LDFLAGS $LIBICONV; do
5430
5431   acl_save_prefix="$prefix"
5432   prefix="$acl_final_prefix"
5433   acl_save_exec_prefix="$exec_prefix"
5434   exec_prefix="$acl_final_exec_prefix"
5435   eval x=\"$x\"
5436   exec_prefix="$acl_save_exec_prefix"
5437   prefix="$acl_save_prefix"
5438
5439                       if test "X$x" = "X-L$found_dir"; then
5440                         haveit=yes
5441                         break
5442                       fi
5443                     done
5444                     if test -z "$haveit"; then
5445                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5446                     fi
5447                     if test "$hardcode_minus_L" != no; then
5448                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5449                     else
5450                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5451                     fi
5452                   fi
5453                 fi
5454               fi
5455             else
5456               if test "X$found_a" != "X"; then
5457                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5458               else
5459                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5460               fi
5461             fi
5462                         additional_includedir=
5463             case "$found_dir" in
5464               */lib | */lib/)
5465                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5466                 additional_includedir="$basedir/include"
5467                 ;;
5468             esac
5469             if test "X$additional_includedir" != "X"; then
5470                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5471                 haveit=
5472                 if test "X$additional_includedir" = "X/usr/local/include"; then
5473                   if test -n "$GCC"; then
5474                     case $host_os in
5475                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5476                     esac
5477                   fi
5478                 fi
5479                 if test -z "$haveit"; then
5480                   for x in $CPPFLAGS $INCICONV; do
5481
5482   acl_save_prefix="$prefix"
5483   prefix="$acl_final_prefix"
5484   acl_save_exec_prefix="$exec_prefix"
5485   exec_prefix="$acl_final_exec_prefix"
5486   eval x=\"$x\"
5487   exec_prefix="$acl_save_exec_prefix"
5488   prefix="$acl_save_prefix"
5489
5490                     if test "X$x" = "X-I$additional_includedir"; then
5491                       haveit=yes
5492                       break
5493                     fi
5494                   done
5495                   if test -z "$haveit"; then
5496                     if test -d "$additional_includedir"; then
5497                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5498                     fi
5499                   fi
5500                 fi
5501               fi
5502             fi
5503                         if test -n "$found_la"; then
5504                                                         save_libdir="$libdir"
5505               case "$found_la" in
5506                 */* | *\\*) . "$found_la" ;;
5507                 *) . "./$found_la" ;;
5508               esac
5509               libdir="$save_libdir"
5510                             for dep in $dependency_libs; do
5511                 case "$dep" in
5512                   -L*)
5513                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5514                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5515                       haveit=
5516                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5517                         if test -n "$GCC"; then
5518                           case $host_os in
5519                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5520                           esac
5521                         fi
5522                       fi
5523                       if test -z "$haveit"; then
5524                         haveit=
5525                         for x in $LDFLAGS $LIBICONV; do
5526
5527   acl_save_prefix="$prefix"
5528   prefix="$acl_final_prefix"
5529   acl_save_exec_prefix="$exec_prefix"
5530   exec_prefix="$acl_final_exec_prefix"
5531   eval x=\"$x\"
5532   exec_prefix="$acl_save_exec_prefix"
5533   prefix="$acl_save_prefix"
5534
5535                           if test "X$x" = "X-L$additional_libdir"; then
5536                             haveit=yes
5537                             break
5538                           fi
5539                         done
5540                         if test -z "$haveit"; then
5541                           if test -d "$additional_libdir"; then
5542                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5543                           fi
5544                         fi
5545                         haveit=
5546                         for x in $LDFLAGS $LTLIBICONV; do
5547
5548   acl_save_prefix="$prefix"
5549   prefix="$acl_final_prefix"
5550   acl_save_exec_prefix="$exec_prefix"
5551   exec_prefix="$acl_final_exec_prefix"
5552   eval x=\"$x\"
5553   exec_prefix="$acl_save_exec_prefix"
5554   prefix="$acl_save_prefix"
5555
5556                           if test "X$x" = "X-L$additional_libdir"; then
5557                             haveit=yes
5558                             break
5559                           fi
5560                         done
5561                         if test -z "$haveit"; then
5562                           if test -d "$additional_libdir"; then
5563                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5564                           fi
5565                         fi
5566                       fi
5567                     fi
5568                     ;;
5569                   -R*)
5570                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5571                     if test "$enable_rpath" != no; then
5572                                                                   haveit=
5573                       for x in $rpathdirs; do
5574                         if test "X$x" = "X$dir"; then
5575                           haveit=yes
5576                           break
5577                         fi
5578                       done
5579                       if test -z "$haveit"; then
5580                         rpathdirs="$rpathdirs $dir"
5581                       fi
5582                                                                   haveit=
5583                       for x in $ltrpathdirs; do
5584                         if test "X$x" = "X$dir"; then
5585                           haveit=yes
5586                           break
5587                         fi
5588                       done
5589                       if test -z "$haveit"; then
5590                         ltrpathdirs="$ltrpathdirs $dir"
5591                       fi
5592                     fi
5593                     ;;
5594                   -l*)
5595                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5596                     ;;
5597                   *.la)
5598                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5599                     ;;
5600                   *)
5601                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5602                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5603                     ;;
5604                 esac
5605               done
5606             fi
5607           else
5608                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5609             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5610           fi
5611         fi
5612       fi
5613     done
5614   done
5615   if test "X$rpathdirs" != "X"; then
5616     if test -n "$hardcode_libdir_separator"; then
5617                         alldirs=
5618       for found_dir in $rpathdirs; do
5619         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5620       done
5621             acl_save_libdir="$libdir"
5622       libdir="$alldirs"
5623       eval flag=\"$hardcode_libdir_flag_spec\"
5624       libdir="$acl_save_libdir"
5625       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5626     else
5627             for found_dir in $rpathdirs; do
5628         acl_save_libdir="$libdir"
5629         libdir="$found_dir"
5630         eval flag=\"$hardcode_libdir_flag_spec\"
5631         libdir="$acl_save_libdir"
5632         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5633       done
5634     fi
5635   fi
5636   if test "X$ltrpathdirs" != "X"; then
5637             for found_dir in $ltrpathdirs; do
5638       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5639     done
5640   fi
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5660 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5661 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5662   echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664   gt_save_CPPFLAGS="$CPPFLAGS"
5665      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5666      gt_save_LIBS="$LIBS"
5667      LIBS="$LIBS -framework CoreFoundation"
5668      cat >conftest.$ac_ext <<_ACEOF
5669 /* confdefs.h.  */
5670 _ACEOF
5671 cat confdefs.h >>conftest.$ac_ext
5672 cat >>conftest.$ac_ext <<_ACEOF
5673 /* end confdefs.h.  */
5674 #include <CFPreferences.h>
5675 int
5676 main ()
5677 {
5678 CFPreferencesCopyAppValue(NULL, NULL)
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } &&
5692          { ac_try='test -z "$ac_c_werror_flag"
5693                          || test ! -s conftest.err'
5694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5695   (eval $ac_try) 2>&5
5696   ac_status=$?
5697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698   (exit $ac_status); }; } &&
5699          { ac_try='test -s conftest$ac_exeext'
5700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5701   (eval $ac_try) 2>&5
5702   ac_status=$?
5703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704   (exit $ac_status); }; }; then
5705   gt_cv_func_CFPreferencesCopyAppValue=yes
5706 else
5707   echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5709
5710 gt_cv_func_CFPreferencesCopyAppValue=no
5711 fi
5712 rm -f conftest.err conftest.$ac_objext \
5713       conftest$ac_exeext conftest.$ac_ext
5714      CPPFLAGS="$gt_save_CPPFLAGS"
5715      LIBS="$gt_save_LIBS"
5716 fi
5717 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5718 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5719   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5720
5721 cat >>confdefs.h <<\_ACEOF
5722 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5723 _ACEOF
5724
5725   fi
5726     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5727 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5728 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5729   echo $ECHO_N "(cached) $ECHO_C" >&6
5730 else
5731   gt_save_CPPFLAGS="$CPPFLAGS"
5732      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5733      gt_save_LIBS="$LIBS"
5734      LIBS="$LIBS -framework CoreFoundation"
5735      cat >conftest.$ac_ext <<_ACEOF
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 #include <CFLocale.h>
5742 int
5743 main ()
5744 {
5745 CFLocaleCopyCurrent();
5746   ;
5747   return 0;
5748 }
5749 _ACEOF
5750 rm -f conftest.$ac_objext conftest$ac_exeext
5751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5752   (eval $ac_link) 2>conftest.er1
5753   ac_status=$?
5754   grep -v '^ *+' conftest.er1 >conftest.err
5755   rm -f conftest.er1
5756   cat conftest.err >&5
5757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758   (exit $ac_status); } &&
5759          { ac_try='test -z "$ac_c_werror_flag"
5760                          || test ! -s conftest.err'
5761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762   (eval $ac_try) 2>&5
5763   ac_status=$?
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); }; } &&
5766          { ac_try='test -s conftest$ac_exeext'
5767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5768   (eval $ac_try) 2>&5
5769   ac_status=$?
5770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5771   (exit $ac_status); }; }; then
5772   gt_cv_func_CFLocaleCopyCurrent=yes
5773 else
5774   echo "$as_me: failed program was:" >&5
5775 sed 's/^/| /' conftest.$ac_ext >&5
5776
5777 gt_cv_func_CFLocaleCopyCurrent=no
5778 fi
5779 rm -f conftest.err conftest.$ac_objext \
5780       conftest$ac_exeext conftest.$ac_ext
5781      CPPFLAGS="$gt_save_CPPFLAGS"
5782      LIBS="$gt_save_LIBS"
5783 fi
5784 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5785 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5786   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5787
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_CFLOCALECOPYCURRENT 1
5790 _ACEOF
5791
5792   fi
5793   INTL_MACOSX_LIBS=
5794   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5795     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5796   fi
5797
5798
5799
5800
5801   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5803     # Check whether --enable-nls or --disable-nls was given.
5804 if test "${enable_nls+set}" = set; then
5805   enableval="$enable_nls"
5806   USE_NLS=$enableval
5807 else
5808   USE_NLS=yes
5809 fi;
5810   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5811 echo "${ECHO_T}$USE_NLS" >&6
5812
5813
5814
5815
5816   LIBINTL=
5817   LTLIBINTL=
5818   POSUB=
5819
5820     if test "$USE_NLS" = "yes"; then
5821     gt_use_preinstalled_gnugettext=no
5822
5823
5824
5825
5826
5827
5828         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5829 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5830 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5831   echo $ECHO_N "(cached) $ECHO_C" >&6
5832 else
5833   cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h.  */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h.  */
5839 #include <libintl.h>
5840 extern int _nl_msg_cat_cntr;
5841 extern int *_nl_domain_bindings;
5842 int
5843 main ()
5844 {
5845 bindtextdomain ("", "");
5846 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext conftest$ac_exeext
5852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5853   (eval $ac_link) 2>conftest.er1
5854   ac_status=$?
5855   grep -v '^ *+' conftest.er1 >conftest.err
5856   rm -f conftest.er1
5857   cat conftest.err >&5
5858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859   (exit $ac_status); } &&
5860          { ac_try='test -z "$ac_c_werror_flag"
5861                          || test ! -s conftest.err'
5862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863   (eval $ac_try) 2>&5
5864   ac_status=$?
5865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866   (exit $ac_status); }; } &&
5867          { ac_try='test -s conftest$ac_exeext'
5868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5869   (eval $ac_try) 2>&5
5870   ac_status=$?
5871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872   (exit $ac_status); }; }; then
5873   gt_cv_func_gnugettext1_libc=yes
5874 else
5875   echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5877
5878 gt_cv_func_gnugettext1_libc=no
5879 fi
5880 rm -f conftest.err conftest.$ac_objext \
5881       conftest$ac_exeext conftest.$ac_ext
5882 fi
5883 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5884 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5885
5886         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5887
5888
5889
5890
5891
5892           am_save_CPPFLAGS="$CPPFLAGS"
5893
5894   for element in $INCICONV; do
5895     haveit=
5896     for x in $CPPFLAGS; do
5897
5898   acl_save_prefix="$prefix"
5899   prefix="$acl_final_prefix"
5900   acl_save_exec_prefix="$exec_prefix"
5901   exec_prefix="$acl_final_exec_prefix"
5902   eval x=\"$x\"
5903   exec_prefix="$acl_save_exec_prefix"
5904   prefix="$acl_save_prefix"
5905
5906       if test "X$x" = "X$element"; then
5907         haveit=yes
5908         break
5909       fi
5910     done
5911     if test -z "$haveit"; then
5912       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5913     fi
5914   done
5915
5916
5917   echo "$as_me:$LINENO: checking for iconv" >&5
5918 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5919 if test "${am_cv_func_iconv+set}" = set; then
5920   echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922
5923     am_cv_func_iconv="no, consider installing GNU libiconv"
5924     am_cv_lib_iconv=no
5925     cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 #include <stdlib.h>
5932 #include <iconv.h>
5933 int
5934 main ()
5935 {
5936 iconv_t cd = iconv_open("","");
5937        iconv(cd,NULL,NULL,NULL,NULL);
5938        iconv_close(cd);
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945   (eval $ac_link) 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -z "$ac_c_werror_flag"
5953                          || test ! -s conftest.err'
5954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5955   (eval $ac_try) 2>&5
5956   ac_status=$?
5957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5958   (exit $ac_status); }; } &&
5959          { ac_try='test -s conftest$ac_exeext'
5960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5961   (eval $ac_try) 2>&5
5962   ac_status=$?
5963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); }; }; then
5965   am_cv_func_iconv=yes
5966 else
5967   echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 fi
5971 rm -f conftest.err conftest.$ac_objext \
5972       conftest$ac_exeext conftest.$ac_ext
5973     if test "$am_cv_func_iconv" != yes; then
5974       am_save_LIBS="$LIBS"
5975       LIBS="$LIBS $LIBICONV"
5976       cat >conftest.$ac_ext <<_ACEOF
5977 /* confdefs.h.  */
5978 _ACEOF
5979 cat confdefs.h >>conftest.$ac_ext
5980 cat >>conftest.$ac_ext <<_ACEOF
5981 /* end confdefs.h.  */
5982 #include <stdlib.h>
5983 #include <iconv.h>
5984 int
5985 main ()
5986 {
5987 iconv_t cd = iconv_open("","");
5988          iconv(cd,NULL,NULL,NULL,NULL);
5989          iconv_close(cd);
5990   ;
5991   return 0;
5992 }
5993 _ACEOF
5994 rm -f conftest.$ac_objext conftest$ac_exeext
5995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5996   (eval $ac_link) 2>conftest.er1
5997   ac_status=$?
5998   grep -v '^ *+' conftest.er1 >conftest.err
5999   rm -f conftest.er1
6000   cat conftest.err >&5
6001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002   (exit $ac_status); } &&
6003          { ac_try='test -z "$ac_c_werror_flag"
6004                          || test ! -s conftest.err'
6005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006   (eval $ac_try) 2>&5
6007   ac_status=$?
6008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6009   (exit $ac_status); }; } &&
6010          { ac_try='test -s conftest$ac_exeext'
6011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012   (eval $ac_try) 2>&5
6013   ac_status=$?
6014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015   (exit $ac_status); }; }; then
6016   am_cv_lib_iconv=yes
6017         am_cv_func_iconv=yes
6018 else
6019   echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022 fi
6023 rm -f conftest.err conftest.$ac_objext \
6024       conftest$ac_exeext conftest.$ac_ext
6025       LIBS="$am_save_LIBS"
6026     fi
6027
6028 fi
6029 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6030 echo "${ECHO_T}$am_cv_func_iconv" >&6
6031   if test "$am_cv_func_iconv" = yes; then
6032
6033 cat >>confdefs.h <<\_ACEOF
6034 #define HAVE_ICONV 1
6035 _ACEOF
6036
6037   fi
6038   if test "$am_cv_lib_iconv" = yes; then
6039     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6040 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6041     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6042 echo "${ECHO_T}$LIBICONV" >&6
6043   else
6044             CPPFLAGS="$am_save_CPPFLAGS"
6045     LIBICONV=
6046     LTLIBICONV=
6047   fi
6048
6049
6050
6051
6052
6053
6054     use_additional=yes
6055
6056   acl_save_prefix="$prefix"
6057   prefix="$acl_final_prefix"
6058   acl_save_exec_prefix="$exec_prefix"
6059   exec_prefix="$acl_final_exec_prefix"
6060
6061     eval additional_includedir=\"$includedir\"
6062     eval additional_libdir=\"$libdir\"
6063
6064   exec_prefix="$acl_save_exec_prefix"
6065   prefix="$acl_save_prefix"
6066
6067
6068 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6069 if test "${with_libintl_prefix+set}" = set; then
6070   withval="$with_libintl_prefix"
6071
6072     if test "X$withval" = "Xno"; then
6073       use_additional=no
6074     else
6075       if test "X$withval" = "X"; then
6076
6077   acl_save_prefix="$prefix"
6078   prefix="$acl_final_prefix"
6079   acl_save_exec_prefix="$exec_prefix"
6080   exec_prefix="$acl_final_exec_prefix"
6081
6082           eval additional_includedir=\"$includedir\"
6083           eval additional_libdir=\"$libdir\"
6084
6085   exec_prefix="$acl_save_exec_prefix"
6086   prefix="$acl_save_prefix"
6087
6088       else
6089         additional_includedir="$withval/include"
6090         additional_libdir="$withval/lib"
6091       fi
6092     fi
6093
6094 fi;
6095       LIBINTL=
6096   LTLIBINTL=
6097   INCINTL=
6098   rpathdirs=
6099   ltrpathdirs=
6100   names_already_handled=
6101   names_next_round='intl '
6102   while test -n "$names_next_round"; do
6103     names_this_round="$names_next_round"
6104     names_next_round=
6105     for name in $names_this_round; do
6106       already_handled=
6107       for n in $names_already_handled; do
6108         if test "$n" = "$name"; then
6109           already_handled=yes
6110           break
6111         fi
6112       done
6113       if test -z "$already_handled"; then
6114         names_already_handled="$names_already_handled $name"
6115                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6116         eval value=\"\$HAVE_LIB$uppername\"
6117         if test -n "$value"; then
6118           if test "$value" = yes; then
6119             eval value=\"\$LIB$uppername\"
6120             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6121             eval value=\"\$LTLIB$uppername\"
6122             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6123           else
6124                                     :
6125           fi
6126         else
6127                               found_dir=
6128           found_la=
6129           found_so=
6130           found_a=
6131           if test $use_additional = yes; then
6132             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6133               found_dir="$additional_libdir"
6134               found_so="$additional_libdir/lib$name.$shlibext"
6135               if test -f "$additional_libdir/lib$name.la"; then
6136                 found_la="$additional_libdir/lib$name.la"
6137               fi
6138             else
6139               if test -f "$additional_libdir/lib$name.$libext"; then
6140                 found_dir="$additional_libdir"
6141                 found_a="$additional_libdir/lib$name.$libext"
6142                 if test -f "$additional_libdir/lib$name.la"; then
6143                   found_la="$additional_libdir/lib$name.la"
6144                 fi
6145               fi
6146             fi
6147           fi
6148           if test "X$found_dir" = "X"; then
6149             for x in $LDFLAGS $LTLIBINTL; do
6150
6151   acl_save_prefix="$prefix"
6152   prefix="$acl_final_prefix"
6153   acl_save_exec_prefix="$exec_prefix"
6154   exec_prefix="$acl_final_exec_prefix"
6155   eval x=\"$x\"
6156   exec_prefix="$acl_save_exec_prefix"
6157   prefix="$acl_save_prefix"
6158
6159               case "$x" in
6160                 -L*)
6161                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6162                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6163                     found_dir="$dir"
6164                     found_so="$dir/lib$name.$shlibext"
6165                     if test -f "$dir/lib$name.la"; then
6166                       found_la="$dir/lib$name.la"
6167                     fi
6168                   else
6169                     if test -f "$dir/lib$name.$libext"; then
6170                       found_dir="$dir"
6171                       found_a="$dir/lib$name.$libext"
6172                       if test -f "$dir/lib$name.la"; then
6173                         found_la="$dir/lib$name.la"
6174                       fi
6175                     fi
6176                   fi
6177                   ;;
6178               esac
6179               if test "X$found_dir" != "X"; then
6180                 break
6181               fi
6182             done
6183           fi
6184           if test "X$found_dir" != "X"; then
6185                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6186             if test "X$found_so" != "X"; then
6187                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6188                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6189               else
6190                                                                                 haveit=
6191                 for x in $ltrpathdirs; do
6192                   if test "X$x" = "X$found_dir"; then
6193                     haveit=yes
6194                     break
6195                   fi
6196                 done
6197                 if test -z "$haveit"; then
6198                   ltrpathdirs="$ltrpathdirs $found_dir"
6199                 fi
6200                                 if test "$hardcode_direct" = yes; then
6201                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6202                 else
6203                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6204                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6205                                                             haveit=
6206                     for x in $rpathdirs; do
6207                       if test "X$x" = "X$found_dir"; then
6208                         haveit=yes
6209                         break
6210                       fi
6211                     done
6212                     if test -z "$haveit"; then
6213                       rpathdirs="$rpathdirs $found_dir"
6214                     fi
6215                   else
6216                                                                                 haveit=
6217                     for x in $LDFLAGS $LIBINTL; do
6218
6219   acl_save_prefix="$prefix"
6220   prefix="$acl_final_prefix"
6221   acl_save_exec_prefix="$exec_prefix"
6222   exec_prefix="$acl_final_exec_prefix"
6223   eval x=\"$x\"
6224   exec_prefix="$acl_save_exec_prefix"
6225   prefix="$acl_save_prefix"
6226
6227                       if test "X$x" = "X-L$found_dir"; then
6228                         haveit=yes
6229                         break
6230                       fi
6231                     done
6232                     if test -z "$haveit"; then
6233                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6234                     fi
6235                     if test "$hardcode_minus_L" != no; then
6236                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6237                     else
6238                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6239                     fi
6240                   fi
6241                 fi
6242               fi
6243             else
6244               if test "X$found_a" != "X"; then
6245                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6246               else
6247                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6248               fi
6249             fi
6250                         additional_includedir=
6251             case "$found_dir" in
6252               */lib | */lib/)
6253                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6254                 additional_includedir="$basedir/include"
6255                 ;;
6256             esac
6257             if test "X$additional_includedir" != "X"; then
6258                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6259                 haveit=
6260                 if test "X$additional_includedir" = "X/usr/local/include"; then
6261                   if test -n "$GCC"; then
6262                     case $host_os in
6263                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6264                     esac
6265                   fi
6266                 fi
6267                 if test -z "$haveit"; then
6268                   for x in $CPPFLAGS $INCINTL; do
6269
6270   acl_save_prefix="$prefix"
6271   prefix="$acl_final_prefix"
6272   acl_save_exec_prefix="$exec_prefix"
6273   exec_prefix="$acl_final_exec_prefix"
6274   eval x=\"$x\"
6275   exec_prefix="$acl_save_exec_prefix"
6276   prefix="$acl_save_prefix"
6277
6278                     if test "X$x" = "X-I$additional_includedir"; then
6279                       haveit=yes
6280                       break
6281                     fi
6282                   done
6283                   if test -z "$haveit"; then
6284                     if test -d "$additional_includedir"; then
6285                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6286                     fi
6287                   fi
6288                 fi
6289               fi
6290             fi
6291                         if test -n "$found_la"; then
6292                                                         save_libdir="$libdir"
6293               case "$found_la" in
6294                 */* | *\\*) . "$found_la" ;;
6295                 *) . "./$found_la" ;;
6296               esac
6297               libdir="$save_libdir"
6298                             for dep in $dependency_libs; do
6299                 case "$dep" in
6300                   -L*)
6301                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6302                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6303                       haveit=
6304                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6305                         if test -n "$GCC"; then
6306                           case $host_os in
6307                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6308                           esac
6309                         fi
6310                       fi
6311                       if test -z "$haveit"; then
6312                         haveit=
6313                         for x in $LDFLAGS $LIBINTL; do
6314
6315   acl_save_prefix="$prefix"
6316   prefix="$acl_final_prefix"
6317   acl_save_exec_prefix="$exec_prefix"
6318   exec_prefix="$acl_final_exec_prefix"
6319   eval x=\"$x\"
6320   exec_prefix="$acl_save_exec_prefix"
6321   prefix="$acl_save_prefix"
6322
6323                           if test "X$x" = "X-L$additional_libdir"; then
6324                             haveit=yes
6325                             break
6326                           fi
6327                         done
6328                         if test -z "$haveit"; then
6329                           if test -d "$additional_libdir"; then
6330                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6331                           fi
6332                         fi
6333                         haveit=
6334                         for x in $LDFLAGS $LTLIBINTL; do
6335
6336   acl_save_prefix="$prefix"
6337   prefix="$acl_final_prefix"
6338   acl_save_exec_prefix="$exec_prefix"
6339   exec_prefix="$acl_final_exec_prefix"
6340   eval x=\"$x\"
6341   exec_prefix="$acl_save_exec_prefix"
6342   prefix="$acl_save_prefix"
6343
6344                           if test "X$x" = "X-L$additional_libdir"; then
6345                             haveit=yes
6346                             break
6347                           fi
6348                         done
6349                         if test -z "$haveit"; then
6350                           if test -d "$additional_libdir"; then
6351                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6352                           fi
6353                         fi
6354                       fi
6355                     fi
6356                     ;;
6357                   -R*)
6358                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6359                     if test "$enable_rpath" != no; then
6360                                                                   haveit=
6361                       for x in $rpathdirs; do
6362                         if test "X$x" = "X$dir"; then
6363                           haveit=yes
6364                           break
6365                         fi
6366                       done
6367                       if test -z "$haveit"; then
6368                         rpathdirs="$rpathdirs $dir"
6369                       fi
6370                                                                   haveit=
6371                       for x in $ltrpathdirs; do
6372                         if test "X$x" = "X$dir"; then
6373                           haveit=yes
6374                           break
6375                         fi
6376                       done
6377                       if test -z "$haveit"; then
6378                         ltrpathdirs="$ltrpathdirs $dir"
6379                       fi
6380                     fi
6381                     ;;
6382                   -l*)
6383                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6384                     ;;
6385                   *.la)
6386                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6387                     ;;
6388                   *)
6389                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6390                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6391                     ;;
6392                 esac
6393               done
6394             fi
6395           else
6396                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6397             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6398           fi
6399         fi
6400       fi
6401     done
6402   done
6403   if test "X$rpathdirs" != "X"; then
6404     if test -n "$hardcode_libdir_separator"; then
6405                         alldirs=
6406       for found_dir in $rpathdirs; do
6407         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6408       done
6409             acl_save_libdir="$libdir"
6410       libdir="$alldirs"
6411       eval flag=\"$hardcode_libdir_flag_spec\"
6412       libdir="$acl_save_libdir"
6413       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6414     else
6415             for found_dir in $rpathdirs; do
6416         acl_save_libdir="$libdir"
6417         libdir="$found_dir"
6418         eval flag=\"$hardcode_libdir_flag_spec\"
6419         libdir="$acl_save_libdir"
6420         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6421       done
6422     fi
6423   fi
6424   if test "X$ltrpathdirs" != "X"; then
6425             for found_dir in $ltrpathdirs; do
6426       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6427     done
6428   fi
6429
6430           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6431 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6432 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6433   echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435   gt_save_CPPFLAGS="$CPPFLAGS"
6436             CPPFLAGS="$CPPFLAGS $INCINTL"
6437             gt_save_LIBS="$LIBS"
6438             LIBS="$LIBS $LIBINTL"
6439                         cat >conftest.$ac_ext <<_ACEOF
6440 /* confdefs.h.  */
6441 _ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h.  */
6445 #include <libintl.h>
6446 extern int _nl_msg_cat_cntr;
6447 extern
6448 #ifdef __cplusplus
6449 "C"
6450 #endif
6451 const char *_nl_expand_alias (const char *);
6452 int
6453 main ()
6454 {
6455 bindtextdomain ("", "");
6456 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6457   ;
6458   return 0;
6459 }
6460 _ACEOF
6461 rm -f conftest.$ac_objext conftest$ac_exeext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463   (eval $ac_link) 2>conftest.er1
6464   ac_status=$?
6465   grep -v '^ *+' conftest.er1 >conftest.err
6466   rm -f conftest.er1
6467   cat conftest.err >&5
6468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469   (exit $ac_status); } &&
6470          { ac_try='test -z "$ac_c_werror_flag"
6471                          || test ! -s conftest.err'
6472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6473   (eval $ac_try) 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; } &&
6477          { ac_try='test -s conftest$ac_exeext'
6478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6479   (eval $ac_try) 2>&5
6480   ac_status=$?
6481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482   (exit $ac_status); }; }; then
6483   gt_cv_func_gnugettext1_libintl=yes
6484 else
6485   echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 gt_cv_func_gnugettext1_libintl=no
6489 fi
6490 rm -f conftest.err conftest.$ac_objext \
6491       conftest$ac_exeext conftest.$ac_ext
6492                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6493               LIBS="$LIBS $LIBICONV"
6494               cat >conftest.$ac_ext <<_ACEOF
6495 /* confdefs.h.  */
6496 _ACEOF
6497 cat confdefs.h >>conftest.$ac_ext
6498 cat >>conftest.$ac_ext <<_ACEOF
6499 /* end confdefs.h.  */
6500 #include <libintl.h>
6501 extern int _nl_msg_cat_cntr;
6502 extern
6503 #ifdef __cplusplus
6504 "C"
6505 #endif
6506 const char *_nl_expand_alias (const char *);
6507 int
6508 main ()
6509 {
6510 bindtextdomain ("", "");
6511 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6512   ;
6513   return 0;
6514 }
6515 _ACEOF
6516 rm -f conftest.$ac_objext conftest$ac_exeext
6517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6518   (eval $ac_link) 2>conftest.er1
6519   ac_status=$?
6520   grep -v '^ *+' conftest.er1 >conftest.err
6521   rm -f conftest.er1
6522   cat conftest.err >&5
6523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524   (exit $ac_status); } &&
6525          { ac_try='test -z "$ac_c_werror_flag"
6526                          || test ! -s conftest.err'
6527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6528   (eval $ac_try) 2>&5
6529   ac_status=$?
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); }; } &&
6532          { ac_try='test -s conftest$ac_exeext'
6533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534   (eval $ac_try) 2>&5
6535   ac_status=$?
6536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537   (exit $ac_status); }; }; then
6538   LIBINTL="$LIBINTL $LIBICONV"
6539                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6540                 gt_cv_func_gnugettext1_libintl=yes
6541
6542 else
6543   echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6545
6546 fi
6547 rm -f conftest.err conftest.$ac_objext \
6548       conftest$ac_exeext conftest.$ac_ext
6549             fi
6550             CPPFLAGS="$gt_save_CPPFLAGS"
6551             LIBS="$gt_save_LIBS"
6552 fi
6553 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6554 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6555         fi
6556
6557                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6558            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6559                 && test "$PACKAGE" != gettext-runtime \
6560                 && test "$PACKAGE" != gettext-tools; }; then
6561           gt_use_preinstalled_gnugettext=yes
6562         else
6563                     LIBINTL=
6564           LTLIBINTL=
6565           INCINTL=
6566         fi
6567
6568
6569
6570     if test -n "$INTL_MACOSX_LIBS"; then
6571       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6572          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6573                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6574         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6575       fi
6576     fi
6577
6578     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6579        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6580
6581 cat >>confdefs.h <<\_ACEOF
6582 #define ENABLE_NLS 1
6583 _ACEOF
6584
6585     else
6586       USE_NLS=no
6587     fi
6588   fi
6589
6590   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6591 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6592   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6593 echo "${ECHO_T}$USE_NLS" >&6
6594   if test "$USE_NLS" = "yes"; then
6595     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6596 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6597     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6598       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6599         gt_source="external libintl"
6600       else
6601         gt_source="libc"
6602       fi
6603     else
6604       gt_source="included intl directory"
6605     fi
6606     echo "$as_me:$LINENO: result: $gt_source" >&5
6607 echo "${ECHO_T}$gt_source" >&6
6608   fi
6609
6610   if test "$USE_NLS" = "yes"; then
6611
6612     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6613       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6614         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6615 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6616         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6617 echo "${ECHO_T}$LIBINTL" >&6
6618
6619   for element in $INCINTL; do
6620     haveit=
6621     for x in $CPPFLAGS; do
6622
6623   acl_save_prefix="$prefix"
6624   prefix="$acl_final_prefix"
6625   acl_save_exec_prefix="$exec_prefix"
6626   exec_prefix="$acl_final_exec_prefix"
6627   eval x=\"$x\"
6628   exec_prefix="$acl_save_exec_prefix"
6629   prefix="$acl_save_prefix"
6630
6631       if test "X$x" = "X$element"; then
6632         haveit=yes
6633         break
6634       fi
6635     done
6636     if test -z "$haveit"; then
6637       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6638     fi
6639   done
6640
6641       fi
6642
6643
6644 cat >>confdefs.h <<\_ACEOF
6645 #define HAVE_GETTEXT 1
6646 _ACEOF
6647
6648
6649 cat >>confdefs.h <<\_ACEOF
6650 #define HAVE_DCGETTEXT 1
6651 _ACEOF
6652
6653     fi
6654
6655         POSUB=po
6656   fi
6657
6658
6659
6660     INTLLIBS="$LIBINTL"
6661
6662
6663
6664
6665
6666
6667 if test x${prefix} = xNONE && test x${datadir} = x${prefix}/share ; then
6668    datadir=/usr/share
6669 fi
6670 localedir=`eval echo ${datadir}/locale`
6671 cat >>confdefs.h <<_ACEOF
6672 #define LOCALEDIR "$localedir"
6673 _ACEOF
6674
6675
6676 # ------------------------------------------------------------------
6677 #  If the user has not set --prefix, we set our default to nothing.
6678 #  In this case, if the user has not set --sysconfdir, we set it
6679 #  to the package default of /etc/bacula.  If either --prefix or
6680 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6681 # ------------------------------------------------------------------
6682 if test x${prefix} = xNONE ; then
6683     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6684         sysconfdir=/etc/bacula
6685     fi
6686     prefix=
6687 fi
6688 sysconfdir=`eval echo ${sysconfdir}`
6689
6690 # -------------------------------------------------------------------------
6691 #  If the user has not set --exec-prefix, we default to ${prefix}
6692 # -------------------------------------------------------------------------
6693 if test x${exec_prefix} = xNONE ; then
6694     exec_prefix=${prefix}
6695 fi
6696
6697 # ------------------------------------------------------------------
6698 # If the user has not set --sbindir, we set our default as /sbin
6699 # ------------------------------------------------------------------
6700 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6701     sbindir=${exec_prefix}/sbin
6702 fi
6703 sbindir=`eval echo ${sbindir}`
6704
6705 # -------------------------------------------------------------------------
6706 #  If the user has not set --mandir, we default to /usr/share/man
6707 # -------------------------------------------------------------------------
6708 if test x$mandir = x'${prefix}/man' ; then
6709    mandir=/usr/share/man
6710 fi
6711
6712
6713 # ------------------------------------------------------------------
6714 # All list of languages for which a translation exist. Each
6715 #  language is separated by a space.
6716 # ------------------------------------------------------------------
6717 ALL_LINGUAS=""
6718
6719 for ac_prog in msgfmt
6720 do
6721   # Extract the first word of "$ac_prog", so it can be a program name with args.
6722 set dummy $ac_prog; ac_word=$2
6723 echo "$as_me:$LINENO: checking for $ac_word" >&5
6724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6725 if test "${ac_cv_path_MSGFMT+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   case $MSGFMT in
6729   [\\/]* | ?:[\\/]*)
6730   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6731   ;;
6732   *)
6733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6735 do
6736   IFS=$as_save_IFS
6737   test -z "$as_dir" && as_dir=.
6738   for ac_exec_ext in '' $ac_executable_extensions; do
6739   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6740     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6741     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742     break 2
6743   fi
6744 done
6745 done
6746
6747   ;;
6748 esac
6749 fi
6750 MSGFMT=$ac_cv_path_MSGFMT
6751
6752 if test -n "$MSGFMT"; then
6753   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6754 echo "${ECHO_T}$MSGFMT" >&6
6755 else
6756   echo "$as_me:$LINENO: result: no" >&5
6757 echo "${ECHO_T}no" >&6
6758 fi
6759
6760   test -n "$MSGFMT" && break
6761 done
6762 test -n "$MSGFMT" || MSGFMT="no"
6763
6764 if test "$MSGFMT" = "no"
6765 then
6766    echo 'msgfmt program not found, disabling NLS !'
6767    USE_NLS=no
6768    USE_INCLUDED_LIBINTL=no
6769 #else
6770 #   AM_GNU_GETTEXT
6771 fi
6772
6773
6774 support_mysql=no
6775 support_sqlite=no
6776 support_sqlite3=no
6777 support_postgresql=no
6778 support_smartalloc=yes
6779 support_readline=yes
6780 support_conio=yes
6781 support_gnome=no
6782 support_wx_console=no
6783 support_tls=no
6784 gnome_version=
6785 wx_version=
6786 support_static_tools=no
6787 support_static_fd=no
6788 support_static_sd=no
6789 support_static_dir=no
6790 support_static_cons=no
6791 support_python=no
6792 build_client_only=no
6793 cats=
6794 db_name=Internal
6795 DB_NAME=bdb
6796
6797
6798 # -------------------------------------------
6799 # gnome (default off)
6800 # -------------------------------------------
6801 # Check whether --enable-gnome or --disable-gnome was given.
6802 if test "${enable_gnome+set}" = set; then
6803   enableval="$enable_gnome"
6804   if test x$enableval = xyes; then
6805     support_gnome=yes
6806   fi
6807 fi;
6808
6809 GNOME_DIR=
6810 if test x$support_gnome = xyes; then
6811   abc=`$PKGCONFIG --exists libgnomeui-2.0`
6812   pkg=$?
6813   if test $pkg = 0; then
6814      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6815      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6816      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6817      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6818
6819
6820
6821
6822      GNOME_DIR=src/gnome2-console
6823      gnome_version="Version 2.x"
6824   else
6825      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6826 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6827    { (exit 1); exit 1; }; }
6828   fi
6829 fi
6830
6831
6832
6833 # -------------------------------------------
6834 # wx-console (default off)
6835 # -------------------------------------------
6836 # Check whether --enable-wx-console or --disable-wx-console was given.
6837 if test "${enable_wx_console+set}" = set; then
6838   enableval="$enable_wx_console"
6839   if test x$enableval = xyes; then
6840     support_wx_console=yes
6841   fi
6842 fi;
6843
6844 WX_DIR=
6845 if test x$support_wx_console = xyes; then
6846   abc=`$WXCONFIG $WXFLAGS --cppflags`
6847   pkg=$?
6848   if test $pkg = 0; then
6849      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6850      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6851      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6852
6853
6854
6855      WX_DIR=src/wx-console
6856   else
6857      echo " "
6858      echo "wx-config program not found. wx-console disabled."
6859      echo " "
6860      support_wx_console=no
6861   fi
6862 fi
6863
6864
6865
6866 # -------------------------------------------
6867 # tray-monitor (default off)
6868 # -------------------------------------------
6869 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6870 if test "${enable_tray_monitor+set}" = set; then
6871   enableval="$enable_tray_monitor"
6872   if test x$enableval = xyes; then
6873     support_tray_monitor=yes
6874   fi
6875 fi;
6876
6877 TRAY_MONITOR_DIR=
6878 if test x$support_tray_monitor = xyes; then
6879   abc=`$PKGCONFIG --exists gtk+-2.0`
6880   pkg=$?
6881   if test $pkg = 0; then
6882      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6883      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6884
6885
6886      TRAY_MONITOR_DIR=src/tray-monitor
6887      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6888      pkg=$?
6889      if test $pkg = 0; then
6890         cat >>confdefs.h <<\_ACEOF
6891 #define HAVE_GTK_2_4 1
6892 _ACEOF
6893
6894      fi
6895   fi
6896 fi
6897
6898
6899 # -------------------------------------------
6900 # smartalloc (default off)
6901 # -------------------------------------------
6902 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6903 if test "${enable_smartalloc+set}" = set; then
6904   enableval="$enable_smartalloc"
6905   if test x$enableval = xno; then
6906     support_smartalloc=no
6907   fi
6908 fi;
6909
6910 if test x$support_smartalloc = xyes; then
6911    cat >>confdefs.h <<\_ACEOF
6912 #define SMARTALLOC 1
6913 _ACEOF
6914
6915 fi
6916
6917 # -------------------------------------------
6918 # static-tools (default off)
6919 # -------------------------------------------
6920 # Check whether --enable-static-tools or --disable-static-tools was given.
6921 if test "${enable_static_tools+set}" = set; then
6922   enableval="$enable_static_tools"
6923   if test x$enableval = xyes; then
6924      support_static_tools=yes
6925    fi
6926 fi;
6927
6928 TTOOL_LDFLAGS=
6929 if test x$support_static_tools = xyes; then
6930    TTOOL_LDFLAGS="-static"
6931 fi
6932
6933
6934 # -------------------------------------------
6935 # static-fd    (default off)
6936 # -------------------------------------------
6937 # Check whether --enable-static-fd or --disable-static-fd was given.
6938 if test "${enable_static_fd+set}" = set; then
6939   enableval="$enable_static_fd"
6940   if test x$enableval = xyes; then
6941      support_static_fd=yes
6942    fi
6943 fi;
6944
6945 STATIC_FD=
6946 if test x$support_static_fd = xyes; then
6947    STATIC_FD="static-bacula-fd"
6948 fi
6949
6950
6951 # -------------------------------------------
6952 # static-sd    (default off)
6953 # -------------------------------------------
6954 # Check whether --enable-static-sd or --disable-static-sd was given.
6955 if test "${enable_static_sd+set}" = set; then
6956   enableval="$enable_static_sd"
6957   if test x$enableval = xyes; then
6958      support_static_sd=yes
6959    fi
6960 fi;
6961
6962 STATIC_SD=
6963 if test x$support_static_sd = xyes; then
6964    STATIC_SD="static-bacula-sd"
6965 fi
6966
6967
6968 # -------------------------------------------
6969 # static-dir   (default off)
6970 # -------------------------------------------
6971 # Check whether --enable-static-dir or --disable-static-dir was given.
6972 if test "${enable_static_dir+set}" = set; then
6973   enableval="$enable_static_dir"
6974   if test x$enableval = xyes; then
6975      support_static_dir=yes
6976    fi
6977 fi;
6978
6979 STATIC_DIR=
6980 if test x$support_static_dir = xyes; then
6981    STATIC_DIR="static-bacula-dir"
6982 fi
6983
6984
6985 # -------------------------------------------
6986 # static-cons  (default off)
6987 # -------------------------------------------
6988 # Check whether --enable-static-cons or --disable-static-cons was given.
6989 if test "${enable_static_cons+set}" = set; then
6990   enableval="$enable_static_cons"
6991   if test x$enableval = xyes; then
6992      support_static_cons=yes
6993    fi
6994 fi;
6995
6996 STATIC_CONS=
6997 STATIC_GNOME_CONS=
6998 STATIC_WX_CONS=
6999 if test x$support_static_cons = xyes; then
7000    STATIC_CONS="static-bconsole"
7001    STATIC_GNOME_CONS="static-gnome-console"
7002    STATIC_WX_CONS="static-wx-console"
7003 fi
7004
7005
7006
7007
7008 # -------------------------------------------
7009 # client_only  (default off)
7010 # -------------------------------------------
7011 # Check whether --enable-client-only or --disable-client-only was given.
7012 if test "${enable_client_only+set}" = set; then
7013   enableval="$enable_client_only"
7014   if test x$enableval = xyes; then
7015      build_client_only=yes
7016     db_name=None
7017     DB_NAME=none
7018    fi
7019 fi;
7020 if test x$build_client_only = xno; then
7021    ALL_DIRS="subdirs"
7022 else
7023    ALL_DIRS=""
7024 fi
7025
7026
7027 # ---------------------------------------------------
7028 # Check for conio (Bacula readline substitute)(
7029 # ---------------------------------------------------
7030 # this allows you to turn it completely off
7031 # Check whether --enable-conio or --disable-conio was given.
7032 if test "${enable_conio+set}" = set; then
7033   enableval="$enable_conio"
7034   if test x$enableval = xno; then
7035     support_conio=no
7036   fi
7037 fi;
7038
7039 got_conio="no"
7040 if test x$support_conio = xyes; then
7041    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7042 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7043 if test "${ac_cv_header_stdc+set}" = set; then
7044   echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 #include <stdlib.h>
7053 #include <stdarg.h>
7054 #include <string.h>
7055 #include <float.h>
7056
7057 int
7058 main ()
7059 {
7060
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065 rm -f conftest.$ac_objext
7066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7067   (eval $ac_compile) 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } &&
7074          { ac_try='test -z "$ac_c_werror_flag"
7075                          || test ! -s conftest.err'
7076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077   (eval $ac_try) 2>&5
7078   ac_status=$?
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); }; } &&
7081          { ac_try='test -s conftest.$ac_objext'
7082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083   (eval $ac_try) 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; }; then
7087   ac_cv_header_stdc=yes
7088 else
7089   echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7091
7092 ac_cv_header_stdc=no
7093 fi
7094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095
7096 if test $ac_cv_header_stdc = yes; then
7097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7098   cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h.  */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h.  */
7104 #include <string.h>
7105
7106 _ACEOF
7107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7108   $EGREP "memchr" >/dev/null 2>&1; then
7109   :
7110 else
7111   ac_cv_header_stdc=no
7112 fi
7113 rm -f conftest*
7114
7115 fi
7116
7117 if test $ac_cv_header_stdc = yes; then
7118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7119   cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125 #include <stdlib.h>
7126
7127 _ACEOF
7128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7129   $EGREP "free" >/dev/null 2>&1; then
7130   :
7131 else
7132   ac_cv_header_stdc=no
7133 fi
7134 rm -f conftest*
7135
7136 fi
7137
7138 if test $ac_cv_header_stdc = yes; then
7139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7140   if test "$cross_compiling" = yes; then
7141   :
7142 else
7143   cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 #include <ctype.h>
7150 #if ((' ' & 0x0FF) == 0x020)
7151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7153 #else
7154 # define ISLOWER(c) \
7155                    (('a' <= (c) && (c) <= 'i') \
7156                      || ('j' <= (c) && (c) <= 'r') \
7157                      || ('s' <= (c) && (c) <= 'z'))
7158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7159 #endif
7160
7161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7162 int
7163 main ()
7164 {
7165   int i;
7166   for (i = 0; i < 256; i++)
7167     if (XOR (islower (i), ISLOWER (i))
7168         || toupper (i) != TOUPPER (i))
7169       exit(2);
7170   exit (0);
7171 }
7172 _ACEOF
7173 rm -f conftest$ac_exeext
7174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7175   (eval $ac_link) 2>&5
7176   ac_status=$?
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180   (eval $ac_try) 2>&5
7181   ac_status=$?
7182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183   (exit $ac_status); }; }; then
7184   :
7185 else
7186   echo "$as_me: program exited with status $ac_status" >&5
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7189
7190 ( exit $ac_status )
7191 ac_cv_header_stdc=no
7192 fi
7193 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7194 fi
7195 fi
7196 fi
7197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7199 if test $ac_cv_header_stdc = yes; then
7200
7201 cat >>confdefs.h <<\_ACEOF
7202 #define STDC_HEADERS 1
7203 _ACEOF
7204
7205 fi
7206
7207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7218                   inttypes.h stdint.h unistd.h
7219 do
7220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7221 echo "$as_me:$LINENO: checking for $ac_header" >&5
7222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   cat >conftest.$ac_ext <<_ACEOF
7227 /* confdefs.h.  */
7228 _ACEOF
7229 cat confdefs.h >>conftest.$ac_ext
7230 cat >>conftest.$ac_ext <<_ACEOF
7231 /* end confdefs.h.  */
7232 $ac_includes_default
7233
7234 #include <$ac_header>
7235 _ACEOF
7236 rm -f conftest.$ac_objext
7237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7238   (eval $ac_compile) 2>conftest.er1
7239   ac_status=$?
7240   grep -v '^ *+' conftest.er1 >conftest.err
7241   rm -f conftest.er1
7242   cat conftest.err >&5
7243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244   (exit $ac_status); } &&
7245          { ac_try='test -z "$ac_c_werror_flag"
7246                          || test ! -s conftest.err'
7247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248   (eval $ac_try) 2>&5
7249   ac_status=$?
7250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251   (exit $ac_status); }; } &&
7252          { ac_try='test -s conftest.$ac_objext'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; }; then
7258   eval "$as_ac_Header=yes"
7259 else
7260   echo "$as_me: failed program was:" >&5
7261 sed 's/^/| /' conftest.$ac_ext >&5
7262
7263 eval "$as_ac_Header=no"
7264 fi
7265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7266 fi
7267 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7268 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7269 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7270   cat >>confdefs.h <<_ACEOF
7271 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7272 _ACEOF
7273
7274 fi
7275
7276 done
7277
7278
7279 if test "${ac_cv_header_termcap_h+set}" = set; then
7280   echo "$as_me:$LINENO: checking for termcap.h" >&5
7281 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7282 if test "${ac_cv_header_termcap_h+set}" = set; then
7283   echo $ECHO_N "(cached) $ECHO_C" >&6
7284 fi
7285 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7286 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7287 else
7288   # Is the header compilable?
7289 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7290 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7291 cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297 $ac_includes_default
7298 #include <termcap.h>
7299 _ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302   (eval $ac_compile) 2>conftest.er1
7303   ac_status=$?
7304   grep -v '^ *+' conftest.er1 >conftest.err
7305   rm -f conftest.er1
7306   cat conftest.err >&5
7307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308   (exit $ac_status); } &&
7309          { ac_try='test -z "$ac_c_werror_flag"
7310                          || test ! -s conftest.err'
7311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312   (eval $ac_try) 2>&5
7313   ac_status=$?
7314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315   (exit $ac_status); }; } &&
7316          { ac_try='test -s conftest.$ac_objext'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; }; then
7322   ac_header_compiler=yes
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 ac_header_compiler=no
7328 fi
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7331 echo "${ECHO_T}$ac_header_compiler" >&6
7332
7333 # Is the header present?
7334 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7335 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h.  */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h.  */
7342 #include <termcap.h>
7343 _ACEOF
7344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7345   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } >/dev/null; then
7352   if test -s conftest.err; then
7353     ac_cpp_err=$ac_c_preproc_warn_flag
7354     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7355   else
7356     ac_cpp_err=
7357   fi
7358 else
7359   ac_cpp_err=yes
7360 fi
7361 if test -z "$ac_cpp_err"; then
7362   ac_header_preproc=yes
7363 else
7364   echo "$as_me: failed program was:" >&5
7365 sed 's/^/| /' conftest.$ac_ext >&5
7366
7367   ac_header_preproc=no
7368 fi
7369 rm -f conftest.err conftest.$ac_ext
7370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7371 echo "${ECHO_T}$ac_header_preproc" >&6
7372
7373 # So?  What about this header?
7374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7375   yes:no: )
7376     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7377 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7378     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7379 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7380     ac_header_preproc=yes
7381     ;;
7382   no:yes:* )
7383     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7384 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7385     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
7386 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
7387     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7388 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7389     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
7390 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7391     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7392 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7393     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7394 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7395     (
7396       cat <<\_ASBOX
7397 ## ------------------------------------------ ##
7398 ## Report this to the AC_PACKAGE_NAME lists.  ##
7399 ## ------------------------------------------ ##
7400 _ASBOX
7401     ) |
7402       sed "s/^/$as_me: WARNING:     /" >&2
7403     ;;
7404 esac
7405 echo "$as_me:$LINENO: checking for termcap.h" >&5
7406 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7407 if test "${ac_cv_header_termcap_h+set}" = set; then
7408   echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410   ac_cv_header_termcap_h=$ac_header_preproc
7411 fi
7412 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7413 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7414
7415 fi
7416 if test $ac_cv_header_termcap_h = yes; then
7417    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7418 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7419 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7420   echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422   ac_check_lib_save_LIBS=$LIBS
7423 LIBS="-ltermcap  $LIBS"
7424 cat >conftest.$ac_ext <<_ACEOF
7425 /* confdefs.h.  */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h.  */
7430
7431 /* Override any gcc2 internal prototype to avoid an error.  */
7432 #ifdef __cplusplus
7433 extern "C"
7434 #endif
7435 /* We use char because int might match the return type of a gcc2
7436    builtin and then its argument prototype would still apply.  */
7437 char tgetent ();
7438 int
7439 main ()
7440 {
7441 tgetent ();
7442   ;
7443   return 0;
7444 }
7445 _ACEOF
7446 rm -f conftest.$ac_objext conftest$ac_exeext
7447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7448   (eval $ac_link) 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } &&
7455          { ac_try='test -z "$ac_c_werror_flag"
7456                          || test ! -s conftest.err'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; } &&
7462          { ac_try='test -s conftest$ac_exeext'
7463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7464   (eval $ac_try) 2>&5
7465   ac_status=$?
7466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467   (exit $ac_status); }; }; then
7468   ac_cv_lib_termcap_tgetent=yes
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7472
7473 ac_cv_lib_termcap_tgetent=no
7474 fi
7475 rm -f conftest.err conftest.$ac_objext \
7476       conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7478 fi
7479 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7480 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7481 if test $ac_cv_lib_termcap_tgetent = yes; then
7482    CONS_LIBS="-ltermcap"
7483          CONS_OBJ="conio.o"
7484          CONS_SRC="conio.c"
7485          got_conio="yes"
7486          support_readline=no
7487
7488 cat >>confdefs.h <<\_ACEOF
7489 #define HAVE_CONIO 1
7490 _ACEOF
7491
7492
7493 else
7494    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7495 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7496 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7497   echo $ECHO_N "(cached) $ECHO_C" >&6
7498 else
7499   ac_check_lib_save_LIBS=$LIBS
7500 LIBS="-lncurses  $LIBS"
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507
7508 /* Override any gcc2 internal prototype to avoid an error.  */
7509 #ifdef __cplusplus
7510 extern "C"
7511 #endif
7512 /* We use char because int might match the return type of a gcc2
7513    builtin and then its argument prototype would still apply.  */
7514 char tgetent ();
7515 int
7516 main ()
7517 {
7518 tgetent ();
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest.$ac_objext conftest$ac_exeext
7524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7525   (eval $ac_link) 2>conftest.er1
7526   ac_status=$?
7527   grep -v '^ *+' conftest.er1 >conftest.err
7528   rm -f conftest.er1
7529   cat conftest.err >&5
7530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531   (exit $ac_status); } &&
7532          { ac_try='test -z "$ac_c_werror_flag"
7533                          || test ! -s conftest.err'
7534   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7535   (eval $ac_try) 2>&5
7536   ac_status=$?
7537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); }; } &&
7539          { ac_try='test -s conftest$ac_exeext'
7540   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541   (eval $ac_try) 2>&5
7542   ac_status=$?
7543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544   (exit $ac_status); }; }; then
7545   ac_cv_lib_ncurses_tgetent=yes
7546 else
7547   echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550 ac_cv_lib_ncurses_tgetent=no
7551 fi
7552 rm -f conftest.err conftest.$ac_objext \
7553       conftest$ac_exeext conftest.$ac_ext
7554 LIBS=$ac_check_lib_save_LIBS
7555 fi
7556 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7557 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7558 if test $ac_cv_lib_ncurses_tgetent = yes; then
7559    CONS_LIBS="-lncurses"
7560            CONS_OBJ="conio.o"
7561            CONS_SRC="conio.c"
7562            got_conio="yes"
7563            support_readline=no
7564
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_CONIO 1
7567 _ACEOF
7568
7569
7570 fi
7571
7572
7573 fi
7574
7575
7576 else
7577
7578
7579 for ac_header in curses.h
7580 do
7581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7583   echo "$as_me:$LINENO: checking for $ac_header" >&5
7584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 fi
7588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7590 else
7591   # Is the header compilable?
7592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7594 cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 $ac_includes_default
7601 #include <$ac_header>
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7605   (eval $ac_compile) 2>conftest.er1
7606   ac_status=$?
7607   grep -v '^ *+' conftest.er1 >conftest.err
7608   rm -f conftest.er1
7609   cat conftest.err >&5
7610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611   (exit $ac_status); } &&
7612          { ac_try='test -z "$ac_c_werror_flag"
7613                          || test ! -s conftest.err'
7614   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615   (eval $ac_try) 2>&5
7616   ac_status=$?
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); }; } &&
7619          { ac_try='test -s conftest.$ac_objext'
7620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621   (eval $ac_try) 2>&5
7622   ac_status=$?
7623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); }; }; then
7625   ac_header_compiler=yes
7626 else
7627   echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_header_compiler=no
7631 fi
7632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7634 echo "${ECHO_T}$ac_header_compiler" >&6
7635
7636 # Is the header present?
7637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7639 cat >conftest.$ac_ext <<_ACEOF
7640 /* confdefs.h.  */
7641 _ACEOF
7642 cat confdefs.h >>conftest.$ac_ext
7643 cat >>conftest.$ac_ext <<_ACEOF
7644 /* end confdefs.h.  */
7645 #include <$ac_header>
7646 _ACEOF
7647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7648   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7649   ac_status=$?
7650   grep -v '^ *+' conftest.er1 >conftest.err
7651   rm -f conftest.er1
7652   cat conftest.err >&5
7653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654   (exit $ac_status); } >/dev/null; then
7655   if test -s conftest.err; then
7656     ac_cpp_err=$ac_c_preproc_warn_flag
7657     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7658   else
7659     ac_cpp_err=
7660   fi
7661 else
7662   ac_cpp_err=yes
7663 fi
7664 if test -z "$ac_cpp_err"; then
7665   ac_header_preproc=yes
7666 else
7667   echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7669
7670   ac_header_preproc=no
7671 fi
7672 rm -f conftest.err conftest.$ac_ext
7673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7674 echo "${ECHO_T}$ac_header_preproc" >&6
7675
7676 # So?  What about this header?
7677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7678   yes:no: )
7679     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7681     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7683     ac_header_preproc=yes
7684     ;;
7685   no:yes:* )
7686     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7688     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7689 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7690     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7692     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7693 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7694     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7696     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7698     (
7699       cat <<\_ASBOX
7700 ## ------------------------------------------ ##
7701 ## Report this to the AC_PACKAGE_NAME lists.  ##
7702 ## ------------------------------------------ ##
7703 _ASBOX
7704     ) |
7705       sed "s/^/$as_me: WARNING:     /" >&2
7706     ;;
7707 esac
7708 echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   eval "$as_ac_Header=\$ac_header_preproc"
7714 fi
7715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7717
7718 fi
7719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7720   cat >>confdefs.h <<_ACEOF
7721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7722 _ACEOF
7723
7724 fi
7725
7726 done
7727
7728          echo "$as_me:$LINENO: checking for term.h" >&5
7729 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7730 if test "${ac_cv_header_term_h+set}" = set; then
7731   echo $ECHO_N "(cached) $ECHO_C" >&6
7732 else
7733   cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 #if HAVE_CURSES_H
7740 #include <curses.h>
7741 #endif
7742
7743
7744 #include <term.h>
7745 _ACEOF
7746 rm -f conftest.$ac_objext
7747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7748   (eval $ac_compile) 2>conftest.er1
7749   ac_status=$?
7750   grep -v '^ *+' conftest.er1 >conftest.err
7751   rm -f conftest.er1
7752   cat conftest.err >&5
7753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7754   (exit $ac_status); } &&
7755          { ac_try='test -z "$ac_c_werror_flag"
7756                          || test ! -s conftest.err'
7757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7758   (eval $ac_try) 2>&5
7759   ac_status=$?
7760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761   (exit $ac_status); }; } &&
7762          { ac_try='test -s conftest.$ac_objext'
7763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764   (eval $ac_try) 2>&5
7765   ac_status=$?
7766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767   (exit $ac_status); }; }; then
7768   ac_cv_header_term_h=yes
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 ac_cv_header_term_h=no
7774 fi
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7778 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7779 if test $ac_cv_header_term_h = yes; then
7780    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7781 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7782 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7783   echo $ECHO_N "(cached) $ECHO_C" >&6
7784 else
7785   ac_check_lib_save_LIBS=$LIBS
7786 LIBS="-lcurses  $LIBS"
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h.  */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h.  */
7793
7794 /* Override any gcc2 internal prototype to avoid an error.  */
7795 #ifdef __cplusplus
7796 extern "C"
7797 #endif
7798 /* We use char because int might match the return type of a gcc2
7799    builtin and then its argument prototype would still apply.  */
7800 char tgetent ();
7801 int
7802 main ()
7803 {
7804 tgetent ();
7805   ;
7806   return 0;
7807 }
7808 _ACEOF
7809 rm -f conftest.$ac_objext conftest$ac_exeext
7810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811   (eval $ac_link) 2>conftest.er1
7812   ac_status=$?
7813   grep -v '^ *+' conftest.er1 >conftest.err
7814   rm -f conftest.er1
7815   cat conftest.err >&5
7816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817   (exit $ac_status); } &&
7818          { ac_try='test -z "$ac_c_werror_flag"
7819                          || test ! -s conftest.err'
7820   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821   (eval $ac_try) 2>&5
7822   ac_status=$?
7823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824   (exit $ac_status); }; } &&
7825          { ac_try='test -s conftest$ac_exeext'
7826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7827   (eval $ac_try) 2>&5
7828   ac_status=$?
7829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830   (exit $ac_status); }; }; then
7831   ac_cv_lib_curses_tgetent=yes
7832 else
7833   echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836 ac_cv_lib_curses_tgetent=no
7837 fi
7838 rm -f conftest.err conftest.$ac_objext \
7839       conftest$ac_exeext conftest.$ac_ext
7840 LIBS=$ac_check_lib_save_LIBS
7841 fi
7842 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7843 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7844 if test $ac_cv_lib_curses_tgetent = yes; then
7845    CONS_LIBS="-lcurses"
7846                    CONS_OBJ="conio.o"
7847                    CONS_SRC="conio.c"
7848                    got_conio="yes"
7849                    support_readline=no
7850
7851 cat >>confdefs.h <<\_ACEOF
7852 #define HAVE_CONIO 1
7853 _ACEOF
7854
7855
7856 fi
7857
7858
7859 else
7860    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7861 fi
7862
7863
7864
7865 fi
7866
7867
7868 fi
7869
7870
7871 # ---------------------------------------------------
7872 # Check for readline support/directory (default off)
7873 # ---------------------------------------------------
7874 # this allows you to turn it completely off
7875 # Check whether --enable-readline or --disable-readline was given.
7876 if test "${enable_readline+set}" = set; then
7877   enableval="$enable_readline"
7878   if test x$enableval = xno; then
7879     support_readline=no
7880   fi
7881 fi;
7882
7883 got_readline="no"
7884 READLINE_SRC=
7885 if test x$support_readline = xyes; then
7886
7887 # Check whether --with-readline or --without-readline was given.
7888 if test "${with_readline+set}" = set; then
7889   withval="$with_readline"
7890
7891         case "$with_readline" in
7892         no) : ;;
7893         yes|*)
7894           if test -f ${with_readline}/readline.h; then
7895              CONS_INC="-I${with_readline}"
7896              CONS_LDFLAGS="-L$with_readline"
7897           elif test -f ${with_readline}/include/readline/readline.h; then
7898              CONS_INC="-I${with_readline}/include/readline"
7899              CONS_LDFLAGS="-L${with_readline}/lib"
7900              with_readline="${with_readline}/include/readline"
7901           else
7902              with_readline="/usr/include/readline"
7903           fi
7904           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7906   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7907 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7909   echo $ECHO_N "(cached) $ECHO_C" >&6
7910 fi
7911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7913 else
7914   # Is the header compilable?
7915 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7916 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7917 cat >conftest.$ac_ext <<_ACEOF
7918 /* confdefs.h.  */
7919 _ACEOF
7920 cat confdefs.h >>conftest.$ac_ext
7921 cat >>conftest.$ac_ext <<_ACEOF
7922 /* end confdefs.h.  */
7923 $ac_includes_default
7924 #include <${with_readline}/readline.h>
7925 _ACEOF
7926 rm -f conftest.$ac_objext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7928   (eval $ac_compile) 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } &&
7935          { ac_try='test -z "$ac_c_werror_flag"
7936                          || test ! -s conftest.err'
7937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938   (eval $ac_try) 2>&5
7939   ac_status=$?
7940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941   (exit $ac_status); }; } &&
7942          { ac_try='test -s conftest.$ac_objext'
7943   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7944   (eval $ac_try) 2>&5
7945   ac_status=$?
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); }; }; then
7948   ac_header_compiler=yes
7949 else
7950   echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 ac_header_compiler=no
7954 fi
7955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7957 echo "${ECHO_T}$ac_header_compiler" >&6
7958
7959 # Is the header present?
7960 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7961 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <${with_readline}/readline.h>
7969 _ACEOF
7970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7971   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } >/dev/null; then
7978   if test -s conftest.err; then
7979     ac_cpp_err=$ac_c_preproc_warn_flag
7980     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7981   else
7982     ac_cpp_err=
7983   fi
7984 else
7985   ac_cpp_err=yes
7986 fi
7987 if test -z "$ac_cpp_err"; then
7988   ac_header_preproc=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993   ac_header_preproc=no
7994 fi
7995 rm -f conftest.err conftest.$ac_ext
7996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7997 echo "${ECHO_T}$ac_header_preproc" >&6
7998
7999 # So?  What about this header?
8000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8001   yes:no: )
8002     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8003 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8004     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8005 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8006     ac_header_preproc=yes
8007     ;;
8008   no:yes:* )
8009     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8010 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8011     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
8012 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
8013     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8014 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8015     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8016 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8017     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8018 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8019     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8020 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8021     (
8022       cat <<\_ASBOX
8023 ## ------------------------------------------ ##
8024 ## Report this to the AC_PACKAGE_NAME lists.  ##
8025 ## ------------------------------------------ ##
8026 _ASBOX
8027     ) |
8028       sed "s/^/$as_me: WARNING:     /" >&2
8029     ;;
8030 esac
8031 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8032 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   eval "$as_ac_Header=\$ac_header_preproc"
8037 fi
8038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8040
8041 fi
8042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8043    cat >>confdefs.h <<\_ACEOF
8044 #define HAVE_READLINE 1
8045 _ACEOF
8046
8047                CONS_LIBS="-lreadline -lhistory -ltermcap"
8048                got_readline="yes"
8049
8050 else
8051    echo " "
8052                echo "readline.h not found. readline turned off ..."
8053                echo " "
8054
8055
8056 fi
8057
8058
8059           ;;
8060         esac
8061
8062 else
8063
8064        # check for standard readline library
8065        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8066   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8067 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8068 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8069   echo $ECHO_N "(cached) $ECHO_C" >&6
8070 fi
8071 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8072 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8073 else
8074   # Is the header compilable?
8075 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8076 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8077 cat >conftest.$ac_ext <<_ACEOF
8078 /* confdefs.h.  */
8079 _ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h.  */
8083 $ac_includes_default
8084 #include </usr/include/readline/readline.h>
8085 _ACEOF
8086 rm -f conftest.$ac_objext
8087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8088   (eval $ac_compile) 2>conftest.er1
8089   ac_status=$?
8090   grep -v '^ *+' conftest.er1 >conftest.err
8091   rm -f conftest.er1
8092   cat conftest.err >&5
8093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094   (exit $ac_status); } &&
8095          { ac_try='test -z "$ac_c_werror_flag"
8096                          || test ! -s conftest.err'
8097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8098   (eval $ac_try) 2>&5
8099   ac_status=$?
8100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101   (exit $ac_status); }; } &&
8102          { ac_try='test -s conftest.$ac_objext'
8103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8104   (eval $ac_try) 2>&5
8105   ac_status=$?
8106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107   (exit $ac_status); }; }; then
8108   ac_header_compiler=yes
8109 else
8110   echo "$as_me: failed program was:" >&5
8111 sed 's/^/| /' conftest.$ac_ext >&5
8112
8113 ac_header_compiler=no
8114 fi
8115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8116 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8117 echo "${ECHO_T}$ac_header_compiler" >&6
8118
8119 # Is the header present?
8120 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8121 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h.  */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h.  */
8128 #include </usr/include/readline/readline.h>
8129 _ACEOF
8130 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8131   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8132   ac_status=$?
8133   grep -v '^ *+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } >/dev/null; then
8138   if test -s conftest.err; then
8139     ac_cpp_err=$ac_c_preproc_warn_flag
8140     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8141   else
8142     ac_cpp_err=
8143   fi
8144 else
8145   ac_cpp_err=yes
8146 fi
8147 if test -z "$ac_cpp_err"; then
8148   ac_header_preproc=yes
8149 else
8150   echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8152
8153   ac_header_preproc=no
8154 fi
8155 rm -f conftest.err conftest.$ac_ext
8156 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8157 echo "${ECHO_T}$ac_header_preproc" >&6
8158
8159 # So?  What about this header?
8160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8161   yes:no: )
8162     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8163 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8164     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8165 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8166     ac_header_preproc=yes
8167     ;;
8168   no:yes:* )
8169     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8170 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8171     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
8172 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8173     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8174 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8175     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8176 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8177     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8178 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8179     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8180 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8181     (
8182       cat <<\_ASBOX
8183 ## ------------------------------------------ ##
8184 ## Report this to the AC_PACKAGE_NAME lists.  ##
8185 ## ------------------------------------------ ##
8186 _ASBOX
8187     ) |
8188       sed "s/^/$as_me: WARNING:     /" >&2
8189     ;;
8190 esac
8191 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8192 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8193 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8194   echo $ECHO_N "(cached) $ECHO_C" >&6
8195 else
8196   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8197 fi
8198 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8199 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8200
8201 fi
8202 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8203    cat >>confdefs.h <<\_ACEOF
8204 #define HAVE_READLINE 1
8205 _ACEOF
8206
8207            got_readline="yes"
8208            CONS_INC="-I/usr/include/readline"
8209            CONS_LIBS="-lreadline -ltermcap"
8210
8211 else
8212
8213            # Did not find standard library, so try Bacula's default
8214             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8215 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8216   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8217 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8219   echo $ECHO_N "(cached) $ECHO_C" >&6
8220 fi
8221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8223 else
8224   # Is the header compilable?
8225 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8226 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8227 cat >conftest.$ac_ext <<_ACEOF
8228 /* confdefs.h.  */
8229 _ACEOF
8230 cat confdefs.h >>conftest.$ac_ext
8231 cat >>conftest.$ac_ext <<_ACEOF
8232 /* end confdefs.h.  */
8233 $ac_includes_default
8234 #include <${TOP_DIR}/depkgs/readline/readline.h>
8235 _ACEOF
8236 rm -f conftest.$ac_objext
8237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238   (eval $ac_compile) 2>conftest.er1
8239   ac_status=$?
8240   grep -v '^ *+' conftest.er1 >conftest.err
8241   rm -f conftest.er1
8242   cat conftest.err >&5
8243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244   (exit $ac_status); } &&
8245          { ac_try='test -z "$ac_c_werror_flag"
8246                          || test ! -s conftest.err'
8247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8248   (eval $ac_try) 2>&5
8249   ac_status=$?
8250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251   (exit $ac_status); }; } &&
8252          { ac_try='test -s conftest.$ac_objext'
8253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8254   (eval $ac_try) 2>&5
8255   ac_status=$?
8256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257   (exit $ac_status); }; }; then
8258   ac_header_compiler=yes
8259 else
8260   echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_header_compiler=no
8264 fi
8265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8267 echo "${ECHO_T}$ac_header_compiler" >&6
8268
8269 # Is the header present?
8270 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8271 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8279 _ACEOF
8280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8281   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } >/dev/null; then
8288   if test -s conftest.err; then
8289     ac_cpp_err=$ac_c_preproc_warn_flag
8290     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8291   else
8292     ac_cpp_err=
8293   fi
8294 else
8295   ac_cpp_err=yes
8296 fi
8297 if test -z "$ac_cpp_err"; then
8298   ac_header_preproc=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303   ac_header_preproc=no
8304 fi
8305 rm -f conftest.err conftest.$ac_ext
8306 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8307 echo "${ECHO_T}$ac_header_preproc" >&6
8308
8309 # So?  What about this header?
8310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8311   yes:no: )
8312     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8313 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8314     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8315 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8316     ac_header_preproc=yes
8317     ;;
8318   no:yes:* )
8319     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8321     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
8322 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8323     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8324 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8325     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8326 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8327     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8328 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8329     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8330 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8331     (
8332       cat <<\_ASBOX
8333 ## ------------------------------------------ ##
8334 ## Report this to the AC_PACKAGE_NAME lists.  ##
8335 ## ------------------------------------------ ##
8336 _ASBOX
8337     ) |
8338       sed "s/^/$as_me: WARNING:     /" >&2
8339     ;;
8340 esac
8341 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8342 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8344   echo $ECHO_N "(cached) $ECHO_C" >&6
8345 else
8346   eval "$as_ac_Header=\$ac_header_preproc"
8347 fi
8348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8350
8351 fi
8352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8353    cat >>confdefs.h <<\_ACEOF
8354 #define HAVE_READLINE 1
8355 _ACEOF
8356
8357                  got_readline="yes"
8358                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
8359                  CONS_LIBS="-lreadline -lhistory -ltermcap"
8360                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8361                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8362
8363 else
8364    echo " "
8365                 echo "readline.h not found. readline turned off ..."
8366                 echo " "
8367
8368
8369 fi
8370
8371
8372
8373
8374 fi
8375
8376
8377
8378
8379 fi;
8380 fi
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391 # Minimal stuff for readline Makefile configuration
8392 MAKE_SHELL=/bin/sh
8393
8394 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8395 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8396 if test "${ac_cv_header_stat_broken+set}" = set; then
8397   echo $ECHO_N "(cached) $ECHO_C" >&6
8398 else
8399   cat >conftest.$ac_ext <<_ACEOF
8400 /* confdefs.h.  */
8401 _ACEOF
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h.  */
8405 #include <sys/types.h>
8406 #include <sys/stat.h>
8407
8408 #if defined(S_ISBLK) && defined(S_IFDIR)
8409 # if S_ISBLK (S_IFDIR)
8410 You lose.
8411 # endif
8412 #endif
8413
8414 #if defined(S_ISBLK) && defined(S_IFCHR)
8415 # if S_ISBLK (S_IFCHR)
8416 You lose.
8417 # endif
8418 #endif
8419
8420 #if defined(S_ISLNK) && defined(S_IFREG)
8421 # if S_ISLNK (S_IFREG)
8422 You lose.
8423 # endif
8424 #endif
8425
8426 #if defined(S_ISSOCK) && defined(S_IFREG)
8427 # if S_ISSOCK (S_IFREG)
8428 You lose.
8429 # endif
8430 #endif
8431
8432 _ACEOF
8433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8434   $EGREP "You lose" >/dev/null 2>&1; then
8435   ac_cv_header_stat_broken=yes
8436 else
8437   ac_cv_header_stat_broken=no
8438 fi
8439 rm -f conftest*
8440
8441 fi
8442 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8443 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8444 if test $ac_cv_header_stat_broken = yes; then
8445
8446 cat >>confdefs.h <<\_ACEOF
8447 #define STAT_MACROS_BROKEN 1
8448 _ACEOF
8449
8450 fi
8451
8452
8453
8454
8455
8456
8457 ac_header_dirent=no
8458 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8459   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8460 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8461 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   cat >conftest.$ac_ext <<_ACEOF
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471 #include <sys/types.h>
8472 #include <$ac_hdr>
8473
8474 int
8475 main ()
8476 {
8477 if ((DIR *) 0)
8478 return 0;
8479   ;
8480   return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext
8484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8485   (eval $ac_compile) 2>conftest.er1
8486   ac_status=$?
8487   grep -v '^ *+' conftest.er1 >conftest.err
8488   rm -f conftest.er1
8489   cat conftest.err >&5
8490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491   (exit $ac_status); } &&
8492          { ac_try='test -z "$ac_c_werror_flag"
8493                          || test ! -s conftest.err'
8494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495   (eval $ac_try) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; } &&
8499          { ac_try='test -s conftest.$ac_objext'
8500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501   (eval $ac_try) 2>&5
8502   ac_status=$?
8503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504   (exit $ac_status); }; }; then
8505   eval "$as_ac_Header=yes"
8506 else
8507   echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8509
8510 eval "$as_ac_Header=no"
8511 fi
8512 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8513 fi
8514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8515 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8517   cat >>confdefs.h <<_ACEOF
8518 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8519 _ACEOF
8520
8521 ac_header_dirent=$ac_hdr; break
8522 fi
8523
8524 done
8525 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8526 if test $ac_header_dirent = dirent.h; then
8527   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8528 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8529 if test "${ac_cv_search_opendir+set}" = set; then
8530   echo $ECHO_N "(cached) $ECHO_C" >&6
8531 else
8532   ac_func_search_save_LIBS=$LIBS
8533 ac_cv_search_opendir=no
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h.  */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h.  */
8540
8541 /* Override any gcc2 internal prototype to avoid an error.  */
8542 #ifdef __cplusplus
8543 extern "C"
8544 #endif
8545 /* We use char because int might match the return type of a gcc2
8546    builtin and then its argument prototype would still apply.  */
8547 char opendir ();
8548 int
8549 main ()
8550 {
8551 opendir ();
8552   ;
8553   return 0;
8554 }
8555 _ACEOF
8556 rm -f conftest.$ac_objext conftest$ac_exeext
8557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8558   (eval $ac_link) 2>conftest.er1
8559   ac_status=$?
8560   grep -v '^ *+' conftest.er1 >conftest.err
8561   rm -f conftest.er1
8562   cat conftest.err >&5
8563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564   (exit $ac_status); } &&
8565          { ac_try='test -z "$ac_c_werror_flag"
8566                          || test ! -s conftest.err'
8567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8568   (eval $ac_try) 2>&5
8569   ac_status=$?
8570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571   (exit $ac_status); }; } &&
8572          { ac_try='test -s conftest$ac_exeext'
8573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8574   (eval $ac_try) 2>&5
8575   ac_status=$?
8576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577   (exit $ac_status); }; }; then
8578   ac_cv_search_opendir="none required"
8579 else
8580   echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8582
8583 fi
8584 rm -f conftest.err conftest.$ac_objext \
8585       conftest$ac_exeext conftest.$ac_ext
8586 if test "$ac_cv_search_opendir" = no; then
8587   for ac_lib in dir; do
8588     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8589     cat >conftest.$ac_ext <<_ACEOF
8590 /* confdefs.h.  */
8591 _ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h.  */
8595
8596 /* Override any gcc2 internal prototype to avoid an error.  */
8597 #ifdef __cplusplus
8598 extern "C"
8599 #endif
8600 /* We use char because int might match the return type of a gcc2
8601    builtin and then its argument prototype would still apply.  */
8602 char opendir ();
8603 int
8604 main ()
8605 {
8606 opendir ();
8607   ;
8608   return 0;
8609 }
8610 _ACEOF
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613   (eval $ac_link) 2>conftest.er1
8614   ac_status=$?
8615   grep -v '^ *+' conftest.er1 >conftest.err
8616   rm -f conftest.er1
8617   cat conftest.err >&5
8618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619   (exit $ac_status); } &&
8620          { ac_try='test -z "$ac_c_werror_flag"
8621                          || test ! -s conftest.err'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; } &&
8627          { ac_try='test -s conftest$ac_exeext'
8628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629   (eval $ac_try) 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_cv_search_opendir="-l$ac_lib"
8634 break
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639 fi
8640 rm -f conftest.err conftest.$ac_objext \
8641       conftest$ac_exeext conftest.$ac_ext
8642   done
8643 fi
8644 LIBS=$ac_func_search_save_LIBS
8645 fi
8646 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8647 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8648 if test "$ac_cv_search_opendir" != no; then
8649   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8650
8651 fi
8652
8653 else
8654   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8655 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8656 if test "${ac_cv_search_opendir+set}" = set; then
8657   echo $ECHO_N "(cached) $ECHO_C" >&6
8658 else
8659   ac_func_search_save_LIBS=$LIBS
8660 ac_cv_search_opendir=no
8661 cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667
8668 /* Override any gcc2 internal prototype to avoid an error.  */
8669 #ifdef __cplusplus
8670 extern "C"
8671 #endif
8672 /* We use char because int might match the return type of a gcc2
8673    builtin and then its argument prototype would still apply.  */
8674 char opendir ();
8675 int
8676 main ()
8677 {
8678 opendir ();
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext conftest$ac_exeext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8685   (eval $ac_link) 2>conftest.er1
8686   ac_status=$?
8687   grep -v '^ *+' conftest.er1 >conftest.err
8688   rm -f conftest.er1
8689   cat conftest.err >&5
8690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691   (exit $ac_status); } &&
8692          { ac_try='test -z "$ac_c_werror_flag"
8693                          || test ! -s conftest.err'
8694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8695   (eval $ac_try) 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; } &&
8699          { ac_try='test -s conftest$ac_exeext'
8700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701   (eval $ac_try) 2>&5
8702   ac_status=$?
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); }; }; then
8705   ac_cv_search_opendir="none required"
8706 else
8707   echo "$as_me: failed program was:" >&5
8708 sed 's/^/| /' conftest.$ac_ext >&5
8709
8710 fi
8711 rm -f conftest.err conftest.$ac_objext \
8712       conftest$ac_exeext conftest.$ac_ext
8713 if test "$ac_cv_search_opendir" = no; then
8714   for ac_lib in x; do
8715     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8716     cat >conftest.$ac_ext <<_ACEOF
8717 /* confdefs.h.  */
8718 _ACEOF
8719 cat confdefs.h >>conftest.$ac_ext
8720 cat >>conftest.$ac_ext <<_ACEOF
8721 /* end confdefs.h.  */
8722
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 #endif
8727 /* We use char because int might match the return type of a gcc2
8728    builtin and then its argument prototype would still apply.  */
8729 char opendir ();
8730 int
8731 main ()
8732 {
8733 opendir ();
8734   ;
8735   return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext conftest$ac_exeext
8739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8740   (eval $ac_link) 2>conftest.er1
8741   ac_status=$?
8742   grep -v '^ *+' conftest.er1 >conftest.err
8743   rm -f conftest.er1
8744   cat conftest.err >&5
8745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746   (exit $ac_status); } &&
8747          { ac_try='test -z "$ac_c_werror_flag"
8748                          || test ! -s conftest.err'
8749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8750   (eval $ac_try) 2>&5
8751   ac_status=$?
8752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8753   (exit $ac_status); }; } &&
8754          { ac_try='test -s conftest$ac_exeext'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; }; then
8760   ac_cv_search_opendir="-l$ac_lib"
8761 break
8762 else
8763   echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8765
8766 fi
8767 rm -f conftest.err conftest.$ac_objext \
8768       conftest$ac_exeext conftest.$ac_ext
8769   done
8770 fi
8771 LIBS=$ac_func_search_save_LIBS
8772 fi
8773 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8774 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8775 if test "$ac_cv_search_opendir" != no; then
8776   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8777
8778 fi
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8790 do
8791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8792 echo "$as_me:$LINENO: checking for $ac_func" >&5
8793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_var+set}\" = set"; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8805 #define $ac_func innocuous_$ac_func
8806
8807 /* System header to define __stub macros and hopefully few prototypes,
8808     which can conflict with char $ac_func (); below.
8809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810     <limits.h> exists even on freestanding compilers.  */
8811
8812 #ifdef __STDC__
8813 # include <limits.h>
8814 #else
8815 # include <assert.h>
8816 #endif
8817
8818 #undef $ac_func
8819
8820 /* Override any gcc2 internal prototype to avoid an error.  */
8821 #ifdef __cplusplus
8822 extern "C"
8823 {
8824 #endif
8825 /* We use char because int might match the return type of a gcc2
8826    builtin and then its argument prototype would still apply.  */
8827 char $ac_func ();
8828 /* The GNU C library defines this for functions which it implements
8829     to always fail with ENOSYS.  Some functions are actually named
8830     something starting with __ and the normal name is an alias.  */
8831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8832 choke me
8833 #else
8834 char (*f) () = $ac_func;
8835 #endif
8836 #ifdef __cplusplus
8837 }
8838 #endif
8839
8840 int
8841 main ()
8842 {
8843 return f != $ac_func;
8844   ;
8845   return 0;
8846 }
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850   (eval $ac_link) 2>conftest.er1
8851   ac_status=$?
8852   grep -v '^ *+' conftest.er1 >conftest.err
8853   rm -f conftest.er1
8854   cat conftest.err >&5
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -z "$ac_c_werror_flag"
8858                          || test ! -s conftest.err'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; } &&
8864          { ac_try='test -s conftest$ac_exeext'
8865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866   (eval $ac_try) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; }; then
8870   eval "$as_ac_var=yes"
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 eval "$as_ac_var=no"
8876 fi
8877 rm -f conftest.err conftest.$ac_objext \
8878       conftest$ac_exeext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8882 if test `eval echo '${'$as_ac_var'}'` = yes; then
8883   cat >>confdefs.h <<_ACEOF
8884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8885 _ACEOF
8886
8887 fi
8888 done
8889
8890
8891
8892 for ac_func in nanosleep nl_langinfo
8893 do
8894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8895 echo "$as_me:$LINENO: checking for $ac_func" >&5
8896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8897 if eval "test \"\${$as_ac_var+set}\" = set"; then
8898   echo $ECHO_N "(cached) $ECHO_C" >&6
8899 else
8900   cat >conftest.$ac_ext <<_ACEOF
8901 /* confdefs.h.  */
8902 _ACEOF
8903 cat confdefs.h >>conftest.$ac_ext
8904 cat >>conftest.$ac_ext <<_ACEOF
8905 /* end confdefs.h.  */
8906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8908 #define $ac_func innocuous_$ac_func
8909
8910 /* System header to define __stub macros and hopefully few prototypes,
8911     which can conflict with char $ac_func (); below.
8912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8913     <limits.h> exists even on freestanding compilers.  */
8914
8915 #ifdef __STDC__
8916 # include <limits.h>
8917 #else
8918 # include <assert.h>
8919 #endif
8920
8921 #undef $ac_func
8922
8923 /* Override any gcc2 internal prototype to avoid an error.  */
8924 #ifdef __cplusplus
8925 extern "C"
8926 {
8927 #endif
8928 /* We use char because int might match the return type of a gcc2
8929    builtin and then its argument prototype would still apply.  */
8930 char $ac_func ();
8931 /* The GNU C library defines this for functions which it implements
8932     to always fail with ENOSYS.  Some functions are actually named
8933     something starting with __ and the normal name is an alias.  */
8934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8935 choke me
8936 #else
8937 char (*f) () = $ac_func;
8938 #endif
8939 #ifdef __cplusplus
8940 }
8941 #endif
8942
8943 int
8944 main ()
8945 {
8946 return f != $ac_func;
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 rm -f conftest.$ac_objext conftest$ac_exeext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8953   (eval $ac_link) 2>conftest.er1
8954   ac_status=$?
8955   grep -v '^ *+' conftest.er1 >conftest.err
8956   rm -f conftest.er1
8957   cat conftest.err >&5
8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959   (exit $ac_status); } &&
8960          { ac_try='test -z "$ac_c_werror_flag"
8961                          || test ! -s conftest.err'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; } &&
8967          { ac_try='test -s conftest$ac_exeext'
8968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8969   (eval $ac_try) 2>&5
8970   ac_status=$?
8971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972   (exit $ac_status); }; }; then
8973   eval "$as_ac_var=yes"
8974 else
8975   echo "$as_me: failed program was:" >&5
8976 sed 's/^/| /' conftest.$ac_ext >&5
8977
8978 eval "$as_ac_var=no"
8979 fi
8980 rm -f conftest.err conftest.$ac_objext \
8981       conftest$ac_exeext conftest.$ac_ext
8982 fi
8983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8984 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8985 if test `eval echo '${'$as_ac_var'}'` = yes; then
8986   cat >>confdefs.h <<_ACEOF
8987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8988 _ACEOF
8989
8990 fi
8991 done
8992
8993
8994 for ac_header in varargs.h
8995 do
8996 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8997 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8998   echo "$as_me:$LINENO: checking for $ac_header" >&5
8999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9001   echo $ECHO_N "(cached) $ECHO_C" >&6
9002 fi
9003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9005 else
9006   # Is the header compilable?
9007 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9008 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9010 /* confdefs.h.  */
9011 _ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h.  */
9015 $ac_includes_default
9016 #include <$ac_header>
9017 _ACEOF
9018 rm -f conftest.$ac_objext
9019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9020   (eval $ac_compile) 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } &&
9027          { ac_try='test -z "$ac_c_werror_flag"
9028                          || test ! -s conftest.err'
9029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030   (eval $ac_try) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; } &&
9034          { ac_try='test -s conftest.$ac_objext'
9035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036   (eval $ac_try) 2>&5
9037   ac_status=$?
9038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039   (exit $ac_status); }; }; then
9040   ac_header_compiler=yes
9041 else
9042   echo "$as_me: failed program was:" >&5
9043 sed 's/^/| /' conftest.$ac_ext >&5
9044
9045 ac_header_compiler=no
9046 fi
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9048 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9049 echo "${ECHO_T}$ac_header_compiler" >&6
9050
9051 # Is the header present?
9052 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9053 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9054 cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 #include <$ac_header>
9061 _ACEOF
9062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9064   ac_status=$?
9065   grep -v '^ *+' conftest.er1 >conftest.err
9066   rm -f conftest.er1
9067   cat conftest.err >&5
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); } >/dev/null; then
9070   if test -s conftest.err; then
9071     ac_cpp_err=$ac_c_preproc_warn_flag
9072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9073   else
9074     ac_cpp_err=
9075   fi
9076 else
9077   ac_cpp_err=yes
9078 fi
9079 if test -z "$ac_cpp_err"; then
9080   ac_header_preproc=yes
9081 else
9082   echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9084
9085   ac_header_preproc=no
9086 fi
9087 rm -f conftest.err conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9089 echo "${ECHO_T}$ac_header_preproc" >&6
9090
9091 # So?  What about this header?
9092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9093   yes:no: )
9094     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9098     ac_header_preproc=yes
9099     ;;
9100   no:yes:* )
9101     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9103     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9104 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9105     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9107     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9108 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9109     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9111     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9113     (
9114       cat <<\_ASBOX
9115 ## ------------------------------------------ ##
9116 ## Report this to the AC_PACKAGE_NAME lists.  ##
9117 ## ------------------------------------------ ##
9118 _ASBOX
9119     ) |
9120       sed "s/^/$as_me: WARNING:     /" >&2
9121     ;;
9122 esac
9123 echo "$as_me:$LINENO: checking for $ac_header" >&5
9124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9125 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9126   echo $ECHO_N "(cached) $ECHO_C" >&6
9127 else
9128   eval "$as_ac_Header=\$ac_header_preproc"
9129 fi
9130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9131 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9132
9133 fi
9134 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9135   cat >>confdefs.h <<_ACEOF
9136 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9137 _ACEOF
9138
9139 fi
9140
9141 done
9142
9143
9144 # End of readline/conio stuff
9145 # -----------------------------------------------------------------------
9146
9147 # -----------------------------------------------------------------------
9148 #  Check for Python support
9149 #
9150 echo "$as_me:$LINENO: checking for Python support" >&5
9151 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9152
9153 # Check whether --with-python or --without-python was given.
9154 if test "${with_python+set}" = set; then
9155   withval="$with_python"
9156
9157   PYTHON_INCDIR=
9158   PYTHON_LIBS=
9159   if test "$withval" != "no"; then
9160      if test "$withval" = "yes"; then
9161         for python_root in /usr /usr/local; do
9162           if test -f $python_root/include/python2.2/Python.h; then
9163              PYTHON_INCDIR=-I$python_root/include/python2.2
9164              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9165              break
9166           elif test -f $python_root/include/python2.3/Python.h; then
9167              PYTHON_INCDIR=-I$python_root/include/python2.3
9168              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9169              break
9170           elif test -f $python_root/include/python2.4/Python.h; then
9171              PYTHON_INCDIR=-I$python_root/include/python2.4
9172              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9173              break
9174           fi
9175         done
9176         if test x$PYTHON_INCDIR = x; then
9177           if test -f $prefix/include/Python.h; then
9178              PYTHON_INCDIR=-I$prefix/include
9179              PYTHON_LIBS="-L$prefix/lib/config -lpython"
9180           else
9181            echo "$as_me:$LINENO: result: no" >&5
9182 echo "${ECHO_T}no" >&6
9183            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9184 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9185    { (exit 1); exit 1; }; }
9186           fi
9187         fi
9188      else
9189         if test -f $withval/Python.h; then
9190            PYTHON_INCDIR=-I$withval
9191            PYTHON_LIBS="-L$withval/config -lpython"
9192         elif test -f $withval/include/Python.h; then
9193            PYTHON_INCDIR=-I$withval/include
9194            PYTHON_LIBS="-L$withval/lib/config -lpython"
9195         elif test -f $withval/include/python/Python.h; then
9196            PYTHON_INCDIR=-I$withval/include/python
9197            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9198         else
9199            echo "$as_me:$LINENO: result: no" >&5
9200 echo "${ECHO_T}no" >&6
9201            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9202 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9203    { (exit 1); exit 1; }; }
9204         fi
9205      fi
9206      cat >>confdefs.h <<\_ACEOF
9207 #define HAVE_PYTHON 1
9208 _ACEOF
9209
9210      echo "$as_me:$LINENO: result: yes" >&5
9211 echo "${ECHO_T}yes" >&6
9212      support_python=yes
9213      { echo "$as_me:$LINENO: checking for more Python libs" >&5
9214 echo "$as_me: checking for more Python libs" >&6;}
9215      saved_LIBS="$LIBS"; LIBS=
9216      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9217 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9218 if test "${ac_cv_search_shm_open+set}" = set; then
9219   echo $ECHO_N "(cached) $ECHO_C" >&6
9220 else
9221   ac_func_search_save_LIBS=$LIBS
9222 ac_cv_search_shm_open=no
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h.  */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h.  */
9229
9230 /* Override any gcc2 internal prototype to avoid an error.  */
9231 #ifdef __cplusplus
9232 extern "C"
9233 #endif
9234 /* We use char because int might match the return type of a gcc2
9235    builtin and then its argument prototype would still apply.  */
9236 char shm_open ();
9237 int
9238 main ()
9239 {
9240 shm_open ();
9241   ;
9242   return 0;
9243 }
9244 _ACEOF
9245 rm -f conftest.$ac_objext conftest$ac_exeext
9246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9247   (eval $ac_link) 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -z "$ac_c_werror_flag"
9255                          || test ! -s conftest.err'
9256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9257   (eval $ac_try) 2>&5
9258   ac_status=$?
9259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260   (exit $ac_status); }; } &&
9261          { ac_try='test -s conftest$ac_exeext'
9262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263   (eval $ac_try) 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   ac_cv_search_shm_open="none required"
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 fi
9273 rm -f conftest.err conftest.$ac_objext \
9274       conftest$ac_exeext conftest.$ac_ext
9275 if test "$ac_cv_search_shm_open" = no; then
9276   for ac_lib in rt; do
9277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9278     cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h.  */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h.  */
9284
9285 /* Override any gcc2 internal prototype to avoid an error.  */
9286 #ifdef __cplusplus
9287 extern "C"
9288 #endif
9289 /* We use char because int might match the return type of a gcc2
9290    builtin and then its argument prototype would still apply.  */
9291 char shm_open ();
9292 int
9293 main ()
9294 {
9295 shm_open ();
9296   ;
9297   return 0;
9298 }
9299 _ACEOF
9300 rm -f conftest.$ac_objext conftest$ac_exeext
9301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9302   (eval $ac_link) 2>conftest.er1
9303   ac_status=$?
9304   grep -v '^ *+' conftest.er1 >conftest.err
9305   rm -f conftest.er1
9306   cat conftest.err >&5
9307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9308   (exit $ac_status); } &&
9309          { ac_try='test -z "$ac_c_werror_flag"
9310                          || test ! -s conftest.err'
9311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312   (eval $ac_try) 2>&5
9313   ac_status=$?
9314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); }; } &&
9316          { ac_try='test -s conftest$ac_exeext'
9317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318   (eval $ac_try) 2>&5
9319   ac_status=$?
9320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321   (exit $ac_status); }; }; then
9322   ac_cv_search_shm_open="-l$ac_lib"
9323 break
9324 else
9325   echo "$as_me: failed program was:" >&5
9326 sed 's/^/| /' conftest.$ac_ext >&5
9327
9328 fi
9329 rm -f conftest.err conftest.$ac_objext \
9330       conftest$ac_exeext conftest.$ac_ext
9331   done
9332 fi
9333 LIBS=$ac_func_search_save_LIBS
9334 fi
9335 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9336 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9337 if test "$ac_cv_search_shm_open" != no; then
9338   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9339
9340 fi
9341
9342
9343 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9344 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9345 if test "${ac_cv_lib_util_openpty+set}" = set; then
9346   echo $ECHO_N "(cached) $ECHO_C" >&6
9347 else
9348   ac_check_lib_save_LIBS=$LIBS
9349 LIBS="-lutil  $LIBS"
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356
9357 /* Override any gcc2 internal prototype to avoid an error.  */
9358 #ifdef __cplusplus
9359 extern "C"
9360 #endif
9361 /* We use char because int might match the return type of a gcc2
9362    builtin and then its argument prototype would still apply.  */
9363 char openpty ();
9364 int
9365 main ()
9366 {
9367 openpty ();
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext conftest$ac_exeext
9373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9374   (eval $ac_link) 2>conftest.er1
9375   ac_status=$?
9376   grep -v '^ *+' conftest.er1 >conftest.err
9377   rm -f conftest.er1
9378   cat conftest.err >&5
9379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380   (exit $ac_status); } &&
9381          { ac_try='test -z "$ac_c_werror_flag"
9382                          || test ! -s conftest.err'
9383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384   (eval $ac_try) 2>&5
9385   ac_status=$?
9386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387   (exit $ac_status); }; } &&
9388          { ac_try='test -s conftest$ac_exeext'
9389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9390   (eval $ac_try) 2>&5
9391   ac_status=$?
9392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393   (exit $ac_status); }; }; then
9394   ac_cv_lib_util_openpty=yes
9395 else
9396   echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399 ac_cv_lib_util_openpty=no
9400 fi
9401 rm -f conftest.err conftest.$ac_objext \
9402       conftest$ac_exeext conftest.$ac_ext
9403 LIBS=$ac_check_lib_save_LIBS
9404 fi
9405 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9406 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9407 if test $ac_cv_lib_util_openpty = yes; then
9408   cat >>confdefs.h <<_ACEOF
9409 #define HAVE_LIBUTIL 1
9410 _ACEOF
9411
9412   LIBS="-lutil $LIBS"
9413
9414 fi
9415
9416      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9417      LIBS="$saved_LIBS"
9418   else
9419      echo "$as_me:$LINENO: result: no" >&5
9420 echo "${ECHO_T}no" >&6
9421   fi
9422
9423 else
9424
9425   echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6
9427
9428 fi;
9429
9430
9431
9432
9433 #
9434 # Find where sockets are (especially for Solaris)
9435 # Do this before the TCP Wrappers test since tcp wrappers
9436 # uses the socket library and some linkers are stupid.
9437 #
9438 echo "$as_me:$LINENO: checking for socket" >&5
9439 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9440 if test "${ac_cv_func_socket+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h.  */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h.  */
9449 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9451 #define socket innocuous_socket
9452
9453 /* System header to define __stub macros and hopefully few prototypes,
9454     which can conflict with char socket (); below.
9455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9456     <limits.h> exists even on freestanding compilers.  */
9457
9458 #ifdef __STDC__
9459 # include <limits.h>
9460 #else
9461 # include <assert.h>
9462 #endif
9463
9464 #undef socket
9465
9466 /* Override any gcc2 internal prototype to avoid an error.  */
9467 #ifdef __cplusplus
9468 extern "C"
9469 {
9470 #endif
9471 /* We use char because int might match the return type of a gcc2
9472    builtin and then its argument prototype would still apply.  */
9473 char socket ();
9474 /* The GNU C library defines this for functions which it implements
9475     to always fail with ENOSYS.  Some functions are actually named
9476     something starting with __ and the normal name is an alias.  */
9477 #if defined (__stub_socket) || defined (__stub___socket)
9478 choke me
9479 #else
9480 char (*f) () = socket;
9481 #endif
9482 #ifdef __cplusplus
9483 }
9484 #endif
9485
9486 int
9487 main ()
9488 {
9489 return f != socket;
9490   ;
9491   return 0;
9492 }
9493 _ACEOF
9494 rm -f conftest.$ac_objext conftest$ac_exeext
9495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9496   (eval $ac_link) 2>conftest.er1
9497   ac_status=$?
9498   grep -v '^ *+' conftest.er1 >conftest.err
9499   rm -f conftest.er1
9500   cat conftest.err >&5
9501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); } &&
9503          { ac_try='test -z "$ac_c_werror_flag"
9504                          || test ! -s conftest.err'
9505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9506   (eval $ac_try) 2>&5
9507   ac_status=$?
9508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509   (exit $ac_status); }; } &&
9510          { ac_try='test -s conftest$ac_exeext'
9511   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9512   (eval $ac_try) 2>&5
9513   ac_status=$?
9514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515   (exit $ac_status); }; }; then
9516   ac_cv_func_socket=yes
9517 else
9518   echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9520
9521 ac_cv_func_socket=no
9522 fi
9523 rm -f conftest.err conftest.$ac_objext \
9524       conftest$ac_exeext conftest.$ac_ext
9525 fi
9526 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9527 echo "${ECHO_T}$ac_cv_func_socket" >&6
9528 if test $ac_cv_func_socket = yes; then
9529   echo "$as_me:$LINENO: result: using libc's socket" >&5
9530 echo "${ECHO_T}using libc's socket" >&6
9531 else
9532
9533 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9534 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9535 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9536   echo $ECHO_N "(cached) $ECHO_C" >&6
9537 else
9538   ac_check_lib_save_LIBS=$LIBS
9539 LIBS="-lxnet  $LIBS"
9540 cat >conftest.$ac_ext <<_ACEOF
9541 /* confdefs.h.  */
9542 _ACEOF
9543 cat confdefs.h >>conftest.$ac_ext
9544 cat >>conftest.$ac_ext <<_ACEOF
9545 /* end confdefs.h.  */
9546
9547 /* Override any gcc2 internal prototype to avoid an error.  */
9548 #ifdef __cplusplus
9549 extern "C"
9550 #endif
9551 /* We use char because int might match the return type of a gcc2
9552    builtin and then its argument prototype would still apply.  */
9553 char socket ();
9554 int
9555 main ()
9556 {
9557 socket ();
9558   ;
9559   return 0;
9560 }
9561 _ACEOF
9562 rm -f conftest.$ac_objext conftest$ac_exeext
9563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9564   (eval $ac_link) 2>conftest.er1
9565   ac_status=$?
9566   grep -v '^ *+' conftest.er1 >conftest.err
9567   rm -f conftest.er1
9568   cat conftest.err >&5
9569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570   (exit $ac_status); } &&
9571          { ac_try='test -z "$ac_c_werror_flag"
9572                          || test ! -s conftest.err'
9573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574   (eval $ac_try) 2>&5
9575   ac_status=$?
9576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577   (exit $ac_status); }; } &&
9578          { ac_try='test -s conftest$ac_exeext'
9579   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580   (eval $ac_try) 2>&5
9581   ac_status=$?
9582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583   (exit $ac_status); }; }; then
9584   ac_cv_lib_xnet_socket=yes
9585 else
9586   echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.$ac_ext >&5
9588
9589 ac_cv_lib_xnet_socket=no
9590 fi
9591 rm -f conftest.err conftest.$ac_objext \
9592       conftest$ac_exeext conftest.$ac_ext
9593 LIBS=$ac_check_lib_save_LIBS
9594 fi
9595 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9596 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9597 if test $ac_cv_lib_xnet_socket = yes; then
9598   cat >>confdefs.h <<_ACEOF
9599 #define HAVE_LIBXNET 1
9600 _ACEOF
9601
9602   LIBS="-lxnet $LIBS"
9603
9604 fi
9605
9606
9607 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9608 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9609 if test "${ac_cv_lib_socket_socket+set}" = set; then
9610   echo $ECHO_N "(cached) $ECHO_C" >&6
9611 else
9612   ac_check_lib_save_LIBS=$LIBS
9613 LIBS="-lsocket  $LIBS"
9614 cat >conftest.$ac_ext <<_ACEOF
9615 /* confdefs.h.  */
9616 _ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h.  */
9620
9621 /* Override any gcc2 internal prototype to avoid an error.  */
9622 #ifdef __cplusplus
9623 extern "C"
9624 #endif
9625 /* We use char because int might match the return type of a gcc2
9626    builtin and then its argument prototype would still apply.  */
9627 char socket ();
9628 int
9629 main ()
9630 {
9631 socket ();
9632   ;
9633   return 0;
9634 }
9635 _ACEOF
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9638   (eval $ac_link) 2>conftest.er1
9639   ac_status=$?
9640   grep -v '^ *+' conftest.er1 >conftest.err
9641   rm -f conftest.er1
9642   cat conftest.err >&5
9643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644   (exit $ac_status); } &&
9645          { ac_try='test -z "$ac_c_werror_flag"
9646                          || test ! -s conftest.err'
9647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648   (eval $ac_try) 2>&5
9649   ac_status=$?
9650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651   (exit $ac_status); }; } &&
9652          { ac_try='test -s conftest$ac_exeext'
9653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9654   (eval $ac_try) 2>&5
9655   ac_status=$?
9656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9657   (exit $ac_status); }; }; then
9658   ac_cv_lib_socket_socket=yes
9659 else
9660   echo "$as_me: failed program was:" >&5
9661 sed 's/^/| /' conftest.$ac_ext >&5
9662
9663 ac_cv_lib_socket_socket=no
9664 fi
9665 rm -f conftest.err conftest.$ac_objext \
9666       conftest$ac_exeext conftest.$ac_ext
9667 LIBS=$ac_check_lib_save_LIBS
9668 fi
9669 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9670 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9671 if test $ac_cv_lib_socket_socket = yes; then
9672   cat >>confdefs.h <<_ACEOF
9673 #define HAVE_LIBSOCKET 1
9674 _ACEOF
9675
9676   LIBS="-lsocket $LIBS"
9677
9678 fi
9679
9680
9681 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9682 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9683 if test "${ac_cv_lib_inet_socket+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   ac_check_lib_save_LIBS=$LIBS
9687 LIBS="-linet  $LIBS"
9688 cat >conftest.$ac_ext <<_ACEOF
9689 /* confdefs.h.  */
9690 _ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h.  */
9694
9695 /* Override any gcc2 internal prototype to avoid an error.  */
9696 #ifdef __cplusplus
9697 extern "C"
9698 #endif
9699 /* We use char because int might match the return type of a gcc2
9700    builtin and then its argument prototype would still apply.  */
9701 char socket ();
9702 int
9703 main ()
9704 {
9705 socket ();
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9712   (eval $ac_link) 2>conftest.er1
9713   ac_status=$?
9714   grep -v '^ *+' conftest.er1 >conftest.err
9715   rm -f conftest.er1
9716   cat conftest.err >&5
9717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718   (exit $ac_status); } &&
9719          { ac_try='test -z "$ac_c_werror_flag"
9720                          || test ! -s conftest.err'
9721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9722   (eval $ac_try) 2>&5
9723   ac_status=$?
9724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725   (exit $ac_status); }; } &&
9726          { ac_try='test -s conftest$ac_exeext'
9727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9728   (eval $ac_try) 2>&5
9729   ac_status=$?
9730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); }; }; then
9732   ac_cv_lib_inet_socket=yes
9733 else
9734   echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.$ac_ext >&5
9736
9737 ac_cv_lib_inet_socket=no
9738 fi
9739 rm -f conftest.err conftest.$ac_objext \
9740       conftest$ac_exeext conftest.$ac_ext
9741 LIBS=$ac_check_lib_save_LIBS
9742 fi
9743 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9744 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9745 if test $ac_cv_lib_inet_socket = yes; then
9746   cat >>confdefs.h <<_ACEOF
9747 #define HAVE_LIBINET 1
9748 _ACEOF
9749
9750   LIBS="-linet $LIBS"
9751
9752 fi
9753
9754 fi
9755
9756
9757
9758 # -----------------------------------------------------------
9759 # Check whether user wants TCP wrappers support (default off)
9760 # -----------------------------------------------------------
9761 TCPW_MSG="no"
9762
9763 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9764 if test "${with_tcp_wrappers+set}" = set; then
9765   withval="$with_tcp_wrappers"
9766
9767     if test "x$withval" != "xno" ; then
9768        saved_LIBS="$LIBS"
9769        LIBS="$saved_LIBS -lwrap"
9770        echo "$as_me:$LINENO: checking for libwrap" >&5
9771 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9772        cat >conftest.$ac_ext <<_ACEOF
9773 /* confdefs.h.  */
9774 _ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h.  */
9778  #include <tcpd.h>
9779              int deny_severity = 0;
9780              int allow_severity = 0;
9781              struct request_info *req;
9782 int
9783 main ()
9784 {
9785  hosts_access(req);
9786   ;
9787   return 0;
9788 }
9789 _ACEOF
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792   (eval $ac_link) 2>conftest.er1
9793   ac_status=$?
9794   grep -v '^ *+' conftest.er1 >conftest.err
9795   rm -f conftest.er1
9796   cat conftest.err >&5
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); } &&
9799          { ac_try='test -z "$ac_c_werror_flag"
9800                          || test ! -s conftest.err'
9801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9802   (eval $ac_try) 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; } &&
9806          { ac_try='test -s conftest$ac_exeext'
9807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9808   (eval $ac_try) 2>&5
9809   ac_status=$?
9810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); }; }; then
9812
9813             echo "$as_me:$LINENO: result: yes" >&5
9814 echo "${ECHO_T}yes" >&6
9815             cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_LIBWRAP 1
9817 _ACEOF
9818
9819             TCPW_MSG="yes"
9820
9821 else
9822   echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825
9826             LIBS="$saved_LIBS -lwrap -lnsl"
9827             cat >conftest.$ac_ext <<_ACEOF
9828 /* confdefs.h.  */
9829 _ACEOF
9830 cat confdefs.h >>conftest.$ac_ext
9831 cat >>conftest.$ac_ext <<_ACEOF
9832 /* end confdefs.h.  */
9833  #include <tcpd.h>
9834                  int deny_severity = 0;
9835                  int allow_severity = 0;
9836                  struct request_info *req;
9837 int
9838 main ()
9839 {
9840  hosts_access(req);
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 rm -f conftest.$ac_objext conftest$ac_exeext
9846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9847   (eval $ac_link) 2>conftest.er1
9848   ac_status=$?
9849   grep -v '^ *+' conftest.er1 >conftest.err
9850   rm -f conftest.er1
9851   cat conftest.err >&5
9852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853   (exit $ac_status); } &&
9854          { ac_try='test -z "$ac_c_werror_flag"
9855                          || test ! -s conftest.err'
9856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857   (eval $ac_try) 2>&5
9858   ac_status=$?
9859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860   (exit $ac_status); }; } &&
9861          { ac_try='test -s conftest$ac_exeext'
9862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863   (eval $ac_try) 2>&5
9864   ac_status=$?
9865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866   (exit $ac_status); }; }; then
9867
9868                  echo "$as_me:$LINENO: result: yes" >&5
9869 echo "${ECHO_T}yes" >&6
9870                  cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_LIBWRAP 1
9872 _ACEOF
9873
9874                  TCPW_MSG="yes"
9875
9876 else
9877   echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9879
9880 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9881 echo "$as_me: error: *** libwrap missing" >&2;}
9882    { (exit 1); exit 1; }; }
9883
9884 fi
9885 rm -f conftest.err conftest.$ac_objext \
9886       conftest$ac_exeext conftest.$ac_ext
9887
9888 fi
9889 rm -f conftest.err conftest.$ac_objext \
9890       conftest$ac_exeext conftest.$ac_ext
9891     fi
9892
9893
9894 fi;
9895
9896 # -----------------------------------------------------------
9897 # Check whether OpenSSL is available
9898 # -----------------------------------------------------------
9899 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9900 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9901
9902 # Check whether --with-openssl or --without-openssl was given.
9903 if test "${with_openssl+set}" = set; then
9904   withval="$with_openssl"
9905   with_openssl_directory=${withval}
9906 fi;
9907
9908 if test "x$with_openssl_directory" != "x"; then
9909         OPENSSL_LIBS="-lssl -lcrypto"
9910         OPENSSL_INC=""
9911
9912         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9913                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9914                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9915         fi
9916
9917         saved_LIBS="$LIBS"
9918         saved_CFLAGS="$CFLAGS"
9919         LIBS="$saved_LIBS $OPENSSL_LIBS"
9920         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9921
9922         cat >conftest.$ac_ext <<_ACEOF
9923 /* confdefs.h.  */
9924 _ACEOF
9925 cat confdefs.h >>conftest.$ac_ext
9926 cat >>conftest.$ac_ext <<_ACEOF
9927 /* end confdefs.h.  */
9928  #include <openssl/ssl.h>
9929 int
9930 main ()
9931 {
9932  CRYPTO_set_id_callback(NULL);
9933   ;
9934   return 0;
9935 }
9936 _ACEOF
9937 rm -f conftest.$ac_objext conftest$ac_exeext
9938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9939   (eval $ac_link) 2>conftest.er1
9940   ac_status=$?
9941   grep -v '^ *+' conftest.er1 >conftest.err
9942   rm -f conftest.er1
9943   cat conftest.err >&5
9944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945   (exit $ac_status); } &&
9946          { ac_try='test -z "$ac_c_werror_flag"
9947                          || test ! -s conftest.err'
9948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9949   (eval $ac_try) 2>&5
9950   ac_status=$?
9951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9952   (exit $ac_status); }; } &&
9953          { ac_try='test -s conftest$ac_exeext'
9954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9955   (eval $ac_try) 2>&5
9956   ac_status=$?
9957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958   (exit $ac_status); }; }; then
9959    support_tls="yes"
9960 else
9961   echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9963
9964  support_tls="no"
9965
9966 fi
9967 rm -f conftest.err conftest.$ac_objext \
9968       conftest$ac_exeext conftest.$ac_ext
9969
9970         LIBS="$saved_LIBS"
9971         CFLAGS="$saved_CFLAGS"
9972
9973         if test "$support_tls" = "yes"; then
9974
9975 cat >>confdefs.h <<\_ACEOF
9976 #define HAVE_OPENSSL 1
9977 _ACEOF
9978
9979
9980 cat >>confdefs.h <<\_ACEOF
9981 #define HAVE_TLS 1
9982 _ACEOF
9983
9984         fi
9985 else
9986         support_tls="no"
9987         OPENSSL_LIBS=""
9988         OPENSSL_INC=""
9989 fi
9990
9991 echo "$as_me:$LINENO: result: $support_tls" >&5
9992 echo "${ECHO_T}$support_tls" >&6
9993
9994
9995
9996
9997 # -----------------------------------------------------------
9998 # Python and OpenSSL are using dlopen
9999 # -----------------------------------------------------------
10000
10001 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10002    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10003 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10004 if test "${ac_cv_search_dlopen+set}" = set; then
10005   echo $ECHO_N "(cached) $ECHO_C" >&6
10006 else
10007   ac_func_search_save_LIBS=$LIBS
10008 ac_cv_search_dlopen=no
10009 cat >conftest.$ac_ext <<_ACEOF
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015
10016 /* Override any gcc2 internal prototype to avoid an error.  */
10017 #ifdef __cplusplus
10018 extern "C"
10019 #endif
10020 /* We use char because int might match the return type of a gcc2
10021    builtin and then its argument prototype would still apply.  */
10022 char dlopen ();
10023 int
10024 main ()
10025 {
10026 dlopen ();
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033   (eval $ac_link) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"
10041                          || test ! -s conftest.err'
10042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043   (eval $ac_try) 2>&5
10044   ac_status=$?
10045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046   (exit $ac_status); }; } &&
10047          { ac_try='test -s conftest$ac_exeext'
10048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10049   (eval $ac_try) 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ac_cv_search_dlopen="none required"
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 if test "$ac_cv_search_dlopen" = no; then
10062   for ac_lib in dl; do
10063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10064     cat >conftest.$ac_ext <<_ACEOF
10065 /* confdefs.h.  */
10066 _ACEOF
10067 cat confdefs.h >>conftest.$ac_ext
10068 cat >>conftest.$ac_ext <<_ACEOF
10069 /* end confdefs.h.  */
10070
10071 /* Override any gcc2 internal prototype to avoid an error.  */
10072 #ifdef __cplusplus
10073 extern "C"
10074 #endif
10075 /* We use char because int might match the return type of a gcc2
10076    builtin and then its argument prototype would still apply.  */
10077 char dlopen ();
10078 int
10079 main ()
10080 {
10081 dlopen ();
10082   ;
10083   return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10088   (eval $ac_link) 2>conftest.er1
10089   ac_status=$?
10090   grep -v '^ *+' conftest.er1 >conftest.err
10091   rm -f conftest.er1
10092   cat conftest.err >&5
10093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094   (exit $ac_status); } &&
10095          { ac_try='test -z "$ac_c_werror_flag"
10096                          || test ! -s conftest.err'
10097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10098   (eval $ac_try) 2>&5
10099   ac_status=$?
10100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101   (exit $ac_status); }; } &&
10102          { ac_try='test -s conftest$ac_exeext'
10103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10104   (eval $ac_try) 2>&5
10105   ac_status=$?
10106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107   (exit $ac_status); }; }; then
10108   ac_cv_search_dlopen="-l$ac_lib"
10109 break
10110 else
10111   echo "$as_me: failed program was:" >&5
10112 sed 's/^/| /' conftest.$ac_ext >&5
10113
10114 fi
10115 rm -f conftest.err conftest.$ac_objext \
10116       conftest$ac_exeext conftest.$ac_ext
10117   done
10118 fi
10119 LIBS=$ac_func_search_save_LIBS
10120 fi
10121 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10122 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10123 if test "$ac_cv_search_dlopen" != no; then
10124   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10125
10126 fi
10127
10128 fi
10129
10130 # ------------------------------------------
10131 # Where to place working dir
10132 # ------------------------------------------
10133 working_dir=`eval echo ${prefix}/var/bacula/working`
10134
10135 # Check whether --with-working-dir or --without-working-dir was given.
10136 if test "${with_working_dir+set}" = set; then
10137   withval="$with_working_dir"
10138
10139        if test "x$withval" != "xno" ; then
10140               working_dir=$withval
10141        fi
10142
10143
10144 fi;
10145
10146
10147
10148
10149 # ------------------------------------------
10150 # Where to place scriptdir (script files)
10151 # ------------------------------------------
10152 scriptdir=`eval echo ${sysconfdir}`
10153
10154 # Check whether --with-scriptdir or --without-scriptdir was given.
10155 if test "${with_scriptdir+set}" = set; then
10156   withval="$with_scriptdir"
10157
10158        if test "x$withval" != "xno" ; then
10159               scriptdir=$withval
10160        fi
10161
10162
10163 fi;
10164
10165
10166
10167
10168 # ------------------------------------------
10169 # Where to send dump email
10170 # ------------------------------------------
10171 dump_email=root@localhost
10172
10173 # Check whether --with-dump-email or --without-dump-email was given.
10174 if test "${with_dump_email+set}" = set; then
10175   withval="$with_dump_email"
10176
10177        if test "x$withval" != "xno" ; then
10178               dump_email=$withval
10179        fi
10180
10181
10182 fi;
10183
10184
10185
10186 # ------------------------------------------
10187 # Where to send job email
10188 # ------------------------------------------
10189 job_email=root@localhost
10190
10191 # Check whether --with-job-email or --without-job-email was given.
10192 if test "${with_job_email+set}" = set; then
10193   withval="$with_job_email"
10194
10195        if test "x$withval" != "xno" ; then
10196               job_email=$withval
10197        fi
10198
10199
10200 fi;
10201
10202
10203
10204 # ------------------------------------------
10205 # Where to find smtp host
10206 # ------------------------------------------
10207 smtp_host=localhost
10208
10209 # Check whether --with-smtp_host or --without-smtp_host was given.
10210 if test "${with_smtp_host+set}" = set; then
10211   withval="$with_smtp_host"
10212
10213        if test "x$withval" != "xno" ; then
10214               smtp_host=$withval
10215        fi
10216
10217
10218 fi;
10219
10220
10221
10222
10223 # ------------------------------------
10224 # Where to place pid files
10225 # ------------------------------------
10226 piddir=/var/run
10227
10228 # Check whether --with-pid-dir or --without-pid-dir was given.
10229 if test "${with_pid_dir+set}" = set; then
10230   withval="$with_pid_dir"
10231
10232         if test "x$withval" != "xno" ; then
10233             piddir=$withval
10234         fi
10235
10236
10237 fi;
10238
10239 cat >>confdefs.h <<_ACEOF
10240 #define _PATH_BACULA_PIDDIR "$piddir"
10241 _ACEOF
10242
10243
10244
10245
10246 # ------------------------------------
10247 # Where to place subsys "lock file"
10248 # ------------------------------------
10249 subsysdir=/var/run/subsys
10250
10251 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10252 if test "${with_subsys_dir+set}" = set; then
10253   withval="$with_subsys_dir"
10254
10255         if test "x$withval" != "xno" ; then
10256             subsysdir=$withval
10257         fi
10258
10259
10260 fi;
10261
10262
10263
10264
10265
10266 # ------------------------------------
10267 # Where to start assigning ports
10268 # ------------------------------------
10269 baseport=9101
10270
10271 # Check whether --with-baseport or --without-baseport was given.
10272 if test "${with_baseport+set}" = set; then
10273   withval="$with_baseport"
10274
10275         if test "x$withval" != "xno" ; then
10276              baseport=$withval
10277         fi
10278
10279
10280 fi;
10281
10282
10283 dir_port=`expr $baseport`
10284 fd_port=`expr $baseport + 1`
10285 sd_port=`expr $fd_port + 1`
10286
10287
10288
10289
10290
10291
10292 # ------------------------------------------
10293 # Generate passwords
10294 # ------------------------------------------
10295 dir_password=
10296
10297 # Check whether --with-dir-password or --without-dir-password was given.
10298 if test "${with_dir_password+set}" = set; then
10299   withval="$with_dir_password"
10300
10301        if test "x$withval" != "xno" ; then
10302            dir_password=$withval
10303        fi
10304
10305
10306 fi;
10307
10308 if test "x$dir_password" = "x" ; then
10309    if test "x$OPENSSL" = "xnone" ; then
10310       key=`autoconf/randpass 33`
10311    else
10312       key=`openssl rand -base64 33`
10313    fi
10314    dir_password=$key
10315 fi
10316
10317 fd_password=
10318
10319 # Check whether --with-fd-password or --without-fd-password was given.
10320 if test "${with_fd_password+set}" = set; then
10321   withval="$with_fd_password"
10322
10323        if test "x$withval" != "xno" ; then
10324            fd_password=$withval
10325        fi
10326
10327
10328 fi;
10329
10330 if test "x$fd_password" = "x" ; then
10331    if test "x$OPENSSL" = "xnone" ; then
10332       key=`autoconf/randpass 37`
10333    else
10334       key=`openssl rand -base64 33`
10335    fi
10336    fd_password=$key
10337 fi
10338
10339 sd_password=
10340
10341 # Check whether --with-sd-password or --without-sd-password was given.
10342 if test "${with_sd_password+set}" = set; then
10343   withval="$with_sd_password"
10344
10345        if test "x$withval" != "xno" ; then
10346            sd_password=$withval
10347        fi
10348
10349
10350 fi;
10351
10352 if test "x$sd_password" = "x" ; then
10353    if test "x$OPENSSL" = "xnone" ; then
10354       key=`autoconf/randpass 41`
10355    else
10356       key=`openssl rand -base64 33`
10357    fi
10358    sd_password=$key
10359 fi
10360
10361 mon_dir_password=
10362
10363 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10364 if test "${with_mon_dir_password+set}" = set; then
10365   withval="$with_mon_dir_password"
10366
10367        if test "x$withval" != "xno" ; then
10368            mon_dir_password=$withval
10369        fi
10370
10371
10372 fi;
10373
10374 if test "x$mon_dir_password" = "x" ; then
10375    if test "x$OPENSSL" = "xnone" ; then
10376       key=`autoconf/randpass 33`
10377    else
10378       key=`openssl rand -base64 33`
10379    fi
10380    mon_dir_password=$key
10381 fi
10382
10383 mon_fd_password=
10384
10385 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10386 if test "${with_mon_fd_password+set}" = set; then
10387   withval="$with_mon_fd_password"
10388
10389        if test "x$withval" != "xno" ; then
10390            mon_fd_password=$withval
10391        fi
10392
10393
10394 fi;
10395
10396 if test "x$mon_fd_password" = "x" ; then
10397    if test "x$OPENSSL" = "xnone" ; then
10398       key=`autoconf/randpass 37`
10399    else
10400       key=`openssl rand -base64 33`
10401    fi
10402    mon_fd_password=$key
10403 fi
10404
10405 mon_sd_password=
10406
10407 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10408 if test "${with_mon_sd_password+set}" = set; then
10409   withval="$with_mon_sd_password"
10410
10411        if test "x$withval" != "xno" ; then
10412            mon_sd_password=$withval
10413        fi
10414
10415
10416 fi;
10417
10418 if test "x$mon_sd_password" = "x" ; then
10419    if test "x$OPENSSL" = "xnone" ; then
10420       key=`autoconf/randpass 41`
10421    else
10422       key=`openssl rand -base64 33`
10423    fi
10424    mon_sd_password=$key
10425 fi
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435 #
10436 # Handle users and groups for each daemon
10437 #
10438 dir_user=
10439
10440 # Check whether --with-dir_user or --without-dir_user was given.
10441 if test "${with_dir_user+set}" = set; then
10442   withval="$with_dir_user"
10443
10444         if test "x$withval" != "x" ; then
10445              dir_user=$withval
10446         fi
10447
10448
10449 fi;
10450
10451 dir_group=
10452
10453 # Check whether --with-dir_group or --without-dir_group was given.
10454 if test "${with_dir_group+set}" = set; then
10455   withval="$with_dir_group"
10456
10457         if test "x$withval" != "x" ; then
10458              dir_group=$withval
10459         fi
10460
10461
10462 fi;
10463
10464 sd_user=
10465
10466 # Check whether --with-sd_user or --without-sd_user was given.
10467 if test "${with_sd_user+set}" = set; then
10468   withval="$with_sd_user"
10469
10470         if test "x$withval" != "x" ; then
10471              sd_user=$withval
10472         fi
10473
10474
10475 fi;
10476
10477 sd_group=
10478
10479 # Check whether --with-sd_group or --without-sd_group was given.
10480 if test "${with_sd_group+set}" = set; then
10481   withval="$with_sd_group"
10482
10483         if test "x$withval" != "x" ; then
10484              sd_group=$withval
10485         fi
10486
10487
10488 fi;
10489
10490 fd_user=
10491
10492 # Check whether --with-fd_user or --without-fd_user was given.
10493 if test "${with_fd_user+set}" = set; then
10494   withval="$with_fd_user"
10495
10496         if test "x$withval" != "x" ; then
10497              fd_user=$withval
10498         fi
10499
10500
10501 fi;
10502
10503 fd_group=
10504
10505 # Check whether --with-fd_group or --without-fd_group was given.
10506 if test "${with_fd_group+set}" = set; then
10507   withval="$with_fd_group"
10508
10509         if test "x$withval" != "x" ; then
10510              fd_group=$withval
10511         fi
10512
10513
10514 fi;
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526 #
10527 # allow setting default executable permissions
10528 #
10529 SBINPERM=0754
10530
10531 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10532 if test "${with_sbin_perm+set}" = set; then
10533   withval="$with_sbin_perm"
10534
10535         if test "x$withval" != "x" ; then
10536             SBINPERM=$withval
10537         fi
10538
10539
10540 fi;
10541
10542
10543
10544 # ------------------------------------------------
10545 # Bacula check for various SQL database engines
10546 # ------------------------------------------------
10547
10548 db_found=no
10549 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10550 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10551
10552 # Check whether --with-postgresql or --without-postgresql was given.
10553 if test "${with_postgresql+set}" = set; then
10554   withval="$with_postgresql"
10555
10556   if test "$withval" != "no"; then
10557       if test "$db_found" = "yes"; then
10558           echo "$as_me:$LINENO: result: error" >&5
10559 echo "${ECHO_T}error" >&6
10560           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10561 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10562    { (exit 1); exit 1; }; };
10563       fi
10564       if test "$withval" = "yes"; then
10565           if test -f /usr/local/include/libpq-fe.h; then
10566               POSTGRESQL_INCDIR=/usr/local/include
10567               POSTGRESQL_LIBDIR=/usr/local/lib
10568               POSTGRESQL_BINDIR=/usr/local/bin
10569           elif test -f /usr/include/libpq-fe.h; then
10570               POSTGRESQL_INCDIR=/usr/include
10571               POSTGRESQL_LIBDIR=/usr/lib
10572               POSTGRESQL_BINDIR=/usr/bin
10573           elif test -f /usr/include/pgsql/libpq-fe.h; then
10574               POSTGRESQL_INCDIR=/usr/include/pgsql
10575               POSTGRESQL_LIBDIR=/usr/lib/pgsql
10576               POSTGRESQL_BINDIR=/usr/bin
10577           elif test -f /usr/include/postgresql/libpq-fe.h; then
10578               POSTGRESQL_INCDIR=/usr/include/postgresql
10579               POSTGRESQL_LIBDIR=/usr/lib/postgresql
10580               POSTGRESQL_BINDIR=/usr/bin
10581           else
10582               echo "$as_me:$LINENO: result: no" >&5
10583 echo "${ECHO_T}no" >&6
10584               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10585 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10586    { (exit 1); exit 1; }; }
10587           fi
10588       elif test -f $withval/include/libpq-fe.h; then
10589           POSTGRESQL_INCDIR=$withval/include
10590           POSTGRESQL_LIBDIR=$withval/lib
10591           POSTGRESQL_BINDIR=$withval/bin
10592       elif test -f $withval/include/postgresql/libpq-fe.h; then
10593           POSTGRESQL_INCDIR=$withval/include/postgresql
10594           POSTGRESQL_LIBDIR=$withval/lib
10595           POSTGRESQL_BINDIR=$withval/bin
10596       else
10597           echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6
10599           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10600 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10601    { (exit 1); exit 1; }; }
10602       fi
10603       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10604       echo "$as_me:$LINENO: checking for crypt" >&5
10605 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10606 if test "${ac_cv_func_crypt+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609   cat >conftest.$ac_ext <<_ACEOF
10610 /* confdefs.h.  */
10611 _ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h.  */
10615 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10616    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10617 #define crypt innocuous_crypt
10618
10619 /* System header to define __stub macros and hopefully few prototypes,
10620     which can conflict with char crypt (); below.
10621     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10622     <limits.h> exists even on freestanding compilers.  */
10623
10624 #ifdef __STDC__
10625 # include <limits.h>
10626 #else
10627 # include <assert.h>
10628 #endif
10629
10630 #undef crypt
10631
10632 /* Override any gcc2 internal prototype to avoid an error.  */
10633 #ifdef __cplusplus
10634 extern "C"
10635 {
10636 #endif
10637 /* We use char because int might match the return type of a gcc2
10638    builtin and then its argument prototype would still apply.  */
10639 char crypt ();
10640 /* The GNU C library defines this for functions which it implements
10641     to always fail with ENOSYS.  Some functions are actually named
10642     something starting with __ and the normal name is an alias.  */
10643 #if defined (__stub_crypt) || defined (__stub___crypt)
10644 choke me
10645 #else
10646 char (*f) () = crypt;
10647 #endif
10648 #ifdef __cplusplus
10649 }
10650 #endif
10651
10652 int
10653 main ()
10654 {
10655 return f != crypt;
10656   ;
10657   return 0;
10658 }
10659 _ACEOF
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662   (eval $ac_link) 2>conftest.er1
10663   ac_status=$?
10664   grep -v '^ *+' conftest.er1 >conftest.err
10665   rm -f conftest.er1
10666   cat conftest.err >&5
10667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668   (exit $ac_status); } &&
10669          { ac_try='test -z "$ac_c_werror_flag"
10670                          || test ! -s conftest.err'
10671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672   (eval $ac_try) 2>&5
10673   ac_status=$?
10674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675   (exit $ac_status); }; } &&
10676          { ac_try='test -s conftest$ac_exeext'
10677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678   (eval $ac_try) 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   ac_cv_func_crypt=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687 ac_cv_func_crypt=no
10688 fi
10689 rm -f conftest.err conftest.$ac_objext \
10690       conftest$ac_exeext conftest.$ac_ext
10691 fi
10692 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10693 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10694 if test $ac_cv_func_crypt = yes; then
10695   :
10696 else
10697   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10698 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10699 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10700   echo $ECHO_N "(cached) $ECHO_C" >&6
10701 else
10702   ac_check_lib_save_LIBS=$LIBS
10703 LIBS="-lcrypt  $LIBS"
10704 cat >conftest.$ac_ext <<_ACEOF
10705 /* confdefs.h.  */
10706 _ACEOF
10707 cat confdefs.h >>conftest.$ac_ext
10708 cat >>conftest.$ac_ext <<_ACEOF
10709 /* end confdefs.h.  */
10710
10711 /* Override any gcc2 internal prototype to avoid an error.  */
10712 #ifdef __cplusplus
10713 extern "C"
10714 #endif
10715 /* We use char because int might match the return type of a gcc2
10716    builtin and then its argument prototype would still apply.  */
10717 char crypt ();
10718 int
10719 main ()
10720 {
10721 crypt ();
10722   ;
10723   return 0;
10724 }
10725 _ACEOF
10726 rm -f conftest.$ac_objext conftest$ac_exeext
10727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10728   (eval $ac_link) 2>conftest.er1
10729   ac_status=$?
10730   grep -v '^ *+' conftest.er1 >conftest.err
10731   rm -f conftest.er1
10732   cat conftest.err >&5
10733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10734   (exit $ac_status); } &&
10735          { ac_try='test -z "$ac_c_werror_flag"
10736                          || test ! -s conftest.err'
10737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10738   (eval $ac_try) 2>&5
10739   ac_status=$?
10740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741   (exit $ac_status); }; } &&
10742          { ac_try='test -s conftest$ac_exeext'
10743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10744   (eval $ac_try) 2>&5
10745   ac_status=$?
10746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747   (exit $ac_status); }; }; then
10748   ac_cv_lib_crypt_crypt=yes
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753 ac_cv_lib_crypt_crypt=no
10754 fi
10755 rm -f conftest.err conftest.$ac_objext \
10756       conftest$ac_exeext conftest.$ac_ext
10757 LIBS=$ac_check_lib_save_LIBS
10758 fi
10759 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10760 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10761 if test $ac_cv_lib_crypt_crypt = yes; then
10762   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10763 fi
10764
10765 fi
10766
10767       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10768       SQL_LFLAGS=$POSTGRESQL_LFLAGS
10769       SQL_BINDIR=$POSTGRESQL_BINDIR
10770       cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_POSTGRESQL 1
10772 _ACEOF
10773
10774       echo "$as_me:$LINENO: result: yes" >&5
10775 echo "${ECHO_T}yes" >&6
10776       db_found=yes
10777       support_postgresql=yes
10778       db_name=PostgreSQL
10779       DB_NAME=postgresql
10780   else
10781       echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6
10783   fi
10784
10785 else
10786
10787   echo "$as_me:$LINENO: result: no" >&5
10788 echo "${ECHO_T}no" >&6
10789
10790 fi;
10791
10792
10793
10794
10795
10796
10797
10798 db_found=no
10799 echo "$as_me:$LINENO: checking for MySQL support" >&5
10800 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10801
10802 # Check whether --with-mysql or --without-mysql was given.
10803 if test "${with_mysql+set}" = set; then
10804   withval="$with_mysql"
10805
10806   if test "$withval" != "no"; then
10807         if test "$withval" = "yes"; then
10808                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10809                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10810                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10811                         MYSQL_BINDIR=/usr/local/mysql/bin
10812                 elif test -f /usr/include/mysql/mysql.h; then
10813                         MYSQL_INCDIR=/usr/include/mysql
10814                         MYSQL_LIBDIR=/usr/lib/mysql
10815                         MYSQL_BINDIR=/usr/bin
10816                 elif test -f /usr/include/mysql.h; then
10817                         MYSQL_INCDIR=/usr/include
10818                         MYSQL_LIBDIR=/usr/lib
10819                         MYSQL_BINDIR=/usr/bin
10820                 elif test -f /usr/local/include/mysql/mysql.h; then
10821                         MYSQL_INCDIR=/usr/local/include/mysql
10822                         MYSQL_LIBDIR=/usr/local/lib/mysql
10823                         MYSQL_BINDIR=/usr/local/bin
10824                 elif test -f /usr/local/include/mysql.h; then
10825                         MYSQL_INCDIR=/usr/local/include
10826                         MYSQL_LIBDIR=/usr/local/lib
10827                         MYSQL_BINDIR=/usr/local/bin
10828                 else
10829                    echo "$as_me:$LINENO: result: no" >&5
10830 echo "${ECHO_T}no" >&6
10831                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10832 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10833    { (exit 1); exit 1; }; }
10834                 fi
10835         else
10836                 if test -f $withval/include/mysql/mysql.h; then
10837                         MYSQL_INCDIR=$withval/include/mysql
10838                         MYSQL_LIBDIR=$withval/lib/mysql
10839                         MYSQL_BINDIR=$withval/bin
10840                 elif test -f $withval/include/mysql.h; then
10841                         MYSQL_INCDIR=$withval/include
10842                         MYSQL_LIBDIR=$withval/lib
10843                         MYSQL_BINDIR=$withval/bin
10844                 else
10845                    echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6
10847                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10848 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10849    { (exit 1); exit 1; }; }
10850                 fi
10851         fi
10852     SQL_INCLUDE=-I$MYSQL_INCDIR
10853     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10854        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10855        cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_THREAD_SAFE_MYSQL 1
10857 _ACEOF
10858
10859     else
10860        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10861     fi
10862     SQL_BINDIR=$MYSQL_BINDIR
10863
10864     cat >>confdefs.h <<\_ACEOF
10865 #define HAVE_MYSQL 1
10866 _ACEOF
10867
10868     echo "$as_me:$LINENO: result: yes" >&5
10869 echo "${ECHO_T}yes" >&6
10870     db_found=yes
10871     support_mysql=yes
10872     db_name=MySQL
10873     DB_NAME=mysql
10874
10875   else
10876         echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6
10878   fi
10879
10880
10881 fi;
10882
10883
10884 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10885 if test "${with_embedded_mysql+set}" = set; then
10886   withval="$with_embedded_mysql"
10887
10888   if test "$withval" != "no"; then
10889         if test "$withval" = "yes"; then
10890                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10891                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10892                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10893                         MYSQL_BINDIR=/usr/local/mysql/bin
10894                 elif test -f /usr/include/mysql/mysql.h; then
10895                         MYSQL_INCDIR=/usr/include/mysql
10896                         MYSQL_LIBDIR=/usr/lib/mysql
10897                         MYSQL_BINDIR=/usr/bin
10898                 elif test -f /usr/include/mysql.h; then
10899                         MYSQL_INCDIR=/usr/include
10900                         MYSQL_LIBDIR=/usr/lib
10901                         MYSQL_BINDIR=/usr/bin
10902                 elif test -f /usr/local/include/mysql/mysql.h; then
10903                         MYSQL_INCDIR=/usr/local/include/mysql
10904                         MYSQL_LIBDIR=/usr/local/lib/mysql
10905                         MYSQL_BINDIR=/usr/local/bin
10906                 elif test -f /usr/local/include/mysql.h; then
10907                         MYSQL_INCDIR=/usr/local/include
10908                         MYSQL_LIBDIR=/usr/local/lib
10909                         MYSQL_BINDIR=/usr/local/bin
10910                 else
10911                    echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6
10913                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10914 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10915    { (exit 1); exit 1; }; }
10916                 fi
10917         else
10918                 if test -f $withval/include/mysql/mysql.h; then
10919                         MYSQL_INCDIR=$withval/include/mysql
10920                         MYSQL_LIBDIR=$withval/lib/mysql
10921                         MYSQL_BINDIR=$withval/bin
10922                 elif test -f $withval/include/mysql.h; then
10923                         MYSQL_INCDIR=$withval/include
10924                         MYSQL_LIBDIR=$withval/lib
10925                         MYSQL_BINDIR=$withval/bin
10926                 else
10927                    echo "$as_me:$LINENO: result: no" >&5
10928 echo "${ECHO_T}no" >&6
10929                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10930 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10931    { (exit 1); exit 1; }; }
10932                 fi
10933         fi
10934     SQL_INCLUDE=-I$MYSQL_INCDIR
10935     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10936     SQL_BINDIR=$MYSQL_BINDIR
10937
10938     cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_MYSQL 1
10940 _ACEOF
10941
10942     cat >>confdefs.h <<\_ACEOF
10943 #define HAVE_EMBEDDED_MYSQL 1
10944 _ACEOF
10945
10946     echo "$as_me:$LINENO: result: yes" >&5
10947 echo "${ECHO_T}yes" >&6
10948     db_found=yes
10949     support_mysql=yes
10950     db_name=MySQL
10951     DB_NAME=mysql
10952
10953   else
10954         echo "$as_me:$LINENO: result: no" >&5
10955 echo "${ECHO_T}no" >&6
10956   fi
10957
10958
10959 fi;
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969 db_found=no
10970 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10971 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10972
10973 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10974 if test "${with_sqlite3+set}" = set; then
10975   withval="$with_sqlite3"
10976
10977   if test "$withval" != "no"; then
10978      if test "$withval" = "yes"; then
10979         if test -f /usr/local/include/sqlite3.h; then
10980            SQLITE_INCDIR=/usr/local/include
10981            SQLITE_LIBDIR=/usr/local/lib
10982            SQLITE_BINDIR=/usr/local/bin
10983         elif test -f /usr/include/sqlite3.h; then
10984            SQLITE_INCDIR=/usr/include
10985            SQLITE_LIBDIR=/usr/lib
10986            SQLITE_BINDIR=/usr/bin
10987         elif test -f $prefix/include/sqlite3.h; then
10988            SQLITE_INCDIR=$prefix/include
10989            SQLITE_LIBDIR=$prefix/lib
10990            SQLITE_BINDIR=$prefix/bin
10991         else
10992            echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10994            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10995 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10996    { (exit 1); exit 1; }; }
10997         fi
10998      else
10999         if test -f $withval/sqlite3.h; then
11000            SQLITE_INCDIR=$withval
11001            SQLITE_LIBDIR=$withval
11002            SQLITE_BINDIR=$withval
11003         elif test -f $withval/include/sqlite3.h; then
11004            SQLITE_INCDIR=$withval/include
11005            SQLITE_LIBDIR=$withval/lib
11006            SQLITE_BINDIR=$withval/bin
11007         else
11008            echo "$as_me:$LINENO: result: no" >&5
11009 echo "${ECHO_T}no" >&6
11010            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11011 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11012    { (exit 1); exit 1; }; }
11013         fi
11014      fi
11015      SQL_INCLUDE=-I$SQLITE_INCDIR
11016      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11017      SQL_BINDIR=$SQLITE_BINDIR
11018
11019      cat >>confdefs.h <<\_ACEOF
11020 #define HAVE_SQLITE3 1
11021 _ACEOF
11022
11023      echo "$as_me:$LINENO: result: yes" >&5
11024 echo "${ECHO_T}yes" >&6
11025      db_found=yes
11026      support_sqlite3=yes
11027      db_name=SQLite3
11028      DB_NAME=sqlite3
11029
11030   else
11031      echo "$as_me:$LINENO: result: no" >&5
11032 echo "${ECHO_T}no" >&6
11033   fi
11034
11035 else
11036
11037   echo "$as_me:$LINENO: result: no" >&5
11038 echo "${ECHO_T}no" >&6
11039
11040 fi;
11041
11042
11043
11044
11045
11046
11047
11048 db_found=no
11049 echo "$as_me:$LINENO: checking for SQLite support" >&5
11050 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11051
11052 # Check whether --with-sqlite or --without-sqlite was given.
11053 if test "${with_sqlite+set}" = set; then
11054   withval="$with_sqlite"
11055
11056   if test "$withval" != "no"; then
11057      if test "$withval" = "yes"; then
11058         if test -f /usr/local/include/sqlite.h; then
11059            SQLITE_INCDIR=/usr/local/include
11060            SQLITE_LIBDIR=/usr/local/lib
11061            SQLITE_BINDIR=/usr/local/bin
11062         elif test -f /usr/include/sqlite.h; then
11063            SQLITE_INCDIR=/usr/include
11064            SQLITE_LIBDIR=/usr/lib
11065            SQLITE_BINDIR=/usr/bin
11066         elif test -f $prefix/include/sqlite.h; then
11067            SQLITE_INCDIR=$prefix/include
11068            SQLITE_LIBDIR=$prefix/lib
11069            SQLITE_BINDIR=$prefix/bin
11070         else
11071            echo "$as_me:$LINENO: result: no" >&5
11072 echo "${ECHO_T}no" >&6
11073            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11074 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11075    { (exit 1); exit 1; }; }
11076         fi
11077      else
11078         if test -f $withval/sqlite.h; then
11079            SQLITE_INCDIR=$withval
11080            SQLITE_LIBDIR=$withval
11081            SQLITE_BINDIR=$withval
11082         elif test -f $withval/include/sqlite.h; then
11083            SQLITE_INCDIR=$withval/include
11084            SQLITE_LIBDIR=$withval/lib
11085            SQLITE_BINDIR=$withval/bin
11086         else
11087            echo "$as_me:$LINENO: result: no" >&5
11088 echo "${ECHO_T}no" >&6
11089            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11090 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11091    { (exit 1); exit 1; }; }
11092         fi
11093      fi
11094      SQL_INCLUDE=-I$SQLITE_INCDIR
11095      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11096      SQL_BINDIR=$SQLITE_BINDIR
11097
11098      cat >>confdefs.h <<\_ACEOF
11099 #define HAVE_SQLITE 1
11100 _ACEOF
11101
11102      echo "$as_me:$LINENO: result: yes" >&5
11103 echo "${ECHO_T}yes" >&6
11104      db_found=yes
11105      support_sqlite=yes
11106      db_name=SQLite
11107      DB_NAME=sqlite
11108
11109   else
11110      echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6
11112   fi
11113
11114 else
11115
11116   echo "$as_me:$LINENO: result: no" >&5
11117 echo "${ECHO_T}no" >&6
11118
11119 fi;
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129 cat >>confdefs.h <<\_ACEOF
11130 #define PROTOTYPES 1
11131 _ACEOF
11132
11133
11134 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11135     if test -z "$CCOPTS"; then
11136         CCOPTS='-g -O2 -Wall'
11137     fi
11138     CFLAGS="$CCOPTS"
11139 fi
11140
11141
11142
11143
11144 largefile_support="no"
11145
11146    # Check whether --enable-largefile or --disable-largefile was given.
11147 if test "${enable_largefile+set}" = set; then
11148   enableval="$enable_largefile"
11149
11150 fi;
11151    if test "$enable_largefile" != no; then
11152      if test -n "$ac_tool_prefix"; then
11153   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11155 echo "$as_me:$LINENO: checking for $ac_word" >&5
11156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11157 if test "${ac_cv_prog_GETCONF+set}" = set; then
11158   echo $ECHO_N "(cached) $ECHO_C" >&6
11159 else
11160   if test -n "$GETCONF"; then
11161   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11162 else
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11165 do
11166   IFS=$as_save_IFS
11167   test -z "$as_dir" && as_dir=.
11168   for ac_exec_ext in '' $ac_executable_extensions; do
11169   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11170     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11172     break 2
11173   fi
11174 done
11175 done
11176
11177 fi
11178 fi
11179 GETCONF=$ac_cv_prog_GETCONF
11180 if test -n "$GETCONF"; then
11181   echo "$as_me:$LINENO: result: $GETCONF" >&5
11182 echo "${ECHO_T}$GETCONF" >&6
11183 else
11184   echo "$as_me:$LINENO: result: no" >&5
11185 echo "${ECHO_T}no" >&6
11186 fi
11187
11188 fi
11189 if test -z "$ac_cv_prog_GETCONF"; then
11190   ac_ct_GETCONF=$GETCONF
11191   # Extract the first word of "getconf", so it can be a program name with args.
11192 set dummy getconf; ac_word=$2
11193 echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11195 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   if test -n "$ac_ct_GETCONF"; then
11199   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11200 else
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206   for ac_exec_ext in '' $ac_executable_extensions; do
11207   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11208     ac_cv_prog_ac_ct_GETCONF="getconf"
11209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213 done
11214
11215 fi
11216 fi
11217 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11218 if test -n "$ac_ct_GETCONF"; then
11219   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11220 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11221 else
11222   echo "$as_me:$LINENO: result: no" >&5
11223 echo "${ECHO_T}no" >&6
11224 fi
11225
11226   GETCONF=$ac_ct_GETCONF
11227 else
11228   GETCONF="$ac_cv_prog_GETCONF"
11229 fi
11230
11231      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11232 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11233 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11234   echo $ECHO_N "(cached) $ECHO_C" >&6
11235 else
11236   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11237         ac_cv_sys_largefile_CFLAGS=no
11238         case "$host_os" in
11239            # IRIX 6.2 and later require cc -n32.
11240            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11241              if test "$GCC" != yes; then
11242                ac_cv_sys_largefile_CFLAGS=-n32
11243              fi
11244              ac_save_CC="$CC"
11245              CC="$CC $ac_cv_sys_largefile_CFLAGS"
11246              cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h.  */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h.  */
11252
11253 int
11254 main ()
11255 {
11256
11257   ;
11258   return 0;
11259 }
11260 _ACEOF
11261 rm -f conftest.$ac_objext conftest$ac_exeext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11263   (eval $ac_link) 2>conftest.er1
11264   ac_status=$?
11265   grep -v '^ *+' conftest.er1 >conftest.err
11266   rm -f conftest.er1
11267   cat conftest.err >&5
11268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269   (exit $ac_status); } &&
11270          { ac_try='test -z "$ac_c_werror_flag"
11271                          || test ! -s conftest.err'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; } &&
11277          { ac_try='test -s conftest$ac_exeext'
11278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11279   (eval $ac_try) 2>&5
11280   ac_status=$?
11281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); }; }; then
11283   :
11284 else
11285   echo "$as_me: failed program was:" >&5
11286 sed 's/^/| /' conftest.$ac_ext >&5
11287
11288 ac_cv_sys_largefile_CFLAGS=no
11289 fi
11290 rm -f conftest.err conftest.$ac_objext \
11291       conftest$ac_exeext conftest.$ac_ext
11292              CC="$ac_save_CC"
11293            esac
11294       }
11295 fi
11296 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11297 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11298      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11299 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11300 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11301   echo $ECHO_N "(cached) $ECHO_C" >&6
11302 else
11303   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11304         ac_cv_sys_largefile_LDFLAGS=no
11305
11306       }
11307 fi
11308 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11309 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11310      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11311 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11312 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11313   echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11316         ac_cv_sys_largefile_LIBS=no
11317
11318       }
11319 fi
11320 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11321 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11322
11323      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11324        case "$ac_flag" in
11325        no) ;;
11326        -D_FILE_OFFSET_BITS=*) ;;
11327        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11328        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11329        -D?* | -I?*)
11330          case "$ac_flag" in
11331    no) ;;
11332    ?*)
11333      case "$CPPFLAGS" in
11334      '') CPPFLAGS="$ac_flag" ;;
11335      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11336      esac ;;
11337    esac ;;
11338        *)
11339          case "$ac_flag" in
11340    no) ;;
11341    ?*)
11342      case "$CFLAGS" in
11343      '') CFLAGS="$ac_flag" ;;
11344      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11345      esac ;;
11346    esac ;;
11347        esac
11348      done
11349      case "$ac_cv_sys_largefile_LDFLAGS" in
11350    no) ;;
11351    ?*)
11352      case "$LDFLAGS" in
11353      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11354      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11355      esac ;;
11356    esac
11357      case "$ac_cv_sys_largefile_LIBS" in
11358    no) ;;
11359    ?*)
11360      case "$LIBS" in
11361      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11362      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11363      esac ;;
11364    esac
11365      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11366 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11367 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11368   echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370   ac_cv_sys_file_offset_bits=no
11371       ac_cv_sys_file_offset_bits=64
11372       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11373         case "$ac_flag" in
11374         -D_FILE_OFFSET_BITS)
11375           ac_cv_sys_file_offset_bits=1 ;;
11376         -D_FILE_OFFSET_BITS=*)
11377           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11378         esac
11379       done
11380
11381 fi
11382 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11383 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11384    if test "$ac_cv_sys_file_offset_bits" != no; then
11385
11386 cat >>confdefs.h <<_ACEOF
11387 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11388 _ACEOF
11389
11390    fi
11391      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11392 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11393 if test "${ac_cv_sys_largefile_source+set}" = set; then
11394   echo $ECHO_N "(cached) $ECHO_C" >&6
11395 else
11396   ac_cv_sys_largefile_source=no
11397       ac_cv_sys_largefile_source=1
11398       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11399         case "$ac_flag" in
11400         -D_LARGEFILE_SOURCE)
11401           ac_cv_sys_largefile_source=1 ;;
11402         -D_LARGEFILE_SOURCE=*)
11403           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11404         esac
11405       done
11406
11407 fi
11408 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11409 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11410    if test "$ac_cv_sys_largefile_source" != no; then
11411
11412 cat >>confdefs.h <<_ACEOF
11413 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11414 _ACEOF
11415
11416    fi
11417      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11418 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11419 if test "${ac_cv_sys_large_files+set}" = set; then
11420   echo $ECHO_N "(cached) $ECHO_C" >&6
11421 else
11422   ac_cv_sys_large_files=no
11423       ac_cv_sys_large_files=1
11424       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11425         case "$ac_flag" in
11426         -D_LARGE_FILES)
11427           ac_cv_sys_large_files=1 ;;
11428         -D_LARGE_FILES=*)
11429           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11430         esac
11431       done
11432
11433 fi
11434 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11435 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11436    if test "$ac_cv_sys_large_files" != no; then
11437
11438 cat >>confdefs.h <<_ACEOF
11439 #define _LARGE_FILES $ac_cv_sys_large_files
11440 _ACEOF
11441
11442    fi
11443    fi
11444
11445
11446
11447 echo "$as_me:$LINENO: checking for X" >&5
11448 echo $ECHO_N "checking for X... $ECHO_C" >&6
11449
11450
11451 # Check whether --with-x or --without-x was given.
11452 if test "${with_x+set}" = set; then
11453   withval="$with_x"
11454
11455 fi;
11456 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11457 if test "x$with_x" = xno; then
11458   # The user explicitly disabled X.
11459   have_x=disabled
11460 else
11461   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11462     # Both variables are already set.
11463     have_x=yes
11464   else
11465     if test "${ac_cv_have_x+set}" = set; then
11466   echo $ECHO_N "(cached) $ECHO_C" >&6
11467 else
11468   # One or both of the vars are not set, and there is no cached value.
11469 ac_x_includes=no ac_x_libraries=no
11470 rm -fr conftest.dir
11471 if mkdir conftest.dir; then
11472   cd conftest.dir
11473   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11474   cat >Imakefile <<'_ACEOF'
11475 acfindx:
11476         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11477 _ACEOF
11478   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11479     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11480     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11481     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11482     for ac_extension in a so sl; do
11483       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11484          test -f $ac_im_libdir/libX11.$ac_extension; then
11485         ac_im_usrlibdir=$ac_im_libdir; break
11486       fi
11487     done
11488     # Screen out bogus values from the imake configuration.  They are
11489     # bogus both because they are the default anyway, and because
11490     # using them would break gcc on systems where it needs fixed includes.
11491     case $ac_im_incroot in
11492         /usr/include) ;;
11493         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11494     esac
11495     case $ac_im_usrlibdir in
11496         /usr/lib | /lib) ;;
11497         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11498     esac
11499   fi
11500   cd ..
11501   rm -fr conftest.dir
11502 fi
11503
11504 # Standard set of common directories for X headers.
11505 # Check X11 before X11Rn because it is often a symlink to the current release.
11506 ac_x_header_dirs='
11507 /usr/X11/include
11508 /usr/X11R6/include
11509 /usr/X11R5/include
11510 /usr/X11R4/include
11511
11512 /usr/include/X11
11513 /usr/include/X11R6
11514 /usr/include/X11R5
11515 /usr/include/X11R4
11516
11517 /usr/local/X11/include
11518 /usr/local/X11R6/include
11519 /usr/local/X11R5/include
11520 /usr/local/X11R4/include
11521
11522 /usr/local/include/X11
11523 /usr/local/include/X11R6
11524 /usr/local/include/X11R5
11525 /usr/local/include/X11R4
11526
11527 /usr/X386/include
11528 /usr/x386/include
11529 /usr/XFree86/include/X11
11530
11531 /usr/include
11532 /usr/local/include
11533 /usr/unsupported/include
11534 /usr/athena/include
11535 /usr/local/x11r5/include
11536 /usr/lpp/Xamples/include
11537
11538 /usr/openwin/include
11539 /usr/openwin/share/include'
11540
11541 if test "$ac_x_includes" = no; then
11542   # Guess where to find include files, by looking for Intrinsic.h.
11543   # First, try using that file with no special directory specified.
11544   cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h.  */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h.  */
11550 #include <X11/Intrinsic.h>
11551 _ACEOF
11552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11553   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11554   ac_status=$?
11555   grep -v '^ *+' conftest.er1 >conftest.err
11556   rm -f conftest.er1
11557   cat conftest.err >&5
11558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559   (exit $ac_status); } >/dev/null; then
11560   if test -s conftest.err; then
11561     ac_cpp_err=$ac_c_preproc_warn_flag
11562     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11563   else
11564     ac_cpp_err=
11565   fi
11566 else
11567   ac_cpp_err=yes
11568 fi
11569 if test -z "$ac_cpp_err"; then
11570   # We can compile using X headers with no special include directory.
11571 ac_x_includes=
11572 else
11573   echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11575
11576   for ac_dir in $ac_x_header_dirs; do
11577   if test -r "$ac_dir/X11/Intrinsic.h"; then
11578     ac_x_includes=$ac_dir
11579     break
11580   fi
11581 done
11582 fi
11583 rm -f conftest.err conftest.$ac_ext
11584 fi # $ac_x_includes = no
11585
11586 if test "$ac_x_libraries" = no; then
11587   # Check for the libraries.
11588   # See if we find them without any special options.
11589   # Don't add to $LIBS permanently.
11590   ac_save_LIBS=$LIBS
11591   LIBS="-lXt $LIBS"
11592   cat >conftest.$ac_ext <<_ACEOF
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 #include <X11/Intrinsic.h>
11599 int
11600 main ()
11601 {
11602 XtMalloc (0)
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest.$ac_objext conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609   (eval $ac_link) 2>conftest.er1
11610   ac_status=$?
11611   grep -v '^ *+' conftest.er1 >conftest.err
11612   rm -f conftest.er1
11613   cat conftest.err >&5
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -z "$ac_c_werror_flag"
11617                          || test ! -s conftest.err'
11618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11619   (eval $ac_try) 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; } &&
11623          { ac_try='test -s conftest$ac_exeext'
11624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625   (eval $ac_try) 2>&5
11626   ac_status=$?
11627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628   (exit $ac_status); }; }; then
11629   LIBS=$ac_save_LIBS
11630 # We can link X programs with no special library path.
11631 ac_x_libraries=
11632 else
11633   echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 LIBS=$ac_save_LIBS
11637 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11638 do
11639   # Don't even attempt the hair of trying to link an X program!
11640   for ac_extension in a so sl; do
11641     if test -r $ac_dir/libXt.$ac_extension; then
11642       ac_x_libraries=$ac_dir
11643       break 2
11644     fi
11645   done
11646 done
11647 fi
11648 rm -f conftest.err conftest.$ac_objext \
11649       conftest$ac_exeext conftest.$ac_ext
11650 fi # $ac_x_libraries = no
11651
11652 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11653   # Didn't find X anywhere.  Cache the known absence of X.
11654   ac_cv_have_x="have_x=no"
11655 else
11656   # Record where we found X for the cache.
11657   ac_cv_have_x="have_x=yes \
11658                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11659 fi
11660 fi
11661
11662   fi
11663   eval "$ac_cv_have_x"
11664 fi # $with_x != no
11665
11666 if test "$have_x" != yes; then
11667   echo "$as_me:$LINENO: result: $have_x" >&5
11668 echo "${ECHO_T}$have_x" >&6
11669   no_x=yes
11670 else
11671   # If each of the values was on the command line, it overrides each guess.
11672   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11673   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11674   # Update the cache value to reflect the command line values.
11675   ac_cv_have_x="have_x=yes \
11676                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11677   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11678 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11679 fi
11680
11681 if test "$no_x" = yes; then
11682   # Not all programs may use this symbol, but it does not hurt to define it.
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define X_DISPLAY_MISSING 1
11686 _ACEOF
11687
11688   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11689 else
11690   if test -n "$x_includes"; then
11691     X_CFLAGS="$X_CFLAGS -I$x_includes"
11692   fi
11693
11694   # It would also be nice to do this for all -L options, not just this one.
11695   if test -n "$x_libraries"; then
11696     X_LIBS="$X_LIBS -L$x_libraries"
11697     # For Solaris; some versions of Sun CC require a space after -R and
11698     # others require no space.  Words are not sufficient . . . .
11699     case `(uname -sr) 2>/dev/null` in
11700     "SunOS 5"*)
11701       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11702 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11703       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11704       cat >conftest.$ac_ext <<_ACEOF
11705 /* confdefs.h.  */
11706 _ACEOF
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h.  */
11710
11711 int
11712 main ()
11713 {
11714
11715   ;
11716   return 0;
11717 }
11718 _ACEOF
11719 rm -f conftest.$ac_objext conftest$ac_exeext
11720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11721   (eval $ac_link) 2>conftest.er1
11722   ac_status=$?
11723   grep -v '^ *+' conftest.er1 >conftest.err
11724   rm -f conftest.er1
11725   cat conftest.err >&5
11726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } &&
11728          { ac_try='test -z "$ac_c_werror_flag"
11729                          || test ! -s conftest.err'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; } &&
11735          { ac_try='test -s conftest$ac_exeext'
11736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737   (eval $ac_try) 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; }; then
11741   ac_R_nospace=yes
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746 ac_R_nospace=no
11747 fi
11748 rm -f conftest.err conftest.$ac_objext \
11749       conftest$ac_exeext conftest.$ac_ext
11750       if test $ac_R_nospace = yes; then
11751         echo "$as_me:$LINENO: result: no" >&5
11752 echo "${ECHO_T}no" >&6
11753         X_LIBS="$X_LIBS -R$x_libraries"
11754       else
11755         LIBS="$ac_xsave_LIBS -R $x_libraries"
11756         cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762
11763 int
11764 main ()
11765 {
11766
11767   ;
11768   return 0;
11769 }
11770 _ACEOF
11771 rm -f conftest.$ac_objext conftest$ac_exeext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11773   (eval $ac_link) 2>conftest.er1
11774   ac_status=$?
11775   grep -v '^ *+' conftest.er1 >conftest.err
11776   rm -f conftest.er1
11777   cat conftest.err >&5
11778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779   (exit $ac_status); } &&
11780          { ac_try='test -z "$ac_c_werror_flag"
11781                          || test ! -s conftest.err'
11782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783   (eval $ac_try) 2>&5
11784   ac_status=$?
11785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786   (exit $ac_status); }; } &&
11787          { ac_try='test -s conftest$ac_exeext'
11788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11789   (eval $ac_try) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }; }; then
11793   ac_R_space=yes
11794 else
11795   echo "$as_me: failed program was:" >&5
11796 sed 's/^/| /' conftest.$ac_ext >&5
11797
11798 ac_R_space=no
11799 fi
11800 rm -f conftest.err conftest.$ac_objext \
11801       conftest$ac_exeext conftest.$ac_ext
11802         if test $ac_R_space = yes; then
11803           echo "$as_me:$LINENO: result: yes" >&5
11804 echo "${ECHO_T}yes" >&6
11805           X_LIBS="$X_LIBS -R $x_libraries"
11806         else
11807           echo "$as_me:$LINENO: result: neither works" >&5
11808 echo "${ECHO_T}neither works" >&6
11809         fi
11810       fi
11811       LIBS=$ac_xsave_LIBS
11812     esac
11813   fi
11814
11815   # Check for system-dependent libraries X programs must link with.
11816   # Do this before checking for the system-independent R6 libraries
11817   # (-lICE), since we may need -lsocket or whatever for X linking.
11818
11819   if test "$ISC" = yes; then
11820     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11821   else
11822     # Martyn Johnson says this is needed for Ultrix, if the X
11823     # libraries were built with DECnet support.  And Karl Berry says
11824     # the Alpha needs dnet_stub (dnet does not exist).
11825     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11826     cat >conftest.$ac_ext <<_ACEOF
11827 /* confdefs.h.  */
11828 _ACEOF
11829 cat confdefs.h >>conftest.$ac_ext
11830 cat >>conftest.$ac_ext <<_ACEOF
11831 /* end confdefs.h.  */
11832
11833 /* Override any gcc2 internal prototype to avoid an error.  */
11834 #ifdef __cplusplus
11835 extern "C"
11836 #endif
11837 /* We use char because int might match the return type of a gcc2
11838    builtin and then its argument prototype would still apply.  */
11839 char XOpenDisplay ();
11840 int
11841 main ()
11842 {
11843 XOpenDisplay ();
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11850   (eval $ac_link) 2>conftest.er1
11851   ac_status=$?
11852   grep -v '^ *+' conftest.er1 >conftest.err
11853   rm -f conftest.er1
11854   cat conftest.err >&5
11855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856   (exit $ac_status); } &&
11857          { ac_try='test -z "$ac_c_werror_flag"
11858                          || test ! -s conftest.err'
11859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11860   (eval $ac_try) 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest$ac_exeext'
11865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11866   (eval $ac_try) 2>&5
11867   ac_status=$?
11868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869   (exit $ac_status); }; }; then
11870   :
11871 else
11872   echo "$as_me: failed program was:" >&5
11873 sed 's/^/| /' conftest.$ac_ext >&5
11874
11875 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11876 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11877 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11878   echo $ECHO_N "(cached) $ECHO_C" >&6
11879 else
11880   ac_check_lib_save_LIBS=$LIBS
11881 LIBS="-ldnet  $LIBS"
11882 cat >conftest.$ac_ext <<_ACEOF
11883 /* confdefs.h.  */
11884 _ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h.  */
11888
11889 /* Override any gcc2 internal prototype to avoid an error.  */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 /* We use char because int might match the return type of a gcc2
11894    builtin and then its argument prototype would still apply.  */
11895 char dnet_ntoa ();
11896 int
11897 main ()
11898 {
11899 dnet_ntoa ();
11900   ;
11901   return 0;
11902 }
11903 _ACEOF
11904 rm -f conftest.$ac_objext conftest$ac_exeext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11906   (eval $ac_link) 2>conftest.er1
11907   ac_status=$?
11908   grep -v '^ *+' conftest.er1 >conftest.err
11909   rm -f conftest.er1
11910   cat conftest.err >&5
11911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912   (exit $ac_status); } &&
11913          { ac_try='test -z "$ac_c_werror_flag"
11914                          || test ! -s conftest.err'
11915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916   (eval $ac_try) 2>&5
11917   ac_status=$?
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); }; } &&
11920          { ac_try='test -s conftest$ac_exeext'
11921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922   (eval $ac_try) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); }; }; then
11926   ac_cv_lib_dnet_dnet_ntoa=yes
11927 else
11928   echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11930
11931 ac_cv_lib_dnet_dnet_ntoa=no
11932 fi
11933 rm -f conftest.err conftest.$ac_objext \
11934       conftest$ac_exeext conftest.$ac_ext
11935 LIBS=$ac_check_lib_save_LIBS
11936 fi
11937 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11938 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11939 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11940   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11941 fi
11942
11943     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11944       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11945 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11946 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11947   echo $ECHO_N "(cached) $ECHO_C" >&6
11948 else
11949   ac_check_lib_save_LIBS=$LIBS
11950 LIBS="-ldnet_stub  $LIBS"
11951 cat >conftest.$ac_ext <<_ACEOF
11952 /* confdefs.h.  */
11953 _ACEOF
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h.  */
11957
11958 /* Override any gcc2 internal prototype to avoid an error.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 /* We use char because int might match the return type of a gcc2
11963    builtin and then its argument prototype would still apply.  */
11964 char dnet_ntoa ();
11965 int
11966 main ()
11967 {
11968 dnet_ntoa ();
11969   ;
11970   return 0;
11971 }
11972 _ACEOF
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975   (eval $ac_link) 2>conftest.er1
11976   ac_status=$?
11977   grep -v '^ *+' conftest.er1 >conftest.err
11978   rm -f conftest.er1
11979   cat conftest.err >&5
11980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11981   (exit $ac_status); } &&
11982          { ac_try='test -z "$ac_c_werror_flag"
11983                          || test ! -s conftest.err'
11984   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11985   (eval $ac_try) 2>&5
11986   ac_status=$?
11987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988   (exit $ac_status); }; } &&
11989          { ac_try='test -s conftest$ac_exeext'
11990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11991   (eval $ac_try) 2>&5
11992   ac_status=$?
11993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994   (exit $ac_status); }; }; then
11995   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_cv_lib_dnet_stub_dnet_ntoa=no
12001 fi
12002 rm -f conftest.err conftest.$ac_objext \
12003       conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12005 fi
12006 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12007 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12008 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12009   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12010 fi
12011
12012     fi
12013 fi
12014 rm -f conftest.err conftest.$ac_objext \
12015       conftest$ac_exeext conftest.$ac_ext
12016     LIBS="$ac_xsave_LIBS"
12017
12018     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12019     # to get the SysV transport functions.
12020     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12021     # needs -lnsl.
12022     # The nsl library prevents programs from opening the X display
12023     # on Irix 5.2, according to T.E. Dickey.
12024     # The functions gethostbyname, getservbyname, and inet_addr are
12025     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12026     echo "$as_me:$LINENO: checking for gethostbyname" >&5
12027 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12028 if test "${ac_cv_func_gethostbyname+set}" = set; then
12029   echo $ECHO_N "(cached) $ECHO_C" >&6
12030 else
12031   cat >conftest.$ac_ext <<_ACEOF
12032 /* confdefs.h.  */
12033 _ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h.  */
12037 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12038    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12039 #define gethostbyname innocuous_gethostbyname
12040
12041 /* System header to define __stub macros and hopefully few prototypes,
12042     which can conflict with char gethostbyname (); below.
12043     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12044     <limits.h> exists even on freestanding compilers.  */
12045
12046 #ifdef __STDC__
12047 # include <limits.h>
12048 #else
12049 # include <assert.h>
12050 #endif
12051
12052 #undef gethostbyname
12053
12054 /* Override any gcc2 internal prototype to avoid an error.  */
12055 #ifdef __cplusplus
12056 extern "C"
12057 {
12058 #endif
12059 /* We use char because int might match the return type of a gcc2
12060    builtin and then its argument prototype would still apply.  */
12061 char gethostbyname ();
12062 /* The GNU C library defines this for functions which it implements
12063     to always fail with ENOSYS.  Some functions are actually named
12064     something starting with __ and the normal name is an alias.  */
12065 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12066 choke me
12067 #else
12068 char (*f) () = gethostbyname;
12069 #endif
12070 #ifdef __cplusplus
12071 }
12072 #endif
12073
12074 int
12075 main ()
12076 {
12077 return f != gethostbyname;
12078   ;
12079   return 0;
12080 }
12081 _ACEOF
12082 rm -f conftest.$ac_objext conftest$ac_exeext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12084   (eval $ac_link) 2>conftest.er1
12085   ac_status=$?
12086   grep -v '^ *+' conftest.er1 >conftest.err
12087   rm -f conftest.er1
12088   cat conftest.err >&5
12089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090   (exit $ac_status); } &&
12091          { ac_try='test -z "$ac_c_werror_flag"
12092                          || test ! -s conftest.err'
12093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12094   (eval $ac_try) 2>&5
12095   ac_status=$?
12096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12097   (exit $ac_status); }; } &&
12098          { ac_try='test -s conftest$ac_exeext'
12099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12100   (eval $ac_try) 2>&5
12101   ac_status=$?
12102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103   (exit $ac_status); }; }; then
12104   ac_cv_func_gethostbyname=yes
12105 else
12106   echo "$as_me: failed program was:" >&5
12107 sed 's/^/| /' conftest.$ac_ext >&5
12108
12109 ac_cv_func_gethostbyname=no
12110 fi
12111 rm -f conftest.err conftest.$ac_objext \
12112       conftest$ac_exeext conftest.$ac_ext
12113 fi
12114 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12115 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12116
12117     if test $ac_cv_func_gethostbyname = no; then
12118       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12119 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12120 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 else
12123   ac_check_lib_save_LIBS=$LIBS
12124 LIBS="-lnsl  $LIBS"
12125 cat >conftest.$ac_ext <<_ACEOF
12126 /* confdefs.h.  */
12127 _ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h.  */
12131
12132 /* Override any gcc2 internal prototype to avoid an error.  */
12133 #ifdef __cplusplus
12134 extern "C"
12135 #endif
12136 /* We use char because int might match the return type of a gcc2
12137    builtin and then its argument prototype would still apply.  */
12138 char gethostbyname ();
12139 int
12140 main ()
12141 {
12142 gethostbyname ();
12143   ;
12144   return 0;
12145 }
12146 _ACEOF
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12149   (eval $ac_link) 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } &&
12156          { ac_try='test -z "$ac_c_werror_flag"
12157                          || test ! -s conftest.err'
12158   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159   (eval $ac_try) 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; } &&
12163          { ac_try='test -s conftest$ac_exeext'
12164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165   (eval $ac_try) 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; }; then
12169   ac_cv_lib_nsl_gethostbyname=yes
12170 else
12171   echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12173
12174 ac_cv_lib_nsl_gethostbyname=no
12175 fi
12176 rm -f conftest.err conftest.$ac_objext \
12177       conftest$ac_exeext conftest.$ac_ext
12178 LIBS=$ac_check_lib_save_LIBS
12179 fi
12180 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12181 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12182 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12183   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12184 fi
12185
12186       if test $ac_cv_lib_nsl_gethostbyname = no; then
12187         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12188 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12189 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12190   echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192   ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lbsd  $LIBS"
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h.  */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h.  */
12200
12201 /* Override any gcc2 internal prototype to avoid an error.  */
12202 #ifdef __cplusplus
12203 extern "C"
12204 #endif
12205 /* We use char because int might match the return type of a gcc2
12206    builtin and then its argument prototype would still apply.  */
12207 char gethostbyname ();
12208 int
12209 main ()
12210 {
12211 gethostbyname ();
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12218   (eval $ac_link) 2>conftest.er1
12219   ac_status=$?
12220   grep -v '^ *+' conftest.er1 >conftest.err
12221   rm -f conftest.er1
12222   cat conftest.err >&5
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -z "$ac_c_werror_flag"
12226                          || test ! -s conftest.err'
12227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228   (eval $ac_try) 2>&5
12229   ac_status=$?
12230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231   (exit $ac_status); }; } &&
12232          { ac_try='test -s conftest$ac_exeext'
12233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12234   (eval $ac_try) 2>&5
12235   ac_status=$?
12236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237   (exit $ac_status); }; }; then
12238   ac_cv_lib_bsd_gethostbyname=yes
12239 else
12240   echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12242
12243 ac_cv_lib_bsd_gethostbyname=no
12244 fi
12245 rm -f conftest.err conftest.$ac_objext \
12246       conftest$ac_exeext conftest.$ac_ext
12247 LIBS=$ac_check_lib_save_LIBS
12248 fi
12249 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12250 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12251 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12252   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12253 fi
12254
12255       fi
12256     fi
12257
12258     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12259     # socket/setsockopt and other routines are undefined under SCO ODT
12260     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12261     # on later versions), says Simon Leinen: it contains gethostby*
12262     # variants that don't use the name server (or something).  -lsocket
12263     # must be given before -lnsl if both are needed.  We assume that
12264     # if connect needs -lnsl, so does gethostbyname.
12265     echo "$as_me:$LINENO: checking for connect" >&5
12266 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12267 if test "${ac_cv_func_connect+set}" = set; then
12268   echo $ECHO_N "(cached) $ECHO_C" >&6
12269 else
12270   cat >conftest.$ac_ext <<_ACEOF
12271 /* confdefs.h.  */
12272 _ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h.  */
12276 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12277    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12278 #define connect innocuous_connect
12279
12280 /* System header to define __stub macros and hopefully few prototypes,
12281     which can conflict with char connect (); below.
12282     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12283     <limits.h> exists even on freestanding compilers.  */
12284
12285 #ifdef __STDC__
12286 # include <limits.h>
12287 #else
12288 # include <assert.h>
12289 #endif
12290
12291 #undef connect
12292
12293 /* Override any gcc2 internal prototype to avoid an error.  */
12294 #ifdef __cplusplus
12295 extern "C"
12296 {
12297 #endif
12298 /* We use char because int might match the return type of a gcc2
12299    builtin and then its argument prototype would still apply.  */
12300 char connect ();
12301 /* The GNU C library defines this for functions which it implements
12302     to always fail with ENOSYS.  Some functions are actually named
12303     something starting with __ and the normal name is an alias.  */
12304 #if defined (__stub_connect) || defined (__stub___connect)
12305 choke me
12306 #else
12307 char (*f) () = connect;
12308 #endif
12309 #ifdef __cplusplus
12310 }
12311 #endif
12312
12313 int
12314 main ()
12315 {
12316 return f != connect;
12317   ;
12318   return 0;
12319 }
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12323   (eval $ac_link) 2>conftest.er1
12324   ac_status=$?
12325   grep -v '^ *+' conftest.er1 >conftest.err
12326   rm -f conftest.er1
12327   cat conftest.err >&5
12328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329   (exit $ac_status); } &&
12330          { ac_try='test -z "$ac_c_werror_flag"
12331                          || test ! -s conftest.err'
12332   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333   (eval $ac_try) 2>&5
12334   ac_status=$?
12335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336   (exit $ac_status); }; } &&
12337          { ac_try='test -s conftest$ac_exeext'
12338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339   (eval $ac_try) 2>&5
12340   ac_status=$?
12341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342   (exit $ac_status); }; }; then
12343   ac_cv_func_connect=yes
12344 else
12345   echo "$as_me: failed program was:" >&5
12346 sed 's/^/| /' conftest.$ac_ext >&5
12347
12348 ac_cv_func_connect=no
12349 fi
12350 rm -f conftest.err conftest.$ac_objext \
12351       conftest$ac_exeext conftest.$ac_ext
12352 fi
12353 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12354 echo "${ECHO_T}$ac_cv_func_connect" >&6
12355
12356     if test $ac_cv_func_connect = no; then
12357       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12358 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12359 if test "${ac_cv_lib_socket_connect+set}" = set; then
12360   echo $ECHO_N "(cached) $ECHO_C" >&6
12361 else
12362   ac_check_lib_save_LIBS=$LIBS
12363 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h.  */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h.  */
12370
12371 /* Override any gcc2 internal prototype to avoid an error.  */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 /* We use char because int might match the return type of a gcc2
12376    builtin and then its argument prototype would still apply.  */
12377 char connect ();
12378 int
12379 main ()
12380 {
12381 connect ();
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 rm -f conftest.$ac_objext conftest$ac_exeext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12388   (eval $ac_link) 2>conftest.er1
12389   ac_status=$?
12390   grep -v '^ *+' conftest.er1 >conftest.err
12391   rm -f conftest.er1
12392   cat conftest.err >&5
12393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394   (exit $ac_status); } &&
12395          { ac_try='test -z "$ac_c_werror_flag"
12396                          || test ! -s conftest.err'
12397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12398   (eval $ac_try) 2>&5
12399   ac_status=$?
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); }; } &&
12402          { ac_try='test -s conftest$ac_exeext'
12403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12404   (eval $ac_try) 2>&5
12405   ac_status=$?
12406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407   (exit $ac_status); }; }; then
12408   ac_cv_lib_socket_connect=yes
12409 else
12410   echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413 ac_cv_lib_socket_connect=no
12414 fi
12415 rm -f conftest.err conftest.$ac_objext \
12416       conftest$ac_exeext conftest.$ac_ext
12417 LIBS=$ac_check_lib_save_LIBS
12418 fi
12419 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12420 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12421 if test $ac_cv_lib_socket_connect = yes; then
12422   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12423 fi
12424
12425     fi
12426
12427     # Guillermo Gomez says -lposix is necessary on A/UX.
12428     echo "$as_me:$LINENO: checking for remove" >&5
12429 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12430 if test "${ac_cv_func_remove+set}" = set; then
12431   echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433   cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12441 #define remove innocuous_remove
12442
12443 /* System header to define __stub macros and hopefully few prototypes,
12444     which can conflict with char remove (); below.
12445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12446     <limits.h> exists even on freestanding compilers.  */
12447
12448 #ifdef __STDC__
12449 # include <limits.h>
12450 #else
12451 # include <assert.h>
12452 #endif
12453
12454 #undef remove
12455
12456 /* Override any gcc2 internal prototype to avoid an error.  */
12457 #ifdef __cplusplus
12458 extern "C"
12459 {
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462    builtin and then its argument prototype would still apply.  */
12463 char remove ();
12464 /* The GNU C library defines this for functions which it implements
12465     to always fail with ENOSYS.  Some functions are actually named
12466     something starting with __ and the normal name is an alias.  */
12467 #if defined (__stub_remove) || defined (__stub___remove)
12468 choke me
12469 #else
12470 char (*f) () = remove;
12471 #endif
12472 #ifdef __cplusplus
12473 }
12474 #endif
12475
12476 int
12477 main ()
12478 {
12479 return f != remove;
12480   ;
12481   return 0;
12482 }
12483 _ACEOF
12484 rm -f conftest.$ac_objext conftest$ac_exeext
12485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12486   (eval $ac_link) 2>conftest.er1
12487   ac_status=$?
12488   grep -v '^ *+' conftest.er1 >conftest.err
12489   rm -f conftest.er1
12490   cat conftest.err >&5
12491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492   (exit $ac_status); } &&
12493          { ac_try='test -z "$ac_c_werror_flag"
12494                          || test ! -s conftest.err'
12495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12496   (eval $ac_try) 2>&5
12497   ac_status=$?
12498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499   (exit $ac_status); }; } &&
12500          { ac_try='test -s conftest$ac_exeext'
12501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12502   (eval $ac_try) 2>&5
12503   ac_status=$?
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); }; }; then
12506   ac_cv_func_remove=yes
12507 else
12508   echo "$as_me: failed program was:" >&5
12509 sed 's/^/| /' conftest.$ac_ext >&5
12510
12511 ac_cv_func_remove=no
12512 fi
12513 rm -f conftest.err conftest.$ac_objext \
12514       conftest$ac_exeext conftest.$ac_ext
12515 fi
12516 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12517 echo "${ECHO_T}$ac_cv_func_remove" >&6
12518
12519     if test $ac_cv_func_remove = no; then
12520       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12521 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12522 if test "${ac_cv_lib_posix_remove+set}" = set; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lposix  $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12528 /* confdefs.h.  */
12529 _ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h.  */
12533
12534 /* Override any gcc2 internal prototype to avoid an error.  */
12535 #ifdef __cplusplus
12536 extern "C"
12537 #endif
12538 /* We use char because int might match the return type of a gcc2
12539    builtin and then its argument prototype would still apply.  */
12540 char remove ();
12541 int
12542 main ()
12543 {
12544 remove ();
12545   ;
12546   return 0;
12547 }
12548 _ACEOF
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12551   (eval $ac_link) 2>conftest.er1
12552   ac_status=$?
12553   grep -v '^ *+' conftest.er1 >conftest.err
12554   rm -f conftest.er1
12555   cat conftest.err >&5
12556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557   (exit $ac_status); } &&
12558          { ac_try='test -z "$ac_c_werror_flag"
12559                          || test ! -s conftest.err'
12560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12561   (eval $ac_try) 2>&5
12562   ac_status=$?
12563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12564   (exit $ac_status); }; } &&
12565          { ac_try='test -s conftest$ac_exeext'
12566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12567   (eval $ac_try) 2>&5
12568   ac_status=$?
12569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570   (exit $ac_status); }; }; then
12571   ac_cv_lib_posix_remove=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576 ac_cv_lib_posix_remove=no
12577 fi
12578 rm -f conftest.err conftest.$ac_objext \
12579       conftest$ac_exeext conftest.$ac_ext
12580 LIBS=$ac_check_lib_save_LIBS
12581 fi
12582 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12583 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12584 if test $ac_cv_lib_posix_remove = yes; then
12585   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12586 fi
12587
12588     fi
12589
12590     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12591     echo "$as_me:$LINENO: checking for shmat" >&5
12592 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12593 if test "${ac_cv_func_shmat+set}" = set; then
12594   echo $ECHO_N "(cached) $ECHO_C" >&6
12595 else
12596   cat >conftest.$ac_ext <<_ACEOF
12597 /* confdefs.h.  */
12598 _ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h.  */
12602 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12603    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12604 #define shmat innocuous_shmat
12605
12606 /* System header to define __stub macros and hopefully few prototypes,
12607     which can conflict with char shmat (); below.
12608     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12609     <limits.h> exists even on freestanding compilers.  */
12610
12611 #ifdef __STDC__
12612 # include <limits.h>
12613 #else
12614 # include <assert.h>
12615 #endif
12616
12617 #undef shmat
12618
12619 /* Override any gcc2 internal prototype to avoid an error.  */
12620 #ifdef __cplusplus
12621 extern "C"
12622 {
12623 #endif
12624 /* We use char because int might match the return type of a gcc2
12625    builtin and then its argument prototype would still apply.  */
12626 char shmat ();
12627 /* The GNU C library defines this for functions which it implements
12628     to always fail with ENOSYS.  Some functions are actually named
12629     something starting with __ and the normal name is an alias.  */
12630 #if defined (__stub_shmat) || defined (__stub___shmat)
12631 choke me
12632 #else
12633 char (*f) () = shmat;
12634 #endif
12635 #ifdef __cplusplus
12636 }
12637 #endif
12638
12639 int
12640 main ()
12641 {
12642 return f != shmat;
12643   ;
12644   return 0;
12645 }
12646 _ACEOF
12647 rm -f conftest.$ac_objext conftest$ac_exeext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12649   (eval $ac_link) 2>conftest.er1
12650   ac_status=$?
12651   grep -v '^ *+' conftest.er1 >conftest.err
12652   rm -f conftest.er1
12653   cat conftest.err >&5
12654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655   (exit $ac_status); } &&
12656          { ac_try='test -z "$ac_c_werror_flag"
12657                          || test ! -s conftest.err'
12658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659   (eval $ac_try) 2>&5
12660   ac_status=$?
12661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662   (exit $ac_status); }; } &&
12663          { ac_try='test -s conftest$ac_exeext'
12664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665   (eval $ac_try) 2>&5
12666   ac_status=$?
12667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668   (exit $ac_status); }; }; then
12669   ac_cv_func_shmat=yes
12670 else
12671   echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12673
12674 ac_cv_func_shmat=no
12675 fi
12676 rm -f conftest.err conftest.$ac_objext \
12677       conftest$ac_exeext conftest.$ac_ext
12678 fi
12679 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12680 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12681
12682     if test $ac_cv_func_shmat = no; then
12683       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12684 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12685 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   ac_check_lib_save_LIBS=$LIBS
12689 LIBS="-lipc  $LIBS"
12690 cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 /* Override any gcc2 internal prototype to avoid an error.  */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 /* We use char because int might match the return type of a gcc2
12702    builtin and then its argument prototype would still apply.  */
12703 char shmat ();
12704 int
12705 main ()
12706 {
12707 shmat ();
12708   ;
12709   return 0;
12710 }
12711 _ACEOF
12712 rm -f conftest.$ac_objext conftest$ac_exeext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12714   (eval $ac_link) 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_c_werror_flag"
12722                          || test ! -s conftest.err'
12723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12724   (eval $ac_try) 2>&5
12725   ac_status=$?
12726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12727   (exit $ac_status); }; } &&
12728          { ac_try='test -s conftest$ac_exeext'
12729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12730   (eval $ac_try) 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; }; then
12734   ac_cv_lib_ipc_shmat=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739 ac_cv_lib_ipc_shmat=no
12740 fi
12741 rm -f conftest.err conftest.$ac_objext \
12742       conftest$ac_exeext conftest.$ac_ext
12743 LIBS=$ac_check_lib_save_LIBS
12744 fi
12745 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12746 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12747 if test $ac_cv_lib_ipc_shmat = yes; then
12748   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12749 fi
12750
12751     fi
12752   fi
12753
12754   # Check for libraries that X11R6 Xt/Xaw programs need.
12755   ac_save_LDFLAGS=$LDFLAGS
12756   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12757   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12758   # check for ICE first), but we must link in the order -lSM -lICE or
12759   # we get undefined symbols.  So assume we have SM if we have ICE.
12760   # These have to be linked with before -lX11, unlike the other
12761   # libraries we check for below, so use a different variable.
12762   # John Interrante, Karl Berry
12763   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12764 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12765 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12766   echo $ECHO_N "(cached) $ECHO_C" >&6
12767 else
12768   ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12770 cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776
12777 /* Override any gcc2 internal prototype to avoid an error.  */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 /* We use char because int might match the return type of a gcc2
12782    builtin and then its argument prototype would still apply.  */
12783 char IceConnectionNumber ();
12784 int
12785 main ()
12786 {
12787 IceConnectionNumber ();
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext conftest$ac_exeext
12793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12794   (eval $ac_link) 2>conftest.er1
12795   ac_status=$?
12796   grep -v '^ *+' conftest.er1 >conftest.err
12797   rm -f conftest.er1
12798   cat conftest.err >&5
12799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800   (exit $ac_status); } &&
12801          { ac_try='test -z "$ac_c_werror_flag"
12802                          || test ! -s conftest.err'
12803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12804   (eval $ac_try) 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; } &&
12808          { ac_try='test -s conftest$ac_exeext'
12809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810   (eval $ac_try) 2>&5
12811   ac_status=$?
12812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813   (exit $ac_status); }; }; then
12814   ac_cv_lib_ICE_IceConnectionNumber=yes
12815 else
12816   echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12818
12819 ac_cv_lib_ICE_IceConnectionNumber=no
12820 fi
12821 rm -f conftest.err conftest.$ac_objext \
12822       conftest$ac_exeext conftest.$ac_ext
12823 LIBS=$ac_check_lib_save_LIBS
12824 fi
12825 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12826 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12827 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12828   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12829 fi
12830
12831   LDFLAGS=$ac_save_LDFLAGS
12832
12833 fi
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863 for ac_header in \
12864         assert.h \
12865         fcntl.h \
12866         grp.h \
12867         pwd.h \
12868         libc.h \
12869         limits.h \
12870         stdarg.h \
12871         stdlib.h \
12872         stdint.h \
12873         string.h \
12874         termios.h \
12875         termcap.h \
12876         term.h \
12877         unistd.h \
12878         sys/bitypes.h \
12879         sys/byteorder.h \
12880         sys/ioctl.h \
12881         sys/select.h \
12882         sys/sockio.h \
12883         sys/time.h \
12884         sys/socket.h \
12885         arpa/nameser.h \
12886         resolv.h \
12887         mtio.h \
12888         sys/mtio.h \
12889         sys/tape.h \
12890         regex.h \
12891
12892 do
12893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12895   echo "$as_me:$LINENO: checking for $ac_header" >&5
12896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12897 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12898   echo $ECHO_N "(cached) $ECHO_C" >&6
12899 fi
12900 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12901 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12902 else
12903   # Is the header compilable?
12904 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12906 cat >conftest.$ac_ext <<_ACEOF
12907 /* confdefs.h.  */
12908 _ACEOF
12909 cat confdefs.h >>conftest.$ac_ext
12910 cat >>conftest.$ac_ext <<_ACEOF
12911 /* end confdefs.h.  */
12912 $ac_includes_default
12913 #include <$ac_header>
12914 _ACEOF
12915 rm -f conftest.$ac_objext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917   (eval $ac_compile) 2>conftest.er1
12918   ac_status=$?
12919   grep -v '^ *+' conftest.er1 >conftest.err
12920   rm -f conftest.er1
12921   cat conftest.err >&5
12922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923   (exit $ac_status); } &&
12924          { ac_try='test -z "$ac_c_werror_flag"
12925                          || test ! -s conftest.err'
12926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927   (eval $ac_try) 2>&5
12928   ac_status=$?
12929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12930   (exit $ac_status); }; } &&
12931          { ac_try='test -s conftest.$ac_objext'
12932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933   (eval $ac_try) 2>&5
12934   ac_status=$?
12935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936   (exit $ac_status); }; }; then
12937   ac_header_compiler=yes
12938 else
12939   echo "$as_me: failed program was:" >&5
12940 sed 's/^/| /' conftest.$ac_ext >&5
12941
12942 ac_header_compiler=no
12943 fi
12944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12945 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12946 echo "${ECHO_T}$ac_header_compiler" >&6
12947
12948 # Is the header present?
12949 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12950 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12951 cat >conftest.$ac_ext <<_ACEOF
12952 /* confdefs.h.  */
12953 _ACEOF
12954 cat confdefs.h >>conftest.$ac_ext
12955 cat >>conftest.$ac_ext <<_ACEOF
12956 /* end confdefs.h.  */
12957 #include <$ac_header>
12958 _ACEOF
12959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12960   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } >/dev/null; then
12967   if test -s conftest.err; then
12968     ac_cpp_err=$ac_c_preproc_warn_flag
12969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12970   else
12971     ac_cpp_err=
12972   fi
12973 else
12974   ac_cpp_err=yes
12975 fi
12976 if test -z "$ac_cpp_err"; then
12977   ac_header_preproc=yes
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982   ac_header_preproc=no
12983 fi
12984 rm -f conftest.err conftest.$ac_ext
12985 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12986 echo "${ECHO_T}$ac_header_preproc" >&6
12987
12988 # So?  What about this header?
12989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12990   yes:no: )
12991     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12995     ac_header_preproc=yes
12996     ;;
12997   no:yes:* )
12998     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13000     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13001 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13002     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13004     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13005 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13006     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13008     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13010     (
13011       cat <<\_ASBOX
13012 ## ------------------------------------------ ##
13013 ## Report this to the AC_PACKAGE_NAME lists.  ##
13014 ## ------------------------------------------ ##
13015 _ASBOX
13016     ) |
13017       sed "s/^/$as_me: WARNING:     /" >&2
13018     ;;
13019 esac
13020 echo "$as_me:$LINENO: checking for $ac_header" >&5
13021 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13023   echo $ECHO_N "(cached) $ECHO_C" >&6
13024 else
13025   eval "$as_ac_Header=\$ac_header_preproc"
13026 fi
13027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13028 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13029
13030 fi
13031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13032   cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13034 _ACEOF
13035
13036 fi
13037
13038 done
13039
13040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13042 if test "${ac_cv_header_stdc+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   cat >conftest.$ac_ext <<_ACEOF
13046 /* confdefs.h.  */
13047 _ACEOF
13048 cat confdefs.h >>conftest.$ac_ext
13049 cat >>conftest.$ac_ext <<_ACEOF
13050 /* end confdefs.h.  */
13051 #include <stdlib.h>
13052 #include <stdarg.h>
13053 #include <string.h>
13054 #include <float.h>
13055
13056 int
13057 main ()
13058 {
13059
13060   ;
13061   return 0;
13062 }
13063 _ACEOF
13064 rm -f conftest.$ac_objext
13065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13066   (eval $ac_compile) 2>conftest.er1
13067   ac_status=$?
13068   grep -v '^ *+' conftest.er1 >conftest.err
13069   rm -f conftest.er1
13070   cat conftest.err >&5
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); } &&
13073          { ac_try='test -z "$ac_c_werror_flag"
13074                          || test ! -s conftest.err'
13075   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13076   (eval $ac_try) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); }; } &&
13080          { ac_try='test -s conftest.$ac_objext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_header_stdc=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 ac_cv_header_stdc=no
13092 fi
13093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13094
13095 if test $ac_cv_header_stdc = yes; then
13096   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13097   cat >conftest.$ac_ext <<_ACEOF
13098 /* confdefs.h.  */
13099 _ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h.  */
13103 #include <string.h>
13104
13105 _ACEOF
13106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13107   $EGREP "memchr" >/dev/null 2>&1; then
13108   :
13109 else
13110   ac_cv_header_stdc=no
13111 fi
13112 rm -f conftest*
13113
13114 fi
13115
13116 if test $ac_cv_header_stdc = yes; then
13117   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13118   cat >conftest.$ac_ext <<_ACEOF
13119 /* confdefs.h.  */
13120 _ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h.  */
13124 #include <stdlib.h>
13125
13126 _ACEOF
13127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13128   $EGREP "free" >/dev/null 2>&1; then
13129   :
13130 else
13131   ac_cv_header_stdc=no
13132 fi
13133 rm -f conftest*
13134
13135 fi
13136
13137 if test $ac_cv_header_stdc = yes; then
13138   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13139   if test "$cross_compiling" = yes; then
13140   :
13141 else
13142   cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h.  */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h.  */
13148 #include <ctype.h>
13149 #if ((' ' & 0x0FF) == 0x020)
13150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13152 #else
13153 # define ISLOWER(c) \
13154                    (('a' <= (c) && (c) <= 'i') \
13155                      || ('j' <= (c) && (c) <= 'r') \
13156                      || ('s' <= (c) && (c) <= 'z'))
13157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13158 #endif
13159
13160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13161 int
13162 main ()
13163 {
13164   int i;
13165   for (i = 0; i < 256; i++)
13166     if (XOR (islower (i), ISLOWER (i))
13167         || toupper (i) != TOUPPER (i))
13168       exit(2);
13169   exit (0);
13170 }
13171 _ACEOF
13172 rm -f conftest$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174   (eval $ac_link) 2>&5
13175   ac_status=$?
13176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179   (eval $ac_try) 2>&5
13180   ac_status=$?
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); }; }; then
13183   :
13184 else
13185   echo "$as_me: program exited with status $ac_status" >&5
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13188
13189 ( exit $ac_status )
13190 ac_cv_header_stdc=no
13191 fi
13192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13193 fi
13194 fi
13195 fi
13196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13198 if test $ac_cv_header_stdc = yes; then
13199
13200 cat >>confdefs.h <<\_ACEOF
13201 #define STDC_HEADERS 1
13202 _ACEOF
13203
13204 fi
13205
13206 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13207 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13208 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13209   echo $ECHO_N "(cached) $ECHO_C" >&6
13210 else
13211   cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217 #include <sys/types.h>
13218 int
13219 main ()
13220 {
13221 return makedev(0, 0);
13222   ;
13223   return 0;
13224 }
13225 _ACEOF
13226 rm -f conftest.$ac_objext conftest$ac_exeext
13227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13228   (eval $ac_link) 2>conftest.er1
13229   ac_status=$?
13230   grep -v '^ *+' conftest.er1 >conftest.err
13231   rm -f conftest.er1
13232   cat conftest.err >&5
13233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234   (exit $ac_status); } &&
13235          { ac_try='test -z "$ac_c_werror_flag"
13236                          || test ! -s conftest.err'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; } &&
13242          { ac_try='test -s conftest$ac_exeext'
13243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244   (eval $ac_try) 2>&5
13245   ac_status=$?
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); }; }; then
13248   ac_cv_header_sys_types_h_makedev=yes
13249 else
13250   echo "$as_me: failed program was:" >&5
13251 sed 's/^/| /' conftest.$ac_ext >&5
13252
13253 ac_cv_header_sys_types_h_makedev=no
13254 fi
13255 rm -f conftest.err conftest.$ac_objext \
13256       conftest$ac_exeext conftest.$ac_ext
13257
13258 fi
13259 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13260 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13261
13262 if test $ac_cv_header_sys_types_h_makedev = no; then
13263 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13264   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13265 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13266 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13267   echo $ECHO_N "(cached) $ECHO_C" >&6
13268 fi
13269 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13270 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13271 else
13272   # Is the header compilable?
13273 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13274 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h.  */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h.  */
13281 $ac_includes_default
13282 #include <sys/mkdev.h>
13283 _ACEOF
13284 rm -f conftest.$ac_objext
13285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13286   (eval $ac_compile) 2>conftest.er1
13287   ac_status=$?
13288   grep -v '^ *+' conftest.er1 >conftest.err
13289   rm -f conftest.er1
13290   cat conftest.err >&5
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } &&
13293          { ac_try='test -z "$ac_c_werror_flag"
13294                          || test ! -s conftest.err'
13295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13296   (eval $ac_try) 2>&5
13297   ac_status=$?
13298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299   (exit $ac_status); }; } &&
13300          { ac_try='test -s conftest.$ac_objext'
13301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13302   (eval $ac_try) 2>&5
13303   ac_status=$?
13304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305   (exit $ac_status); }; }; then
13306   ac_header_compiler=yes
13307 else
13308   echo "$as_me: failed program was:" >&5
13309 sed 's/^/| /' conftest.$ac_ext >&5
13310
13311 ac_header_compiler=no
13312 fi
13313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13314 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13315 echo "${ECHO_T}$ac_header_compiler" >&6
13316
13317 # Is the header present?
13318 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13319 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13320 cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326 #include <sys/mkdev.h>
13327 _ACEOF
13328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13330   ac_status=$?
13331   grep -v '^ *+' conftest.er1 >conftest.err
13332   rm -f conftest.er1
13333   cat conftest.err >&5
13334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335   (exit $ac_status); } >/dev/null; then
13336   if test -s conftest.err; then
13337     ac_cpp_err=$ac_c_preproc_warn_flag
13338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13339   else
13340     ac_cpp_err=
13341   fi
13342 else
13343   ac_cpp_err=yes
13344 fi
13345 if test -z "$ac_cpp_err"; then
13346   ac_header_preproc=yes
13347 else
13348   echo "$as_me: failed program was:" >&5
13349 sed 's/^/| /' conftest.$ac_ext >&5
13350
13351   ac_header_preproc=no
13352 fi
13353 rm -f conftest.err conftest.$ac_ext
13354 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13355 echo "${ECHO_T}$ac_header_preproc" >&6
13356
13357 # So?  What about this header?
13358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13359   yes:no: )
13360     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13361 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13362     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13363 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13364     ac_header_preproc=yes
13365     ;;
13366   no:yes:* )
13367     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13368 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13369     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13370 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13371     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13372 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13373     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13374 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13375     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13376 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13377     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13378 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13379     (
13380       cat <<\_ASBOX
13381 ## ------------------------------------------ ##
13382 ## Report this to the AC_PACKAGE_NAME lists.  ##
13383 ## ------------------------------------------ ##
13384 _ASBOX
13385     ) |
13386       sed "s/^/$as_me: WARNING:     /" >&2
13387     ;;
13388 esac
13389 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13390 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13391 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13392   echo $ECHO_N "(cached) $ECHO_C" >&6
13393 else
13394   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13395 fi
13396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13397 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13398
13399 fi
13400 if test $ac_cv_header_sys_mkdev_h = yes; then
13401
13402 cat >>confdefs.h <<\_ACEOF
13403 #define MAJOR_IN_MKDEV 1
13404 _ACEOF
13405
13406 fi
13407
13408
13409
13410   if test $ac_cv_header_sys_mkdev_h = no; then
13411     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13412   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13413 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13414 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13415   echo $ECHO_N "(cached) $ECHO_C" >&6
13416 fi
13417 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13418 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13419 else
13420   # Is the header compilable?
13421 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13422 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
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 $ac_includes_default
13430 #include <sys/sysmacros.h>
13431 _ACEOF
13432 rm -f conftest.$ac_objext
13433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13434   (eval $ac_compile) 2>conftest.er1
13435   ac_status=$?
13436   grep -v '^ *+' conftest.er1 >conftest.err
13437   rm -f conftest.er1
13438   cat conftest.err >&5
13439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440   (exit $ac_status); } &&
13441          { ac_try='test -z "$ac_c_werror_flag"
13442                          || test ! -s conftest.err'
13443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444   (eval $ac_try) 2>&5
13445   ac_status=$?
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); }; } &&
13448          { ac_try='test -s conftest.$ac_objext'
13449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13450   (eval $ac_try) 2>&5
13451   ac_status=$?
13452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453   (exit $ac_status); }; }; then
13454   ac_header_compiler=yes
13455 else
13456   echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13458
13459 ac_header_compiler=no
13460 fi
13461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 echo "${ECHO_T}$ac_header_compiler" >&6
13464
13465 # Is the header present?
13466 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13467 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13469 /* confdefs.h.  */
13470 _ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h.  */
13474 #include <sys/sysmacros.h>
13475 _ACEOF
13476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13478   ac_status=$?
13479   grep -v '^ *+' conftest.er1 >conftest.err
13480   rm -f conftest.er1
13481   cat conftest.err >&5
13482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483   (exit $ac_status); } >/dev/null; then
13484   if test -s conftest.err; then
13485     ac_cpp_err=$ac_c_preproc_warn_flag
13486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13487   else
13488     ac_cpp_err=
13489   fi
13490 else
13491   ac_cpp_err=yes
13492 fi
13493 if test -z "$ac_cpp_err"; then
13494   ac_header_preproc=yes
13495 else
13496   echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13498
13499   ac_header_preproc=no
13500 fi
13501 rm -f conftest.err conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13503 echo "${ECHO_T}$ac_header_preproc" >&6
13504
13505 # So?  What about this header?
13506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507   yes:no: )
13508     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13509 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13511 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13512     ac_header_preproc=yes
13513     ;;
13514   no:yes:* )
13515     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13516 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13517     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13518 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13519     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13520 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13521     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13522 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13523     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13524 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13525     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13526 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13527     (
13528       cat <<\_ASBOX
13529 ## ------------------------------------------ ##
13530 ## Report this to the AC_PACKAGE_NAME lists.  ##
13531 ## ------------------------------------------ ##
13532 _ASBOX
13533     ) |
13534       sed "s/^/$as_me: WARNING:     /" >&2
13535     ;;
13536 esac
13537 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13538 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13539 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13540   echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13543 fi
13544 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13545 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13546
13547 fi
13548 if test $ac_cv_header_sys_sysmacros_h = yes; then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define MAJOR_IN_SYSMACROS 1
13552 _ACEOF
13553
13554 fi
13555
13556
13557   fi
13558 fi
13559
13560
13561
13562
13563
13564
13565 ac_header_dirent=no
13566 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13567   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13568 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13569 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13571   echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573   cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h.  */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h.  */
13579 #include <sys/types.h>
13580 #include <$ac_hdr>
13581
13582 int
13583 main ()
13584 {
13585 if ((DIR *) 0)
13586 return 0;
13587   ;
13588   return 0;
13589 }
13590 _ACEOF
13591 rm -f conftest.$ac_objext
13592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13593   (eval $ac_compile) 2>conftest.er1
13594   ac_status=$?
13595   grep -v '^ *+' conftest.er1 >conftest.err
13596   rm -f conftest.er1
13597   cat conftest.err >&5
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); } &&
13600          { ac_try='test -z "$ac_c_werror_flag"
13601                          || test ! -s conftest.err'
13602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603   (eval $ac_try) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; } &&
13607          { ac_try='test -s conftest.$ac_objext'
13608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13609   (eval $ac_try) 2>&5
13610   ac_status=$?
13611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612   (exit $ac_status); }; }; then
13613   eval "$as_ac_Header=yes"
13614 else
13615   echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13617
13618 eval "$as_ac_Header=no"
13619 fi
13620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13621 fi
13622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13625   cat >>confdefs.h <<_ACEOF
13626 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13627 _ACEOF
13628
13629 ac_header_dirent=$ac_hdr; break
13630 fi
13631
13632 done
13633 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13634 if test $ac_header_dirent = dirent.h; then
13635   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13636 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13637 if test "${ac_cv_search_opendir+set}" = set; then
13638   echo $ECHO_N "(cached) $ECHO_C" >&6
13639 else
13640   ac_func_search_save_LIBS=$LIBS
13641 ac_cv_search_opendir=no
13642 cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648
13649 /* Override any gcc2 internal prototype to avoid an error.  */
13650 #ifdef __cplusplus
13651 extern "C"
13652 #endif
13653 /* We use char because int might match the return type of a gcc2
13654    builtin and then its argument prototype would still apply.  */
13655 char opendir ();
13656 int
13657 main ()
13658 {
13659 opendir ();
13660   ;
13661   return 0;
13662 }
13663 _ACEOF
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666   (eval $ac_link) 2>conftest.er1
13667   ac_status=$?
13668   grep -v '^ *+' conftest.er1 >conftest.err
13669   rm -f conftest.er1
13670   cat conftest.err >&5
13671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672   (exit $ac_status); } &&
13673          { ac_try='test -z "$ac_c_werror_flag"
13674                          || test ! -s conftest.err'
13675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13676   (eval $ac_try) 2>&5
13677   ac_status=$?
13678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679   (exit $ac_status); }; } &&
13680          { ac_try='test -s conftest$ac_exeext'
13681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13682   (eval $ac_try) 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; }; then
13686   ac_cv_search_opendir="none required"
13687 else
13688   echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13690
13691 fi
13692 rm -f conftest.err conftest.$ac_objext \
13693       conftest$ac_exeext conftest.$ac_ext
13694 if test "$ac_cv_search_opendir" = no; then
13695   for ac_lib in dir; do
13696     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13697     cat >conftest.$ac_ext <<_ACEOF
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703
13704 /* Override any gcc2 internal prototype to avoid an error.  */
13705 #ifdef __cplusplus
13706 extern "C"
13707 #endif
13708 /* We use char because int might match the return type of a gcc2
13709    builtin and then its argument prototype would still apply.  */
13710 char opendir ();
13711 int
13712 main ()
13713 {
13714 opendir ();
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 rm -f conftest.$ac_objext conftest$ac_exeext
13720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13721   (eval $ac_link) 2>conftest.er1
13722   ac_status=$?
13723   grep -v '^ *+' conftest.er1 >conftest.err
13724   rm -f conftest.er1
13725   cat conftest.err >&5
13726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13727   (exit $ac_status); } &&
13728          { ac_try='test -z "$ac_c_werror_flag"
13729                          || test ! -s conftest.err'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; } &&
13735          { ac_try='test -s conftest$ac_exeext'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; }; then
13741   ac_cv_search_opendir="-l$ac_lib"
13742 break
13743 else
13744   echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13746
13747 fi
13748 rm -f conftest.err conftest.$ac_objext \
13749       conftest$ac_exeext conftest.$ac_ext
13750   done
13751 fi
13752 LIBS=$ac_func_search_save_LIBS
13753 fi
13754 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13755 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13756 if test "$ac_cv_search_opendir" != no; then
13757   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13758
13759 fi
13760
13761 else
13762   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13763 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13764 if test "${ac_cv_search_opendir+set}" = set; then
13765   echo $ECHO_N "(cached) $ECHO_C" >&6
13766 else
13767   ac_func_search_save_LIBS=$LIBS
13768 ac_cv_search_opendir=no
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h.  */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h.  */
13775
13776 /* Override any gcc2 internal prototype to avoid an error.  */
13777 #ifdef __cplusplus
13778 extern "C"
13779 #endif
13780 /* We use char because int might match the return type of a gcc2
13781    builtin and then its argument prototype would still apply.  */
13782 char opendir ();
13783 int
13784 main ()
13785 {
13786 opendir ();
13787   ;
13788   return 0;
13789 }
13790 _ACEOF
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793   (eval $ac_link) 2>conftest.er1
13794   ac_status=$?
13795   grep -v '^ *+' conftest.er1 >conftest.err
13796   rm -f conftest.er1
13797   cat conftest.err >&5
13798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799   (exit $ac_status); } &&
13800          { ac_try='test -z "$ac_c_werror_flag"
13801                          || test ! -s conftest.err'
13802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803   (eval $ac_try) 2>&5
13804   ac_status=$?
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); }; } &&
13807          { ac_try='test -s conftest$ac_exeext'
13808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809   (eval $ac_try) 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   ac_cv_search_opendir="none required"
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13817
13818 fi
13819 rm -f conftest.err conftest.$ac_objext \
13820       conftest$ac_exeext conftest.$ac_ext
13821 if test "$ac_cv_search_opendir" = no; then
13822   for ac_lib in x; do
13823     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13824     cat >conftest.$ac_ext <<_ACEOF
13825 /* confdefs.h.  */
13826 _ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h.  */
13830
13831 /* Override any gcc2 internal prototype to avoid an error.  */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 /* We use char because int might match the return type of a gcc2
13836    builtin and then its argument prototype would still apply.  */
13837 char opendir ();
13838 int
13839 main ()
13840 {
13841 opendir ();
13842   ;
13843   return 0;
13844 }
13845 _ACEOF
13846 rm -f conftest.$ac_objext conftest$ac_exeext
13847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13848   (eval $ac_link) 2>conftest.er1
13849   ac_status=$?
13850   grep -v '^ *+' conftest.er1 >conftest.err
13851   rm -f conftest.er1
13852   cat conftest.err >&5
13853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854   (exit $ac_status); } &&
13855          { ac_try='test -z "$ac_c_werror_flag"
13856                          || test ! -s conftest.err'
13857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13858   (eval $ac_try) 2>&5
13859   ac_status=$?
13860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); }; } &&
13862          { ac_try='test -s conftest$ac_exeext'
13863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13864   (eval $ac_try) 2>&5
13865   ac_status=$?
13866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13867   (exit $ac_status); }; }; then
13868   ac_cv_search_opendir="-l$ac_lib"
13869 break
13870 else
13871   echo "$as_me: failed program was:" >&5
13872 sed 's/^/| /' conftest.$ac_ext >&5
13873
13874 fi
13875 rm -f conftest.err conftest.$ac_objext \
13876       conftest$ac_exeext conftest.$ac_ext
13877   done
13878 fi
13879 LIBS=$ac_func_search_save_LIBS
13880 fi
13881 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13882 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13883 if test "$ac_cv_search_opendir" != no; then
13884   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13885
13886 fi
13887
13888 fi
13889
13890 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13891 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13892 if test "${ac_cv_header_stat_broken+set}" = set; then
13893   echo $ECHO_N "(cached) $ECHO_C" >&6
13894 else
13895   cat >conftest.$ac_ext <<_ACEOF
13896 /* confdefs.h.  */
13897 _ACEOF
13898 cat confdefs.h >>conftest.$ac_ext
13899 cat >>conftest.$ac_ext <<_ACEOF
13900 /* end confdefs.h.  */
13901 #include <sys/types.h>
13902 #include <sys/stat.h>
13903
13904 #if defined(S_ISBLK) && defined(S_IFDIR)
13905 # if S_ISBLK (S_IFDIR)
13906 You lose.
13907 # endif
13908 #endif
13909
13910 #if defined(S_ISBLK) && defined(S_IFCHR)
13911 # if S_ISBLK (S_IFCHR)
13912 You lose.
13913 # endif
13914 #endif
13915
13916 #if defined(S_ISLNK) && defined(S_IFREG)
13917 # if S_ISLNK (S_IFREG)
13918 You lose.
13919 # endif
13920 #endif
13921
13922 #if defined(S_ISSOCK) && defined(S_IFREG)
13923 # if S_ISSOCK (S_IFREG)
13924 You lose.
13925 # endif
13926 #endif
13927
13928 _ACEOF
13929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13930   $EGREP "You lose" >/dev/null 2>&1; then
13931   ac_cv_header_stat_broken=yes
13932 else
13933   ac_cv_header_stat_broken=no
13934 fi
13935 rm -f conftest*
13936
13937 fi
13938 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13939 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13940 if test $ac_cv_header_stat_broken = yes; then
13941
13942 cat >>confdefs.h <<\_ACEOF
13943 #define STAT_MACROS_BROKEN 1
13944 _ACEOF
13945
13946 fi
13947
13948 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13949 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13950 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   cat >conftest.$ac_ext <<_ACEOF
13954 /* confdefs.h.  */
13955 _ACEOF
13956 cat confdefs.h >>conftest.$ac_ext
13957 cat >>conftest.$ac_ext <<_ACEOF
13958 /* end confdefs.h.  */
13959 #include <sys/types.h>
13960 #include <sys/wait.h>
13961 #ifndef WEXITSTATUS
13962 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13963 #endif
13964 #ifndef WIFEXITED
13965 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13966 #endif
13967
13968 int
13969 main ()
13970 {
13971   int s;
13972   wait (&s);
13973   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13974   ;
13975   return 0;
13976 }
13977 _ACEOF
13978 rm -f conftest.$ac_objext
13979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13980   (eval $ac_compile) 2>conftest.er1
13981   ac_status=$?
13982   grep -v '^ *+' conftest.er1 >conftest.err
13983   rm -f conftest.er1
13984   cat conftest.err >&5
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); } &&
13987          { ac_try='test -z "$ac_c_werror_flag"
13988                          || test ! -s conftest.err'
13989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990   (eval $ac_try) 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; } &&
13994          { ac_try='test -s conftest.$ac_objext'
13995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996   (eval $ac_try) 2>&5
13997   ac_status=$?
13998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999   (exit $ac_status); }; }; then
14000   ac_cv_header_sys_wait_h=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005 ac_cv_header_sys_wait_h=no
14006 fi
14007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14008 fi
14009 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14010 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14011 if test $ac_cv_header_sys_wait_h = yes; then
14012
14013 cat >>confdefs.h <<\_ACEOF
14014 #define HAVE_SYS_WAIT_H 1
14015 _ACEOF
14016
14017 fi
14018
14019 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14020 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14021 if test "${ac_cv_header_time+set}" = set; then
14022   echo $ECHO_N "(cached) $ECHO_C" >&6
14023 else
14024   cat >conftest.$ac_ext <<_ACEOF
14025 /* confdefs.h.  */
14026 _ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h.  */
14030 #include <sys/types.h>
14031 #include <sys/time.h>
14032 #include <time.h>
14033
14034 int
14035 main ()
14036 {
14037 if ((struct tm *) 0)
14038 return 0;
14039   ;
14040   return 0;
14041 }
14042 _ACEOF
14043 rm -f conftest.$ac_objext
14044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14045   (eval $ac_compile) 2>conftest.er1
14046   ac_status=$?
14047   grep -v '^ *+' conftest.er1 >conftest.err
14048   rm -f conftest.er1
14049   cat conftest.err >&5
14050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14051   (exit $ac_status); } &&
14052          { ac_try='test -z "$ac_c_werror_flag"
14053                          || test ! -s conftest.err'
14054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055   (eval $ac_try) 2>&5
14056   ac_status=$?
14057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058   (exit $ac_status); }; } &&
14059          { ac_try='test -s conftest.$ac_objext'
14060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061   (eval $ac_try) 2>&5
14062   ac_status=$?
14063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064   (exit $ac_status); }; }; then
14065   ac_cv_header_time=yes
14066 else
14067   echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14069
14070 ac_cv_header_time=no
14071 fi
14072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14073 fi
14074 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14075 echo "${ECHO_T}$ac_cv_header_time" >&6
14076 if test $ac_cv_header_time = yes; then
14077
14078 cat >>confdefs.h <<\_ACEOF
14079 #define TIME_WITH_SYS_TIME 1
14080 _ACEOF
14081
14082 fi
14083
14084
14085 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14086 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14087 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14088   echo $ECHO_N "(cached) $ECHO_C" >&6
14089 else
14090   cat >conftest.$ac_ext <<_ACEOF
14091 /* confdefs.h.  */
14092 _ACEOF
14093 cat confdefs.h >>conftest.$ac_ext
14094 cat >>conftest.$ac_ext <<_ACEOF
14095 /* end confdefs.h.  */
14096 $ac_includes_default
14097 int
14098 main ()
14099 {
14100 static struct stat ac_aggr;
14101 if (ac_aggr.st_blksize)
14102 return 0;
14103   ;
14104   return 0;
14105 }
14106 _ACEOF
14107 rm -f conftest.$ac_objext
14108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14109   (eval $ac_compile) 2>conftest.er1
14110   ac_status=$?
14111   grep -v '^ *+' conftest.er1 >conftest.err
14112   rm -f conftest.er1
14113   cat conftest.err >&5
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } &&
14116          { ac_try='test -z "$ac_c_werror_flag"
14117                          || test ! -s conftest.err'
14118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119   (eval $ac_try) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }; } &&
14123          { ac_try='test -s conftest.$ac_objext'
14124   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125   (eval $ac_try) 2>&5
14126   ac_status=$?
14127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128   (exit $ac_status); }; }; then
14129   ac_cv_member_struct_stat_st_blksize=yes
14130 else
14131   echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14133
14134 cat >conftest.$ac_ext <<_ACEOF
14135 /* confdefs.h.  */
14136 _ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h.  */
14140 $ac_includes_default
14141 int
14142 main ()
14143 {
14144 static struct stat ac_aggr;
14145 if (sizeof ac_aggr.st_blksize)
14146 return 0;
14147   ;
14148   return 0;
14149 }
14150 _ACEOF
14151 rm -f conftest.$ac_objext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14153   (eval $ac_compile) 2>conftest.er1
14154   ac_status=$?
14155   grep -v '^ *+' conftest.er1 >conftest.err
14156   rm -f conftest.er1
14157   cat conftest.err >&5
14158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159   (exit $ac_status); } &&
14160          { ac_try='test -z "$ac_c_werror_flag"
14161                          || test ! -s conftest.err'
14162   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163   (eval $ac_try) 2>&5
14164   ac_status=$?
14165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166   (exit $ac_status); }; } &&
14167          { ac_try='test -s conftest.$ac_objext'
14168   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14169   (eval $ac_try) 2>&5
14170   ac_status=$?
14171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172   (exit $ac_status); }; }; then
14173   ac_cv_member_struct_stat_st_blksize=yes
14174 else
14175   echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14177
14178 ac_cv_member_struct_stat_st_blksize=no
14179 fi
14180 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14183 fi
14184 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14185 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14186 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14187
14188 cat >>confdefs.h <<_ACEOF
14189 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14190 _ACEOF
14191
14192
14193 cat >>confdefs.h <<\_ACEOF
14194 #define HAVE_ST_BLKSIZE 1
14195 _ACEOF
14196
14197 fi
14198
14199
14200 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14201 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14202 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 $ac_includes_default
14212 int
14213 main ()
14214 {
14215 static struct stat ac_aggr;
14216 if (ac_aggr.st_blocks)
14217 return 0;
14218   ;
14219   return 0;
14220 }
14221 _ACEOF
14222 rm -f conftest.$ac_objext
14223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14224   (eval $ac_compile) 2>conftest.er1
14225   ac_status=$?
14226   grep -v '^ *+' conftest.er1 >conftest.err
14227   rm -f conftest.er1
14228   cat conftest.err >&5
14229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230   (exit $ac_status); } &&
14231          { ac_try='test -z "$ac_c_werror_flag"
14232                          || test ! -s conftest.err'
14233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14234   (eval $ac_try) 2>&5
14235   ac_status=$?
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); }; } &&
14238          { ac_try='test -s conftest.$ac_objext'
14239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240   (eval $ac_try) 2>&5
14241   ac_status=$?
14242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243   (exit $ac_status); }; }; then
14244   ac_cv_member_struct_stat_st_blocks=yes
14245 else
14246   echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 cat >conftest.$ac_ext <<_ACEOF
14250 /* confdefs.h.  */
14251 _ACEOF
14252 cat confdefs.h >>conftest.$ac_ext
14253 cat >>conftest.$ac_ext <<_ACEOF
14254 /* end confdefs.h.  */
14255 $ac_includes_default
14256 int
14257 main ()
14258 {
14259 static struct stat ac_aggr;
14260 if (sizeof ac_aggr.st_blocks)
14261 return 0;
14262   ;
14263   return 0;
14264 }
14265 _ACEOF
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268   (eval $ac_compile) 2>conftest.er1
14269   ac_status=$?
14270   grep -v '^ *+' conftest.er1 >conftest.err
14271   rm -f conftest.er1
14272   cat conftest.err >&5
14273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274   (exit $ac_status); } &&
14275          { ac_try='test -z "$ac_c_werror_flag"
14276                          || test ! -s conftest.err'
14277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278   (eval $ac_try) 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; } &&
14282          { ac_try='test -s conftest.$ac_objext'
14283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284   (eval $ac_try) 2>&5
14285   ac_status=$?
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); }; }; then
14288   ac_cv_member_struct_stat_st_blocks=yes
14289 else
14290   echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14292
14293 ac_cv_member_struct_stat_st_blocks=no
14294 fi
14295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14296 fi
14297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14298 fi
14299 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14300 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14301 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14302
14303 cat >>confdefs.h <<_ACEOF
14304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14305 _ACEOF
14306
14307
14308 cat >>confdefs.h <<\_ACEOF
14309 #define HAVE_ST_BLOCKS 1
14310 _ACEOF
14311
14312 else
14313   case $LIBOBJS in
14314     "fileblocks.$ac_objext"   | \
14315   *" fileblocks.$ac_objext"   | \
14316     "fileblocks.$ac_objext "* | \
14317   *" fileblocks.$ac_objext "* ) ;;
14318   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14319 esac
14320
14321 fi
14322
14323
14324 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14325 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14326 if test "${ac_cv_struct_tm+set}" = set; then
14327   echo $ECHO_N "(cached) $ECHO_C" >&6
14328 else
14329   cat >conftest.$ac_ext <<_ACEOF
14330 /* confdefs.h.  */
14331 _ACEOF
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h.  */
14335 #include <sys/types.h>
14336 #include <time.h>
14337
14338 int
14339 main ()
14340 {
14341 struct tm *tp; tp->tm_sec;
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348   (eval $ac_compile) 2>conftest.er1
14349   ac_status=$?
14350   grep -v '^ *+' conftest.er1 >conftest.err
14351   rm -f conftest.er1
14352   cat conftest.err >&5
14353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354   (exit $ac_status); } &&
14355          { ac_try='test -z "$ac_c_werror_flag"
14356                          || test ! -s conftest.err'
14357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358   (eval $ac_try) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); }; } &&
14362          { ac_try='test -s conftest.$ac_objext'
14363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14364   (eval $ac_try) 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   ac_cv_struct_tm=time.h
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373 ac_cv_struct_tm=sys/time.h
14374 fi
14375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14376 fi
14377 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14378 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14379 if test $ac_cv_struct_tm = sys/time.h; then
14380
14381 cat >>confdefs.h <<\_ACEOF
14382 #define TM_IN_SYS_TIME 1
14383 _ACEOF
14384
14385 fi
14386
14387 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14388 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14389 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14390   echo $ECHO_N "(cached) $ECHO_C" >&6
14391 else
14392   cat >conftest.$ac_ext <<_ACEOF
14393 /* confdefs.h.  */
14394 _ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h.  */
14398 #include <sys/types.h>
14399 #include <$ac_cv_struct_tm>
14400
14401
14402 int
14403 main ()
14404 {
14405 static struct tm ac_aggr;
14406 if (ac_aggr.tm_zone)
14407 return 0;
14408   ;
14409   return 0;
14410 }
14411 _ACEOF
14412 rm -f conftest.$ac_objext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14414   (eval $ac_compile) 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } &&
14421          { ac_try='test -z "$ac_c_werror_flag"
14422                          || test ! -s conftest.err'
14423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424   (eval $ac_try) 2>&5
14425   ac_status=$?
14426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427   (exit $ac_status); }; } &&
14428          { ac_try='test -s conftest.$ac_objext'
14429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430   (eval $ac_try) 2>&5
14431   ac_status=$?
14432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433   (exit $ac_status); }; }; then
14434   ac_cv_member_struct_tm_tm_zone=yes
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h.  */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h.  */
14445 #include <sys/types.h>
14446 #include <$ac_cv_struct_tm>
14447
14448
14449 int
14450 main ()
14451 {
14452 static struct tm ac_aggr;
14453 if (sizeof ac_aggr.tm_zone)
14454 return 0;
14455   ;
14456   return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461   (eval $ac_compile) 2>conftest.er1
14462   ac_status=$?
14463   grep -v '^ *+' conftest.er1 >conftest.err
14464   rm -f conftest.er1
14465   cat conftest.err >&5
14466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467   (exit $ac_status); } &&
14468          { ac_try='test -z "$ac_c_werror_flag"
14469                          || test ! -s conftest.err'
14470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14471   (eval $ac_try) 2>&5
14472   ac_status=$?
14473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474   (exit $ac_status); }; } &&
14475          { ac_try='test -s conftest.$ac_objext'
14476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477   (eval $ac_try) 2>&5
14478   ac_status=$?
14479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480   (exit $ac_status); }; }; then
14481   ac_cv_member_struct_tm_tm_zone=yes
14482 else
14483   echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_cv_member_struct_tm_tm_zone=no
14487 fi
14488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14489 fi
14490 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14491 fi
14492 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14493 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14494 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14495
14496 cat >>confdefs.h <<_ACEOF
14497 #define HAVE_STRUCT_TM_TM_ZONE 1
14498 _ACEOF
14499
14500
14501 fi
14502
14503 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14504
14505 cat >>confdefs.h <<\_ACEOF
14506 #define HAVE_TM_ZONE 1
14507 _ACEOF
14508
14509 else
14510   echo "$as_me:$LINENO: checking for tzname" >&5
14511 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14512 if test "${ac_cv_var_tzname+set}" = set; then
14513   echo $ECHO_N "(cached) $ECHO_C" >&6
14514 else
14515   cat >conftest.$ac_ext <<_ACEOF
14516 /* confdefs.h.  */
14517 _ACEOF
14518 cat confdefs.h >>conftest.$ac_ext
14519 cat >>conftest.$ac_ext <<_ACEOF
14520 /* end confdefs.h.  */
14521 #include <time.h>
14522 #ifndef tzname /* For SGI.  */
14523 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14524 #endif
14525
14526 int
14527 main ()
14528 {
14529 atoi(*tzname);
14530   ;
14531   return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14536   (eval $ac_link) 2>conftest.er1
14537   ac_status=$?
14538   grep -v '^ *+' conftest.er1 >conftest.err
14539   rm -f conftest.er1
14540   cat conftest.err >&5
14541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542   (exit $ac_status); } &&
14543          { ac_try='test -z "$ac_c_werror_flag"
14544                          || test ! -s conftest.err'
14545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14546   (eval $ac_try) 2>&5
14547   ac_status=$?
14548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549   (exit $ac_status); }; } &&
14550          { ac_try='test -s conftest$ac_exeext'
14551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552   (eval $ac_try) 2>&5
14553   ac_status=$?
14554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); }; }; then
14556   ac_cv_var_tzname=yes
14557 else
14558   echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_cv_var_tzname=no
14562 fi
14563 rm -f conftest.err conftest.$ac_objext \
14564       conftest$ac_exeext conftest.$ac_ext
14565 fi
14566 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14567 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14568   if test $ac_cv_var_tzname = yes; then
14569
14570 cat >>confdefs.h <<\_ACEOF
14571 #define HAVE_TZNAME 1
14572 _ACEOF
14573
14574   fi
14575 fi
14576
14577
14578 echo "$as_me:$LINENO: checking for utime.h" >&5
14579 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14580 if test "${ba_cv_header_utime_h+set}" = set; then
14581   echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583   cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h.  */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h.  */
14589
14590 #include <sys/types.h>
14591 #include <utime.h>
14592 int
14593 main ()
14594 {
14595 struct utimbuf foo
14596   ;
14597   return 0;
14598 }
14599 _ACEOF
14600 rm -f conftest.$ac_objext
14601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14602   (eval $ac_compile) 2>conftest.er1
14603   ac_status=$?
14604   grep -v '^ *+' conftest.er1 >conftest.err
14605   rm -f conftest.er1
14606   cat conftest.err >&5
14607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608   (exit $ac_status); } &&
14609          { ac_try='test -z "$ac_c_werror_flag"
14610                          || test ! -s conftest.err'
14611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14612   (eval $ac_try) 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; } &&
14616          { ac_try='test -s conftest.$ac_objext'
14617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14618   (eval $ac_try) 2>&5
14619   ac_status=$?
14620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621   (exit $ac_status); }; }; then
14622   ba_cv_header_utime_h=yes
14623 else
14624   echo "$as_me: failed program was:" >&5
14625 sed 's/^/| /' conftest.$ac_ext >&5
14626
14627 ba_cv_header_utime_h=no
14628 fi
14629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14630 fi
14631 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14632 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14633 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14634 #define HAVE_UTIME_H 1
14635 _ACEOF
14636
14637
14638 echo "$as_me:$LINENO: checking for socklen_t" >&5
14639 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14640 if test "${ba_cv_header_socklen_t+set}" = set; then
14641   echo $ECHO_N "(cached) $ECHO_C" >&6
14642 else
14643   cat >conftest.$ac_ext <<_ACEOF
14644 /* confdefs.h.  */
14645 _ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h.  */
14649
14650 #include <sys/types.h>
14651 #include <sys/socket.h>
14652 int
14653 main ()
14654 {
14655 socklen_t x
14656   ;
14657   return 0;
14658 }
14659 _ACEOF
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662   (eval $ac_compile) 2>conftest.er1
14663   ac_status=$?
14664   grep -v '^ *+' conftest.er1 >conftest.err
14665   rm -f conftest.er1
14666   cat conftest.err >&5
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -z "$ac_c_werror_flag"
14670                          || test ! -s conftest.err'
14671   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672   (eval $ac_try) 2>&5
14673   ac_status=$?
14674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675   (exit $ac_status); }; } &&
14676          { ac_try='test -s conftest.$ac_objext'
14677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678   (eval $ac_try) 2>&5
14679   ac_status=$?
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); }; }; then
14682   ba_cv_header_socklen_t=yes
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687 ba_cv_header_socklen_t=no
14688 fi
14689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14690 fi
14691 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14692 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14693 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14694 #define HAVE_SOCKLEN_T 1
14695 _ACEOF
14696
14697
14698 echo "$as_me:$LINENO: checking for bigendian" >&5
14699 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14700 if test "${ba_cv_bigendian+set}" = set; then
14701   echo $ECHO_N "(cached) $ECHO_C" >&6
14702 else
14703   if test "$cross_compiling" = yes; then
14704   ba_cv_bigendian=no
14705 else
14706   cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14713 _ACEOF
14714 rm -f conftest$ac_exeext
14715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14716   (eval $ac_link) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14721   (eval $ac_try) 2>&5
14722   ac_status=$?
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); }; }; then
14725   ba_cv_bigendian=yes
14726 else
14727   echo "$as_me: program exited with status $ac_status" >&5
14728 echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ( exit $ac_status )
14732 ba_cv_bigendian=no
14733 fi
14734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14735 fi
14736 fi
14737 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14738 echo "${ECHO_T}$ba_cv_bigendian" >&6
14739 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14740 #define HAVE_BIGENDIAN 1
14741 _ACEOF
14742
14743
14744
14745 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14746 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14747 if test "${ac_cv_c_const+set}" = set; then
14748   echo $ECHO_N "(cached) $ECHO_C" >&6
14749 else
14750   cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756
14757 int
14758 main ()
14759 {
14760 /* FIXME: Include the comments suggested by Paul. */
14761 #ifndef __cplusplus
14762   /* Ultrix mips cc rejects this.  */
14763   typedef int charset[2];
14764   const charset x;
14765   /* SunOS 4.1.1 cc rejects this.  */
14766   char const *const *ccp;
14767   char **p;
14768   /* NEC SVR4.0.2 mips cc rejects this.  */
14769   struct point {int x, y;};
14770   static struct point const zero = {0,0};
14771   /* AIX XL C 1.02.0.0 rejects this.
14772      It does not let you subtract one const X* pointer from another in
14773      an arm of an if-expression whose if-part is not a constant
14774      expression */
14775   const char *g = "string";
14776   ccp = &g + (g ? g-g : 0);
14777   /* HPUX 7.0 cc rejects these. */
14778   ++ccp;
14779   p = (char**) ccp;
14780   ccp = (char const *const *) p;
14781   { /* SCO 3.2v4 cc rejects this.  */
14782     char *t;
14783     char const *s = 0 ? (char *) 0 : (char const *) 0;
14784
14785     *t++ = 0;
14786   }
14787   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14788     int x[] = {25, 17};
14789     const int *foo = &x[0];
14790     ++foo;
14791   }
14792   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14793     typedef const int *iptr;
14794     iptr p = 0;
14795     ++p;
14796   }
14797   { /* AIX XL C 1.02.0.0 rejects this saying
14798        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14799     struct s { int j; const int *ap[3]; };
14800     struct s *b; b->j = 5;
14801   }
14802   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14803     const int foo = 10;
14804   }
14805 #endif
14806
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 rm -f conftest.$ac_objext
14812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14813   (eval $ac_compile) 2>conftest.er1
14814   ac_status=$?
14815   grep -v '^ *+' conftest.er1 >conftest.err
14816   rm -f conftest.er1
14817   cat conftest.err >&5
14818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14819   (exit $ac_status); } &&
14820          { ac_try='test -z "$ac_c_werror_flag"
14821                          || test ! -s conftest.err'
14822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14823   (eval $ac_try) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; } &&
14827          { ac_try='test -s conftest.$ac_objext'
14828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14829   (eval $ac_try) 2>&5
14830   ac_status=$?
14831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832   (exit $ac_status); }; }; then
14833   ac_cv_c_const=yes
14834 else
14835   echo "$as_me: failed program was:" >&5
14836 sed 's/^/| /' conftest.$ac_ext >&5
14837
14838 ac_cv_c_const=no
14839 fi
14840 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14841 fi
14842 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14843 echo "${ECHO_T}$ac_cv_c_const" >&6
14844 if test $ac_cv_c_const = no; then
14845
14846 cat >>confdefs.h <<\_ACEOF
14847 #define const
14848 _ACEOF
14849
14850 fi
14851
14852
14853
14854 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14855 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14856 fstype=no
14857 # The order of these tests is important.
14858 cat >conftest.$ac_ext <<_ACEOF
14859 /* confdefs.h.  */
14860 _ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h.  */
14864 #include <sys/statvfs.h>
14865 #include <sys/fstyp.h>
14866 _ACEOF
14867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14868   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14869   ac_status=$?
14870   grep -v '^ *+' conftest.er1 >conftest.err
14871   rm -f conftest.er1
14872   cat conftest.err >&5
14873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874   (exit $ac_status); } >/dev/null; then
14875   if test -s conftest.err; then
14876     ac_cpp_err=$ac_c_preproc_warn_flag
14877     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14878   else
14879     ac_cpp_err=
14880   fi
14881 else
14882   ac_cpp_err=yes
14883 fi
14884 if test -z "$ac_cpp_err"; then
14885   cat >>confdefs.h <<\_ACEOF
14886 #define FSTYPE_STATVFS 1
14887 _ACEOF
14888  fstype=SVR4
14889 else
14890   echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893
14894 fi
14895 rm -f conftest.err conftest.$ac_ext
14896 if test $fstype = no; then
14897 cat >conftest.$ac_ext <<_ACEOF
14898 /* confdefs.h.  */
14899 _ACEOF
14900 cat confdefs.h >>conftest.$ac_ext
14901 cat >>conftest.$ac_ext <<_ACEOF
14902 /* end confdefs.h.  */
14903 #include <sys/statfs.h>
14904 #include <sys/fstyp.h>
14905 _ACEOF
14906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14908   ac_status=$?
14909   grep -v '^ *+' conftest.er1 >conftest.err
14910   rm -f conftest.er1
14911   cat conftest.err >&5
14912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913   (exit $ac_status); } >/dev/null; then
14914   if test -s conftest.err; then
14915     ac_cpp_err=$ac_c_preproc_warn_flag
14916     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14917   else
14918     ac_cpp_err=
14919   fi
14920 else
14921   ac_cpp_err=yes
14922 fi
14923 if test -z "$ac_cpp_err"; then
14924   cat >>confdefs.h <<\_ACEOF
14925 #define FSTYPE_USG_STATFS 1
14926 _ACEOF
14927  fstype=SVR3
14928 else
14929   echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14931
14932
14933 fi
14934 rm -f conftest.err conftest.$ac_ext
14935 fi
14936 if test $fstype = no; then
14937 cat >conftest.$ac_ext <<_ACEOF
14938 /* confdefs.h.  */
14939 _ACEOF
14940 cat confdefs.h >>conftest.$ac_ext
14941 cat >>conftest.$ac_ext <<_ACEOF
14942 /* end confdefs.h.  */
14943 #include <sys/statfs.h>
14944 #include <sys/vmount.h>
14945 _ACEOF
14946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14947   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14948   ac_status=$?
14949   grep -v '^ *+' conftest.er1 >conftest.err
14950   rm -f conftest.er1
14951   cat conftest.err >&5
14952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953   (exit $ac_status); } >/dev/null; then
14954   if test -s conftest.err; then
14955     ac_cpp_err=$ac_c_preproc_warn_flag
14956     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14957   else
14958     ac_cpp_err=
14959   fi
14960 else
14961   ac_cpp_err=yes
14962 fi
14963 if test -z "$ac_cpp_err"; then
14964   cat >>confdefs.h <<\_ACEOF
14965 #define FSTYPE_AIX_STATFS 1
14966 _ACEOF
14967  fstype=AIX
14968 else
14969   echo "$as_me: failed program was:" >&5
14970 sed 's/^/| /' conftest.$ac_ext >&5
14971
14972
14973 fi
14974 rm -f conftest.err conftest.$ac_ext
14975 fi
14976 if test $fstype = no; then
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h.  */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h.  */
14983 #include <mntent.h>
14984 _ACEOF
14985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14987   ac_status=$?
14988   grep -v '^ *+' conftest.er1 >conftest.err
14989   rm -f conftest.er1
14990   cat conftest.err >&5
14991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992   (exit $ac_status); } >/dev/null; then
14993   if test -s conftest.err; then
14994     ac_cpp_err=$ac_c_preproc_warn_flag
14995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14996   else
14997     ac_cpp_err=
14998   fi
14999 else
15000   ac_cpp_err=yes
15001 fi
15002 if test -z "$ac_cpp_err"; then
15003   cat >>confdefs.h <<\_ACEOF
15004 #define FSTYPE_MNTENT 1
15005 _ACEOF
15006  fstype=4.3BSD
15007 else
15008   echo "$as_me: failed program was:" >&5
15009 sed 's/^/| /' conftest.$ac_ext >&5
15010
15011
15012 fi
15013 rm -f conftest.err conftest.$ac_ext
15014 fi
15015 if test $fstype = no; then
15016 cat >conftest.$ac_ext <<_ACEOF
15017 /* confdefs.h.  */
15018 _ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h.  */
15022 #include <sys/mount.h>
15023
15024 _ACEOF
15025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15026   $EGREP "f_type;" >/dev/null 2>&1; then
15027   cat >>confdefs.h <<\_ACEOF
15028 #define FSTYPE_STATFS 1
15029 _ACEOF
15030  fstype=4.4BSD/OSF1
15031 fi
15032 rm -f conftest*
15033
15034 fi
15035 if test $fstype = no; then
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042 #include <sys/mount.h>
15043 #include <sys/fs_types.h>
15044 _ACEOF
15045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15047   ac_status=$?
15048   grep -v '^ *+' conftest.er1 >conftest.err
15049   rm -f conftest.er1
15050   cat conftest.err >&5
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); } >/dev/null; then
15053   if test -s conftest.err; then
15054     ac_cpp_err=$ac_c_preproc_warn_flag
15055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15056   else
15057     ac_cpp_err=
15058   fi
15059 else
15060   ac_cpp_err=yes
15061 fi
15062 if test -z "$ac_cpp_err"; then
15063   cat >>confdefs.h <<\_ACEOF
15064 #define FSTYPE_GETMNT 1
15065 _ACEOF
15066  fstype=Ultrix
15067 else
15068   echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.$ac_ext >&5
15070
15071
15072 fi
15073 rm -f conftest.err conftest.$ac_ext
15074 fi
15075 echo "$as_me:$LINENO: result: $fstype" >&5
15076 echo "${ECHO_T}$fstype" >&6
15077
15078 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15079 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15080 if test "${ac_cv_type_signal+set}" = set; then
15081   echo $ECHO_N "(cached) $ECHO_C" >&6
15082 else
15083   cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h.  */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h.  */
15089 #include <sys/types.h>
15090 #include <signal.h>
15091 #ifdef signal
15092 # undef signal
15093 #endif
15094 #ifdef __cplusplus
15095 extern "C" void (*signal (int, void (*)(int)))(int);
15096 #else
15097 void (*signal ()) ();
15098 #endif
15099
15100 int
15101 main ()
15102 {
15103 int i;
15104   ;
15105   return 0;
15106 }
15107 _ACEOF
15108 rm -f conftest.$ac_objext
15109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110   (eval $ac_compile) 2>conftest.er1
15111   ac_status=$?
15112   grep -v '^ *+' conftest.er1 >conftest.err
15113   rm -f conftest.er1
15114   cat conftest.err >&5
15115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116   (exit $ac_status); } &&
15117          { ac_try='test -z "$ac_c_werror_flag"
15118                          || test ! -s conftest.err'
15119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120   (eval $ac_try) 2>&5
15121   ac_status=$?
15122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123   (exit $ac_status); }; } &&
15124          { ac_try='test -s conftest.$ac_objext'
15125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126   (eval $ac_try) 2>&5
15127   ac_status=$?
15128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); }; }; then
15130   ac_cv_type_signal=void
15131 else
15132   echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.$ac_ext >&5
15134
15135 ac_cv_type_signal=int
15136 fi
15137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138 fi
15139 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15140 echo "${ECHO_T}$ac_cv_type_signal" >&6
15141
15142 cat >>confdefs.h <<_ACEOF
15143 #define RETSIGTYPE $ac_cv_type_signal
15144 _ACEOF
15145
15146
15147
15148 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15149 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15150 if test "${bash_cv_signal_vintage+set}" = set; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153
15154   cat >conftest.$ac_ext <<_ACEOF
15155 /* confdefs.h.  */
15156 _ACEOF
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h.  */
15160 #include <signal.h>
15161 int
15162 main ()
15163 {
15164
15165     sigset_t ss;
15166     struct sigaction sa;
15167     sigemptyset(&ss); sigsuspend(&ss);
15168     sigaction(SIGINT, &sa, (struct sigaction *) 0);
15169     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15170
15171   ;
15172   return 0;
15173 }
15174 _ACEOF
15175 rm -f conftest.$ac_objext conftest$ac_exeext
15176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15177   (eval $ac_link) 2>conftest.er1
15178   ac_status=$?
15179   grep -v '^ *+' conftest.er1 >conftest.err
15180   rm -f conftest.er1
15181   cat conftest.err >&5
15182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183   (exit $ac_status); } &&
15184          { ac_try='test -z "$ac_c_werror_flag"
15185                          || test ! -s conftest.err'
15186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15187   (eval $ac_try) 2>&5
15188   ac_status=$?
15189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15190   (exit $ac_status); }; } &&
15191          { ac_try='test -s conftest$ac_exeext'
15192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15193   (eval $ac_try) 2>&5
15194   ac_status=$?
15195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15196   (exit $ac_status); }; }; then
15197   bash_cv_signal_vintage=posix
15198 else
15199   echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202
15203     cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209 #include <signal.h>
15210 int
15211 main ()
15212 {
15213
15214         int mask = sigmask(SIGINT);
15215         sigsetmask(mask); sigblock(mask); sigpause(mask);
15216
15217   ;
15218   return 0;
15219 }
15220 _ACEOF
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15223   (eval $ac_link) 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } &&
15230          { ac_try='test -z "$ac_c_werror_flag"
15231                          || test ! -s conftest.err'
15232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233   (eval $ac_try) 2>&5
15234   ac_status=$?
15235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236   (exit $ac_status); }; } &&
15237          { ac_try='test -s conftest$ac_exeext'
15238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239   (eval $ac_try) 2>&5
15240   ac_status=$?
15241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242   (exit $ac_status); }; }; then
15243   bash_cv_signal_vintage=4.2bsd
15244 else
15245   echo "$as_me: failed program was:" >&5
15246 sed 's/^/| /' conftest.$ac_ext >&5
15247
15248
15249       cat >conftest.$ac_ext <<_ACEOF
15250 /* confdefs.h.  */
15251 _ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h.  */
15255
15256         #include <signal.h>
15257         RETSIGTYPE foo() { }
15258 int
15259 main ()
15260 {
15261
15262                 int mask = sigmask(SIGINT);
15263                 sigset(SIGINT, foo); sigrelse(SIGINT);
15264                 sighold(SIGINT); sigpause(SIGINT);
15265
15266   ;
15267   return 0;
15268 }
15269 _ACEOF
15270 rm -f conftest.$ac_objext conftest$ac_exeext
15271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15272   (eval $ac_link) 2>conftest.er1
15273   ac_status=$?
15274   grep -v '^ *+' conftest.er1 >conftest.err
15275   rm -f conftest.er1
15276   cat conftest.err >&5
15277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278   (exit $ac_status); } &&
15279          { ac_try='test -z "$ac_c_werror_flag"
15280                          || test ! -s conftest.err'
15281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15282   (eval $ac_try) 2>&5
15283   ac_status=$?
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); }; } &&
15286          { ac_try='test -s conftest$ac_exeext'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; }; then
15292   bash_cv_signal_vintage=svr3
15293 else
15294   echo "$as_me: failed program was:" >&5
15295 sed 's/^/| /' conftest.$ac_ext >&5
15296
15297 bash_cv_signal_vintage=v7
15298
15299 fi
15300 rm -f conftest.err conftest.$ac_objext \
15301       conftest$ac_exeext conftest.$ac_ext
15302
15303 fi
15304 rm -f conftest.err conftest.$ac_objext \
15305       conftest$ac_exeext conftest.$ac_ext
15306
15307 fi
15308 rm -f conftest.err conftest.$ac_objext \
15309       conftest$ac_exeext conftest.$ac_ext
15310
15311 fi
15312
15313 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15314 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15315 if test "$bash_cv_signal_vintage" = posix; then
15316 cat >>confdefs.h <<\_ACEOF
15317 #define HAVE_POSIX_SIGNALS 1
15318 _ACEOF
15319
15320 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15321 cat >>confdefs.h <<\_ACEOF
15322 #define HAVE_BSD_SIGNALS 1
15323 _ACEOF
15324
15325 elif test "$bash_cv_signal_vintage" = svr3; then
15326 cat >>confdefs.h <<\_ACEOF
15327 #define HAVE_USG_SIGHOLD 1
15328 _ACEOF
15329
15330 fi
15331
15332 echo "$as_me:$LINENO: checking for mode_t" >&5
15333 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15334 if test "${ac_cv_type_mode_t+set}" = set; then
15335   echo $ECHO_N "(cached) $ECHO_C" >&6
15336 else
15337   cat >conftest.$ac_ext <<_ACEOF
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343 $ac_includes_default
15344 int
15345 main ()
15346 {
15347 if ((mode_t *) 0)
15348   return 0;
15349 if (sizeof (mode_t))
15350   return 0;
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.$ac_objext
15356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15357   (eval $ac_compile) 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -z "$ac_c_werror_flag"
15365                          || test ! -s conftest.err'
15366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367   (eval $ac_try) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; } &&
15371          { ac_try='test -s conftest.$ac_objext'
15372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15373   (eval $ac_try) 2>&5
15374   ac_status=$?
15375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); }; }; then
15377   ac_cv_type_mode_t=yes
15378 else
15379   echo "$as_me: failed program was:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15381
15382 ac_cv_type_mode_t=no
15383 fi
15384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15385 fi
15386 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15387 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15388 if test $ac_cv_type_mode_t = yes; then
15389   :
15390 else
15391
15392 cat >>confdefs.h <<_ACEOF
15393 #define mode_t int
15394 _ACEOF
15395
15396 fi
15397
15398 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15399 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15400 if test "${ac_cv_type_uid_t+set}" = set; then
15401   echo $ECHO_N "(cached) $ECHO_C" >&6
15402 else
15403   cat >conftest.$ac_ext <<_ACEOF
15404 /* confdefs.h.  */
15405 _ACEOF
15406 cat confdefs.h >>conftest.$ac_ext
15407 cat >>conftest.$ac_ext <<_ACEOF
15408 /* end confdefs.h.  */
15409 #include <sys/types.h>
15410
15411 _ACEOF
15412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15413   $EGREP "uid_t" >/dev/null 2>&1; then
15414   ac_cv_type_uid_t=yes
15415 else
15416   ac_cv_type_uid_t=no
15417 fi
15418 rm -f conftest*
15419
15420 fi
15421 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15422 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15423 if test $ac_cv_type_uid_t = no; then
15424
15425 cat >>confdefs.h <<\_ACEOF
15426 #define uid_t int
15427 _ACEOF
15428
15429
15430 cat >>confdefs.h <<\_ACEOF
15431 #define gid_t int
15432 _ACEOF
15433
15434 fi
15435
15436 echo "$as_me:$LINENO: checking for size_t" >&5
15437 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15438 if test "${ac_cv_type_size_t+set}" = set; then
15439   echo $ECHO_N "(cached) $ECHO_C" >&6
15440 else
15441   cat >conftest.$ac_ext <<_ACEOF
15442 /* confdefs.h.  */
15443 _ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h.  */
15447 $ac_includes_default
15448 int
15449 main ()
15450 {
15451 if ((size_t *) 0)
15452   return 0;
15453 if (sizeof (size_t))
15454   return 0;
15455   ;
15456   return 0;
15457 }
15458 _ACEOF
15459 rm -f conftest.$ac_objext
15460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15461   (eval $ac_compile) 2>conftest.er1
15462   ac_status=$?
15463   grep -v '^ *+' conftest.er1 >conftest.err
15464   rm -f conftest.er1
15465   cat conftest.err >&5
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); } &&
15468          { ac_try='test -z "$ac_c_werror_flag"
15469                          || test ! -s conftest.err'
15470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15471   (eval $ac_try) 2>&5
15472   ac_status=$?
15473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15474   (exit $ac_status); }; } &&
15475          { ac_try='test -s conftest.$ac_objext'
15476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15477   (eval $ac_try) 2>&5
15478   ac_status=$?
15479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15480   (exit $ac_status); }; }; then
15481   ac_cv_type_size_t=yes
15482 else
15483   echo "$as_me: failed program was:" >&5
15484 sed 's/^/| /' conftest.$ac_ext >&5
15485
15486 ac_cv_type_size_t=no
15487 fi
15488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15489 fi
15490 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15491 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15492 if test $ac_cv_type_size_t = yes; then
15493   :
15494 else
15495
15496 cat >>confdefs.h <<_ACEOF
15497 #define size_t unsigned
15498 _ACEOF
15499
15500 fi
15501
15502 echo "$as_me:$LINENO: checking for pid_t" >&5
15503 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15504 if test "${ac_cv_type_pid_t+set}" = set; then
15505   echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507   cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 int
15515 main ()
15516 {
15517 if ((pid_t *) 0)
15518   return 0;
15519 if (sizeof (pid_t))
15520   return 0;
15521   ;
15522   return 0;
15523 }
15524 _ACEOF
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527   (eval $ac_compile) 2>conftest.er1
15528   ac_status=$?
15529   grep -v '^ *+' conftest.er1 >conftest.err
15530   rm -f conftest.er1
15531   cat conftest.err >&5
15532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533   (exit $ac_status); } &&
15534          { ac_try='test -z "$ac_c_werror_flag"
15535                          || test ! -s conftest.err'
15536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537   (eval $ac_try) 2>&5
15538   ac_status=$?
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); }; } &&
15541          { ac_try='test -s conftest.$ac_objext'
15542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15543   (eval $ac_try) 2>&5
15544   ac_status=$?
15545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546   (exit $ac_status); }; }; then
15547   ac_cv_type_pid_t=yes
15548 else
15549   echo "$as_me: failed program was:" >&5
15550 sed 's/^/| /' conftest.$ac_ext >&5
15551
15552 ac_cv_type_pid_t=no
15553 fi
15554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15557 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15558 if test $ac_cv_type_pid_t = yes; then
15559   :
15560 else
15561
15562 cat >>confdefs.h <<_ACEOF
15563 #define pid_t int
15564 _ACEOF
15565
15566 fi
15567
15568 echo "$as_me:$LINENO: checking for off_t" >&5
15569 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15570 if test "${ac_cv_type_off_t+set}" = set; then
15571   echo $ECHO_N "(cached) $ECHO_C" >&6
15572 else
15573   cat >conftest.$ac_ext <<_ACEOF
15574 /* confdefs.h.  */
15575 _ACEOF
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h.  */
15579 $ac_includes_default
15580 int
15581 main ()
15582 {
15583 if ((off_t *) 0)
15584   return 0;
15585 if (sizeof (off_t))
15586   return 0;
15587   ;
15588   return 0;
15589 }
15590 _ACEOF
15591 rm -f conftest.$ac_objext
15592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15593   (eval $ac_compile) 2>conftest.er1
15594   ac_status=$?
15595   grep -v '^ *+' conftest.er1 >conftest.err
15596   rm -f conftest.er1
15597   cat conftest.err >&5
15598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599   (exit $ac_status); } &&
15600          { ac_try='test -z "$ac_c_werror_flag"
15601                          || test ! -s conftest.err'
15602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603   (eval $ac_try) 2>&5
15604   ac_status=$?
15605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606   (exit $ac_status); }; } &&
15607          { ac_try='test -s conftest.$ac_objext'
15608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609   (eval $ac_try) 2>&5
15610   ac_status=$?
15611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612   (exit $ac_status); }; }; then
15613   ac_cv_type_off_t=yes
15614 else
15615   echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15617
15618 ac_cv_type_off_t=no
15619 fi
15620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15623 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15624 if test $ac_cv_type_off_t = yes; then
15625   :
15626 else
15627
15628 cat >>confdefs.h <<_ACEOF
15629 #define off_t long
15630 _ACEOF
15631
15632 fi
15633
15634 echo "$as_me:$LINENO: checking for ino_t" >&5
15635 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15636 if test "${ac_cv_type_ino_t+set}" = set; then
15637   echo $ECHO_N "(cached) $ECHO_C" >&6
15638 else
15639   cat >conftest.$ac_ext <<_ACEOF
15640 /* confdefs.h.  */
15641 _ACEOF
15642 cat confdefs.h >>conftest.$ac_ext
15643 cat >>conftest.$ac_ext <<_ACEOF
15644 /* end confdefs.h.  */
15645 $ac_includes_default
15646 int
15647 main ()
15648 {
15649 if ((ino_t *) 0)
15650   return 0;
15651 if (sizeof (ino_t))
15652   return 0;
15653   ;
15654   return 0;
15655 }
15656 _ACEOF
15657 rm -f conftest.$ac_objext
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659   (eval $ac_compile) 2>conftest.er1
15660   ac_status=$?
15661   grep -v '^ *+' conftest.er1 >conftest.err
15662   rm -f conftest.er1
15663   cat conftest.err >&5
15664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665   (exit $ac_status); } &&
15666          { ac_try='test -z "$ac_c_werror_flag"
15667                          || test ! -s conftest.err'
15668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669   (eval $ac_try) 2>&5
15670   ac_status=$?
15671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672   (exit $ac_status); }; } &&
15673          { ac_try='test -s conftest.$ac_objext'
15674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15675   (eval $ac_try) 2>&5
15676   ac_status=$?
15677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678   (exit $ac_status); }; }; then
15679   ac_cv_type_ino_t=yes
15680 else
15681   echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_cv_type_ino_t=no
15685 fi
15686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15687 fi
15688 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15689 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15690 if test $ac_cv_type_ino_t = yes; then
15691   :
15692 else
15693
15694 cat >>confdefs.h <<_ACEOF
15695 #define ino_t unsigned long
15696 _ACEOF
15697
15698 fi
15699
15700 echo "$as_me:$LINENO: checking for dev_t" >&5
15701 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15702 if test "${ac_cv_type_dev_t+set}" = set; then
15703   echo $ECHO_N "(cached) $ECHO_C" >&6
15704 else
15705   cat >conftest.$ac_ext <<_ACEOF
15706 /* confdefs.h.  */
15707 _ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h.  */
15711 $ac_includes_default
15712 int
15713 main ()
15714 {
15715 if ((dev_t *) 0)
15716   return 0;
15717 if (sizeof (dev_t))
15718   return 0;
15719   ;
15720   return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext
15724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15725   (eval $ac_compile) 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } &&
15732          { ac_try='test -z "$ac_c_werror_flag"
15733                          || test ! -s conftest.err'
15734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735   (eval $ac_try) 2>&5
15736   ac_status=$?
15737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738   (exit $ac_status); }; } &&
15739          { ac_try='test -s conftest.$ac_objext'
15740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741   (eval $ac_try) 2>&5
15742   ac_status=$?
15743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744   (exit $ac_status); }; }; then
15745   ac_cv_type_dev_t=yes
15746 else
15747   echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15749
15750 ac_cv_type_dev_t=no
15751 fi
15752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15753 fi
15754 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15755 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15756 if test $ac_cv_type_dev_t = yes; then
15757   :
15758 else
15759
15760 cat >>confdefs.h <<_ACEOF
15761 #define dev_t unsigned long
15762 _ACEOF
15763
15764 fi
15765
15766 echo "$as_me:$LINENO: checking for daddr_t" >&5
15767 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15768 if test "${ac_cv_type_daddr_t+set}" = set; then
15769   echo $ECHO_N "(cached) $ECHO_C" >&6
15770 else
15771   cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 $ac_includes_default
15778 int
15779 main ()
15780 {
15781 if ((daddr_t *) 0)
15782   return 0;
15783 if (sizeof (daddr_t))
15784   return 0;
15785   ;
15786   return 0;
15787 }
15788 _ACEOF
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791   (eval $ac_compile) 2>conftest.er1
15792   ac_status=$?
15793   grep -v '^ *+' conftest.er1 >conftest.err
15794   rm -f conftest.er1
15795   cat conftest.err >&5
15796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797   (exit $ac_status); } &&
15798          { ac_try='test -z "$ac_c_werror_flag"
15799                          || test ! -s conftest.err'
15800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801   (eval $ac_try) 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; } &&
15805          { ac_try='test -s conftest.$ac_objext'
15806   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807   (eval $ac_try) 2>&5
15808   ac_status=$?
15809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810   (exit $ac_status); }; }; then
15811   ac_cv_type_daddr_t=yes
15812 else
15813   echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15815
15816 ac_cv_type_daddr_t=no
15817 fi
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15819 fi
15820 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15821 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15822 if test $ac_cv_type_daddr_t = yes; then
15823   :
15824 else
15825
15826 cat >>confdefs.h <<_ACEOF
15827 #define daddr_t long
15828 _ACEOF
15829
15830 fi
15831
15832 echo "$as_me:$LINENO: checking for major_t" >&5
15833 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15834 if test "${ac_cv_type_major_t+set}" = set; then
15835   echo $ECHO_N "(cached) $ECHO_C" >&6
15836 else
15837   cat >conftest.$ac_ext <<_ACEOF
15838 /* confdefs.h.  */
15839 _ACEOF
15840 cat confdefs.h >>conftest.$ac_ext
15841 cat >>conftest.$ac_ext <<_ACEOF
15842 /* end confdefs.h.  */
15843 $ac_includes_default
15844 int
15845 main ()
15846 {
15847 if ((major_t *) 0)
15848   return 0;
15849 if (sizeof (major_t))
15850   return 0;
15851   ;
15852   return 0;
15853 }
15854 _ACEOF
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857   (eval $ac_compile) 2>conftest.er1
15858   ac_status=$?
15859   grep -v '^ *+' conftest.er1 >conftest.err
15860   rm -f conftest.er1
15861   cat conftest.err >&5
15862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863   (exit $ac_status); } &&
15864          { ac_try='test -z "$ac_c_werror_flag"
15865                          || test ! -s conftest.err'
15866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867   (eval $ac_try) 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; } &&
15871          { ac_try='test -s conftest.$ac_objext'
15872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873   (eval $ac_try) 2>&5
15874   ac_status=$?
15875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876   (exit $ac_status); }; }; then
15877   ac_cv_type_major_t=yes
15878 else
15879   echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15881
15882 ac_cv_type_major_t=no
15883 fi
15884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15885 fi
15886 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15887 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15888 if test $ac_cv_type_major_t = yes; then
15889   :
15890 else
15891
15892 cat >>confdefs.h <<_ACEOF
15893 #define major_t int
15894 _ACEOF
15895
15896 fi
15897
15898 echo "$as_me:$LINENO: checking for minor_t" >&5
15899 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15900 if test "${ac_cv_type_minor_t+set}" = set; then
15901   echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903   cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909 $ac_includes_default
15910 int
15911 main ()
15912 {
15913 if ((minor_t *) 0)
15914   return 0;
15915 if (sizeof (minor_t))
15916   return 0;
15917   ;
15918   return 0;
15919 }
15920 _ACEOF
15921 rm -f conftest.$ac_objext
15922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15923   (eval $ac_compile) 2>conftest.er1
15924   ac_status=$?
15925   grep -v '^ *+' conftest.er1 >conftest.err
15926   rm -f conftest.er1
15927   cat conftest.err >&5
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); } &&
15930          { ac_try='test -z "$ac_c_werror_flag"
15931                          || test ! -s conftest.err'
15932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15933   (eval $ac_try) 2>&5
15934   ac_status=$?
15935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936   (exit $ac_status); }; } &&
15937          { ac_try='test -s conftest.$ac_objext'
15938   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15939   (eval $ac_try) 2>&5
15940   ac_status=$?
15941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15942   (exit $ac_status); }; }; then
15943   ac_cv_type_minor_t=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948 ac_cv_type_minor_t=no
15949 fi
15950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15951 fi
15952 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15953 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15954 if test $ac_cv_type_minor_t = yes; then
15955   :
15956 else
15957
15958 cat >>confdefs.h <<_ACEOF
15959 #define minor_t int
15960 _ACEOF
15961
15962 fi
15963
15964 echo "$as_me:$LINENO: checking for ssize_t" >&5
15965 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15966 if test "${ac_cv_type_ssize_t+set}" = set; then
15967   echo $ECHO_N "(cached) $ECHO_C" >&6
15968 else
15969   cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h.  */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h.  */
15975 $ac_includes_default
15976 int
15977 main ()
15978 {
15979 if ((ssize_t *) 0)
15980   return 0;
15981 if (sizeof (ssize_t))
15982   return 0;
15983   ;
15984   return 0;
15985 }
15986 _ACEOF
15987 rm -f conftest.$ac_objext
15988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15989   (eval $ac_compile) 2>conftest.er1
15990   ac_status=$?
15991   grep -v '^ *+' conftest.er1 >conftest.err
15992   rm -f conftest.er1
15993   cat conftest.err >&5
15994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15995   (exit $ac_status); } &&
15996          { ac_try='test -z "$ac_c_werror_flag"
15997                          || test ! -s conftest.err'
15998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15999   (eval $ac_try) 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest.$ac_objext'
16004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005   (eval $ac_try) 2>&5
16006   ac_status=$?
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); }; }; then
16009   ac_cv_type_ssize_t=yes
16010 else
16011   echo "$as_me: failed program was:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16013
16014 ac_cv_type_ssize_t=no
16015 fi
16016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16017 fi
16018 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16019 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16020 if test $ac_cv_type_ssize_t = yes; then
16021   :
16022 else
16023
16024 cat >>confdefs.h <<_ACEOF
16025 #define ssize_t int
16026 _ACEOF
16027
16028 fi
16029
16030 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16031 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16032 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16033   echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035   cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 $ac_includes_default
16042 int
16043 main ()
16044 {
16045 static struct stat ac_aggr;
16046 if (ac_aggr.st_blocks)
16047 return 0;
16048   ;
16049   return 0;
16050 }
16051 _ACEOF
16052 rm -f conftest.$ac_objext
16053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16054   (eval $ac_compile) 2>conftest.er1
16055   ac_status=$?
16056   grep -v '^ *+' conftest.er1 >conftest.err
16057   rm -f conftest.er1
16058   cat conftest.err >&5
16059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } &&
16061          { ac_try='test -z "$ac_c_werror_flag"
16062                          || test ! -s conftest.err'
16063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16064   (eval $ac_try) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }; } &&
16068          { ac_try='test -s conftest.$ac_objext'
16069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16070   (eval $ac_try) 2>&5
16071   ac_status=$?
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); }; }; then
16074   ac_cv_member_struct_stat_st_blocks=yes
16075 else
16076   echo "$as_me: failed program was:" >&5
16077 sed 's/^/| /' conftest.$ac_ext >&5
16078
16079 cat >conftest.$ac_ext <<_ACEOF
16080 /* confdefs.h.  */
16081 _ACEOF
16082 cat confdefs.h >>conftest.$ac_ext
16083 cat >>conftest.$ac_ext <<_ACEOF
16084 /* end confdefs.h.  */
16085 $ac_includes_default
16086 int
16087 main ()
16088 {
16089 static struct stat ac_aggr;
16090 if (sizeof ac_aggr.st_blocks)
16091 return 0;
16092   ;
16093   return 0;
16094 }
16095 _ACEOF
16096 rm -f conftest.$ac_objext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098   (eval $ac_compile) 2>conftest.er1
16099   ac_status=$?
16100   grep -v '^ *+' conftest.er1 >conftest.err
16101   rm -f conftest.er1
16102   cat conftest.err >&5
16103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104   (exit $ac_status); } &&
16105          { ac_try='test -z "$ac_c_werror_flag"
16106                          || test ! -s conftest.err'
16107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108   (eval $ac_try) 2>&5
16109   ac_status=$?
16110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111   (exit $ac_status); }; } &&
16112          { ac_try='test -s conftest.$ac_objext'
16113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114   (eval $ac_try) 2>&5
16115   ac_status=$?
16116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117   (exit $ac_status); }; }; then
16118   ac_cv_member_struct_stat_st_blocks=yes
16119 else
16120   echo "$as_me: failed program was:" >&5
16121 sed 's/^/| /' conftest.$ac_ext >&5
16122
16123 ac_cv_member_struct_stat_st_blocks=no
16124 fi
16125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16126 fi
16127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16128 fi
16129 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16130 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16131 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16132
16133 cat >>confdefs.h <<_ACEOF
16134 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16135 _ACEOF
16136
16137
16138 cat >>confdefs.h <<\_ACEOF
16139 #define HAVE_ST_BLOCKS 1
16140 _ACEOF
16141
16142 else
16143   case $LIBOBJS in
16144     "fileblocks.$ac_objext"   | \
16145   *" fileblocks.$ac_objext"   | \
16146     "fileblocks.$ac_objext "* | \
16147   *" fileblocks.$ac_objext "* ) ;;
16148   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16149 esac
16150
16151 fi
16152
16153
16154
16155 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16158   echo $ECHO_N "(cached) $ECHO_C" >&6
16159 else
16160   cat >conftest.$ac_ext <<_ACEOF
16161 /* confdefs.h.  */
16162 _ACEOF
16163 cat confdefs.h >>conftest.$ac_ext
16164 cat >>conftest.$ac_ext <<_ACEOF
16165 /* end confdefs.h.  */
16166 $ac_includes_default
16167 int
16168 main ()
16169 {
16170 static struct stat ac_aggr;
16171 if (ac_aggr.st_rdev)
16172 return 0;
16173   ;
16174   return 0;
16175 }
16176 _ACEOF
16177 rm -f conftest.$ac_objext
16178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16179   (eval $ac_compile) 2>conftest.er1
16180   ac_status=$?
16181   grep -v '^ *+' conftest.er1 >conftest.err
16182   rm -f conftest.er1
16183   cat conftest.err >&5
16184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185   (exit $ac_status); } &&
16186          { ac_try='test -z "$ac_c_werror_flag"
16187                          || test ! -s conftest.err'
16188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189   (eval $ac_try) 2>&5
16190   ac_status=$?
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); }; } &&
16193          { ac_try='test -s conftest.$ac_objext'
16194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16195   (eval $ac_try) 2>&5
16196   ac_status=$?
16197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198   (exit $ac_status); }; }; then
16199   ac_cv_member_struct_stat_st_rdev=yes
16200 else
16201   echo "$as_me: failed program was:" >&5
16202 sed 's/^/| /' conftest.$ac_ext >&5
16203
16204 cat >conftest.$ac_ext <<_ACEOF
16205 /* confdefs.h.  */
16206 _ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h.  */
16210 $ac_includes_default
16211 int
16212 main ()
16213 {
16214 static struct stat ac_aggr;
16215 if (sizeof ac_aggr.st_rdev)
16216 return 0;
16217   ;
16218   return 0;
16219 }
16220 _ACEOF
16221 rm -f conftest.$ac_objext
16222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16223   (eval $ac_compile) 2>conftest.er1
16224   ac_status=$?
16225   grep -v '^ *+' conftest.er1 >conftest.err
16226   rm -f conftest.er1
16227   cat conftest.err >&5
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); } &&
16230          { ac_try='test -z "$ac_c_werror_flag"
16231                          || test ! -s conftest.err'
16232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16233   (eval $ac_try) 2>&5
16234   ac_status=$?
16235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16236   (exit $ac_status); }; } &&
16237          { ac_try='test -s conftest.$ac_objext'
16238   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16239   (eval $ac_try) 2>&5
16240   ac_status=$?
16241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); }; }; then
16243   ac_cv_member_struct_stat_st_rdev=yes
16244 else
16245   echo "$as_me: failed program was:" >&5
16246 sed 's/^/| /' conftest.$ac_ext >&5
16247
16248 ac_cv_member_struct_stat_st_rdev=no
16249 fi
16250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16251 fi
16252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16253 fi
16254 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16255 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16256 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16257
16258 cat >>confdefs.h <<_ACEOF
16259 #define HAVE_STRUCT_STAT_ST_RDEV 1
16260 _ACEOF
16261
16262
16263 cat >>confdefs.h <<\_ACEOF
16264 #define HAVE_ST_RDEV 1
16265 _ACEOF
16266
16267 fi
16268
16269
16270 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16271 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16272 if test "${ac_cv_struct_tm+set}" = set; then
16273   echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275   cat >conftest.$ac_ext <<_ACEOF
16276 /* confdefs.h.  */
16277 _ACEOF
16278 cat confdefs.h >>conftest.$ac_ext
16279 cat >>conftest.$ac_ext <<_ACEOF
16280 /* end confdefs.h.  */
16281 #include <sys/types.h>
16282 #include <time.h>
16283
16284 int
16285 main ()
16286 {
16287 struct tm *tp; tp->tm_sec;
16288   ;
16289   return 0;
16290 }
16291 _ACEOF
16292 rm -f conftest.$ac_objext
16293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16294   (eval $ac_compile) 2>conftest.er1
16295   ac_status=$?
16296   grep -v '^ *+' conftest.er1 >conftest.err
16297   rm -f conftest.er1
16298   cat conftest.err >&5
16299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300   (exit $ac_status); } &&
16301          { ac_try='test -z "$ac_c_werror_flag"
16302                          || test ! -s conftest.err'
16303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16304   (eval $ac_try) 2>&5
16305   ac_status=$?
16306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307   (exit $ac_status); }; } &&
16308          { ac_try='test -s conftest.$ac_objext'
16309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310   (eval $ac_try) 2>&5
16311   ac_status=$?
16312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313   (exit $ac_status); }; }; then
16314   ac_cv_struct_tm=time.h
16315 else
16316   echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 ac_cv_struct_tm=sys/time.h
16320 fi
16321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16322 fi
16323 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16324 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16325 if test $ac_cv_struct_tm = sys/time.h; then
16326
16327 cat >>confdefs.h <<\_ACEOF
16328 #define TM_IN_SYS_TIME 1
16329 _ACEOF
16330
16331 fi
16332
16333 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16334 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16335 if test "${ac_cv_c_const+set}" = set; then
16336   echo $ECHO_N "(cached) $ECHO_C" >&6
16337 else
16338   cat >conftest.$ac_ext <<_ACEOF
16339 /* confdefs.h.  */
16340 _ACEOF
16341 cat confdefs.h >>conftest.$ac_ext
16342 cat >>conftest.$ac_ext <<_ACEOF
16343 /* end confdefs.h.  */
16344
16345 int
16346 main ()
16347 {
16348 /* FIXME: Include the comments suggested by Paul. */
16349 #ifndef __cplusplus
16350   /* Ultrix mips cc rejects this.  */
16351   typedef int charset[2];
16352   const charset x;
16353   /* SunOS 4.1.1 cc rejects this.  */
16354   char const *const *ccp;
16355   char **p;
16356   /* NEC SVR4.0.2 mips cc rejects this.  */
16357   struct point {int x, y;};
16358   static struct point const zero = {0,0};
16359   /* AIX XL C 1.02.0.0 rejects this.
16360      It does not let you subtract one const X* pointer from another in
16361      an arm of an if-expression whose if-part is not a constant
16362      expression */
16363   const char *g = "string";
16364   ccp = &g + (g ? g-g : 0);
16365   /* HPUX 7.0 cc rejects these. */
16366   ++ccp;
16367   p = (char**) ccp;
16368   ccp = (char const *const *) p;
16369   { /* SCO 3.2v4 cc rejects this.  */
16370     char *t;
16371     char const *s = 0 ? (char *) 0 : (char const *) 0;
16372
16373     *t++ = 0;
16374   }
16375   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16376     int x[] = {25, 17};
16377     const int *foo = &x[0];
16378     ++foo;
16379   }
16380   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16381     typedef const int *iptr;
16382     iptr p = 0;
16383     ++p;
16384   }
16385   { /* AIX XL C 1.02.0.0 rejects this saying
16386        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16387     struct s { int j; const int *ap[3]; };
16388     struct s *b; b->j = 5;
16389   }
16390   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16391     const int foo = 10;
16392   }
16393 #endif
16394
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16401   (eval $ac_compile) 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_c_werror_flag"
16409                          || test ! -s conftest.err'
16410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411   (eval $ac_try) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest.$ac_objext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421   ac_cv_c_const=yes
16422 else
16423   echo "$as_me: failed program was:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16425
16426 ac_cv_c_const=no
16427 fi
16428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16429 fi
16430 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16431 echo "${ECHO_T}$ac_cv_c_const" >&6
16432 if test $ac_cv_c_const = no; then
16433
16434 cat >>confdefs.h <<\_ACEOF
16435 #define const
16436 _ACEOF
16437
16438 fi
16439
16440
16441
16442 echo "$as_me:$LINENO: checking for char" >&5
16443 echo $ECHO_N "checking for char... $ECHO_C" >&6
16444 if test "${ac_cv_type_char+set}" = set; then
16445   echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447   cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h.  */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h.  */
16453 $ac_includes_default
16454 int
16455 main ()
16456 {
16457 if ((char *) 0)
16458   return 0;
16459 if (sizeof (char))
16460   return 0;
16461   ;
16462   return 0;
16463 }
16464 _ACEOF
16465 rm -f conftest.$ac_objext
16466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16467   (eval $ac_compile) 2>conftest.er1
16468   ac_status=$?
16469   grep -v '^ *+' conftest.er1 >conftest.err
16470   rm -f conftest.er1
16471   cat conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } &&
16474          { ac_try='test -z "$ac_c_werror_flag"
16475                          || test ! -s conftest.err'
16476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16477   (eval $ac_try) 2>&5
16478   ac_status=$?
16479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480   (exit $ac_status); }; } &&
16481          { ac_try='test -s conftest.$ac_objext'
16482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16483   (eval $ac_try) 2>&5
16484   ac_status=$?
16485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486   (exit $ac_status); }; }; then
16487   ac_cv_type_char=yes
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 ac_cv_type_char=no
16493 fi
16494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16495 fi
16496 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16497 echo "${ECHO_T}$ac_cv_type_char" >&6
16498
16499 echo "$as_me:$LINENO: checking size of char" >&5
16500 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16501 if test "${ac_cv_sizeof_char+set}" = set; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 else
16504   if test "$ac_cv_type_char" = yes; then
16505   # The cast to unsigned long works around a bug in the HP C Compiler
16506   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16507   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16508   # This bug is HP SR number 8606223364.
16509   if test "$cross_compiling" = yes; then
16510   # Depending upon the size, compute the lo and hi bounds.
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 int
16519 main ()
16520 {
16521 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16522 test_array [0] = 0
16523
16524   ;
16525   return 0;
16526 }
16527 _ACEOF
16528 rm -f conftest.$ac_objext
16529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16530   (eval $ac_compile) 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -z "$ac_c_werror_flag"
16538                          || test ! -s conftest.err'
16539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540   (eval $ac_try) 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544          { ac_try='test -s conftest.$ac_objext'
16545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546   (eval $ac_try) 2>&5
16547   ac_status=$?
16548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549   (exit $ac_status); }; }; then
16550   ac_lo=0 ac_mid=0
16551   while :; do
16552     cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h.  */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h.  */
16558 $ac_includes_default
16559 int
16560 main ()
16561 {
16562 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16563 test_array [0] = 0
16564
16565   ;
16566   return 0;
16567 }
16568 _ACEOF
16569 rm -f conftest.$ac_objext
16570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16571   (eval $ac_compile) 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } &&
16578          { ac_try='test -z "$ac_c_werror_flag"
16579                          || test ! -s conftest.err'
16580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581   (eval $ac_try) 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest.$ac_objext'
16586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16587   (eval $ac_try) 2>&5
16588   ac_status=$?
16589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590   (exit $ac_status); }; }; then
16591   ac_hi=$ac_mid; break
16592 else
16593   echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16595
16596 ac_lo=`expr $ac_mid + 1`
16597                     if test $ac_lo -le $ac_mid; then
16598                       ac_lo= ac_hi=
16599                       break
16600                     fi
16601                     ac_mid=`expr 2 '*' $ac_mid + 1`
16602 fi
16603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16604   done
16605 else
16606   echo "$as_me: failed program was:" >&5
16607 sed 's/^/| /' conftest.$ac_ext >&5
16608
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h.  */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h.  */
16615 $ac_includes_default
16616 int
16617 main ()
16618 {
16619 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16620 test_array [0] = 0
16621
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628   (eval $ac_compile) 2>conftest.er1
16629   ac_status=$?
16630   grep -v '^ *+' conftest.er1 >conftest.err
16631   rm -f conftest.er1
16632   cat conftest.err >&5
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); } &&
16635          { ac_try='test -z "$ac_c_werror_flag"
16636                          || test ! -s conftest.err'
16637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638   (eval $ac_try) 2>&5
16639   ac_status=$?
16640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641   (exit $ac_status); }; } &&
16642          { ac_try='test -s conftest.$ac_objext'
16643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644   (eval $ac_try) 2>&5
16645   ac_status=$?
16646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647   (exit $ac_status); }; }; then
16648   ac_hi=-1 ac_mid=-1
16649   while :; do
16650     cat >conftest.$ac_ext <<_ACEOF
16651 /* confdefs.h.  */
16652 _ACEOF
16653 cat confdefs.h >>conftest.$ac_ext
16654 cat >>conftest.$ac_ext <<_ACEOF
16655 /* end confdefs.h.  */
16656 $ac_includes_default
16657 int
16658 main ()
16659 {
16660 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16661 test_array [0] = 0
16662
16663   ;
16664   return 0;
16665 }
16666 _ACEOF
16667 rm -f conftest.$ac_objext
16668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16669   (eval $ac_compile) 2>conftest.er1
16670   ac_status=$?
16671   grep -v '^ *+' conftest.er1 >conftest.err
16672   rm -f conftest.er1
16673   cat conftest.err >&5
16674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675   (exit $ac_status); } &&
16676          { ac_try='test -z "$ac_c_werror_flag"
16677                          || test ! -s conftest.err'
16678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16679   (eval $ac_try) 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; } &&
16683          { ac_try='test -s conftest.$ac_objext'
16684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16685   (eval $ac_try) 2>&5
16686   ac_status=$?
16687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688   (exit $ac_status); }; }; then
16689   ac_lo=$ac_mid; break
16690 else
16691   echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16693
16694 ac_hi=`expr '(' $ac_mid ')' - 1`
16695                        if test $ac_mid -le $ac_hi; then
16696                          ac_lo= ac_hi=
16697                          break
16698                        fi
16699                        ac_mid=`expr 2 '*' $ac_mid`
16700 fi
16701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16702   done
16703 else
16704   echo "$as_me: failed program was:" >&5
16705 sed 's/^/| /' conftest.$ac_ext >&5
16706
16707 ac_lo= ac_hi=
16708 fi
16709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16710 fi
16711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16712 # Binary search between lo and hi bounds.
16713 while test "x$ac_lo" != "x$ac_hi"; do
16714   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16715   cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h.  */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h.  */
16721 $ac_includes_default
16722 int
16723 main ()
16724 {
16725 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16726 test_array [0] = 0
16727
16728   ;
16729   return 0;
16730 }
16731 _ACEOF
16732 rm -f conftest.$ac_objext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16734   (eval $ac_compile) 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } &&
16741          { ac_try='test -z "$ac_c_werror_flag"
16742                          || test ! -s conftest.err'
16743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16744   (eval $ac_try) 2>&5
16745   ac_status=$?
16746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747   (exit $ac_status); }; } &&
16748          { ac_try='test -s conftest.$ac_objext'
16749   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16750   (eval $ac_try) 2>&5
16751   ac_status=$?
16752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16753   (exit $ac_status); }; }; then
16754   ac_hi=$ac_mid
16755 else
16756   echo "$as_me: failed program was:" >&5
16757 sed 's/^/| /' conftest.$ac_ext >&5
16758
16759 ac_lo=`expr '(' $ac_mid ')' + 1`
16760 fi
16761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16762 done
16763 case $ac_lo in
16764 ?*) ac_cv_sizeof_char=$ac_lo;;
16765 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16766 See \`config.log' for more details." >&5
16767 echo "$as_me: error: cannot compute sizeof (char), 77
16768 See \`config.log' for more details." >&2;}
16769    { (exit 1); exit 1; }; } ;;
16770 esac
16771 else
16772   if test "$cross_compiling" = yes; then
16773   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16774 See \`config.log' for more details." >&5
16775 echo "$as_me: error: cannot run test program while cross compiling
16776 See \`config.log' for more details." >&2;}
16777    { (exit 1); exit 1; }; }
16778 else
16779   cat >conftest.$ac_ext <<_ACEOF
16780 /* confdefs.h.  */
16781 _ACEOF
16782 cat confdefs.h >>conftest.$ac_ext
16783 cat >>conftest.$ac_ext <<_ACEOF
16784 /* end confdefs.h.  */
16785 $ac_includes_default
16786 long longval () { return (long) (sizeof (char)); }
16787 unsigned long ulongval () { return (long) (sizeof (char)); }
16788 #include <stdio.h>
16789 #include <stdlib.h>
16790 int
16791 main ()
16792 {
16793
16794   FILE *f = fopen ("conftest.val", "w");
16795   if (! f)
16796     exit (1);
16797   if (((long) (sizeof (char))) < 0)
16798     {
16799       long i = longval ();
16800       if (i != ((long) (sizeof (char))))
16801         exit (1);
16802       fprintf (f, "%ld\n", i);
16803     }
16804   else
16805     {
16806       unsigned long i = ulongval ();
16807       if (i != ((long) (sizeof (char))))
16808         exit (1);
16809       fprintf (f, "%lu\n", i);
16810     }
16811   exit (ferror (f) || fclose (f) != 0);
16812
16813   ;
16814   return 0;
16815 }
16816 _ACEOF
16817 rm -f conftest$ac_exeext
16818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16819   (eval $ac_link) 2>&5
16820   ac_status=$?
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824   (eval $ac_try) 2>&5
16825   ac_status=$?
16826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827   (exit $ac_status); }; }; then
16828   ac_cv_sizeof_char=`cat conftest.val`
16829 else
16830   echo "$as_me: program exited with status $ac_status" >&5
16831 echo "$as_me: failed program was:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16833
16834 ( exit $ac_status )
16835 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16836 See \`config.log' for more details." >&5
16837 echo "$as_me: error: cannot compute sizeof (char), 77
16838 See \`config.log' for more details." >&2;}
16839    { (exit 1); exit 1; }; }
16840 fi
16841 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16842 fi
16843 fi
16844 rm -f conftest.val
16845 else
16846   ac_cv_sizeof_char=0
16847 fi
16848 fi
16849 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16850 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16851 cat >>confdefs.h <<_ACEOF
16852 #define SIZEOF_CHAR $ac_cv_sizeof_char
16853 _ACEOF
16854
16855
16856 echo "$as_me:$LINENO: checking for short int" >&5
16857 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16858 if test "${ac_cv_type_short_int+set}" = set; then
16859   echo $ECHO_N "(cached) $ECHO_C" >&6
16860 else
16861   cat >conftest.$ac_ext <<_ACEOF
16862 /* confdefs.h.  */
16863 _ACEOF
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h.  */
16867 $ac_includes_default
16868 int
16869 main ()
16870 {
16871 if ((short int *) 0)
16872   return 0;
16873 if (sizeof (short int))
16874   return 0;
16875   ;
16876   return 0;
16877 }
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881   (eval $ac_compile) 2>conftest.er1
16882   ac_status=$?
16883   grep -v '^ *+' conftest.er1 >conftest.err
16884   rm -f conftest.er1
16885   cat conftest.err >&5
16886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16887   (exit $ac_status); } &&
16888          { ac_try='test -z "$ac_c_werror_flag"
16889                          || test ! -s conftest.err'
16890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16891   (eval $ac_try) 2>&5
16892   ac_status=$?
16893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16894   (exit $ac_status); }; } &&
16895          { ac_try='test -s conftest.$ac_objext'
16896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16897   (eval $ac_try) 2>&5
16898   ac_status=$?
16899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900   (exit $ac_status); }; }; then
16901   ac_cv_type_short_int=yes
16902 else
16903   echo "$as_me: failed program was:" >&5
16904 sed 's/^/| /' conftest.$ac_ext >&5
16905
16906 ac_cv_type_short_int=no
16907 fi
16908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16909 fi
16910 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16911 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16912
16913 echo "$as_me:$LINENO: checking size of short int" >&5
16914 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16915 if test "${ac_cv_sizeof_short_int+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   if test "$ac_cv_type_short_int" = yes; then
16919   # The cast to unsigned long works around a bug in the HP C Compiler
16920   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16921   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16922   # This bug is HP SR number 8606223364.
16923   if test "$cross_compiling" = yes; then
16924   # Depending upon the size, compute the lo and hi bounds.
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 $ac_includes_default
16932 int
16933 main ()
16934 {
16935 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16936 test_array [0] = 0
16937
16938   ;
16939   return 0;
16940 }
16941 _ACEOF
16942 rm -f conftest.$ac_objext
16943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16944   (eval $ac_compile) 2>conftest.er1
16945   ac_status=$?
16946   grep -v '^ *+' conftest.er1 >conftest.err
16947   rm -f conftest.er1
16948   cat conftest.err >&5
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); } &&
16951          { ac_try='test -z "$ac_c_werror_flag"
16952                          || test ! -s conftest.err'
16953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954   (eval $ac_try) 2>&5
16955   ac_status=$?
16956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957   (exit $ac_status); }; } &&
16958          { ac_try='test -s conftest.$ac_objext'
16959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16960   (eval $ac_try) 2>&5
16961   ac_status=$?
16962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963   (exit $ac_status); }; }; then
16964   ac_lo=0 ac_mid=0
16965   while :; do
16966     cat >conftest.$ac_ext <<_ACEOF
16967 /* confdefs.h.  */
16968 _ACEOF
16969 cat confdefs.h >>conftest.$ac_ext
16970 cat >>conftest.$ac_ext <<_ACEOF
16971 /* end confdefs.h.  */
16972 $ac_includes_default
16973 int
16974 main ()
16975 {
16976 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16977 test_array [0] = 0
16978
16979   ;
16980   return 0;
16981 }
16982 _ACEOF
16983 rm -f conftest.$ac_objext
16984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16985   (eval $ac_compile) 2>conftest.er1
16986   ac_status=$?
16987   grep -v '^ *+' conftest.er1 >conftest.err
16988   rm -f conftest.er1
16989   cat conftest.err >&5
16990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991   (exit $ac_status); } &&
16992          { ac_try='test -z "$ac_c_werror_flag"
16993                          || test ! -s conftest.err'
16994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995   (eval $ac_try) 2>&5
16996   ac_status=$?
16997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998   (exit $ac_status); }; } &&
16999          { ac_try='test -s conftest.$ac_objext'
17000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001   (eval $ac_try) 2>&5
17002   ac_status=$?
17003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004   (exit $ac_status); }; }; then
17005   ac_hi=$ac_mid; break
17006 else
17007   echo "$as_me: failed program was:" >&5
17008 sed 's/^/| /' conftest.$ac_ext >&5
17009
17010 ac_lo=`expr $ac_mid + 1`
17011                     if test $ac_lo -le $ac_mid; then
17012                       ac_lo= ac_hi=
17013                       break
17014                     fi
17015                     ac_mid=`expr 2 '*' $ac_mid + 1`
17016 fi
17017 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17018   done
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 cat >conftest.$ac_ext <<_ACEOF
17024 /* confdefs.h.  */
17025 _ACEOF
17026 cat confdefs.h >>conftest.$ac_ext
17027 cat >>conftest.$ac_ext <<_ACEOF
17028 /* end confdefs.h.  */
17029 $ac_includes_default
17030 int
17031 main ()
17032 {
17033 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17034 test_array [0] = 0
17035
17036   ;
17037   return 0;
17038 }
17039 _ACEOF
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042   (eval $ac_compile) 2>conftest.er1
17043   ac_status=$?
17044   grep -v '^ *+' conftest.er1 >conftest.err
17045   rm -f conftest.er1
17046   cat conftest.err >&5
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); } &&
17049          { ac_try='test -z "$ac_c_werror_flag"
17050                          || test ! -s conftest.err'
17051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052   (eval $ac_try) 2>&5
17053   ac_status=$?
17054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055   (exit $ac_status); }; } &&
17056          { ac_try='test -s conftest.$ac_objext'
17057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058   (eval $ac_try) 2>&5
17059   ac_status=$?
17060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061   (exit $ac_status); }; }; then
17062   ac_hi=-1 ac_mid=-1
17063   while :; do
17064     cat >conftest.$ac_ext <<_ACEOF
17065 /* confdefs.h.  */
17066 _ACEOF
17067 cat confdefs.h >>conftest.$ac_ext
17068 cat >>conftest.$ac_ext <<_ACEOF
17069 /* end confdefs.h.  */
17070 $ac_includes_default
17071 int
17072 main ()
17073 {
17074 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17075 test_array [0] = 0
17076
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 rm -f conftest.$ac_objext
17082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17083   (eval $ac_compile) 2>conftest.er1
17084   ac_status=$?
17085   grep -v '^ *+' conftest.er1 >conftest.err
17086   rm -f conftest.er1
17087   cat conftest.err >&5
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); } &&
17090          { ac_try='test -z "$ac_c_werror_flag"
17091                          || test ! -s conftest.err'
17092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093   (eval $ac_try) 2>&5
17094   ac_status=$?
17095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096   (exit $ac_status); }; } &&
17097          { ac_try='test -s conftest.$ac_objext'
17098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099   (eval $ac_try) 2>&5
17100   ac_status=$?
17101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102   (exit $ac_status); }; }; then
17103   ac_lo=$ac_mid; break
17104 else
17105   echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 ac_hi=`expr '(' $ac_mid ')' - 1`
17109                        if test $ac_mid -le $ac_hi; then
17110                          ac_lo= ac_hi=
17111                          break
17112                        fi
17113                        ac_mid=`expr 2 '*' $ac_mid`
17114 fi
17115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17116   done
17117 else
17118   echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.$ac_ext >&5
17120
17121 ac_lo= ac_hi=
17122 fi
17123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17124 fi
17125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17126 # Binary search between lo and hi bounds.
17127 while test "x$ac_lo" != "x$ac_hi"; do
17128   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17129   cat >conftest.$ac_ext <<_ACEOF
17130 /* confdefs.h.  */
17131 _ACEOF
17132 cat confdefs.h >>conftest.$ac_ext
17133 cat >>conftest.$ac_ext <<_ACEOF
17134 /* end confdefs.h.  */
17135 $ac_includes_default
17136 int
17137 main ()
17138 {
17139 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17140 test_array [0] = 0
17141
17142   ;
17143   return 0;
17144 }
17145 _ACEOF
17146 rm -f conftest.$ac_objext
17147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148   (eval $ac_compile) 2>conftest.er1
17149   ac_status=$?
17150   grep -v '^ *+' conftest.er1 >conftest.err
17151   rm -f conftest.er1
17152   cat conftest.err >&5
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); } &&
17155          { ac_try='test -z "$ac_c_werror_flag"
17156                          || test ! -s conftest.err'
17157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158   (eval $ac_try) 2>&5
17159   ac_status=$?
17160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161   (exit $ac_status); }; } &&
17162          { ac_try='test -s conftest.$ac_objext'
17163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164   (eval $ac_try) 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168   ac_hi=$ac_mid
17169 else
17170   echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ac_lo=`expr '(' $ac_mid ')' + 1`
17174 fi
17175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17176 done
17177 case $ac_lo in
17178 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17179 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17180 See \`config.log' for more details." >&5
17181 echo "$as_me: error: cannot compute sizeof (short int), 77
17182 See \`config.log' for more details." >&2;}
17183    { (exit 1); exit 1; }; } ;;
17184 esac
17185 else
17186   if test "$cross_compiling" = yes; then
17187   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17188 See \`config.log' for more details." >&5
17189 echo "$as_me: error: cannot run test program while cross compiling
17190 See \`config.log' for more details." >&2;}
17191    { (exit 1); exit 1; }; }
17192 else
17193   cat >conftest.$ac_ext <<_ACEOF
17194 /* confdefs.h.  */
17195 _ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h.  */
17199 $ac_includes_default
17200 long longval () { return (long) (sizeof (short int)); }
17201 unsigned long ulongval () { return (long) (sizeof (short int)); }
17202 #include <stdio.h>
17203 #include <stdlib.h>
17204 int
17205 main ()
17206 {
17207
17208   FILE *f = fopen ("conftest.val", "w");
17209   if (! f)
17210     exit (1);
17211   if (((long) (sizeof (short int))) < 0)
17212     {
17213       long i = longval ();
17214       if (i != ((long) (sizeof (short int))))
17215         exit (1);
17216       fprintf (f, "%ld\n", i);
17217     }
17218   else
17219     {
17220       unsigned long i = ulongval ();
17221       if (i != ((long) (sizeof (short int))))
17222         exit (1);
17223       fprintf (f, "%lu\n", i);
17224     }
17225   exit (ferror (f) || fclose (f) != 0);
17226
17227   ;
17228   return 0;
17229 }
17230 _ACEOF
17231 rm -f conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233   (eval $ac_link) 2>&5
17234   ac_status=$?
17235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17238   (eval $ac_try) 2>&5
17239   ac_status=$?
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); }; }; then
17242   ac_cv_sizeof_short_int=`cat conftest.val`
17243 else
17244   echo "$as_me: program exited with status $ac_status" >&5
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17247
17248 ( exit $ac_status )
17249 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17250 See \`config.log' for more details." >&5
17251 echo "$as_me: error: cannot compute sizeof (short int), 77
17252 See \`config.log' for more details." >&2;}
17253    { (exit 1); exit 1; }; }
17254 fi
17255 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17256 fi
17257 fi
17258 rm -f conftest.val
17259 else
17260   ac_cv_sizeof_short_int=0
17261 fi
17262 fi
17263 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17264 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17265 cat >>confdefs.h <<_ACEOF
17266 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17267 _ACEOF
17268
17269
17270 echo "$as_me:$LINENO: checking for int" >&5
17271 echo $ECHO_N "checking for int... $ECHO_C" >&6
17272 if test "${ac_cv_type_int+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 $ac_includes_default
17282 int
17283 main ()
17284 {
17285 if ((int *) 0)
17286   return 0;
17287 if (sizeof (int))
17288   return 0;
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext
17294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17295   (eval $ac_compile) 2>conftest.er1
17296   ac_status=$?
17297   grep -v '^ *+' conftest.er1 >conftest.err
17298   rm -f conftest.er1
17299   cat conftest.err >&5
17300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301   (exit $ac_status); } &&
17302          { ac_try='test -z "$ac_c_werror_flag"
17303                          || test ! -s conftest.err'
17304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305   (eval $ac_try) 2>&5
17306   ac_status=$?
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); }; } &&
17309          { ac_try='test -s conftest.$ac_objext'
17310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17311   (eval $ac_try) 2>&5
17312   ac_status=$?
17313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17314   (exit $ac_status); }; }; then
17315   ac_cv_type_int=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320 ac_cv_type_int=no
17321 fi
17322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17323 fi
17324 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17325 echo "${ECHO_T}$ac_cv_type_int" >&6
17326
17327 echo "$as_me:$LINENO: checking size of int" >&5
17328 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17329 if test "${ac_cv_sizeof_int+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   if test "$ac_cv_type_int" = yes; then
17333   # The cast to unsigned long works around a bug in the HP C Compiler
17334   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17335   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17336   # This bug is HP SR number 8606223364.
17337   if test "$cross_compiling" = yes; then
17338   # Depending upon the size, compute the lo and hi bounds.
17339 cat >conftest.$ac_ext <<_ACEOF
17340 /* confdefs.h.  */
17341 _ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h.  */
17345 $ac_includes_default
17346 int
17347 main ()
17348 {
17349 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17350 test_array [0] = 0
17351
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358   (eval $ac_compile) 2>conftest.er1
17359   ac_status=$?
17360   grep -v '^ *+' conftest.er1 >conftest.err
17361   rm -f conftest.er1
17362   cat conftest.err >&5
17363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364   (exit $ac_status); } &&
17365          { ac_try='test -z "$ac_c_werror_flag"
17366                          || test ! -s conftest.err'
17367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17368   (eval $ac_try) 2>&5
17369   ac_status=$?
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); }; } &&
17372          { ac_try='test -s conftest.$ac_objext'
17373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374   (eval $ac_try) 2>&5
17375   ac_status=$?
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); }; }; then
17378   ac_lo=0 ac_mid=0
17379   while :; do
17380     cat >conftest.$ac_ext <<_ACEOF
17381 /* confdefs.h.  */
17382 _ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h.  */
17386 $ac_includes_default
17387 int
17388 main ()
17389 {
17390 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17391 test_array [0] = 0
17392
17393   ;
17394   return 0;
17395 }
17396 _ACEOF
17397 rm -f conftest.$ac_objext
17398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17399   (eval $ac_compile) 2>conftest.er1
17400   ac_status=$?
17401   grep -v '^ *+' conftest.er1 >conftest.err
17402   rm -f conftest.er1
17403   cat conftest.err >&5
17404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405   (exit $ac_status); } &&
17406          { ac_try='test -z "$ac_c_werror_flag"
17407                          || test ! -s conftest.err'
17408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409   (eval $ac_try) 2>&5
17410   ac_status=$?
17411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412   (exit $ac_status); }; } &&
17413          { ac_try='test -s conftest.$ac_objext'
17414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17415   (eval $ac_try) 2>&5
17416   ac_status=$?
17417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17418   (exit $ac_status); }; }; then
17419   ac_hi=$ac_mid; break
17420 else
17421   echo "$as_me: failed program was:" >&5
17422 sed 's/^/| /' conftest.$ac_ext >&5
17423
17424 ac_lo=`expr $ac_mid + 1`
17425                     if test $ac_lo -le $ac_mid; then
17426                       ac_lo= ac_hi=
17427                       break
17428                     fi
17429                     ac_mid=`expr 2 '*' $ac_mid + 1`
17430 fi
17431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17432   done
17433 else
17434   echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 cat >conftest.$ac_ext <<_ACEOF
17438 /* confdefs.h.  */
17439 _ACEOF
17440 cat confdefs.h >>conftest.$ac_ext
17441 cat >>conftest.$ac_ext <<_ACEOF
17442 /* end confdefs.h.  */
17443 $ac_includes_default
17444 int
17445 main ()
17446 {
17447 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17448 test_array [0] = 0
17449
17450   ;
17451   return 0;
17452 }
17453 _ACEOF
17454 rm -f conftest.$ac_objext
17455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17456   (eval $ac_compile) 2>conftest.er1
17457   ac_status=$?
17458   grep -v '^ *+' conftest.er1 >conftest.err
17459   rm -f conftest.er1
17460   cat conftest.err >&5
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); } &&
17463          { ac_try='test -z "$ac_c_werror_flag"
17464                          || test ! -s conftest.err'
17465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466   (eval $ac_try) 2>&5
17467   ac_status=$?
17468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); }; } &&
17470          { ac_try='test -s conftest.$ac_objext'
17471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472   (eval $ac_try) 2>&5
17473   ac_status=$?
17474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475   (exit $ac_status); }; }; then
17476   ac_hi=-1 ac_mid=-1
17477   while :; do
17478     cat >conftest.$ac_ext <<_ACEOF
17479 /* confdefs.h.  */
17480 _ACEOF
17481 cat confdefs.h >>conftest.$ac_ext
17482 cat >>conftest.$ac_ext <<_ACEOF
17483 /* end confdefs.h.  */
17484 $ac_includes_default
17485 int
17486 main ()
17487 {
17488 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17489 test_array [0] = 0
17490
17491   ;
17492   return 0;
17493 }
17494 _ACEOF
17495 rm -f conftest.$ac_objext
17496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17497   (eval $ac_compile) 2>conftest.er1
17498   ac_status=$?
17499   grep -v '^ *+' conftest.er1 >conftest.err
17500   rm -f conftest.er1
17501   cat conftest.err >&5
17502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503   (exit $ac_status); } &&
17504          { ac_try='test -z "$ac_c_werror_flag"
17505                          || test ! -s conftest.err'
17506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507   (eval $ac_try) 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; } &&
17511          { ac_try='test -s conftest.$ac_objext'
17512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17513   (eval $ac_try) 2>&5
17514   ac_status=$?
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); }; }; then
17517   ac_lo=$ac_mid; break
17518 else
17519   echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17521
17522 ac_hi=`expr '(' $ac_mid ')' - 1`
17523                        if test $ac_mid -le $ac_hi; then
17524                          ac_lo= ac_hi=
17525                          break
17526                        fi
17527                        ac_mid=`expr 2 '*' $ac_mid`
17528 fi
17529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17530   done
17531 else
17532   echo "$as_me: failed program was:" >&5
17533 sed 's/^/| /' conftest.$ac_ext >&5
17534
17535 ac_lo= ac_hi=
17536 fi
17537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17538 fi
17539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17540 # Binary search between lo and hi bounds.
17541 while test "x$ac_lo" != "x$ac_hi"; do
17542   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17543   cat >conftest.$ac_ext <<_ACEOF
17544 /* confdefs.h.  */
17545 _ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h.  */
17549 $ac_includes_default
17550 int
17551 main ()
17552 {
17553 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17554 test_array [0] = 0
17555
17556   ;
17557   return 0;
17558 }
17559 _ACEOF
17560 rm -f conftest.$ac_objext
17561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17562   (eval $ac_compile) 2>conftest.er1
17563   ac_status=$?
17564   grep -v '^ *+' conftest.er1 >conftest.err
17565   rm -f conftest.er1
17566   cat conftest.err >&5
17567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568   (exit $ac_status); } &&
17569          { ac_try='test -z "$ac_c_werror_flag"
17570                          || test ! -s conftest.err'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; } &&
17576          { ac_try='test -s conftest.$ac_objext'
17577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17578   (eval $ac_try) 2>&5
17579   ac_status=$?
17580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17581   (exit $ac_status); }; }; then
17582   ac_hi=$ac_mid
17583 else
17584   echo "$as_me: failed program was:" >&5
17585 sed 's/^/| /' conftest.$ac_ext >&5
17586
17587 ac_lo=`expr '(' $ac_mid ')' + 1`
17588 fi
17589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17590 done
17591 case $ac_lo in
17592 ?*) ac_cv_sizeof_int=$ac_lo;;
17593 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17594 See \`config.log' for more details." >&5
17595 echo "$as_me: error: cannot compute sizeof (int), 77
17596 See \`config.log' for more details." >&2;}
17597    { (exit 1); exit 1; }; } ;;
17598 esac
17599 else
17600   if test "$cross_compiling" = yes; then
17601   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17602 See \`config.log' for more details." >&5
17603 echo "$as_me: error: cannot run test program while cross compiling
17604 See \`config.log' for more details." >&2;}
17605    { (exit 1); exit 1; }; }
17606 else
17607   cat >conftest.$ac_ext <<_ACEOF
17608 /* confdefs.h.  */
17609 _ACEOF
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h.  */
17613 $ac_includes_default
17614 long longval () { return (long) (sizeof (int)); }
17615 unsigned long ulongval () { return (long) (sizeof (int)); }
17616 #include <stdio.h>
17617 #include <stdlib.h>
17618 int
17619 main ()
17620 {
17621
17622   FILE *f = fopen ("conftest.val", "w");
17623   if (! f)
17624     exit (1);
17625   if (((long) (sizeof (int))) < 0)
17626     {
17627       long i = longval ();
17628       if (i != ((long) (sizeof (int))))
17629         exit (1);
17630       fprintf (f, "%ld\n", i);
17631     }
17632   else
17633     {
17634       unsigned long i = ulongval ();
17635       if (i != ((long) (sizeof (int))))
17636         exit (1);
17637       fprintf (f, "%lu\n", i);
17638     }
17639   exit (ferror (f) || fclose (f) != 0);
17640
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest$ac_exeext
17646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17647   (eval $ac_link) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17652   (eval $ac_try) 2>&5
17653   ac_status=$?
17654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655   (exit $ac_status); }; }; then
17656   ac_cv_sizeof_int=`cat conftest.val`
17657 else
17658   echo "$as_me: program exited with status $ac_status" >&5
17659 echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 ( exit $ac_status )
17663 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17664 See \`config.log' for more details." >&5
17665 echo "$as_me: error: cannot compute sizeof (int), 77
17666 See \`config.log' for more details." >&2;}
17667    { (exit 1); exit 1; }; }
17668 fi
17669 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17670 fi
17671 fi
17672 rm -f conftest.val
17673 else
17674   ac_cv_sizeof_int=0
17675 fi
17676 fi
17677 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17678 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17679 cat >>confdefs.h <<_ACEOF
17680 #define SIZEOF_INT $ac_cv_sizeof_int
17681 _ACEOF
17682
17683
17684 echo "$as_me:$LINENO: checking for long int" >&5
17685 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17686 if test "${ac_cv_type_long_int+set}" = set; then
17687   echo $ECHO_N "(cached) $ECHO_C" >&6
17688 else
17689   cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695 $ac_includes_default
17696 int
17697 main ()
17698 {
17699 if ((long int *) 0)
17700   return 0;
17701 if (sizeof (long int))
17702   return 0;
17703   ;
17704   return 0;
17705 }
17706 _ACEOF
17707 rm -f conftest.$ac_objext
17708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17709   (eval $ac_compile) 2>conftest.er1
17710   ac_status=$?
17711   grep -v '^ *+' conftest.er1 >conftest.err
17712   rm -f conftest.er1
17713   cat conftest.err >&5
17714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715   (exit $ac_status); } &&
17716          { ac_try='test -z "$ac_c_werror_flag"
17717                          || test ! -s conftest.err'
17718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719   (eval $ac_try) 2>&5
17720   ac_status=$?
17721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722   (exit $ac_status); }; } &&
17723          { ac_try='test -s conftest.$ac_objext'
17724   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725   (eval $ac_try) 2>&5
17726   ac_status=$?
17727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728   (exit $ac_status); }; }; then
17729   ac_cv_type_long_int=yes
17730 else
17731   echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17733
17734 ac_cv_type_long_int=no
17735 fi
17736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17737 fi
17738 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17739 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17740
17741 echo "$as_me:$LINENO: checking size of long int" >&5
17742 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17743 if test "${ac_cv_sizeof_long_int+set}" = set; then
17744   echo $ECHO_N "(cached) $ECHO_C" >&6
17745 else
17746   if test "$ac_cv_type_long_int" = yes; then
17747   # The cast to unsigned long works around a bug in the HP C Compiler
17748   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17749   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17750   # This bug is HP SR number 8606223364.
17751   if test "$cross_compiling" = yes; then
17752   # Depending upon the size, compute the lo and hi bounds.
17753 cat >conftest.$ac_ext <<_ACEOF
17754 /* confdefs.h.  */
17755 _ACEOF
17756 cat confdefs.h >>conftest.$ac_ext
17757 cat >>conftest.$ac_ext <<_ACEOF
17758 /* end confdefs.h.  */
17759 $ac_includes_default
17760 int
17761 main ()
17762 {
17763 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17764 test_array [0] = 0
17765
17766   ;
17767   return 0;
17768 }
17769 _ACEOF
17770 rm -f conftest.$ac_objext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17772   (eval $ac_compile) 2>conftest.er1
17773   ac_status=$?
17774   grep -v '^ *+' conftest.er1 >conftest.err
17775   rm -f conftest.er1
17776   cat conftest.err >&5
17777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778   (exit $ac_status); } &&
17779          { ac_try='test -z "$ac_c_werror_flag"
17780                          || test ! -s conftest.err'
17781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17782   (eval $ac_try) 2>&5
17783   ac_status=$?
17784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17785   (exit $ac_status); }; } &&
17786          { ac_try='test -s conftest.$ac_objext'
17787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788   (eval $ac_try) 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; }; then
17792   ac_lo=0 ac_mid=0
17793   while :; do
17794     cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800 $ac_includes_default
17801 int
17802 main ()
17803 {
17804 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17805 test_array [0] = 0
17806
17807   ;
17808   return 0;
17809 }
17810 _ACEOF
17811 rm -f conftest.$ac_objext
17812 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17813   (eval $ac_compile) 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } &&
17820          { ac_try='test -z "$ac_c_werror_flag"
17821                          || test ! -s conftest.err'
17822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17823   (eval $ac_try) 2>&5
17824   ac_status=$?
17825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826   (exit $ac_status); }; } &&
17827          { ac_try='test -s conftest.$ac_objext'
17828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829   (eval $ac_try) 2>&5
17830   ac_status=$?
17831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832   (exit $ac_status); }; }; then
17833   ac_hi=$ac_mid; break
17834 else
17835   echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_lo=`expr $ac_mid + 1`
17839                     if test $ac_lo -le $ac_mid; then
17840                       ac_lo= ac_hi=
17841                       break
17842                     fi
17843                     ac_mid=`expr 2 '*' $ac_mid + 1`
17844 fi
17845 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17846   done
17847 else
17848   echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17850
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h.  */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h.  */
17857 $ac_includes_default
17858 int
17859 main ()
17860 {
17861 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17862 test_array [0] = 0
17863
17864   ;
17865   return 0;
17866 }
17867 _ACEOF
17868 rm -f conftest.$ac_objext
17869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17870   (eval $ac_compile) 2>conftest.er1
17871   ac_status=$?
17872   grep -v '^ *+' conftest.er1 >conftest.err
17873   rm -f conftest.er1
17874   cat conftest.err >&5
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); } &&
17877          { ac_try='test -z "$ac_c_werror_flag"
17878                          || test ! -s conftest.err'
17879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17880   (eval $ac_try) 2>&5
17881   ac_status=$?
17882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883   (exit $ac_status); }; } &&
17884          { ac_try='test -s conftest.$ac_objext'
17885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17886   (eval $ac_try) 2>&5
17887   ac_status=$?
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); }; }; then
17890   ac_hi=-1 ac_mid=-1
17891   while :; do
17892     cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h.  */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h.  */
17898 $ac_includes_default
17899 int
17900 main ()
17901 {
17902 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17903 test_array [0] = 0
17904
17905   ;
17906   return 0;
17907 }
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17911   (eval $ac_compile) 2>conftest.er1
17912   ac_status=$?
17913   grep -v '^ *+' conftest.er1 >conftest.err
17914   rm -f conftest.er1
17915   cat conftest.err >&5
17916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917   (exit $ac_status); } &&
17918          { ac_try='test -z "$ac_c_werror_flag"
17919                          || test ! -s conftest.err'
17920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17921   (eval $ac_try) 2>&5
17922   ac_status=$?
17923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924   (exit $ac_status); }; } &&
17925          { ac_try='test -s conftest.$ac_objext'
17926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927   (eval $ac_try) 2>&5
17928   ac_status=$?
17929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930   (exit $ac_status); }; }; then
17931   ac_lo=$ac_mid; break
17932 else
17933   echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.$ac_ext >&5
17935
17936 ac_hi=`expr '(' $ac_mid ')' - 1`
17937                        if test $ac_mid -le $ac_hi; then
17938                          ac_lo= ac_hi=
17939                          break
17940                        fi
17941                        ac_mid=`expr 2 '*' $ac_mid`
17942 fi
17943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17944   done
17945 else
17946   echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 ac_lo= ac_hi=
17950 fi
17951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17952 fi
17953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17954 # Binary search between lo and hi bounds.
17955 while test "x$ac_lo" != "x$ac_hi"; do
17956   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17957   cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 $ac_includes_default
17964 int
17965 main ()
17966 {
17967 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17968 test_array [0] = 0
17969
17970   ;
17971   return 0;
17972 }
17973 _ACEOF
17974 rm -f conftest.$ac_objext
17975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17976   (eval $ac_compile) 2>conftest.er1
17977   ac_status=$?
17978   grep -v '^ *+' conftest.er1 >conftest.err
17979   rm -f conftest.er1
17980   cat conftest.err >&5
17981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982   (exit $ac_status); } &&
17983          { ac_try='test -z "$ac_c_werror_flag"
17984                          || test ! -s conftest.err'
17985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17986   (eval $ac_try) 2>&5
17987   ac_status=$?
17988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989   (exit $ac_status); }; } &&
17990          { ac_try='test -s conftest.$ac_objext'
17991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17992   (eval $ac_try) 2>&5
17993   ac_status=$?
17994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995   (exit $ac_status); }; }; then
17996   ac_hi=$ac_mid
17997 else
17998   echo "$as_me: failed program was:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18000
18001 ac_lo=`expr '(' $ac_mid ')' + 1`
18002 fi
18003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18004 done
18005 case $ac_lo in
18006 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18008 See \`config.log' for more details." >&5
18009 echo "$as_me: error: cannot compute sizeof (long int), 77
18010 See \`config.log' for more details." >&2;}
18011    { (exit 1); exit 1; }; } ;;
18012 esac
18013 else
18014   if test "$cross_compiling" = yes; then
18015   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18016 See \`config.log' for more details." >&5
18017 echo "$as_me: error: cannot run test program while cross compiling
18018 See \`config.log' for more details." >&2;}
18019    { (exit 1); exit 1; }; }
18020 else
18021   cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 $ac_includes_default
18028 long longval () { return (long) (sizeof (long int)); }
18029 unsigned long ulongval () { return (long) (sizeof (long int)); }
18030 #include <stdio.h>
18031 #include <stdlib.h>
18032 int
18033 main ()
18034 {
18035
18036   FILE *f = fopen ("conftest.val", "w");
18037   if (! f)
18038     exit (1);
18039   if (((long) (sizeof (long int))) < 0)
18040     {
18041       long i = longval ();
18042       if (i != ((long) (sizeof (long int))))
18043         exit (1);
18044       fprintf (f, "%ld\n", i);
18045     }
18046   else
18047     {
18048       unsigned long i = ulongval ();
18049       if (i != ((long) (sizeof (long int))))
18050         exit (1);
18051       fprintf (f, "%lu\n", i);
18052     }
18053   exit (ferror (f) || fclose (f) != 0);
18054
18055   ;
18056   return 0;
18057 }
18058 _ACEOF
18059 rm -f conftest$ac_exeext
18060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061   (eval $ac_link) 2>&5
18062   ac_status=$?
18063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18066   (eval $ac_try) 2>&5
18067   ac_status=$?
18068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069   (exit $ac_status); }; }; then
18070   ac_cv_sizeof_long_int=`cat conftest.val`
18071 else
18072   echo "$as_me: program exited with status $ac_status" >&5
18073 echo "$as_me: failed program was:" >&5
18074 sed 's/^/| /' conftest.$ac_ext >&5
18075
18076 ( exit $ac_status )
18077 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18078 See \`config.log' for more details." >&5
18079 echo "$as_me: error: cannot compute sizeof (long int), 77
18080 See \`config.log' for more details." >&2;}
18081    { (exit 1); exit 1; }; }
18082 fi
18083 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18084 fi
18085 fi
18086 rm -f conftest.val
18087 else
18088   ac_cv_sizeof_long_int=0
18089 fi
18090 fi
18091 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18092 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18093 cat >>confdefs.h <<_ACEOF
18094 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18095 _ACEOF
18096
18097
18098 echo "$as_me:$LINENO: checking for long long int" >&5
18099 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18100 if test "${ac_cv_type_long_long_int+set}" = set; then
18101   echo $ECHO_N "(cached) $ECHO_C" >&6
18102 else
18103   cat >conftest.$ac_ext <<_ACEOF
18104 /* confdefs.h.  */
18105 _ACEOF
18106 cat confdefs.h >>conftest.$ac_ext
18107 cat >>conftest.$ac_ext <<_ACEOF
18108 /* end confdefs.h.  */
18109 $ac_includes_default
18110 int
18111 main ()
18112 {
18113 if ((long long int *) 0)
18114   return 0;
18115 if (sizeof (long long int))
18116   return 0;
18117   ;
18118   return 0;
18119 }
18120 _ACEOF
18121 rm -f conftest.$ac_objext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123   (eval $ac_compile) 2>conftest.er1
18124   ac_status=$?
18125   grep -v '^ *+' conftest.er1 >conftest.err
18126   rm -f conftest.er1
18127   cat conftest.err >&5
18128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129   (exit $ac_status); } &&
18130          { ac_try='test -z "$ac_c_werror_flag"
18131                          || test ! -s conftest.err'
18132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133   (eval $ac_try) 2>&5
18134   ac_status=$?
18135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136   (exit $ac_status); }; } &&
18137          { ac_try='test -s conftest.$ac_objext'
18138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139   (eval $ac_try) 2>&5
18140   ac_status=$?
18141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142   (exit $ac_status); }; }; then
18143   ac_cv_type_long_long_int=yes
18144 else
18145   echo "$as_me: failed program was:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18147
18148 ac_cv_type_long_long_int=no
18149 fi
18150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18151 fi
18152 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18153 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18154
18155 echo "$as_me:$LINENO: checking size of long long int" >&5
18156 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18157 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18158   echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160   if test "$ac_cv_type_long_long_int" = yes; then
18161   # The cast to unsigned long works around a bug in the HP C Compiler
18162   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18163   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18164   # This bug is HP SR number 8606223364.
18165   if test "$cross_compiling" = yes; then
18166   # Depending upon the size, compute the lo and hi bounds.
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 $ac_includes_default
18174 int
18175 main ()
18176 {
18177 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18178 test_array [0] = 0
18179
18180   ;
18181   return 0;
18182 }
18183 _ACEOF
18184 rm -f conftest.$ac_objext
18185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18186   (eval $ac_compile) 2>conftest.er1
18187   ac_status=$?
18188   grep -v '^ *+' conftest.er1 >conftest.err
18189   rm -f conftest.er1
18190   cat conftest.err >&5
18191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192   (exit $ac_status); } &&
18193          { ac_try='test -z "$ac_c_werror_flag"
18194                          || test ! -s conftest.err'
18195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18196   (eval $ac_try) 2>&5
18197   ac_status=$?
18198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199   (exit $ac_status); }; } &&
18200          { ac_try='test -s conftest.$ac_objext'
18201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18202   (eval $ac_try) 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   ac_lo=0 ac_mid=0
18207   while :; do
18208     cat >conftest.$ac_ext <<_ACEOF
18209 /* confdefs.h.  */
18210 _ACEOF
18211 cat confdefs.h >>conftest.$ac_ext
18212 cat >>conftest.$ac_ext <<_ACEOF
18213 /* end confdefs.h.  */
18214 $ac_includes_default
18215 int
18216 main ()
18217 {
18218 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18219 test_array [0] = 0
18220
18221   ;
18222   return 0;
18223 }
18224 _ACEOF
18225 rm -f conftest.$ac_objext
18226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18227   (eval $ac_compile) 2>conftest.er1
18228   ac_status=$?
18229   grep -v '^ *+' conftest.er1 >conftest.err
18230   rm -f conftest.er1
18231   cat conftest.err >&5
18232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18233   (exit $ac_status); } &&
18234          { ac_try='test -z "$ac_c_werror_flag"
18235                          || test ! -s conftest.err'
18236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18237   (eval $ac_try) 2>&5
18238   ac_status=$?
18239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240   (exit $ac_status); }; } &&
18241          { ac_try='test -s conftest.$ac_objext'
18242   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243   (eval $ac_try) 2>&5
18244   ac_status=$?
18245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246   (exit $ac_status); }; }; then
18247   ac_hi=$ac_mid; break
18248 else
18249   echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252 ac_lo=`expr $ac_mid + 1`
18253                     if test $ac_lo -le $ac_mid; then
18254                       ac_lo= ac_hi=
18255                       break
18256                     fi
18257                     ac_mid=`expr 2 '*' $ac_mid + 1`
18258 fi
18259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18260   done
18261 else
18262   echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18264
18265 cat >conftest.$ac_ext <<_ACEOF
18266 /* confdefs.h.  */
18267 _ACEOF
18268 cat confdefs.h >>conftest.$ac_ext
18269 cat >>conftest.$ac_ext <<_ACEOF
18270 /* end confdefs.h.  */
18271 $ac_includes_default
18272 int
18273 main ()
18274 {
18275 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18276 test_array [0] = 0
18277
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18284   (eval $ac_compile) 2>conftest.er1
18285   ac_status=$?
18286   grep -v '^ *+' conftest.er1 >conftest.err
18287   rm -f conftest.er1
18288   cat conftest.err >&5
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); } &&
18291          { ac_try='test -z "$ac_c_werror_flag"
18292                          || test ! -s conftest.err'
18293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294   (eval $ac_try) 2>&5
18295   ac_status=$?
18296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297   (exit $ac_status); }; } &&
18298          { ac_try='test -s conftest.$ac_objext'
18299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18300   (eval $ac_try) 2>&5
18301   ac_status=$?
18302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18303   (exit $ac_status); }; }; then
18304   ac_hi=-1 ac_mid=-1
18305   while :; do
18306     cat >conftest.$ac_ext <<_ACEOF
18307 /* confdefs.h.  */
18308 _ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h.  */
18312 $ac_includes_default
18313 int
18314 main ()
18315 {
18316 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18317 test_array [0] = 0
18318
18319   ;
18320   return 0;
18321 }
18322 _ACEOF
18323 rm -f conftest.$ac_objext
18324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18325   (eval $ac_compile) 2>conftest.er1
18326   ac_status=$?
18327   grep -v '^ *+' conftest.er1 >conftest.err
18328   rm -f conftest.er1
18329   cat conftest.err >&5
18330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18331   (exit $ac_status); } &&
18332          { ac_try='test -z "$ac_c_werror_flag"
18333                          || test ! -s conftest.err'
18334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18335   (eval $ac_try) 2>&5
18336   ac_status=$?
18337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338   (exit $ac_status); }; } &&
18339          { ac_try='test -s conftest.$ac_objext'
18340   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18341   (eval $ac_try) 2>&5
18342   ac_status=$?
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); }; }; then
18345   ac_lo=$ac_mid; break
18346 else
18347   echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18349
18350 ac_hi=`expr '(' $ac_mid ')' - 1`
18351                        if test $ac_mid -le $ac_hi; then
18352                          ac_lo= ac_hi=
18353                          break
18354                        fi
18355                        ac_mid=`expr 2 '*' $ac_mid`
18356 fi
18357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18358   done
18359 else
18360   echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363 ac_lo= ac_hi=
18364 fi
18365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18366 fi
18367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18368 # Binary search between lo and hi bounds.
18369 while test "x$ac_lo" != "x$ac_hi"; do
18370   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18371   cat >conftest.$ac_ext <<_ACEOF
18372 /* confdefs.h.  */
18373 _ACEOF
18374 cat confdefs.h >>conftest.$ac_ext
18375 cat >>conftest.$ac_ext <<_ACEOF
18376 /* end confdefs.h.  */
18377 $ac_includes_default
18378 int
18379 main ()
18380 {
18381 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18382 test_array [0] = 0
18383
18384   ;
18385   return 0;
18386 }
18387 _ACEOF
18388 rm -f conftest.$ac_objext
18389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18390   (eval $ac_compile) 2>conftest.er1
18391   ac_status=$?
18392   grep -v '^ *+' conftest.er1 >conftest.err
18393   rm -f conftest.er1
18394   cat conftest.err >&5
18395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396   (exit $ac_status); } &&
18397          { ac_try='test -z "$ac_c_werror_flag"
18398                          || test ! -s conftest.err'
18399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18400   (eval $ac_try) 2>&5
18401   ac_status=$?
18402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18403   (exit $ac_status); }; } &&
18404          { ac_try='test -s conftest.$ac_objext'
18405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18406   (eval $ac_try) 2>&5
18407   ac_status=$?
18408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18409   (exit $ac_status); }; }; then
18410   ac_hi=$ac_mid
18411 else
18412   echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18414
18415 ac_lo=`expr '(' $ac_mid ')' + 1`
18416 fi
18417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18418 done
18419 case $ac_lo in
18420 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18421 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18422 See \`config.log' for more details." >&5
18423 echo "$as_me: error: cannot compute sizeof (long long int), 77
18424 See \`config.log' for more details." >&2;}
18425    { (exit 1); exit 1; }; } ;;
18426 esac
18427 else
18428   if test "$cross_compiling" = yes; then
18429   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18430 See \`config.log' for more details." >&5
18431 echo "$as_me: error: cannot run test program while cross compiling
18432 See \`config.log' for more details." >&2;}
18433    { (exit 1); exit 1; }; }
18434 else
18435   cat >conftest.$ac_ext <<_ACEOF
18436 /* confdefs.h.  */
18437 _ACEOF
18438 cat confdefs.h >>conftest.$ac_ext
18439 cat >>conftest.$ac_ext <<_ACEOF
18440 /* end confdefs.h.  */
18441 $ac_includes_default
18442 long longval () { return (long) (sizeof (long long int)); }
18443 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18444 #include <stdio.h>
18445 #include <stdlib.h>
18446 int
18447 main ()
18448 {
18449
18450   FILE *f = fopen ("conftest.val", "w");
18451   if (! f)
18452     exit (1);
18453   if (((long) (sizeof (long long int))) < 0)
18454     {
18455       long i = longval ();
18456       if (i != ((long) (sizeof (long long int))))
18457         exit (1);
18458       fprintf (f, "%ld\n", i);
18459     }
18460   else
18461     {
18462       unsigned long i = ulongval ();
18463       if (i != ((long) (sizeof (long long int))))
18464         exit (1);
18465       fprintf (f, "%lu\n", i);
18466     }
18467   exit (ferror (f) || fclose (f) != 0);
18468
18469   ;
18470   return 0;
18471 }
18472 _ACEOF
18473 rm -f conftest$ac_exeext
18474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18475   (eval $ac_link) 2>&5
18476   ac_status=$?
18477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480   (eval $ac_try) 2>&5
18481   ac_status=$?
18482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483   (exit $ac_status); }; }; then
18484   ac_cv_sizeof_long_long_int=`cat conftest.val`
18485 else
18486   echo "$as_me: program exited with status $ac_status" >&5
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18489
18490 ( exit $ac_status )
18491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18492 See \`config.log' for more details." >&5
18493 echo "$as_me: error: cannot compute sizeof (long long int), 77
18494 See \`config.log' for more details." >&2;}
18495    { (exit 1); exit 1; }; }
18496 fi
18497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18498 fi
18499 fi
18500 rm -f conftest.val
18501 else
18502   ac_cv_sizeof_long_long_int=0
18503 fi
18504 fi
18505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18506 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18507 cat >>confdefs.h <<_ACEOF
18508 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18509 _ACEOF
18510
18511
18512 echo "$as_me:$LINENO: checking for int *" >&5
18513 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18514 if test "${ac_cv_type_int_p+set}" = set; then
18515   echo $ECHO_N "(cached) $ECHO_C" >&6
18516 else
18517   cat >conftest.$ac_ext <<_ACEOF
18518 /* confdefs.h.  */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h.  */
18523 $ac_includes_default
18524 int
18525 main ()
18526 {
18527 if ((int * *) 0)
18528   return 0;
18529 if (sizeof (int *))
18530   return 0;
18531   ;
18532   return 0;
18533 }
18534 _ACEOF
18535 rm -f conftest.$ac_objext
18536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18537   (eval $ac_compile) 2>conftest.er1
18538   ac_status=$?
18539   grep -v '^ *+' conftest.er1 >conftest.err
18540   rm -f conftest.er1
18541   cat conftest.err >&5
18542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18543   (exit $ac_status); } &&
18544          { ac_try='test -z "$ac_c_werror_flag"
18545                          || test ! -s conftest.err'
18546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18547   (eval $ac_try) 2>&5
18548   ac_status=$?
18549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550   (exit $ac_status); }; } &&
18551          { ac_try='test -s conftest.$ac_objext'
18552   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553   (eval $ac_try) 2>&5
18554   ac_status=$?
18555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556   (exit $ac_status); }; }; then
18557   ac_cv_type_int_p=yes
18558 else
18559   echo "$as_me: failed program was:" >&5
18560 sed 's/^/| /' conftest.$ac_ext >&5
18561
18562 ac_cv_type_int_p=no
18563 fi
18564 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18565 fi
18566 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18567 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18568
18569 echo "$as_me:$LINENO: checking size of int *" >&5
18570 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18571 if test "${ac_cv_sizeof_int_p+set}" = set; then
18572   echo $ECHO_N "(cached) $ECHO_C" >&6
18573 else
18574   if test "$ac_cv_type_int_p" = yes; then
18575   # The cast to unsigned long works around a bug in the HP C Compiler
18576   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18577   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18578   # This bug is HP SR number 8606223364.
18579   if test "$cross_compiling" = yes; then
18580   # Depending upon the size, compute the lo and hi bounds.
18581 cat >conftest.$ac_ext <<_ACEOF
18582 /* confdefs.h.  */
18583 _ACEOF
18584 cat confdefs.h >>conftest.$ac_ext
18585 cat >>conftest.$ac_ext <<_ACEOF
18586 /* end confdefs.h.  */
18587 $ac_includes_default
18588 int
18589 main ()
18590 {
18591 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18592 test_array [0] = 0
18593
18594   ;
18595   return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext
18599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18600   (eval $ac_compile) 2>conftest.er1
18601   ac_status=$?
18602   grep -v '^ *+' conftest.er1 >conftest.err
18603   rm -f conftest.er1
18604   cat conftest.err >&5
18605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18606   (exit $ac_status); } &&
18607          { ac_try='test -z "$ac_c_werror_flag"
18608                          || test ! -s conftest.err'
18609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18610   (eval $ac_try) 2>&5
18611   ac_status=$?
18612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613   (exit $ac_status); }; } &&
18614          { ac_try='test -s conftest.$ac_objext'
18615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18616   (eval $ac_try) 2>&5
18617   ac_status=$?
18618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619   (exit $ac_status); }; }; then
18620   ac_lo=0 ac_mid=0
18621   while :; do
18622     cat >conftest.$ac_ext <<_ACEOF
18623 /* confdefs.h.  */
18624 _ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h.  */
18628 $ac_includes_default
18629 int
18630 main ()
18631 {
18632 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18633 test_array [0] = 0
18634
18635   ;
18636   return 0;
18637 }
18638 _ACEOF
18639 rm -f conftest.$ac_objext
18640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18641   (eval $ac_compile) 2>conftest.er1
18642   ac_status=$?
18643   grep -v '^ *+' conftest.er1 >conftest.err
18644   rm -f conftest.er1
18645   cat conftest.err >&5
18646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647   (exit $ac_status); } &&
18648          { ac_try='test -z "$ac_c_werror_flag"
18649                          || test ! -s conftest.err'
18650   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18651   (eval $ac_try) 2>&5
18652   ac_status=$?
18653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18654   (exit $ac_status); }; } &&
18655          { ac_try='test -s conftest.$ac_objext'
18656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18657   (eval $ac_try) 2>&5
18658   ac_status=$?
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); }; }; then
18661   ac_hi=$ac_mid; break
18662 else
18663   echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18665
18666 ac_lo=`expr $ac_mid + 1`
18667                     if test $ac_lo -le $ac_mid; then
18668                       ac_lo= ac_hi=
18669                       break
18670                     fi
18671                     ac_mid=`expr 2 '*' $ac_mid + 1`
18672 fi
18673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18674   done
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 cat >conftest.$ac_ext <<_ACEOF
18680 /* confdefs.h.  */
18681 _ACEOF
18682 cat confdefs.h >>conftest.$ac_ext
18683 cat >>conftest.$ac_ext <<_ACEOF
18684 /* end confdefs.h.  */
18685 $ac_includes_default
18686 int
18687 main ()
18688 {
18689 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18690 test_array [0] = 0
18691
18692   ;
18693   return 0;
18694 }
18695 _ACEOF
18696 rm -f conftest.$ac_objext
18697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698   (eval $ac_compile) 2>conftest.er1
18699   ac_status=$?
18700   grep -v '^ *+' conftest.er1 >conftest.err
18701   rm -f conftest.er1
18702   cat conftest.err >&5
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); } &&
18705          { ac_try='test -z "$ac_c_werror_flag"
18706                          || test ! -s conftest.err'
18707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708   (eval $ac_try) 2>&5
18709   ac_status=$?
18710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711   (exit $ac_status); }; } &&
18712          { ac_try='test -s conftest.$ac_objext'
18713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714   (eval $ac_try) 2>&5
18715   ac_status=$?
18716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717   (exit $ac_status); }; }; then
18718   ac_hi=-1 ac_mid=-1
18719   while :; do
18720     cat >conftest.$ac_ext <<_ACEOF
18721 /* confdefs.h.  */
18722 _ACEOF
18723 cat confdefs.h >>conftest.$ac_ext
18724 cat >>conftest.$ac_ext <<_ACEOF
18725 /* end confdefs.h.  */
18726 $ac_includes_default
18727 int
18728 main ()
18729 {
18730 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18731 test_array [0] = 0
18732
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 rm -f conftest.$ac_objext
18738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739   (eval $ac_compile) 2>conftest.er1
18740   ac_status=$?
18741   grep -v '^ *+' conftest.er1 >conftest.err
18742   rm -f conftest.er1
18743   cat conftest.err >&5
18744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745   (exit $ac_status); } &&
18746          { ac_try='test -z "$ac_c_werror_flag"
18747                          || test ! -s conftest.err'
18748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749   (eval $ac_try) 2>&5
18750   ac_status=$?
18751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752   (exit $ac_status); }; } &&
18753          { ac_try='test -s conftest.$ac_objext'
18754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755   (eval $ac_try) 2>&5
18756   ac_status=$?
18757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758   (exit $ac_status); }; }; then
18759   ac_lo=$ac_mid; break
18760 else
18761   echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ac_hi=`expr '(' $ac_mid ')' - 1`
18765                        if test $ac_mid -le $ac_hi; then
18766                          ac_lo= ac_hi=
18767                          break
18768                        fi
18769                        ac_mid=`expr 2 '*' $ac_mid`
18770 fi
18771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18772   done
18773 else
18774   echo "$as_me: failed program was:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18776
18777 ac_lo= ac_hi=
18778 fi
18779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18780 fi
18781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18782 # Binary search between lo and hi bounds.
18783 while test "x$ac_lo" != "x$ac_hi"; do
18784   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18785   cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h.  */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h.  */
18791 $ac_includes_default
18792 int
18793 main ()
18794 {
18795 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18796 test_array [0] = 0
18797
18798   ;
18799   return 0;
18800 }
18801 _ACEOF
18802 rm -f conftest.$ac_objext
18803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18804   (eval $ac_compile) 2>conftest.er1
18805   ac_status=$?
18806   grep -v '^ *+' conftest.er1 >conftest.err
18807   rm -f conftest.er1
18808   cat conftest.err >&5
18809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810   (exit $ac_status); } &&
18811          { ac_try='test -z "$ac_c_werror_flag"
18812                          || test ! -s conftest.err'
18813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18814   (eval $ac_try) 2>&5
18815   ac_status=$?
18816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817   (exit $ac_status); }; } &&
18818          { ac_try='test -s conftest.$ac_objext'
18819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820   (eval $ac_try) 2>&5
18821   ac_status=$?
18822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823   (exit $ac_status); }; }; then
18824   ac_hi=$ac_mid
18825 else
18826   echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18828
18829 ac_lo=`expr '(' $ac_mid ')' + 1`
18830 fi
18831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18832 done
18833 case $ac_lo in
18834 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18835 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18836 See \`config.log' for more details." >&5
18837 echo "$as_me: error: cannot compute sizeof (int *), 77
18838 See \`config.log' for more details." >&2;}
18839    { (exit 1); exit 1; }; } ;;
18840 esac
18841 else
18842   if test "$cross_compiling" = yes; then
18843   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18844 See \`config.log' for more details." >&5
18845 echo "$as_me: error: cannot run test program while cross compiling
18846 See \`config.log' for more details." >&2;}
18847    { (exit 1); exit 1; }; }
18848 else
18849   cat >conftest.$ac_ext <<_ACEOF
18850 /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855 $ac_includes_default
18856 long longval () { return (long) (sizeof (int *)); }
18857 unsigned long ulongval () { return (long) (sizeof (int *)); }
18858 #include <stdio.h>
18859 #include <stdlib.h>
18860 int
18861 main ()
18862 {
18863
18864   FILE *f = fopen ("conftest.val", "w");
18865   if (! f)
18866     exit (1);
18867   if (((long) (sizeof (int *))) < 0)
18868     {
18869       long i = longval ();
18870       if (i != ((long) (sizeof (int *))))
18871         exit (1);
18872       fprintf (f, "%ld\n", i);
18873     }
18874   else
18875     {
18876       unsigned long i = ulongval ();
18877       if (i != ((long) (sizeof (int *))))
18878         exit (1);
18879       fprintf (f, "%lu\n", i);
18880     }
18881   exit (ferror (f) || fclose (f) != 0);
18882
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 rm -f conftest$ac_exeext
18888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18889   (eval $ac_link) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
18898   ac_cv_sizeof_int_p=`cat conftest.val`
18899 else
18900   echo "$as_me: program exited with status $ac_status" >&5
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ( exit $ac_status )
18905 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18906 See \`config.log' for more details." >&5
18907 echo "$as_me: error: cannot compute sizeof (int *), 77
18908 See \`config.log' for more details." >&2;}
18909    { (exit 1); exit 1; }; }
18910 fi
18911 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18912 fi
18913 fi
18914 rm -f conftest.val
18915 else
18916   ac_cv_sizeof_int_p=0
18917 fi
18918 fi
18919 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18920 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18921 cat >>confdefs.h <<_ACEOF
18922 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18923 _ACEOF
18924
18925
18926
18927 # Check for sys/types.h types
18928 echo "$as_me:$LINENO: checking for u_int type" >&5
18929 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18930 if test "${ac_cv_have_u_int+set}" = set; then
18931   echo $ECHO_N "(cached) $ECHO_C" >&6
18932 else
18933
18934     cat >conftest.$ac_ext <<_ACEOF
18935 /* confdefs.h.  */
18936 _ACEOF
18937 cat confdefs.h >>conftest.$ac_ext
18938 cat >>conftest.$ac_ext <<_ACEOF
18939 /* end confdefs.h.  */
18940  #include <sys/types.h>
18941 int
18942 main ()
18943 {
18944  u_int a; a = 1;
18945   ;
18946   return 0;
18947 }
18948 _ACEOF
18949 rm -f conftest.$ac_objext
18950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18951   (eval $ac_compile) 2>conftest.er1
18952   ac_status=$?
18953   grep -v '^ *+' conftest.er1 >conftest.err
18954   rm -f conftest.er1
18955   cat conftest.err >&5
18956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957   (exit $ac_status); } &&
18958          { ac_try='test -z "$ac_c_werror_flag"
18959                          || test ! -s conftest.err'
18960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961   (eval $ac_try) 2>&5
18962   ac_status=$?
18963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964   (exit $ac_status); }; } &&
18965          { ac_try='test -s conftest.$ac_objext'
18966   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967   (eval $ac_try) 2>&5
18968   ac_status=$?
18969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970   (exit $ac_status); }; }; then
18971    ac_cv_have_u_int="yes"
18972 else
18973   echo "$as_me: failed program was:" >&5
18974 sed 's/^/| /' conftest.$ac_ext >&5
18975
18976  ac_cv_have_u_int="no"
18977
18978 fi
18979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18980
18981 fi
18982 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18983 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18984 if test "x$ac_cv_have_u_int" = "xyes" ; then
18985    cat >>confdefs.h <<\_ACEOF
18986 #define HAVE_U_INT 1
18987 _ACEOF
18988
18989    have_u_int=1
18990 fi
18991
18992 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18993 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18994 if test "${ac_cv_have_intmax_t+set}" = set; then
18995   echo $ECHO_N "(cached) $ECHO_C" >&6
18996 else
18997
18998    cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h.  */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h.  */
19004  #include <sys/types.h>
19005 int
19006 main ()
19007 {
19008  intmax_t a; a = 1;
19009   ;
19010   return 0;
19011 }
19012 _ACEOF
19013 rm -f conftest.$ac_objext
19014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19015   (eval $ac_compile) 2>conftest.er1
19016   ac_status=$?
19017   grep -v '^ *+' conftest.er1 >conftest.err
19018   rm -f conftest.er1
19019   cat conftest.err >&5
19020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19021   (exit $ac_status); } &&
19022          { ac_try='test -z "$ac_c_werror_flag"
19023                          || test ! -s conftest.err'
19024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19025   (eval $ac_try) 2>&5
19026   ac_status=$?
19027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028   (exit $ac_status); }; } &&
19029          { ac_try='test -s conftest.$ac_objext'
19030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19031   (eval $ac_try) 2>&5
19032   ac_status=$?
19033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034   (exit $ac_status); }; }; then
19035    ac_cv_have_intmax_t="yes"
19036 else
19037   echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19039
19040
19041          cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h.  */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h.  */
19047  #include <stdint.h>
19048 int
19049 main ()
19050 {
19051  intmax_t a; a = 1;
19052   ;
19053   return 0;
19054 }
19055 _ACEOF
19056 rm -f conftest.$ac_objext
19057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19058   (eval $ac_compile) 2>conftest.er1
19059   ac_status=$?
19060   grep -v '^ *+' conftest.er1 >conftest.err
19061   rm -f conftest.er1
19062   cat conftest.err >&5
19063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064   (exit $ac_status); } &&
19065          { ac_try='test -z "$ac_c_werror_flag"
19066                          || test ! -s conftest.err'
19067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19068   (eval $ac_try) 2>&5
19069   ac_status=$?
19070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071   (exit $ac_status); }; } &&
19072          { ac_try='test -s conftest.$ac_objext'
19073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19074   (eval $ac_try) 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078    ac_cv_have_intmax_t="yes"
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083  ac_cv_have_intmax_t="no"
19084
19085 fi
19086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19087
19088
19089 fi
19090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091
19092
19093 fi
19094 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19095 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19096 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19097    cat >>confdefs.h <<\_ACEOF
19098 #define HAVE_INTMAX_T 1
19099 _ACEOF
19100
19101    have_intmax_t=1
19102 fi
19103
19104
19105 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19106 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19107 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19108   echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110
19111    cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h.  */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h.  */
19117  #include <sys/types.h>
19118 int
19119 main ()
19120 {
19121  u_intmax_t a; a = 1;
19122   ;
19123   return 0;
19124 }
19125 _ACEOF
19126 rm -f conftest.$ac_objext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19128   (eval $ac_compile) 2>conftest.er1
19129   ac_status=$?
19130   grep -v '^ *+' conftest.er1 >conftest.err
19131   rm -f conftest.er1
19132   cat conftest.err >&5
19133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } &&
19135          { ac_try='test -z "$ac_c_werror_flag"
19136                          || test ! -s conftest.err'
19137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138   (eval $ac_try) 2>&5
19139   ac_status=$?
19140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141   (exit $ac_status); }; } &&
19142          { ac_try='test -s conftest.$ac_objext'
19143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144   (eval $ac_try) 2>&5
19145   ac_status=$?
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); }; }; then
19148    ac_cv_have_u_intmax_t="yes"
19149 else
19150   echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19152
19153
19154          cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h.  */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h.  */
19160  #include <stdint.h>
19161 int
19162 main ()
19163 {
19164  u_intmax_t a; a = 1;
19165   ;
19166   return 0;
19167 }
19168 _ACEOF
19169 rm -f conftest.$ac_objext
19170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19171   (eval $ac_compile) 2>conftest.er1
19172   ac_status=$?
19173   grep -v '^ *+' conftest.er1 >conftest.err
19174   rm -f conftest.er1
19175   cat conftest.err >&5
19176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177   (exit $ac_status); } &&
19178          { ac_try='test -z "$ac_c_werror_flag"
19179                          || test ! -s conftest.err'
19180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19181   (eval $ac_try) 2>&5
19182   ac_status=$?
19183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19184   (exit $ac_status); }; } &&
19185          { ac_try='test -s conftest.$ac_objext'
19186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19187   (eval $ac_try) 2>&5
19188   ac_status=$?
19189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190   (exit $ac_status); }; }; then
19191    ac_cv_have_u_intmax_t="yes"
19192 else
19193   echo "$as_me: failed program was:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19195
19196  ac_cv_have_u_intmax_t="no"
19197
19198 fi
19199 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19200
19201
19202 fi
19203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19204
19205 fi
19206 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19207 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19208 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19209    cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_U_INTMAX_T 1
19211 _ACEOF
19212
19213    have_u_intmax_t=1
19214 fi
19215
19216
19217 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19218 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19219 if test "${ac_cv_have_intxx_t+set}" = set; then
19220   echo $ECHO_N "(cached) $ECHO_C" >&6
19221 else
19222
19223    cat >conftest.$ac_ext <<_ACEOF
19224 /* confdefs.h.  */
19225 _ACEOF
19226 cat confdefs.h >>conftest.$ac_ext
19227 cat >>conftest.$ac_ext <<_ACEOF
19228 /* end confdefs.h.  */
19229  #include <sys/types.h>
19230 int
19231 main ()
19232 {
19233  int8_t a; int16_t b; int32_t c; a = b = c = 1;
19234   ;
19235   return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext
19239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240   (eval $ac_compile) 2>conftest.er1
19241   ac_status=$?
19242   grep -v '^ *+' conftest.er1 >conftest.err
19243   rm -f conftest.er1
19244   cat conftest.err >&5
19245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246   (exit $ac_status); } &&
19247          { ac_try='test -z "$ac_c_werror_flag"
19248                          || test ! -s conftest.err'
19249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250   (eval $ac_try) 2>&5
19251   ac_status=$?
19252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253   (exit $ac_status); }; } &&
19254          { ac_try='test -s conftest.$ac_objext'
19255   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256   (eval $ac_try) 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; }; then
19260    ac_cv_have_intxx_t="yes"
19261 else
19262   echo "$as_me: failed program was:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19264
19265  ac_cv_have_intxx_t="no"
19266
19267 fi
19268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19269
19270 fi
19271 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19272 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19273 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19274    cat >>confdefs.h <<\_ACEOF
19275 #define HAVE_INTXX_T 1
19276 _ACEOF
19277
19278    have_intxx_t=1
19279 fi
19280
19281 echo "$as_me:$LINENO: checking for int64_t type" >&5
19282 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19283 if test "${ac_cv_have_int64_t+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286
19287    cat >conftest.$ac_ext <<_ACEOF
19288 /* confdefs.h.  */
19289 _ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h.  */
19293  #include <sys/types.h>
19294 int
19295 main ()
19296 {
19297  int64_t a; a = 1;
19298   ;
19299   return 0;
19300 }
19301 _ACEOF
19302 rm -f conftest.$ac_objext
19303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19304   (eval $ac_compile) 2>conftest.er1
19305   ac_status=$?
19306   grep -v '^ *+' conftest.er1 >conftest.err
19307   rm -f conftest.er1
19308   cat conftest.err >&5
19309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19310   (exit $ac_status); } &&
19311          { ac_try='test -z "$ac_c_werror_flag"
19312                          || test ! -s conftest.err'
19313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314   (eval $ac_try) 2>&5
19315   ac_status=$?
19316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317   (exit $ac_status); }; } &&
19318          { ac_try='test -s conftest.$ac_objext'
19319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19320   (eval $ac_try) 2>&5
19321   ac_status=$?
19322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323   (exit $ac_status); }; }; then
19324    ac_cv_have_int64_t="yes"
19325 else
19326   echo "$as_me: failed program was:" >&5
19327 sed 's/^/| /' conftest.$ac_ext >&5
19328
19329  ac_cv_have_int64_t="no"
19330
19331 fi
19332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19333
19334 fi
19335 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19336 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19337 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19338    cat >>confdefs.h <<\_ACEOF
19339 #define HAVE_INT64_T 1
19340 _ACEOF
19341
19342    have_int64_t=1
19343 fi
19344
19345 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19346 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19347 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19348   echo $ECHO_N "(cached) $ECHO_C" >&6
19349 else
19350
19351    cat >conftest.$ac_ext <<_ACEOF
19352 /* confdefs.h.  */
19353 _ACEOF
19354 cat confdefs.h >>conftest.$ac_ext
19355 cat >>conftest.$ac_ext <<_ACEOF
19356 /* end confdefs.h.  */
19357  #include <sys/types.h>
19358 int
19359 main ()
19360 {
19361  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 rm -f conftest.$ac_objext
19367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19368   (eval $ac_compile) 2>conftest.er1
19369   ac_status=$?
19370   grep -v '^ *+' conftest.er1 >conftest.err
19371   rm -f conftest.er1
19372   cat conftest.err >&5
19373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374   (exit $ac_status); } &&
19375          { ac_try='test -z "$ac_c_werror_flag"
19376                          || test ! -s conftest.err'
19377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378   (eval $ac_try) 2>&5
19379   ac_status=$?
19380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381   (exit $ac_status); }; } &&
19382          { ac_try='test -s conftest.$ac_objext'
19383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384   (eval $ac_try) 2>&5
19385   ac_status=$?
19386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387   (exit $ac_status); }; }; then
19388    ac_cv_have_u_intxx_t="yes"
19389 else
19390   echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393  ac_cv_have_u_intxx_t="no"
19394
19395 fi
19396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19397
19398 fi
19399 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19400 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19401 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19402    cat >>confdefs.h <<\_ACEOF
19403 #define HAVE_U_INTXX_T 1
19404 _ACEOF
19405
19406    have_u_intxx_t=1
19407 fi
19408
19409 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19410 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19411 if test "${ac_cv_have_u_int64_t+set}" = set; then
19412   echo $ECHO_N "(cached) $ECHO_C" >&6
19413 else
19414
19415    cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421  #include <sys/types.h>
19422 int
19423 main ()
19424 {
19425  u_int64_t a; a = 1;
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 rm -f conftest.$ac_objext
19431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19432   (eval $ac_compile) 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } &&
19439          { ac_try='test -z "$ac_c_werror_flag"
19440                          || test ! -s conftest.err'
19441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442   (eval $ac_try) 2>&5
19443   ac_status=$?
19444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445   (exit $ac_status); }; } &&
19446          { ac_try='test -s conftest.$ac_objext'
19447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19448   (eval $ac_try) 2>&5
19449   ac_status=$?
19450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451   (exit $ac_status); }; }; then
19452    ac_cv_have_u_int64_t="yes"
19453 else
19454   echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19456
19457  ac_cv_have_u_int64_t="no"
19458
19459 fi
19460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19461
19462 fi
19463 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19464 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19465 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19466    cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_U_INT64_T 1
19468 _ACEOF
19469
19470    have_u_int64_t=1
19471 fi
19472
19473 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19474            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19475 then
19476    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19477 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19478    cat >conftest.$ac_ext <<_ACEOF
19479 /* confdefs.h.  */
19480 _ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h.  */
19484  #include <sys/bitypes.h>
19485 int
19486 main ()
19487 {
19488  int8_t a; int16_t b; int32_t c;
19489         u_int8_t e; u_int16_t f; u_int32_t g;
19490         a = b = c = e = f = g = 1;
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext
19496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19497   (eval $ac_compile) 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } &&
19504          { ac_try='test -z "$ac_c_werror_flag"
19505                          || test ! -s conftest.err'
19506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19507   (eval $ac_try) 2>&5
19508   ac_status=$?
19509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510   (exit $ac_status); }; } &&
19511          { ac_try='test -s conftest.$ac_objext'
19512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19513   (eval $ac_try) 2>&5
19514   ac_status=$?
19515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516   (exit $ac_status); }; }; then
19517    cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_U_INTXX_T 1
19519 _ACEOF
19520
19521         cat >>confdefs.h <<\_ACEOF
19522 #define HAVE_INTXX_T 1
19523 _ACEOF
19524
19525         cat >>confdefs.h <<\_ACEOF
19526 #define HAVE_SYS_BITYPES_H 1
19527 _ACEOF
19528
19529         echo "$as_me:$LINENO: result: yes" >&5
19530 echo "${ECHO_T}yes" >&6
19531 else
19532   echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.$ac_ext >&5
19534
19535  echo "$as_me:$LINENO: result: no" >&5
19536 echo "${ECHO_T}no" >&6
19537
19538 fi
19539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19540 fi
19541
19542 if test -z "$have_u_intxx_t" ; then
19543    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19544 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19545 if test "${ac_cv_have_uintxx_t+set}" = set; then
19546   echo $ECHO_N "(cached) $ECHO_C" >&6
19547 else
19548
19549       cat >conftest.$ac_ext <<_ACEOF
19550 /* confdefs.h.  */
19551 _ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h.  */
19555  #include <sys/types.h>
19556 int
19557 main ()
19558 {
19559  uint8_t a; uint16_t b;
19560            uint32_t c; a = b = c = 1;
19561   ;
19562   return 0;
19563 }
19564 _ACEOF
19565 rm -f conftest.$ac_objext
19566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19567   (eval $ac_compile) 2>conftest.er1
19568   ac_status=$?
19569   grep -v '^ *+' conftest.er1 >conftest.err
19570   rm -f conftest.er1
19571   cat conftest.err >&5
19572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573   (exit $ac_status); } &&
19574          { ac_try='test -z "$ac_c_werror_flag"
19575                          || test ! -s conftest.err'
19576   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577   (eval $ac_try) 2>&5
19578   ac_status=$?
19579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580   (exit $ac_status); }; } &&
19581          { ac_try='test -s conftest.$ac_objext'
19582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583   (eval $ac_try) 2>&5
19584   ac_status=$?
19585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586   (exit $ac_status); }; }; then
19587    ac_cv_have_uintxx_t="yes"
19588 else
19589   echo "$as_me: failed program was:" >&5
19590 sed 's/^/| /' conftest.$ac_ext >&5
19591
19592  ac_cv_have_uintxx_t="no"
19593
19594 fi
19595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19596
19597 fi
19598 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19599 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19600    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19601       cat >>confdefs.h <<\_ACEOF
19602 #define HAVE_UINTXX_T 1
19603 _ACEOF
19604
19605    fi
19606 fi
19607
19608 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19609           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19610 then
19611    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19612 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19613    cat >conftest.$ac_ext <<_ACEOF
19614 /* confdefs.h.  */
19615 _ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h.  */
19619  #include <sys/bitypes.h>
19620 int
19621 main ()
19622 {
19623  int64_t a; u_int64_t b;
19624        a = b = 1;
19625   ;
19626   return 0;
19627 }
19628 _ACEOF
19629 rm -f conftest.$ac_objext
19630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19631   (eval $ac_compile) 2>conftest.er1
19632   ac_status=$?
19633   grep -v '^ *+' conftest.er1 >conftest.err
19634   rm -f conftest.er1
19635   cat conftest.err >&5
19636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637   (exit $ac_status); } &&
19638          { ac_try='test -z "$ac_c_werror_flag"
19639                          || test ! -s conftest.err'
19640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19641   (eval $ac_try) 2>&5
19642   ac_status=$?
19643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644   (exit $ac_status); }; } &&
19645          { ac_try='test -s conftest.$ac_objext'
19646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647   (eval $ac_try) 2>&5
19648   ac_status=$?
19649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650   (exit $ac_status); }; }; then
19651    cat >>confdefs.h <<\_ACEOF
19652 #define HAVE_U_INT64_T 1
19653 _ACEOF
19654
19655        cat >>confdefs.h <<\_ACEOF
19656 #define HAVE_INT64_T 1
19657 _ACEOF
19658
19659        echo "$as_me:$LINENO: result: yes" >&5
19660 echo "${ECHO_T}yes" >&6
19661 else
19662   echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665  echo "$as_me:$LINENO: result: no" >&5
19666 echo "${ECHO_T}no" >&6
19667
19668 fi
19669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19670 fi
19671
19672 if (test -z "$have_uintxx_t" && \
19673           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19674 then
19675    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19676 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19677    cat >conftest.$ac_ext <<_ACEOF
19678 /* confdefs.h.  */
19679 _ACEOF
19680 cat confdefs.h >>conftest.$ac_ext
19681 cat >>conftest.$ac_ext <<_ACEOF
19682 /* end confdefs.h.  */
19683  #include <sys/bitypes.h>
19684 int
19685 main ()
19686 {
19687  uint8_t a; uint16_t b;
19688           uint32_t c; a = b = c = 1;
19689   ;
19690   return 0;
19691 }
19692 _ACEOF
19693 rm -f conftest.$ac_objext
19694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19695   (eval $ac_compile) 2>conftest.er1
19696   ac_status=$?
19697   grep -v '^ *+' conftest.er1 >conftest.err
19698   rm -f conftest.er1
19699   cat conftest.err >&5
19700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701   (exit $ac_status); } &&
19702          { ac_try='test -z "$ac_c_werror_flag"
19703                          || test ! -s conftest.err'
19704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705   (eval $ac_try) 2>&5
19706   ac_status=$?
19707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708   (exit $ac_status); }; } &&
19709          { ac_try='test -s conftest.$ac_objext'
19710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19711   (eval $ac_try) 2>&5
19712   ac_status=$?
19713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19714   (exit $ac_status); }; }; then
19715    cat >>confdefs.h <<\_ACEOF
19716 #define HAVE_UINTXX_T 1
19717 _ACEOF
19718
19719        echo "$as_me:$LINENO: result: yes" >&5
19720 echo "${ECHO_T}yes" >&6
19721 else
19722   echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19724
19725  echo "$as_me:$LINENO: result: no" >&5
19726 echo "${ECHO_T}no" >&6
19727
19728 fi
19729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19730
19731 fi
19732
19733
19734
19735
19736
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749 for ac_func in \
19750         fork \
19751         getcwd \
19752         gethostname \
19753         getpid \
19754         gettimeofday \
19755         setpgid \
19756         setpgrp \
19757         setsid \
19758         signal \
19759         strerror \
19760         strncmp \
19761         strncpy \
19762         vfprintf \
19763
19764 do
19765 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19766 echo "$as_me:$LINENO: checking for $ac_func" >&5
19767 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19768 if eval "test \"\${$as_ac_var+set}\" = set"; then
19769   echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771   cat >conftest.$ac_ext <<_ACEOF
19772 /* confdefs.h.  */
19773 _ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h.  */
19777 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19779 #define $ac_func innocuous_$ac_func
19780
19781 /* System header to define __stub macros and hopefully few prototypes,
19782     which can conflict with char $ac_func (); below.
19783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784     <limits.h> exists even on freestanding compilers.  */
19785
19786 #ifdef __STDC__
19787 # include <limits.h>
19788 #else
19789 # include <assert.h>
19790 #endif
19791
19792 #undef $ac_func
19793
19794 /* Override any gcc2 internal prototype to avoid an error.  */
19795 #ifdef __cplusplus
19796 extern "C"
19797 {
19798 #endif
19799 /* We use char because int might match the return type of a gcc2
19800    builtin and then its argument prototype would still apply.  */
19801 char $ac_func ();
19802 /* The GNU C library defines this for functions which it implements
19803     to always fail with ENOSYS.  Some functions are actually named
19804     something starting with __ and the normal name is an alias.  */
19805 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19806 choke me
19807 #else
19808 char (*f) () = $ac_func;
19809 #endif
19810 #ifdef __cplusplus
19811 }
19812 #endif
19813
19814 int
19815 main ()
19816 {
19817 return f != $ac_func;
19818   ;
19819   return 0;
19820 }
19821 _ACEOF
19822 rm -f conftest.$ac_objext conftest$ac_exeext
19823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19824   (eval $ac_link) 2>conftest.er1
19825   ac_status=$?
19826   grep -v '^ *+' conftest.er1 >conftest.err
19827   rm -f conftest.er1
19828   cat conftest.err >&5
19829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830   (exit $ac_status); } &&
19831          { ac_try='test -z "$ac_c_werror_flag"
19832                          || test ! -s conftest.err'
19833   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834   (eval $ac_try) 2>&5
19835   ac_status=$?
19836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837   (exit $ac_status); }; } &&
19838          { ac_try='test -s conftest$ac_exeext'
19839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840   (eval $ac_try) 2>&5
19841   ac_status=$?
19842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843   (exit $ac_status); }; }; then
19844   eval "$as_ac_var=yes"
19845 else
19846   echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 eval "$as_ac_var=no"
19850 fi
19851 rm -f conftest.err conftest.$ac_objext \
19852       conftest$ac_exeext conftest.$ac_ext
19853 fi
19854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19855 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19856 if test `eval echo '${'$as_ac_var'}'` = yes; then
19857   cat >>confdefs.h <<_ACEOF
19858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19859 _ACEOF
19860
19861 else
19862   echo 'configure: cannot find needed function.'; exit 1
19863
19864 fi
19865 done
19866
19867
19868
19869 for ac_func in fchdir
19870 do
19871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19872 echo "$as_me:$LINENO: checking for $ac_func" >&5
19873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19874 if eval "test \"\${$as_ac_var+set}\" = set"; then
19875   echo $ECHO_N "(cached) $ECHO_C" >&6
19876 else
19877   cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h.  */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h.  */
19883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19884    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19885 #define $ac_func innocuous_$ac_func
19886
19887 /* System header to define __stub macros and hopefully few prototypes,
19888     which can conflict with char $ac_func (); below.
19889     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19890     <limits.h> exists even on freestanding compilers.  */
19891
19892 #ifdef __STDC__
19893 # include <limits.h>
19894 #else
19895 # include <assert.h>
19896 #endif
19897
19898 #undef $ac_func
19899
19900 /* Override any gcc2 internal prototype to avoid an error.  */
19901 #ifdef __cplusplus
19902 extern "C"
19903 {
19904 #endif
19905 /* We use char because int might match the return type of a gcc2
19906    builtin and then its argument prototype would still apply.  */
19907 char $ac_func ();
19908 /* The GNU C library defines this for functions which it implements
19909     to always fail with ENOSYS.  Some functions are actually named
19910     something starting with __ and the normal name is an alias.  */
19911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19912 choke me
19913 #else
19914 char (*f) () = $ac_func;
19915 #endif
19916 #ifdef __cplusplus
19917 }
19918 #endif
19919
19920 int
19921 main ()
19922 {
19923 return f != $ac_func;
19924   ;
19925   return 0;
19926 }
19927 _ACEOF
19928 rm -f conftest.$ac_objext conftest$ac_exeext
19929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19930   (eval $ac_link) 2>conftest.er1
19931   ac_status=$?
19932   grep -v '^ *+' conftest.er1 >conftest.err
19933   rm -f conftest.er1
19934   cat conftest.err >&5
19935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936   (exit $ac_status); } &&
19937          { ac_try='test -z "$ac_c_werror_flag"
19938                          || test ! -s conftest.err'
19939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940   (eval $ac_try) 2>&5
19941   ac_status=$?
19942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943   (exit $ac_status); }; } &&
19944          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19950   eval "$as_ac_var=yes"
19951 else
19952   echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 eval "$as_ac_var=no"
19956 fi
19957 rm -f conftest.err conftest.$ac_objext \
19958       conftest$ac_exeext conftest.$ac_ext
19959 fi
19960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19962 if test `eval echo '${'$as_ac_var'}'` = yes; then
19963   cat >>confdefs.h <<_ACEOF
19964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19965 _ACEOF
19966  cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_FCHDIR 1
19968 _ACEOF
19969
19970 fi
19971 done
19972
19973
19974 for ac_func in strtoll
19975 do
19976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19977 echo "$as_me:$LINENO: checking for $ac_func" >&5
19978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19979 if eval "test \"\${$as_ac_var+set}\" = set"; then
19980   echo $ECHO_N "(cached) $ECHO_C" >&6
19981 else
19982   cat >conftest.$ac_ext <<_ACEOF
19983 /* confdefs.h.  */
19984 _ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h.  */
19988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19989    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19990 #define $ac_func innocuous_$ac_func
19991
19992 /* System header to define __stub macros and hopefully few prototypes,
19993     which can conflict with char $ac_func (); below.
19994     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19995     <limits.h> exists even on freestanding compilers.  */
19996
19997 #ifdef __STDC__
19998 # include <limits.h>
19999 #else
20000 # include <assert.h>
20001 #endif
20002
20003 #undef $ac_func
20004
20005 /* Override any gcc2 internal prototype to avoid an error.  */
20006 #ifdef __cplusplus
20007 extern "C"
20008 {
20009 #endif
20010 /* We use char because int might match the return type of a gcc2
20011    builtin and then its argument prototype would still apply.  */
20012 char $ac_func ();
20013 /* The GNU C library defines this for functions which it implements
20014     to always fail with ENOSYS.  Some functions are actually named
20015     something starting with __ and the normal name is an alias.  */
20016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20017 choke me
20018 #else
20019 char (*f) () = $ac_func;
20020 #endif
20021 #ifdef __cplusplus
20022 }
20023 #endif
20024
20025 int
20026 main ()
20027 {
20028 return f != $ac_func;
20029   ;
20030   return 0;
20031 }
20032 _ACEOF
20033 rm -f conftest.$ac_objext conftest$ac_exeext
20034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20035   (eval $ac_link) 2>conftest.er1
20036   ac_status=$?
20037   grep -v '^ *+' conftest.er1 >conftest.err
20038   rm -f conftest.er1
20039   cat conftest.err >&5
20040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041   (exit $ac_status); } &&
20042          { ac_try='test -z "$ac_c_werror_flag"
20043                          || test ! -s conftest.err'
20044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045   (eval $ac_try) 2>&5
20046   ac_status=$?
20047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048   (exit $ac_status); }; } &&
20049          { ac_try='test -s conftest$ac_exeext'
20050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20051   (eval $ac_try) 2>&5
20052   ac_status=$?
20053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054   (exit $ac_status); }; }; then
20055   eval "$as_ac_var=yes"
20056 else
20057   echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 eval "$as_ac_var=no"
20061 fi
20062 rm -f conftest.err conftest.$ac_objext \
20063       conftest$ac_exeext conftest.$ac_ext
20064 fi
20065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20067 if test `eval echo '${'$as_ac_var'}'` = yes; then
20068   cat >>confdefs.h <<_ACEOF
20069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20070 _ACEOF
20071  cat >>confdefs.h <<\_ACEOF
20072 #define HAVE_STRTOLL 1
20073 _ACEOF
20074
20075 fi
20076 done
20077
20078
20079
20080 for ac_func in chflags
20081 do
20082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20083 echo "$as_me:$LINENO: checking for $ac_func" >&5
20084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20085 if eval "test \"\${$as_ac_var+set}\" = set"; then
20086   echo $ECHO_N "(cached) $ECHO_C" >&6
20087 else
20088   cat >conftest.$ac_ext <<_ACEOF
20089 /* confdefs.h.  */
20090 _ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h.  */
20094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20096 #define $ac_func innocuous_$ac_func
20097
20098 /* System header to define __stub macros and hopefully few prototypes,
20099     which can conflict with char $ac_func (); below.
20100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20101     <limits.h> exists even on freestanding compilers.  */
20102
20103 #ifdef __STDC__
20104 # include <limits.h>
20105 #else
20106 # include <assert.h>
20107 #endif
20108
20109 #undef $ac_func
20110
20111 /* Override any gcc2 internal prototype to avoid an error.  */
20112 #ifdef __cplusplus
20113 extern "C"
20114 {
20115 #endif
20116 /* We use char because int might match the return type of a gcc2
20117    builtin and then its argument prototype would still apply.  */
20118 char $ac_func ();
20119 /* The GNU C library defines this for functions which it implements
20120     to always fail with ENOSYS.  Some functions are actually named
20121     something starting with __ and the normal name is an alias.  */
20122 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20123 choke me
20124 #else
20125 char (*f) () = $ac_func;
20126 #endif
20127 #ifdef __cplusplus
20128 }
20129 #endif
20130
20131 int
20132 main ()
20133 {
20134 return f != $ac_func;
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 rm -f conftest.$ac_objext conftest$ac_exeext
20140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20141   (eval $ac_link) 2>conftest.er1
20142   ac_status=$?
20143   grep -v '^ *+' conftest.er1 >conftest.err
20144   rm -f conftest.er1
20145   cat conftest.err >&5
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } &&
20148          { ac_try='test -z "$ac_c_werror_flag"
20149                          || test ! -s conftest.err'
20150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20151   (eval $ac_try) 2>&5
20152   ac_status=$?
20153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154   (exit $ac_status); }; } &&
20155          { ac_try='test -s conftest$ac_exeext'
20156   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157   (eval $ac_try) 2>&5
20158   ac_status=$?
20159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160   (exit $ac_status); }; }; then
20161   eval "$as_ac_var=yes"
20162 else
20163   echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 eval "$as_ac_var=no"
20167 fi
20168 rm -f conftest.err conftest.$ac_objext \
20169       conftest$ac_exeext conftest.$ac_ext
20170 fi
20171 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20172 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20173 if test `eval echo '${'$as_ac_var'}'` = yes; then
20174   cat >>confdefs.h <<_ACEOF
20175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20176 _ACEOF
20177
20178 fi
20179 done
20180
20181
20182
20183
20184
20185
20186 for ac_func in snprintf vsnprintf gethostid fseeko
20187 do
20188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20189 echo "$as_me:$LINENO: checking for $ac_func" >&5
20190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20191 if eval "test \"\${$as_ac_var+set}\" = set"; then
20192   echo $ECHO_N "(cached) $ECHO_C" >&6
20193 else
20194   cat >conftest.$ac_ext <<_ACEOF
20195 /* confdefs.h.  */
20196 _ACEOF
20197 cat confdefs.h >>conftest.$ac_ext
20198 cat >>conftest.$ac_ext <<_ACEOF
20199 /* end confdefs.h.  */
20200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20202 #define $ac_func innocuous_$ac_func
20203
20204 /* System header to define __stub macros and hopefully few prototypes,
20205     which can conflict with char $ac_func (); below.
20206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20207     <limits.h> exists even on freestanding compilers.  */
20208
20209 #ifdef __STDC__
20210 # include <limits.h>
20211 #else
20212 # include <assert.h>
20213 #endif
20214
20215 #undef $ac_func
20216
20217 /* Override any gcc2 internal prototype to avoid an error.  */
20218 #ifdef __cplusplus
20219 extern "C"
20220 {
20221 #endif
20222 /* We use char because int might match the return type of a gcc2
20223    builtin and then its argument prototype would still apply.  */
20224 char $ac_func ();
20225 /* The GNU C library defines this for functions which it implements
20226     to always fail with ENOSYS.  Some functions are actually named
20227     something starting with __ and the normal name is an alias.  */
20228 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20229 choke me
20230 #else
20231 char (*f) () = $ac_func;
20232 #endif
20233 #ifdef __cplusplus
20234 }
20235 #endif
20236
20237 int
20238 main ()
20239 {
20240 return f != $ac_func;
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247   (eval $ac_link) 2>conftest.er1
20248   ac_status=$?
20249   grep -v '^ *+' conftest.er1 >conftest.err
20250   rm -f conftest.er1
20251   cat conftest.err >&5
20252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253   (exit $ac_status); } &&
20254          { ac_try='test -z "$ac_c_werror_flag"
20255                          || test ! -s conftest.err'
20256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20257   (eval $ac_try) 2>&5
20258   ac_status=$?
20259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20260   (exit $ac_status); }; } &&
20261          { ac_try='test -s conftest$ac_exeext'
20262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20263   (eval $ac_try) 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; }; then
20267   eval "$as_ac_var=yes"
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272 eval "$as_ac_var=no"
20273 fi
20274 rm -f conftest.err conftest.$ac_objext \
20275       conftest$ac_exeext conftest.$ac_ext
20276 fi
20277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20278 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20279 if test `eval echo '${'$as_ac_var'}'` = yes; then
20280   cat >>confdefs.h <<_ACEOF
20281 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20282 _ACEOF
20283
20284 fi
20285 done
20286
20287
20288
20289
20290
20291
20292 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20293 do
20294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20295 echo "$as_me:$LINENO: checking for $ac_func" >&5
20296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20297 if eval "test \"\${$as_ac_var+set}\" = set"; then
20298   echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300   cat >conftest.$ac_ext <<_ACEOF
20301 /* confdefs.h.  */
20302 _ACEOF
20303 cat confdefs.h >>conftest.$ac_ext
20304 cat >>conftest.$ac_ext <<_ACEOF
20305 /* end confdefs.h.  */
20306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20308 #define $ac_func innocuous_$ac_func
20309
20310 /* System header to define __stub macros and hopefully few prototypes,
20311     which can conflict with char $ac_func (); below.
20312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20313     <limits.h> exists even on freestanding compilers.  */
20314
20315 #ifdef __STDC__
20316 # include <limits.h>
20317 #else
20318 # include <assert.h>
20319 #endif
20320
20321 #undef $ac_func
20322
20323 /* Override any gcc2 internal prototype to avoid an error.  */
20324 #ifdef __cplusplus
20325 extern "C"
20326 {
20327 #endif
20328 /* We use char because int might match the return type of a gcc2
20329    builtin and then its argument prototype would still apply.  */
20330 char $ac_func ();
20331 /* The GNU C library defines this for functions which it implements
20332     to always fail with ENOSYS.  Some functions are actually named
20333     something starting with __ and the normal name is an alias.  */
20334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20335 choke me
20336 #else
20337 char (*f) () = $ac_func;
20338 #endif
20339 #ifdef __cplusplus
20340 }
20341 #endif
20342
20343 int
20344 main ()
20345 {
20346 return f != $ac_func;
20347   ;
20348   return 0;
20349 }
20350 _ACEOF
20351 rm -f conftest.$ac_objext conftest$ac_exeext
20352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20353   (eval $ac_link) 2>conftest.er1
20354   ac_status=$?
20355   grep -v '^ *+' conftest.er1 >conftest.err
20356   rm -f conftest.er1
20357   cat conftest.err >&5
20358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359   (exit $ac_status); } &&
20360          { ac_try='test -z "$ac_c_werror_flag"
20361                          || test ! -s conftest.err'
20362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363   (eval $ac_try) 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; } &&
20367          { ac_try='test -s conftest$ac_exeext'
20368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20369   (eval $ac_try) 2>&5
20370   ac_status=$?
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); }; }; then
20373   eval "$as_ac_var=yes"
20374 else
20375   echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378 eval "$as_ac_var=no"
20379 fi
20380 rm -f conftest.err conftest.$ac_objext \
20381       conftest$ac_exeext conftest.$ac_ext
20382 fi
20383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20385 if test `eval echo '${'$as_ac_var'}'` = yes; then
20386   cat >>confdefs.h <<_ACEOF
20387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20388 _ACEOF
20389
20390 fi
20391 done
20392
20393
20394 # If resolver functions are not in libc check for -lnsl or -lresolv.
20395 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20396 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20397 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20398   echo $ECHO_N "(cached) $ECHO_C" >&6
20399 else
20400   cat >conftest.$ac_ext <<_ACEOF
20401 /* confdefs.h.  */
20402 _ACEOF
20403 cat confdefs.h >>conftest.$ac_ext
20404 cat >>conftest.$ac_ext <<_ACEOF
20405 /* end confdefs.h.  */
20406 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20408 #define gethostbyname_r innocuous_gethostbyname_r
20409
20410 /* System header to define __stub macros and hopefully few prototypes,
20411     which can conflict with char gethostbyname_r (); below.
20412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20413     <limits.h> exists even on freestanding compilers.  */
20414
20415 #ifdef __STDC__
20416 # include <limits.h>
20417 #else
20418 # include <assert.h>
20419 #endif
20420
20421 #undef gethostbyname_r
20422
20423 /* Override any gcc2 internal prototype to avoid an error.  */
20424 #ifdef __cplusplus
20425 extern "C"
20426 {
20427 #endif
20428 /* We use char because int might match the return type of a gcc2
20429    builtin and then its argument prototype would still apply.  */
20430 char gethostbyname_r ();
20431 /* The GNU C library defines this for functions which it implements
20432     to always fail with ENOSYS.  Some functions are actually named
20433     something starting with __ and the normal name is an alias.  */
20434 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20435 choke me
20436 #else
20437 char (*f) () = gethostbyname_r;
20438 #endif
20439 #ifdef __cplusplus
20440 }
20441 #endif
20442
20443 int
20444 main ()
20445 {
20446 return f != gethostbyname_r;
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20453   (eval $ac_link) 2>conftest.er1
20454   ac_status=$?
20455   grep -v '^ *+' conftest.er1 >conftest.err
20456   rm -f conftest.er1
20457   cat conftest.err >&5
20458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459   (exit $ac_status); } &&
20460          { ac_try='test -z "$ac_c_werror_flag"
20461                          || test ! -s conftest.err'
20462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20463   (eval $ac_try) 2>&5
20464   ac_status=$?
20465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466   (exit $ac_status); }; } &&
20467          { ac_try='test -s conftest$ac_exeext'
20468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20469   (eval $ac_try) 2>&5
20470   ac_status=$?
20471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472   (exit $ac_status); }; }; then
20473   ac_cv_func_gethostbyname_r=yes
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478 ac_cv_func_gethostbyname_r=no
20479 fi
20480 rm -f conftest.err conftest.$ac_objext \
20481       conftest$ac_exeext conftest.$ac_ext
20482 fi
20483 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20484 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20485 if test $ac_cv_func_gethostbyname_r = yes; then
20486   echo "$as_me:$LINENO: result: using libc's resolver" >&5
20487 echo "${ECHO_T}using libc's resolver" >&6
20488 else
20489
20490 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20491 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20492 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-lnsl  $LIBS"
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503
20504 /* Override any gcc2 internal prototype to avoid an error.  */
20505 #ifdef __cplusplus
20506 extern "C"
20507 #endif
20508 /* We use char because int might match the return type of a gcc2
20509    builtin and then its argument prototype would still apply.  */
20510 char gethostbyname_r ();
20511 int
20512 main ()
20513 {
20514 gethostbyname_r ();
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20521   (eval $ac_link) 2>conftest.er1
20522   ac_status=$?
20523   grep -v '^ *+' conftest.er1 >conftest.err
20524   rm -f conftest.er1
20525   cat conftest.err >&5
20526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527   (exit $ac_status); } &&
20528          { ac_try='test -z "$ac_c_werror_flag"
20529                          || test ! -s conftest.err'
20530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531   (eval $ac_try) 2>&5
20532   ac_status=$?
20533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534   (exit $ac_status); }; } &&
20535          { ac_try='test -s conftest$ac_exeext'
20536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537   (eval $ac_try) 2>&5
20538   ac_status=$?
20539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540   (exit $ac_status); }; }; then
20541   ac_cv_lib_nsl_gethostbyname_r=yes
20542 else
20543   echo "$as_me: failed program was:" >&5
20544 sed 's/^/| /' conftest.$ac_ext >&5
20545
20546 ac_cv_lib_nsl_gethostbyname_r=no
20547 fi
20548 rm -f conftest.err conftest.$ac_objext \
20549       conftest$ac_exeext conftest.$ac_ext
20550 LIBS=$ac_check_lib_save_LIBS
20551 fi
20552 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20553 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20554 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20555   cat >>confdefs.h <<_ACEOF
20556 #define HAVE_LIBNSL 1
20557 _ACEOF
20558
20559   LIBS="-lnsl $LIBS"
20560
20561 fi
20562
20563
20564 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20565 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20566 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20567   echo $ECHO_N "(cached) $ECHO_C" >&6
20568 else
20569   ac_check_lib_save_LIBS=$LIBS
20570 LIBS="-lresolv  $LIBS"
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h.  */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h.  */
20577
20578 /* Override any gcc2 internal prototype to avoid an error.  */
20579 #ifdef __cplusplus
20580 extern "C"
20581 #endif
20582 /* We use char because int might match the return type of a gcc2
20583    builtin and then its argument prototype would still apply.  */
20584 char gethostbyname_r ();
20585 int
20586 main ()
20587 {
20588 gethostbyname_r ();
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 rm -f conftest.$ac_objext conftest$ac_exeext
20594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20595   (eval $ac_link) 2>conftest.er1
20596   ac_status=$?
20597   grep -v '^ *+' conftest.er1 >conftest.err
20598   rm -f conftest.er1
20599   cat conftest.err >&5
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); } &&
20602          { ac_try='test -z "$ac_c_werror_flag"
20603                          || test ! -s conftest.err'
20604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20605   (eval $ac_try) 2>&5
20606   ac_status=$?
20607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20608   (exit $ac_status); }; } &&
20609          { ac_try='test -s conftest$ac_exeext'
20610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20611   (eval $ac_try) 2>&5
20612   ac_status=$?
20613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614   (exit $ac_status); }; }; then
20615   ac_cv_lib_resolv_gethostbyname_r=yes
20616 else
20617   echo "$as_me: failed program was:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 ac_cv_lib_resolv_gethostbyname_r=no
20621 fi
20622 rm -f conftest.err conftest.$ac_objext \
20623       conftest$ac_exeext conftest.$ac_ext
20624 LIBS=$ac_check_lib_save_LIBS
20625 fi
20626 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20627 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20628 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20629   cat >>confdefs.h <<_ACEOF
20630 #define HAVE_LIBRESOLV 1
20631 _ACEOF
20632
20633   LIBS="-lresolv $LIBS"
20634
20635 fi
20636
20637 fi
20638
20639
20640
20641
20642
20643 for ac_func in inet_pton
20644 do
20645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20646 echo "$as_me:$LINENO: checking for $ac_func" >&5
20647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20648 if eval "test \"\${$as_ac_var+set}\" = set"; then
20649   echo $ECHO_N "(cached) $ECHO_C" >&6
20650 else
20651   cat >conftest.$ac_ext <<_ACEOF
20652 /* confdefs.h.  */
20653 _ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h.  */
20657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20658    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20659 #define $ac_func innocuous_$ac_func
20660
20661 /* System header to define __stub macros and hopefully few prototypes,
20662     which can conflict with char $ac_func (); below.
20663     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20664     <limits.h> exists even on freestanding compilers.  */
20665
20666 #ifdef __STDC__
20667 # include <limits.h>
20668 #else
20669 # include <assert.h>
20670 #endif
20671
20672 #undef $ac_func
20673
20674 /* Override any gcc2 internal prototype to avoid an error.  */
20675 #ifdef __cplusplus
20676 extern "C"
20677 {
20678 #endif
20679 /* We use char because int might match the return type of a gcc2
20680    builtin and then its argument prototype would still apply.  */
20681 char $ac_func ();
20682 /* The GNU C library defines this for functions which it implements
20683     to always fail with ENOSYS.  Some functions are actually named
20684     something starting with __ and the normal name is an alias.  */
20685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20686 choke me
20687 #else
20688 char (*f) () = $ac_func;
20689 #endif
20690 #ifdef __cplusplus
20691 }
20692 #endif
20693
20694 int
20695 main ()
20696 {
20697 return f != $ac_func;
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20704   (eval $ac_link) 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } &&
20711          { ac_try='test -z "$ac_c_werror_flag"
20712                          || test ! -s conftest.err'
20713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20714   (eval $ac_try) 2>&5
20715   ac_status=$?
20716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20717   (exit $ac_status); }; } &&
20718          { ac_try='test -s conftest$ac_exeext'
20719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720   (eval $ac_try) 2>&5
20721   ac_status=$?
20722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723   (exit $ac_status); }; }; then
20724   eval "$as_ac_var=yes"
20725 else
20726   echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20728
20729 eval "$as_ac_var=no"
20730 fi
20731 rm -f conftest.err conftest.$ac_objext \
20732       conftest$ac_exeext conftest.$ac_ext
20733 fi
20734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20736 if test `eval echo '${'$as_ac_var'}'` = yes; then
20737   cat >>confdefs.h <<_ACEOF
20738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20739 _ACEOF
20740  cat >>confdefs.h <<\_ACEOF
20741 #define HAVE_INET_PTON 1
20742 _ACEOF
20743
20744 fi
20745 done
20746
20747
20748 for ac_func in inet_ntop
20749 do
20750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20751 echo "$as_me:$LINENO: checking for $ac_func" >&5
20752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20753 if eval "test \"\${$as_ac_var+set}\" = set"; then
20754   echo $ECHO_N "(cached) $ECHO_C" >&6
20755 else
20756   cat >conftest.$ac_ext <<_ACEOF
20757 /* confdefs.h.  */
20758 _ACEOF
20759 cat confdefs.h >>conftest.$ac_ext
20760 cat >>conftest.$ac_ext <<_ACEOF
20761 /* end confdefs.h.  */
20762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20764 #define $ac_func innocuous_$ac_func
20765
20766 /* System header to define __stub macros and hopefully few prototypes,
20767     which can conflict with char $ac_func (); below.
20768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20769     <limits.h> exists even on freestanding compilers.  */
20770
20771 #ifdef __STDC__
20772 # include <limits.h>
20773 #else
20774 # include <assert.h>
20775 #endif
20776
20777 #undef $ac_func
20778
20779 /* Override any gcc2 internal prototype to avoid an error.  */
20780 #ifdef __cplusplus
20781 extern "C"
20782 {
20783 #endif
20784 /* We use char because int might match the return type of a gcc2
20785    builtin and then its argument prototype would still apply.  */
20786 char $ac_func ();
20787 /* The GNU C library defines this for functions which it implements
20788     to always fail with ENOSYS.  Some functions are actually named
20789     something starting with __ and the normal name is an alias.  */
20790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20791 choke me
20792 #else
20793 char (*f) () = $ac_func;
20794 #endif
20795 #ifdef __cplusplus
20796 }
20797 #endif
20798
20799 int
20800 main ()
20801 {
20802 return f != $ac_func;
20803   ;
20804   return 0;
20805 }
20806 _ACEOF
20807 rm -f conftest.$ac_objext conftest$ac_exeext
20808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20809   (eval $ac_link) 2>conftest.er1
20810   ac_status=$?
20811   grep -v '^ *+' conftest.er1 >conftest.err
20812   rm -f conftest.er1
20813   cat conftest.err >&5
20814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815   (exit $ac_status); } &&
20816          { ac_try='test -z "$ac_c_werror_flag"
20817                          || test ! -s conftest.err'
20818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20819   (eval $ac_try) 2>&5
20820   ac_status=$?
20821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822   (exit $ac_status); }; } &&
20823          { ac_try='test -s conftest$ac_exeext'
20824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825   (eval $ac_try) 2>&5
20826   ac_status=$?
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); }; }; then
20829   eval "$as_ac_var=yes"
20830 else
20831   echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.$ac_ext >&5
20833
20834 eval "$as_ac_var=no"
20835 fi
20836 rm -f conftest.err conftest.$ac_objext \
20837       conftest$ac_exeext conftest.$ac_ext
20838 fi
20839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20840 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20841 if test `eval echo '${'$as_ac_var'}'` = yes; then
20842   cat >>confdefs.h <<_ACEOF
20843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20844 _ACEOF
20845  cat >>confdefs.h <<\_ACEOF
20846 #define HAVE_INET_NTOP 1
20847 _ACEOF
20848
20849 fi
20850 done
20851
20852
20853 for ac_func in gethostbyname2
20854 do
20855 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20856 echo "$as_me:$LINENO: checking for $ac_func" >&5
20857 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20858 if eval "test \"\${$as_ac_var+set}\" = set"; then
20859   echo $ECHO_N "(cached) $ECHO_C" >&6
20860 else
20861   cat >conftest.$ac_ext <<_ACEOF
20862 /* confdefs.h.  */
20863 _ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h.  */
20867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20868    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20869 #define $ac_func innocuous_$ac_func
20870
20871 /* System header to define __stub macros and hopefully few prototypes,
20872     which can conflict with char $ac_func (); below.
20873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874     <limits.h> exists even on freestanding compilers.  */
20875
20876 #ifdef __STDC__
20877 # include <limits.h>
20878 #else
20879 # include <assert.h>
20880 #endif
20881
20882 #undef $ac_func
20883
20884 /* Override any gcc2 internal prototype to avoid an error.  */
20885 #ifdef __cplusplus
20886 extern "C"
20887 {
20888 #endif
20889 /* We use char because int might match the return type of a gcc2
20890    builtin and then its argument prototype would still apply.  */
20891 char $ac_func ();
20892 /* The GNU C library defines this for functions which it implements
20893     to always fail with ENOSYS.  Some functions are actually named
20894     something starting with __ and the normal name is an alias.  */
20895 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20896 choke me
20897 #else
20898 char (*f) () = $ac_func;
20899 #endif
20900 #ifdef __cplusplus
20901 }
20902 #endif
20903
20904 int
20905 main ()
20906 {
20907 return f != $ac_func;
20908   ;
20909   return 0;
20910 }
20911 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20914   (eval $ac_link) 2>conftest.er1
20915   ac_status=$?
20916   grep -v '^ *+' conftest.er1 >conftest.err
20917   rm -f conftest.er1
20918   cat conftest.err >&5
20919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920   (exit $ac_status); } &&
20921          { ac_try='test -z "$ac_c_werror_flag"
20922                          || test ! -s conftest.err'
20923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924   (eval $ac_try) 2>&5
20925   ac_status=$?
20926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927   (exit $ac_status); }; } &&
20928          { ac_try='test -s conftest$ac_exeext'
20929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930   (eval $ac_try) 2>&5
20931   ac_status=$?
20932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933   (exit $ac_status); }; }; then
20934   eval "$as_ac_var=yes"
20935 else
20936   echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20938
20939 eval "$as_ac_var=no"
20940 fi
20941 rm -f conftest.err conftest.$ac_objext \
20942       conftest$ac_exeext conftest.$ac_ext
20943 fi
20944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20946 if test `eval echo '${'$as_ac_var'}'` = yes; then
20947   cat >>confdefs.h <<_ACEOF
20948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20949 _ACEOF
20950  cat >>confdefs.h <<\_ACEOF
20951 #define HAVE_GETHOSTBYNAME2 1
20952 _ACEOF
20953
20954 fi
20955 done
20956
20957
20958 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20959 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20960 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963   cat >conftest.$ac_ext <<_ACEOF
20964 /* confdefs.h.  */
20965 _ACEOF
20966 cat confdefs.h >>conftest.$ac_ext
20967 cat >>conftest.$ac_ext <<_ACEOF
20968 /* end confdefs.h.  */
20969 #include <sys/socket.h>
20970 int
20971 main ()
20972 {
20973 struct sockaddr s; s.sa_len;
20974   ;
20975   return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20980   (eval $ac_compile) 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } &&
20987          { ac_try='test -z "$ac_c_werror_flag"
20988                          || test ! -s conftest.err'
20989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990   (eval $ac_try) 2>&5
20991   ac_status=$?
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); }; } &&
20994          { ac_try='test -s conftest.$ac_objext'
20995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996   (eval $ac_try) 2>&5
20997   ac_status=$?
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); }; }; then
21000   ac_cv_struct_sockaddr_sa_len=yes
21001 else
21002   echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21004
21005 ac_cv_struct_sockaddr_sa_len=no
21006 fi
21007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21008 fi
21009 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21010 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21011
21012  if test $ac_cv_struct_sockaddr_sa_len = yes; then
21013
21014 cat >>confdefs.h <<\_ACEOF
21015 #define HAVE_SA_LEN 1
21016 _ACEOF
21017
21018  fi
21019
21020
21021 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21022 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21023 if test "${ac_cv_ipv6_support+set}" = set; then
21024   echo $ECHO_N "(cached) $ECHO_C" >&6
21025 else
21026   cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032  #include <sys/types.h>
21033 #include <sys/socket.h>
21034 #include <netinet/in.h>
21035 int
21036 main ()
21037 {
21038 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21039  0;
21040   ;
21041   return 0;
21042 }
21043 _ACEOF
21044 rm -f conftest.$ac_objext conftest$ac_exeext
21045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21046   (eval $ac_link) 2>conftest.er1
21047   ac_status=$?
21048   grep -v '^ *+' conftest.er1 >conftest.err
21049   rm -f conftest.er1
21050   cat conftest.err >&5
21051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052   (exit $ac_status); } &&
21053          { ac_try='test -z "$ac_c_werror_flag"
21054                          || test ! -s conftest.err'
21055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056   (eval $ac_try) 2>&5
21057   ac_status=$?
21058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059   (exit $ac_status); }; } &&
21060          { ac_try='test -s conftest$ac_exeext'
21061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21062   (eval $ac_try) 2>&5
21063   ac_status=$?
21064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065   (exit $ac_status); }; }; then
21066   ac_cv_ipv6_support=yes
21067 else
21068   echo "$as_me: failed program was:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21070
21071 ac_cv_ipv6_support=no
21072 fi
21073 rm -f conftest.err conftest.$ac_objext \
21074       conftest$ac_exeext conftest.$ac_ext
21075 fi
21076 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21077 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21078
21079 if test "$ac_cv_ipv6_support" = yes; then
21080
21081 cat >>confdefs.h <<\_ACEOF
21082 #define HAVE_IPV6 1
21083 _ACEOF
21084
21085 fi
21086
21087
21088
21089
21090 for ac_func in strftime
21091 do
21092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21093 echo "$as_me:$LINENO: checking for $ac_func" >&5
21094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21095 if eval "test \"\${$as_ac_var+set}\" = set"; then
21096   echo $ECHO_N "(cached) $ECHO_C" >&6
21097 else
21098   cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h.  */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h.  */
21104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21105    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21106 #define $ac_func innocuous_$ac_func
21107
21108 /* System header to define __stub macros and hopefully few prototypes,
21109     which can conflict with char $ac_func (); below.
21110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21111     <limits.h> exists even on freestanding compilers.  */
21112
21113 #ifdef __STDC__
21114 # include <limits.h>
21115 #else
21116 # include <assert.h>
21117 #endif
21118
21119 #undef $ac_func
21120
21121 /* Override any gcc2 internal prototype to avoid an error.  */
21122 #ifdef __cplusplus
21123 extern "C"
21124 {
21125 #endif
21126 /* We use char because int might match the return type of a gcc2
21127    builtin and then its argument prototype would still apply.  */
21128 char $ac_func ();
21129 /* The GNU C library defines this for functions which it implements
21130     to always fail with ENOSYS.  Some functions are actually named
21131     something starting with __ and the normal name is an alias.  */
21132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21133 choke me
21134 #else
21135 char (*f) () = $ac_func;
21136 #endif
21137 #ifdef __cplusplus
21138 }
21139 #endif
21140
21141 int
21142 main ()
21143 {
21144 return f != $ac_func;
21145   ;
21146   return 0;
21147 }
21148 _ACEOF
21149 rm -f conftest.$ac_objext conftest$ac_exeext
21150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21151   (eval $ac_link) 2>conftest.er1
21152   ac_status=$?
21153   grep -v '^ *+' conftest.er1 >conftest.err
21154   rm -f conftest.er1
21155   cat conftest.err >&5
21156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157   (exit $ac_status); } &&
21158          { ac_try='test -z "$ac_c_werror_flag"
21159                          || test ! -s conftest.err'
21160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161   (eval $ac_try) 2>&5
21162   ac_status=$?
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); }; } &&
21165          { ac_try='test -s conftest$ac_exeext'
21166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167   (eval $ac_try) 2>&5
21168   ac_status=$?
21169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170   (exit $ac_status); }; }; then
21171   eval "$as_ac_var=yes"
21172 else
21173   echo "$as_me: failed program was:" >&5
21174 sed 's/^/| /' conftest.$ac_ext >&5
21175
21176 eval "$as_ac_var=no"
21177 fi
21178 rm -f conftest.err conftest.$ac_objext \
21179       conftest$ac_exeext conftest.$ac_ext
21180 fi
21181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21182 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21183 if test `eval echo '${'$as_ac_var'}'` = yes; then
21184   cat >>confdefs.h <<_ACEOF
21185 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21186 _ACEOF
21187
21188 else
21189   # strftime is in -lintl on SCO UNIX.
21190 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21191 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21192 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21193   echo $ECHO_N "(cached) $ECHO_C" >&6
21194 else
21195   ac_check_lib_save_LIBS=$LIBS
21196 LIBS="-lintl  $LIBS"
21197 cat >conftest.$ac_ext <<_ACEOF
21198 /* confdefs.h.  */
21199 _ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h.  */
21203
21204 /* Override any gcc2 internal prototype to avoid an error.  */
21205 #ifdef __cplusplus
21206 extern "C"
21207 #endif
21208 /* We use char because int might match the return type of a gcc2
21209    builtin and then its argument prototype would still apply.  */
21210 char strftime ();
21211 int
21212 main ()
21213 {
21214 strftime ();
21215   ;
21216   return 0;
21217 }
21218 _ACEOF
21219 rm -f conftest.$ac_objext conftest$ac_exeext
21220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21221   (eval $ac_link) 2>conftest.er1
21222   ac_status=$?
21223   grep -v '^ *+' conftest.er1 >conftest.err
21224   rm -f conftest.er1
21225   cat conftest.err >&5
21226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21227   (exit $ac_status); } &&
21228          { ac_try='test -z "$ac_c_werror_flag"
21229                          || test ! -s conftest.err'
21230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21231   (eval $ac_try) 2>&5
21232   ac_status=$?
21233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234   (exit $ac_status); }; } &&
21235          { ac_try='test -s conftest$ac_exeext'
21236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237   (eval $ac_try) 2>&5
21238   ac_status=$?
21239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240   (exit $ac_status); }; }; then
21241   ac_cv_lib_intl_strftime=yes
21242 else
21243   echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ac_cv_lib_intl_strftime=no
21247 fi
21248 rm -f conftest.err conftest.$ac_objext \
21249       conftest$ac_exeext conftest.$ac_ext
21250 LIBS=$ac_check_lib_save_LIBS
21251 fi
21252 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21253 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21254 if test $ac_cv_lib_intl_strftime = yes; then
21255   cat >>confdefs.h <<\_ACEOF
21256 #define HAVE_STRFTIME 1
21257 _ACEOF
21258
21259 LIBS="-lintl $LIBS"
21260 fi
21261
21262 fi
21263 done
21264
21265
21266 for ac_func in vprintf
21267 do
21268 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21269 echo "$as_me:$LINENO: checking for $ac_func" >&5
21270 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21271 if eval "test \"\${$as_ac_var+set}\" = set"; then
21272   echo $ECHO_N "(cached) $ECHO_C" >&6
21273 else
21274   cat >conftest.$ac_ext <<_ACEOF
21275 /* confdefs.h.  */
21276 _ACEOF
21277 cat confdefs.h >>conftest.$ac_ext
21278 cat >>conftest.$ac_ext <<_ACEOF
21279 /* end confdefs.h.  */
21280 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21281    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21282 #define $ac_func innocuous_$ac_func
21283
21284 /* System header to define __stub macros and hopefully few prototypes,
21285     which can conflict with char $ac_func (); below.
21286     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21287     <limits.h> exists even on freestanding compilers.  */
21288
21289 #ifdef __STDC__
21290 # include <limits.h>
21291 #else
21292 # include <assert.h>
21293 #endif
21294
21295 #undef $ac_func
21296
21297 /* Override any gcc2 internal prototype to avoid an error.  */
21298 #ifdef __cplusplus
21299 extern "C"
21300 {
21301 #endif
21302 /* We use char because int might match the return type of a gcc2
21303    builtin and then its argument prototype would still apply.  */
21304 char $ac_func ();
21305 /* The GNU C library defines this for functions which it implements
21306     to always fail with ENOSYS.  Some functions are actually named
21307     something starting with __ and the normal name is an alias.  */
21308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21309 choke me
21310 #else
21311 char (*f) () = $ac_func;
21312 #endif
21313 #ifdef __cplusplus
21314 }
21315 #endif
21316
21317 int
21318 main ()
21319 {
21320 return f != $ac_func;
21321   ;
21322   return 0;
21323 }
21324 _ACEOF
21325 rm -f conftest.$ac_objext conftest$ac_exeext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21327   (eval $ac_link) 2>conftest.er1
21328   ac_status=$?
21329   grep -v '^ *+' conftest.er1 >conftest.err
21330   rm -f conftest.er1
21331   cat conftest.err >&5
21332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333   (exit $ac_status); } &&
21334          { ac_try='test -z "$ac_c_werror_flag"
21335                          || test ! -s conftest.err'
21336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337   (eval $ac_try) 2>&5
21338   ac_status=$?
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); }; } &&
21341          { ac_try='test -s conftest$ac_exeext'
21342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343   (eval $ac_try) 2>&5
21344   ac_status=$?
21345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346   (exit $ac_status); }; }; then
21347   eval "$as_ac_var=yes"
21348 else
21349   echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21351
21352 eval "$as_ac_var=no"
21353 fi
21354 rm -f conftest.err conftest.$ac_objext \
21355       conftest$ac_exeext conftest.$ac_ext
21356 fi
21357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21358 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21359 if test `eval echo '${'$as_ac_var'}'` = yes; then
21360   cat >>confdefs.h <<_ACEOF
21361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21362 _ACEOF
21363
21364 echo "$as_me:$LINENO: checking for _doprnt" >&5
21365 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21366 if test "${ac_cv_func__doprnt+set}" = set; then
21367   echo $ECHO_N "(cached) $ECHO_C" >&6
21368 else
21369   cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h.  */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h.  */
21375 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21377 #define _doprnt innocuous__doprnt
21378
21379 /* System header to define __stub macros and hopefully few prototypes,
21380     which can conflict with char _doprnt (); below.
21381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21382     <limits.h> exists even on freestanding compilers.  */
21383
21384 #ifdef __STDC__
21385 # include <limits.h>
21386 #else
21387 # include <assert.h>
21388 #endif
21389
21390 #undef _doprnt
21391
21392 /* Override any gcc2 internal prototype to avoid an error.  */
21393 #ifdef __cplusplus
21394 extern "C"
21395 {
21396 #endif
21397 /* We use char because int might match the return type of a gcc2
21398    builtin and then its argument prototype would still apply.  */
21399 char _doprnt ();
21400 /* The GNU C library defines this for functions which it implements
21401     to always fail with ENOSYS.  Some functions are actually named
21402     something starting with __ and the normal name is an alias.  */
21403 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21404 choke me
21405 #else
21406 char (*f) () = _doprnt;
21407 #endif
21408 #ifdef __cplusplus
21409 }
21410 #endif
21411
21412 int
21413 main ()
21414 {
21415 return f != _doprnt;
21416   ;
21417   return 0;
21418 }
21419 _ACEOF
21420 rm -f conftest.$ac_objext conftest$ac_exeext
21421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21422   (eval $ac_link) 2>conftest.er1
21423   ac_status=$?
21424   grep -v '^ *+' conftest.er1 >conftest.err
21425   rm -f conftest.er1
21426   cat conftest.err >&5
21427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428   (exit $ac_status); } &&
21429          { ac_try='test -z "$ac_c_werror_flag"
21430                          || test ! -s conftest.err'
21431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432   (eval $ac_try) 2>&5
21433   ac_status=$?
21434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435   (exit $ac_status); }; } &&
21436          { ac_try='test -s conftest$ac_exeext'
21437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21438   (eval $ac_try) 2>&5
21439   ac_status=$?
21440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441   (exit $ac_status); }; }; then
21442   ac_cv_func__doprnt=yes
21443 else
21444   echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 ac_cv_func__doprnt=no
21448 fi
21449 rm -f conftest.err conftest.$ac_objext \
21450       conftest$ac_exeext conftest.$ac_ext
21451 fi
21452 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21453 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21454 if test $ac_cv_func__doprnt = yes; then
21455
21456 cat >>confdefs.h <<\_ACEOF
21457 #define HAVE_DOPRNT 1
21458 _ACEOF
21459
21460 fi
21461
21462 fi
21463 done
21464
21465
21466 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21467 # for constant arguments.  Useless!
21468 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21469 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21470 if test "${ac_cv_working_alloca_h+set}" = set; then
21471   echo $ECHO_N "(cached) $ECHO_C" >&6
21472 else
21473   cat >conftest.$ac_ext <<_ACEOF
21474 /* confdefs.h.  */
21475 _ACEOF
21476 cat confdefs.h >>conftest.$ac_ext
21477 cat >>conftest.$ac_ext <<_ACEOF
21478 /* end confdefs.h.  */
21479 #include <alloca.h>
21480 int
21481 main ()
21482 {
21483 char *p = (char *) alloca (2 * sizeof (int));
21484   ;
21485   return 0;
21486 }
21487 _ACEOF
21488 rm -f conftest.$ac_objext conftest$ac_exeext
21489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21490   (eval $ac_link) 2>conftest.er1
21491   ac_status=$?
21492   grep -v '^ *+' conftest.er1 >conftest.err
21493   rm -f conftest.er1
21494   cat conftest.err >&5
21495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496   (exit $ac_status); } &&
21497          { ac_try='test -z "$ac_c_werror_flag"
21498                          || test ! -s conftest.err'
21499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500   (eval $ac_try) 2>&5
21501   ac_status=$?
21502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503   (exit $ac_status); }; } &&
21504          { ac_try='test -s conftest$ac_exeext'
21505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506   (eval $ac_try) 2>&5
21507   ac_status=$?
21508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509   (exit $ac_status); }; }; then
21510   ac_cv_working_alloca_h=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515 ac_cv_working_alloca_h=no
21516 fi
21517 rm -f conftest.err conftest.$ac_objext \
21518       conftest$ac_exeext conftest.$ac_ext
21519 fi
21520 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21521 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21522 if test $ac_cv_working_alloca_h = yes; then
21523
21524 cat >>confdefs.h <<\_ACEOF
21525 #define HAVE_ALLOCA_H 1
21526 _ACEOF
21527
21528 fi
21529
21530 echo "$as_me:$LINENO: checking for alloca" >&5
21531 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21532 if test "${ac_cv_func_alloca_works+set}" = set; then
21533   echo $ECHO_N "(cached) $ECHO_C" >&6
21534 else
21535   cat >conftest.$ac_ext <<_ACEOF
21536 /* confdefs.h.  */
21537 _ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h.  */
21541 #ifdef __GNUC__
21542 # define alloca __builtin_alloca
21543 #else
21544 # ifdef _MSC_VER
21545 #  include <malloc.h>
21546 #  define alloca _alloca
21547 # else
21548 #  if HAVE_ALLOCA_H
21549 #   include <alloca.h>
21550 #  else
21551 #   ifdef _AIX
21552  #pragma alloca
21553 #   else
21554 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21555 char *alloca ();
21556 #    endif
21557 #   endif
21558 #  endif
21559 # endif
21560 #endif
21561
21562 int
21563 main ()
21564 {
21565 char *p = (char *) alloca (1);
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 rm -f conftest.$ac_objext conftest$ac_exeext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21572   (eval $ac_link) 2>conftest.er1
21573   ac_status=$?
21574   grep -v '^ *+' conftest.er1 >conftest.err
21575   rm -f conftest.er1
21576   cat conftest.err >&5
21577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578   (exit $ac_status); } &&
21579          { ac_try='test -z "$ac_c_werror_flag"
21580                          || test ! -s conftest.err'
21581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582   (eval $ac_try) 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; } &&
21586          { ac_try='test -s conftest$ac_exeext'
21587   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588   (eval $ac_try) 2>&5
21589   ac_status=$?
21590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591   (exit $ac_status); }; }; then
21592   ac_cv_func_alloca_works=yes
21593 else
21594   echo "$as_me: failed program was:" >&5
21595 sed 's/^/| /' conftest.$ac_ext >&5
21596
21597 ac_cv_func_alloca_works=no
21598 fi
21599 rm -f conftest.err conftest.$ac_objext \
21600       conftest$ac_exeext conftest.$ac_ext
21601 fi
21602 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21603 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21604
21605 if test $ac_cv_func_alloca_works = yes; then
21606
21607 cat >>confdefs.h <<\_ACEOF
21608 #define HAVE_ALLOCA 1
21609 _ACEOF
21610
21611 else
21612   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21613 # that cause trouble.  Some versions do not even contain alloca or
21614 # contain a buggy version.  If you still want to use their alloca,
21615 # use ar to extract alloca.o from them instead of compiling alloca.c.
21616
21617 ALLOCA=alloca.$ac_objext
21618
21619 cat >>confdefs.h <<\_ACEOF
21620 #define C_ALLOCA 1
21621 _ACEOF
21622
21623
21624 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21625 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21626 if test "${ac_cv_os_cray+set}" = set; then
21627   echo $ECHO_N "(cached) $ECHO_C" >&6
21628 else
21629   cat >conftest.$ac_ext <<_ACEOF
21630 /* confdefs.h.  */
21631 _ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h.  */
21635 #if defined(CRAY) && ! defined(CRAY2)
21636 webecray
21637 #else
21638 wenotbecray
21639 #endif
21640
21641 _ACEOF
21642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21643   $EGREP "webecray" >/dev/null 2>&1; then
21644   ac_cv_os_cray=yes
21645 else
21646   ac_cv_os_cray=no
21647 fi
21648 rm -f conftest*
21649
21650 fi
21651 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21652 echo "${ECHO_T}$ac_cv_os_cray" >&6
21653 if test $ac_cv_os_cray = yes; then
21654   for ac_func in _getb67 GETB67 getb67; do
21655     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21656 echo "$as_me:$LINENO: checking for $ac_func" >&5
21657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21658 if eval "test \"\${$as_ac_var+set}\" = set"; then
21659   echo $ECHO_N "(cached) $ECHO_C" >&6
21660 else
21661   cat >conftest.$ac_ext <<_ACEOF
21662 /* confdefs.h.  */
21663 _ACEOF
21664 cat confdefs.h >>conftest.$ac_ext
21665 cat >>conftest.$ac_ext <<_ACEOF
21666 /* end confdefs.h.  */
21667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21668    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21669 #define $ac_func innocuous_$ac_func
21670
21671 /* System header to define __stub macros and hopefully few prototypes,
21672     which can conflict with char $ac_func (); below.
21673     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21674     <limits.h> exists even on freestanding compilers.  */
21675
21676 #ifdef __STDC__
21677 # include <limits.h>
21678 #else
21679 # include <assert.h>
21680 #endif
21681
21682 #undef $ac_func
21683
21684 /* Override any gcc2 internal prototype to avoid an error.  */
21685 #ifdef __cplusplus
21686 extern "C"
21687 {
21688 #endif
21689 /* We use char because int might match the return type of a gcc2
21690    builtin and then its argument prototype would still apply.  */
21691 char $ac_func ();
21692 /* The GNU C library defines this for functions which it implements
21693     to always fail with ENOSYS.  Some functions are actually named
21694     something starting with __ and the normal name is an alias.  */
21695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21696 choke me
21697 #else
21698 char (*f) () = $ac_func;
21699 #endif
21700 #ifdef __cplusplus
21701 }
21702 #endif
21703
21704 int
21705 main ()
21706 {
21707 return f != $ac_func;
21708   ;
21709   return 0;
21710 }
21711 _ACEOF
21712 rm -f conftest.$ac_objext conftest$ac_exeext
21713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714   (eval $ac_link) 2>conftest.er1
21715   ac_status=$?
21716   grep -v '^ *+' conftest.er1 >conftest.err
21717   rm -f conftest.er1
21718   cat conftest.err >&5
21719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720   (exit $ac_status); } &&
21721          { ac_try='test -z "$ac_c_werror_flag"
21722                          || test ! -s conftest.err'
21723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724   (eval $ac_try) 2>&5
21725   ac_status=$?
21726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727   (exit $ac_status); }; } &&
21728          { ac_try='test -s conftest$ac_exeext'
21729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730   (eval $ac_try) 2>&5
21731   ac_status=$?
21732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733   (exit $ac_status); }; }; then
21734   eval "$as_ac_var=yes"
21735 else
21736   echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21738
21739 eval "$as_ac_var=no"
21740 fi
21741 rm -f conftest.err conftest.$ac_objext \
21742       conftest$ac_exeext conftest.$ac_ext
21743 fi
21744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21745 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21746 if test `eval echo '${'$as_ac_var'}'` = yes; then
21747
21748 cat >>confdefs.h <<_ACEOF
21749 #define CRAY_STACKSEG_END $ac_func
21750 _ACEOF
21751
21752     break
21753 fi
21754
21755   done
21756 fi
21757
21758 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21759 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21760 if test "${ac_cv_c_stack_direction+set}" = set; then
21761   echo $ECHO_N "(cached) $ECHO_C" >&6
21762 else
21763   if test "$cross_compiling" = yes; then
21764   ac_cv_c_stack_direction=0
21765 else
21766   cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h.  */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h.  */
21772 int
21773 find_stack_direction ()
21774 {
21775   static char *addr = 0;
21776   auto char dummy;
21777   if (addr == 0)
21778     {
21779       addr = &dummy;
21780       return find_stack_direction ();
21781     }
21782   else
21783     return (&dummy > addr) ? 1 : -1;
21784 }
21785
21786 int
21787 main ()
21788 {
21789   exit (find_stack_direction () < 0);
21790 }
21791 _ACEOF
21792 rm -f conftest$ac_exeext
21793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21794   (eval $ac_link) 2>&5
21795   ac_status=$?
21796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799   (eval $ac_try) 2>&5
21800   ac_status=$?
21801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802   (exit $ac_status); }; }; then
21803   ac_cv_c_stack_direction=1
21804 else
21805   echo "$as_me: program exited with status $ac_status" >&5
21806 echo "$as_me: failed program was:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21808
21809 ( exit $ac_status )
21810 ac_cv_c_stack_direction=-1
21811 fi
21812 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21813 fi
21814 fi
21815 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21816 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21817
21818 cat >>confdefs.h <<_ACEOF
21819 #define STACK_DIRECTION $ac_cv_c_stack_direction
21820 _ACEOF
21821
21822
21823 fi
21824
21825 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21826 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21827 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21828 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21829   echo $ECHO_N "(cached) $ECHO_C" >&6
21830 else
21831   ac_check_lib_save_LIBS=$LIBS
21832 LIBS="-lsun  $LIBS"
21833 cat >conftest.$ac_ext <<_ACEOF
21834 /* confdefs.h.  */
21835 _ACEOF
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h.  */
21839
21840 /* Override any gcc2 internal prototype to avoid an error.  */
21841 #ifdef __cplusplus
21842 extern "C"
21843 #endif
21844 /* We use char because int might match the return type of a gcc2
21845    builtin and then its argument prototype would still apply.  */
21846 char getmntent ();
21847 int
21848 main ()
21849 {
21850 getmntent ();
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext conftest$ac_exeext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21857   (eval $ac_link) 2>conftest.er1
21858   ac_status=$?
21859   grep -v '^ *+' conftest.er1 >conftest.err
21860   rm -f conftest.er1
21861   cat conftest.err >&5
21862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863   (exit $ac_status); } &&
21864          { ac_try='test -z "$ac_c_werror_flag"
21865                          || test ! -s conftest.err'
21866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867   (eval $ac_try) 2>&5
21868   ac_status=$?
21869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870   (exit $ac_status); }; } &&
21871          { ac_try='test -s conftest$ac_exeext'
21872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873   (eval $ac_try) 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); }; }; then
21877   ac_cv_lib_sun_getmntent=yes
21878 else
21879   echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21881
21882 ac_cv_lib_sun_getmntent=no
21883 fi
21884 rm -f conftest.err conftest.$ac_objext \
21885       conftest$ac_exeext conftest.$ac_ext
21886 LIBS=$ac_check_lib_save_LIBS
21887 fi
21888 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21889 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21890 if test $ac_cv_lib_sun_getmntent = yes; then
21891   LIBS="-lsun $LIBS"
21892 else
21893   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21894 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21895 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21896   echo $ECHO_N "(cached) $ECHO_C" >&6
21897 else
21898   ac_check_lib_save_LIBS=$LIBS
21899 LIBS="-lseq  $LIBS"
21900 cat >conftest.$ac_ext <<_ACEOF
21901 /* confdefs.h.  */
21902 _ACEOF
21903 cat confdefs.h >>conftest.$ac_ext
21904 cat >>conftest.$ac_ext <<_ACEOF
21905 /* end confdefs.h.  */
21906
21907 /* Override any gcc2 internal prototype to avoid an error.  */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 /* We use char because int might match the return type of a gcc2
21912    builtin and then its argument prototype would still apply.  */
21913 char getmntent ();
21914 int
21915 main ()
21916 {
21917 getmntent ();
21918   ;
21919   return 0;
21920 }
21921 _ACEOF
21922 rm -f conftest.$ac_objext conftest$ac_exeext
21923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924   (eval $ac_link) 2>conftest.er1
21925   ac_status=$?
21926   grep -v '^ *+' conftest.er1 >conftest.err
21927   rm -f conftest.er1
21928   cat conftest.err >&5
21929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930   (exit $ac_status); } &&
21931          { ac_try='test -z "$ac_c_werror_flag"
21932                          || test ! -s conftest.err'
21933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934   (eval $ac_try) 2>&5
21935   ac_status=$?
21936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937   (exit $ac_status); }; } &&
21938          { ac_try='test -s conftest$ac_exeext'
21939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940   (eval $ac_try) 2>&5
21941   ac_status=$?
21942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943   (exit $ac_status); }; }; then
21944   ac_cv_lib_seq_getmntent=yes
21945 else
21946   echo "$as_me: failed program was:" >&5
21947 sed 's/^/| /' conftest.$ac_ext >&5
21948
21949 ac_cv_lib_seq_getmntent=no
21950 fi
21951 rm -f conftest.err conftest.$ac_objext \
21952       conftest$ac_exeext conftest.$ac_ext
21953 LIBS=$ac_check_lib_save_LIBS
21954 fi
21955 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21956 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21957 if test $ac_cv_lib_seq_getmntent = yes; then
21958   LIBS="-lseq $LIBS"
21959 else
21960   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21961 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21962 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21963   echo $ECHO_N "(cached) $ECHO_C" >&6
21964 else
21965   ac_check_lib_save_LIBS=$LIBS
21966 LIBS="-lgen  $LIBS"
21967 cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973
21974 /* Override any gcc2 internal prototype to avoid an error.  */
21975 #ifdef __cplusplus
21976 extern "C"
21977 #endif
21978 /* We use char because int might match the return type of a gcc2
21979    builtin and then its argument prototype would still apply.  */
21980 char getmntent ();
21981 int
21982 main ()
21983 {
21984 getmntent ();
21985   ;
21986   return 0;
21987 }
21988 _ACEOF
21989 rm -f conftest.$ac_objext conftest$ac_exeext
21990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21991   (eval $ac_link) 2>conftest.er1
21992   ac_status=$?
21993   grep -v '^ *+' conftest.er1 >conftest.err
21994   rm -f conftest.er1
21995   cat conftest.err >&5
21996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997   (exit $ac_status); } &&
21998          { ac_try='test -z "$ac_c_werror_flag"
21999                          || test ! -s conftest.err'
22000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22001   (eval $ac_try) 2>&5
22002   ac_status=$?
22003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004   (exit $ac_status); }; } &&
22005          { ac_try='test -s conftest$ac_exeext'
22006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22007   (eval $ac_try) 2>&5
22008   ac_status=$?
22009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22010   (exit $ac_status); }; }; then
22011   ac_cv_lib_gen_getmntent=yes
22012 else
22013   echo "$as_me: failed program was:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22015
22016 ac_cv_lib_gen_getmntent=no
22017 fi
22018 rm -f conftest.err conftest.$ac_objext \
22019       conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22021 fi
22022 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22023 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22024 if test $ac_cv_lib_gen_getmntent = yes; then
22025   LIBS="-lgen $LIBS"
22026 fi
22027
22028 fi
22029
22030 fi
22031
22032
22033 for ac_func in getmntent
22034 do
22035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22036 echo "$as_me:$LINENO: checking for $ac_func" >&5
22037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22038 if eval "test \"\${$as_ac_var+set}\" = set"; then
22039   echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041   cat >conftest.$ac_ext <<_ACEOF
22042 /* confdefs.h.  */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h.  */
22047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22048    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22049 #define $ac_func innocuous_$ac_func
22050
22051 /* System header to define __stub macros and hopefully few prototypes,
22052     which can conflict with char $ac_func (); below.
22053     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22054     <limits.h> exists even on freestanding compilers.  */
22055
22056 #ifdef __STDC__
22057 # include <limits.h>
22058 #else
22059 # include <assert.h>
22060 #endif
22061
22062 #undef $ac_func
22063
22064 /* Override any gcc2 internal prototype to avoid an error.  */
22065 #ifdef __cplusplus
22066 extern "C"
22067 {
22068 #endif
22069 /* We use char because int might match the return type of a gcc2
22070    builtin and then its argument prototype would still apply.  */
22071 char $ac_func ();
22072 /* The GNU C library defines this for functions which it implements
22073     to always fail with ENOSYS.  Some functions are actually named
22074     something starting with __ and the normal name is an alias.  */
22075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22076 choke me
22077 #else
22078 char (*f) () = $ac_func;
22079 #endif
22080 #ifdef __cplusplus
22081 }
22082 #endif
22083
22084 int
22085 main ()
22086 {
22087 return f != $ac_func;
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 rm -f conftest.$ac_objext conftest$ac_exeext
22093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22094   (eval $ac_link) 2>conftest.er1
22095   ac_status=$?
22096   grep -v '^ *+' conftest.er1 >conftest.err
22097   rm -f conftest.er1
22098   cat conftest.err >&5
22099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22100   (exit $ac_status); } &&
22101          { ac_try='test -z "$ac_c_werror_flag"
22102                          || test ! -s conftest.err'
22103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104   (eval $ac_try) 2>&5
22105   ac_status=$?
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); }; } &&
22108          { ac_try='test -s conftest$ac_exeext'
22109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22110   (eval $ac_try) 2>&5
22111   ac_status=$?
22112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22113   (exit $ac_status); }; }; then
22114   eval "$as_ac_var=yes"
22115 else
22116   echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 eval "$as_ac_var=no"
22120 fi
22121 rm -f conftest.err conftest.$ac_objext \
22122       conftest$ac_exeext conftest.$ac_ext
22123 fi
22124 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22125 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22126 if test `eval echo '${'$as_ac_var'}'` = yes; then
22127   cat >>confdefs.h <<_ACEOF
22128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22129 _ACEOF
22130
22131 fi
22132 done
22133
22134
22135 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22136 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22137 if test "${ac_cv_func_closedir_void+set}" = set; then
22138   echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140   if test "$cross_compiling" = yes; then
22141   ac_cv_func_closedir_void=yes
22142 else
22143   cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 $ac_includes_default
22150 #include <$ac_header_dirent>
22151 #ifndef __cplusplus
22152 int closedir ();
22153 #endif
22154
22155 int
22156 main ()
22157 {
22158 exit (closedir (opendir (".")) != 0);
22159   ;
22160   return 0;
22161 }
22162 _ACEOF
22163 rm -f conftest$ac_exeext
22164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22165   (eval $ac_link) 2>&5
22166   ac_status=$?
22167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170   (eval $ac_try) 2>&5
22171   ac_status=$?
22172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173   (exit $ac_status); }; }; then
22174   ac_cv_func_closedir_void=no
22175 else
22176   echo "$as_me: program exited with status $ac_status" >&5
22177 echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180 ( exit $ac_status )
22181 ac_cv_func_closedir_void=yes
22182 fi
22183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22184 fi
22185 fi
22186 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22187 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22188 if test $ac_cv_func_closedir_void = yes; then
22189
22190 cat >>confdefs.h <<\_ACEOF
22191 #define CLOSEDIR_VOID 1
22192 _ACEOF
22193
22194 fi
22195
22196 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22197 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22198 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22199   echo $ECHO_N "(cached) $ECHO_C" >&6
22200 else
22201   if test "$cross_compiling" = yes; then
22202   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22203 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22204    { (exit 1); exit 1; }; }
22205 else
22206   cat >conftest.$ac_ext <<_ACEOF
22207 /* confdefs.h.  */
22208 _ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h.  */
22212 #if HAVE_UNISTD_H
22213 # include <unistd.h>
22214 #endif
22215
22216 int
22217 main ()
22218 {
22219 /* If this system has a BSD-style setpgrp which takes arguments,
22220   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22221   exit successfully. */
22222   exit (setpgrp (1,1) == -1 ? 0 : 1);
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 rm -f conftest$ac_exeext
22228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22229   (eval $ac_link) 2>&5
22230   ac_status=$?
22231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22232   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22234   (eval $ac_try) 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); }; }; then
22238   ac_cv_func_setpgrp_void=no
22239 else
22240   echo "$as_me: program exited with status $ac_status" >&5
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 ( exit $ac_status )
22245 ac_cv_func_setpgrp_void=yes
22246 fi
22247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22248 fi
22249 fi
22250 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22251 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22252 if test $ac_cv_func_setpgrp_void = yes; then
22253
22254 cat >>confdefs.h <<\_ACEOF
22255 #define SETPGRP_VOID 1
22256 _ACEOF
22257
22258 fi
22259                       # AC_FUNC_FNMATCH    dnl use local version
22260
22261
22262 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22263 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22264 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22265   echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267   ac_check_lib_save_LIBS=$LIBS
22268 LIBS="-lxpg4  $LIBS"
22269 cat >conftest.$ac_ext <<_ACEOF
22270 /* confdefs.h.  */
22271 _ACEOF
22272 cat confdefs.h >>conftest.$ac_ext
22273 cat >>conftest.$ac_ext <<_ACEOF
22274 /* end confdefs.h.  */
22275
22276 /* Override any gcc2 internal prototype to avoid an error.  */
22277 #ifdef __cplusplus
22278 extern "C"
22279 #endif
22280 /* We use char because int might match the return type of a gcc2
22281    builtin and then its argument prototype would still apply.  */
22282 char setlocale ();
22283 int
22284 main ()
22285 {
22286 setlocale ();
22287   ;
22288   return 0;
22289 }
22290 _ACEOF
22291 rm -f conftest.$ac_objext conftest$ac_exeext
22292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22293   (eval $ac_link) 2>conftest.er1
22294   ac_status=$?
22295   grep -v '^ *+' conftest.er1 >conftest.err
22296   rm -f conftest.er1
22297   cat conftest.err >&5
22298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299   (exit $ac_status); } &&
22300          { ac_try='test -z "$ac_c_werror_flag"
22301                          || test ! -s conftest.err'
22302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303   (eval $ac_try) 2>&5
22304   ac_status=$?
22305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306   (exit $ac_status); }; } &&
22307          { ac_try='test -s conftest$ac_exeext'
22308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22309   (eval $ac_try) 2>&5
22310   ac_status=$?
22311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312   (exit $ac_status); }; }; then
22313   ac_cv_lib_xpg4_setlocale=yes
22314 else
22315   echo "$as_me: failed program was:" >&5
22316 sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_cv_lib_xpg4_setlocale=no
22319 fi
22320 rm -f conftest.err conftest.$ac_objext \
22321       conftest$ac_exeext conftest.$ac_ext
22322 LIBS=$ac_check_lib_save_LIBS
22323 fi
22324 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22325 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22326 if test $ac_cv_lib_xpg4_setlocale = yes; then
22327   LIBS="$LIBS -lxpg4"
22328 fi
22329
22330
22331
22332
22333 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22334 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22335 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22336   echo $ECHO_N "(cached) $ECHO_C" >&6
22337 else
22338   ac_check_lib_save_LIBS=$LIBS
22339 LIBS="-lsun  $LIBS"
22340 cat >conftest.$ac_ext <<_ACEOF
22341 /* confdefs.h.  */
22342 _ACEOF
22343 cat confdefs.h >>conftest.$ac_ext
22344 cat >>conftest.$ac_ext <<_ACEOF
22345 /* end confdefs.h.  */
22346
22347 /* Override any gcc2 internal prototype to avoid an error.  */
22348 #ifdef __cplusplus
22349 extern "C"
22350 #endif
22351 /* We use char because int might match the return type of a gcc2
22352    builtin and then its argument prototype would still apply.  */
22353 char getpwnam ();
22354 int
22355 main ()
22356 {
22357 getpwnam ();
22358   ;
22359   return 0;
22360 }
22361 _ACEOF
22362 rm -f conftest.$ac_objext conftest$ac_exeext
22363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22364   (eval $ac_link) 2>conftest.er1
22365   ac_status=$?
22366   grep -v '^ *+' conftest.er1 >conftest.err
22367   rm -f conftest.er1
22368   cat conftest.err >&5
22369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370   (exit $ac_status); } &&
22371          { ac_try='test -z "$ac_c_werror_flag"
22372                          || test ! -s conftest.err'
22373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374   (eval $ac_try) 2>&5
22375   ac_status=$?
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); }; } &&
22378          { ac_try='test -s conftest$ac_exeext'
22379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22380   (eval $ac_try) 2>&5
22381   ac_status=$?
22382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22383   (exit $ac_status); }; }; then
22384   ac_cv_lib_sun_getpwnam=yes
22385 else
22386   echo "$as_me: failed program was:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22388
22389 ac_cv_lib_sun_getpwnam=no
22390 fi
22391 rm -f conftest.err conftest.$ac_objext \
22392       conftest$ac_exeext conftest.$ac_ext
22393 LIBS=$ac_check_lib_save_LIBS
22394 fi
22395 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22396 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22397 if test $ac_cv_lib_sun_getpwnam = yes; then
22398   cat >>confdefs.h <<_ACEOF
22399 #define HAVE_LIBSUN 1
22400 _ACEOF
22401
22402   LIBS="-lsun $LIBS"
22403
22404 fi
22405
22406
22407
22408 for ac_header in zlib.h
22409 do
22410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22412   echo "$as_me:$LINENO: checking for $ac_header" >&5
22413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22415   echo $ECHO_N "(cached) $ECHO_C" >&6
22416 fi
22417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22419 else
22420   # Is the header compilable?
22421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22423 cat >conftest.$ac_ext <<_ACEOF
22424 /* confdefs.h.  */
22425 _ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h.  */
22429 $ac_includes_default
22430 #include <$ac_header>
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_header_compiler=yes
22455 else
22456   echo "$as_me: failed program was:" >&5
22457 sed 's/^/| /' conftest.$ac_ext >&5
22458
22459 ac_header_compiler=no
22460 fi
22461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22462 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22463 echo "${ECHO_T}$ac_header_compiler" >&6
22464
22465 # Is the header present?
22466 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22467 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 #include <$ac_header>
22475 _ACEOF
22476 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22477   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22478   ac_status=$?
22479   grep -v '^ *+' conftest.er1 >conftest.err
22480   rm -f conftest.er1
22481   cat conftest.err >&5
22482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483   (exit $ac_status); } >/dev/null; then
22484   if test -s conftest.err; then
22485     ac_cpp_err=$ac_c_preproc_warn_flag
22486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22487   else
22488     ac_cpp_err=
22489   fi
22490 else
22491   ac_cpp_err=yes
22492 fi
22493 if test -z "$ac_cpp_err"; then
22494   ac_header_preproc=yes
22495 else
22496   echo "$as_me: failed program was:" >&5
22497 sed 's/^/| /' conftest.$ac_ext >&5
22498
22499   ac_header_preproc=no
22500 fi
22501 rm -f conftest.err conftest.$ac_ext
22502 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22503 echo "${ECHO_T}$ac_header_preproc" >&6
22504
22505 # So?  What about this header?
22506 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22507   yes:no: )
22508     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22509 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22511 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22512     ac_header_preproc=yes
22513     ;;
22514   no:yes:* )
22515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22517     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22518 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22519     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22520 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22521     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22522 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22523     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22525     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22526 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22527     (
22528       cat <<\_ASBOX
22529 ## ------------------------------------------ ##
22530 ## Report this to the AC_PACKAGE_NAME lists.  ##
22531 ## ------------------------------------------ ##
22532 _ASBOX
22533     ) |
22534       sed "s/^/$as_me: WARNING:     /" >&2
22535     ;;
22536 esac
22537 echo "$as_me:$LINENO: checking for $ac_header" >&5
22538 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22539 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   eval "$as_ac_Header=\$ac_header_preproc"
22543 fi
22544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22545 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22546
22547 fi
22548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22549   cat >>confdefs.h <<_ACEOF
22550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22551 _ACEOF
22552
22553 fi
22554
22555 done
22556
22557 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22558 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22559 if test "${ac_cv_lib_z_deflate+set}" = set; then
22560   echo $ECHO_N "(cached) $ECHO_C" >&6
22561 else
22562   ac_check_lib_save_LIBS=$LIBS
22563 LIBS="-lz  $LIBS"
22564 cat >conftest.$ac_ext <<_ACEOF
22565 /* confdefs.h.  */
22566 _ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h.  */
22570
22571 /* Override any gcc2 internal prototype to avoid an error.  */
22572 #ifdef __cplusplus
22573 extern "C"
22574 #endif
22575 /* We use char because int might match the return type of a gcc2
22576    builtin and then its argument prototype would still apply.  */
22577 char deflate ();
22578 int
22579 main ()
22580 {
22581 deflate ();
22582   ;
22583   return 0;
22584 }
22585 _ACEOF
22586 rm -f conftest.$ac_objext conftest$ac_exeext
22587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22588   (eval $ac_link) 2>conftest.er1
22589   ac_status=$?
22590   grep -v '^ *+' conftest.er1 >conftest.err
22591   rm -f conftest.er1
22592   cat conftest.err >&5
22593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22594   (exit $ac_status); } &&
22595          { ac_try='test -z "$ac_c_werror_flag"
22596                          || test ! -s conftest.err'
22597   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598   (eval $ac_try) 2>&5
22599   ac_status=$?
22600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601   (exit $ac_status); }; } &&
22602          { ac_try='test -s conftest$ac_exeext'
22603   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22604   (eval $ac_try) 2>&5
22605   ac_status=$?
22606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22607   (exit $ac_status); }; }; then
22608   ac_cv_lib_z_deflate=yes
22609 else
22610   echo "$as_me: failed program was:" >&5
22611 sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 ac_cv_lib_z_deflate=no
22614 fi
22615 rm -f conftest.err conftest.$ac_objext \
22616       conftest$ac_exeext conftest.$ac_ext
22617 LIBS=$ac_check_lib_save_LIBS
22618 fi
22619 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22620 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22621 if test $ac_cv_lib_z_deflate = yes; then
22622   FDLIBS="-lz"
22623 fi
22624
22625 have_zlib=no
22626 if test x$FDLIBS = x-lz; then
22627   cat >>confdefs.h <<\_ACEOF
22628 #define HAVE_LIBZ 1
22629 _ACEOF
22630
22631   have_zlib=yes
22632 fi
22633
22634 have_acl=no
22635 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22636   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22637 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22638 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22639   echo $ECHO_N "(cached) $ECHO_C" >&6
22640 fi
22641 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22642 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22643 else
22644   # Is the header compilable?
22645 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22646 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22647 cat >conftest.$ac_ext <<_ACEOF
22648 /* confdefs.h.  */
22649 _ACEOF
22650 cat confdefs.h >>conftest.$ac_ext
22651 cat >>conftest.$ac_ext <<_ACEOF
22652 /* end confdefs.h.  */
22653 $ac_includes_default
22654 #include <sys/acl.h>
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22658   (eval $ac_compile) 2>conftest.er1
22659   ac_status=$?
22660   grep -v '^ *+' conftest.er1 >conftest.err
22661   rm -f conftest.er1
22662   cat conftest.err >&5
22663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664   (exit $ac_status); } &&
22665          { ac_try='test -z "$ac_c_werror_flag"
22666                          || test ! -s conftest.err'
22667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668   (eval $ac_try) 2>&5
22669   ac_status=$?
22670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671   (exit $ac_status); }; } &&
22672          { ac_try='test -s conftest.$ac_objext'
22673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22674   (eval $ac_try) 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; }; then
22678   ac_header_compiler=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683 ac_header_compiler=no
22684 fi
22685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22686 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22687 echo "${ECHO_T}$ac_header_compiler" >&6
22688
22689 # Is the header present?
22690 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22691 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22692 cat >conftest.$ac_ext <<_ACEOF
22693 /* confdefs.h.  */
22694 _ACEOF
22695 cat confdefs.h >>conftest.$ac_ext
22696 cat >>conftest.$ac_ext <<_ACEOF
22697 /* end confdefs.h.  */
22698 #include <sys/acl.h>
22699 _ACEOF
22700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22702   ac_status=$?
22703   grep -v '^ *+' conftest.er1 >conftest.err
22704   rm -f conftest.er1
22705   cat conftest.err >&5
22706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707   (exit $ac_status); } >/dev/null; then
22708   if test -s conftest.err; then
22709     ac_cpp_err=$ac_c_preproc_warn_flag
22710     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22711   else
22712     ac_cpp_err=
22713   fi
22714 else
22715   ac_cpp_err=yes
22716 fi
22717 if test -z "$ac_cpp_err"; then
22718   ac_header_preproc=yes
22719 else
22720   echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723   ac_header_preproc=no
22724 fi
22725 rm -f conftest.err conftest.$ac_ext
22726 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22727 echo "${ECHO_T}$ac_header_preproc" >&6
22728
22729 # So?  What about this header?
22730 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22731   yes:no: )
22732     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22733 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22735 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22736     ac_header_preproc=yes
22737     ;;
22738   no:yes:* )
22739     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22740 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22741     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
22742 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
22743     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22744 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22745     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
22746 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22747     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22748 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22749     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22750 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22751     (
22752       cat <<\_ASBOX
22753 ## ------------------------------------------ ##
22754 ## Report this to the AC_PACKAGE_NAME lists.  ##
22755 ## ------------------------------------------ ##
22756 _ASBOX
22757     ) |
22758       sed "s/^/$as_me: WARNING:     /" >&2
22759     ;;
22760 esac
22761 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22762 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22763 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22764   echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766   ac_cv_header_sys_acl_h=$ac_header_preproc
22767 fi
22768 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22769 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22770
22771 fi
22772
22773
22774 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22775 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22776 if test "${ac_cv_func_acl_get_file+set}" = set; then
22777   echo $ECHO_N "(cached) $ECHO_C" >&6
22778 else
22779   cat >conftest.$ac_ext <<_ACEOF
22780 /* confdefs.h.  */
22781 _ACEOF
22782 cat confdefs.h >>conftest.$ac_ext
22783 cat >>conftest.$ac_ext <<_ACEOF
22784 /* end confdefs.h.  */
22785 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22786    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22787 #define acl_get_file innocuous_acl_get_file
22788
22789 /* System header to define __stub macros and hopefully few prototypes,
22790     which can conflict with char acl_get_file (); below.
22791     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22792     <limits.h> exists even on freestanding compilers.  */
22793
22794 #ifdef __STDC__
22795 # include <limits.h>
22796 #else
22797 # include <assert.h>
22798 #endif
22799
22800 #undef acl_get_file
22801
22802 /* Override any gcc2 internal prototype to avoid an error.  */
22803 #ifdef __cplusplus
22804 extern "C"
22805 {
22806 #endif
22807 /* We use char because int might match the return type of a gcc2
22808    builtin and then its argument prototype would still apply.  */
22809 char acl_get_file ();
22810 /* The GNU C library defines this for functions which it implements
22811     to always fail with ENOSYS.  Some functions are actually named
22812     something starting with __ and the normal name is an alias.  */
22813 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22814 choke me
22815 #else
22816 char (*f) () = acl_get_file;
22817 #endif
22818 #ifdef __cplusplus
22819 }
22820 #endif
22821
22822 int
22823 main ()
22824 {
22825 return f != acl_get_file;
22826   ;
22827   return 0;
22828 }
22829 _ACEOF
22830 rm -f conftest.$ac_objext conftest$ac_exeext
22831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22832   (eval $ac_link) 2>conftest.er1
22833   ac_status=$?
22834   grep -v '^ *+' conftest.er1 >conftest.err
22835   rm -f conftest.er1
22836   cat conftest.err >&5
22837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838   (exit $ac_status); } &&
22839          { ac_try='test -z "$ac_c_werror_flag"
22840                          || test ! -s conftest.err'
22841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22842   (eval $ac_try) 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); }; } &&
22846          { ac_try='test -s conftest$ac_exeext'
22847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22848   (eval $ac_try) 2>&5
22849   ac_status=$?
22850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851   (exit $ac_status); }; }; then
22852   ac_cv_func_acl_get_file=yes
22853 else
22854   echo "$as_me: failed program was:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22856
22857 ac_cv_func_acl_get_file=no
22858 fi
22859 rm -f conftest.err conftest.$ac_objext \
22860       conftest$ac_exeext conftest.$ac_ext
22861 fi
22862 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22863 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22864 if test $ac_cv_func_acl_get_file = yes; then
22865   have_acl=yes
22866 else
22867   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22868 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22869 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22870   echo $ECHO_N "(cached) $ECHO_C" >&6
22871 else
22872   ac_check_lib_save_LIBS=$LIBS
22873 LIBS="-lacl  $LIBS"
22874 cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880
22881 /* Override any gcc2 internal prototype to avoid an error.  */
22882 #ifdef __cplusplus
22883 extern "C"
22884 #endif
22885 /* We use char because int might match the return type of a gcc2
22886    builtin and then its argument prototype would still apply.  */
22887 char acl_get_file ();
22888 int
22889 main ()
22890 {
22891 acl_get_file ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 rm -f conftest.$ac_objext conftest$ac_exeext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22898   (eval $ac_link) 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } &&
22905          { ac_try='test -z "$ac_c_werror_flag"
22906                          || test ! -s conftest.err'
22907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908   (eval $ac_try) 2>&5
22909   ac_status=$?
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); }; } &&
22912          { ac_try='test -s conftest$ac_exeext'
22913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914   (eval $ac_try) 2>&5
22915   ac_status=$?
22916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917   (exit $ac_status); }; }; then
22918   ac_cv_lib_acl_acl_get_file=yes
22919 else
22920   echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22922
22923 ac_cv_lib_acl_acl_get_file=no
22924 fi
22925 rm -f conftest.err conftest.$ac_objext \
22926       conftest$ac_exeext conftest.$ac_ext
22927 LIBS=$ac_check_lib_save_LIBS
22928 fi
22929 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22930 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22931 if test $ac_cv_lib_acl_acl_get_file = yes; then
22932   have_acl=yes; FDLIBS="-lacl $FDLIBS"
22933 fi
22934
22935
22936 fi
22937
22938 if test $have_acl = yes; then
22939    cat >>confdefs.h <<\_ACEOF
22940 #define HAVE_ACL 1
22941 _ACEOF
22942
22943 fi
22944
22945 PTHREAD_LIB=""
22946 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22947 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22948 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22949   echo $ECHO_N "(cached) $ECHO_C" >&6
22950 else
22951   ac_check_lib_save_LIBS=$LIBS
22952 LIBS="-lpthread  $LIBS"
22953 cat >conftest.$ac_ext <<_ACEOF
22954 /* confdefs.h.  */
22955 _ACEOF
22956 cat confdefs.h >>conftest.$ac_ext
22957 cat >>conftest.$ac_ext <<_ACEOF
22958 /* end confdefs.h.  */
22959
22960 /* Override any gcc2 internal prototype to avoid an error.  */
22961 #ifdef __cplusplus
22962 extern "C"
22963 #endif
22964 /* We use char because int might match the return type of a gcc2
22965    builtin and then its argument prototype would still apply.  */
22966 char pthread_create ();
22967 int
22968 main ()
22969 {
22970 pthread_create ();
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext conftest$ac_exeext
22976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22977   (eval $ac_link) 2>conftest.er1
22978   ac_status=$?
22979   grep -v '^ *+' conftest.er1 >conftest.err
22980   rm -f conftest.er1
22981   cat conftest.err >&5
22982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983   (exit $ac_status); } &&
22984          { ac_try='test -z "$ac_c_werror_flag"
22985                          || test ! -s conftest.err'
22986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22987   (eval $ac_try) 2>&5
22988   ac_status=$?
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); }; } &&
22991          { ac_try='test -s conftest$ac_exeext'
22992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22993   (eval $ac_try) 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }; then
22997   ac_cv_lib_pthread_pthread_create=yes
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002 ac_cv_lib_pthread_pthread_create=no
23003 fi
23004 rm -f conftest.err conftest.$ac_objext \
23005       conftest$ac_exeext conftest.$ac_ext
23006 LIBS=$ac_check_lib_save_LIBS
23007 fi
23008 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23009 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23010 if test $ac_cv_lib_pthread_pthread_create = yes; then
23011   PTHREAD_LIB="-lpthread"
23012 else
23013   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23014 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23015 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23016   echo $ECHO_N "(cached) $ECHO_C" >&6
23017 else
23018   ac_check_lib_save_LIBS=$LIBS
23019 LIBS="-lpthreads  $LIBS"
23020 cat >conftest.$ac_ext <<_ACEOF
23021 /* confdefs.h.  */
23022 _ACEOF
23023 cat confdefs.h >>conftest.$ac_ext
23024 cat >>conftest.$ac_ext <<_ACEOF
23025 /* end confdefs.h.  */
23026
23027 /* Override any gcc2 internal prototype to avoid an error.  */
23028 #ifdef __cplusplus
23029 extern "C"
23030 #endif
23031 /* We use char because int might match the return type of a gcc2
23032    builtin and then its argument prototype would still apply.  */
23033 char pthread_create ();
23034 int
23035 main ()
23036 {
23037 pthread_create ();
23038   ;
23039   return 0;
23040 }
23041 _ACEOF
23042 rm -f conftest.$ac_objext conftest$ac_exeext
23043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23044   (eval $ac_link) 2>conftest.er1
23045   ac_status=$?
23046   grep -v '^ *+' conftest.er1 >conftest.err
23047   rm -f conftest.er1
23048   cat conftest.err >&5
23049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050   (exit $ac_status); } &&
23051          { ac_try='test -z "$ac_c_werror_flag"
23052                          || test ! -s conftest.err'
23053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054   (eval $ac_try) 2>&5
23055   ac_status=$?
23056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057   (exit $ac_status); }; } &&
23058          { ac_try='test -s conftest$ac_exeext'
23059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060   (eval $ac_try) 2>&5
23061   ac_status=$?
23062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063   (exit $ac_status); }; }; then
23064   ac_cv_lib_pthreads_pthread_create=yes
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_cv_lib_pthreads_pthread_create=no
23070 fi
23071 rm -f conftest.err conftest.$ac_objext \
23072       conftest$ac_exeext conftest.$ac_ext
23073 LIBS=$ac_check_lib_save_LIBS
23074 fi
23075 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23076 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23077 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23078   PTHREAD_LIB="-lpthreads"
23079 else
23080   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23081 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23082 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23083   echo $ECHO_N "(cached) $ECHO_C" >&6
23084 else
23085   ac_check_lib_save_LIBS=$LIBS
23086 LIBS="-lc_r  $LIBS"
23087 cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093
23094 /* Override any gcc2 internal prototype to avoid an error.  */
23095 #ifdef __cplusplus
23096 extern "C"
23097 #endif
23098 /* We use char because int might match the return type of a gcc2
23099    builtin and then its argument prototype would still apply.  */
23100 char pthread_create ();
23101 int
23102 main ()
23103 {
23104 pthread_create ();
23105   ;
23106   return 0;
23107 }
23108 _ACEOF
23109 rm -f conftest.$ac_objext conftest$ac_exeext
23110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23111   (eval $ac_link) 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } &&
23118          { ac_try='test -z "$ac_c_werror_flag"
23119                          || test ! -s conftest.err'
23120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23121   (eval $ac_try) 2>&5
23122   ac_status=$?
23123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23124   (exit $ac_status); }; } &&
23125          { ac_try='test -s conftest$ac_exeext'
23126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23127   (eval $ac_try) 2>&5
23128   ac_status=$?
23129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130   (exit $ac_status); }; }; then
23131   ac_cv_lib_c_r_pthread_create=yes
23132 else
23133   echo "$as_me: failed program was:" >&5
23134 sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 ac_cv_lib_c_r_pthread_create=no
23137 fi
23138 rm -f conftest.err conftest.$ac_objext \
23139       conftest$ac_exeext conftest.$ac_ext
23140 LIBS=$ac_check_lib_save_LIBS
23141 fi
23142 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23143 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23144 if test $ac_cv_lib_c_r_pthread_create = yes; then
23145   PTHREAD_LIB="-lc_r"
23146 else
23147   echo "$as_me:$LINENO: checking for pthread_create" >&5
23148 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23149 if test "${ac_cv_func_pthread_create+set}" = set; then
23150   echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152   cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23160 #define pthread_create innocuous_pthread_create
23161
23162 /* System header to define __stub macros and hopefully few prototypes,
23163     which can conflict with char pthread_create (); below.
23164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23165     <limits.h> exists even on freestanding compilers.  */
23166
23167 #ifdef __STDC__
23168 # include <limits.h>
23169 #else
23170 # include <assert.h>
23171 #endif
23172
23173 #undef pthread_create
23174
23175 /* Override any gcc2 internal prototype to avoid an error.  */
23176 #ifdef __cplusplus
23177 extern "C"
23178 {
23179 #endif
23180 /* We use char because int might match the return type of a gcc2
23181    builtin and then its argument prototype would still apply.  */
23182 char pthread_create ();
23183 /* The GNU C library defines this for functions which it implements
23184     to always fail with ENOSYS.  Some functions are actually named
23185     something starting with __ and the normal name is an alias.  */
23186 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23187 choke me
23188 #else
23189 char (*f) () = pthread_create;
23190 #endif
23191 #ifdef __cplusplus
23192 }
23193 #endif
23194
23195 int
23196 main ()
23197 {
23198 return f != pthread_create;
23199   ;
23200   return 0;
23201 }
23202 _ACEOF
23203 rm -f conftest.$ac_objext conftest$ac_exeext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23205   (eval $ac_link) 2>conftest.er1
23206   ac_status=$?
23207   grep -v '^ *+' conftest.er1 >conftest.err
23208   rm -f conftest.er1
23209   cat conftest.err >&5
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } &&
23212          { ac_try='test -z "$ac_c_werror_flag"
23213                          || test ! -s conftest.err'
23214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23215   (eval $ac_try) 2>&5
23216   ac_status=$?
23217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218   (exit $ac_status); }; } &&
23219          { ac_try='test -s conftest$ac_exeext'
23220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23221   (eval $ac_try) 2>&5
23222   ac_status=$?
23223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224   (exit $ac_status); }; }; then
23225   ac_cv_func_pthread_create=yes
23226 else
23227   echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_cv_func_pthread_create=no
23231 fi
23232 rm -f conftest.err conftest.$ac_objext \
23233       conftest$ac_exeext conftest.$ac_ext
23234 fi
23235 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23236 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23237
23238
23239 fi
23240
23241
23242 fi
23243
23244
23245 fi
23246
23247
23248
23249 cat >>confdefs.h <<\_ACEOF
23250 #define FDLIBS 1
23251 _ACEOF
23252
23253
23254
23255 CFLAGS=${CFLAGS--O}
23256 LDFLAGS=${LDFLAGS--O}
23257 DB_LIBS="${SQL_LFLAGS}"
23258
23259 CPPFLAGS="$CPPFLAGS"
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275 OBJLIST=
23276
23277
23278 lld="lld"
23279 llu="llu"
23280
23281 WCFLAGS=
23282 WLDFLAGS=
23283
23284 #
23285 # Finally we set appropriate distribution specific
23286 #  variables and defaults
23287 #
23288 # PFILES are platform specific files
23289 PFILES="platforms/Makefile"
23290 PSCMD="ps -e"
23291 WIN32=
23292 MACOSX=
23293 hostname=`uname -n | cut -d '.' -f 1`
23294 case "$DISTNAME" in
23295 aix)
23296         DISTVER=`uname -r`
23297         PSCMD="ps -e -o pid,comm"
23298         PFILES="${PFILES} \
23299            platforms/aix/Makefile"
23300         TAPEDRIVE="/dev/rmt0.1"
23301   ;;
23302 alpha)
23303         DISTVER=`uname -r`
23304         PTHREAD_LIB="-lpthread -lexc"
23305         if test "${CC}" = "gcc" ; then
23306            lld="lld"
23307            llu="llu"
23308         else
23309            lld="ld"
23310            llu="lu"
23311         fi
23312         TAPEDRIVE="/dev/nrmt0"
23313   ;;
23314 bsdi)
23315         DISTVER=`uname -a |awk '{print $3}'`
23316         TAPEDRIVE="/dev/nrmt0"
23317         PTHREAD_LIB="-pthread"
23318         CFLAGS="${CFLAGS} -pthread"
23319         PSCMD="ps -ax -o pid,command"
23320         lld="qd"
23321         llu="qu"
23322         PFILES="${PFILES} \
23323             platforms/bsdi/Makefile \
23324             platforms/bsdi/bacula-fd \
23325             platforms/bsdi/bacula-sd \
23326             platforms/bsdi/bacula-dir"
23327         largefile_support="yes"
23328   ;;
23329 cygwin)
23330         DISTVER=`uname -a |awk '{print $3}'`
23331         TAPEDRIVE="/dev/nrst0"
23332         WIN32=win32
23333         WCFLAGS="-mwindows"
23334         WLDFLAGS="-mwindows"
23335   ;;
23336 darwin)
23337         DISTVER=`uname -r`
23338         TAPEDRIVE="/dev/nst0"
23339         PSCMD="ps -e -o pid,command"
23340         MACOSX=macosx
23341         PFILES="${PFILES} \
23342            platforms/darwin/Makefile"
23343   ;;
23344 debian)
23345         DISTVER=`cat /etc/debian_version`
23346         TAPEDRIVE="/dev/nrst0"
23347         PSCMD="ps -e -o pid,command"
23348   ;;
23349 freebsd)
23350         DISTVER=`uname -a |awk '{print $3}'`
23351         VER=`echo $DISTVER | cut -c 1`
23352         if test x$VER = x4 ; then
23353            PTHREAD_LIB="-pthread"
23354            CFLAGS="${CFLAGS} -pthread"
23355         fi
23356         lld="qd"
23357         llu="qu"
23358         TAPEDRIVE="/dev/nrsa0"
23359         PSCMD="ps -ax -o pid,command"
23360         PFILES="${PFILES} \
23361             platforms/freebsd/Makefile \
23362             platforms/freebsd/bacula-fd \
23363             platforms/freebsd/bacula-sd \
23364             platforms/freebsd/bacula-dir"
23365         largefile_support="yes"
23366   ;;
23367 hpux)
23368         PSCMD="UNIX95=1 ps -e -o pid,comm"
23369         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23370         DISTVER=`uname -r`
23371         TAPEDRIVE="/dev/rmt/0hnb"
23372         PTHREAD_LIB="-lpthread"
23373         cat >>confdefs.h <<\_ACEOF
23374 #define _INCLUDE_LONGLONG 1
23375 _ACEOF
23376
23377   ;;
23378 irix)
23379         DISTVER=`uname -r`
23380         TAPEDRIVE="/dev/rmt/0cbn"
23381         PSCMD="ps -e -o pid,comm"
23382         PFILES="${PFILES} \
23383             platforms/irix/Makefile \
23384             platforms/irix/bacula-fd \
23385             platforms/irix/bacula-sd \
23386             platforms/irix/bacula-dir"
23387   ;;
23388 netbsd)
23389         DISTVER=`uname -a |awk '{print $3}'`
23390         lld="qd"
23391         llu="qu"
23392         TAPEDRIVE="/dev/nrst0"
23393         PSCMD="ps -ax -o pid,command"
23394         PTHREAD_LIB="-pthread"
23395         CFLAGS="${CFLAGS} -pthread"
23396   ;;
23397 openbsd)
23398         DISTVER=`uname -a |awk '{print $3}'`
23399         lld="qd"
23400         llu="qu"
23401         TAPEDRIVE="/dev/nrst0"
23402         PSCMD="ps -ax -o pid,command"
23403         PTHREAD_LIB="-pthread"
23404         CFLAGS="${CFLAGS} -pthread"
23405         PFILES="${PFILES} \
23406             platforms/openbsd/Makefile \
23407             platforms/openbsd/bacula-fd \
23408             platforms/openbsd/bacula-sd \
23409             platforms/openbsd/bacula-dir"
23410   ;;
23411 redhat)
23412         if test -f /etc/whitebox-release ; then
23413            f=/etc/whitebox-release
23414         else
23415            f=/etc/redhat-release
23416         fi
23417         if test `cat $f | grep release |\
23418                    cut -f 3 -d ' '`x = "Enterprise"x ; then
23419            DISTVER="Enterprise "`cat $f | grep release |\
23420                     cut -f 6 -d ' '`
23421         else
23422             DISTVER=`cat /etc/redhat-release | grep release |\
23423                      cut -f 5 -d ' '`
23424         fi
23425         TAPEDRIVE="/dev/nst0"
23426         PSCMD="ps -e -o pid,command"
23427         PFILES="${PFILES} \
23428             platforms/redhat/Makefile \
23429             platforms/redhat/bacula-fd \
23430             platforms/redhat/bacula-sd \
23431             platforms/redhat/bacula-dir \
23432             platforms/redhat/bacula.spec \
23433             "
23434         hostname=`hostname -s`
23435   ;;
23436 mandrake)
23437         DISTVER=`cat /etc/mandrake-release | grep release |\
23438            cut -f 5 -d ' '`
23439         TAPEDRIVE="/dev/nst0"
23440         PSCMD="ps -e -o pid,command"
23441         PFILES="${PFILES} \
23442             platforms/mandrake/Makefile \
23443             platforms/mandrake/bacula-fd \
23444             platforms/mandrake/bacula-sd \
23445             platforms/mandrake/bacula-dir \
23446             platforms/mandrake/bacula.spec \
23447             "
23448   ;;
23449 gentoo)
23450         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23451         TAPEDRIVE="/dev/nst0"
23452         PSCMD="ps -e -o pid,command"
23453         PFILES="${PFILES} \
23454             platforms/gentoo/Makefile \
23455          platforms/gentoo/bacula-init \
23456             platforms/gentoo/bacula-fd \
23457             platforms/gentoo/bacula-sd \
23458             platforms/gentoo/bacula-dir"
23459   ;;
23460 slackware)
23461         DISTVER=`cat /etc/slackware-version`
23462         TAPEDRIVE="/dev/nst0"
23463         PSCMD="ps -e -o pid,command"
23464         PFILES="${PFILES} \
23465             platforms/slackware/Makefile \
23466             platforms/slackware/rc.bacula-fd \
23467             platforms/slackware/rc.bacula-sd \
23468             platforms/slackware/rc.bacula-dir\
23469             platforms/slackware/functions.bacula"
23470   ;;
23471 solaris)
23472         DISTVER=`uname -r`
23473         TAPEDRIVE="/dev/rmt/0cbn"
23474         PSCMD="ps -e -o pid,comm"
23475         PFILES="${PFILES} \
23476             platforms/solaris/Makefile \
23477             platforms/solaris/bacula-fd \
23478             platforms/solaris/bacula-sd \
23479             platforms/solaris/bacula-dir"
23480         if test x$DISTVER = x5.6 ; then
23481             cat >>confdefs.h <<\_ACEOF
23482 #define HAVE_OLD_SOCKOPT 1
23483 _ACEOF
23484
23485         fi
23486         LIBS="$LIBS -lresolv"
23487   ;;
23488 suse)
23489         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23490             cut -f 3 -d ' '`
23491         TAPEDRIVE="/dev/nst0"
23492         PSCMD="ps -e -o pid,command"
23493         PFILES="${PFILES} \
23494             platforms/suse/Makefile \
23495             platforms/suse/bacula-fd \
23496             platforms/suse/bacula-sd \
23497             platforms/suse/bacula-dir \
23498             platforms/suse/bacula \
23499             platforms/suse/bacula.spec"
23500   ;;
23501 suse5)
23502         DISTNAME=suse
23503         DISTVER=5.x
23504         TAPEDRIVE="/dev/nst0"
23505         PSCMD="ps -e -o pid,command"
23506         PFILES="${PFILES} \
23507             platforms/suse/Makefile \
23508             platforms/suse/bacula-fd \
23509             platforms/suse/bacula-sd \
23510             platforms/suse/bacula-dir"
23511   ;;
23512 unknown)
23513         DISTVER=unknown
23514         TAPEDRIVE="/dev/nst0"
23515   ;;
23516 *)
23517   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23518   ;;
23519 esac
23520
23521
23522
23523 LIBS="$PTHREAD_LIB $LIBS"
23524
23525 cat >>confdefs.h <<_ACEOF
23526 #define lld "$lld"
23527 _ACEOF
23528
23529 cat >>confdefs.h <<_ACEOF
23530 #define llu "$llu"
23531 _ACEOF
23532
23533
23534
23535
23536
23537
23538
23539
23540 MCOMMON=./autoconf/Make.common
23541
23542
23543 if test "x${subsysdir}" = "x${sbindir}" ; then
23544    echo " "
23545    echo " "
23546    echo "You have set both --sbindir and --with-subsys-dir"
23547    echo "  equal to: ${subsysdir} "
23548    echo "This is not permitted. Please reconfigure."
23549    echo " "
23550    echo "Aborting configuration ..."
23551    echo " "
23552    echo " "
23553    exit 1
23554 fi
23555
23556                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
23557           ac_config_commands="$ac_config_commands default"
23558 cat >confcache <<\_ACEOF
23559 # This file is a shell script that caches the results of configure
23560 # tests run on this system so they can be shared between configure
23561 # scripts and configure runs, see configure's option --config-cache.
23562 # It is not useful on other systems.  If it contains results you don't
23563 # want to keep, you may remove or edit it.
23564 #
23565 # config.status only pays attention to the cache file if you give it
23566 # the --recheck option to rerun configure.
23567 #
23568 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23569 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23570 # following values.
23571
23572 _ACEOF
23573
23574 # The following way of writing the cache mishandles newlines in values,
23575 # but we know of no workaround that is simple, portable, and efficient.
23576 # So, don't put newlines in cache variables' values.
23577 # Ultrix sh set writes to stderr and can't be redirected directly,
23578 # and sets the high bit in the cache file unless we assign to the vars.
23579 {
23580   (set) 2>&1 |
23581     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23582     *ac_space=\ *)
23583       # `set' does not quote correctly, so add quotes (double-quote
23584       # substitution turns \\\\ into \\, and sed turns \\ into \).
23585       sed -n \
23586         "s/'/'\\\\''/g;
23587           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23588       ;;
23589     *)
23590       # `set' quotes correctly as required by POSIX, so do not add quotes.
23591       sed -n \
23592         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23593       ;;
23594     esac;
23595 } |
23596   sed '
23597      t clear
23598      : clear
23599      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23600      t end
23601      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23602      : end' >>confcache
23603 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23604   if test -w $cache_file; then
23605     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23606     cat confcache >$cache_file
23607   else
23608     echo "not updating unwritable cache $cache_file"
23609   fi
23610 fi
23611 rm -f confcache
23612
23613 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23614 # Let make expand exec_prefix.
23615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23616
23617 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23618 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23619 # trailing colons and then remove the whole line if VPATH becomes empty
23620 # (actually we leave an empty line to preserve line numbers).
23621 if test "x$srcdir" = x.; then
23622   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23623 s/:*\$(srcdir):*/:/;
23624 s/:*\${srcdir}:*/:/;
23625 s/:*@srcdir@:*/:/;
23626 s/^\([^=]*=[     ]*\):*/\1/;
23627 s/:*$//;
23628 s/^[^=]*=[       ]*$//;
23629 }'
23630 fi
23631
23632 DEFS=-DHAVE_CONFIG_H
23633
23634 ac_libobjs=
23635 ac_ltlibobjs=
23636 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23637   # 1. Remove the extension, and $U if already installed.
23638   ac_i=`echo "$ac_i" |
23639          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23640   # 2. Add them.
23641   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23642   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23643 done
23644 LIBOBJS=$ac_libobjs
23645
23646 LTLIBOBJS=$ac_ltlibobjs
23647
23648
23649
23650 : ${CONFIG_STATUS=./config.status}
23651 ac_clean_files_save=$ac_clean_files
23652 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23653 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23654 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23655 cat >$CONFIG_STATUS <<_ACEOF
23656 #! $SHELL
23657 # Generated by $as_me.
23658 # Run this file to recreate the current configuration.
23659 # Compiler output produced by configure, useful for debugging
23660 # configure, is in config.log if it exists.
23661
23662 debug=false
23663 ac_cs_recheck=false
23664 ac_cs_silent=false
23665 SHELL=\${CONFIG_SHELL-$SHELL}
23666 _ACEOF
23667
23668 cat >>$CONFIG_STATUS <<\_ACEOF
23669 ## --------------------- ##
23670 ## M4sh Initialization.  ##
23671 ## --------------------- ##
23672
23673 # Be Bourne compatible
23674 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23675   emulate sh
23676   NULLCMD=:
23677   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23678   # is contrary to our usage.  Disable this feature.
23679   alias -g '${1+"$@"}'='"$@"'
23680 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23681   set -o posix
23682 fi
23683 DUALCASE=1; export DUALCASE # for MKS sh
23684
23685 # Support unset when possible.
23686 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23687   as_unset=unset
23688 else
23689   as_unset=false
23690 fi
23691
23692
23693 # Work around bugs in pre-3.0 UWIN ksh.
23694 $as_unset ENV MAIL MAILPATH
23695 PS1='$ '
23696 PS2='> '
23697 PS4='+ '
23698
23699 # NLS nuisances.
23700 for as_var in \
23701   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23702   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23703   LC_TELEPHONE LC_TIME
23704 do
23705   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23706     eval $as_var=C; export $as_var
23707   else
23708     $as_unset $as_var
23709   fi
23710 done
23711
23712 # Required to use basename.
23713 if expr a : '\(a\)' >/dev/null 2>&1; then
23714   as_expr=expr
23715 else
23716   as_expr=false
23717 fi
23718
23719 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23720   as_basename=basename
23721 else
23722   as_basename=false
23723 fi
23724
23725
23726 # Name of the executable.
23727 as_me=`$as_basename "$0" ||
23728 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23729          X"$0" : 'X\(//\)$' \| \
23730          X"$0" : 'X\(/\)$' \| \
23731          .     : '\(.\)' 2>/dev/null ||
23732 echo X/"$0" |
23733     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23734           /^X\/\(\/\/\)$/{ s//\1/; q; }
23735           /^X\/\(\/\).*/{ s//\1/; q; }
23736           s/.*/./; q'`
23737
23738
23739 # PATH needs CR, and LINENO needs CR and PATH.
23740 # Avoid depending upon Character Ranges.
23741 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23742 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23743 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23744 as_cr_digits='0123456789'
23745 as_cr_alnum=$as_cr_Letters$as_cr_digits
23746
23747 # The user is always right.
23748 if test "${PATH_SEPARATOR+set}" != set; then
23749   echo "#! /bin/sh" >conf$$.sh
23750   echo  "exit 0"   >>conf$$.sh
23751   chmod +x conf$$.sh
23752   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23753     PATH_SEPARATOR=';'
23754   else
23755     PATH_SEPARATOR=:
23756   fi
23757   rm -f conf$$.sh
23758 fi
23759
23760
23761   as_lineno_1=$LINENO
23762   as_lineno_2=$LINENO
23763   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23764   test "x$as_lineno_1" != "x$as_lineno_2" &&
23765   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23766   # Find who we are.  Look in the path if we contain no path at all
23767   # relative or not.
23768   case $0 in
23769     *[\\/]* ) as_myself=$0 ;;
23770     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23771 for as_dir in $PATH
23772 do
23773   IFS=$as_save_IFS
23774   test -z "$as_dir" && as_dir=.
23775   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23776 done
23777
23778        ;;
23779   esac
23780   # We did not find ourselves, most probably we were run as `sh COMMAND'
23781   # in which case we are not to be found in the path.
23782   if test "x$as_myself" = x; then
23783     as_myself=$0
23784   fi
23785   if test ! -f "$as_myself"; then
23786     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23787 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23788    { (exit 1); exit 1; }; }
23789   fi
23790   case $CONFIG_SHELL in
23791   '')
23792     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23793 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23794 do
23795   IFS=$as_save_IFS
23796   test -z "$as_dir" && as_dir=.
23797   for as_base in sh bash ksh sh5; do
23798          case $as_dir in
23799          /*)
23800            if ("$as_dir/$as_base" -c '
23801   as_lineno_1=$LINENO
23802   as_lineno_2=$LINENO
23803   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23804   test "x$as_lineno_1" != "x$as_lineno_2" &&
23805   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23806              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23807              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23808              CONFIG_SHELL=$as_dir/$as_base
23809              export CONFIG_SHELL
23810              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23811            fi;;
23812          esac
23813        done
23814 done
23815 ;;
23816   esac
23817
23818   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23819   # uniformly replaced by the line number.  The first 'sed' inserts a
23820   # line-number line before each line; the second 'sed' does the real
23821   # work.  The second script uses 'N' to pair each line-number line
23822   # with the numbered line, and appends trailing '-' during
23823   # substitution so that $LINENO is not a special case at line end.
23824   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23825   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23826   sed '=' <$as_myself |
23827     sed '
23828       N
23829       s,$,-,
23830       : loop
23831       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23832       t loop
23833       s,-$,,
23834       s,^['$as_cr_digits']*\n,,
23835     ' >$as_me.lineno &&
23836   chmod +x $as_me.lineno ||
23837     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23838 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23839    { (exit 1); exit 1; }; }
23840
23841   # Don't try to exec as it changes $[0], causing all sort of problems
23842   # (the dirname of $[0] is not the place where we might find the
23843   # original and so on.  Autoconf is especially sensible to this).
23844   . ./$as_me.lineno
23845   # Exit status is that of the last command.
23846   exit
23847 }
23848
23849
23850 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23851   *c*,-n*) ECHO_N= ECHO_C='
23852 ' ECHO_T='      ' ;;
23853   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23854   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23855 esac
23856
23857 if expr a : '\(a\)' >/dev/null 2>&1; then
23858   as_expr=expr
23859 else
23860   as_expr=false
23861 fi
23862
23863 rm -f conf$$ conf$$.exe conf$$.file
23864 echo >conf$$.file
23865 if ln -s conf$$.file conf$$ 2>/dev/null; then
23866   # We could just check for DJGPP; but this test a) works b) is more generic
23867   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23868   if test -f conf$$.exe; then
23869     # Don't use ln at all; we don't have any links
23870     as_ln_s='cp -p'
23871   else
23872     as_ln_s='ln -s'
23873   fi
23874 elif ln conf$$.file conf$$ 2>/dev/null; then
23875   as_ln_s=ln
23876 else
23877   as_ln_s='cp -p'
23878 fi
23879 rm -f conf$$ conf$$.exe conf$$.file
23880
23881 if mkdir -p . 2>/dev/null; then
23882   as_mkdir_p=:
23883 else
23884   test -d ./-p && rmdir ./-p
23885   as_mkdir_p=false
23886 fi
23887
23888 as_executable_p="test -f"
23889
23890 # Sed expression to map a string onto a valid CPP name.
23891 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23892
23893 # Sed expression to map a string onto a valid variable name.
23894 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23895
23896
23897 # IFS
23898 # We need space, tab and new line, in precisely that order.
23899 as_nl='
23900 '
23901 IFS="   $as_nl"
23902
23903 # CDPATH.
23904 $as_unset CDPATH
23905
23906 exec 6>&1
23907
23908 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23909 # report actual input values of CONFIG_FILES etc. instead of their
23910 # values after options handling.  Logging --version etc. is OK.
23911 exec 5>>config.log
23912 {
23913   echo
23914   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23915 ## Running $as_me. ##
23916 _ASBOX
23917 } >&5
23918 cat >&5 <<_CSEOF
23919
23920 This file was extended by $as_me, which was
23921 generated by GNU Autoconf 2.59.  Invocation command line was
23922
23923   CONFIG_FILES    = $CONFIG_FILES
23924   CONFIG_HEADERS  = $CONFIG_HEADERS
23925   CONFIG_LINKS    = $CONFIG_LINKS
23926   CONFIG_COMMANDS = $CONFIG_COMMANDS
23927   $ $0 $@
23928
23929 _CSEOF
23930 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23931 echo >&5
23932 _ACEOF
23933
23934 # Files that config.status was made for.
23935 if test -n "$ac_config_files"; then
23936   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23937 fi
23938
23939 if test -n "$ac_config_headers"; then
23940   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23941 fi
23942
23943 if test -n "$ac_config_links"; then
23944   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23945 fi
23946
23947 if test -n "$ac_config_commands"; then
23948   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23949 fi
23950
23951 cat >>$CONFIG_STATUS <<\_ACEOF
23952
23953 ac_cs_usage="\
23954 \`$as_me' instantiates files from templates according to the
23955 current configuration.
23956
23957 Usage: $0 [OPTIONS] [FILE]...
23958
23959   -h, --help       print this help, then exit
23960   -V, --version    print version number, then exit
23961   -q, --quiet      do not print progress messages
23962   -d, --debug      don't remove temporary files
23963       --recheck    update $as_me by reconfiguring in the same conditions
23964   --file=FILE[:TEMPLATE]
23965                    instantiate the configuration file FILE
23966   --header=FILE[:TEMPLATE]
23967                    instantiate the configuration header FILE
23968
23969 Configuration files:
23970 $config_files
23971
23972 Configuration headers:
23973 $config_headers
23974
23975 Configuration commands:
23976 $config_commands
23977
23978 Report bugs to <bug-autoconf@gnu.org>."
23979 _ACEOF
23980
23981 cat >>$CONFIG_STATUS <<_ACEOF
23982 ac_cs_version="\\
23983 config.status
23984 configured by $0, generated by GNU Autoconf 2.59,
23985   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23986
23987 Copyright (C) 2003 Free Software Foundation, Inc.
23988 This config.status script is free software; the Free Software Foundation
23989 gives unlimited permission to copy, distribute and modify it."
23990 srcdir=$srcdir
23991 INSTALL="$INSTALL"
23992 _ACEOF
23993
23994 cat >>$CONFIG_STATUS <<\_ACEOF
23995 # If no file are specified by the user, then we need to provide default
23996 # value.  By we need to know if files were specified by the user.
23997 ac_need_defaults=:
23998 while test $# != 0
23999 do
24000   case $1 in
24001   --*=*)
24002     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24003     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24004     ac_shift=:
24005     ;;
24006   -*)
24007     ac_option=$1
24008     ac_optarg=$2
24009     ac_shift=shift
24010     ;;
24011   *) # This is not an option, so the user has probably given explicit
24012      # arguments.
24013      ac_option=$1
24014      ac_need_defaults=false;;
24015   esac
24016
24017   case $ac_option in
24018   # Handling of the options.
24019 _ACEOF
24020 cat >>$CONFIG_STATUS <<\_ACEOF
24021   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24022     ac_cs_recheck=: ;;
24023   --version | --vers* | -V )
24024     echo "$ac_cs_version"; exit 0 ;;
24025   --he | --h)
24026     # Conflict between --help and --header
24027     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24028 Try \`$0 --help' for more information." >&5
24029 echo "$as_me: error: ambiguous option: $1
24030 Try \`$0 --help' for more information." >&2;}
24031    { (exit 1); exit 1; }; };;
24032   --help | --hel | -h )
24033     echo "$ac_cs_usage"; exit 0 ;;
24034   --debug | --d* | -d )
24035     debug=: ;;
24036   --file | --fil | --fi | --f )
24037     $ac_shift
24038     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24039     ac_need_defaults=false;;
24040   --header | --heade | --head | --hea )
24041     $ac_shift
24042     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24043     ac_need_defaults=false;;
24044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24045   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24046     ac_cs_silent=: ;;
24047
24048   # This is an error.
24049   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24050 Try \`$0 --help' for more information." >&5
24051 echo "$as_me: error: unrecognized option: $1
24052 Try \`$0 --help' for more information." >&2;}
24053    { (exit 1); exit 1; }; } ;;
24054
24055   *) ac_config_targets="$ac_config_targets $1" ;;
24056
24057   esac
24058   shift
24059 done
24060
24061 ac_configure_extra_args=
24062
24063 if $ac_cs_silent; then
24064   exec 6>/dev/null
24065   ac_configure_extra_args="$ac_configure_extra_args --silent"
24066 fi
24067
24068 _ACEOF
24069 cat >>$CONFIG_STATUS <<_ACEOF
24070 if \$ac_cs_recheck; then
24071   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24072   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24073 fi
24074
24075 _ACEOF
24076
24077 cat >>$CONFIG_STATUS <<_ACEOF
24078 #
24079 # INIT-COMMANDS section.
24080 #
24081
24082 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24083     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24084     # from automake.
24085     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24086     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24087     LINGUAS="${LINGUAS-%UNSET%}"
24088
24089
24090 _ACEOF
24091
24092
24093
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24095 for ac_config_target in $ac_config_targets
24096 do
24097   case "$ac_config_target" in
24098   # Handling of arguments.
24099   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24100   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24101   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24102   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24103   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24104   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24105   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24106   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24107   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24108   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24109   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24110   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24111   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24112   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24113   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24114   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24115   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24116   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24117   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24118   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24119   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24120   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24121   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24122   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24123   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24124   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24125   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24126   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24127   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24128   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24129   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24130   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24131   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24132   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24133   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24134   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24135   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24136   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24137   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24138   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24139   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24140   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24141   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24142   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24143   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24144   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24145   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24146   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24147   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24148   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24149   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24150   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24151   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24152   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24153   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24154   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24155   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24156   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24157   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24158   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24159   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24160   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24161   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24162   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24163   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24164   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24165   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24166   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24167   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24168   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24169   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24170   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24171   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24172   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24173   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24174   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24175   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24176   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24177   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24178   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24179   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24180   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24181   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24182   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24183   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24184   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24185   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24186   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24187   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24188   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24189   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24190   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24191   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24192   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24193   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24194   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24195   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24196   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24197   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24198 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24199    { (exit 1); exit 1; }; };;
24200   esac
24201 done
24202
24203 # If the user did not use the arguments to specify the items to instantiate,
24204 # then the envvar interface is used.  Set only those that are not.
24205 # We use the long form for the default assignment because of an extremely
24206 # bizarre bug on SunOS 4.1.3.
24207 if $ac_need_defaults; then
24208   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24209   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24210   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24211 fi
24212
24213 # Have a temporary directory for convenience.  Make it in the build tree
24214 # simply because there is no reason to put it here, and in addition,
24215 # creating and moving files from /tmp can sometimes cause problems.
24216 # Create a temporary directory, and hook for its removal unless debugging.
24217 $debug ||
24218 {
24219   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24220   trap '{ (exit 1); exit 1; }' 1 2 13 15
24221 }
24222
24223 # Create a (secure) tmp directory for tmp files.
24224
24225 {
24226   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24227   test -n "$tmp" && test -d "$tmp"
24228 }  ||
24229 {
24230   tmp=./confstat$$-$RANDOM
24231   (umask 077 && mkdir $tmp)
24232 } ||
24233 {
24234    echo "$me: cannot create a temporary directory in ." >&2
24235    { (exit 1); exit 1; }
24236 }
24237
24238 _ACEOF
24239
24240 cat >>$CONFIG_STATUS <<_ACEOF
24241
24242 #
24243 # CONFIG_FILES section.
24244 #
24245
24246 # No need to generate the scripts if there are no CONFIG_FILES.
24247 # This happens for instance when ./config.status config.h
24248 if test -n "\$CONFIG_FILES"; then
24249   # Protect against being on the right side of a sed subst in config.status.
24250   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24251    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24252 s,@SHELL@,$SHELL,;t t
24253 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24254 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24255 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24256 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24257 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24258 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24259 s,@exec_prefix@,$exec_prefix,;t t
24260 s,@prefix@,$prefix,;t t
24261 s,@program_transform_name@,$program_transform_name,;t t
24262 s,@bindir@,$bindir,;t t
24263 s,@sbindir@,$sbindir,;t t
24264 s,@libexecdir@,$libexecdir,;t t
24265 s,@datadir@,$datadir,;t t
24266 s,@sysconfdir@,$sysconfdir,;t t
24267 s,@sharedstatedir@,$sharedstatedir,;t t
24268 s,@localstatedir@,$localstatedir,;t t
24269 s,@libdir@,$libdir,;t t
24270 s,@includedir@,$includedir,;t t
24271 s,@oldincludedir@,$oldincludedir,;t t
24272 s,@infodir@,$infodir,;t t
24273 s,@mandir@,$mandir,;t t
24274 s,@build_alias@,$build_alias,;t t
24275 s,@host_alias@,$host_alias,;t t
24276 s,@target_alias@,$target_alias,;t t
24277 s,@DEFS@,$DEFS,;t t
24278 s,@ECHO_C@,$ECHO_C,;t t
24279 s,@ECHO_N@,$ECHO_N,;t t
24280 s,@ECHO_T@,$ECHO_T,;t t
24281 s,@LIBS@,$LIBS,;t t
24282 s,@BUILD_DIR@,$BUILD_DIR,;t t
24283 s,@TRUEPRG@,$TRUEPRG,;t t
24284 s,@FALSEPRG@,$FALSEPRG,;t t
24285 s,@VERSION@,$VERSION,;t t
24286 s,@DATE@,$DATE,;t t
24287 s,@LSMDATE@,$LSMDATE,;t t
24288 s,@CC@,$CC,;t t
24289 s,@CFLAGS@,$CFLAGS,;t t
24290 s,@LDFLAGS@,$LDFLAGS,;t t
24291 s,@CPPFLAGS@,$CPPFLAGS,;t t
24292 s,@ac_ct_CC@,$ac_ct_CC,;t t
24293 s,@EXEEXT@,$EXEEXT,;t t
24294 s,@OBJEXT@,$OBJEXT,;t t
24295 s,@CXX@,$CXX,;t t
24296 s,@CXXFLAGS@,$CXXFLAGS,;t t
24297 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24298 s,@CPP@,$CPP,;t t
24299 s,@EGREP@,$EGREP,;t t
24300 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24301 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24302 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24303 s,@RANLIB@,$RANLIB,;t t
24304 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24305 s,@MV@,$MV,;t t
24306 s,@RM@,$RM,;t t
24307 s,@CP@,$CP,;t t
24308 s,@SED@,$SED,;t t
24309 s,@ECHO@,$ECHO,;t t
24310 s,@CMP@,$CMP,;t t
24311 s,@TBL@,$TBL,;t t
24312 s,@AR@,$AR,;t t
24313 s,@OPENSSL@,$OPENSSL,;t t
24314 s,@MTX@,$MTX,;t t
24315 s,@DF@,$DF,;t t
24316 s,@MKISOFS@,$MKISOFS,;t t
24317 s,@PYTHON@,$PYTHON,;t t
24318 s,@GROWISOFS@,$GROWISOFS,;t t
24319 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24320 s,@PKGCONFIG@,$PKGCONFIG,;t t
24321 s,@WXCONFIG@,$WXCONFIG,;t t
24322 s,@WXFLAGS@,$WXFLAGS,;t t
24323 s,@CDRECORD@,$CDRECORD,;t t
24324 s,@PIDOF@,$PIDOF,;t t
24325 s,@AWK@,$AWK,;t t
24326 s,@ARFLAGS@,$ARFLAGS,;t t
24327 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24328 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24329 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24330 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24331 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24332 s,@build@,$build,;t t
24333 s,@build_cpu@,$build_cpu,;t t
24334 s,@build_vendor@,$build_vendor,;t t
24335 s,@build_os@,$build_os,;t t
24336 s,@host@,$host,;t t
24337 s,@host_cpu@,$host_cpu,;t t
24338 s,@host_vendor@,$host_vendor,;t t
24339 s,@host_os@,$host_os,;t t
24340 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24341 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24342 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24343 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24344 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24345 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24346 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24347 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24348 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24349 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24350 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24351 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24352 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24353 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24354 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24355 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24356 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24357 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24358 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24359 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24360 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24361 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24362 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24363 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24364 s,@SET_MAKE@,$SET_MAKE,;t t
24365 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24366 s,@USE_NLS@,$USE_NLS,;t t
24367 s,@MSGFMT@,$MSGFMT,;t t
24368 s,@GMSGFMT@,$GMSGFMT,;t t
24369 s,@XGETTEXT@,$XGETTEXT,;t t
24370 s,@MSGMERGE@,$MSGMERGE,;t t
24371 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24372 s,@LIBICONV@,$LIBICONV,;t t
24373 s,@LTLIBICONV@,$LTLIBICONV,;t t
24374 s,@INTLLIBS@,$INTLLIBS,;t t
24375 s,@LIBINTL@,$LIBINTL,;t t
24376 s,@LTLIBINTL@,$LTLIBINTL,;t t
24377 s,@POSUB@,$POSUB,;t t
24378 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24379 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24380 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24381 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24382 s,@GNOME_DIR@,$GNOME_DIR,;t t
24383 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24384 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24385 s,@WX_DIR@,$WX_DIR,;t t
24386 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24387 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24388 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24389 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24390 s,@STATIC_FD@,$STATIC_FD,;t t
24391 s,@STATIC_SD@,$STATIC_SD,;t t
24392 s,@STATIC_DIR@,$STATIC_DIR,;t t
24393 s,@STATIC_CONS@,$STATIC_CONS,;t t
24394 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24395 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24396 s,@ALL_DIRS@,$ALL_DIRS,;t t
24397 s,@CONS_INC@,$CONS_INC,;t t
24398 s,@CONS_OBJ@,$CONS_OBJ,;t t
24399 s,@CONS_SRC@,$CONS_SRC,;t t
24400 s,@CONS_LIBS@,$CONS_LIBS,;t t
24401 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24402 s,@READLINE_SRC@,$READLINE_SRC,;t t
24403 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24404 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24405 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24406 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24407 s,@working_dir@,$working_dir,;t t
24408 s,@scriptdir@,$scriptdir,;t t
24409 s,@dump_email@,$dump_email,;t t
24410 s,@job_email@,$job_email,;t t
24411 s,@smtp_host@,$smtp_host,;t t
24412 s,@piddir@,$piddir,;t t
24413 s,@subsysdir@,$subsysdir,;t t
24414 s,@baseport@,$baseport,;t t
24415 s,@dir_port@,$dir_port,;t t
24416 s,@fd_port@,$fd_port,;t t
24417 s,@sd_port@,$sd_port,;t t
24418 s,@dir_password@,$dir_password,;t t
24419 s,@fd_password@,$fd_password,;t t
24420 s,@sd_password@,$sd_password,;t t
24421 s,@mon_dir_password@,$mon_dir_password,;t t
24422 s,@mon_fd_password@,$mon_fd_password,;t t
24423 s,@mon_sd_password@,$mon_sd_password,;t t
24424 s,@dir_user@,$dir_user,;t t
24425 s,@dir_group@,$dir_group,;t t
24426 s,@sd_user@,$sd_user,;t t
24427 s,@sd_group@,$sd_group,;t t
24428 s,@fd_user@,$fd_user,;t t
24429 s,@fd_group@,$fd_group,;t t
24430 s,@SBINPERM@,$SBINPERM,;t t
24431 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24432 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24433 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24434 s,@cats@,$cats,;t t
24435 s,@DB_NAME@,$DB_NAME,;t t
24436 s,@GETCONF@,$GETCONF,;t t
24437 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24438 s,@X_CFLAGS@,$X_CFLAGS,;t t
24439 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24440 s,@X_LIBS@,$X_LIBS,;t t
24441 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24442 s,@LIBOBJS@,$LIBOBJS,;t t
24443 s,@ALLOCA@,$ALLOCA,;t t
24444 s,@FDLIBS@,$FDLIBS,;t t
24445 s,@DEBUG@,$DEBUG,;t t
24446 s,@DINCLUDE@,$DINCLUDE,;t t
24447 s,@DLIB@,$DLIB,;t t
24448 s,@DB_LIBS@,$DB_LIBS,;t t
24449 s,@WCFLAGS@,$WCFLAGS,;t t
24450 s,@WLDFLAGS@,$WLDFLAGS,;t t
24451 s,@OBJLIST@,$OBJLIST,;t t
24452 s,@hostname@,$hostname,;t t
24453 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24454 s,@PSCMD@,$PSCMD,;t t
24455 s,@WIN32@,$WIN32,;t t
24456 s,@MACOSX@,$MACOSX,;t t
24457 s,@DISTNAME@,$DISTNAME,;t t
24458 s,@DISTVER@,$DISTVER,;t t
24459 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24460 /@MCOMMON@/r $MCOMMON
24461 s,@MCOMMON@,,;t t
24462 CEOF
24463
24464 _ACEOF
24465
24466   cat >>$CONFIG_STATUS <<\_ACEOF
24467   # Split the substitutions into bite-sized pieces for seds with
24468   # small command number limits, like on Digital OSF/1 and HP-UX.
24469   ac_max_sed_lines=48
24470   ac_sed_frag=1 # Number of current file.
24471   ac_beg=1 # First line for current file.
24472   ac_end=$ac_max_sed_lines # Line after last line for current file.
24473   ac_more_lines=:
24474   ac_sed_cmds=
24475   while $ac_more_lines; do
24476     if test $ac_beg -gt 1; then
24477       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24478     else
24479       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24480     fi
24481     if test ! -s $tmp/subs.frag; then
24482       ac_more_lines=false
24483     else
24484       # The purpose of the label and of the branching condition is to
24485       # speed up the sed processing (if there are no `@' at all, there
24486       # is no need to browse any of the substitutions).
24487       # These are the two extra sed commands mentioned above.
24488       (echo ':t
24489   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24490       if test -z "$ac_sed_cmds"; then
24491         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24492       else
24493         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24494       fi
24495       ac_sed_frag=`expr $ac_sed_frag + 1`
24496       ac_beg=$ac_end
24497       ac_end=`expr $ac_end + $ac_max_sed_lines`
24498     fi
24499   done
24500   if test -z "$ac_sed_cmds"; then
24501     ac_sed_cmds=cat
24502   fi
24503 fi # test -n "$CONFIG_FILES"
24504
24505 _ACEOF
24506 cat >>$CONFIG_STATUS <<\_ACEOF
24507 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24508   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24509   case $ac_file in
24510   - | *:- | *:-:* ) # input from stdin
24511         cat >$tmp/stdin
24512         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24513         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24514   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24515         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24516   * )   ac_file_in=$ac_file.in ;;
24517   esac
24518
24519   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24520   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24521 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24522          X"$ac_file" : 'X\(//\)[^/]' \| \
24523          X"$ac_file" : 'X\(//\)$' \| \
24524          X"$ac_file" : 'X\(/\)' \| \
24525          .     : '\(.\)' 2>/dev/null ||
24526 echo X"$ac_file" |
24527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24528           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24529           /^X\(\/\/\)$/{ s//\1/; q; }
24530           /^X\(\/\).*/{ s//\1/; q; }
24531           s/.*/./; q'`
24532   { if $as_mkdir_p; then
24533     mkdir -p "$ac_dir"
24534   else
24535     as_dir="$ac_dir"
24536     as_dirs=
24537     while test ! -d "$as_dir"; do
24538       as_dirs="$as_dir $as_dirs"
24539       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24540 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24541          X"$as_dir" : 'X\(//\)[^/]' \| \
24542          X"$as_dir" : 'X\(//\)$' \| \
24543          X"$as_dir" : 'X\(/\)' \| \
24544          .     : '\(.\)' 2>/dev/null ||
24545 echo X"$as_dir" |
24546     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24547           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24548           /^X\(\/\/\)$/{ s//\1/; q; }
24549           /^X\(\/\).*/{ s//\1/; q; }
24550           s/.*/./; q'`
24551     done
24552     test ! -n "$as_dirs" || mkdir $as_dirs
24553   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24554 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24555    { (exit 1); exit 1; }; }; }
24556
24557   ac_builddir=.
24558
24559 if test "$ac_dir" != .; then
24560   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24561   # A "../" for each directory in $ac_dir_suffix.
24562   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24563 else
24564   ac_dir_suffix= ac_top_builddir=
24565 fi
24566
24567 case $srcdir in
24568   .)  # No --srcdir option.  We are building in place.
24569     ac_srcdir=.
24570     if test -z "$ac_top_builddir"; then
24571        ac_top_srcdir=.
24572     else
24573        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24574     fi ;;
24575   [\\/]* | ?:[\\/]* )  # Absolute path.
24576     ac_srcdir=$srcdir$ac_dir_suffix;
24577     ac_top_srcdir=$srcdir ;;
24578   *) # Relative path.
24579     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24580     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24581 esac
24582
24583 # Do not use `cd foo && pwd` to compute absolute paths, because
24584 # the directories may not exist.
24585 case `pwd` in
24586 .) ac_abs_builddir="$ac_dir";;
24587 *)
24588   case "$ac_dir" in
24589   .) ac_abs_builddir=`pwd`;;
24590   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24591   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24592   esac;;
24593 esac
24594 case $ac_abs_builddir in
24595 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24596 *)
24597   case ${ac_top_builddir}. in
24598   .) ac_abs_top_builddir=$ac_abs_builddir;;
24599   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24600   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24601   esac;;
24602 esac
24603 case $ac_abs_builddir in
24604 .) ac_abs_srcdir=$ac_srcdir;;
24605 *)
24606   case $ac_srcdir in
24607   .) ac_abs_srcdir=$ac_abs_builddir;;
24608   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24609   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24610   esac;;
24611 esac
24612 case $ac_abs_builddir in
24613 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24614 *)
24615   case $ac_top_srcdir in
24616   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24617   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24618   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24619   esac;;
24620 esac
24621
24622
24623   case $INSTALL in
24624   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24625   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24626   esac
24627
24628   if test x"$ac_file" != x-; then
24629     { echo "$as_me:$LINENO: creating $ac_file" >&5
24630 echo "$as_me: creating $ac_file" >&6;}
24631     rm -f "$ac_file"
24632   fi
24633   # Let's still pretend it is `configure' which instantiates (i.e., don't
24634   # use $as_me), people would be surprised to read:
24635   #    /* config.h.  Generated by config.status.  */
24636   if test x"$ac_file" = x-; then
24637     configure_input=
24638   else
24639     configure_input="$ac_file.  "
24640   fi
24641   configure_input=$configure_input"Generated from `echo $ac_file_in |
24642                                      sed 's,.*/,,'` by configure."
24643
24644   # First look for the input files in the build tree, otherwise in the
24645   # src tree.
24646   ac_file_inputs=`IFS=:
24647     for f in $ac_file_in; do
24648       case $f in
24649       -) echo $tmp/stdin ;;
24650       [\\/$]*)
24651          # Absolute (can't be DOS-style, as IFS=:)
24652          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24653 echo "$as_me: error: cannot find input file: $f" >&2;}
24654    { (exit 1); exit 1; }; }
24655          echo "$f";;
24656       *) # Relative
24657          if test -f "$f"; then
24658            # Build tree
24659            echo "$f"
24660          elif test -f "$srcdir/$f"; then
24661            # Source tree
24662            echo "$srcdir/$f"
24663          else
24664            # /dev/null tree
24665            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24666 echo "$as_me: error: cannot find input file: $f" >&2;}
24667    { (exit 1); exit 1; }; }
24668          fi;;
24669       esac
24670     done` || { (exit 1); exit 1; }
24671 _ACEOF
24672 cat >>$CONFIG_STATUS <<_ACEOF
24673   sed "$ac_vpsub
24674 $extrasub
24675 _ACEOF
24676 cat >>$CONFIG_STATUS <<\_ACEOF
24677 :t
24678 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24679 s,@configure_input@,$configure_input,;t t
24680 s,@srcdir@,$ac_srcdir,;t t
24681 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24682 s,@top_srcdir@,$ac_top_srcdir,;t t
24683 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24684 s,@builddir@,$ac_builddir,;t t
24685 s,@abs_builddir@,$ac_abs_builddir,;t t
24686 s,@top_builddir@,$ac_top_builddir,;t t
24687 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24688 s,@INSTALL@,$ac_INSTALL,;t t
24689 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24690   rm -f $tmp/stdin
24691   if test x"$ac_file" != x-; then
24692     mv $tmp/out $ac_file
24693   else
24694     cat $tmp/out
24695     rm -f $tmp/out
24696   fi
24697
24698 done
24699 _ACEOF
24700 cat >>$CONFIG_STATUS <<\_ACEOF
24701
24702 #
24703 # CONFIG_HEADER section.
24704 #
24705
24706 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24707 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24708 #
24709 # ac_d sets the value in "#define NAME VALUE" lines.
24710 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24711 ac_dB='[         ].*$,\1#\2'
24712 ac_dC=' '
24713 ac_dD=',;t'
24714 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24715 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24716 ac_uB='$,\1#\2define\3'
24717 ac_uC=' '
24718 ac_uD=',;t'
24719
24720 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24721   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24722   case $ac_file in
24723   - | *:- | *:-:* ) # input from stdin
24724         cat >$tmp/stdin
24725         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24726         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24727   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24728         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24729   * )   ac_file_in=$ac_file.in ;;
24730   esac
24731
24732   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24733 echo "$as_me: creating $ac_file" >&6;}
24734
24735   # First look for the input files in the build tree, otherwise in the
24736   # src tree.
24737   ac_file_inputs=`IFS=:
24738     for f in $ac_file_in; do
24739       case $f in
24740       -) echo $tmp/stdin ;;
24741       [\\/$]*)
24742          # Absolute (can't be DOS-style, as IFS=:)
24743          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24744 echo "$as_me: error: cannot find input file: $f" >&2;}
24745    { (exit 1); exit 1; }; }
24746          # Do quote $f, to prevent DOS paths from being IFS'd.
24747          echo "$f";;
24748       *) # Relative
24749          if test -f "$f"; then
24750            # Build tree
24751            echo "$f"
24752          elif test -f "$srcdir/$f"; then
24753            # Source tree
24754            echo "$srcdir/$f"
24755          else
24756            # /dev/null tree
24757            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24758 echo "$as_me: error: cannot find input file: $f" >&2;}
24759    { (exit 1); exit 1; }; }
24760          fi;;
24761       esac
24762     done` || { (exit 1); exit 1; }
24763   # Remove the trailing spaces.
24764   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24765
24766 _ACEOF
24767
24768 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24769 # `conftest.undefs', that substitutes the proper values into
24770 # config.h.in to produce config.h.  The first handles `#define'
24771 # templates, and the second `#undef' templates.
24772 # And first: Protect against being on the right side of a sed subst in
24773 # config.status.  Protect against being in an unquoted here document
24774 # in config.status.
24775 rm -f conftest.defines conftest.undefs
24776 # Using a here document instead of a string reduces the quoting nightmare.
24777 # Putting comments in sed scripts is not portable.
24778 #
24779 # `end' is used to avoid that the second main sed command (meant for
24780 # 0-ary CPP macros) applies to n-ary macro definitions.
24781 # See the Autoconf documentation for `clear'.
24782 cat >confdef2sed.sed <<\_ACEOF
24783 s/[\\&,]/\\&/g
24784 s,[\\$`],\\&,g
24785 t clear
24786 : clear
24787 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24788 t end
24789 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24790 : end
24791 _ACEOF
24792 # If some macros were called several times there might be several times
24793 # the same #defines, which is useless.  Nevertheless, we may not want to
24794 # sort them, since we want the *last* AC-DEFINE to be honored.
24795 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24796 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24797 rm -f confdef2sed.sed
24798
24799 # This sed command replaces #undef with comments.  This is necessary, for
24800 # example, in the case of _POSIX_SOURCE, which is predefined and required
24801 # on some systems where configure will not decide to define it.
24802 cat >>conftest.undefs <<\_ACEOF
24803 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24804 _ACEOF
24805
24806 # Break up conftest.defines because some shells have a limit on the size
24807 # of here documents, and old seds have small limits too (100 cmds).
24808 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24809 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24810 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24811 echo '  :' >>$CONFIG_STATUS
24812 rm -f conftest.tail
24813 while grep . conftest.defines >/dev/null
24814 do
24815   # Write a limited-size here document to $tmp/defines.sed.
24816   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24817   # Speed up: don't consider the non `#define' lines.
24818   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24819   # Work around the forget-to-reset-the-flag bug.
24820   echo 't clr' >>$CONFIG_STATUS
24821   echo ': clr' >>$CONFIG_STATUS
24822   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24823   echo 'CEOF
24824   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24825   rm -f $tmp/in
24826   mv $tmp/out $tmp/in
24827 ' >>$CONFIG_STATUS
24828   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24829   rm -f conftest.defines
24830   mv conftest.tail conftest.defines
24831 done
24832 rm -f conftest.defines
24833 echo '  fi # grep' >>$CONFIG_STATUS
24834 echo >>$CONFIG_STATUS
24835
24836 # Break up conftest.undefs because some shells have a limit on the size
24837 # of here documents, and old seds have small limits too (100 cmds).
24838 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24839 rm -f conftest.tail
24840 while grep . conftest.undefs >/dev/null
24841 do
24842   # Write a limited-size here document to $tmp/undefs.sed.
24843   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24844   # Speed up: don't consider the non `#undef'
24845   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24846   # Work around the forget-to-reset-the-flag bug.
24847   echo 't clr' >>$CONFIG_STATUS
24848   echo ': clr' >>$CONFIG_STATUS
24849   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24850   echo 'CEOF
24851   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24852   rm -f $tmp/in
24853   mv $tmp/out $tmp/in
24854 ' >>$CONFIG_STATUS
24855   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24856   rm -f conftest.undefs
24857   mv conftest.tail conftest.undefs
24858 done
24859 rm -f conftest.undefs
24860
24861 cat >>$CONFIG_STATUS <<\_ACEOF
24862   # Let's still pretend it is `configure' which instantiates (i.e., don't
24863   # use $as_me), people would be surprised to read:
24864   #    /* config.h.  Generated by config.status.  */
24865   if test x"$ac_file" = x-; then
24866     echo "/* Generated by configure.  */" >$tmp/config.h
24867   else
24868     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24869   fi
24870   cat $tmp/in >>$tmp/config.h
24871   rm -f $tmp/in
24872   if test x"$ac_file" != x-; then
24873     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24874       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24875 echo "$as_me: $ac_file is unchanged" >&6;}
24876     else
24877       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879          X"$ac_file" : 'X\(//\)[^/]' \| \
24880          X"$ac_file" : 'X\(//\)$' \| \
24881          X"$ac_file" : 'X\(/\)' \| \
24882          .     : '\(.\)' 2>/dev/null ||
24883 echo X"$ac_file" |
24884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24886           /^X\(\/\/\)$/{ s//\1/; q; }
24887           /^X\(\/\).*/{ s//\1/; q; }
24888           s/.*/./; q'`
24889       { if $as_mkdir_p; then
24890     mkdir -p "$ac_dir"
24891   else
24892     as_dir="$ac_dir"
24893     as_dirs=
24894     while test ! -d "$as_dir"; do
24895       as_dirs="$as_dir $as_dirs"
24896       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24898          X"$as_dir" : 'X\(//\)[^/]' \| \
24899          X"$as_dir" : 'X\(//\)$' \| \
24900          X"$as_dir" : 'X\(/\)' \| \
24901          .     : '\(.\)' 2>/dev/null ||
24902 echo X"$as_dir" |
24903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24905           /^X\(\/\/\)$/{ s//\1/; q; }
24906           /^X\(\/\).*/{ s//\1/; q; }
24907           s/.*/./; q'`
24908     done
24909     test ! -n "$as_dirs" || mkdir $as_dirs
24910   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24911 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24912    { (exit 1); exit 1; }; }; }
24913
24914       rm -f $ac_file
24915       mv $tmp/config.h $ac_file
24916     fi
24917   else
24918     cat $tmp/config.h
24919     rm -f $tmp/config.h
24920   fi
24921 done
24922 _ACEOF
24923 cat >>$CONFIG_STATUS <<\_ACEOF
24924
24925 #
24926 # CONFIG_COMMANDS section.
24927 #
24928 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24929   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24930   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24931   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24932 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24933          X"$ac_dest" : 'X\(//\)[^/]' \| \
24934          X"$ac_dest" : 'X\(//\)$' \| \
24935          X"$ac_dest" : 'X\(/\)' \| \
24936          .     : '\(.\)' 2>/dev/null ||
24937 echo X"$ac_dest" |
24938     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24939           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24940           /^X\(\/\/\)$/{ s//\1/; q; }
24941           /^X\(\/\).*/{ s//\1/; q; }
24942           s/.*/./; q'`
24943   { if $as_mkdir_p; then
24944     mkdir -p "$ac_dir"
24945   else
24946     as_dir="$ac_dir"
24947     as_dirs=
24948     while test ! -d "$as_dir"; do
24949       as_dirs="$as_dir $as_dirs"
24950       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24951 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24952          X"$as_dir" : 'X\(//\)[^/]' \| \
24953          X"$as_dir" : 'X\(//\)$' \| \
24954          X"$as_dir" : 'X\(/\)' \| \
24955          .     : '\(.\)' 2>/dev/null ||
24956 echo X"$as_dir" |
24957     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24958           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24959           /^X\(\/\/\)$/{ s//\1/; q; }
24960           /^X\(\/\).*/{ s//\1/; q; }
24961           s/.*/./; q'`
24962     done
24963     test ! -n "$as_dirs" || mkdir $as_dirs
24964   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24965 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24966    { (exit 1); exit 1; }; }; }
24967
24968   ac_builddir=.
24969
24970 if test "$ac_dir" != .; then
24971   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24972   # A "../" for each directory in $ac_dir_suffix.
24973   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24974 else
24975   ac_dir_suffix= ac_top_builddir=
24976 fi
24977
24978 case $srcdir in
24979   .)  # No --srcdir option.  We are building in place.
24980     ac_srcdir=.
24981     if test -z "$ac_top_builddir"; then
24982        ac_top_srcdir=.
24983     else
24984        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24985     fi ;;
24986   [\\/]* | ?:[\\/]* )  # Absolute path.
24987     ac_srcdir=$srcdir$ac_dir_suffix;
24988     ac_top_srcdir=$srcdir ;;
24989   *) # Relative path.
24990     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24991     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24992 esac
24993
24994 # Do not use `cd foo && pwd` to compute absolute paths, because
24995 # the directories may not exist.
24996 case `pwd` in
24997 .) ac_abs_builddir="$ac_dir";;
24998 *)
24999   case "$ac_dir" in
25000   .) ac_abs_builddir=`pwd`;;
25001   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25002   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25003   esac;;
25004 esac
25005 case $ac_abs_builddir in
25006 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25007 *)
25008   case ${ac_top_builddir}. in
25009   .) ac_abs_top_builddir=$ac_abs_builddir;;
25010   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25011   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25012   esac;;
25013 esac
25014 case $ac_abs_builddir in
25015 .) ac_abs_srcdir=$ac_srcdir;;
25016 *)
25017   case $ac_srcdir in
25018   .) ac_abs_srcdir=$ac_abs_builddir;;
25019   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25020   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25021   esac;;
25022 esac
25023 case $ac_abs_builddir in
25024 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25025 *)
25026   case $ac_top_srcdir in
25027   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25028   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25029   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25030   esac;;
25031 esac
25032
25033
25034   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25035 echo "$as_me: executing $ac_dest commands" >&6;}
25036   case $ac_dest in
25037     default-1 )
25038     for ac_file in $CONFIG_FILES; do
25039       # Support "outfile[:infile[:infile...]]"
25040       case "$ac_file" in
25041         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25042       esac
25043       # PO directories have a Makefile.in generated from Makefile.in.in.
25044       case "$ac_file" in */Makefile.in)
25045         # Adjust a relative srcdir.
25046         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25047         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25048         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25049         # In autoconf-2.13 it is called $ac_given_srcdir.
25050         # In autoconf-2.50 it is called $srcdir.
25051         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25052         case "$ac_given_srcdir" in
25053           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25054           /*) top_srcdir="$ac_given_srcdir" ;;
25055           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25056         esac
25057         # Treat a directory as a PO directory if and only if it has a
25058         # POTFILES.in file. This allows packages to have multiple PO
25059         # directories under different names or in different locations.
25060         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25061           rm -f "$ac_dir/POTFILES"
25062           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25063           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25064           POMAKEFILEDEPS="POTFILES.in"
25065           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25066           # on $ac_dir but don't depend on user-specified configuration
25067           # parameters.
25068           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25069             # The LINGUAS file contains the set of available languages.
25070             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25071               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25072             fi
25073             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25074             # Hide the ALL_LINGUAS assigment from automake.
25075             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25076             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25077           else
25078             # The set of available languages was given in configure.in.
25079             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25080           fi
25081           # Compute POFILES
25082           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25083           # Compute UPDATEPOFILES
25084           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25085           # Compute DUMMYPOFILES
25086           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25087           # Compute GMOFILES
25088           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25089           case "$ac_given_srcdir" in
25090             .) srcdirpre= ;;
25091             *) srcdirpre='$(srcdir)/' ;;
25092           esac
25093           POFILES=
25094           UPDATEPOFILES=
25095           DUMMYPOFILES=
25096           GMOFILES=
25097           for lang in $ALL_LINGUAS; do
25098             POFILES="$POFILES $srcdirpre$lang.po"
25099             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25100             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25101             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25102           done
25103           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25104           # environment variable.
25105           INST_LINGUAS=
25106           if test -n "$ALL_LINGUAS"; then
25107             for presentlang in $ALL_LINGUAS; do
25108               useit=no
25109               if test "%UNSET%" != "$LINGUAS"; then
25110                 desiredlanguages="$LINGUAS"
25111               else
25112                 desiredlanguages="$ALL_LINGUAS"
25113               fi
25114               for desiredlang in $desiredlanguages; do
25115                 # Use the presentlang catalog if desiredlang is
25116                 #   a. equal to presentlang, or
25117                 #   b. a variant of presentlang (because in this case,
25118                 #      presentlang can be used as a fallback for messages
25119                 #      which are not translated in the desiredlang catalog).
25120                 case "$desiredlang" in
25121                   "$presentlang"*) useit=yes;;
25122                 esac
25123               done
25124               if test $useit = yes; then
25125                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25126               fi
25127             done
25128           fi
25129           CATALOGS=
25130           if test -n "$INST_LINGUAS"; then
25131             for lang in $INST_LINGUAS; do
25132               CATALOGS="$CATALOGS $lang.gmo"
25133             done
25134           fi
25135           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25136           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"
25137           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25138             if test -f "$f"; then
25139               case "$f" in
25140                 *.orig | *.bak | *~) ;;
25141                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25142               esac
25143             fi
25144           done
25145         fi
25146         ;;
25147       esac
25148     done ;;
25149     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25150  ;;
25151   esac
25152 done
25153 _ACEOF
25154
25155 cat >>$CONFIG_STATUS <<\_ACEOF
25156
25157 { (exit 0); exit 0; }
25158 _ACEOF
25159 chmod +x $CONFIG_STATUS
25160 ac_clean_files=$ac_clean_files_save
25161
25162
25163 # configure is writing to config.log, and then calls config.status.
25164 # config.status does its own redirection, appending to config.log.
25165 # Unfortunately, on DOS this fails, as config.log is still kept open
25166 # by configure, so config.status won't be able to write to it; its
25167 # output is simply discarded.  So we exec the FD to /dev/null,
25168 # effectively closing config.log, so it can be properly (re)opened and
25169 # appended to by config.status.  When coming back to configure, we
25170 # need to make the FD available again.
25171 if test "$no_create" != yes; then
25172   ac_cs_success=:
25173   ac_config_status_args=
25174   test "$silent" = yes &&
25175     ac_config_status_args="$ac_config_status_args --quiet"
25176   exec 5>/dev/null
25177   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25178   exec 5>>config.log
25179   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25180   # would make configure fail if this is the last instruction.
25181   $ac_cs_success || { (exit 1); exit 1; }
25182 fi
25183
25184
25185 cd scripts
25186 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25187 chmod 755 dvd-writepart dvd-freespace
25188 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25189 cd ..
25190
25191 c=src/cats
25192
25193 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
25194 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
25195
25196 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
25197 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
25198
25199 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
25200 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
25201
25202 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
25203 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
25204
25205 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
25206 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
25207
25208 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25209 chmod 755 $c/sqlite
25210 chmod 755 $c/mysql
25211
25212 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25213    largefile_support="yes"
25214 fi
25215
25216 #
25217 # A whole lot of hand springs to get the compiler version.
25218 #  This is because gcc changed the output in version 3.0
25219 #
25220 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25221 if test "x${CCVERSION}" = "x" ; then
25222   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25223 fi
25224 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25225 if test x"${CXXVERSION}" = x ; then
25226   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25227 fi
25228
25229 if test "x${subsysdir}" = "x${sbindir}" ; then
25230    echo " "
25231    echo " "
25232    echo "You have set --sbindir and --with-subsys-dir"
25233    echo "  both equal to: ${subsysdir} "
25234    echo "  This is not permitted. Please reconfigure."
25235    echo " "
25236    echo "Aborting configuration ..."
25237    echo " "
25238    echo " "
25239    exit 1
25240 fi
25241
25242 if test "x${db_name}" = "xInternal" ; then
25243    echo " "
25244    echo " "
25245    echo "You have not specified either --enable-client-only or one of the"
25246    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25247    echo "  This is not permitted. Please reconfigure."
25248    echo " "
25249    echo "Aborting the configuration ..."
25250    echo " "
25251    echo " "
25252    exit 1
25253 fi
25254
25255 echo "
25256 Configuration on `date`:
25257
25258   Host:                       $host -- ${DISTNAME} ${DISTVER}
25259   Bacula version:             ${VERSION} (${DATE})
25260   Source code location:       ${srcdir}
25261   Install binaries:           ${sbindir}
25262   Install config files:       ${sysconfdir}
25263   Scripts directory:          ${scriptdir}
25264   Working directory:          ${working_dir}
25265   PID directory:              ${piddir}
25266   Subsys directory:           ${subsysdir}
25267   Man directory:              ${mandir}
25268   C Compiler:                 ${CC} ${CCVERSION}
25269   C++ Compiler:               ${CXX} ${CXXVERSION}
25270   Compiler flags:             ${WCFLAGS} ${CFLAGS}
25271   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
25272   Libraries:                  ${LIBS}
25273   Statically Linked Tools:    ${support_static_tools}
25274   Statically Linked FD:       ${support_static_fd}
25275   Statically Linked SD:       ${support_static_sd}
25276   Statically Linked DIR:      ${support_static_dir}
25277   Statically Linked CONS:     ${support_static_cons}
25278   Database type:              ${db_name}
25279   Database lib:               ${DB_LIBS}
25280
25281   Job Output Email:           ${job_email}
25282   Traceback Email:            ${dump_email}
25283   SMTP Host Address:          ${smtp_host}
25284
25285   Director Port:              ${dir_port}
25286   File daemon Port:           ${fd_port}
25287   Storage daemon Port:        ${sd_port}
25288
25289   Director User:              ${dir_user}
25290   Director Group:             ${dir_group}
25291   Storage Daemon User:        ${sd_user}
25292   Storage DaemonGroup:        ${sd_group}
25293   File Daemon User:           ${fd_user}
25294   File Daemon Group:          ${fd_group}
25295
25296   SQL binaries Directory      ${SQL_BINDIR}
25297
25298   Large file support:         $largefile_support
25299   Bacula conio support:       ${got_conio} ${CONS_LIBS}
25300   readline support:           ${got_readline} ${PRTREADLINE_SRC}
25301   TCP Wrappers support:       ${TCPW_MSG}
25302   TLS support:                ${support_tls}
25303   ZLIB support:               ${have_zlib}
25304   enable-smartalloc:          ${support_smartalloc}
25305   enable-gnome:               ${support_gnome} ${gnome_version}
25306   enable-wx-console:          ${support_wx_console} ${wx_version}
25307   enable-tray-monitor:        ${support_tray_monitor}
25308   client-only:                ${build_client_only}
25309   ACL support:                ${have_acl}
25310   Python support:             ${support_python} ${PYTHON_LIBS}
25311
25312   " > config.out
25313
25314 cat config.out