]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
79b433695794e65928ef802117f1dcd23f5ba2ca
[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 DIRD_DIR DIR_TOOLS STORED_DIR CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS 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   --enable-build-dird     enable building of dird (Director) enabled
880   --enable-build-stored   enable building of stored (Storage daemon) enabled
881   --disable-conio            disable conio support enabled
882
883   --disable-readline      disable readline support disable
884
885   --disable-largefile     omit support for large files
886
887 Optional Packages:
888   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
889   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
890   --with-gnu-ld           assume the C compiler uses GNU ld default=no
891   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
892   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
893   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
894   --without-libintl-prefix     don't search for libintl in includedir and libdir
895  --with-readline=DIR             specify readline library directory
896
897   --with-python=DIR       Include Python support.  DIR is the Python base
898                           install directory, default is to search through
899                           a number of common places for the Python files.
900   --with-tcp-wrappers=DIR        enable tcpwrappers support
901   --with-openssl[=DIR]
902                           Include OpenSSL support. DIR is the OpenSSL base
903   --with-working-dir=PATH        specify path of Bacula working directory
904   --with-scriptdir=PATH    specify path of Bacula scripts directory
905   --with-dump-email=EMAIL        dump email address
906   --with-job-email=EMAIL         job output email address
907   --with-smtp-host=HOST          SMTP mail host address
908   --with-pid-dir=PATH            specify location of Bacula pid files
909   --with-subsys-dir=PATH         specify location of Bacula subsys file
910   --with-baseport=PORT           specify base port address for daemons
911   --with-dir-password=PASSWORD   specify Director's password
912   --with-fd-password=PASSWORD    specify Client's password
913   --with-sd-password=PASSWORD    specify Storage daemon's password
914   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
915   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
916   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
917   --with-dir-user=USER           specify user for Director daemon
918   --with-dir-group=GROUP                 specify group for Director daemon
919   --with-sd-user=USER            specify user for Storage daemon
920   --with-sd-group=GROUP          specify group for Storage daemon
921   --with-fd-user=USER            specify user for File daemon
922   --with-fd-group=GROUP          specify group for File daemon
923   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
924   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
925                           base install directory, defaults to /usr/local/pgsql
926
927   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
928                           install directory, default is to search through
929                           a number of common places for the MySQL files.
930
931   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
932                           install directory, default is to search through
933                           a number of common places for the MySQL files.
934
935   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
936                           install directory, default is to search through
937                           a number of common places for the SQLite3 files.
938
939   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
940                           install directory, default is to search through
941                           a number of common places for the SQLite files.
942   --with-x                use the X Window System
943
944 Some influential environment variables:
945   CC          C compiler command
946   CFLAGS      C compiler flags
947   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
948               nonstandard directory <lib dir>
949   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
950               headers in a nonstandard directory <include dir>
951   CXX         C++ compiler command
952   CXXFLAGS    C++ compiler flags
953   CPP         C preprocessor
954   WXCONFIG    wx-config command. On some systems, you must set it to
955               wx-config-2.6 to use wxWidgets 2.6.
956   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
957
958 Use these variables to override the choices made by `configure' or to help
959 it to find libraries and programs with nonstandard names/locations.
960
961 _ACEOF
962 fi
963
964 if test "$ac_init_help" = "recursive"; then
965   # If there are subdirs, report their specific --help.
966   ac_popdir=`pwd`
967   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
968     test -d $ac_dir || continue
969     ac_builddir=.
970
971 if test "$ac_dir" != .; then
972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
973   # A "../" for each directory in $ac_dir_suffix.
974   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
975 else
976   ac_dir_suffix= ac_top_builddir=
977 fi
978
979 case $srcdir in
980   .)  # No --srcdir option.  We are building in place.
981     ac_srcdir=.
982     if test -z "$ac_top_builddir"; then
983        ac_top_srcdir=.
984     else
985        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
986     fi ;;
987   [\\/]* | ?:[\\/]* )  # Absolute path.
988     ac_srcdir=$srcdir$ac_dir_suffix;
989     ac_top_srcdir=$srcdir ;;
990   *) # Relative path.
991     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
992     ac_top_srcdir=$ac_top_builddir$srcdir ;;
993 esac
994
995 # Do not use `cd foo && pwd` to compute absolute paths, because
996 # the directories may not exist.
997 case `pwd` in
998 .) ac_abs_builddir="$ac_dir";;
999 *)
1000   case "$ac_dir" in
1001   .) ac_abs_builddir=`pwd`;;
1002   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1003   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1004   esac;;
1005 esac
1006 case $ac_abs_builddir in
1007 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1008 *)
1009   case ${ac_top_builddir}. in
1010   .) ac_abs_top_builddir=$ac_abs_builddir;;
1011   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1012   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1013   esac;;
1014 esac
1015 case $ac_abs_builddir in
1016 .) ac_abs_srcdir=$ac_srcdir;;
1017 *)
1018   case $ac_srcdir in
1019   .) ac_abs_srcdir=$ac_abs_builddir;;
1020   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1021   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1022   esac;;
1023 esac
1024 case $ac_abs_builddir in
1025 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1026 *)
1027   case $ac_top_srcdir in
1028   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1029   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1030   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1031   esac;;
1032 esac
1033
1034     cd $ac_dir
1035     # Check for guested configure; otherwise get Cygnus style configure.
1036     if test -f $ac_srcdir/configure.gnu; then
1037       echo
1038       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1039     elif test -f $ac_srcdir/configure; then
1040       echo
1041       $SHELL $ac_srcdir/configure  --help=recursive
1042     elif test -f $ac_srcdir/configure.ac ||
1043            test -f $ac_srcdir/configure.in; then
1044       echo
1045       $ac_configure --help
1046     else
1047       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1048     fi
1049     cd $ac_popdir
1050   done
1051 fi
1052
1053 test -n "$ac_init_help" && exit 0
1054 if $ac_init_version; then
1055   cat <<\_ACEOF
1056
1057 Copyright (C) 2003 Free Software Foundation, Inc.
1058 This configure script is free software; the Free Software Foundation
1059 gives unlimited permission to copy, distribute and modify it.
1060 _ACEOF
1061   exit 0
1062 fi
1063 exec 5>config.log
1064 cat >&5 <<_ACEOF
1065 This file contains any messages produced by compilers while
1066 running configure, to aid debugging if configure makes a mistake.
1067
1068 It was created by $as_me, which was
1069 generated by GNU Autoconf 2.59.  Invocation command line was
1070
1071   $ $0 $@
1072
1073 _ACEOF
1074 {
1075 cat <<_ASUNAME
1076 ## --------- ##
1077 ## Platform. ##
1078 ## --------- ##
1079
1080 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1081 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1082 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1083 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1084 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1085
1086 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1087 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1088
1089 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1090 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1091 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1092 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1093 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1094 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1095 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1096
1097 _ASUNAME
1098
1099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1100 for as_dir in $PATH
1101 do
1102   IFS=$as_save_IFS
1103   test -z "$as_dir" && as_dir=.
1104   echo "PATH: $as_dir"
1105 done
1106
1107 } >&5
1108
1109 cat >&5 <<_ACEOF
1110
1111
1112 ## ----------- ##
1113 ## Core tests. ##
1114 ## ----------- ##
1115
1116 _ACEOF
1117
1118
1119 # Keep a trace of the command line.
1120 # Strip out --no-create and --no-recursion so they do not pile up.
1121 # Strip out --silent because we don't want to record it for future runs.
1122 # Also quote any args containing shell meta-characters.
1123 # Make two passes to allow for proper duplicate-argument suppression.
1124 ac_configure_args=
1125 ac_configure_args0=
1126 ac_configure_args1=
1127 ac_sep=
1128 ac_must_keep_next=false
1129 for ac_pass in 1 2
1130 do
1131   for ac_arg
1132   do
1133     case $ac_arg in
1134     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1135     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136     | -silent | --silent | --silen | --sile | --sil)
1137       continue ;;
1138     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1139       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1140     esac
1141     case $ac_pass in
1142     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1143     2)
1144       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1145       if test $ac_must_keep_next = true; then
1146         ac_must_keep_next=false # Got value, back to normal.
1147       else
1148         case $ac_arg in
1149           *=* | --config-cache | -C | -disable-* | --disable-* \
1150           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1151           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1152           | -with-* | --with-* | -without-* | --without-* | --x)
1153             case "$ac_configure_args0 " in
1154               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1155             esac
1156             ;;
1157           -* ) ac_must_keep_next=true ;;
1158         esac
1159       fi
1160       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1161       # Get rid of the leading space.
1162       ac_sep=" "
1163       ;;
1164     esac
1165   done
1166 done
1167 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1168 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1169
1170 # When interrupted or exit'd, cleanup temporary files, and complete
1171 # config.log.  We remove comments because anyway the quotes in there
1172 # would cause problems or look ugly.
1173 # WARNING: Be sure not to use single quotes in there, as some shells,
1174 # such as our DU 5.0 friend, will then `close' the trap.
1175 trap 'exit_status=$?
1176   # Save into config.log some information that might help in debugging.
1177   {
1178     echo
1179
1180     cat <<\_ASBOX
1181 ## ---------------- ##
1182 ## Cache variables. ##
1183 ## ---------------- ##
1184 _ASBOX
1185     echo
1186     # The following way of writing the cache mishandles newlines in values,
1187 {
1188   (set) 2>&1 |
1189     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1190     *ac_space=\ *)
1191       sed -n \
1192         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1193           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1194       ;;
1195     *)
1196       sed -n \
1197         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1198       ;;
1199     esac;
1200 }
1201     echo
1202
1203     cat <<\_ASBOX
1204 ## ----------------- ##
1205 ## Output variables. ##
1206 ## ----------------- ##
1207 _ASBOX
1208     echo
1209     for ac_var in $ac_subst_vars
1210     do
1211       eval ac_val=$`echo $ac_var`
1212       echo "$ac_var='"'"'$ac_val'"'"'"
1213     done | sort
1214     echo
1215
1216     if test -n "$ac_subst_files"; then
1217       cat <<\_ASBOX
1218 ## ------------- ##
1219 ## Output files. ##
1220 ## ------------- ##
1221 _ASBOX
1222       echo
1223       for ac_var in $ac_subst_files
1224       do
1225         eval ac_val=$`echo $ac_var`
1226         echo "$ac_var='"'"'$ac_val'"'"'"
1227       done | sort
1228       echo
1229     fi
1230
1231     if test -s confdefs.h; then
1232       cat <<\_ASBOX
1233 ## ----------- ##
1234 ## confdefs.h. ##
1235 ## ----------- ##
1236 _ASBOX
1237       echo
1238       sed "/^$/d" confdefs.h | sort
1239       echo
1240     fi
1241     test "$ac_signal" != 0 &&
1242       echo "$as_me: caught signal $ac_signal"
1243     echo "$as_me: exit $exit_status"
1244   } >&5
1245   rm -f core *.core &&
1246   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1247     exit $exit_status
1248      ' 0
1249 for ac_signal in 1 2 13 15; do
1250   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1251 done
1252 ac_signal=0
1253
1254 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1255 rm -rf conftest* confdefs.h
1256 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1257 echo >confdefs.h
1258
1259 # Predefined preprocessor variables.
1260
1261 cat >>confdefs.h <<_ACEOF
1262 #define PACKAGE_NAME "$PACKAGE_NAME"
1263 _ACEOF
1264
1265
1266 cat >>confdefs.h <<_ACEOF
1267 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1268 _ACEOF
1269
1270
1271 cat >>confdefs.h <<_ACEOF
1272 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1273 _ACEOF
1274
1275
1276 cat >>confdefs.h <<_ACEOF
1277 #define PACKAGE_STRING "$PACKAGE_STRING"
1278 _ACEOF
1279
1280
1281 cat >>confdefs.h <<_ACEOF
1282 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1283 _ACEOF
1284
1285
1286 # Let the site file select an alternate cache file if it wants to.
1287 # Prefer explicitly selected file to automatically selected ones.
1288 if test -z "$CONFIG_SITE"; then
1289   if test "x$prefix" != xNONE; then
1290     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1291   else
1292     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1293   fi
1294 fi
1295 for ac_site_file in $CONFIG_SITE; do
1296   if test -r "$ac_site_file"; then
1297     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1298 echo "$as_me: loading site script $ac_site_file" >&6;}
1299     sed 's/^/| /' "$ac_site_file" >&5
1300     . "$ac_site_file"
1301   fi
1302 done
1303
1304 if test -r "$cache_file"; then
1305   # Some versions of bash will fail to source /dev/null (special
1306   # files actually), so we avoid doing that.
1307   if test -f "$cache_file"; then
1308     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1309 echo "$as_me: loading cache $cache_file" >&6;}
1310     case $cache_file in
1311       [\\/]* | ?:[\\/]* ) . $cache_file;;
1312       *)                      . ./$cache_file;;
1313     esac
1314   fi
1315 else
1316   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1317 echo "$as_me: creating cache $cache_file" >&6;}
1318   >$cache_file
1319 fi
1320
1321 # Check that the precious variables saved in the cache have kept the same
1322 # value.
1323 ac_cache_corrupted=false
1324 for ac_var in `(set) 2>&1 |
1325                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1326   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1327   eval ac_new_set=\$ac_env_${ac_var}_set
1328   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1329   eval ac_new_val="\$ac_env_${ac_var}_value"
1330   case $ac_old_set,$ac_new_set in
1331     set,)
1332       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1333 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1334       ac_cache_corrupted=: ;;
1335     ,set)
1336       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1337 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1338       ac_cache_corrupted=: ;;
1339     ,);;
1340     *)
1341       if test "x$ac_old_val" != "x$ac_new_val"; then
1342         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1343 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1344         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1345 echo "$as_me:   former value:  $ac_old_val" >&2;}
1346         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1347 echo "$as_me:   current value: $ac_new_val" >&2;}
1348         ac_cache_corrupted=:
1349       fi;;
1350   esac
1351   # Pass precious variables to config.status.
1352   if test "$ac_new_set" = set; then
1353     case $ac_new_val in
1354     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1355       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1356     *) ac_arg=$ac_var=$ac_new_val ;;
1357     esac
1358     case " $ac_configure_args " in
1359       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1360       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1361     esac
1362   fi
1363 done
1364 if $ac_cache_corrupted; then
1365   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1366 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1367   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1368 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1369    { (exit 1); exit 1; }; }
1370 fi
1371
1372 ac_ext=c
1373 ac_cpp='$CPP $CPPFLAGS'
1374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396 BUILD_DIR=`pwd`
1397 cd ..
1398 TOP_DIR=`pwd`
1399 cd ${BUILD_DIR}
1400
1401 ac_aux_dir=
1402 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1403   if test -f $ac_dir/install-sh; then
1404     ac_aux_dir=$ac_dir
1405     ac_install_sh="$ac_aux_dir/install-sh -c"
1406     break
1407   elif test -f $ac_dir/install.sh; then
1408     ac_aux_dir=$ac_dir
1409     ac_install_sh="$ac_aux_dir/install.sh -c"
1410     break
1411   elif test -f $ac_dir/shtool; then
1412     ac_aux_dir=$ac_dir
1413     ac_install_sh="$ac_aux_dir/shtool install -c"
1414     break
1415   fi
1416 done
1417 if test -z "$ac_aux_dir"; then
1418   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1419 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1420    { (exit 1); exit 1; }; }
1421 fi
1422 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1423 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1424 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1425
1426           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1427
1428
1429
1430
1431
1432 for ac_prog in true
1433 do
1434   # Extract the first word of "$ac_prog", so it can be a program name with args.
1435 set dummy $ac_prog; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1439   echo $ECHO_N "(cached) $ECHO_C" >&6
1440 else
1441   case $TRUEPRG in
1442   [\\/]* | ?:[\\/]*)
1443   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1444   ;;
1445   *)
1446   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1447 for as_dir in $PATH
1448 do
1449   IFS=$as_save_IFS
1450   test -z "$as_dir" && as_dir=.
1451   for ac_exec_ext in '' $ac_executable_extensions; do
1452   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1453     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1454     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455     break 2
1456   fi
1457 done
1458 done
1459
1460   ;;
1461 esac
1462 fi
1463 TRUEPRG=$ac_cv_path_TRUEPRG
1464
1465 if test -n "$TRUEPRG"; then
1466   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1467 echo "${ECHO_T}$TRUEPRG" >&6
1468 else
1469   echo "$as_me:$LINENO: result: no" >&5
1470 echo "${ECHO_T}no" >&6
1471 fi
1472
1473   test -n "$TRUEPRG" && break
1474 done
1475 test -n "$TRUEPRG" || TRUEPRG=":"
1476
1477 for ac_prog in false
1478 do
1479   # Extract the first word of "$ac_prog", so it can be a program name with args.
1480 set dummy $ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   case $FALSEPRG in
1487   [\\/]* | ?:[\\/]*)
1488   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1489   ;;
1490   *)
1491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 for as_dir in $PATH
1493 do
1494   IFS=$as_save_IFS
1495   test -z "$as_dir" && as_dir=.
1496   for ac_exec_ext in '' $ac_executable_extensions; do
1497   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1498     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
1505   ;;
1506 esac
1507 fi
1508 FALSEPRG=$ac_cv_path_FALSEPRG
1509
1510 if test -n "$FALSEPRG"; then
1511   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1512 echo "${ECHO_T}$FALSEPRG" >&6
1513 else
1514   echo "$as_me:$LINENO: result: no" >&5
1515 echo "${ECHO_T}no" >&6
1516 fi
1517
1518   test -n "$FALSEPRG" && break
1519 done
1520 test -n "$FALSEPRG" || FALSEPRG=":"
1521
1522
1523 #AC_CANONICAL_HOST
1524
1525 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1527 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1528 echo "configuring for bacula $VERSION ($DATE)"
1529
1530
1531
1532 ac_ext=c
1533 ac_cpp='$CPP $CPPFLAGS'
1534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 if test -n "$ac_tool_prefix"; then
1538   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1540 echo "$as_me:$LINENO: checking for $ac_word" >&5
1541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1542 if test "${ac_cv_prog_CC+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   if test -n "$CC"; then
1546   ac_cv_prog_CC="$CC" # Let the user override the test.
1547 else
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1549 for as_dir in $PATH
1550 do
1551   IFS=$as_save_IFS
1552   test -z "$as_dir" && as_dir=.
1553   for ac_exec_ext in '' $ac_executable_extensions; do
1554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1555     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1557     break 2
1558   fi
1559 done
1560 done
1561
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566   echo "$as_me:$LINENO: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569   echo "$as_me:$LINENO: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$ac_cv_prog_CC"; then
1575   ac_ct_CC=$CC
1576   # Extract the first word of "gcc", so it can be a program name with args.
1577 set dummy gcc; ac_word=$2
1578 echo "$as_me:$LINENO: checking for $ac_word" >&5
1579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581   echo $ECHO_N "(cached) $ECHO_C" >&6
1582 else
1583   if test -n "$ac_ct_CC"; then
1584   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 else
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1587 for as_dir in $PATH
1588 do
1589   IFS=$as_save_IFS
1590   test -z "$as_dir" && as_dir=.
1591   for ac_exec_ext in '' $ac_executable_extensions; do
1592   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1593     ac_cv_prog_ac_ct_CC="gcc"
1594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595     break 2
1596   fi
1597 done
1598 done
1599
1600 fi
1601 fi
1602 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1603 if test -n "$ac_ct_CC"; then
1604   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1605 echo "${ECHO_T}$ac_ct_CC" >&6
1606 else
1607   echo "$as_me:$LINENO: result: no" >&5
1608 echo "${ECHO_T}no" >&6
1609 fi
1610
1611   CC=$ac_ct_CC
1612 else
1613   CC="$ac_cv_prog_CC"
1614 fi
1615
1616 if test -z "$CC"; then
1617   if test -n "$ac_tool_prefix"; then
1618   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1619 set dummy ${ac_tool_prefix}cc; ac_word=$2
1620 echo "$as_me:$LINENO: checking for $ac_word" >&5
1621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1622 if test "${ac_cv_prog_CC+set}" = set; then
1623   echo $ECHO_N "(cached) $ECHO_C" >&6
1624 else
1625   if test -n "$CC"; then
1626   ac_cv_prog_CC="$CC" # Let the user override the test.
1627 else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629 for as_dir in $PATH
1630 do
1631   IFS=$as_save_IFS
1632   test -z "$as_dir" && as_dir=.
1633   for ac_exec_ext in '' $ac_executable_extensions; do
1634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1635     ac_cv_prog_CC="${ac_tool_prefix}cc"
1636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1637     break 2
1638   fi
1639 done
1640 done
1641
1642 fi
1643 fi
1644 CC=$ac_cv_prog_CC
1645 if test -n "$CC"; then
1646   echo "$as_me:$LINENO: result: $CC" >&5
1647 echo "${ECHO_T}$CC" >&6
1648 else
1649   echo "$as_me:$LINENO: result: no" >&5
1650 echo "${ECHO_T}no" >&6
1651 fi
1652
1653 fi
1654 if test -z "$ac_cv_prog_CC"; then
1655   ac_ct_CC=$CC
1656   # Extract the first word of "cc", so it can be a program name with args.
1657 set dummy cc; ac_word=$2
1658 echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$ac_ct_CC"; then
1664   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1673     ac_cv_prog_ac_ct_CC="cc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679
1680 fi
1681 fi
1682 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683 if test -n "$ac_ct_CC"; then
1684   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685 echo "${ECHO_T}$ac_ct_CC" >&6
1686 else
1687   echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1689 fi
1690
1691   CC=$ac_ct_CC
1692 else
1693   CC="$ac_cv_prog_CC"
1694 fi
1695
1696 fi
1697 if test -z "$CC"; then
1698   # Extract the first word of "cc", so it can be a program name with args.
1699 set dummy cc; ac_word=$2
1700 echo "$as_me:$LINENO: checking for $ac_word" >&5
1701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1702 if test "${ac_cv_prog_CC+set}" = set; then
1703   echo $ECHO_N "(cached) $ECHO_C" >&6
1704 else
1705   if test -n "$CC"; then
1706   ac_cv_prog_CC="$CC" # Let the user override the test.
1707 else
1708   ac_prog_rejected=no
1709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 for as_dir in $PATH
1711 do
1712   IFS=$as_save_IFS
1713   test -z "$as_dir" && as_dir=.
1714   for ac_exec_ext in '' $ac_executable_extensions; do
1715   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1716     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1717        ac_prog_rejected=yes
1718        continue
1719      fi
1720     ac_cv_prog_CC="cc"
1721     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722     break 2
1723   fi
1724 done
1725 done
1726
1727 if test $ac_prog_rejected = yes; then
1728   # We found a bogon in the path, so make sure we never use it.
1729   set dummy $ac_cv_prog_CC
1730   shift
1731   if test $# != 0; then
1732     # We chose a different compiler from the bogus one.
1733     # However, it has the same basename, so the bogon will be chosen
1734     # first if we set CC to just the basename; use the full file name.
1735     shift
1736     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1737   fi
1738 fi
1739 fi
1740 fi
1741 CC=$ac_cv_prog_CC
1742 if test -n "$CC"; then
1743   echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1745 else
1746   echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1748 fi
1749
1750 fi
1751 if test -z "$CC"; then
1752   if test -n "$ac_tool_prefix"; then
1753   for ac_prog in cl
1754   do
1755     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1757 echo "$as_me:$LINENO: checking for $ac_word" >&5
1758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1759 if test "${ac_cv_prog_CC+set}" = set; then
1760   echo $ECHO_N "(cached) $ECHO_C" >&6
1761 else
1762   if test -n "$CC"; then
1763   ac_cv_prog_CC="$CC" # Let the user override the test.
1764 else
1765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1766 for as_dir in $PATH
1767 do
1768   IFS=$as_save_IFS
1769   test -z "$as_dir" && as_dir=.
1770   for ac_exec_ext in '' $ac_executable_extensions; do
1771   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1772     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1774     break 2
1775   fi
1776 done
1777 done
1778
1779 fi
1780 fi
1781 CC=$ac_cv_prog_CC
1782 if test -n "$CC"; then
1783   echo "$as_me:$LINENO: result: $CC" >&5
1784 echo "${ECHO_T}$CC" >&6
1785 else
1786   echo "$as_me:$LINENO: result: no" >&5
1787 echo "${ECHO_T}no" >&6
1788 fi
1789
1790     test -n "$CC" && break
1791   done
1792 fi
1793 if test -z "$CC"; then
1794   ac_ct_CC=$CC
1795   for ac_prog in cl
1796 do
1797   # Extract the first word of "$ac_prog", so it can be a program name with args.
1798 set dummy $ac_prog; ac_word=$2
1799 echo "$as_me:$LINENO: checking for $ac_word" >&5
1800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1801 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1802   echo $ECHO_N "(cached) $ECHO_C" >&6
1803 else
1804   if test -n "$ac_ct_CC"; then
1805   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1806 else
1807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808 for as_dir in $PATH
1809 do
1810   IFS=$as_save_IFS
1811   test -z "$as_dir" && as_dir=.
1812   for ac_exec_ext in '' $ac_executable_extensions; do
1813   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1814     ac_cv_prog_ac_ct_CC="$ac_prog"
1815     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1816     break 2
1817   fi
1818 done
1819 done
1820
1821 fi
1822 fi
1823 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1824 if test -n "$ac_ct_CC"; then
1825   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1826 echo "${ECHO_T}$ac_ct_CC" >&6
1827 else
1828   echo "$as_me:$LINENO: result: no" >&5
1829 echo "${ECHO_T}no" >&6
1830 fi
1831
1832   test -n "$ac_ct_CC" && break
1833 done
1834
1835   CC=$ac_ct_CC
1836 fi
1837
1838 fi
1839
1840
1841 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&5
1843 echo "$as_me: error: no acceptable C compiler found in \$PATH
1844 See \`config.log' for more details." >&2;}
1845    { (exit 1); exit 1; }; }
1846
1847 # Provide some information about the compiler.
1848 echo "$as_me:$LINENO:" \
1849      "checking for C compiler version" >&5
1850 ac_compiler=`set X $ac_compile; echo $2`
1851 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1852   (eval $ac_compiler --version </dev/null >&5) 2>&5
1853   ac_status=$?
1854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855   (exit $ac_status); }
1856 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1857   (eval $ac_compiler -v </dev/null >&5) 2>&5
1858   ac_status=$?
1859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860   (exit $ac_status); }
1861 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1862   (eval $ac_compiler -V </dev/null >&5) 2>&5
1863   ac_status=$?
1864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1865   (exit $ac_status); }
1866
1867 cat >conftest.$ac_ext <<_ACEOF
1868 /* confdefs.h.  */
1869 _ACEOF
1870 cat confdefs.h >>conftest.$ac_ext
1871 cat >>conftest.$ac_ext <<_ACEOF
1872 /* end confdefs.h.  */
1873
1874 int
1875 main ()
1876 {
1877
1878   ;
1879   return 0;
1880 }
1881 _ACEOF
1882 ac_clean_files_save=$ac_clean_files
1883 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1884 # Try to create an executable without -o first, disregard a.out.
1885 # It will help us diagnose broken compilers, and finding out an intuition
1886 # of exeext.
1887 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1888 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1889 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1890 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1891   (eval $ac_link_default) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; then
1895   # Find the output, starting from the most likely.  This scheme is
1896 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1897 # resort.
1898
1899 # Be careful to initialize this variable, since it used to be cached.
1900 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1901 ac_cv_exeext=
1902 # b.out is created by i960 compilers.
1903 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1904 do
1905   test -f "$ac_file" || continue
1906   case $ac_file in
1907     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1908         ;;
1909     conftest.$ac_ext )
1910         # This is the source file.
1911         ;;
1912     [ab].out )
1913         # We found the default executable, but exeext='' is most
1914         # certainly right.
1915         break;;
1916     *.* )
1917         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1918         # FIXME: I believe we export ac_cv_exeext for Libtool,
1919         # but it would be cool to find out if it's true.  Does anybody
1920         # maintain Libtool? --akim.
1921         export ac_cv_exeext
1922         break;;
1923     * )
1924         break;;
1925   esac
1926 done
1927 else
1928   echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1930
1931 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&5
1933 echo "$as_me: error: C compiler cannot create executables
1934 See \`config.log' for more details." >&2;}
1935    { (exit 77); exit 77; }; }
1936 fi
1937
1938 ac_exeext=$ac_cv_exeext
1939 echo "$as_me:$LINENO: result: $ac_file" >&5
1940 echo "${ECHO_T}$ac_file" >&6
1941
1942 # Check the compiler produces executables we can run.  If not, either
1943 # the compiler is broken, or we cross compile.
1944 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1945 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1946 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1947 # If not cross compiling, check that we can run a simple program.
1948 if test "$cross_compiling" != yes; then
1949   if { ac_try='./$ac_file'
1950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1951   (eval $ac_try) 2>&5
1952   ac_status=$?
1953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1954   (exit $ac_status); }; }; then
1955     cross_compiling=no
1956   else
1957     if test "$cross_compiling" = maybe; then
1958         cross_compiling=yes
1959     else
1960         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1961 If you meant to cross compile, use \`--host'.
1962 See \`config.log' for more details." >&5
1963 echo "$as_me: error: cannot run C compiled programs.
1964 If you meant to cross compile, use \`--host'.
1965 See \`config.log' for more details." >&2;}
1966    { (exit 1); exit 1; }; }
1967     fi
1968   fi
1969 fi
1970 echo "$as_me:$LINENO: result: yes" >&5
1971 echo "${ECHO_T}yes" >&6
1972
1973 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1974 ac_clean_files=$ac_clean_files_save
1975 # Check the compiler produces executables we can run.  If not, either
1976 # the compiler is broken, or we cross compile.
1977 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1978 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1979 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1980 echo "${ECHO_T}$cross_compiling" >&6
1981
1982 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1983 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1984 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1985   (eval $ac_link) 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }; then
1989   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1990 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1991 # work properly (i.e., refer to `conftest.exe'), while it won't with
1992 # `rm'.
1993 for ac_file in conftest.exe conftest conftest.*; do
1994   test -f "$ac_file" || continue
1995   case $ac_file in
1996     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1997     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1998           export ac_cv_exeext
1999           break;;
2000     * ) break;;
2001   esac
2002 done
2003 else
2004   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&5
2006 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2007 See \`config.log' for more details." >&2;}
2008    { (exit 1); exit 1; }; }
2009 fi
2010
2011 rm -f conftest$ac_cv_exeext
2012 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2013 echo "${ECHO_T}$ac_cv_exeext" >&6
2014
2015 rm -f conftest.$ac_ext
2016 EXEEXT=$ac_cv_exeext
2017 ac_exeext=$EXEEXT
2018 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2019 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2020 if test "${ac_cv_objext+set}" = set; then
2021   echo $ECHO_N "(cached) $ECHO_C" >&6
2022 else
2023   cat >conftest.$ac_ext <<_ACEOF
2024 /* confdefs.h.  */
2025 _ACEOF
2026 cat confdefs.h >>conftest.$ac_ext
2027 cat >>conftest.$ac_ext <<_ACEOF
2028 /* end confdefs.h.  */
2029
2030 int
2031 main ()
2032 {
2033
2034   ;
2035   return 0;
2036 }
2037 _ACEOF
2038 rm -f conftest.o conftest.obj
2039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2040   (eval $ac_compile) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }; then
2044   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2045   case $ac_file in
2046     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2047     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2048        break;;
2049   esac
2050 done
2051 else
2052   echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2054
2055 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&5
2057 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2058 See \`config.log' for more details." >&2;}
2059    { (exit 1); exit 1; }; }
2060 fi
2061
2062 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2063 fi
2064 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2065 echo "${ECHO_T}$ac_cv_objext" >&6
2066 OBJEXT=$ac_cv_objext
2067 ac_objext=$OBJEXT
2068 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2069 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2070 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h.  */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h.  */
2079
2080 int
2081 main ()
2082 {
2083 #ifndef __GNUC__
2084        choke me
2085 #endif
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 rm -f conftest.$ac_objext
2092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2093   (eval $ac_compile) 2>conftest.er1
2094   ac_status=$?
2095   grep -v '^ *+' conftest.er1 >conftest.err
2096   rm -f conftest.er1
2097   cat conftest.err >&5
2098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099   (exit $ac_status); } &&
2100          { ac_try='test -z "$ac_c_werror_flag"
2101                          || test ! -s conftest.err'
2102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103   (eval $ac_try) 2>&5
2104   ac_status=$?
2105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106   (exit $ac_status); }; } &&
2107          { ac_try='test -s conftest.$ac_objext'
2108   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109   (eval $ac_try) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }; }; then
2113   ac_compiler_gnu=yes
2114 else
2115   echo "$as_me: failed program was:" >&5
2116 sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_compiler_gnu=no
2119 fi
2120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2121 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2122
2123 fi
2124 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2125 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126 GCC=`test $ac_compiler_gnu = yes && echo yes`
2127 ac_test_CFLAGS=${CFLAGS+set}
2128 ac_save_CFLAGS=$CFLAGS
2129 CFLAGS="-g"
2130 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2131 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132 if test "${ac_cv_prog_cc_g+set}" = set; then
2133   echo $ECHO_N "(cached) $ECHO_C" >&6
2134 else
2135   cat >conftest.$ac_ext <<_ACEOF
2136 /* confdefs.h.  */
2137 _ACEOF
2138 cat confdefs.h >>conftest.$ac_ext
2139 cat >>conftest.$ac_ext <<_ACEOF
2140 /* end confdefs.h.  */
2141
2142 int
2143 main ()
2144 {
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 rm -f conftest.$ac_objext
2151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2152   (eval $ac_compile) 2>conftest.er1
2153   ac_status=$?
2154   grep -v '^ *+' conftest.er1 >conftest.err
2155   rm -f conftest.er1
2156   cat conftest.err >&5
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); } &&
2159          { ac_try='test -z "$ac_c_werror_flag"
2160                          || test ! -s conftest.err'
2161   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2162   (eval $ac_try) 2>&5
2163   ac_status=$?
2164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165   (exit $ac_status); }; } &&
2166          { ac_try='test -s conftest.$ac_objext'
2167   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2168   (eval $ac_try) 2>&5
2169   ac_status=$?
2170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171   (exit $ac_status); }; }; then
2172   ac_cv_prog_cc_g=yes
2173 else
2174   echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177 ac_cv_prog_cc_g=no
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2182 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2183 if test "$ac_test_CFLAGS" = set; then
2184   CFLAGS=$ac_save_CFLAGS
2185 elif test $ac_cv_prog_cc_g = yes; then
2186   if test "$GCC" = yes; then
2187     CFLAGS="-g -O2"
2188   else
2189     CFLAGS="-g"
2190   fi
2191 else
2192   if test "$GCC" = yes; then
2193     CFLAGS="-O2"
2194   else
2195     CFLAGS=
2196   fi
2197 fi
2198 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2199 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2200 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2201   echo $ECHO_N "(cached) $ECHO_C" >&6
2202 else
2203   ac_cv_prog_cc_stdc=no
2204 ac_save_CC=$CC
2205 cat >conftest.$ac_ext <<_ACEOF
2206 /* confdefs.h.  */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h.  */
2211 #include <stdarg.h>
2212 #include <stdio.h>
2213 #include <sys/types.h>
2214 #include <sys/stat.h>
2215 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2216 struct buf { int x; };
2217 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2218 static char *e (p, i)
2219      char **p;
2220      int i;
2221 {
2222   return p[i];
2223 }
2224 static char *f (char * (*g) (char **, int), char **p, ...)
2225 {
2226   char *s;
2227   va_list v;
2228   va_start (v,p);
2229   s = g (p, va_arg (v,int));
2230   va_end (v);
2231   return s;
2232 }
2233
2234 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2235    function prototypes and stuff, but not '\xHH' hex character constants.
2236    These don't provoke an error unfortunately, instead are silently treated
2237    as 'x'.  The following induces an error, until -std1 is added to get
2238    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2239    array size at least.  It's necessary to write '\x00'==0 to get something
2240    that's true only with -std1.  */
2241 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2242
2243 int test (int i, double x);
2244 struct s1 {int (*f) (int a);};
2245 struct s2 {int (*f) (double a);};
2246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2247 int argc;
2248 char **argv;
2249 int
2250 main ()
2251 {
2252 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2253   ;
2254   return 0;
2255 }
2256 _ACEOF
2257 # Don't try gcc -ansi; that turns off useful extensions and
2258 # breaks some systems' header files.
2259 # AIX                   -qlanglvl=ansi
2260 # Ultrix and OSF/1      -std1
2261 # HP-UX 10.20 and later -Ae
2262 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2263 # SVR4                  -Xc -D__EXTENSIONS__
2264 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2265 do
2266   CC="$ac_save_CC $ac_arg"
2267   rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269   (eval $ac_compile) 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } &&
2276          { ac_try='test -z "$ac_c_werror_flag"
2277                          || test ! -s conftest.err'
2278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279   (eval $ac_try) 2>&5
2280   ac_status=$?
2281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282   (exit $ac_status); }; } &&
2283          { ac_try='test -s conftest.$ac_objext'
2284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285   (eval $ac_try) 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }; }; then
2289   ac_cv_prog_cc_stdc=$ac_arg
2290 break
2291 else
2292   echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 fi
2296 rm -f conftest.err conftest.$ac_objext
2297 done
2298 rm -f conftest.$ac_ext conftest.$ac_objext
2299 CC=$ac_save_CC
2300
2301 fi
2302
2303 case "x$ac_cv_prog_cc_stdc" in
2304   x|xno)
2305     echo "$as_me:$LINENO: result: none needed" >&5
2306 echo "${ECHO_T}none needed" >&6 ;;
2307   *)
2308     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2309 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2310     CC="$CC $ac_cv_prog_cc_stdc" ;;
2311 esac
2312
2313 # Some people use a C++ compiler to compile C.  Since we use `exit',
2314 # in C++ we need to declare it.  In case someone uses the same compiler
2315 # for both compiling C and C++ we need to have the C++ compiler decide
2316 # the declaration of exit, since it's the most demanding environment.
2317 cat >conftest.$ac_ext <<_ACEOF
2318 #ifndef __cplusplus
2319   choke me
2320 #endif
2321 _ACEOF
2322 rm -f conftest.$ac_objext
2323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2324   (eval $ac_compile) 2>conftest.er1
2325   ac_status=$?
2326   grep -v '^ *+' conftest.er1 >conftest.err
2327   rm -f conftest.er1
2328   cat conftest.err >&5
2329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330   (exit $ac_status); } &&
2331          { ac_try='test -z "$ac_c_werror_flag"
2332                          || test ! -s conftest.err'
2333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334   (eval $ac_try) 2>&5
2335   ac_status=$?
2336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337   (exit $ac_status); }; } &&
2338          { ac_try='test -s conftest.$ac_objext'
2339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340   (eval $ac_try) 2>&5
2341   ac_status=$?
2342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343   (exit $ac_status); }; }; then
2344   for ac_declaration in \
2345    '' \
2346    'extern "C" void std::exit (int) throw (); using std::exit;' \
2347    'extern "C" void std::exit (int); using std::exit;' \
2348    'extern "C" void exit (int) throw ();' \
2349    'extern "C" void exit (int);' \
2350    'void exit (int);'
2351 do
2352   cat >conftest.$ac_ext <<_ACEOF
2353 /* confdefs.h.  */
2354 _ACEOF
2355 cat confdefs.h >>conftest.$ac_ext
2356 cat >>conftest.$ac_ext <<_ACEOF
2357 /* end confdefs.h.  */
2358 $ac_declaration
2359 #include <stdlib.h>
2360 int
2361 main ()
2362 {
2363 exit (42);
2364   ;
2365   return 0;
2366 }
2367 _ACEOF
2368 rm -f conftest.$ac_objext
2369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2370   (eval $ac_compile) 2>conftest.er1
2371   ac_status=$?
2372   grep -v '^ *+' conftest.er1 >conftest.err
2373   rm -f conftest.er1
2374   cat conftest.err >&5
2375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376   (exit $ac_status); } &&
2377          { ac_try='test -z "$ac_c_werror_flag"
2378                          || test ! -s conftest.err'
2379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380   (eval $ac_try) 2>&5
2381   ac_status=$?
2382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383   (exit $ac_status); }; } &&
2384          { ac_try='test -s conftest.$ac_objext'
2385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2386   (eval $ac_try) 2>&5
2387   ac_status=$?
2388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; }; then
2390   :
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395 continue
2396 fi
2397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2398   cat >conftest.$ac_ext <<_ACEOF
2399 /* confdefs.h.  */
2400 _ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h.  */
2404 $ac_declaration
2405 int
2406 main ()
2407 {
2408 exit (42);
2409   ;
2410   return 0;
2411 }
2412 _ACEOF
2413 rm -f conftest.$ac_objext
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415   (eval $ac_compile) 2>conftest.er1
2416   ac_status=$?
2417   grep -v '^ *+' conftest.er1 >conftest.err
2418   rm -f conftest.er1
2419   cat conftest.err >&5
2420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); } &&
2422          { ac_try='test -z "$ac_c_werror_flag"
2423                          || test ! -s conftest.err'
2424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425   (eval $ac_try) 2>&5
2426   ac_status=$?
2427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428   (exit $ac_status); }; } &&
2429          { ac_try='test -s conftest.$ac_objext'
2430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2431   (eval $ac_try) 2>&5
2432   ac_status=$?
2433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434   (exit $ac_status); }; }; then
2435   break
2436 else
2437   echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2442 done
2443 rm -f conftest*
2444 if test -n "$ac_declaration"; then
2445   echo '#ifdef __cplusplus' >>confdefs.h
2446   echo $ac_declaration      >>confdefs.h
2447   echo '#endif'             >>confdefs.h
2448 fi
2449
2450 else
2451   echo "$as_me: failed program was:" >&5
2452 sed 's/^/| /' conftest.$ac_ext >&5
2453
2454 fi
2455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2456 ac_ext=c
2457 ac_cpp='$CPP $CPPFLAGS'
2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2461
2462 ac_ext=cc
2463 ac_cpp='$CXXCPP $CPPFLAGS'
2464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2467 if test -n "$ac_tool_prefix"; then
2468   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2469   do
2470     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2471 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2472 echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474 if test "${ac_cv_prog_CXX+set}" = set; then
2475   echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477   if test -n "$CXX"; then
2478   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483   IFS=$as_save_IFS
2484   test -z "$as_dir" && as_dir=.
2485   for ac_exec_ext in '' $ac_executable_extensions; do
2486   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2488     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489     break 2
2490   fi
2491 done
2492 done
2493
2494 fi
2495 fi
2496 CXX=$ac_cv_prog_CXX
2497 if test -n "$CXX"; then
2498   echo "$as_me:$LINENO: result: $CXX" >&5
2499 echo "${ECHO_T}$CXX" >&6
2500 else
2501   echo "$as_me:$LINENO: result: no" >&5
2502 echo "${ECHO_T}no" >&6
2503 fi
2504
2505     test -n "$CXX" && break
2506   done
2507 fi
2508 if test -z "$CXX"; then
2509   ac_ct_CXX=$CXX
2510   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2511 do
2512   # Extract the first word of "$ac_prog", so it can be a program name with args.
2513 set dummy $ac_prog; ac_word=$2
2514 echo "$as_me:$LINENO: checking for $ac_word" >&5
2515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2516 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2517   echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519   if test -n "$ac_ct_CXX"; then
2520   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2521 else
2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2523 for as_dir in $PATH
2524 do
2525   IFS=$as_save_IFS
2526   test -z "$as_dir" && as_dir=.
2527   for ac_exec_ext in '' $ac_executable_extensions; do
2528   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2529     ac_cv_prog_ac_ct_CXX="$ac_prog"
2530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531     break 2
2532   fi
2533 done
2534 done
2535
2536 fi
2537 fi
2538 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2539 if test -n "$ac_ct_CXX"; then
2540   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2541 echo "${ECHO_T}$ac_ct_CXX" >&6
2542 else
2543   echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6
2545 fi
2546
2547   test -n "$ac_ct_CXX" && break
2548 done
2549 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2550
2551   CXX=$ac_ct_CXX
2552 fi
2553
2554
2555 # Provide some information about the compiler.
2556 echo "$as_me:$LINENO:" \
2557      "checking for C++ compiler version" >&5
2558 ac_compiler=`set X $ac_compile; echo $2`
2559 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2560   (eval $ac_compiler --version </dev/null >&5) 2>&5
2561   ac_status=$?
2562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2563   (exit $ac_status); }
2564 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2565   (eval $ac_compiler -v </dev/null >&5) 2>&5
2566   ac_status=$?
2567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568   (exit $ac_status); }
2569 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2570   (eval $ac_compiler -V </dev/null >&5) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }
2574
2575 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2576 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2577 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2578   echo $ECHO_N "(cached) $ECHO_C" >&6
2579 else
2580   cat >conftest.$ac_ext <<_ACEOF
2581 /* confdefs.h.  */
2582 _ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h.  */
2586
2587 int
2588 main ()
2589 {
2590 #ifndef __GNUC__
2591        choke me
2592 #endif
2593
2594   ;
2595   return 0;
2596 }
2597 _ACEOF
2598 rm -f conftest.$ac_objext
2599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2600   (eval $ac_compile) 2>conftest.er1
2601   ac_status=$?
2602   grep -v '^ *+' conftest.er1 >conftest.err
2603   rm -f conftest.er1
2604   cat conftest.err >&5
2605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606   (exit $ac_status); } &&
2607          { ac_try='test -z "$ac_cxx_werror_flag"
2608                          || test ! -s conftest.err'
2609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610   (eval $ac_try) 2>&5
2611   ac_status=$?
2612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613   (exit $ac_status); }; } &&
2614          { ac_try='test -s conftest.$ac_objext'
2615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616   (eval $ac_try) 2>&5
2617   ac_status=$?
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); }; }; then
2620   ac_compiler_gnu=yes
2621 else
2622   echo "$as_me: failed program was:" >&5
2623 sed 's/^/| /' conftest.$ac_ext >&5
2624
2625 ac_compiler_gnu=no
2626 fi
2627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2628 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2629
2630 fi
2631 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2632 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2633 GXX=`test $ac_compiler_gnu = yes && echo yes`
2634 ac_test_CXXFLAGS=${CXXFLAGS+set}
2635 ac_save_CXXFLAGS=$CXXFLAGS
2636 CXXFLAGS="-g"
2637 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2638 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2639 if test "${ac_cv_prog_cxx_g+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   cat >conftest.$ac_ext <<_ACEOF
2643 /* confdefs.h.  */
2644 _ACEOF
2645 cat confdefs.h >>conftest.$ac_ext
2646 cat >>conftest.$ac_ext <<_ACEOF
2647 /* end confdefs.h.  */
2648
2649 int
2650 main ()
2651 {
2652
2653   ;
2654   return 0;
2655 }
2656 _ACEOF
2657 rm -f conftest.$ac_objext
2658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2659   (eval $ac_compile) 2>conftest.er1
2660   ac_status=$?
2661   grep -v '^ *+' conftest.er1 >conftest.err
2662   rm -f conftest.er1
2663   cat conftest.err >&5
2664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665   (exit $ac_status); } &&
2666          { ac_try='test -z "$ac_cxx_werror_flag"
2667                          || test ! -s conftest.err'
2668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669   (eval $ac_try) 2>&5
2670   ac_status=$?
2671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672   (exit $ac_status); }; } &&
2673          { ac_try='test -s conftest.$ac_objext'
2674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675   (eval $ac_try) 2>&5
2676   ac_status=$?
2677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678   (exit $ac_status); }; }; then
2679   ac_cv_prog_cxx_g=yes
2680 else
2681   echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 ac_cv_prog_cxx_g=no
2685 fi
2686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2689 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2690 if test "$ac_test_CXXFLAGS" = set; then
2691   CXXFLAGS=$ac_save_CXXFLAGS
2692 elif test $ac_cv_prog_cxx_g = yes; then
2693   if test "$GXX" = yes; then
2694     CXXFLAGS="-g -O2"
2695   else
2696     CXXFLAGS="-g"
2697   fi
2698 else
2699   if test "$GXX" = yes; then
2700     CXXFLAGS="-O2"
2701   else
2702     CXXFLAGS=
2703   fi
2704 fi
2705 for ac_declaration in \
2706    '' \
2707    'extern "C" void std::exit (int) throw (); using std::exit;' \
2708    'extern "C" void std::exit (int); using std::exit;' \
2709    'extern "C" void exit (int) throw ();' \
2710    'extern "C" void exit (int);' \
2711    'void exit (int);'
2712 do
2713   cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h.  */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h.  */
2719 $ac_declaration
2720 #include <stdlib.h>
2721 int
2722 main ()
2723 {
2724 exit (42);
2725   ;
2726   return 0;
2727 }
2728 _ACEOF
2729 rm -f conftest.$ac_objext
2730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731   (eval $ac_compile) 2>conftest.er1
2732   ac_status=$?
2733   grep -v '^ *+' conftest.er1 >conftest.err
2734   rm -f conftest.er1
2735   cat conftest.err >&5
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); } &&
2738          { ac_try='test -z "$ac_cxx_werror_flag"
2739                          || test ! -s conftest.err'
2740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741   (eval $ac_try) 2>&5
2742   ac_status=$?
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); }; } &&
2745          { ac_try='test -s conftest.$ac_objext'
2746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747   (eval $ac_try) 2>&5
2748   ac_status=$?
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); }; }; then
2751   :
2752 else
2753   echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2755
2756 continue
2757 fi
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759   cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765 $ac_declaration
2766 int
2767 main ()
2768 {
2769 exit (42);
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2776   (eval $ac_compile) 2>conftest.er1
2777   ac_status=$?
2778   grep -v '^ *+' conftest.er1 >conftest.err
2779   rm -f conftest.er1
2780   cat conftest.err >&5
2781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782   (exit $ac_status); } &&
2783          { ac_try='test -z "$ac_cxx_werror_flag"
2784                          || test ! -s conftest.err'
2785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; } &&
2790          { ac_try='test -s conftest.$ac_objext'
2791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2792   (eval $ac_try) 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; }; then
2796   break
2797 else
2798   echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 fi
2802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2803 done
2804 rm -f conftest*
2805 if test -n "$ac_declaration"; then
2806   echo '#ifdef __cplusplus' >>confdefs.h
2807   echo $ac_declaration      >>confdefs.h
2808   echo '#endif'             >>confdefs.h
2809 fi
2810
2811 ac_ext=c
2812 ac_cpp='$CPP $CPPFLAGS'
2813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2816
2817 if test "x$CC" != xcc; then
2818   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2819 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2820 else
2821   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2822 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2823 fi
2824 set dummy $CC; ac_cc=`echo $2 |
2825                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2826 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2827   echo $ECHO_N "(cached) $ECHO_C" >&6
2828 else
2829   cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 int
2837 main ()
2838 {
2839
2840   ;
2841   return 0;
2842 }
2843 _ACEOF
2844 # Make sure it works both with $CC and with simple cc.
2845 # We do the test twice because some compilers refuse to overwrite an
2846 # existing .o file with -o, though they will create one.
2847 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2848 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849   (eval $ac_try) 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); } &&
2853    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854   (eval $ac_try) 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); };
2858 then
2859   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2860   if test "x$CC" != xcc; then
2861     # Test first that cc exists at all.
2862     if { ac_try='cc -c conftest.$ac_ext >&5'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2869       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); } &&
2874          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875   (eval $ac_try) 2>&5
2876   ac_status=$?
2877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878   (exit $ac_status); };
2879       then
2880         # cc works too.
2881         :
2882       else
2883         # cc exists but doesn't like -o.
2884         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885       fi
2886     fi
2887   fi
2888 else
2889   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2890 fi
2891 rm -f conftest*
2892
2893 fi
2894 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2895   echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6
2897 else
2898   echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6
2900
2901 cat >>confdefs.h <<\_ACEOF
2902 #define NO_MINUS_C_MINUS_O 1
2903 _ACEOF
2904
2905 fi
2906
2907 ac_ext=c
2908 ac_cpp='$CPP $CPPFLAGS'
2909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2912 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2913 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2914 # On Suns, sometimes $CPP names a directory.
2915 if test -n "$CPP" && test -d "$CPP"; then
2916   CPP=
2917 fi
2918 if test -z "$CPP"; then
2919   if test "${ac_cv_prog_CPP+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922       # Double quotes because CPP needs to be expanded
2923     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2924     do
2925       ac_preproc_ok=false
2926 for ac_c_preproc_warn_flag in '' yes
2927 do
2928   # Use a header file that comes with gcc, so configuring glibc
2929   # with a fresh cross-compiler works.
2930   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2931   # <limits.h> exists even on freestanding compilers.
2932   # On the NeXT, cc -E runs the code through the compiler's parser,
2933   # not just through cpp. "Syntax error" is here to catch this case.
2934   cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #ifdef __STDC__
2941 # include <limits.h>
2942 #else
2943 # include <assert.h>
2944 #endif
2945                      Syntax error
2946 _ACEOF
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } >/dev/null; then
2955   if test -s conftest.err; then
2956     ac_cpp_err=$ac_c_preproc_warn_flag
2957     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2958   else
2959     ac_cpp_err=
2960   fi
2961 else
2962   ac_cpp_err=yes
2963 fi
2964 if test -z "$ac_cpp_err"; then
2965   :
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970   # Broken: fails on valid input.
2971 continue
2972 fi
2973 rm -f conftest.err conftest.$ac_ext
2974
2975   # OK, works on sane cases.  Now check whether non-existent headers
2976   # can be detected and how.
2977   cat >conftest.$ac_ext <<_ACEOF
2978 /* confdefs.h.  */
2979 _ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h.  */
2983 #include <ac_nonexistent.h>
2984 _ACEOF
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987   ac_status=$?
2988   grep -v '^ *+' conftest.er1 >conftest.err
2989   rm -f conftest.er1
2990   cat conftest.err >&5
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); } >/dev/null; then
2993   if test -s conftest.err; then
2994     ac_cpp_err=$ac_c_preproc_warn_flag
2995     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2996   else
2997     ac_cpp_err=
2998   fi
2999 else
3000   ac_cpp_err=yes
3001 fi
3002 if test -z "$ac_cpp_err"; then
3003   # Broken: success on invalid input.
3004 continue
3005 else
3006   echo "$as_me: failed program was:" >&5
3007 sed 's/^/| /' conftest.$ac_ext >&5
3008
3009   # Passes both tests.
3010 ac_preproc_ok=:
3011 break
3012 fi
3013 rm -f conftest.err conftest.$ac_ext
3014
3015 done
3016 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3017 rm -f conftest.err conftest.$ac_ext
3018 if $ac_preproc_ok; then
3019   break
3020 fi
3021
3022     done
3023     ac_cv_prog_CPP=$CPP
3024
3025 fi
3026   CPP=$ac_cv_prog_CPP
3027 else
3028   ac_cv_prog_CPP=$CPP
3029 fi
3030 echo "$as_me:$LINENO: result: $CPP" >&5
3031 echo "${ECHO_T}$CPP" >&6
3032 ac_preproc_ok=false
3033 for ac_c_preproc_warn_flag in '' yes
3034 do
3035   # Use a header file that comes with gcc, so configuring glibc
3036   # with a fresh cross-compiler works.
3037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3038   # <limits.h> exists even on freestanding compilers.
3039   # On the NeXT, cc -E runs the code through the compiler's parser,
3040   # not just through cpp. "Syntax error" is here to catch this case.
3041   cat >conftest.$ac_ext <<_ACEOF
3042 /* confdefs.h.  */
3043 _ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h.  */
3047 #ifdef __STDC__
3048 # include <limits.h>
3049 #else
3050 # include <assert.h>
3051 #endif
3052                      Syntax error
3053 _ACEOF
3054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3056   ac_status=$?
3057   grep -v '^ *+' conftest.er1 >conftest.err
3058   rm -f conftest.er1
3059   cat conftest.err >&5
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); } >/dev/null; then
3062   if test -s conftest.err; then
3063     ac_cpp_err=$ac_c_preproc_warn_flag
3064     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3065   else
3066     ac_cpp_err=
3067   fi
3068 else
3069   ac_cpp_err=yes
3070 fi
3071 if test -z "$ac_cpp_err"; then
3072   :
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077   # Broken: fails on valid input.
3078 continue
3079 fi
3080 rm -f conftest.err conftest.$ac_ext
3081
3082   # OK, works on sane cases.  Now check whether non-existent headers
3083   # can be detected and how.
3084   cat >conftest.$ac_ext <<_ACEOF
3085 /* confdefs.h.  */
3086 _ACEOF
3087 cat confdefs.h >>conftest.$ac_ext
3088 cat >>conftest.$ac_ext <<_ACEOF
3089 /* end confdefs.h.  */
3090 #include <ac_nonexistent.h>
3091 _ACEOF
3092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3094   ac_status=$?
3095   grep -v '^ *+' conftest.er1 >conftest.err
3096   rm -f conftest.er1
3097   cat conftest.err >&5
3098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099   (exit $ac_status); } >/dev/null; then
3100   if test -s conftest.err; then
3101     ac_cpp_err=$ac_c_preproc_warn_flag
3102     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3103   else
3104     ac_cpp_err=
3105   fi
3106 else
3107   ac_cpp_err=yes
3108 fi
3109 if test -z "$ac_cpp_err"; then
3110   # Broken: success on invalid input.
3111 continue
3112 else
3113   echo "$as_me: failed program was:" >&5
3114 sed 's/^/| /' conftest.$ac_ext >&5
3115
3116   # Passes both tests.
3117 ac_preproc_ok=:
3118 break
3119 fi
3120 rm -f conftest.err conftest.$ac_ext
3121
3122 done
3123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3124 rm -f conftest.err conftest.$ac_ext
3125 if $ac_preproc_ok; then
3126   :
3127 else
3128   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&5
3130 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3131 See \`config.log' for more details." >&2;}
3132    { (exit 1); exit 1; }; }
3133 fi
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142 echo "$as_me:$LINENO: checking for egrep" >&5
3143 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3144 if test "${ac_cv_prog_egrep+set}" = set; then
3145   echo $ECHO_N "(cached) $ECHO_C" >&6
3146 else
3147   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3148     then ac_cv_prog_egrep='grep -E'
3149     else ac_cv_prog_egrep='egrep'
3150     fi
3151 fi
3152 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3153 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3154  EGREP=$ac_cv_prog_egrep
3155
3156
3157 if test $ac_cv_c_compiler_gnu = yes; then
3158     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3159 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3160 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163     ac_pattern="Autoconf.*'x'"
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170 #include <sgtty.h>
3171 Autoconf TIOCGETP
3172 _ACEOF
3173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3174   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3175   ac_cv_prog_gcc_traditional=yes
3176 else
3177   ac_cv_prog_gcc_traditional=no
3178 fi
3179 rm -f conftest*
3180
3181
3182   if test $ac_cv_prog_gcc_traditional = no; then
3183     cat >conftest.$ac_ext <<_ACEOF
3184 /* confdefs.h.  */
3185 _ACEOF
3186 cat confdefs.h >>conftest.$ac_ext
3187 cat >>conftest.$ac_ext <<_ACEOF
3188 /* end confdefs.h.  */
3189 #include <termio.h>
3190 Autoconf TCGETA
3191 _ACEOF
3192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3193   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3194   ac_cv_prog_gcc_traditional=yes
3195 fi
3196 rm -f conftest*
3197
3198   fi
3199 fi
3200 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3201 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3202   if test $ac_cv_prog_gcc_traditional = yes; then
3203     CC="$CC -traditional"
3204   fi
3205 fi
3206
3207 if test "x$CC" = xgcc; then
3208    cat >>confdefs.h <<\_ACEOF
3209 #define HAVE_GCC 1
3210 _ACEOF
3211
3212 fi
3213 # Extract the first word of "$CXX", so it can be a program name with args.
3214 set dummy $CXX; ac_word=$2
3215 echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3217 if test "${ac_cv_path_CXX+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   case $CXX in
3221   [\\/]* | ?:[\\/]*)
3222   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3223   ;;
3224   *)
3225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3226 for as_dir in $PATH
3227 do
3228   IFS=$as_save_IFS
3229   test -z "$as_dir" && as_dir=.
3230   for ac_exec_ext in '' $ac_executable_extensions; do
3231   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3232     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3234     break 2
3235   fi
3236 done
3237 done
3238
3239   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3240   ;;
3241 esac
3242 fi
3243 CXX=$ac_cv_path_CXX
3244
3245 if test -n "$CXX"; then
3246   echo "$as_me:$LINENO: result: $CXX" >&5
3247 echo "${ECHO_T}$CXX" >&6
3248 else
3249   echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3251 fi
3252
3253 if test ! -e $CXX; then
3254    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3255 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3256    { (exit 1); exit 1; }; }
3257 fi
3258
3259 # Find a good install program.  We prefer a C program (faster),
3260 # so one script is as good as another.  But avoid the broken or
3261 # incompatible versions:
3262 # SysV /etc/install, /usr/sbin/install
3263 # SunOS /usr/etc/install
3264 # IRIX /sbin/install
3265 # AIX /bin/install
3266 # AmigaOS /C/install, which installs bootblocks on floppy discs
3267 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3268 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3269 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3270 # OS/2's system install, which has a completely different semantic
3271 # ./install, which can be erroneously created by make from ./install.sh.
3272 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3273 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3274 if test -z "$INSTALL"; then
3275 if test "${ac_cv_path_install+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3280 do
3281   IFS=$as_save_IFS
3282   test -z "$as_dir" && as_dir=.
3283   # Account for people who put trailing slashes in PATH elements.
3284 case $as_dir/ in
3285   ./ | .// | /cC/* | \
3286   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3287   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3288   /usr/ucb/* ) ;;
3289   *)
3290     # OSF1 and SCO ODT 3.0 have their own names for install.
3291     # Don't use installbsd from OSF since it installs stuff as root
3292     # by default.
3293     for ac_prog in ginstall scoinst install; do
3294       for ac_exec_ext in '' $ac_executable_extensions; do
3295         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3296           if test $ac_prog = install &&
3297             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3298             # AIX install.  It has an incompatible calling convention.
3299             :
3300           elif test $ac_prog = install &&
3301             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3302             # program-specific install script used by HP pwplus--don't use.
3303             :
3304           else
3305             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3306             break 3
3307           fi
3308         fi
3309       done
3310     done
3311     ;;
3312 esac
3313 done
3314
3315
3316 fi
3317   if test "${ac_cv_path_install+set}" = set; then
3318     INSTALL=$ac_cv_path_install
3319   else
3320     # As a last resort, use the slow shell script.  We don't cache a
3321     # path for INSTALL within a source directory, because that will
3322     # break other packages using the cache if that directory is
3323     # removed, or if the path is relative.
3324     INSTALL=$ac_install_sh
3325   fi
3326 fi
3327 echo "$as_me:$LINENO: result: $INSTALL" >&5
3328 echo "${ECHO_T}$INSTALL" >&6
3329
3330 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3331 # It thinks the first close brace ends the variable substitution.
3332 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3333
3334 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3335
3336 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3337
3338 if test -n "$ac_tool_prefix"; then
3339   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3341 echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3343 if test "${ac_cv_prog_RANLIB+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   if test -n "$RANLIB"; then
3347   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354   for ac_exec_ext in '' $ac_executable_extensions; do
3355   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3356     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3357     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361 done
3362
3363 fi
3364 fi
3365 RANLIB=$ac_cv_prog_RANLIB
3366 if test -n "$RANLIB"; then
3367   echo "$as_me:$LINENO: result: $RANLIB" >&5
3368 echo "${ECHO_T}$RANLIB" >&6
3369 else
3370   echo "$as_me:$LINENO: result: no" >&5
3371 echo "${ECHO_T}no" >&6
3372 fi
3373
3374 fi
3375 if test -z "$ac_cv_prog_RANLIB"; then
3376   ac_ct_RANLIB=$RANLIB
3377   # Extract the first word of "ranlib", so it can be a program name with args.
3378 set dummy ranlib; ac_word=$2
3379 echo "$as_me:$LINENO: checking for $ac_word" >&5
3380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3381 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3382   echo $ECHO_N "(cached) $ECHO_C" >&6
3383 else
3384   if test -n "$ac_ct_RANLIB"; then
3385   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392   for ac_exec_ext in '' $ac_executable_extensions; do
3393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3394     ac_cv_prog_ac_ct_RANLIB="ranlib"
3395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399 done
3400
3401   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3402 fi
3403 fi
3404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3405 if test -n "$ac_ct_RANLIB"; then
3406   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3407 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3408 else
3409   echo "$as_me:$LINENO: result: no" >&5
3410 echo "${ECHO_T}no" >&6
3411 fi
3412
3413   RANLIB=$ac_ct_RANLIB
3414 else
3415   RANLIB="$ac_cv_prog_RANLIB"
3416 fi
3417
3418 # Extract the first word of "mv", so it can be a program name with args.
3419 set dummy mv; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_MV+set}" = set; then
3423   echo $ECHO_N "(cached) $ECHO_C" >&6
3424 else
3425   case $MV in
3426   [\\/]* | ?:[\\/]*)
3427   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3428   ;;
3429   *)
3430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435   for ac_exec_ext in '' $ac_executable_extensions; do
3436   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442 done
3443
3444   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3445   ;;
3446 esac
3447 fi
3448 MV=$ac_cv_path_MV
3449
3450 if test -n "$MV"; then
3451   echo "$as_me:$LINENO: result: $MV" >&5
3452 echo "${ECHO_T}$MV" >&6
3453 else
3454   echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3456 fi
3457
3458 # Extract the first word of "rm", so it can be a program name with args.
3459 set dummy rm; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_RM+set}" = set; then
3463   echo $ECHO_N "(cached) $ECHO_C" >&6
3464 else
3465   case $RM in
3466   [\\/]* | ?:[\\/]*)
3467   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3468   ;;
3469   *)
3470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475   for ac_exec_ext in '' $ac_executable_extensions; do
3476   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3479     break 2
3480   fi
3481 done
3482 done
3483
3484   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3485   ;;
3486 esac
3487 fi
3488 RM=$ac_cv_path_RM
3489
3490 if test -n "$RM"; then
3491   echo "$as_me:$LINENO: result: $RM" >&5
3492 echo "${ECHO_T}$RM" >&6
3493 else
3494   echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3496 fi
3497
3498 # Extract the first word of "cp", so it can be a program name with args.
3499 set dummy cp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CP+set}" = set; then
3503   echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505   case $CP in
3506   [\\/]* | ?:[\\/]*)
3507   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3508   ;;
3509   *)
3510   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 for as_dir in $PATH
3512 do
3513   IFS=$as_save_IFS
3514   test -z "$as_dir" && as_dir=.
3515   for ac_exec_ext in '' $ac_executable_extensions; do
3516   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3518     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3519     break 2
3520   fi
3521 done
3522 done
3523
3524   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3525   ;;
3526 esac
3527 fi
3528 CP=$ac_cv_path_CP
3529
3530 if test -n "$CP"; then
3531   echo "$as_me:$LINENO: result: $CP" >&5
3532 echo "${ECHO_T}$CP" >&6
3533 else
3534   echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3536 fi
3537
3538 # Extract the first word of "sed", so it can be a program name with args.
3539 set dummy sed; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_SED+set}" = set; then
3543   echo $ECHO_N "(cached) $ECHO_C" >&6
3544 else
3545   case $SED in
3546   [\\/]* | ?:[\\/]*)
3547   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3548   ;;
3549   *)
3550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553   IFS=$as_save_IFS
3554   test -z "$as_dir" && as_dir=.
3555   for ac_exec_ext in '' $ac_executable_extensions; do
3556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3559     break 2
3560   fi
3561 done
3562 done
3563
3564   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3565   ;;
3566 esac
3567 fi
3568 SED=$ac_cv_path_SED
3569
3570 if test -n "$SED"; then
3571   echo "$as_me:$LINENO: result: $SED" >&5
3572 echo "${ECHO_T}$SED" >&6
3573 else
3574   echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3576 fi
3577
3578 # Extract the first word of "echo", so it can be a program name with args.
3579 set dummy echo; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_ECHO+set}" = set; then
3583   echo $ECHO_N "(cached) $ECHO_C" >&6
3584 else
3585   case $ECHO in
3586   [\\/]* | ?:[\\/]*)
3587   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3588   ;;
3589   *)
3590   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603
3604   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3605   ;;
3606 esac
3607 fi
3608 ECHO=$ac_cv_path_ECHO
3609
3610 if test -n "$ECHO"; then
3611   echo "$as_me:$LINENO: result: $ECHO" >&5
3612 echo "${ECHO_T}$ECHO" >&6
3613 else
3614   echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3616 fi
3617
3618 # Extract the first word of "cmp", so it can be a program name with args.
3619 set dummy cmp; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_CMP+set}" = set; then
3623   echo $ECHO_N "(cached) $ECHO_C" >&6
3624 else
3625   case $CMP in
3626   [\\/]* | ?:[\\/]*)
3627   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3628   ;;
3629   *)
3630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643
3644   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3645   ;;
3646 esac
3647 fi
3648 CMP=$ac_cv_path_CMP
3649
3650 if test -n "$CMP"; then
3651   echo "$as_me:$LINENO: result: $CMP" >&5
3652 echo "${ECHO_T}$CMP" >&6
3653 else
3654   echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3656 fi
3657
3658 # Extract the first word of "tbl", so it can be a program name with args.
3659 set dummy tbl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_TBL+set}" = set; then
3663   echo $ECHO_N "(cached) $ECHO_C" >&6
3664 else
3665   case $TBL in
3666   [\\/]* | ?:[\\/]*)
3667   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3668   ;;
3669   *)
3670   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 for as_dir in $PATH
3672 do
3673   IFS=$as_save_IFS
3674   test -z "$as_dir" && as_dir=.
3675   for ac_exec_ext in '' $ac_executable_extensions; do
3676   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3679     break 2
3680   fi
3681 done
3682 done
3683
3684   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3685   ;;
3686 esac
3687 fi
3688 TBL=$ac_cv_path_TBL
3689
3690 if test -n "$TBL"; then
3691   echo "$as_me:$LINENO: result: $TBL" >&5
3692 echo "${ECHO_T}$TBL" >&6
3693 else
3694   echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3696 fi
3697
3698 # Extract the first word of "ar", so it can be a program name with args.
3699 set dummy ar; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_AR+set}" = set; then
3703   echo $ECHO_N "(cached) $ECHO_C" >&6
3704 else
3705   case $AR in
3706   [\\/]* | ?:[\\/]*)
3707   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3708   ;;
3709   *)
3710   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711 for as_dir in $PATH
3712 do
3713   IFS=$as_save_IFS
3714   test -z "$as_dir" && as_dir=.
3715   for ac_exec_ext in '' $ac_executable_extensions; do
3716   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3718     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3719     break 2
3720   fi
3721 done
3722 done
3723
3724   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3725   ;;
3726 esac
3727 fi
3728 AR=$ac_cv_path_AR
3729
3730 if test -n "$AR"; then
3731   echo "$as_me:$LINENO: result: $AR" >&5
3732 echo "${ECHO_T}$AR" >&6
3733 else
3734   echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3736 fi
3737
3738 # Extract the first word of "openssl", so it can be a program name with args.
3739 set dummy openssl; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_OPENSSL+set}" = set; then
3743   echo $ECHO_N "(cached) $ECHO_C" >&6
3744 else
3745   case $OPENSSL in
3746   [\\/]* | ?:[\\/]*)
3747   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3748   ;;
3749   *)
3750   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3751 for as_dir in $PATH
3752 do
3753   IFS=$as_save_IFS
3754   test -z "$as_dir" && as_dir=.
3755   for ac_exec_ext in '' $ac_executable_extensions; do
3756   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3758     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3759     break 2
3760   fi
3761 done
3762 done
3763
3764   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3765   ;;
3766 esac
3767 fi
3768 OPENSSL=$ac_cv_path_OPENSSL
3769
3770 if test -n "$OPENSSL"; then
3771   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3772 echo "${ECHO_T}$OPENSSL" >&6
3773 else
3774   echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3776 fi
3777
3778 # Extract the first word of "mtx", so it can be a program name with args.
3779 set dummy mtx; ac_word=$2
3780 echo "$as_me:$LINENO: checking for $ac_word" >&5
3781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3782 if test "${ac_cv_path_MTX+set}" = set; then
3783   echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785   case $MTX in
3786   [\\/]* | ?:[\\/]*)
3787   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3788   ;;
3789   *)
3790   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3791 for as_dir in $PATH
3792 do
3793   IFS=$as_save_IFS
3794   test -z "$as_dir" && as_dir=.
3795   for ac_exec_ext in '' $ac_executable_extensions; do
3796   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3797     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3798     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3799     break 2
3800   fi
3801 done
3802 done
3803
3804   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3805   ;;
3806 esac
3807 fi
3808 MTX=$ac_cv_path_MTX
3809
3810 if test -n "$MTX"; then
3811   echo "$as_me:$LINENO: result: $MTX" >&5
3812 echo "${ECHO_T}$MTX" >&6
3813 else
3814   echo "$as_me:$LINENO: result: no" >&5
3815 echo "${ECHO_T}no" >&6
3816 fi
3817
3818 # Extract the first word of "df", so it can be a program name with args.
3819 set dummy df; ac_word=$2
3820 echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3822 if test "${ac_cv_path_DF+set}" = set; then
3823   echo $ECHO_N "(cached) $ECHO_C" >&6
3824 else
3825   case $DF in
3826   [\\/]* | ?:[\\/]*)
3827   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3828   ;;
3829   *)
3830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 for as_dir in $PATH
3832 do
3833   IFS=$as_save_IFS
3834   test -z "$as_dir" && as_dir=.
3835   for ac_exec_ext in '' $ac_executable_extensions; do
3836   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3837     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3838     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839     break 2
3840   fi
3841 done
3842 done
3843
3844   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3845   ;;
3846 esac
3847 fi
3848 DF=$ac_cv_path_DF
3849
3850 if test -n "$DF"; then
3851   echo "$as_me:$LINENO: result: $DF" >&5
3852 echo "${ECHO_T}$DF" >&6
3853 else
3854   echo "$as_me:$LINENO: result: no" >&5
3855 echo "${ECHO_T}no" >&6
3856 fi
3857
3858 # Extract the first word of "mkisofs", so it can be a program name with args.
3859 set dummy mkisofs; ac_word=$2
3860 echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3862 if test "${ac_cv_path_MKISOFS+set}" = set; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   case $MKISOFS in
3866   [\\/]* | ?:[\\/]*)
3867   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3868   ;;
3869   *)
3870   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 for as_dir in $PATH
3872 do
3873   IFS=$as_save_IFS
3874   test -z "$as_dir" && as_dir=.
3875   for ac_exec_ext in '' $ac_executable_extensions; do
3876   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3878     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879     break 2
3880   fi
3881 done
3882 done
3883
3884   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3885   ;;
3886 esac
3887 fi
3888 MKISOFS=$ac_cv_path_MKISOFS
3889
3890 if test -n "$MKISOFS"; then
3891   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3892 echo "${ECHO_T}$MKISOFS" >&6
3893 else
3894   echo "$as_me:$LINENO: result: no" >&5
3895 echo "${ECHO_T}no" >&6
3896 fi
3897
3898 # Extract the first word of "python", so it can be a program name with args.
3899 set dummy python; ac_word=$2
3900 echo "$as_me:$LINENO: checking for $ac_word" >&5
3901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3902 if test "${ac_cv_path_PYTHON+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   case $PYTHON in
3906   [\\/]* | ?:[\\/]*)
3907   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3908   ;;
3909   *)
3910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3912 do
3913   IFS=$as_save_IFS
3914   test -z "$as_dir" && as_dir=.
3915   for ac_exec_ext in '' $ac_executable_extensions; do
3916   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3917     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3918     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3919     break 2
3920   fi
3921 done
3922 done
3923
3924   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3925   ;;
3926 esac
3927 fi
3928 PYTHON=$ac_cv_path_PYTHON
3929
3930 if test -n "$PYTHON"; then
3931   echo "$as_me:$LINENO: result: $PYTHON" >&5
3932 echo "${ECHO_T}$PYTHON" >&6
3933 else
3934   echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3936 fi
3937
3938 # Extract the first word of "growisofs", so it can be a program name with args.
3939 set dummy growisofs; ac_word=$2
3940 echo "$as_me:$LINENO: checking for $ac_word" >&5
3941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3942 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3943   echo $ECHO_N "(cached) $ECHO_C" >&6
3944 else
3945   case $GROWISOFS in
3946   [\\/]* | ?:[\\/]*)
3947   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3948   ;;
3949   *)
3950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 for as_dir in $PATH
3952 do
3953   IFS=$as_save_IFS
3954   test -z "$as_dir" && as_dir=.
3955   for ac_exec_ext in '' $ac_executable_extensions; do
3956   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3957     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3959     break 2
3960   fi
3961 done
3962 done
3963
3964   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3965   ;;
3966 esac
3967 fi
3968 GROWISOFS=$ac_cv_path_GROWISOFS
3969
3970 if test -n "$GROWISOFS"; then
3971   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3972 echo "${ECHO_T}$GROWISOFS" >&6
3973 else
3974   echo "$as_me:$LINENO: result: no" >&5
3975 echo "${ECHO_T}no" >&6
3976 fi
3977
3978 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3979 set dummy dvd+rw-mediainfo; ac_word=$2
3980 echo "$as_me:$LINENO: checking for $ac_word" >&5
3981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3982 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   case $DVDRWMEDIAINFO in
3986   [\\/]* | ?:[\\/]*)
3987   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3988   ;;
3989   *)
3990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3992 do
3993   IFS=$as_save_IFS
3994   test -z "$as_dir" && as_dir=.
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3999     break 2
4000   fi
4001 done
4002 done
4003
4004   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4005   ;;
4006 esac
4007 fi
4008 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4009
4010 if test -n "$DVDRWMEDIAINFO"; then
4011   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4012 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4013 else
4014   echo "$as_me:$LINENO: result: no" >&5
4015 echo "${ECHO_T}no" >&6
4016 fi
4017
4018 # Extract the first word of "pkg-config", so it can be a program name with args.
4019 set dummy pkg-config; ac_word=$2
4020 echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4022 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   case $PKGCONFIG in
4026   [\\/]* | ?:[\\/]*)
4027   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4028   ;;
4029   *)
4030   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031 for as_dir in $PATH
4032 do
4033   IFS=$as_save_IFS
4034   test -z "$as_dir" && as_dir=.
4035   for ac_exec_ext in '' $ac_executable_extensions; do
4036   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4038     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4039     break 2
4040   fi
4041 done
4042 done
4043
4044   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4045   ;;
4046 esac
4047 fi
4048 PKGCONFIG=$ac_cv_path_PKGCONFIG
4049
4050 if test -n "$PKGCONFIG"; then
4051   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4052 echo "${ECHO_T}$PKGCONFIG" >&6
4053 else
4054   echo "$as_me:$LINENO: result: no" >&5
4055 echo "${ECHO_T}no" >&6
4056 fi
4057
4058
4059 if test "x$WXCONFIG" = x; then
4060   WXCONFIG=wx-config
4061 fi
4062 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4063 set dummy ${WXCONFIG}; ac_word=$2
4064 echo "$as_me:$LINENO: checking for $ac_word" >&5
4065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4066 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4067   echo $ECHO_N "(cached) $ECHO_C" >&6
4068 else
4069   case $WXCONFIG in
4070   [\\/]* | ?:[\\/]*)
4071   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4072   ;;
4073   *)
4074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 for as_dir in $PATH
4076 do
4077   IFS=$as_save_IFS
4078   test -z "$as_dir" && as_dir=.
4079   for ac_exec_ext in '' $ac_executable_extensions; do
4080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4081     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4083     break 2
4084   fi
4085 done
4086 done
4087
4088   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4089   ;;
4090 esac
4091 fi
4092 WXCONFIG=$ac_cv_path_WXCONFIG
4093
4094 if test -n "$WXCONFIG"; then
4095   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4096 echo "${ECHO_T}$WXCONFIG" >&6
4097 else
4098   echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4100 fi
4101
4102
4103 # Extract the first word of "cdrecord", so it can be a program name with args.
4104 set dummy cdrecord; ac_word=$2
4105 echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4107 if test "${ac_cv_path_CDRECORD+set}" = set; then
4108   echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110   case $CDRECORD in
4111   [\\/]* | ?:[\\/]*)
4112   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4113   ;;
4114   *)
4115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4117 do
4118   IFS=$as_save_IFS
4119   test -z "$as_dir" && as_dir=.
4120   for ac_exec_ext in '' $ac_executable_extensions; do
4121   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4122     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124     break 2
4125   fi
4126 done
4127 done
4128
4129   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4130   ;;
4131 esac
4132 fi
4133 CDRECORD=$ac_cv_path_CDRECORD
4134
4135 if test -n "$CDRECORD"; then
4136   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4137 echo "${ECHO_T}$CDRECORD" >&6
4138 else
4139   echo "$as_me:$LINENO: result: no" >&5
4140 echo "${ECHO_T}no" >&6
4141 fi
4142
4143 # Extract the first word of "pidof", so it can be a program name with args.
4144 set dummy pidof; ac_word=$2
4145 echo "$as_me:$LINENO: checking for $ac_word" >&5
4146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4147 if test "${ac_cv_path_PIDOF+set}" = set; then
4148   echo $ECHO_N "(cached) $ECHO_C" >&6
4149 else
4150   case $PIDOF in
4151   [\\/]* | ?:[\\/]*)
4152   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4153   ;;
4154   *)
4155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4157 do
4158   IFS=$as_save_IFS
4159   test -z "$as_dir" && as_dir=.
4160   for ac_exec_ext in '' $ac_executable_extensions; do
4161   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4162     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164     break 2
4165   fi
4166 done
4167 done
4168
4169   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4170   ;;
4171 esac
4172 fi
4173 PIDOF=$ac_cv_path_PIDOF
4174
4175 if test -n "$PIDOF"; then
4176   echo "$as_me:$LINENO: result: $PIDOF" >&5
4177 echo "${ECHO_T}$PIDOF" >&6
4178 else
4179   echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4181 fi
4182
4183 for ac_prog in gawk mawk nawk awk
4184 do
4185   # Extract the first word of "$ac_prog", so it can be a program name with args.
4186 set dummy $ac_prog; ac_word=$2
4187 echo "$as_me:$LINENO: checking for $ac_word" >&5
4188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4189 if test "${ac_cv_prog_AWK+set}" = set; then
4190   echo $ECHO_N "(cached) $ECHO_C" >&6
4191 else
4192   if test -n "$AWK"; then
4193   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198   IFS=$as_save_IFS
4199   test -z "$as_dir" && as_dir=.
4200   for ac_exec_ext in '' $ac_executable_extensions; do
4201   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4202     ac_cv_prog_AWK="$ac_prog"
4203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4204     break 2
4205   fi
4206 done
4207 done
4208
4209 fi
4210 fi
4211 AWK=$ac_cv_prog_AWK
4212 if test -n "$AWK"; then
4213   echo "$as_me:$LINENO: result: $AWK" >&5
4214 echo "${ECHO_T}$AWK" >&6
4215 else
4216   echo "$as_me:$LINENO: result: no" >&5
4217 echo "${ECHO_T}no" >&6
4218 fi
4219
4220   test -n "$AWK" && break
4221 done
4222
4223 # Some AWK programs fail, so test it and warn the user
4224 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4225       { if ((prog == $2) || (("(" prog ")") == $2) ||
4226            (("" prog "") == $2) ||
4227            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4228 else
4229   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4230    The regex engine of $AWK is too broken to be used you
4231    might want to install GNU AWK.
4232    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4233 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4234    The regex engine of $AWK is too broken to be used you
4235    might want to install GNU AWK.
4236    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4237    { (exit 1); exit 1; }; }
4238 fi
4239 THE_AWK=$AWK
4240 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4241 set dummy $THE_AWK; ac_word=$2
4242 echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4244 if test "${ac_cv_path_AWK+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   case $AWK in
4248   [\\/]* | ?:[\\/]*)
4249   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4250   ;;
4251   *)
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4259     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265
4266   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4267   ;;
4268 esac
4269 fi
4270 AWK=$ac_cv_path_AWK
4271
4272 if test -n "$AWK"; then
4273   echo "$as_me:$LINENO: result: $AWK" >&5
4274 echo "${ECHO_T}$AWK" >&6
4275 else
4276   echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280
4281 test -n "$ARFLAG" || ARFLAGS="cr"
4282
4283
4284 MAKE_SHELL=/bin/sh
4285
4286
4287
4288
4289
4290
4291
4292 # Make sure we can run config.sub.
4293 $ac_config_sub sun4 >/dev/null 2>&1 ||
4294   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4295 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4296    { (exit 1); exit 1; }; }
4297
4298 echo "$as_me:$LINENO: checking build system type" >&5
4299 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4300 if test "${ac_cv_build+set}" = set; then
4301   echo $ECHO_N "(cached) $ECHO_C" >&6
4302 else
4303   ac_cv_build_alias=$build_alias
4304 test -z "$ac_cv_build_alias" &&
4305   ac_cv_build_alias=`$ac_config_guess`
4306 test -z "$ac_cv_build_alias" &&
4307   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4308 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4309    { (exit 1); exit 1; }; }
4310 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4311   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4312 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4313    { (exit 1); exit 1; }; }
4314
4315 fi
4316 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4317 echo "${ECHO_T}$ac_cv_build" >&6
4318 build=$ac_cv_build
4319 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4320 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4321 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4322
4323
4324
4325 echo "$as_me:$LINENO: checking host system type" >&5
4326 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4327 if test "${ac_cv_host+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   ac_cv_host_alias=$host_alias
4331 test -z "$ac_cv_host_alias" &&
4332   ac_cv_host_alias=$ac_cv_build_alias
4333 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4334   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4335 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4336    { (exit 1); exit 1; }; }
4337
4338 fi
4339 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4340 echo "${ECHO_T}$ac_cv_host" >&6
4341 host=$ac_cv_host
4342 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4343 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4344 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4345
4346
4347 case $host_os in
4348   *cygwin* ) CYGWIN=yes;;
4349          * ) CYGWIN=no;;
4350 esac
4351
4352 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4353 then
4354
4355
4356 if $TRUEPRG; then
4357   HAVE_SUN_OS_TRUE=
4358   HAVE_SUN_OS_FALSE='#'
4359 else
4360   HAVE_SUN_OS_TRUE='#'
4361   HAVE_SUN_OS_FALSE=
4362 fi
4363         cat >>confdefs.h <<\_ACEOF
4364 #define HAVE_SUN_OS 1
4365 _ACEOF
4366
4367 else
4368
4369
4370 if $FALSEPRG; then
4371   HAVE_SUN_OS_TRUE=
4372   HAVE_SUN_OS_FALSE='#'
4373 else
4374   HAVE_SUN_OS_TRUE='#'
4375   HAVE_SUN_OS_FALSE=
4376 fi
4377 fi
4378
4379 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4380 then
4381
4382
4383 if $TRUEPRG; then
4384   HAVE_OSF1_OS_TRUE=
4385   HAVE_OSF1_OS_FALSE='#'
4386 else
4387   HAVE_OSF1_OS_TRUE='#'
4388   HAVE_OSF1_OS_FALSE=
4389 fi
4390         cat >>confdefs.h <<\_ACEOF
4391 #define HAVE_OSF1_OS 1
4392 _ACEOF
4393
4394 else
4395
4396
4397 if $FALSEPRG; then
4398   HAVE_OSF1_OS_TRUE=
4399   HAVE_OSF1_OS_FALSE='#'
4400 else
4401   HAVE_OSF1_OS_TRUE='#'
4402   HAVE_OSF1_OS_FALSE=
4403 fi
4404 fi
4405
4406 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4407 then
4408
4409
4410 if $TRUEPRG; then
4411   HAVE_AIX_OS_TRUE=
4412   HAVE_AIX_OS_FALSE='#'
4413 else
4414   HAVE_AIX_OS_TRUE='#'
4415   HAVE_AIX_OS_FALSE=
4416 fi
4417         cat >>confdefs.h <<\_ACEOF
4418 #define HAVE_AIX_OS 1
4419 _ACEOF
4420
4421 else
4422
4423
4424 if $FALSEPRG; then
4425   HAVE_AIX_OS_TRUE=
4426   HAVE_AIX_OS_FALSE='#'
4427 else
4428   HAVE_AIX_OS_TRUE='#'
4429   HAVE_AIX_OS_FALSE=
4430 fi
4431 fi
4432
4433 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4434 then
4435
4436
4437 if $TRUEPRG; then
4438   HAVE_HPUX_OS_TRUE=
4439   HAVE_HPUX_OS_FALSE='#'
4440 else
4441   HAVE_HPUX_OS_TRUE='#'
4442   HAVE_HPUX_OS_FALSE=
4443 fi
4444         cat >>confdefs.h <<\_ACEOF
4445 #define HAVE_HPUX_OS 1
4446 _ACEOF
4447
4448 else
4449
4450
4451 if $FALSEPRG; then
4452   HAVE_HPUX_OS_TRUE=
4453   HAVE_HPUX_OS_FALSE='#'
4454 else
4455   HAVE_HPUX_OS_TRUE='#'
4456   HAVE_HPUX_OS_FALSE=
4457 fi
4458 fi
4459
4460 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4461 then
4462
4463
4464 if $TRUEPRG; then
4465   HAVE_LINUX_OS_TRUE=
4466   HAVE_LINUX_OS_FALSE='#'
4467 else
4468   HAVE_LINUX_OS_TRUE='#'
4469   HAVE_LINUX_OS_FALSE=
4470 fi
4471         cat >>confdefs.h <<\_ACEOF
4472 #define HAVE_LINUX_OS 1
4473 _ACEOF
4474
4475 else
4476
4477
4478 if $FALSEPRG; then
4479   HAVE_LINUX_OS_TRUE=
4480   HAVE_LINUX_OS_FALSE='#'
4481 else
4482   HAVE_LINUX_OS_TRUE='#'
4483   HAVE_LINUX_OS_FALSE=
4484 fi
4485 fi
4486
4487 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4488 then
4489
4490
4491 if $TRUEPRG; then
4492   HAVE_FREEBSD_OS_TRUE=
4493   HAVE_FREEBSD_OS_FALSE='#'
4494 else
4495   HAVE_FREEBSD_OS_TRUE='#'
4496   HAVE_FREEBSD_OS_FALSE=
4497 fi
4498         cat >>confdefs.h <<\_ACEOF
4499 #define HAVE_FREEBSD_OS 1
4500 _ACEOF
4501
4502 else
4503
4504
4505 if $FALSEPRG; then
4506   HAVE_FREEBSD_OS_TRUE=
4507   HAVE_FREEBSD_OS_FALSE='#'
4508 else
4509   HAVE_FREEBSD_OS_TRUE='#'
4510   HAVE_FREEBSD_OS_FALSE=
4511 fi
4512 fi
4513
4514 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4515 then
4516
4517
4518 if $TRUEPRG; then
4519   HAVE_NETBSD_OS_TRUE=
4520   HAVE_NETBSD_OS_FALSE='#'
4521 else
4522   HAVE_NETBSD_OS_TRUE='#'
4523   HAVE_NETBSD_OS_FALSE=
4524 fi
4525         cat >>confdefs.h <<\_ACEOF
4526 #define HAVE_NETBSD_OS 1
4527 _ACEOF
4528
4529 else
4530
4531
4532 if $FALSEPRG; then
4533   HAVE_NETBSD_OS_TRUE=
4534   HAVE_NETBSD_OS_FALSE='#'
4535 else
4536   HAVE_NETBSD_OS_TRUE='#'
4537   HAVE_NETBSD_OS_FALSE=
4538 fi
4539 fi
4540
4541 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4542 then
4543
4544
4545 if $TRUEPRG; then
4546   HAVE_OPENBSD_OS_TRUE=
4547   HAVE_OPENBSD_OS_FALSE='#'
4548 else
4549   HAVE_OPENBSD_OS_TRUE='#'
4550   HAVE_OPENBSD_OS_FALSE=
4551 fi
4552         cat >>confdefs.h <<\_ACEOF
4553 #define HAVE_OPENBSD_OS 1
4554 _ACEOF
4555
4556 else
4557
4558
4559 if $FALSEPRG; then
4560   HAVE_OPENBSD_OS_TRUE=
4561   HAVE_OPENBSD_OS_FALSE='#'
4562 else
4563   HAVE_OPENBSD_OS_TRUE='#'
4564   HAVE_OPENBSD_OS_FALSE=
4565 fi
4566 fi
4567
4568 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4569 then
4570
4571
4572 if $TRUEPRG; then
4573   HAVE_BSDI_OS_TRUE=
4574   HAVE_BSDI_OS_FALSE='#'
4575 else
4576   HAVE_BSDI_OS_TRUE='#'
4577   HAVE_BSDI_OS_FALSE=
4578 fi
4579         cat >>confdefs.h <<\_ACEOF
4580 #define HAVE_BSDI_OS 1
4581 _ACEOF
4582
4583 else
4584
4585
4586 if $FALSEPRG; then
4587   HAVE_BSDI_OS_TRUE=
4588   HAVE_BSDI_OS_FALSE='#'
4589 else
4590   HAVE_BSDI_OS_TRUE='#'
4591   HAVE_BSDI_OS_FALSE=
4592 fi
4593 fi
4594
4595 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4596 then
4597
4598
4599 if $TRUEPRG; then
4600   HAVE_SGI_OS_TRUE=
4601   HAVE_SGI_OS_FALSE='#'
4602 else
4603   HAVE_SGI_OS_TRUE='#'
4604   HAVE_SGI_OS_FALSE=
4605 fi
4606         cat >>confdefs.h <<\_ACEOF
4607 #define HAVE_SGI_OS 1
4608 _ACEOF
4609
4610 else
4611
4612
4613 if $FALSEPRG; then
4614   HAVE_SGI_OS_TRUE=
4615   HAVE_SGI_OS_FALSE='#'
4616 else
4617   HAVE_SGI_OS_TRUE='#'
4618   HAVE_SGI_OS_FALSE=
4619 fi
4620 fi
4621
4622 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4623 then
4624
4625
4626 if $TRUEPRG; then
4627   HAVE_IRIX_OS_TRUE=
4628   HAVE_IRIX_OS_FALSE='#'
4629 else
4630   HAVE_IRIX_OS_TRUE='#'
4631   HAVE_IRIX_OS_FALSE=
4632 fi
4633         cat >>confdefs.h <<\_ACEOF
4634 #define HAVE_IRIX_OS 1
4635 _ACEOF
4636
4637 else
4638
4639
4640 if $FALSEPRG; then
4641   HAVE_IRIX_OS_TRUE=
4642   HAVE_IRIX_OS_FALSE='#'
4643 else
4644   HAVE_IRIX_OS_TRUE='#'
4645   HAVE_IRIX_OS_FALSE=
4646 fi
4647 fi
4648
4649 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4650 then
4651
4652
4653 if $TRUEPRG; then
4654   HAVE_DARWIN_OS_TRUE=
4655   HAVE_DARWIN_OS_FALSE='#'
4656 else
4657   HAVE_DARWIN_OS_TRUE='#'
4658   HAVE_DARWIN_OS_FALSE=
4659 fi
4660     cat >>confdefs.h <<\_ACEOF
4661 #define HAVE_DARWIN_OS 1
4662 _ACEOF
4663
4664 else
4665
4666
4667 if $FALSEPRG; then
4668   HAVE_DARWIN_OS_TRUE=
4669   HAVE_DARWIN_OS_FALSE='#'
4670 else
4671   HAVE_DARWIN_OS_TRUE='#'
4672   HAVE_DARWIN_OS_FALSE=
4673 fi
4674 fi
4675
4676
4677 # -----------------------------------------------------------
4678 # ----------------------------------------------------------
4679 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4680 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4681 if test "x$DISTNAME" != "x"
4682 then
4683         echo "distname set to $DISTNAME"
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4685 then
4686         DISTNAME=alpha
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4688 then
4689         DISTNAME=aix
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4691 then
4692         DISTNAME=hpux
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4694 then
4695         DISTNAME=solaris
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4697 then
4698         DISTNAME=freebsd
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4700 then
4701         DISTNAME=netbsd
4702 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4703 then
4704         DISTNAME=openbsd
4705 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4706 then
4707         DISTNAME=irix
4708 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4709 then
4710         DISTNAME=bsdi
4711 elif test -f /etc/SuSE-release
4712 then
4713         DISTNAME=suse
4714 elif test -d /etc/SuSEconfig
4715 then
4716         DISTNAME=suse5
4717 elif test -f /etc/mandrake-release
4718 then
4719         DISTNAME=mandrake
4720 elif test -f /etc/whitebox-release
4721 then
4722        DISTNAME=redhat
4723 elif test -f /etc/redhat-release
4724 then
4725         DISTNAME=redhat
4726 elif test -f /etc/gentoo-release
4727 then
4728         DISTNAME=gentoo
4729 elif test -f /etc/debian_version
4730 then
4731         DISTNAME=debian
4732 elif test -f /etc/slackware-version
4733 then
4734         DISTNAME=slackware
4735 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4736 then
4737     DISTNAME=darwin
4738 elif test -f /etc/engarde-version
4739 then
4740         DISTNAME=engarde
4741 elif test "$CYGWIN" = yes
4742 then
4743         DISTNAME=cygwin
4744         cat >>confdefs.h <<\_ACEOF
4745 #define HAVE_CYGWIN 1
4746 _ACEOF
4747
4748 else
4749         DISTNAME=unknown
4750 fi
4751 echo "$as_me:$LINENO: result: done" >&5
4752 echo "${ECHO_T}done" >&6
4753
4754
4755 # --------------------------------------------------
4756 # Suppport for gettext (translations)
4757 # By default, $datadir is ${prefix}/share
4758 # --------------------------------------------------
4759 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4760 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4761 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4762 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   cat >conftest.make <<\_ACEOF
4766 all:
4767         @echo 'ac_maketemp="$(MAKE)"'
4768 _ACEOF
4769 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4770 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4771 if test -n "$ac_maketemp"; then
4772   eval ac_cv_prog_make_${ac_make}_set=yes
4773 else
4774   eval ac_cv_prog_make_${ac_make}_set=no
4775 fi
4776 rm -f conftest.make
4777 fi
4778 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4779   echo "$as_me:$LINENO: result: yes" >&5
4780 echo "${ECHO_T}yes" >&6
4781   SET_MAKE=
4782 else
4783   echo "$as_me:$LINENO: result: no" >&5
4784 echo "${ECHO_T}no" >&6
4785   SET_MAKE="MAKE=${MAKE-make}"
4786 fi
4787
4788
4789
4790         MKINSTALLDIRS=
4791   if test -n "$ac_aux_dir"; then
4792     case "$ac_aux_dir" in
4793       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4794       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4795     esac
4796   fi
4797   if test -z "$MKINSTALLDIRS"; then
4798     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4799   fi
4800
4801
4802
4803   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4805     # Check whether --enable-nls or --disable-nls was given.
4806 if test "${enable_nls+set}" = set; then
4807   enableval="$enable_nls"
4808   USE_NLS=$enableval
4809 else
4810   USE_NLS=yes
4811 fi;
4812   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4813 echo "${ECHO_T}$USE_NLS" >&6
4814
4815
4816
4817
4818
4819
4820 # Prepare PATH_SEPARATOR.
4821 # The user is always right.
4822 if test "${PATH_SEPARATOR+set}" != set; then
4823   echo "#! /bin/sh" >conf$$.sh
4824   echo  "exit 0"   >>conf$$.sh
4825   chmod +x conf$$.sh
4826   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4827     PATH_SEPARATOR=';'
4828   else
4829     PATH_SEPARATOR=:
4830   fi
4831   rm -f conf$$.sh
4832 fi
4833
4834 # Find out how to test for executable files. Don't use a zero-byte file,
4835 # as systems may use methods other than mode bits to determine executability.
4836 cat >conf$$.file <<_ASEOF
4837 #! /bin/sh
4838 exit 0
4839 _ASEOF
4840 chmod +x conf$$.file
4841 if test -x conf$$.file >/dev/null 2>&1; then
4842   ac_executable_p="test -x"
4843 else
4844   ac_executable_p="test -f"
4845 fi
4846 rm -f conf$$.file
4847
4848 # Extract the first word of "msgfmt", so it can be a program name with args.
4849 set dummy msgfmt; ac_word=$2
4850 echo "$as_me:$LINENO: checking for $ac_word" >&5
4851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4852 if test "${ac_cv_path_MSGFMT+set}" = set; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   case "$MSGFMT" in
4856   [\\/]* | ?:[\\/]*)
4857     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4858     ;;
4859   *)
4860     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4861     for ac_dir in $PATH; do
4862       IFS="$ac_save_IFS"
4863       test -z "$ac_dir" && ac_dir=.
4864       for ac_exec_ext in '' $ac_executable_extensions; do
4865         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4866           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4867           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4868      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4869             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4870             break 2
4871           fi
4872         fi
4873       done
4874     done
4875     IFS="$ac_save_IFS"
4876   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4877     ;;
4878 esac
4879 fi
4880 MSGFMT="$ac_cv_path_MSGFMT"
4881 if test "$MSGFMT" != ":"; then
4882   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4883 echo "${ECHO_T}$MSGFMT" >&6
4884 else
4885   echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6
4887 fi
4888
4889   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4890 set dummy gmsgfmt; ac_word=$2
4891 echo "$as_me:$LINENO: checking for $ac_word" >&5
4892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4893 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   case $GMSGFMT in
4897   [\\/]* | ?:[\\/]*)
4898   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4899   ;;
4900   *)
4901   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4903 do
4904   IFS=$as_save_IFS
4905   test -z "$as_dir" && as_dir=.
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4910     break 2
4911   fi
4912 done
4913 done
4914
4915   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4916   ;;
4917 esac
4918 fi
4919 GMSGFMT=$ac_cv_path_GMSGFMT
4920
4921 if test -n "$GMSGFMT"; then
4922   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4923 echo "${ECHO_T}$GMSGFMT" >&6
4924 else
4925   echo "$as_me:$LINENO: result: no" >&5
4926 echo "${ECHO_T}no" >&6
4927 fi
4928
4929
4930
4931 # Prepare PATH_SEPARATOR.
4932 # The user is always right.
4933 if test "${PATH_SEPARATOR+set}" != set; then
4934   echo "#! /bin/sh" >conf$$.sh
4935   echo  "exit 0"   >>conf$$.sh
4936   chmod +x conf$$.sh
4937   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4938     PATH_SEPARATOR=';'
4939   else
4940     PATH_SEPARATOR=:
4941   fi
4942   rm -f conf$$.sh
4943 fi
4944
4945 # Find out how to test for executable files. Don't use a zero-byte file,
4946 # as systems may use methods other than mode bits to determine executability.
4947 cat >conf$$.file <<_ASEOF
4948 #! /bin/sh
4949 exit 0
4950 _ASEOF
4951 chmod +x conf$$.file
4952 if test -x conf$$.file >/dev/null 2>&1; then
4953   ac_executable_p="test -x"
4954 else
4955   ac_executable_p="test -f"
4956 fi
4957 rm -f conf$$.file
4958
4959 # Extract the first word of "xgettext", so it can be a program name with args.
4960 set dummy xgettext; ac_word=$2
4961 echo "$as_me:$LINENO: checking for $ac_word" >&5
4962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4963 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4964   echo $ECHO_N "(cached) $ECHO_C" >&6
4965 else
4966   case "$XGETTEXT" in
4967   [\\/]* | ?:[\\/]*)
4968     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4969     ;;
4970   *)
4971     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4972     for ac_dir in $PATH; do
4973       IFS="$ac_save_IFS"
4974       test -z "$ac_dir" && ac_dir=.
4975       for ac_exec_ext in '' $ac_executable_extensions; do
4976         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4977           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4978           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4979      (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
4980             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4981             break 2
4982           fi
4983         fi
4984       done
4985     done
4986     IFS="$ac_save_IFS"
4987   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4988     ;;
4989 esac
4990 fi
4991 XGETTEXT="$ac_cv_path_XGETTEXT"
4992 if test "$XGETTEXT" != ":"; then
4993   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4994 echo "${ECHO_T}$XGETTEXT" >&6
4995 else
4996   echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000     rm -f messages.po
5001
5002
5003 # Prepare PATH_SEPARATOR.
5004 # The user is always right.
5005 if test "${PATH_SEPARATOR+set}" != set; then
5006   echo "#! /bin/sh" >conf$$.sh
5007   echo  "exit 0"   >>conf$$.sh
5008   chmod +x conf$$.sh
5009   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5010     PATH_SEPARATOR=';'
5011   else
5012     PATH_SEPARATOR=:
5013   fi
5014   rm -f conf$$.sh
5015 fi
5016
5017 # Find out how to test for executable files. Don't use a zero-byte file,
5018 # as systems may use methods other than mode bits to determine executability.
5019 cat >conf$$.file <<_ASEOF
5020 #! /bin/sh
5021 exit 0
5022 _ASEOF
5023 chmod +x conf$$.file
5024 if test -x conf$$.file >/dev/null 2>&1; then
5025   ac_executable_p="test -x"
5026 else
5027   ac_executable_p="test -f"
5028 fi
5029 rm -f conf$$.file
5030
5031 # Extract the first word of "msgmerge", so it can be a program name with args.
5032 set dummy msgmerge; ac_word=$2
5033 echo "$as_me:$LINENO: checking for $ac_word" >&5
5034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5035 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5036   echo $ECHO_N "(cached) $ECHO_C" >&6
5037 else
5038   case "$MSGMERGE" in
5039   [\\/]* | ?:[\\/]*)
5040     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5041     ;;
5042   *)
5043     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5044     for ac_dir in $PATH; do
5045       IFS="$ac_save_IFS"
5046       test -z "$ac_dir" && ac_dir=.
5047       for ac_exec_ext in '' $ac_executable_extensions; do
5048         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5049           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5050           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5051             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5052             break 2
5053           fi
5054         fi
5055       done
5056     done
5057     IFS="$ac_save_IFS"
5058   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5059     ;;
5060 esac
5061 fi
5062 MSGMERGE="$ac_cv_path_MSGMERGE"
5063 if test "$MSGMERGE" != ":"; then
5064   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5065 echo "${ECHO_T}$MSGMERGE" >&6
5066 else
5067   echo "$as_me:$LINENO: result: no" >&5
5068 echo "${ECHO_T}no" >&6
5069 fi
5070
5071
5072       if test "$GMSGFMT" != ":"; then
5073             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5074        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5075       : ;
5076     else
5077       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5078       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5079 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5080       GMSGFMT=":"
5081     fi
5082   fi
5083
5084       if test "$XGETTEXT" != ":"; then
5085             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5086        (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
5087       : ;
5088     else
5089       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5090 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5091       XGETTEXT=":"
5092     fi
5093         rm -f messages.po
5094   fi
5095
5096             ac_config_commands="$ac_config_commands default-1"
5097
5098
5099
5100       if test "X$prefix" = "XNONE"; then
5101     acl_final_prefix="$ac_default_prefix"
5102   else
5103     acl_final_prefix="$prefix"
5104   fi
5105   if test "X$exec_prefix" = "XNONE"; then
5106     acl_final_exec_prefix='${prefix}'
5107   else
5108     acl_final_exec_prefix="$exec_prefix"
5109   fi
5110   acl_save_prefix="$prefix"
5111   prefix="$acl_final_prefix"
5112   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5113   prefix="$acl_save_prefix"
5114
5115
5116 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5117 if test "${with_gnu_ld+set}" = set; then
5118   withval="$with_gnu_ld"
5119   test "$withval" = no || with_gnu_ld=yes
5120 else
5121   with_gnu_ld=no
5122 fi;
5123 # Prepare PATH_SEPARATOR.
5124 # The user is always right.
5125 if test "${PATH_SEPARATOR+set}" != set; then
5126   echo "#! /bin/sh" >conf$$.sh
5127   echo  "exit 0"   >>conf$$.sh
5128   chmod +x conf$$.sh
5129   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5130     PATH_SEPARATOR=';'
5131   else
5132     PATH_SEPARATOR=:
5133   fi
5134   rm -f conf$$.sh
5135 fi
5136 ac_prog=ld
5137 if test "$GCC" = yes; then
5138   # Check if gcc -print-prog-name=ld gives a path.
5139   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5140 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5141   case $host in
5142   *-*-mingw*)
5143     # gcc leaves a trailing carriage return which upsets mingw
5144     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5145   *)
5146     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5147   esac
5148   case $ac_prog in
5149     # Accept absolute paths.
5150     [\\/]* | [A-Za-z]:[\\/]*)
5151       re_direlt='/[^/][^/]*/\.\./'
5152       # Canonicalize the path of ld
5153       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5154       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5155         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5156       done
5157       test -z "$LD" && LD="$ac_prog"
5158       ;;
5159   "")
5160     # If it fails, then pretend we aren't using GCC.
5161     ac_prog=ld
5162     ;;
5163   *)
5164     # If it is relative, then search for the first ld in PATH.
5165     with_gnu_ld=unknown
5166     ;;
5167   esac
5168 elif test "$with_gnu_ld" = yes; then
5169   echo "$as_me:$LINENO: checking for GNU ld" >&5
5170 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5171 else
5172   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5173 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5174 fi
5175 if test "${acl_cv_path_LD+set}" = set; then
5176   echo $ECHO_N "(cached) $ECHO_C" >&6
5177 else
5178   if test -z "$LD"; then
5179   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5180   for ac_dir in $PATH; do
5181     test -z "$ac_dir" && ac_dir=.
5182     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5183       acl_cv_path_LD="$ac_dir/$ac_prog"
5184       # Check to see if the program is GNU ld.  I'd rather use --version,
5185       # but apparently some GNU ld's only accept -v.
5186       # Break only if it was the GNU/non-GNU ld that we prefer.
5187       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5188       *GNU* | *'with BFD'*)
5189         test "$with_gnu_ld" != no && break ;;
5190       *)
5191         test "$with_gnu_ld" != yes && break ;;
5192       esac
5193     fi
5194   done
5195   IFS="$ac_save_ifs"
5196 else
5197   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5198 fi
5199 fi
5200
5201 LD="$acl_cv_path_LD"
5202 if test -n "$LD"; then
5203   echo "$as_me:$LINENO: result: $LD" >&5
5204 echo "${ECHO_T}$LD" >&6
5205 else
5206   echo "$as_me:$LINENO: result: no" >&5
5207 echo "${ECHO_T}no" >&6
5208 fi
5209 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5210 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5211    { (exit 1); exit 1; }; }
5212 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5213 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5214 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5215   echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5218 case `$LD -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220   acl_cv_prog_gnu_ld=yes ;;
5221 *)
5222   acl_cv_prog_gnu_ld=no ;;
5223 esac
5224 fi
5225 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5226 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5227 with_gnu_ld=$acl_cv_prog_gnu_ld
5228
5229
5230
5231
5232                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5233 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5234 if test "${acl_cv_rpath+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237
5238     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5239     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5240     . ./conftest.sh
5241     rm -f ./conftest.sh
5242     acl_cv_rpath=done
5243
5244 fi
5245 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5246 echo "${ECHO_T}$acl_cv_rpath" >&6
5247   wl="$acl_cv_wl"
5248   libext="$acl_cv_libext"
5249   shlibext="$acl_cv_shlibext"
5250   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5251   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5252   hardcode_direct="$acl_cv_hardcode_direct"
5253   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5254     # Check whether --enable-rpath or --disable-rpath was given.
5255 if test "${enable_rpath+set}" = set; then
5256   enableval="$enable_rpath"
5257   :
5258 else
5259   enable_rpath=yes
5260 fi;
5261
5262
5263
5264
5265
5266
5267
5268     use_additional=yes
5269
5270   acl_save_prefix="$prefix"
5271   prefix="$acl_final_prefix"
5272   acl_save_exec_prefix="$exec_prefix"
5273   exec_prefix="$acl_final_exec_prefix"
5274
5275     eval additional_includedir=\"$includedir\"
5276     eval additional_libdir=\"$libdir\"
5277
5278   exec_prefix="$acl_save_exec_prefix"
5279   prefix="$acl_save_prefix"
5280
5281
5282 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5283 if test "${with_libiconv_prefix+set}" = set; then
5284   withval="$with_libiconv_prefix"
5285
5286     if test "X$withval" = "Xno"; then
5287       use_additional=no
5288     else
5289       if test "X$withval" = "X"; then
5290
5291   acl_save_prefix="$prefix"
5292   prefix="$acl_final_prefix"
5293   acl_save_exec_prefix="$exec_prefix"
5294   exec_prefix="$acl_final_exec_prefix"
5295
5296           eval additional_includedir=\"$includedir\"
5297           eval additional_libdir=\"$libdir\"
5298
5299   exec_prefix="$acl_save_exec_prefix"
5300   prefix="$acl_save_prefix"
5301
5302       else
5303         additional_includedir="$withval/include"
5304         additional_libdir="$withval/lib"
5305       fi
5306     fi
5307
5308 fi;
5309       LIBICONV=
5310   LTLIBICONV=
5311   INCICONV=
5312   rpathdirs=
5313   ltrpathdirs=
5314   names_already_handled=
5315   names_next_round='iconv '
5316   while test -n "$names_next_round"; do
5317     names_this_round="$names_next_round"
5318     names_next_round=
5319     for name in $names_this_round; do
5320       already_handled=
5321       for n in $names_already_handled; do
5322         if test "$n" = "$name"; then
5323           already_handled=yes
5324           break
5325         fi
5326       done
5327       if test -z "$already_handled"; then
5328         names_already_handled="$names_already_handled $name"
5329                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5330         eval value=\"\$HAVE_LIB$uppername\"
5331         if test -n "$value"; then
5332           if test "$value" = yes; then
5333             eval value=\"\$LIB$uppername\"
5334             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5335             eval value=\"\$LTLIB$uppername\"
5336             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5337           else
5338                                     :
5339           fi
5340         else
5341                               found_dir=
5342           found_la=
5343           found_so=
5344           found_a=
5345           if test $use_additional = yes; then
5346             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5347               found_dir="$additional_libdir"
5348               found_so="$additional_libdir/lib$name.$shlibext"
5349               if test -f "$additional_libdir/lib$name.la"; then
5350                 found_la="$additional_libdir/lib$name.la"
5351               fi
5352             else
5353               if test -f "$additional_libdir/lib$name.$libext"; then
5354                 found_dir="$additional_libdir"
5355                 found_a="$additional_libdir/lib$name.$libext"
5356                 if test -f "$additional_libdir/lib$name.la"; then
5357                   found_la="$additional_libdir/lib$name.la"
5358                 fi
5359               fi
5360             fi
5361           fi
5362           if test "X$found_dir" = "X"; then
5363             for x in $LDFLAGS $LTLIBICONV; do
5364
5365   acl_save_prefix="$prefix"
5366   prefix="$acl_final_prefix"
5367   acl_save_exec_prefix="$exec_prefix"
5368   exec_prefix="$acl_final_exec_prefix"
5369   eval x=\"$x\"
5370   exec_prefix="$acl_save_exec_prefix"
5371   prefix="$acl_save_prefix"
5372
5373               case "$x" in
5374                 -L*)
5375                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5376                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5377                     found_dir="$dir"
5378                     found_so="$dir/lib$name.$shlibext"
5379                     if test -f "$dir/lib$name.la"; then
5380                       found_la="$dir/lib$name.la"
5381                     fi
5382                   else
5383                     if test -f "$dir/lib$name.$libext"; then
5384                       found_dir="$dir"
5385                       found_a="$dir/lib$name.$libext"
5386                       if test -f "$dir/lib$name.la"; then
5387                         found_la="$dir/lib$name.la"
5388                       fi
5389                     fi
5390                   fi
5391                   ;;
5392               esac
5393               if test "X$found_dir" != "X"; then
5394                 break
5395               fi
5396             done
5397           fi
5398           if test "X$found_dir" != "X"; then
5399                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5400             if test "X$found_so" != "X"; then
5401                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5402                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5403               else
5404                                                                                 haveit=
5405                 for x in $ltrpathdirs; do
5406                   if test "X$x" = "X$found_dir"; then
5407                     haveit=yes
5408                     break
5409                   fi
5410                 done
5411                 if test -z "$haveit"; then
5412                   ltrpathdirs="$ltrpathdirs $found_dir"
5413                 fi
5414                                 if test "$hardcode_direct" = yes; then
5415                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5416                 else
5417                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5418                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5419                                                             haveit=
5420                     for x in $rpathdirs; do
5421                       if test "X$x" = "X$found_dir"; then
5422                         haveit=yes
5423                         break
5424                       fi
5425                     done
5426                     if test -z "$haveit"; then
5427                       rpathdirs="$rpathdirs $found_dir"
5428                     fi
5429                   else
5430                                                                                 haveit=
5431                     for x in $LDFLAGS $LIBICONV; do
5432
5433   acl_save_prefix="$prefix"
5434   prefix="$acl_final_prefix"
5435   acl_save_exec_prefix="$exec_prefix"
5436   exec_prefix="$acl_final_exec_prefix"
5437   eval x=\"$x\"
5438   exec_prefix="$acl_save_exec_prefix"
5439   prefix="$acl_save_prefix"
5440
5441                       if test "X$x" = "X-L$found_dir"; then
5442                         haveit=yes
5443                         break
5444                       fi
5445                     done
5446                     if test -z "$haveit"; then
5447                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5448                     fi
5449                     if test "$hardcode_minus_L" != no; then
5450                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5451                     else
5452                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5453                     fi
5454                   fi
5455                 fi
5456               fi
5457             else
5458               if test "X$found_a" != "X"; then
5459                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5460               else
5461                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5462               fi
5463             fi
5464                         additional_includedir=
5465             case "$found_dir" in
5466               */lib | */lib/)
5467                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5468                 additional_includedir="$basedir/include"
5469                 ;;
5470             esac
5471             if test "X$additional_includedir" != "X"; then
5472                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5473                 haveit=
5474                 if test "X$additional_includedir" = "X/usr/local/include"; then
5475                   if test -n "$GCC"; then
5476                     case $host_os in
5477                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5478                     esac
5479                   fi
5480                 fi
5481                 if test -z "$haveit"; then
5482                   for x in $CPPFLAGS $INCICONV; do
5483
5484   acl_save_prefix="$prefix"
5485   prefix="$acl_final_prefix"
5486   acl_save_exec_prefix="$exec_prefix"
5487   exec_prefix="$acl_final_exec_prefix"
5488   eval x=\"$x\"
5489   exec_prefix="$acl_save_exec_prefix"
5490   prefix="$acl_save_prefix"
5491
5492                     if test "X$x" = "X-I$additional_includedir"; then
5493                       haveit=yes
5494                       break
5495                     fi
5496                   done
5497                   if test -z "$haveit"; then
5498                     if test -d "$additional_includedir"; then
5499                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5500                     fi
5501                   fi
5502                 fi
5503               fi
5504             fi
5505                         if test -n "$found_la"; then
5506                                                         save_libdir="$libdir"
5507               case "$found_la" in
5508                 */* | *\\*) . "$found_la" ;;
5509                 *) . "./$found_la" ;;
5510               esac
5511               libdir="$save_libdir"
5512                             for dep in $dependency_libs; do
5513                 case "$dep" in
5514                   -L*)
5515                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5516                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5517                       haveit=
5518                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5519                         if test -n "$GCC"; then
5520                           case $host_os in
5521                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5522                           esac
5523                         fi
5524                       fi
5525                       if test -z "$haveit"; then
5526                         haveit=
5527                         for x in $LDFLAGS $LIBICONV; do
5528
5529   acl_save_prefix="$prefix"
5530   prefix="$acl_final_prefix"
5531   acl_save_exec_prefix="$exec_prefix"
5532   exec_prefix="$acl_final_exec_prefix"
5533   eval x=\"$x\"
5534   exec_prefix="$acl_save_exec_prefix"
5535   prefix="$acl_save_prefix"
5536
5537                           if test "X$x" = "X-L$additional_libdir"; then
5538                             haveit=yes
5539                             break
5540                           fi
5541                         done
5542                         if test -z "$haveit"; then
5543                           if test -d "$additional_libdir"; then
5544                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5545                           fi
5546                         fi
5547                         haveit=
5548                         for x in $LDFLAGS $LTLIBICONV; do
5549
5550   acl_save_prefix="$prefix"
5551   prefix="$acl_final_prefix"
5552   acl_save_exec_prefix="$exec_prefix"
5553   exec_prefix="$acl_final_exec_prefix"
5554   eval x=\"$x\"
5555   exec_prefix="$acl_save_exec_prefix"
5556   prefix="$acl_save_prefix"
5557
5558                           if test "X$x" = "X-L$additional_libdir"; then
5559                             haveit=yes
5560                             break
5561                           fi
5562                         done
5563                         if test -z "$haveit"; then
5564                           if test -d "$additional_libdir"; then
5565                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5566                           fi
5567                         fi
5568                       fi
5569                     fi
5570                     ;;
5571                   -R*)
5572                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5573                     if test "$enable_rpath" != no; then
5574                                                                   haveit=
5575                       for x in $rpathdirs; do
5576                         if test "X$x" = "X$dir"; then
5577                           haveit=yes
5578                           break
5579                         fi
5580                       done
5581                       if test -z "$haveit"; then
5582                         rpathdirs="$rpathdirs $dir"
5583                       fi
5584                                                                   haveit=
5585                       for x in $ltrpathdirs; do
5586                         if test "X$x" = "X$dir"; then
5587                           haveit=yes
5588                           break
5589                         fi
5590                       done
5591                       if test -z "$haveit"; then
5592                         ltrpathdirs="$ltrpathdirs $dir"
5593                       fi
5594                     fi
5595                     ;;
5596                   -l*)
5597                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5598                     ;;
5599                   *.la)
5600                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5601                     ;;
5602                   *)
5603                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5604                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5605                     ;;
5606                 esac
5607               done
5608             fi
5609           else
5610                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5611             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5612           fi
5613         fi
5614       fi
5615     done
5616   done
5617   if test "X$rpathdirs" != "X"; then
5618     if test -n "$hardcode_libdir_separator"; then
5619                         alldirs=
5620       for found_dir in $rpathdirs; do
5621         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5622       done
5623             acl_save_libdir="$libdir"
5624       libdir="$alldirs"
5625       eval flag=\"$hardcode_libdir_flag_spec\"
5626       libdir="$acl_save_libdir"
5627       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5628     else
5629             for found_dir in $rpathdirs; do
5630         acl_save_libdir="$libdir"
5631         libdir="$found_dir"
5632         eval flag=\"$hardcode_libdir_flag_spec\"
5633         libdir="$acl_save_libdir"
5634         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5635       done
5636     fi
5637   fi
5638   if test "X$ltrpathdirs" != "X"; then
5639             for found_dir in $ltrpathdirs; do
5640       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5641     done
5642   fi
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5662 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5663 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5664   echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666   gt_save_CPPFLAGS="$CPPFLAGS"
5667      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5668      gt_save_LIBS="$LIBS"
5669      LIBS="$LIBS -framework CoreFoundation"
5670      cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676 #include <CFPreferences.h>
5677 int
5678 main ()
5679 {
5680 CFPreferencesCopyAppValue(NULL, NULL)
5681   ;
5682   return 0;
5683 }
5684 _ACEOF
5685 rm -f conftest.$ac_objext conftest$ac_exeext
5686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5687   (eval $ac_link) 2>conftest.er1
5688   ac_status=$?
5689   grep -v '^ *+' conftest.er1 >conftest.err
5690   rm -f conftest.er1
5691   cat conftest.err >&5
5692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693   (exit $ac_status); } &&
5694          { ac_try='test -z "$ac_c_werror_flag"
5695                          || test ! -s conftest.err'
5696   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697   (eval $ac_try) 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; } &&
5701          { ac_try='test -s conftest$ac_exeext'
5702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703   (eval $ac_try) 2>&5
5704   ac_status=$?
5705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706   (exit $ac_status); }; }; then
5707   gt_cv_func_CFPreferencesCopyAppValue=yes
5708 else
5709   echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 gt_cv_func_CFPreferencesCopyAppValue=no
5713 fi
5714 rm -f conftest.err conftest.$ac_objext \
5715       conftest$ac_exeext conftest.$ac_ext
5716      CPPFLAGS="$gt_save_CPPFLAGS"
5717      LIBS="$gt_save_LIBS"
5718 fi
5719 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5720 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5721   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5722
5723 cat >>confdefs.h <<\_ACEOF
5724 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5725 _ACEOF
5726
5727   fi
5728     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5729 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5730 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   gt_save_CPPFLAGS="$CPPFLAGS"
5734      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5735      gt_save_LIBS="$LIBS"
5736      LIBS="$LIBS -framework CoreFoundation"
5737      cat >conftest.$ac_ext <<_ACEOF
5738 /* confdefs.h.  */
5739 _ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h.  */
5743 #include <CFLocale.h>
5744 int
5745 main ()
5746 {
5747 CFLocaleCopyCurrent();
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext conftest$ac_exeext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5754   (eval $ac_link) 2>conftest.er1
5755   ac_status=$?
5756   grep -v '^ *+' conftest.er1 >conftest.err
5757   rm -f conftest.er1
5758   cat conftest.err >&5
5759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760   (exit $ac_status); } &&
5761          { ac_try='test -z "$ac_c_werror_flag"
5762                          || test ! -s conftest.err'
5763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5764   (eval $ac_try) 2>&5
5765   ac_status=$?
5766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767   (exit $ac_status); }; } &&
5768          { ac_try='test -s conftest$ac_exeext'
5769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5770   (eval $ac_try) 2>&5
5771   ac_status=$?
5772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773   (exit $ac_status); }; }; then
5774   gt_cv_func_CFLocaleCopyCurrent=yes
5775 else
5776   echo "$as_me: failed program was:" >&5
5777 sed 's/^/| /' conftest.$ac_ext >&5
5778
5779 gt_cv_func_CFLocaleCopyCurrent=no
5780 fi
5781 rm -f conftest.err conftest.$ac_objext \
5782       conftest$ac_exeext conftest.$ac_ext
5783      CPPFLAGS="$gt_save_CPPFLAGS"
5784      LIBS="$gt_save_LIBS"
5785 fi
5786 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5787 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5788   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5789
5790 cat >>confdefs.h <<\_ACEOF
5791 #define HAVE_CFLOCALECOPYCURRENT 1
5792 _ACEOF
5793
5794   fi
5795   INTL_MACOSX_LIBS=
5796   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5797     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5798   fi
5799
5800
5801
5802
5803   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5804 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5805     # Check whether --enable-nls or --disable-nls was given.
5806 if test "${enable_nls+set}" = set; then
5807   enableval="$enable_nls"
5808   USE_NLS=$enableval
5809 else
5810   USE_NLS=yes
5811 fi;
5812   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5813 echo "${ECHO_T}$USE_NLS" >&6
5814
5815
5816
5817
5818   LIBINTL=
5819   LTLIBINTL=
5820   POSUB=
5821
5822     if test "$USE_NLS" = "yes"; then
5823     gt_use_preinstalled_gnugettext=no
5824
5825
5826
5827
5828
5829
5830         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5831 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5832 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h.  */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h.  */
5841 #include <libintl.h>
5842 extern int _nl_msg_cat_cntr;
5843 extern int *_nl_domain_bindings;
5844 int
5845 main ()
5846 {
5847 bindtextdomain ("", "");
5848 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5849   ;
5850   return 0;
5851 }
5852 _ACEOF
5853 rm -f conftest.$ac_objext conftest$ac_exeext
5854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5855   (eval $ac_link) 2>conftest.er1
5856   ac_status=$?
5857   grep -v '^ *+' conftest.er1 >conftest.err
5858   rm -f conftest.er1
5859   cat conftest.err >&5
5860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861   (exit $ac_status); } &&
5862          { ac_try='test -z "$ac_c_werror_flag"
5863                          || test ! -s conftest.err'
5864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5865   (eval $ac_try) 2>&5
5866   ac_status=$?
5867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868   (exit $ac_status); }; } &&
5869          { ac_try='test -s conftest$ac_exeext'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; }; then
5875   gt_cv_func_gnugettext1_libc=yes
5876 else
5877   echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5879
5880 gt_cv_func_gnugettext1_libc=no
5881 fi
5882 rm -f conftest.err conftest.$ac_objext \
5883       conftest$ac_exeext conftest.$ac_ext
5884 fi
5885 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5886 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5887
5888         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5889
5890
5891
5892
5893
5894           am_save_CPPFLAGS="$CPPFLAGS"
5895
5896   for element in $INCICONV; do
5897     haveit=
5898     for x in $CPPFLAGS; do
5899
5900   acl_save_prefix="$prefix"
5901   prefix="$acl_final_prefix"
5902   acl_save_exec_prefix="$exec_prefix"
5903   exec_prefix="$acl_final_exec_prefix"
5904   eval x=\"$x\"
5905   exec_prefix="$acl_save_exec_prefix"
5906   prefix="$acl_save_prefix"
5907
5908       if test "X$x" = "X$element"; then
5909         haveit=yes
5910         break
5911       fi
5912     done
5913     if test -z "$haveit"; then
5914       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5915     fi
5916   done
5917
5918
5919   echo "$as_me:$LINENO: checking for iconv" >&5
5920 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5921 if test "${am_cv_func_iconv+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924
5925     am_cv_func_iconv="no, consider installing GNU libiconv"
5926     am_cv_lib_iconv=no
5927     cat >conftest.$ac_ext <<_ACEOF
5928 /* confdefs.h.  */
5929 _ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h.  */
5933 #include <stdlib.h>
5934 #include <iconv.h>
5935 int
5936 main ()
5937 {
5938 iconv_t cd = iconv_open("","");
5939        iconv(cd,NULL,NULL,NULL,NULL);
5940        iconv_close(cd);
5941   ;
5942   return 0;
5943 }
5944 _ACEOF
5945 rm -f conftest.$ac_objext conftest$ac_exeext
5946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5947   (eval $ac_link) 2>conftest.er1
5948   ac_status=$?
5949   grep -v '^ *+' conftest.er1 >conftest.err
5950   rm -f conftest.er1
5951   cat conftest.err >&5
5952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953   (exit $ac_status); } &&
5954          { ac_try='test -z "$ac_c_werror_flag"
5955                          || test ! -s conftest.err'
5956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5957   (eval $ac_try) 2>&5
5958   ac_status=$?
5959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960   (exit $ac_status); }; } &&
5961          { ac_try='test -s conftest$ac_exeext'
5962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5963   (eval $ac_try) 2>&5
5964   ac_status=$?
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); }; }; then
5967   am_cv_func_iconv=yes
5968 else
5969   echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5971
5972 fi
5973 rm -f conftest.err conftest.$ac_objext \
5974       conftest$ac_exeext conftest.$ac_ext
5975     if test "$am_cv_func_iconv" != yes; then
5976       am_save_LIBS="$LIBS"
5977       LIBS="$LIBS $LIBICONV"
5978       cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h.  */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h.  */
5984 #include <stdlib.h>
5985 #include <iconv.h>
5986 int
5987 main ()
5988 {
5989 iconv_t cd = iconv_open("","");
5990          iconv(cd,NULL,NULL,NULL,NULL);
5991          iconv_close(cd);
5992   ;
5993   return 0;
5994 }
5995 _ACEOF
5996 rm -f conftest.$ac_objext conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998   (eval $ac_link) 2>conftest.er1
5999   ac_status=$?
6000   grep -v '^ *+' conftest.er1 >conftest.err
6001   rm -f conftest.er1
6002   cat conftest.err >&5
6003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004   (exit $ac_status); } &&
6005          { ac_try='test -z "$ac_c_werror_flag"
6006                          || test ! -s conftest.err'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; } &&
6012          { ac_try='test -s conftest$ac_exeext'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; }; then
6018   am_cv_lib_iconv=yes
6019         am_cv_func_iconv=yes
6020 else
6021   echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.$ac_ext >&5
6023
6024 fi
6025 rm -f conftest.err conftest.$ac_objext \
6026       conftest$ac_exeext conftest.$ac_ext
6027       LIBS="$am_save_LIBS"
6028     fi
6029
6030 fi
6031 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6032 echo "${ECHO_T}$am_cv_func_iconv" >&6
6033   if test "$am_cv_func_iconv" = yes; then
6034
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_ICONV 1
6037 _ACEOF
6038
6039   fi
6040   if test "$am_cv_lib_iconv" = yes; then
6041     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6042 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6043     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6044 echo "${ECHO_T}$LIBICONV" >&6
6045   else
6046             CPPFLAGS="$am_save_CPPFLAGS"
6047     LIBICONV=
6048     LTLIBICONV=
6049   fi
6050
6051
6052
6053
6054
6055
6056     use_additional=yes
6057
6058   acl_save_prefix="$prefix"
6059   prefix="$acl_final_prefix"
6060   acl_save_exec_prefix="$exec_prefix"
6061   exec_prefix="$acl_final_exec_prefix"
6062
6063     eval additional_includedir=\"$includedir\"
6064     eval additional_libdir=\"$libdir\"
6065
6066   exec_prefix="$acl_save_exec_prefix"
6067   prefix="$acl_save_prefix"
6068
6069
6070 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6071 if test "${with_libintl_prefix+set}" = set; then
6072   withval="$with_libintl_prefix"
6073
6074     if test "X$withval" = "Xno"; then
6075       use_additional=no
6076     else
6077       if test "X$withval" = "X"; then
6078
6079   acl_save_prefix="$prefix"
6080   prefix="$acl_final_prefix"
6081   acl_save_exec_prefix="$exec_prefix"
6082   exec_prefix="$acl_final_exec_prefix"
6083
6084           eval additional_includedir=\"$includedir\"
6085           eval additional_libdir=\"$libdir\"
6086
6087   exec_prefix="$acl_save_exec_prefix"
6088   prefix="$acl_save_prefix"
6089
6090       else
6091         additional_includedir="$withval/include"
6092         additional_libdir="$withval/lib"
6093       fi
6094     fi
6095
6096 fi;
6097       LIBINTL=
6098   LTLIBINTL=
6099   INCINTL=
6100   rpathdirs=
6101   ltrpathdirs=
6102   names_already_handled=
6103   names_next_round='intl '
6104   while test -n "$names_next_round"; do
6105     names_this_round="$names_next_round"
6106     names_next_round=
6107     for name in $names_this_round; do
6108       already_handled=
6109       for n in $names_already_handled; do
6110         if test "$n" = "$name"; then
6111           already_handled=yes
6112           break
6113         fi
6114       done
6115       if test -z "$already_handled"; then
6116         names_already_handled="$names_already_handled $name"
6117                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6118         eval value=\"\$HAVE_LIB$uppername\"
6119         if test -n "$value"; then
6120           if test "$value" = yes; then
6121             eval value=\"\$LIB$uppername\"
6122             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6123             eval value=\"\$LTLIB$uppername\"
6124             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6125           else
6126                                     :
6127           fi
6128         else
6129                               found_dir=
6130           found_la=
6131           found_so=
6132           found_a=
6133           if test $use_additional = yes; then
6134             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6135               found_dir="$additional_libdir"
6136               found_so="$additional_libdir/lib$name.$shlibext"
6137               if test -f "$additional_libdir/lib$name.la"; then
6138                 found_la="$additional_libdir/lib$name.la"
6139               fi
6140             else
6141               if test -f "$additional_libdir/lib$name.$libext"; then
6142                 found_dir="$additional_libdir"
6143                 found_a="$additional_libdir/lib$name.$libext"
6144                 if test -f "$additional_libdir/lib$name.la"; then
6145                   found_la="$additional_libdir/lib$name.la"
6146                 fi
6147               fi
6148             fi
6149           fi
6150           if test "X$found_dir" = "X"; then
6151             for x in $LDFLAGS $LTLIBINTL; do
6152
6153   acl_save_prefix="$prefix"
6154   prefix="$acl_final_prefix"
6155   acl_save_exec_prefix="$exec_prefix"
6156   exec_prefix="$acl_final_exec_prefix"
6157   eval x=\"$x\"
6158   exec_prefix="$acl_save_exec_prefix"
6159   prefix="$acl_save_prefix"
6160
6161               case "$x" in
6162                 -L*)
6163                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6164                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6165                     found_dir="$dir"
6166                     found_so="$dir/lib$name.$shlibext"
6167                     if test -f "$dir/lib$name.la"; then
6168                       found_la="$dir/lib$name.la"
6169                     fi
6170                   else
6171                     if test -f "$dir/lib$name.$libext"; then
6172                       found_dir="$dir"
6173                       found_a="$dir/lib$name.$libext"
6174                       if test -f "$dir/lib$name.la"; then
6175                         found_la="$dir/lib$name.la"
6176                       fi
6177                     fi
6178                   fi
6179                   ;;
6180               esac
6181               if test "X$found_dir" != "X"; then
6182                 break
6183               fi
6184             done
6185           fi
6186           if test "X$found_dir" != "X"; then
6187                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6188             if test "X$found_so" != "X"; then
6189                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6190                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6191               else
6192                                                                                 haveit=
6193                 for x in $ltrpathdirs; do
6194                   if test "X$x" = "X$found_dir"; then
6195                     haveit=yes
6196                     break
6197                   fi
6198                 done
6199                 if test -z "$haveit"; then
6200                   ltrpathdirs="$ltrpathdirs $found_dir"
6201                 fi
6202                                 if test "$hardcode_direct" = yes; then
6203                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6204                 else
6205                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6206                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6207                                                             haveit=
6208                     for x in $rpathdirs; do
6209                       if test "X$x" = "X$found_dir"; then
6210                         haveit=yes
6211                         break
6212                       fi
6213                     done
6214                     if test -z "$haveit"; then
6215                       rpathdirs="$rpathdirs $found_dir"
6216                     fi
6217                   else
6218                                                                                 haveit=
6219                     for x in $LDFLAGS $LIBINTL; do
6220
6221   acl_save_prefix="$prefix"
6222   prefix="$acl_final_prefix"
6223   acl_save_exec_prefix="$exec_prefix"
6224   exec_prefix="$acl_final_exec_prefix"
6225   eval x=\"$x\"
6226   exec_prefix="$acl_save_exec_prefix"
6227   prefix="$acl_save_prefix"
6228
6229                       if test "X$x" = "X-L$found_dir"; then
6230                         haveit=yes
6231                         break
6232                       fi
6233                     done
6234                     if test -z "$haveit"; then
6235                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6236                     fi
6237                     if test "$hardcode_minus_L" != no; then
6238                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6239                     else
6240                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6241                     fi
6242                   fi
6243                 fi
6244               fi
6245             else
6246               if test "X$found_a" != "X"; then
6247                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6248               else
6249                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6250               fi
6251             fi
6252                         additional_includedir=
6253             case "$found_dir" in
6254               */lib | */lib/)
6255                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6256                 additional_includedir="$basedir/include"
6257                 ;;
6258             esac
6259             if test "X$additional_includedir" != "X"; then
6260                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6261                 haveit=
6262                 if test "X$additional_includedir" = "X/usr/local/include"; then
6263                   if test -n "$GCC"; then
6264                     case $host_os in
6265                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6266                     esac
6267                   fi
6268                 fi
6269                 if test -z "$haveit"; then
6270                   for x in $CPPFLAGS $INCINTL; do
6271
6272   acl_save_prefix="$prefix"
6273   prefix="$acl_final_prefix"
6274   acl_save_exec_prefix="$exec_prefix"
6275   exec_prefix="$acl_final_exec_prefix"
6276   eval x=\"$x\"
6277   exec_prefix="$acl_save_exec_prefix"
6278   prefix="$acl_save_prefix"
6279
6280                     if test "X$x" = "X-I$additional_includedir"; then
6281                       haveit=yes
6282                       break
6283                     fi
6284                   done
6285                   if test -z "$haveit"; then
6286                     if test -d "$additional_includedir"; then
6287                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6288                     fi
6289                   fi
6290                 fi
6291               fi
6292             fi
6293                         if test -n "$found_la"; then
6294                                                         save_libdir="$libdir"
6295               case "$found_la" in
6296                 */* | *\\*) . "$found_la" ;;
6297                 *) . "./$found_la" ;;
6298               esac
6299               libdir="$save_libdir"
6300                             for dep in $dependency_libs; do
6301                 case "$dep" in
6302                   -L*)
6303                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6304                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6305                       haveit=
6306                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6307                         if test -n "$GCC"; then
6308                           case $host_os in
6309                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6310                           esac
6311                         fi
6312                       fi
6313                       if test -z "$haveit"; then
6314                         haveit=
6315                         for x in $LDFLAGS $LIBINTL; do
6316
6317   acl_save_prefix="$prefix"
6318   prefix="$acl_final_prefix"
6319   acl_save_exec_prefix="$exec_prefix"
6320   exec_prefix="$acl_final_exec_prefix"
6321   eval x=\"$x\"
6322   exec_prefix="$acl_save_exec_prefix"
6323   prefix="$acl_save_prefix"
6324
6325                           if test "X$x" = "X-L$additional_libdir"; then
6326                             haveit=yes
6327                             break
6328                           fi
6329                         done
6330                         if test -z "$haveit"; then
6331                           if test -d "$additional_libdir"; then
6332                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6333                           fi
6334                         fi
6335                         haveit=
6336                         for x in $LDFLAGS $LTLIBINTL; do
6337
6338   acl_save_prefix="$prefix"
6339   prefix="$acl_final_prefix"
6340   acl_save_exec_prefix="$exec_prefix"
6341   exec_prefix="$acl_final_exec_prefix"
6342   eval x=\"$x\"
6343   exec_prefix="$acl_save_exec_prefix"
6344   prefix="$acl_save_prefix"
6345
6346                           if test "X$x" = "X-L$additional_libdir"; then
6347                             haveit=yes
6348                             break
6349                           fi
6350                         done
6351                         if test -z "$haveit"; then
6352                           if test -d "$additional_libdir"; then
6353                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6354                           fi
6355                         fi
6356                       fi
6357                     fi
6358                     ;;
6359                   -R*)
6360                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6361                     if test "$enable_rpath" != no; then
6362                                                                   haveit=
6363                       for x in $rpathdirs; do
6364                         if test "X$x" = "X$dir"; then
6365                           haveit=yes
6366                           break
6367                         fi
6368                       done
6369                       if test -z "$haveit"; then
6370                         rpathdirs="$rpathdirs $dir"
6371                       fi
6372                                                                   haveit=
6373                       for x in $ltrpathdirs; do
6374                         if test "X$x" = "X$dir"; then
6375                           haveit=yes
6376                           break
6377                         fi
6378                       done
6379                       if test -z "$haveit"; then
6380                         ltrpathdirs="$ltrpathdirs $dir"
6381                       fi
6382                     fi
6383                     ;;
6384                   -l*)
6385                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6386                     ;;
6387                   *.la)
6388                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6389                     ;;
6390                   *)
6391                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6392                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6393                     ;;
6394                 esac
6395               done
6396             fi
6397           else
6398                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6399             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6400           fi
6401         fi
6402       fi
6403     done
6404   done
6405   if test "X$rpathdirs" != "X"; then
6406     if test -n "$hardcode_libdir_separator"; then
6407                         alldirs=
6408       for found_dir in $rpathdirs; do
6409         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6410       done
6411             acl_save_libdir="$libdir"
6412       libdir="$alldirs"
6413       eval flag=\"$hardcode_libdir_flag_spec\"
6414       libdir="$acl_save_libdir"
6415       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6416     else
6417             for found_dir in $rpathdirs; do
6418         acl_save_libdir="$libdir"
6419         libdir="$found_dir"
6420         eval flag=\"$hardcode_libdir_flag_spec\"
6421         libdir="$acl_save_libdir"
6422         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6423       done
6424     fi
6425   fi
6426   if test "X$ltrpathdirs" != "X"; then
6427             for found_dir in $ltrpathdirs; do
6428       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6429     done
6430   fi
6431
6432           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6433 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6434 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6435   echo $ECHO_N "(cached) $ECHO_C" >&6
6436 else
6437   gt_save_CPPFLAGS="$CPPFLAGS"
6438             CPPFLAGS="$CPPFLAGS $INCINTL"
6439             gt_save_LIBS="$LIBS"
6440             LIBS="$LIBS $LIBINTL"
6441                         cat >conftest.$ac_ext <<_ACEOF
6442 /* confdefs.h.  */
6443 _ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h.  */
6447 #include <libintl.h>
6448 extern int _nl_msg_cat_cntr;
6449 extern
6450 #ifdef __cplusplus
6451 "C"
6452 #endif
6453 const char *_nl_expand_alias (const char *);
6454 int
6455 main ()
6456 {
6457 bindtextdomain ("", "");
6458 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6459   ;
6460   return 0;
6461 }
6462 _ACEOF
6463 rm -f conftest.$ac_objext conftest$ac_exeext
6464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6465   (eval $ac_link) 2>conftest.er1
6466   ac_status=$?
6467   grep -v '^ *+' conftest.er1 >conftest.err
6468   rm -f conftest.er1
6469   cat conftest.err >&5
6470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } &&
6472          { ac_try='test -z "$ac_c_werror_flag"
6473                          || test ! -s conftest.err'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; } &&
6479          { ac_try='test -s conftest$ac_exeext'
6480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6481   (eval $ac_try) 2>&5
6482   ac_status=$?
6483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484   (exit $ac_status); }; }; then
6485   gt_cv_func_gnugettext1_libintl=yes
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 gt_cv_func_gnugettext1_libintl=no
6491 fi
6492 rm -f conftest.err conftest.$ac_objext \
6493       conftest$ac_exeext conftest.$ac_ext
6494                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6495               LIBS="$LIBS $LIBICONV"
6496               cat >conftest.$ac_ext <<_ACEOF
6497 /* confdefs.h.  */
6498 _ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h.  */
6502 #include <libintl.h>
6503 extern int _nl_msg_cat_cntr;
6504 extern
6505 #ifdef __cplusplus
6506 "C"
6507 #endif
6508 const char *_nl_expand_alias (const char *);
6509 int
6510 main ()
6511 {
6512 bindtextdomain ("", "");
6513 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6514   ;
6515   return 0;
6516 }
6517 _ACEOF
6518 rm -f conftest.$ac_objext conftest$ac_exeext
6519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6520   (eval $ac_link) 2>conftest.er1
6521   ac_status=$?
6522   grep -v '^ *+' conftest.er1 >conftest.err
6523   rm -f conftest.er1
6524   cat conftest.err >&5
6525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526   (exit $ac_status); } &&
6527          { ac_try='test -z "$ac_c_werror_flag"
6528                          || test ! -s conftest.err'
6529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530   (eval $ac_try) 2>&5
6531   ac_status=$?
6532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533   (exit $ac_status); }; } &&
6534          { ac_try='test -s conftest$ac_exeext'
6535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536   (eval $ac_try) 2>&5
6537   ac_status=$?
6538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539   (exit $ac_status); }; }; then
6540   LIBINTL="$LIBINTL $LIBICONV"
6541                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6542                 gt_cv_func_gnugettext1_libintl=yes
6543
6544 else
6545   echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6547
6548 fi
6549 rm -f conftest.err conftest.$ac_objext \
6550       conftest$ac_exeext conftest.$ac_ext
6551             fi
6552             CPPFLAGS="$gt_save_CPPFLAGS"
6553             LIBS="$gt_save_LIBS"
6554 fi
6555 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6556 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6557         fi
6558
6559                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6560            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6561                 && test "$PACKAGE" != gettext-runtime \
6562                 && test "$PACKAGE" != gettext-tools; }; then
6563           gt_use_preinstalled_gnugettext=yes
6564         else
6565                     LIBINTL=
6566           LTLIBINTL=
6567           INCINTL=
6568         fi
6569
6570
6571
6572     if test -n "$INTL_MACOSX_LIBS"; then
6573       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6574          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6575                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6576         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6577       fi
6578     fi
6579
6580     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6581        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6582
6583 cat >>confdefs.h <<\_ACEOF
6584 #define ENABLE_NLS 1
6585 _ACEOF
6586
6587     else
6588       USE_NLS=no
6589     fi
6590   fi
6591
6592   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6593 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6594   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6595 echo "${ECHO_T}$USE_NLS" >&6
6596   if test "$USE_NLS" = "yes"; then
6597     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6598 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6599     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6600       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6601         gt_source="external libintl"
6602       else
6603         gt_source="libc"
6604       fi
6605     else
6606       gt_source="included intl directory"
6607     fi
6608     echo "$as_me:$LINENO: result: $gt_source" >&5
6609 echo "${ECHO_T}$gt_source" >&6
6610   fi
6611
6612   if test "$USE_NLS" = "yes"; then
6613
6614     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6615       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6616         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6617 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6618         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6619 echo "${ECHO_T}$LIBINTL" >&6
6620
6621   for element in $INCINTL; do
6622     haveit=
6623     for x in $CPPFLAGS; do
6624
6625   acl_save_prefix="$prefix"
6626   prefix="$acl_final_prefix"
6627   acl_save_exec_prefix="$exec_prefix"
6628   exec_prefix="$acl_final_exec_prefix"
6629   eval x=\"$x\"
6630   exec_prefix="$acl_save_exec_prefix"
6631   prefix="$acl_save_prefix"
6632
6633       if test "X$x" = "X$element"; then
6634         haveit=yes
6635         break
6636       fi
6637     done
6638     if test -z "$haveit"; then
6639       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6640     fi
6641   done
6642
6643       fi
6644
6645
6646 cat >>confdefs.h <<\_ACEOF
6647 #define HAVE_GETTEXT 1
6648 _ACEOF
6649
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_DCGETTEXT 1
6653 _ACEOF
6654
6655     fi
6656
6657         POSUB=po
6658   fi
6659
6660
6661
6662     INTLLIBS="$LIBINTL"
6663
6664
6665
6666
6667
6668
6669 if test x${prefix} = xNONE ; then
6670    if test `eval echo ${datadir}` = NONE/share ; then
6671       datadir=/usr/share
6672    fi
6673 fi
6674
6675 # ------------------------------------------------------------------
6676 #  If the user has not set --prefix, we set our default to nothing.
6677 #  In this case, if the user has not set --sysconfdir, we set it
6678 #  to the package default of /etc/bacula.  If either --prefix or
6679 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6680 # ------------------------------------------------------------------
6681 if test x${prefix} = xNONE ; then
6682     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6683         sysconfdir=/etc/bacula
6684     fi
6685     prefix=
6686 fi
6687 sysconfdir=`eval echo ${sysconfdir}`
6688 datadir=`eval echo ${datadir}`
6689 localedir=`eval echo ${datadir}/locale`
6690 cat >>confdefs.h <<_ACEOF
6691 #define LOCALEDIR "$localedir"
6692 _ACEOF
6693
6694
6695 # -------------------------------------------------------------------------
6696 #  If the user has not set --exec-prefix, we default to ${prefix}
6697 # -------------------------------------------------------------------------
6698 if test x${exec_prefix} = xNONE ; then
6699     exec_prefix=${prefix}
6700 fi
6701
6702 # ------------------------------------------------------------------
6703 # If the user has not set --sbindir, we set our default as /sbin
6704 # ------------------------------------------------------------------
6705 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6706     sbindir=${exec_prefix}/sbin
6707 fi
6708 sbindir=`eval echo ${sbindir}`
6709
6710 # -------------------------------------------------------------------------
6711 #  If the user has not set --mandir, we default to /usr/share/man
6712 # -------------------------------------------------------------------------
6713 if test x$mandir = x'${prefix}/man' ; then
6714    mandir=/usr/share/man
6715 fi
6716
6717
6718 # ------------------------------------------------------------------
6719 # All list of languages for which a translation exist. Each
6720 #  language is separated by a space.
6721 # ------------------------------------------------------------------
6722 ALL_LINGUAS=""
6723
6724 for ac_prog in msgfmt
6725 do
6726   # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 echo "$as_me:$LINENO: checking for $ac_word" >&5
6729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6730 if test "${ac_cv_path_MSGFMT+set}" = set; then
6731   echo $ECHO_N "(cached) $ECHO_C" >&6
6732 else
6733   case $MSGFMT in
6734   [\\/]* | ?:[\\/]*)
6735   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6736   ;;
6737   *)
6738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6739 for as_dir in $PATH
6740 do
6741   IFS=$as_save_IFS
6742   test -z "$as_dir" && as_dir=.
6743   for ac_exec_ext in '' $ac_executable_extensions; do
6744   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6745     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747     break 2
6748   fi
6749 done
6750 done
6751
6752   ;;
6753 esac
6754 fi
6755 MSGFMT=$ac_cv_path_MSGFMT
6756
6757 if test -n "$MSGFMT"; then
6758   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6759 echo "${ECHO_T}$MSGFMT" >&6
6760 else
6761   echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6763 fi
6764
6765   test -n "$MSGFMT" && break
6766 done
6767 test -n "$MSGFMT" || MSGFMT="no"
6768
6769 if test "$MSGFMT" = "no"
6770 then
6771    echo 'msgfmt program not found, disabling NLS !'
6772    USE_NLS=no
6773    USE_INCLUDED_LIBINTL=no
6774 #else
6775 #   AM_GNU_GETTEXT
6776 fi
6777
6778
6779 support_mysql=no
6780 support_sqlite=no
6781 support_sqlite3=no
6782 support_postgresql=no
6783 support_smartalloc=yes
6784 support_readline=yes
6785 support_conio=yes
6786 support_gnome=no
6787 support_wx_console=no
6788 support_tls=no
6789 gnome_version=
6790 wx_version=
6791 support_static_tools=no
6792 support_static_fd=no
6793 support_static_sd=no
6794 support_static_dir=no
6795 support_static_cons=no
6796 support_python=no
6797 build_client_only=no
6798 build_dird=yes
6799 build_stored=yes
6800 cats=
6801 db_name=Internal
6802 DB_NAME=bdb
6803
6804
6805 # -------------------------------------------
6806 # gnome (default off)
6807 # -------------------------------------------
6808 # Check whether --enable-gnome or --disable-gnome was given.
6809 if test "${enable_gnome+set}" = set; then
6810   enableval="$enable_gnome"
6811   if test x$enableval = xyes; then
6812     support_gnome=yes
6813   fi
6814 fi;
6815
6816 GNOME_DIR=
6817 if test x$support_gnome = xyes; then
6818   abc=`$PKGCONFIG --exists libgnomeui-2.0`
6819   pkg=$?
6820   if test $pkg = 0; then
6821      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6822      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6823      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6824      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6825
6826
6827
6828
6829      GNOME_DIR=src/gnome2-console
6830      gnome_version="Version 2.x"
6831   else
6832      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6833 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6834    { (exit 1); exit 1; }; }
6835   fi
6836 fi
6837
6838
6839
6840 # -------------------------------------------
6841 # wx-console (default off)
6842 # -------------------------------------------
6843 # Check whether --enable-wx-console or --disable-wx-console was given.
6844 if test "${enable_wx_console+set}" = set; then
6845   enableval="$enable_wx_console"
6846   if test x$enableval = xyes; then
6847     support_wx_console=yes
6848   fi
6849 fi;
6850
6851 WX_DIR=
6852 if test x$support_wx_console = xyes; then
6853   abc=`$WXCONFIG $WXFLAGS --cppflags`
6854   pkg=$?
6855   if test $pkg = 0; then
6856      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6857      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6858      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6859
6860
6861
6862      WX_DIR=src/wx-console
6863   else
6864      echo " "
6865      echo "wx-config program not found. wx-console disabled."
6866      echo " "
6867      support_wx_console=no
6868   fi
6869 fi
6870
6871
6872
6873 # -------------------------------------------
6874 # tray-monitor (default off)
6875 # -------------------------------------------
6876 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6877 if test "${enable_tray_monitor+set}" = set; then
6878   enableval="$enable_tray_monitor"
6879   if test x$enableval = xyes; then
6880     support_tray_monitor=yes
6881   fi
6882 fi;
6883
6884 TRAY_MONITOR_DIR=
6885 if test x$support_tray_monitor = xyes; then
6886   abc=`$PKGCONFIG --exists gtk+-2.0`
6887   pkg=$?
6888   if test $pkg = 0; then
6889      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6890      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6891
6892
6893      TRAY_MONITOR_DIR=src/tray-monitor
6894      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6895      pkg=$?
6896      if test $pkg = 0; then
6897         cat >>confdefs.h <<\_ACEOF
6898 #define HAVE_GTK_2_4 1
6899 _ACEOF
6900
6901      fi
6902   fi
6903 fi
6904
6905
6906 # -------------------------------------------
6907 # smartalloc (default off)
6908 # -------------------------------------------
6909 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6910 if test "${enable_smartalloc+set}" = set; then
6911   enableval="$enable_smartalloc"
6912   if test x$enableval = xno; then
6913     support_smartalloc=no
6914   fi
6915 fi;
6916
6917 if test x$support_smartalloc = xyes; then
6918    cat >>confdefs.h <<\_ACEOF
6919 #define SMARTALLOC 1
6920 _ACEOF
6921
6922 fi
6923
6924 # -------------------------------------------
6925 # static-tools (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-tools or --disable-static-tools was given.
6928 if test "${enable_static_tools+set}" = set; then
6929   enableval="$enable_static_tools"
6930   if test x$enableval = xyes; then
6931      support_static_tools=yes
6932    fi
6933 fi;
6934
6935 TTOOL_LDFLAGS=
6936 if test x$support_static_tools = xyes; then
6937    TTOOL_LDFLAGS="-static"
6938 fi
6939
6940
6941 # -------------------------------------------
6942 # static-fd    (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-fd or --disable-static-fd was given.
6945 if test "${enable_static_fd+set}" = set; then
6946   enableval="$enable_static_fd"
6947   if test x$enableval = xyes; then
6948      support_static_fd=yes
6949    fi
6950 fi;
6951
6952 STATIC_FD=
6953 if test x$support_static_fd = xyes; then
6954    STATIC_FD="static-bacula-fd"
6955 fi
6956
6957
6958 # -------------------------------------------
6959 # static-sd    (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-sd or --disable-static-sd was given.
6962 if test "${enable_static_sd+set}" = set; then
6963   enableval="$enable_static_sd"
6964   if test x$enableval = xyes; then
6965      support_static_sd=yes
6966    fi
6967 fi;
6968
6969 STATIC_SD=
6970 if test x$support_static_sd = xyes; then
6971    STATIC_SD="static-bacula-sd"
6972 fi
6973
6974
6975 # -------------------------------------------
6976 # static-dir   (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-dir or --disable-static-dir was given.
6979 if test "${enable_static_dir+set}" = set; then
6980   enableval="$enable_static_dir"
6981   if test x$enableval = xyes; then
6982      support_static_dir=yes
6983    fi
6984 fi;
6985
6986 STATIC_DIR=
6987 if test x$support_static_dir = xyes; then
6988    STATIC_DIR="static-bacula-dir"
6989 fi
6990
6991
6992 # -------------------------------------------
6993 # static-cons  (default off)
6994 # -------------------------------------------
6995 # Check whether --enable-static-cons or --disable-static-cons was given.
6996 if test "${enable_static_cons+set}" = set; then
6997   enableval="$enable_static_cons"
6998   if test x$enableval = xyes; then
6999      support_static_cons=yes
7000    fi
7001 fi;
7002
7003 STATIC_CONS=
7004 STATIC_GNOME_CONS=
7005 STATIC_WX_CONS=
7006 if test x$support_static_cons = xyes; then
7007    STATIC_CONS="static-bconsole"
7008    STATIC_GNOME_CONS="static-gnome-console"
7009    STATIC_WX_CONS="static-wx-console"
7010 fi
7011
7012
7013
7014
7015 # -------------------------------------------
7016 # client_only  (default off)
7017 # -------------------------------------------
7018 # Check whether --enable-client-only or --disable-client-only was given.
7019 if test "${enable_client_only+set}" = set; then
7020   enableval="$enable_client_only"
7021   if test x$enableval = xyes; then
7022       build_client_only=yes
7023       db_name=None
7024       DB_NAME=none
7025    fi
7026 fi;
7027 if test x$build_client_only = xno; then
7028    ALL_DIRS="subdirs"
7029 else
7030    ALL_DIRS=""
7031 fi
7032
7033
7034 # -------------------------------------------
7035 # director  (default on)
7036 # -------------------------------------------
7037 # Check whether --enable-build-dird or --disable-build-dird was given.
7038 if test "${enable_build_dird+set}" = set; then
7039   enableval="$enable_build_dird"
7040   if test x$enableval = xno; then
7041       build_dird=no
7042    fi
7043 fi;
7044 if test x$build_dird = xyes; then
7045    DIRD_DIR="src/dird"
7046    DIR_TOOLS="DIRTOOLS"
7047 else
7048    DIRD_DIR=""
7049    DIR_TOOLS="NODIRTOOLS"
7050 fi
7051
7052
7053
7054 # -------------------------------------------
7055 # stored  (default on)
7056 # -------------------------------------------
7057 # Check whether --enable-build-stored or --disable-build-stored was given.
7058 if test "${enable_build_stored+set}" = set; then
7059   enableval="$enable_build_stored"
7060   if test x$enableval = xno; then
7061       build_stored=no
7062    fi
7063 fi;
7064 if test x$build_stored = xyes; then
7065    STORED_DIR="src/stored"
7066 else
7067    STORED_DIR=""
7068 fi
7069
7070
7071 # ---------------------------------------------------
7072 # Check for conio (Bacula readline substitute)(
7073 # ---------------------------------------------------
7074 # this allows you to turn it completely off
7075 # Check whether --enable-conio or --disable-conio was given.
7076 if test "${enable_conio+set}" = set; then
7077   enableval="$enable_conio"
7078   if test x$enableval = xno; then
7079     support_conio=no
7080   fi
7081 fi;
7082
7083 got_conio="no"
7084 if test x$support_conio = xyes; then
7085    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7086 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7087 if test "${ac_cv_header_stdc+set}" = set; then
7088   echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <stdlib.h>
7097 #include <stdarg.h>
7098 #include <string.h>
7099 #include <float.h>
7100
7101 int
7102 main ()
7103 {
7104
7105   ;
7106   return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111   (eval $ac_compile) 2>conftest.er1
7112   ac_status=$?
7113   grep -v '^ *+' conftest.er1 >conftest.err
7114   rm -f conftest.er1
7115   cat conftest.err >&5
7116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117   (exit $ac_status); } &&
7118          { ac_try='test -z "$ac_c_werror_flag"
7119                          || test ! -s conftest.err'
7120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121   (eval $ac_try) 2>&5
7122   ac_status=$?
7123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124   (exit $ac_status); }; } &&
7125          { ac_try='test -s conftest.$ac_objext'
7126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127   (eval $ac_try) 2>&5
7128   ac_status=$?
7129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130   (exit $ac_status); }; }; then
7131   ac_cv_header_stdc=yes
7132 else
7133   echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7135
7136 ac_cv_header_stdc=no
7137 fi
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139
7140 if test $ac_cv_header_stdc = yes; then
7141   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7142   cat >conftest.$ac_ext <<_ACEOF
7143 /* confdefs.h.  */
7144 _ACEOF
7145 cat confdefs.h >>conftest.$ac_ext
7146 cat >>conftest.$ac_ext <<_ACEOF
7147 /* end confdefs.h.  */
7148 #include <string.h>
7149
7150 _ACEOF
7151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7152   $EGREP "memchr" >/dev/null 2>&1; then
7153   :
7154 else
7155   ac_cv_header_stdc=no
7156 fi
7157 rm -f conftest*
7158
7159 fi
7160
7161 if test $ac_cv_header_stdc = yes; then
7162   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7163   cat >conftest.$ac_ext <<_ACEOF
7164 /* confdefs.h.  */
7165 _ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h.  */
7169 #include <stdlib.h>
7170
7171 _ACEOF
7172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7173   $EGREP "free" >/dev/null 2>&1; then
7174   :
7175 else
7176   ac_cv_header_stdc=no
7177 fi
7178 rm -f conftest*
7179
7180 fi
7181
7182 if test $ac_cv_header_stdc = yes; then
7183   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7184   if test "$cross_compiling" = yes; then
7185   :
7186 else
7187   cat >conftest.$ac_ext <<_ACEOF
7188 /* confdefs.h.  */
7189 _ACEOF
7190 cat confdefs.h >>conftest.$ac_ext
7191 cat >>conftest.$ac_ext <<_ACEOF
7192 /* end confdefs.h.  */
7193 #include <ctype.h>
7194 #if ((' ' & 0x0FF) == 0x020)
7195 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7196 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7197 #else
7198 # define ISLOWER(c) \
7199                    (('a' <= (c) && (c) <= 'i') \
7200                      || ('j' <= (c) && (c) <= 'r') \
7201                      || ('s' <= (c) && (c) <= 'z'))
7202 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7203 #endif
7204
7205 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7206 int
7207 main ()
7208 {
7209   int i;
7210   for (i = 0; i < 256; i++)
7211     if (XOR (islower (i), ISLOWER (i))
7212         || toupper (i) != TOUPPER (i))
7213       exit(2);
7214   exit (0);
7215 }
7216 _ACEOF
7217 rm -f conftest$ac_exeext
7218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7219   (eval $ac_link) 2>&5
7220   ac_status=$?
7221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7224   (eval $ac_try) 2>&5
7225   ac_status=$?
7226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227   (exit $ac_status); }; }; then
7228   :
7229 else
7230   echo "$as_me: program exited with status $ac_status" >&5
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7233
7234 ( exit $ac_status )
7235 ac_cv_header_stdc=no
7236 fi
7237 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 fi
7240 fi
7241 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7242 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7243 if test $ac_cv_header_stdc = yes; then
7244
7245 cat >>confdefs.h <<\_ACEOF
7246 #define STDC_HEADERS 1
7247 _ACEOF
7248
7249 fi
7250
7251 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262                   inttypes.h stdint.h unistd.h
7263 do
7264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 echo "$as_me:$LINENO: checking for $ac_header" >&5
7266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7267 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7268   echo $ECHO_N "(cached) $ECHO_C" >&6
7269 else
7270   cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h.  */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h.  */
7276 $ac_includes_default
7277
7278 #include <$ac_header>
7279 _ACEOF
7280 rm -f conftest.$ac_objext
7281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7282   (eval $ac_compile) 2>conftest.er1
7283   ac_status=$?
7284   grep -v '^ *+' conftest.er1 >conftest.err
7285   rm -f conftest.er1
7286   cat conftest.err >&5
7287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288   (exit $ac_status); } &&
7289          { ac_try='test -z "$ac_c_werror_flag"
7290                          || test ! -s conftest.err'
7291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292   (eval $ac_try) 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; } &&
7296          { ac_try='test -s conftest.$ac_objext'
7297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298   (eval $ac_try) 2>&5
7299   ac_status=$?
7300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301   (exit $ac_status); }; }; then
7302   eval "$as_ac_Header=yes"
7303 else
7304   echo "$as_me: failed program was:" >&5
7305 sed 's/^/| /' conftest.$ac_ext >&5
7306
7307 eval "$as_ac_Header=no"
7308 fi
7309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7310 fi
7311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314   cat >>confdefs.h <<_ACEOF
7315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7316 _ACEOF
7317
7318 fi
7319
7320 done
7321
7322
7323 if test "${ac_cv_header_termcap_h+set}" = set; then
7324   echo "$as_me:$LINENO: checking for termcap.h" >&5
7325 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7326 if test "${ac_cv_header_termcap_h+set}" = set; then
7327   echo $ECHO_N "(cached) $ECHO_C" >&6
7328 fi
7329 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7330 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7331 else
7332   # Is the header compilable?
7333 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7334 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7335 cat >conftest.$ac_ext <<_ACEOF
7336 /* confdefs.h.  */
7337 _ACEOF
7338 cat confdefs.h >>conftest.$ac_ext
7339 cat >>conftest.$ac_ext <<_ACEOF
7340 /* end confdefs.h.  */
7341 $ac_includes_default
7342 #include <termcap.h>
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346   (eval $ac_compile) 2>conftest.er1
7347   ac_status=$?
7348   grep -v '^ *+' conftest.er1 >conftest.err
7349   rm -f conftest.er1
7350   cat conftest.err >&5
7351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352   (exit $ac_status); } &&
7353          { ac_try='test -z "$ac_c_werror_flag"
7354                          || test ! -s conftest.err'
7355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356   (eval $ac_try) 2>&5
7357   ac_status=$?
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); }; } &&
7360          { ac_try='test -s conftest.$ac_objext'
7361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362   (eval $ac_try) 2>&5
7363   ac_status=$?
7364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365   (exit $ac_status); }; }; then
7366   ac_header_compiler=yes
7367 else
7368   echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_header_compiler=no
7372 fi
7373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7374 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7375 echo "${ECHO_T}$ac_header_compiler" >&6
7376
7377 # Is the header present?
7378 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7379 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h.  */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h.  */
7386 #include <termcap.h>
7387 _ACEOF
7388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7389   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7390   ac_status=$?
7391   grep -v '^ *+' conftest.er1 >conftest.err
7392   rm -f conftest.er1
7393   cat conftest.err >&5
7394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395   (exit $ac_status); } >/dev/null; then
7396   if test -s conftest.err; then
7397     ac_cpp_err=$ac_c_preproc_warn_flag
7398     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399   else
7400     ac_cpp_err=
7401   fi
7402 else
7403   ac_cpp_err=yes
7404 fi
7405 if test -z "$ac_cpp_err"; then
7406   ac_header_preproc=yes
7407 else
7408   echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411   ac_header_preproc=no
7412 fi
7413 rm -f conftest.err conftest.$ac_ext
7414 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7415 echo "${ECHO_T}$ac_header_preproc" >&6
7416
7417 # So?  What about this header?
7418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7419   yes:no: )
7420     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7421 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7422     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7423 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7424     ac_header_preproc=yes
7425     ;;
7426   no:yes:* )
7427     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7428 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7429     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
7430 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
7431     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7432 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7433     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
7434 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7435     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7436 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7437     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7438 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7439     (
7440       cat <<\_ASBOX
7441 ## ------------------------------------------ ##
7442 ## Report this to the AC_PACKAGE_NAME lists.  ##
7443 ## ------------------------------------------ ##
7444 _ASBOX
7445     ) |
7446       sed "s/^/$as_me: WARNING:     /" >&2
7447     ;;
7448 esac
7449 echo "$as_me:$LINENO: checking for termcap.h" >&5
7450 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7451 if test "${ac_cv_header_termcap_h+set}" = set; then
7452   echo $ECHO_N "(cached) $ECHO_C" >&6
7453 else
7454   ac_cv_header_termcap_h=$ac_header_preproc
7455 fi
7456 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7457 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7458
7459 fi
7460 if test $ac_cv_header_termcap_h = yes; then
7461    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7462 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7463 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7464   echo $ECHO_N "(cached) $ECHO_C" >&6
7465 else
7466   ac_check_lib_save_LIBS=$LIBS
7467 LIBS="-ltermcap  $LIBS"
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h.  */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h.  */
7474
7475 /* Override any gcc2 internal prototype to avoid an error.  */
7476 #ifdef __cplusplus
7477 extern "C"
7478 #endif
7479 /* We use char because int might match the return type of a gcc2
7480    builtin and then its argument prototype would still apply.  */
7481 char tgetent ();
7482 int
7483 main ()
7484 {
7485 tgetent ();
7486   ;
7487   return 0;
7488 }
7489 _ACEOF
7490 rm -f conftest.$ac_objext conftest$ac_exeext
7491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7492   (eval $ac_link) 2>conftest.er1
7493   ac_status=$?
7494   grep -v '^ *+' conftest.er1 >conftest.err
7495   rm -f conftest.er1
7496   cat conftest.err >&5
7497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7498   (exit $ac_status); } &&
7499          { ac_try='test -z "$ac_c_werror_flag"
7500                          || test ! -s conftest.err'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; } &&
7506          { ac_try='test -s conftest$ac_exeext'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; }; then
7512   ac_cv_lib_termcap_tgetent=yes
7513 else
7514   echo "$as_me: failed program was:" >&5
7515 sed 's/^/| /' conftest.$ac_ext >&5
7516
7517 ac_cv_lib_termcap_tgetent=no
7518 fi
7519 rm -f conftest.err conftest.$ac_objext \
7520       conftest$ac_exeext conftest.$ac_ext
7521 LIBS=$ac_check_lib_save_LIBS
7522 fi
7523 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7524 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7525 if test $ac_cv_lib_termcap_tgetent = yes; then
7526    CONS_LIBS="-ltermcap"
7527          CONS_OBJ="conio.o"
7528          CONS_SRC="conio.c"
7529          got_conio="yes"
7530          support_readline=no
7531
7532 cat >>confdefs.h <<\_ACEOF
7533 #define HAVE_CONIO 1
7534 _ACEOF
7535
7536
7537 else
7538    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7539 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7540 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7541   echo $ECHO_N "(cached) $ECHO_C" >&6
7542 else
7543   ac_check_lib_save_LIBS=$LIBS
7544 LIBS="-lncurses  $LIBS"
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551
7552 /* Override any gcc2 internal prototype to avoid an error.  */
7553 #ifdef __cplusplus
7554 extern "C"
7555 #endif
7556 /* We use char because int might match the return type of a gcc2
7557    builtin and then its argument prototype would still apply.  */
7558 char tgetent ();
7559 int
7560 main ()
7561 {
7562 tgetent ();
7563   ;
7564   return 0;
7565 }
7566 _ACEOF
7567 rm -f conftest.$ac_objext conftest$ac_exeext
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569   (eval $ac_link) 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } &&
7576          { ac_try='test -z "$ac_c_werror_flag"
7577                          || test ! -s conftest.err'
7578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7579   (eval $ac_try) 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; } &&
7583          { ac_try='test -s conftest$ac_exeext'
7584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7585   (eval $ac_try) 2>&5
7586   ac_status=$?
7587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588   (exit $ac_status); }; }; then
7589   ac_cv_lib_ncurses_tgetent=yes
7590 else
7591   echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 ac_cv_lib_ncurses_tgetent=no
7595 fi
7596 rm -f conftest.err conftest.$ac_objext \
7597       conftest$ac_exeext conftest.$ac_ext
7598 LIBS=$ac_check_lib_save_LIBS
7599 fi
7600 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7601 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7602 if test $ac_cv_lib_ncurses_tgetent = yes; then
7603    CONS_LIBS="-lncurses"
7604            CONS_OBJ="conio.o"
7605            CONS_SRC="conio.c"
7606            got_conio="yes"
7607            support_readline=no
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_CONIO 1
7611 _ACEOF
7612
7613
7614 fi
7615
7616
7617 fi
7618
7619
7620 else
7621
7622
7623 for ac_header in curses.h
7624 do
7625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7627   echo "$as_me:$LINENO: checking for $ac_header" >&5
7628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 fi
7632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7634 else
7635   # Is the header compilable?
7636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7638 cat >conftest.$ac_ext <<_ACEOF
7639 /* confdefs.h.  */
7640 _ACEOF
7641 cat confdefs.h >>conftest.$ac_ext
7642 cat >>conftest.$ac_ext <<_ACEOF
7643 /* end confdefs.h.  */
7644 $ac_includes_default
7645 #include <$ac_header>
7646 _ACEOF
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649   (eval $ac_compile) 2>conftest.er1
7650   ac_status=$?
7651   grep -v '^ *+' conftest.er1 >conftest.err
7652   rm -f conftest.er1
7653   cat conftest.err >&5
7654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655   (exit $ac_status); } &&
7656          { ac_try='test -z "$ac_c_werror_flag"
7657                          || test ! -s conftest.err'
7658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659   (eval $ac_try) 2>&5
7660   ac_status=$?
7661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662   (exit $ac_status); }; } &&
7663          { ac_try='test -s conftest.$ac_objext'
7664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665   (eval $ac_try) 2>&5
7666   ac_status=$?
7667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668   (exit $ac_status); }; }; then
7669   ac_header_compiler=yes
7670 else
7671   echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ac_header_compiler=no
7675 fi
7676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7678 echo "${ECHO_T}$ac_header_compiler" >&6
7679
7680 # Is the header present?
7681 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7683 cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 #include <$ac_header>
7690 _ACEOF
7691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7693   ac_status=$?
7694   grep -v '^ *+' conftest.er1 >conftest.err
7695   rm -f conftest.er1
7696   cat conftest.err >&5
7697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698   (exit $ac_status); } >/dev/null; then
7699   if test -s conftest.err; then
7700     ac_cpp_err=$ac_c_preproc_warn_flag
7701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7702   else
7703     ac_cpp_err=
7704   fi
7705 else
7706   ac_cpp_err=yes
7707 fi
7708 if test -z "$ac_cpp_err"; then
7709   ac_header_preproc=yes
7710 else
7711   echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714   ac_header_preproc=no
7715 fi
7716 rm -f conftest.err conftest.$ac_ext
7717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7718 echo "${ECHO_T}$ac_header_preproc" >&6
7719
7720 # So?  What about this header?
7721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7722   yes:no: )
7723     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7724 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7725     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7726 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7727     ac_header_preproc=yes
7728     ;;
7729   no:yes:* )
7730     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7731 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7732     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7733 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7734     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7735 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7736     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7737 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7740     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7741 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7742     (
7743       cat <<\_ASBOX
7744 ## ------------------------------------------ ##
7745 ## Report this to the AC_PACKAGE_NAME lists.  ##
7746 ## ------------------------------------------ ##
7747 _ASBOX
7748     ) |
7749       sed "s/^/$as_me: WARNING:     /" >&2
7750     ;;
7751 esac
7752 echo "$as_me:$LINENO: checking for $ac_header" >&5
7753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7755   echo $ECHO_N "(cached) $ECHO_C" >&6
7756 else
7757   eval "$as_ac_Header=\$ac_header_preproc"
7758 fi
7759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7761
7762 fi
7763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7764   cat >>confdefs.h <<_ACEOF
7765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7766 _ACEOF
7767
7768 fi
7769
7770 done
7771
7772          echo "$as_me:$LINENO: checking for term.h" >&5
7773 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7774 if test "${ac_cv_header_term_h+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   cat >conftest.$ac_ext <<_ACEOF
7778 /* confdefs.h.  */
7779 _ACEOF
7780 cat confdefs.h >>conftest.$ac_ext
7781 cat >>conftest.$ac_ext <<_ACEOF
7782 /* end confdefs.h.  */
7783 #if HAVE_CURSES_H
7784 #include <curses.h>
7785 #endif
7786
7787
7788 #include <term.h>
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7792   (eval $ac_compile) 2>conftest.er1
7793   ac_status=$?
7794   grep -v '^ *+' conftest.er1 >conftest.err
7795   rm -f conftest.er1
7796   cat conftest.err >&5
7797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798   (exit $ac_status); } &&
7799          { ac_try='test -z "$ac_c_werror_flag"
7800                          || test ! -s conftest.err'
7801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7802   (eval $ac_try) 2>&5
7803   ac_status=$?
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); }; } &&
7806          { ac_try='test -s conftest.$ac_objext'
7807   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7808   (eval $ac_try) 2>&5
7809   ac_status=$?
7810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811   (exit $ac_status); }; }; then
7812   ac_cv_header_term_h=yes
7813 else
7814   echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817 ac_cv_header_term_h=no
7818 fi
7819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7820 fi
7821 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7822 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7823 if test $ac_cv_header_term_h = yes; then
7824    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7825 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7826 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7827   echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829   ac_check_lib_save_LIBS=$LIBS
7830 LIBS="-lcurses  $LIBS"
7831 cat >conftest.$ac_ext <<_ACEOF
7832 /* confdefs.h.  */
7833 _ACEOF
7834 cat confdefs.h >>conftest.$ac_ext
7835 cat >>conftest.$ac_ext <<_ACEOF
7836 /* end confdefs.h.  */
7837
7838 /* Override any gcc2 internal prototype to avoid an error.  */
7839 #ifdef __cplusplus
7840 extern "C"
7841 #endif
7842 /* We use char because int might match the return type of a gcc2
7843    builtin and then its argument prototype would still apply.  */
7844 char tgetent ();
7845 int
7846 main ()
7847 {
7848 tgetent ();
7849   ;
7850   return 0;
7851 }
7852 _ACEOF
7853 rm -f conftest.$ac_objext conftest$ac_exeext
7854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7855   (eval $ac_link) 2>conftest.er1
7856   ac_status=$?
7857   grep -v '^ *+' conftest.er1 >conftest.err
7858   rm -f conftest.er1
7859   cat conftest.err >&5
7860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861   (exit $ac_status); } &&
7862          { ac_try='test -z "$ac_c_werror_flag"
7863                          || test ! -s conftest.err'
7864   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7865   (eval $ac_try) 2>&5
7866   ac_status=$?
7867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868   (exit $ac_status); }; } &&
7869          { ac_try='test -s conftest$ac_exeext'
7870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7871   (eval $ac_try) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }; }; then
7875   ac_cv_lib_curses_tgetent=yes
7876 else
7877   echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.$ac_ext >&5
7879
7880 ac_cv_lib_curses_tgetent=no
7881 fi
7882 rm -f conftest.err conftest.$ac_objext \
7883       conftest$ac_exeext conftest.$ac_ext
7884 LIBS=$ac_check_lib_save_LIBS
7885 fi
7886 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7887 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7888 if test $ac_cv_lib_curses_tgetent = yes; then
7889    CONS_LIBS="-lcurses"
7890                    CONS_OBJ="conio.o"
7891                    CONS_SRC="conio.c"
7892                    got_conio="yes"
7893                    support_readline=no
7894
7895 cat >>confdefs.h <<\_ACEOF
7896 #define HAVE_CONIO 1
7897 _ACEOF
7898
7899
7900 fi
7901
7902
7903 else
7904    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7905 fi
7906
7907
7908
7909 fi
7910
7911
7912 fi
7913
7914
7915 # ---------------------------------------------------
7916 # Check for readline support/directory (default off)
7917 # ---------------------------------------------------
7918 # this allows you to turn it completely off
7919 # Check whether --enable-readline or --disable-readline was given.
7920 if test "${enable_readline+set}" = set; then
7921   enableval="$enable_readline"
7922   if test x$enableval = xno; then
7923     support_readline=no
7924   fi
7925 fi;
7926
7927 got_readline="no"
7928 READLINE_SRC=
7929 if test x$support_readline = xyes; then
7930
7931 # Check whether --with-readline or --without-readline was given.
7932 if test "${with_readline+set}" = set; then
7933   withval="$with_readline"
7934
7935         case "$with_readline" in
7936         no) : ;;
7937         yes|*)
7938           if test -f ${with_readline}/readline.h; then
7939              CONS_INC="-I${with_readline}"
7940              CONS_LDFLAGS="-L$with_readline"
7941           elif test -f ${with_readline}/include/readline/readline.h; then
7942              CONS_INC="-I${with_readline}/include/readline"
7943              CONS_LDFLAGS="-L${with_readline}/lib"
7944              with_readline="${with_readline}/include/readline"
7945           else
7946              with_readline="/usr/include/readline"
7947           fi
7948           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7950   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7951 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 fi
7955 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7956 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7957 else
7958   # Is the header compilable?
7959 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7960 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7961 cat >conftest.$ac_ext <<_ACEOF
7962 /* confdefs.h.  */
7963 _ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h.  */
7967 $ac_includes_default
7968 #include <${with_readline}/readline.h>
7969 _ACEOF
7970 rm -f conftest.$ac_objext
7971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7972   (eval $ac_compile) 2>conftest.er1
7973   ac_status=$?
7974   grep -v '^ *+' conftest.er1 >conftest.err
7975   rm -f conftest.er1
7976   cat conftest.err >&5
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } &&
7979          { ac_try='test -z "$ac_c_werror_flag"
7980                          || test ! -s conftest.err'
7981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7982   (eval $ac_try) 2>&5
7983   ac_status=$?
7984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985   (exit $ac_status); }; } &&
7986          { ac_try='test -s conftest.$ac_objext'
7987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7988   (eval $ac_try) 2>&5
7989   ac_status=$?
7990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }; }; then
7992   ac_header_compiler=yes
7993 else
7994   echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7996
7997 ac_header_compiler=no
7998 fi
7999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8000 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8001 echo "${ECHO_T}$ac_header_compiler" >&6
8002
8003 # Is the header present?
8004 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
8005 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h.  */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h.  */
8012 #include <${with_readline}/readline.h>
8013 _ACEOF
8014 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8015   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8016   ac_status=$?
8017   grep -v '^ *+' conftest.er1 >conftest.err
8018   rm -f conftest.er1
8019   cat conftest.err >&5
8020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021   (exit $ac_status); } >/dev/null; then
8022   if test -s conftest.err; then
8023     ac_cpp_err=$ac_c_preproc_warn_flag
8024     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8025   else
8026     ac_cpp_err=
8027   fi
8028 else
8029   ac_cpp_err=yes
8030 fi
8031 if test -z "$ac_cpp_err"; then
8032   ac_header_preproc=yes
8033 else
8034   echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037   ac_header_preproc=no
8038 fi
8039 rm -f conftest.err conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8041 echo "${ECHO_T}$ac_header_preproc" >&6
8042
8043 # So?  What about this header?
8044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8045   yes:no: )
8046     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8047 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8048     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
8049 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
8050     ac_header_preproc=yes
8051     ;;
8052   no:yes:* )
8053     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8054 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8055     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
8056 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
8057     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8058 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8059     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8060 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8061     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8062 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8063     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8064 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8065     (
8066       cat <<\_ASBOX
8067 ## ------------------------------------------ ##
8068 ## Report this to the AC_PACKAGE_NAME lists.  ##
8069 ## ------------------------------------------ ##
8070 _ASBOX
8071     ) |
8072       sed "s/^/$as_me: WARNING:     /" >&2
8073     ;;
8074 esac
8075 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078   echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080   eval "$as_ac_Header=\$ac_header_preproc"
8081 fi
8082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8083 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8084
8085 fi
8086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8087    cat >>confdefs.h <<\_ACEOF
8088 #define HAVE_READLINE 1
8089 _ACEOF
8090
8091                CONS_LIBS="-lreadline -lhistory -ltermcap"
8092                got_readline="yes"
8093
8094 else
8095    echo " "
8096                echo "readline.h not found. readline turned off ..."
8097                echo " "
8098
8099
8100 fi
8101
8102
8103           ;;
8104         esac
8105
8106 else
8107
8108        # check for standard readline library
8109        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8110   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8111 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8112 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8113   echo $ECHO_N "(cached) $ECHO_C" >&6
8114 fi
8115 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8116 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8117 else
8118   # Is the header compilable?
8119 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8120 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8121 cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 $ac_includes_default
8128 #include </usr/include/readline/readline.h>
8129 _ACEOF
8130 rm -f conftest.$ac_objext
8131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8132   (eval $ac_compile) 2>conftest.er1
8133   ac_status=$?
8134   grep -v '^ *+' conftest.er1 >conftest.err
8135   rm -f conftest.er1
8136   cat conftest.err >&5
8137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138   (exit $ac_status); } &&
8139          { ac_try='test -z "$ac_c_werror_flag"
8140                          || test ! -s conftest.err'
8141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142   (eval $ac_try) 2>&5
8143   ac_status=$?
8144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145   (exit $ac_status); }; } &&
8146          { ac_try='test -s conftest.$ac_objext'
8147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8148   (eval $ac_try) 2>&5
8149   ac_status=$?
8150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151   (exit $ac_status); }; }; then
8152   ac_header_compiler=yes
8153 else
8154   echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8156
8157 ac_header_compiler=no
8158 fi
8159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8160 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8161 echo "${ECHO_T}$ac_header_compiler" >&6
8162
8163 # Is the header present?
8164 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8165 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #include </usr/include/readline/readline.h>
8173 _ACEOF
8174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8175   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8176   ac_status=$?
8177   grep -v '^ *+' conftest.er1 >conftest.err
8178   rm -f conftest.er1
8179   cat conftest.err >&5
8180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181   (exit $ac_status); } >/dev/null; then
8182   if test -s conftest.err; then
8183     ac_cpp_err=$ac_c_preproc_warn_flag
8184     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8185   else
8186     ac_cpp_err=
8187   fi
8188 else
8189   ac_cpp_err=yes
8190 fi
8191 if test -z "$ac_cpp_err"; then
8192   ac_header_preproc=yes
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197   ac_header_preproc=no
8198 fi
8199 rm -f conftest.err conftest.$ac_ext
8200 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8201 echo "${ECHO_T}$ac_header_preproc" >&6
8202
8203 # So?  What about this header?
8204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8205   yes:no: )
8206     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8207 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8208     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8209 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8210     ac_header_preproc=yes
8211     ;;
8212   no:yes:* )
8213     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8214 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8215     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
8216 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8217     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8218 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8219     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8220 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8221     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8222 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8223     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8224 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8225     (
8226       cat <<\_ASBOX
8227 ## ------------------------------------------ ##
8228 ## Report this to the AC_PACKAGE_NAME lists.  ##
8229 ## ------------------------------------------ ##
8230 _ASBOX
8231     ) |
8232       sed "s/^/$as_me: WARNING:     /" >&2
8233     ;;
8234 esac
8235 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8238   echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8241 fi
8242 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8243 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8244
8245 fi
8246 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8247    cat >>confdefs.h <<\_ACEOF
8248 #define HAVE_READLINE 1
8249 _ACEOF
8250
8251            got_readline="yes"
8252            CONS_INC="-I/usr/include/readline"
8253            CONS_LIBS="-lreadline -ltermcap"
8254
8255 else
8256
8257            # Did not find standard library, so try Bacula's default
8258             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8259 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8260   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8261 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8262 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 fi
8265 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8266 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8267 else
8268   # Is the header compilable?
8269 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8270 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8271 cat >conftest.$ac_ext <<_ACEOF
8272 /* confdefs.h.  */
8273 _ACEOF
8274 cat confdefs.h >>conftest.$ac_ext
8275 cat >>conftest.$ac_ext <<_ACEOF
8276 /* end confdefs.h.  */
8277 $ac_includes_default
8278 #include <${TOP_DIR}/depkgs/readline/readline.h>
8279 _ACEOF
8280 rm -f conftest.$ac_objext
8281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8282   (eval $ac_compile) 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag"
8290                          || test ! -s conftest.err'
8291   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8292   (eval $ac_try) 2>&5
8293   ac_status=$?
8294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295   (exit $ac_status); }; } &&
8296          { ac_try='test -s conftest.$ac_objext'
8297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8298   (eval $ac_try) 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_header_compiler=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307 ac_header_compiler=no
8308 fi
8309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 echo "${ECHO_T}$ac_header_compiler" >&6
8312
8313 # Is the header present?
8314 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8315 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <${TOP_DIR}/depkgs/readline/readline.h>
8323 _ACEOF
8324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8325   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8326   ac_status=$?
8327   grep -v '^ *+' conftest.er1 >conftest.err
8328   rm -f conftest.er1
8329   cat conftest.err >&5
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); } >/dev/null; then
8332   if test -s conftest.err; then
8333     ac_cpp_err=$ac_c_preproc_warn_flag
8334     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8335   else
8336     ac_cpp_err=
8337   fi
8338 else
8339   ac_cpp_err=yes
8340 fi
8341 if test -z "$ac_cpp_err"; then
8342   ac_header_preproc=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347   ac_header_preproc=no
8348 fi
8349 rm -f conftest.err conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 echo "${ECHO_T}$ac_header_preproc" >&6
8352
8353 # So?  What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355   yes:no: )
8356     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8357 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8359 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8360     ac_header_preproc=yes
8361     ;;
8362   no:yes:* )
8363     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8364 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
8366 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8368 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8370 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8371     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8372 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8373     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8374 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8375     (
8376       cat <<\_ASBOX
8377 ## ------------------------------------------ ##
8378 ## Report this to the AC_PACKAGE_NAME lists.  ##
8379 ## ------------------------------------------ ##
8380 _ASBOX
8381     ) |
8382       sed "s/^/$as_me: WARNING:     /" >&2
8383     ;;
8384 esac
8385 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8386 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   eval "$as_ac_Header=\$ac_header_preproc"
8391 fi
8392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8394
8395 fi
8396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8397    cat >>confdefs.h <<\_ACEOF
8398 #define HAVE_READLINE 1
8399 _ACEOF
8400
8401                  got_readline="yes"
8402                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
8403                  CONS_LIBS="-lreadline -lhistory -ltermcap"
8404                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8405                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8406
8407 else
8408    echo " "
8409                 echo "readline.h not found. readline turned off ..."
8410                 echo " "
8411
8412
8413 fi
8414
8415
8416
8417
8418 fi
8419
8420
8421
8422
8423 fi;
8424 fi
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435 # Minimal stuff for readline Makefile configuration
8436 MAKE_SHELL=/bin/sh
8437
8438 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8439 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8440 if test "${ac_cv_header_stat_broken+set}" = set; then
8441   echo $ECHO_N "(cached) $ECHO_C" >&6
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 #include <sys/types.h>
8450 #include <sys/stat.h>
8451
8452 #if defined(S_ISBLK) && defined(S_IFDIR)
8453 # if S_ISBLK (S_IFDIR)
8454 You lose.
8455 # endif
8456 #endif
8457
8458 #if defined(S_ISBLK) && defined(S_IFCHR)
8459 # if S_ISBLK (S_IFCHR)
8460 You lose.
8461 # endif
8462 #endif
8463
8464 #if defined(S_ISLNK) && defined(S_IFREG)
8465 # if S_ISLNK (S_IFREG)
8466 You lose.
8467 # endif
8468 #endif
8469
8470 #if defined(S_ISSOCK) && defined(S_IFREG)
8471 # if S_ISSOCK (S_IFREG)
8472 You lose.
8473 # endif
8474 #endif
8475
8476 _ACEOF
8477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8478   $EGREP "You lose" >/dev/null 2>&1; then
8479   ac_cv_header_stat_broken=yes
8480 else
8481   ac_cv_header_stat_broken=no
8482 fi
8483 rm -f conftest*
8484
8485 fi
8486 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8487 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8488 if test $ac_cv_header_stat_broken = yes; then
8489
8490 cat >>confdefs.h <<\_ACEOF
8491 #define STAT_MACROS_BROKEN 1
8492 _ACEOF
8493
8494 fi
8495
8496
8497
8498
8499
8500
8501 ac_header_dirent=no
8502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8503   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8504 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8506 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 #include <sys/types.h>
8516 #include <$ac_hdr>
8517
8518 int
8519 main ()
8520 {
8521 if ((DIR *) 0)
8522 return 0;
8523   ;
8524   return 0;
8525 }
8526 _ACEOF
8527 rm -f conftest.$ac_objext
8528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8529   (eval $ac_compile) 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag"
8537                          || test ! -s conftest.err'
8538   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8539   (eval $ac_try) 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545   (eval $ac_try) 2>&5
8546   ac_status=$?
8547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548   (exit $ac_status); }; }; then
8549   eval "$as_ac_Header=yes"
8550 else
8551   echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8553
8554 eval "$as_ac_Header=no"
8555 fi
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8561   cat >>confdefs.h <<_ACEOF
8562 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8563 _ACEOF
8564
8565 ac_header_dirent=$ac_hdr; break
8566 fi
8567
8568 done
8569 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8570 if test $ac_header_dirent = dirent.h; then
8571   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8572 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8573 if test "${ac_cv_search_opendir+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   ac_func_search_save_LIBS=$LIBS
8577 ac_cv_search_opendir=no
8578 cat >conftest.$ac_ext <<_ACEOF
8579 /* confdefs.h.  */
8580 _ACEOF
8581 cat confdefs.h >>conftest.$ac_ext
8582 cat >>conftest.$ac_ext <<_ACEOF
8583 /* end confdefs.h.  */
8584
8585 /* Override any gcc2 internal prototype to avoid an error.  */
8586 #ifdef __cplusplus
8587 extern "C"
8588 #endif
8589 /* We use char because int might match the return type of a gcc2
8590    builtin and then its argument prototype would still apply.  */
8591 char opendir ();
8592 int
8593 main ()
8594 {
8595 opendir ();
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602   (eval $ac_link) 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag"
8610                          || test ! -s conftest.err'
8611   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8612   (eval $ac_try) 2>&5
8613   ac_status=$?
8614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); }; } &&
8616          { ac_try='test -s conftest$ac_exeext'
8617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8618   (eval $ac_try) 2>&5
8619   ac_status=$?
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); }; }; then
8622   ac_cv_search_opendir="none required"
8623 else
8624   echo "$as_me: failed program was:" >&5
8625 sed 's/^/| /' conftest.$ac_ext >&5
8626
8627 fi
8628 rm -f conftest.err conftest.$ac_objext \
8629       conftest$ac_exeext conftest.$ac_ext
8630 if test "$ac_cv_search_opendir" = no; then
8631   for ac_lib in dir; do
8632     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8633     cat >conftest.$ac_ext <<_ACEOF
8634 /* confdefs.h.  */
8635 _ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h.  */
8639
8640 /* Override any gcc2 internal prototype to avoid an error.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 #endif
8644 /* We use char because int might match the return type of a gcc2
8645    builtin and then its argument prototype would still apply.  */
8646 char opendir ();
8647 int
8648 main ()
8649 {
8650 opendir ();
8651   ;
8652   return 0;
8653 }
8654 _ACEOF
8655 rm -f conftest.$ac_objext conftest$ac_exeext
8656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8657   (eval $ac_link) 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } &&
8664          { ac_try='test -z "$ac_c_werror_flag"
8665                          || test ! -s conftest.err'
8666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667   (eval $ac_try) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); }; } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   ac_cv_search_opendir="-l$ac_lib"
8678 break
8679 else
8680   echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 fi
8684 rm -f conftest.err conftest.$ac_objext \
8685       conftest$ac_exeext conftest.$ac_ext
8686   done
8687 fi
8688 LIBS=$ac_func_search_save_LIBS
8689 fi
8690 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8691 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8692 if test "$ac_cv_search_opendir" != no; then
8693   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8694
8695 fi
8696
8697 else
8698   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8699 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8700 if test "${ac_cv_search_opendir+set}" = set; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 else
8703   ac_func_search_save_LIBS=$LIBS
8704 ac_cv_search_opendir=no
8705 cat >conftest.$ac_ext <<_ACEOF
8706 /* confdefs.h.  */
8707 _ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h.  */
8711
8712 /* Override any gcc2 internal prototype to avoid an error.  */
8713 #ifdef __cplusplus
8714 extern "C"
8715 #endif
8716 /* We use char because int might match the return type of a gcc2
8717    builtin and then its argument prototype would still apply.  */
8718 char opendir ();
8719 int
8720 main ()
8721 {
8722 opendir ();
8723   ;
8724   return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729   (eval $ac_link) 2>conftest.er1
8730   ac_status=$?
8731   grep -v '^ *+' conftest.er1 >conftest.err
8732   rm -f conftest.er1
8733   cat conftest.err >&5
8734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735   (exit $ac_status); } &&
8736          { ac_try='test -z "$ac_c_werror_flag"
8737                          || test ! -s conftest.err'
8738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8739   (eval $ac_try) 2>&5
8740   ac_status=$?
8741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742   (exit $ac_status); }; } &&
8743          { ac_try='test -s conftest$ac_exeext'
8744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8745   (eval $ac_try) 2>&5
8746   ac_status=$?
8747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748   (exit $ac_status); }; }; then
8749   ac_cv_search_opendir="none required"
8750 else
8751   echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8753
8754 fi
8755 rm -f conftest.err conftest.$ac_objext \
8756       conftest$ac_exeext conftest.$ac_ext
8757 if test "$ac_cv_search_opendir" = no; then
8758   for ac_lib in x; do
8759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8760     cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766
8767 /* Override any gcc2 internal prototype to avoid an error.  */
8768 #ifdef __cplusplus
8769 extern "C"
8770 #endif
8771 /* We use char because int might match the return type of a gcc2
8772    builtin and then its argument prototype would still apply.  */
8773 char opendir ();
8774 int
8775 main ()
8776 {
8777 opendir ();
8778   ;
8779   return 0;
8780 }
8781 _ACEOF
8782 rm -f conftest.$ac_objext conftest$ac_exeext
8783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8784   (eval $ac_link) 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } &&
8791          { ac_try='test -z "$ac_c_werror_flag"
8792                          || test ! -s conftest.err'
8793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794   (eval $ac_try) 2>&5
8795   ac_status=$?
8796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797   (exit $ac_status); }; } &&
8798          { ac_try='test -s conftest$ac_exeext'
8799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800   (eval $ac_try) 2>&5
8801   ac_status=$?
8802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803   (exit $ac_status); }; }; then
8804   ac_cv_search_opendir="-l$ac_lib"
8805 break
8806 else
8807   echo "$as_me: failed program was:" >&5
8808 sed 's/^/| /' conftest.$ac_ext >&5
8809
8810 fi
8811 rm -f conftest.err conftest.$ac_objext \
8812       conftest$ac_exeext conftest.$ac_ext
8813   done
8814 fi
8815 LIBS=$ac_func_search_save_LIBS
8816 fi
8817 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8818 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8819 if test "$ac_cv_search_opendir" != no; then
8820   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8821
8822 fi
8823
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
8834 do
8835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8836 echo "$as_me:$LINENO: checking for $ac_func" >&5
8837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8838 if eval "test \"\${$as_ac_var+set}\" = set"; then
8839   echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841   cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h.  */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h.  */
8847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8848    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8849 #define $ac_func innocuous_$ac_func
8850
8851 /* System header to define __stub macros and hopefully few prototypes,
8852     which can conflict with char $ac_func (); below.
8853     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8854     <limits.h> exists even on freestanding compilers.  */
8855
8856 #ifdef __STDC__
8857 # include <limits.h>
8858 #else
8859 # include <assert.h>
8860 #endif
8861
8862 #undef $ac_func
8863
8864 /* Override any gcc2 internal prototype to avoid an error.  */
8865 #ifdef __cplusplus
8866 extern "C"
8867 {
8868 #endif
8869 /* We use char because int might match the return type of a gcc2
8870    builtin and then its argument prototype would still apply.  */
8871 char $ac_func ();
8872 /* The GNU C library defines this for functions which it implements
8873     to always fail with ENOSYS.  Some functions are actually named
8874     something starting with __ and the normal name is an alias.  */
8875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8876 choke me
8877 #else
8878 char (*f) () = $ac_func;
8879 #endif
8880 #ifdef __cplusplus
8881 }
8882 #endif
8883
8884 int
8885 main ()
8886 {
8887 return f != $ac_func;
8888   ;
8889   return 0;
8890 }
8891 _ACEOF
8892 rm -f conftest.$ac_objext conftest$ac_exeext
8893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8894   (eval $ac_link) 2>conftest.er1
8895   ac_status=$?
8896   grep -v '^ *+' conftest.er1 >conftest.err
8897   rm -f conftest.er1
8898   cat conftest.err >&5
8899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900   (exit $ac_status); } &&
8901          { ac_try='test -z "$ac_c_werror_flag"
8902                          || test ! -s conftest.err'
8903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904   (eval $ac_try) 2>&5
8905   ac_status=$?
8906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907   (exit $ac_status); }; } &&
8908          { ac_try='test -s conftest$ac_exeext'
8909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910   (eval $ac_try) 2>&5
8911   ac_status=$?
8912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913   (exit $ac_status); }; }; then
8914   eval "$as_ac_var=yes"
8915 else
8916   echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8918
8919 eval "$as_ac_var=no"
8920 fi
8921 rm -f conftest.err conftest.$ac_objext \
8922       conftest$ac_exeext conftest.$ac_ext
8923 fi
8924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8926 if test `eval echo '${'$as_ac_var'}'` = yes; then
8927   cat >>confdefs.h <<_ACEOF
8928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8929 _ACEOF
8930
8931 fi
8932 done
8933
8934
8935
8936 for ac_func in nanosleep nl_langinfo
8937 do
8938 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8939 echo "$as_me:$LINENO: checking for $ac_func" >&5
8940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8941 if eval "test \"\${$as_ac_var+set}\" = set"; then
8942   echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944   cat >conftest.$ac_ext <<_ACEOF
8945 /* confdefs.h.  */
8946 _ACEOF
8947 cat confdefs.h >>conftest.$ac_ext
8948 cat >>conftest.$ac_ext <<_ACEOF
8949 /* end confdefs.h.  */
8950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8951    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8952 #define $ac_func innocuous_$ac_func
8953
8954 /* System header to define __stub macros and hopefully few prototypes,
8955     which can conflict with char $ac_func (); below.
8956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957     <limits.h> exists even on freestanding compilers.  */
8958
8959 #ifdef __STDC__
8960 # include <limits.h>
8961 #else
8962 # include <assert.h>
8963 #endif
8964
8965 #undef $ac_func
8966
8967 /* Override any gcc2 internal prototype to avoid an error.  */
8968 #ifdef __cplusplus
8969 extern "C"
8970 {
8971 #endif
8972 /* We use char because int might match the return type of a gcc2
8973    builtin and then its argument prototype would still apply.  */
8974 char $ac_func ();
8975 /* The GNU C library defines this for functions which it implements
8976     to always fail with ENOSYS.  Some functions are actually named
8977     something starting with __ and the normal name is an alias.  */
8978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8979 choke me
8980 #else
8981 char (*f) () = $ac_func;
8982 #endif
8983 #ifdef __cplusplus
8984 }
8985 #endif
8986
8987 int
8988 main ()
8989 {
8990 return f != $ac_func;
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8997   (eval $ac_link) 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -z "$ac_c_werror_flag"
9005                          || test ! -s conftest.err'
9006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007   (eval $ac_try) 2>&5
9008   ac_status=$?
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); }; } &&
9011          { ac_try='test -s conftest$ac_exeext'
9012   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013   (eval $ac_try) 2>&5
9014   ac_status=$?
9015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016   (exit $ac_status); }; }; then
9017   eval "$as_ac_var=yes"
9018 else
9019   echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9021
9022 eval "$as_ac_var=no"
9023 fi
9024 rm -f conftest.err conftest.$ac_objext \
9025       conftest$ac_exeext conftest.$ac_ext
9026 fi
9027 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9028 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9029 if test `eval echo '${'$as_ac_var'}'` = yes; then
9030   cat >>confdefs.h <<_ACEOF
9031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9032 _ACEOF
9033
9034 fi
9035 done
9036
9037
9038 for ac_header in varargs.h
9039 do
9040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9041 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9042   echo "$as_me:$LINENO: checking for $ac_header" >&5
9043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9045   echo $ECHO_N "(cached) $ECHO_C" >&6
9046 fi
9047 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9048 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9049 else
9050   # Is the header compilable?
9051 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9052 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9053 cat >conftest.$ac_ext <<_ACEOF
9054 /* confdefs.h.  */
9055 _ACEOF
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h.  */
9059 $ac_includes_default
9060 #include <$ac_header>
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064   (eval $ac_compile) 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } &&
9071          { ac_try='test -z "$ac_c_werror_flag"
9072                          || test ! -s conftest.err'
9073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074   (eval $ac_try) 2>&5
9075   ac_status=$?
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); }; } &&
9078          { ac_try='test -s conftest.$ac_objext'
9079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080   (eval $ac_try) 2>&5
9081   ac_status=$?
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); }; }; then
9084   ac_header_compiler=yes
9085 else
9086   echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9088
9089 ac_header_compiler=no
9090 fi
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9093 echo "${ECHO_T}$ac_header_compiler" >&6
9094
9095 # Is the header present?
9096 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9097 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 #include <$ac_header>
9105 _ACEOF
9106 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9107   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108   ac_status=$?
9109   grep -v '^ *+' conftest.er1 >conftest.err
9110   rm -f conftest.er1
9111   cat conftest.err >&5
9112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113   (exit $ac_status); } >/dev/null; then
9114   if test -s conftest.err; then
9115     ac_cpp_err=$ac_c_preproc_warn_flag
9116     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9117   else
9118     ac_cpp_err=
9119   fi
9120 else
9121   ac_cpp_err=yes
9122 fi
9123 if test -z "$ac_cpp_err"; then
9124   ac_header_preproc=yes
9125 else
9126   echo "$as_me: failed program was:" >&5
9127 sed 's/^/| /' conftest.$ac_ext >&5
9128
9129   ac_header_preproc=no
9130 fi
9131 rm -f conftest.err conftest.$ac_ext
9132 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6
9134
9135 # So?  What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137   yes:no: )
9138     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142     ac_header_preproc=yes
9143     ;;
9144   no:yes:* )
9145     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9157     (
9158       cat <<\_ASBOX
9159 ## ------------------------------------------ ##
9160 ## Report this to the AC_PACKAGE_NAME lists.  ##
9161 ## ------------------------------------------ ##
9162 _ASBOX
9163     ) |
9164       sed "s/^/$as_me: WARNING:     /" >&2
9165     ;;
9166 esac
9167 echo "$as_me:$LINENO: checking for $ac_header" >&5
9168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9169 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9170   echo $ECHO_N "(cached) $ECHO_C" >&6
9171 else
9172   eval "$as_ac_Header=\$ac_header_preproc"
9173 fi
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176
9177 fi
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179   cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181 _ACEOF
9182
9183 fi
9184
9185 done
9186
9187
9188 # End of readline/conio stuff
9189 # -----------------------------------------------------------------------
9190
9191 # -----------------------------------------------------------------------
9192 #  Check for Python support
9193 #
9194 echo "$as_me:$LINENO: checking for Python support" >&5
9195 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9196
9197 # Check whether --with-python or --without-python was given.
9198 if test "${with_python+set}" = set; then
9199   withval="$with_python"
9200
9201   PYTHON_INCDIR=
9202   PYTHON_LIBS=
9203   if test "$withval" != "no"; then
9204      if test "$withval" = "yes"; then
9205         for python_root in /usr /usr/local; do
9206           if test -f $python_root/include/python2.2/Python.h; then
9207              PYTHON_INCDIR=-I$python_root/include/python2.2
9208              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9209              break
9210           elif test -f $python_root/include/python2.3/Python.h; then
9211              PYTHON_INCDIR=-I$python_root/include/python2.3
9212              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9213              break
9214           elif test -f $python_root/include/python2.4/Python.h; then
9215              PYTHON_INCDIR=-I$python_root/include/python2.4
9216              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9217              break
9218           fi
9219         done
9220         if test x$PYTHON_INCDIR = x; then
9221           if test -f $prefix/include/Python.h; then
9222              PYTHON_INCDIR=-I$prefix/include
9223              PYTHON_LIBS="-L$prefix/lib/config -lpython"
9224           else
9225            echo "$as_me:$LINENO: result: no" >&5
9226 echo "${ECHO_T}no" >&6
9227            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9228 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9229    { (exit 1); exit 1; }; }
9230           fi
9231         fi
9232      else
9233         if test -f $withval/Python.h; then
9234            PYTHON_INCDIR=-I$withval
9235            PYTHON_LIBS="-L$withval/config -lpython"
9236         elif test -f $withval/include/Python.h; then
9237            PYTHON_INCDIR=-I$withval/include
9238            PYTHON_LIBS="-L$withval/lib/config -lpython"
9239         elif test -f $withval/include/python/Python.h; then
9240            PYTHON_INCDIR=-I$withval/include/python
9241            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9242         else
9243            echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6
9245            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9246 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9247    { (exit 1); exit 1; }; }
9248         fi
9249      fi
9250      cat >>confdefs.h <<\_ACEOF
9251 #define HAVE_PYTHON 1
9252 _ACEOF
9253
9254      echo "$as_me:$LINENO: result: yes" >&5
9255 echo "${ECHO_T}yes" >&6
9256      support_python=yes
9257      { echo "$as_me:$LINENO: checking for more Python libs" >&5
9258 echo "$as_me: checking for more Python libs" >&6;}
9259      saved_LIBS="$LIBS"; LIBS=
9260      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9261 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9262 if test "${ac_cv_search_shm_open+set}" = set; then
9263   echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265   ac_func_search_save_LIBS=$LIBS
9266 ac_cv_search_shm_open=no
9267 cat >conftest.$ac_ext <<_ACEOF
9268 /* confdefs.h.  */
9269 _ACEOF
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h.  */
9273
9274 /* Override any gcc2 internal prototype to avoid an error.  */
9275 #ifdef __cplusplus
9276 extern "C"
9277 #endif
9278 /* We use char because int might match the return type of a gcc2
9279    builtin and then its argument prototype would still apply.  */
9280 char shm_open ();
9281 int
9282 main ()
9283 {
9284 shm_open ();
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291   (eval $ac_link) 2>conftest.er1
9292   ac_status=$?
9293   grep -v '^ *+' conftest.er1 >conftest.err
9294   rm -f conftest.er1
9295   cat conftest.err >&5
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } &&
9298          { ac_try='test -z "$ac_c_werror_flag"
9299                          || test ! -s conftest.err'
9300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9301   (eval $ac_try) 2>&5
9302   ac_status=$?
9303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304   (exit $ac_status); }; } &&
9305          { ac_try='test -s conftest$ac_exeext'
9306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9307   (eval $ac_try) 2>&5
9308   ac_status=$?
9309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310   (exit $ac_status); }; }; then
9311   ac_cv_search_shm_open="none required"
9312 else
9313   echo "$as_me: failed program was:" >&5
9314 sed 's/^/| /' conftest.$ac_ext >&5
9315
9316 fi
9317 rm -f conftest.err conftest.$ac_objext \
9318       conftest$ac_exeext conftest.$ac_ext
9319 if test "$ac_cv_search_shm_open" = no; then
9320   for ac_lib in rt; do
9321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9322     cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 /* Override any gcc2 internal prototype to avoid an error.  */
9330 #ifdef __cplusplus
9331 extern "C"
9332 #endif
9333 /* We use char because int might match the return type of a gcc2
9334    builtin and then its argument prototype would still apply.  */
9335 char shm_open ();
9336 int
9337 main ()
9338 {
9339 shm_open ();
9340   ;
9341   return 0;
9342 }
9343 _ACEOF
9344 rm -f conftest.$ac_objext conftest$ac_exeext
9345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9346   (eval $ac_link) 2>conftest.er1
9347   ac_status=$?
9348   grep -v '^ *+' conftest.er1 >conftest.err
9349   rm -f conftest.er1
9350   cat conftest.err >&5
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); } &&
9353          { ac_try='test -z "$ac_c_werror_flag"
9354                          || test ! -s conftest.err'
9355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9356   (eval $ac_try) 2>&5
9357   ac_status=$?
9358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359   (exit $ac_status); }; } &&
9360          { ac_try='test -s conftest$ac_exeext'
9361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362   (eval $ac_try) 2>&5
9363   ac_status=$?
9364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365   (exit $ac_status); }; }; then
9366   ac_cv_search_shm_open="-l$ac_lib"
9367 break
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372 fi
9373 rm -f conftest.err conftest.$ac_objext \
9374       conftest$ac_exeext conftest.$ac_ext
9375   done
9376 fi
9377 LIBS=$ac_func_search_save_LIBS
9378 fi
9379 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9380 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9381 if test "$ac_cv_search_shm_open" != no; then
9382   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9383
9384 fi
9385
9386
9387 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9388 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9389 if test "${ac_cv_lib_util_openpty+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   ac_check_lib_save_LIBS=$LIBS
9393 LIBS="-lutil  $LIBS"
9394 cat >conftest.$ac_ext <<_ACEOF
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400
9401 /* Override any gcc2 internal prototype to avoid an error.  */
9402 #ifdef __cplusplus
9403 extern "C"
9404 #endif
9405 /* We use char because int might match the return type of a gcc2
9406    builtin and then its argument prototype would still apply.  */
9407 char openpty ();
9408 int
9409 main ()
9410 {
9411 openpty ();
9412   ;
9413   return 0;
9414 }
9415 _ACEOF
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9418   (eval $ac_link) 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag"
9426                          || test ! -s conftest.err'
9427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428   (eval $ac_try) 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434   (eval $ac_try) 2>&5
9435   ac_status=$?
9436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437   (exit $ac_status); }; }; then
9438   ac_cv_lib_util_openpty=yes
9439 else
9440   echo "$as_me: failed program was:" >&5
9441 sed 's/^/| /' conftest.$ac_ext >&5
9442
9443 ac_cv_lib_util_openpty=no
9444 fi
9445 rm -f conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447 LIBS=$ac_check_lib_save_LIBS
9448 fi
9449 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9450 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9451 if test $ac_cv_lib_util_openpty = yes; then
9452   cat >>confdefs.h <<_ACEOF
9453 #define HAVE_LIBUTIL 1
9454 _ACEOF
9455
9456   LIBS="-lutil $LIBS"
9457
9458 fi
9459
9460      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9461      LIBS="$saved_LIBS"
9462   else
9463      echo "$as_me:$LINENO: result: no" >&5
9464 echo "${ECHO_T}no" >&6
9465   fi
9466
9467 else
9468
9469   echo "$as_me:$LINENO: result: no" >&5
9470 echo "${ECHO_T}no" >&6
9471
9472 fi;
9473
9474
9475
9476
9477 #
9478 # Find where sockets are (especially for Solaris)
9479 # Do this before the TCP Wrappers test since tcp wrappers
9480 # uses the socket library and some linkers are stupid.
9481 #
9482 echo "$as_me:$LINENO: checking for socket" >&5
9483 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9484 if test "${ac_cv_func_socket+set}" = set; then
9485   echo $ECHO_N "(cached) $ECHO_C" >&6
9486 else
9487   cat >conftest.$ac_ext <<_ACEOF
9488 /* confdefs.h.  */
9489 _ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h.  */
9493 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9495 #define socket innocuous_socket
9496
9497 /* System header to define __stub macros and hopefully few prototypes,
9498     which can conflict with char socket (); below.
9499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9500     <limits.h> exists even on freestanding compilers.  */
9501
9502 #ifdef __STDC__
9503 # include <limits.h>
9504 #else
9505 # include <assert.h>
9506 #endif
9507
9508 #undef socket
9509
9510 /* Override any gcc2 internal prototype to avoid an error.  */
9511 #ifdef __cplusplus
9512 extern "C"
9513 {
9514 #endif
9515 /* We use char because int might match the return type of a gcc2
9516    builtin and then its argument prototype would still apply.  */
9517 char socket ();
9518 /* The GNU C library defines this for functions which it implements
9519     to always fail with ENOSYS.  Some functions are actually named
9520     something starting with __ and the normal name is an alias.  */
9521 #if defined (__stub_socket) || defined (__stub___socket)
9522 choke me
9523 #else
9524 char (*f) () = socket;
9525 #endif
9526 #ifdef __cplusplus
9527 }
9528 #endif
9529
9530 int
9531 main ()
9532 {
9533 return f != socket;
9534   ;
9535   return 0;
9536 }
9537 _ACEOF
9538 rm -f conftest.$ac_objext conftest$ac_exeext
9539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9540   (eval $ac_link) 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } &&
9547          { ac_try='test -z "$ac_c_werror_flag"
9548                          || test ! -s conftest.err'
9549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9550   (eval $ac_try) 2>&5
9551   ac_status=$?
9552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553   (exit $ac_status); }; } &&
9554          { ac_try='test -s conftest$ac_exeext'
9555   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556   (eval $ac_try) 2>&5
9557   ac_status=$?
9558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559   (exit $ac_status); }; }; then
9560   ac_cv_func_socket=yes
9561 else
9562   echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9564
9565 ac_cv_func_socket=no
9566 fi
9567 rm -f conftest.err conftest.$ac_objext \
9568       conftest$ac_exeext conftest.$ac_ext
9569 fi
9570 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9571 echo "${ECHO_T}$ac_cv_func_socket" >&6
9572 if test $ac_cv_func_socket = yes; then
9573   echo "$as_me:$LINENO: result: using libc's socket" >&5
9574 echo "${ECHO_T}using libc's socket" >&6
9575 else
9576
9577 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9578 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9579 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   ac_check_lib_save_LIBS=$LIBS
9583 LIBS="-lxnet  $LIBS"
9584 cat >conftest.$ac_ext <<_ACEOF
9585 /* confdefs.h.  */
9586 _ACEOF
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h.  */
9590
9591 /* Override any gcc2 internal prototype to avoid an error.  */
9592 #ifdef __cplusplus
9593 extern "C"
9594 #endif
9595 /* We use char because int might match the return type of a gcc2
9596    builtin and then its argument prototype would still apply.  */
9597 char socket ();
9598 int
9599 main ()
9600 {
9601 socket ();
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608   (eval $ac_link) 2>conftest.er1
9609   ac_status=$?
9610   grep -v '^ *+' conftest.er1 >conftest.err
9611   rm -f conftest.er1
9612   cat conftest.err >&5
9613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614   (exit $ac_status); } &&
9615          { ac_try='test -z "$ac_c_werror_flag"
9616                          || test ! -s conftest.err'
9617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9618   (eval $ac_try) 2>&5
9619   ac_status=$?
9620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621   (exit $ac_status); }; } &&
9622          { ac_try='test -s conftest$ac_exeext'
9623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9624   (eval $ac_try) 2>&5
9625   ac_status=$?
9626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); }; }; then
9628   ac_cv_lib_xnet_socket=yes
9629 else
9630   echo "$as_me: failed program was:" >&5
9631 sed 's/^/| /' conftest.$ac_ext >&5
9632
9633 ac_cv_lib_xnet_socket=no
9634 fi
9635 rm -f conftest.err conftest.$ac_objext \
9636       conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9638 fi
9639 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9640 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9641 if test $ac_cv_lib_xnet_socket = yes; then
9642   cat >>confdefs.h <<_ACEOF
9643 #define HAVE_LIBXNET 1
9644 _ACEOF
9645
9646   LIBS="-lxnet $LIBS"
9647
9648 fi
9649
9650
9651 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9652 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9653 if test "${ac_cv_lib_socket_socket+set}" = set; then
9654   echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656   ac_check_lib_save_LIBS=$LIBS
9657 LIBS="-lsocket  $LIBS"
9658 cat >conftest.$ac_ext <<_ACEOF
9659 /* confdefs.h.  */
9660 _ACEOF
9661 cat confdefs.h >>conftest.$ac_ext
9662 cat >>conftest.$ac_ext <<_ACEOF
9663 /* end confdefs.h.  */
9664
9665 /* Override any gcc2 internal prototype to avoid an error.  */
9666 #ifdef __cplusplus
9667 extern "C"
9668 #endif
9669 /* We use char because int might match the return type of a gcc2
9670    builtin and then its argument prototype would still apply.  */
9671 char socket ();
9672 int
9673 main ()
9674 {
9675 socket ();
9676   ;
9677   return 0;
9678 }
9679 _ACEOF
9680 rm -f conftest.$ac_objext conftest$ac_exeext
9681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9682   (eval $ac_link) 2>conftest.er1
9683   ac_status=$?
9684   grep -v '^ *+' conftest.er1 >conftest.err
9685   rm -f conftest.er1
9686   cat conftest.err >&5
9687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688   (exit $ac_status); } &&
9689          { ac_try='test -z "$ac_c_werror_flag"
9690                          || test ! -s conftest.err'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; } &&
9696          { ac_try='test -s conftest$ac_exeext'
9697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9698   (eval $ac_try) 2>&5
9699   ac_status=$?
9700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701   (exit $ac_status); }; }; then
9702   ac_cv_lib_socket_socket=yes
9703 else
9704   echo "$as_me: failed program was:" >&5
9705 sed 's/^/| /' conftest.$ac_ext >&5
9706
9707 ac_cv_lib_socket_socket=no
9708 fi
9709 rm -f conftest.err conftest.$ac_objext \
9710       conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9712 fi
9713 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9714 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9715 if test $ac_cv_lib_socket_socket = yes; then
9716   cat >>confdefs.h <<_ACEOF
9717 #define HAVE_LIBSOCKET 1
9718 _ACEOF
9719
9720   LIBS="-lsocket $LIBS"
9721
9722 fi
9723
9724
9725 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9726 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9727 if test "${ac_cv_lib_inet_socket+set}" = set; then
9728   echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730   ac_check_lib_save_LIBS=$LIBS
9731 LIBS="-linet  $LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738
9739 /* Override any gcc2 internal prototype to avoid an error.  */
9740 #ifdef __cplusplus
9741 extern "C"
9742 #endif
9743 /* We use char because int might match the return type of a gcc2
9744    builtin and then its argument prototype would still apply.  */
9745 char socket ();
9746 int
9747 main ()
9748 {
9749 socket ();
9750   ;
9751   return 0;
9752 }
9753 _ACEOF
9754 rm -f conftest.$ac_objext conftest$ac_exeext
9755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756   (eval $ac_link) 2>conftest.er1
9757   ac_status=$?
9758   grep -v '^ *+' conftest.er1 >conftest.err
9759   rm -f conftest.er1
9760   cat conftest.err >&5
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); } &&
9763          { ac_try='test -z "$ac_c_werror_flag"
9764                          || test ! -s conftest.err'
9765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766   (eval $ac_try) 2>&5
9767   ac_status=$?
9768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769   (exit $ac_status); }; } &&
9770          { ac_try='test -s conftest$ac_exeext'
9771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772   (eval $ac_try) 2>&5
9773   ac_status=$?
9774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775   (exit $ac_status); }; }; then
9776   ac_cv_lib_inet_socket=yes
9777 else
9778   echo "$as_me: failed program was:" >&5
9779 sed 's/^/| /' conftest.$ac_ext >&5
9780
9781 ac_cv_lib_inet_socket=no
9782 fi
9783 rm -f conftest.err conftest.$ac_objext \
9784       conftest$ac_exeext conftest.$ac_ext
9785 LIBS=$ac_check_lib_save_LIBS
9786 fi
9787 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9788 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9789 if test $ac_cv_lib_inet_socket = yes; then
9790   cat >>confdefs.h <<_ACEOF
9791 #define HAVE_LIBINET 1
9792 _ACEOF
9793
9794   LIBS="-linet $LIBS"
9795
9796 fi
9797
9798 fi
9799
9800
9801
9802 # -----------------------------------------------------------
9803 # Check whether user wants TCP wrappers support (default off)
9804 # -----------------------------------------------------------
9805 TCPW_MSG="no"
9806
9807 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9808 if test "${with_tcp_wrappers+set}" = set; then
9809   withval="$with_tcp_wrappers"
9810
9811     if test "x$withval" != "xno" ; then
9812        saved_LIBS="$LIBS"
9813        LIBS="$saved_LIBS -lwrap"
9814        echo "$as_me:$LINENO: checking for libwrap" >&5
9815 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9816        cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822  #include <tcpd.h>
9823              int deny_severity = 0;
9824              int allow_severity = 0;
9825              struct request_info *req;
9826 int
9827 main ()
9828 {
9829  hosts_access(req);
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9836   (eval $ac_link) 2>conftest.er1
9837   ac_status=$?
9838   grep -v '^ *+' conftest.er1 >conftest.err
9839   rm -f conftest.er1
9840   cat conftest.err >&5
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); } &&
9843          { ac_try='test -z "$ac_c_werror_flag"
9844                          || test ! -s conftest.err'
9845   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846   (eval $ac_try) 2>&5
9847   ac_status=$?
9848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849   (exit $ac_status); }; } &&
9850          { ac_try='test -s conftest$ac_exeext'
9851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852   (eval $ac_try) 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856
9857             echo "$as_me:$LINENO: result: yes" >&5
9858 echo "${ECHO_T}yes" >&6
9859             cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_LIBWRAP 1
9861 _ACEOF
9862
9863             TCPW_MSG="yes"
9864
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869
9870             LIBS="$saved_LIBS -lwrap -lnsl"
9871             cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877  #include <tcpd.h>
9878                  int deny_severity = 0;
9879                  int allow_severity = 0;
9880                  struct request_info *req;
9881 int
9882 main ()
9883 {
9884  hosts_access(req);
9885   ;
9886   return 0;
9887 }
9888 _ACEOF
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9891   (eval $ac_link) 2>conftest.er1
9892   ac_status=$?
9893   grep -v '^ *+' conftest.er1 >conftest.err
9894   rm -f conftest.er1
9895   cat conftest.err >&5
9896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9897   (exit $ac_status); } &&
9898          { ac_try='test -z "$ac_c_werror_flag"
9899                          || test ! -s conftest.err'
9900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9901   (eval $ac_try) 2>&5
9902   ac_status=$?
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); }; } &&
9905          { ac_try='test -s conftest$ac_exeext'
9906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9907   (eval $ac_try) 2>&5
9908   ac_status=$?
9909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910   (exit $ac_status); }; }; then
9911
9912                  echo "$as_me:$LINENO: result: yes" >&5
9913 echo "${ECHO_T}yes" >&6
9914                  cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBWRAP 1
9916 _ACEOF
9917
9918                  TCPW_MSG="yes"
9919
9920 else
9921   echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9923
9924 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9925 echo "$as_me: error: *** libwrap missing" >&2;}
9926    { (exit 1); exit 1; }; }
9927
9928 fi
9929 rm -f conftest.err conftest.$ac_objext \
9930       conftest$ac_exeext conftest.$ac_ext
9931
9932 fi
9933 rm -f conftest.err conftest.$ac_objext \
9934       conftest$ac_exeext conftest.$ac_ext
9935     fi
9936
9937
9938 fi;
9939
9940 # -----------------------------------------------------------
9941 # Check whether OpenSSL is available
9942 # -----------------------------------------------------------
9943 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9944 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9945
9946 # Check whether --with-openssl or --without-openssl was given.
9947 if test "${with_openssl+set}" = set; then
9948   withval="$with_openssl"
9949   with_openssl_directory=${withval}
9950 fi;
9951
9952 if test "x$with_openssl_directory" != "x"; then
9953         OPENSSL_LIBS="-lssl -lcrypto"
9954         OPENSSL_INC=""
9955
9956         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9957                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9958                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9959         fi
9960
9961         saved_LIBS="$LIBS"
9962         saved_CFLAGS="$CFLAGS"
9963         LIBS="$saved_LIBS $OPENSSL_LIBS"
9964         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9965
9966         cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972  #include <openssl/ssl.h>
9973 int
9974 main ()
9975 {
9976  CRYPTO_set_id_callback(NULL);
9977   ;
9978   return 0;
9979 }
9980 _ACEOF
9981 rm -f conftest.$ac_objext conftest$ac_exeext
9982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9983   (eval $ac_link) 2>conftest.er1
9984   ac_status=$?
9985   grep -v '^ *+' conftest.er1 >conftest.err
9986   rm -f conftest.er1
9987   cat conftest.err >&5
9988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989   (exit $ac_status); } &&
9990          { ac_try='test -z "$ac_c_werror_flag"
9991                          || test ! -s conftest.err'
9992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9993   (eval $ac_try) 2>&5
9994   ac_status=$?
9995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996   (exit $ac_status); }; } &&
9997          { ac_try='test -s conftest$ac_exeext'
9998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9999   (eval $ac_try) 2>&5
10000   ac_status=$?
10001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002   (exit $ac_status); }; }; then
10003    support_tls="yes"
10004 else
10005   echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10007
10008  support_tls="no"
10009
10010 fi
10011 rm -f conftest.err conftest.$ac_objext \
10012       conftest$ac_exeext conftest.$ac_ext
10013
10014         LIBS="$saved_LIBS"
10015         CFLAGS="$saved_CFLAGS"
10016
10017         if test "$support_tls" = "yes"; then
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_OPENSSL 1
10021 _ACEOF
10022
10023
10024 cat >>confdefs.h <<\_ACEOF
10025 #define HAVE_TLS 1
10026 _ACEOF
10027
10028         fi
10029 else
10030         support_tls="no"
10031         OPENSSL_LIBS=""
10032         OPENSSL_INC=""
10033 fi
10034
10035 echo "$as_me:$LINENO: result: $support_tls" >&5
10036 echo "${ECHO_T}$support_tls" >&6
10037
10038
10039
10040
10041 # -----------------------------------------------------------
10042 # Python and OpenSSL are using dlopen
10043 # -----------------------------------------------------------
10044
10045 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
10046    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
10047 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
10048 if test "${ac_cv_search_dlopen+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051   ac_func_search_save_LIBS=$LIBS
10052 ac_cv_search_dlopen=no
10053 cat >conftest.$ac_ext <<_ACEOF
10054 /* confdefs.h.  */
10055 _ACEOF
10056 cat confdefs.h >>conftest.$ac_ext
10057 cat >>conftest.$ac_ext <<_ACEOF
10058 /* end confdefs.h.  */
10059
10060 /* Override any gcc2 internal prototype to avoid an error.  */
10061 #ifdef __cplusplus
10062 extern "C"
10063 #endif
10064 /* We use char because int might match the return type of a gcc2
10065    builtin and then its argument prototype would still apply.  */
10066 char dlopen ();
10067 int
10068 main ()
10069 {
10070 dlopen ();
10071   ;
10072   return 0;
10073 }
10074 _ACEOF
10075 rm -f conftest.$ac_objext conftest$ac_exeext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10077   (eval $ac_link) 2>conftest.er1
10078   ac_status=$?
10079   grep -v '^ *+' conftest.er1 >conftest.err
10080   rm -f conftest.er1
10081   cat conftest.err >&5
10082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10083   (exit $ac_status); } &&
10084          { ac_try='test -z "$ac_c_werror_flag"
10085                          || test ! -s conftest.err'
10086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087   (eval $ac_try) 2>&5
10088   ac_status=$?
10089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090   (exit $ac_status); }; } &&
10091          { ac_try='test -s conftest$ac_exeext'
10092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10093   (eval $ac_try) 2>&5
10094   ac_status=$?
10095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10096   (exit $ac_status); }; }; then
10097   ac_cv_search_dlopen="none required"
10098 else
10099   echo "$as_me: failed program was:" >&5
10100 sed 's/^/| /' conftest.$ac_ext >&5
10101
10102 fi
10103 rm -f conftest.err conftest.$ac_objext \
10104       conftest$ac_exeext conftest.$ac_ext
10105 if test "$ac_cv_search_dlopen" = no; then
10106   for ac_lib in dl; do
10107     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10108     cat >conftest.$ac_ext <<_ACEOF
10109 /* confdefs.h.  */
10110 _ACEOF
10111 cat confdefs.h >>conftest.$ac_ext
10112 cat >>conftest.$ac_ext <<_ACEOF
10113 /* end confdefs.h.  */
10114
10115 /* Override any gcc2 internal prototype to avoid an error.  */
10116 #ifdef __cplusplus
10117 extern "C"
10118 #endif
10119 /* We use char because int might match the return type of a gcc2
10120    builtin and then its argument prototype would still apply.  */
10121 char dlopen ();
10122 int
10123 main ()
10124 {
10125 dlopen ();
10126   ;
10127   return 0;
10128 }
10129 _ACEOF
10130 rm -f conftest.$ac_objext conftest$ac_exeext
10131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10132   (eval $ac_link) 2>conftest.er1
10133   ac_status=$?
10134   grep -v '^ *+' conftest.er1 >conftest.err
10135   rm -f conftest.er1
10136   cat conftest.err >&5
10137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10138   (exit $ac_status); } &&
10139          { ac_try='test -z "$ac_c_werror_flag"
10140                          || test ! -s conftest.err'
10141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10142   (eval $ac_try) 2>&5
10143   ac_status=$?
10144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); }; } &&
10146          { ac_try='test -s conftest$ac_exeext'
10147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10148   (eval $ac_try) 2>&5
10149   ac_status=$?
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); }; }; then
10152   ac_cv_search_dlopen="-l$ac_lib"
10153 break
10154 else
10155   echo "$as_me: failed program was:" >&5
10156 sed 's/^/| /' conftest.$ac_ext >&5
10157
10158 fi
10159 rm -f conftest.err conftest.$ac_objext \
10160       conftest$ac_exeext conftest.$ac_ext
10161   done
10162 fi
10163 LIBS=$ac_func_search_save_LIBS
10164 fi
10165 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10166 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10167 if test "$ac_cv_search_dlopen" != no; then
10168   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10169
10170 fi
10171
10172 fi
10173
10174 # ------------------------------------------
10175 # Where to place working dir
10176 # ------------------------------------------
10177 working_dir=`eval echo ${prefix}/var/bacula/working`
10178
10179 # Check whether --with-working-dir or --without-working-dir was given.
10180 if test "${with_working_dir+set}" = set; then
10181   withval="$with_working_dir"
10182
10183        if test "x$withval" != "xno" ; then
10184               working_dir=$withval
10185        fi
10186
10187
10188 fi;
10189
10190
10191
10192
10193 # ------------------------------------------
10194 # Where to place scriptdir (script files)
10195 # ------------------------------------------
10196 scriptdir=`eval echo ${sysconfdir}`
10197
10198 # Check whether --with-scriptdir or --without-scriptdir was given.
10199 if test "${with_scriptdir+set}" = set; then
10200   withval="$with_scriptdir"
10201
10202        if test "x$withval" != "xno" ; then
10203               scriptdir=$withval
10204        fi
10205
10206
10207 fi;
10208
10209
10210
10211
10212 # ------------------------------------------
10213 # Where to send dump email
10214 # ------------------------------------------
10215 dump_email=root@localhost
10216
10217 # Check whether --with-dump-email or --without-dump-email was given.
10218 if test "${with_dump_email+set}" = set; then
10219   withval="$with_dump_email"
10220
10221        if test "x$withval" != "xno" ; then
10222               dump_email=$withval
10223        fi
10224
10225
10226 fi;
10227
10228
10229
10230 # ------------------------------------------
10231 # Where to send job email
10232 # ------------------------------------------
10233 job_email=root@localhost
10234
10235 # Check whether --with-job-email or --without-job-email was given.
10236 if test "${with_job_email+set}" = set; then
10237   withval="$with_job_email"
10238
10239        if test "x$withval" != "xno" ; then
10240               job_email=$withval
10241        fi
10242
10243
10244 fi;
10245
10246
10247
10248 # ------------------------------------------
10249 # Where to find smtp host
10250 # ------------------------------------------
10251 smtp_host=localhost
10252
10253 # Check whether --with-smtp_host or --without-smtp_host was given.
10254 if test "${with_smtp_host+set}" = set; then
10255   withval="$with_smtp_host"
10256
10257        if test "x$withval" != "xno" ; then
10258               smtp_host=$withval
10259        fi
10260
10261
10262 fi;
10263
10264
10265
10266
10267 # ------------------------------------
10268 # Where to place pid files
10269 # ------------------------------------
10270 piddir=/var/run
10271
10272 # Check whether --with-pid-dir or --without-pid-dir was given.
10273 if test "${with_pid_dir+set}" = set; then
10274   withval="$with_pid_dir"
10275
10276         if test "x$withval" != "xno" ; then
10277             piddir=$withval
10278         fi
10279
10280
10281 fi;
10282
10283 cat >>confdefs.h <<_ACEOF
10284 #define _PATH_BACULA_PIDDIR "$piddir"
10285 _ACEOF
10286
10287
10288
10289
10290 # ------------------------------------
10291 # Where to place subsys "lock file"
10292 # ------------------------------------
10293 subsysdir=/var/run/subsys
10294
10295 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10296 if test "${with_subsys_dir+set}" = set; then
10297   withval="$with_subsys_dir"
10298
10299         if test "x$withval" != "xno" ; then
10300             subsysdir=$withval
10301         fi
10302
10303
10304 fi;
10305
10306
10307
10308
10309
10310 # ------------------------------------
10311 # Where to start assigning ports
10312 # ------------------------------------
10313 baseport=9101
10314
10315 # Check whether --with-baseport or --without-baseport was given.
10316 if test "${with_baseport+set}" = set; then
10317   withval="$with_baseport"
10318
10319         if test "x$withval" != "xno" ; then
10320              baseport=$withval
10321         fi
10322
10323
10324 fi;
10325
10326
10327 dir_port=`expr $baseport`
10328 fd_port=`expr $baseport + 1`
10329 sd_port=`expr $fd_port + 1`
10330
10331
10332
10333
10334
10335
10336 # ------------------------------------------
10337 # Generate passwords
10338 # ------------------------------------------
10339 dir_password=
10340
10341 # Check whether --with-dir-password or --without-dir-password was given.
10342 if test "${with_dir_password+set}" = set; then
10343   withval="$with_dir_password"
10344
10345        if test "x$withval" != "xno" ; then
10346            dir_password=$withval
10347        fi
10348
10349
10350 fi;
10351
10352 if test "x$dir_password" = "x" ; then
10353    if test "x$OPENSSL" = "xnone" ; then
10354       key=`autoconf/randpass 33`
10355    else
10356       key=`openssl rand -base64 33`
10357    fi
10358    dir_password=$key
10359 fi
10360
10361 fd_password=
10362
10363 # Check whether --with-fd-password or --without-fd-password was given.
10364 if test "${with_fd_password+set}" = set; then
10365   withval="$with_fd_password"
10366
10367        if test "x$withval" != "xno" ; then
10368            fd_password=$withval
10369        fi
10370
10371
10372 fi;
10373
10374 if test "x$fd_password" = "x" ; then
10375    if test "x$OPENSSL" = "xnone" ; then
10376       key=`autoconf/randpass 37`
10377    else
10378       key=`openssl rand -base64 33`
10379    fi
10380    fd_password=$key
10381 fi
10382
10383 sd_password=
10384
10385 # Check whether --with-sd-password or --without-sd-password was given.
10386 if test "${with_sd_password+set}" = set; then
10387   withval="$with_sd_password"
10388
10389        if test "x$withval" != "xno" ; then
10390            sd_password=$withval
10391        fi
10392
10393
10394 fi;
10395
10396 if test "x$sd_password" = "x" ; then
10397    if test "x$OPENSSL" = "xnone" ; then
10398       key=`autoconf/randpass 41`
10399    else
10400       key=`openssl rand -base64 33`
10401    fi
10402    sd_password=$key
10403 fi
10404
10405 mon_dir_password=
10406
10407 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10408 if test "${with_mon_dir_password+set}" = set; then
10409   withval="$with_mon_dir_password"
10410
10411        if test "x$withval" != "xno" ; then
10412            mon_dir_password=$withval
10413        fi
10414
10415
10416 fi;
10417
10418 if test "x$mon_dir_password" = "x" ; then
10419    if test "x$OPENSSL" = "xnone" ; then
10420       key=`autoconf/randpass 33`
10421    else
10422       key=`openssl rand -base64 33`
10423    fi
10424    mon_dir_password=$key
10425 fi
10426
10427 mon_fd_password=
10428
10429 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10430 if test "${with_mon_fd_password+set}" = set; then
10431   withval="$with_mon_fd_password"
10432
10433        if test "x$withval" != "xno" ; then
10434            mon_fd_password=$withval
10435        fi
10436
10437
10438 fi;
10439
10440 if test "x$mon_fd_password" = "x" ; then
10441    if test "x$OPENSSL" = "xnone" ; then
10442       key=`autoconf/randpass 37`
10443    else
10444       key=`openssl rand -base64 33`
10445    fi
10446    mon_fd_password=$key
10447 fi
10448
10449 mon_sd_password=
10450
10451 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10452 if test "${with_mon_sd_password+set}" = set; then
10453   withval="$with_mon_sd_password"
10454
10455        if test "x$withval" != "xno" ; then
10456            mon_sd_password=$withval
10457        fi
10458
10459
10460 fi;
10461
10462 if test "x$mon_sd_password" = "x" ; then
10463    if test "x$OPENSSL" = "xnone" ; then
10464       key=`autoconf/randpass 41`
10465    else
10466       key=`openssl rand -base64 33`
10467    fi
10468    mon_sd_password=$key
10469 fi
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479 #
10480 # Handle users and groups for each daemon
10481 #
10482 dir_user=
10483
10484 # Check whether --with-dir_user or --without-dir_user was given.
10485 if test "${with_dir_user+set}" = set; then
10486   withval="$with_dir_user"
10487
10488         if test "x$withval" != "x" ; then
10489              dir_user=$withval
10490         fi
10491
10492
10493 fi;
10494
10495 dir_group=
10496
10497 # Check whether --with-dir_group or --without-dir_group was given.
10498 if test "${with_dir_group+set}" = set; then
10499   withval="$with_dir_group"
10500
10501         if test "x$withval" != "x" ; then
10502              dir_group=$withval
10503         fi
10504
10505
10506 fi;
10507
10508 sd_user=
10509
10510 # Check whether --with-sd_user or --without-sd_user was given.
10511 if test "${with_sd_user+set}" = set; then
10512   withval="$with_sd_user"
10513
10514         if test "x$withval" != "x" ; then
10515              sd_user=$withval
10516         fi
10517
10518
10519 fi;
10520
10521 sd_group=
10522
10523 # Check whether --with-sd_group or --without-sd_group was given.
10524 if test "${with_sd_group+set}" = set; then
10525   withval="$with_sd_group"
10526
10527         if test "x$withval" != "x" ; then
10528              sd_group=$withval
10529         fi
10530
10531
10532 fi;
10533
10534 fd_user=
10535
10536 # Check whether --with-fd_user or --without-fd_user was given.
10537 if test "${with_fd_user+set}" = set; then
10538   withval="$with_fd_user"
10539
10540         if test "x$withval" != "x" ; then
10541              fd_user=$withval
10542         fi
10543
10544
10545 fi;
10546
10547 fd_group=
10548
10549 # Check whether --with-fd_group or --without-fd_group was given.
10550 if test "${with_fd_group+set}" = set; then
10551   withval="$with_fd_group"
10552
10553         if test "x$withval" != "x" ; then
10554              fd_group=$withval
10555         fi
10556
10557
10558 fi;
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570 #
10571 # allow setting default executable permissions
10572 #
10573 SBINPERM=0754
10574
10575 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10576 if test "${with_sbin_perm+set}" = set; then
10577   withval="$with_sbin_perm"
10578
10579         if test "x$withval" != "x" ; then
10580             SBINPERM=$withval
10581         fi
10582
10583
10584 fi;
10585
10586
10587
10588 # ------------------------------------------------
10589 # Bacula check for various SQL database engines
10590 # ------------------------------------------------
10591
10592 db_found=no
10593 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10594 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10595
10596 # Check whether --with-postgresql or --without-postgresql was given.
10597 if test "${with_postgresql+set}" = set; then
10598   withval="$with_postgresql"
10599
10600   if test "$withval" != "no"; then
10601       if test "$db_found" = "yes"; then
10602           echo "$as_me:$LINENO: result: error" >&5
10603 echo "${ECHO_T}error" >&6
10604           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10605 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10606    { (exit 1); exit 1; }; };
10607       fi
10608       if test "$withval" = "yes"; then
10609           if test -f /usr/local/include/libpq-fe.h; then
10610               POSTGRESQL_INCDIR=/usr/local/include
10611               POSTGRESQL_LIBDIR=/usr/local/lib
10612               POSTGRESQL_BINDIR=/usr/local/bin
10613           elif test -f /usr/include/libpq-fe.h; then
10614               POSTGRESQL_INCDIR=/usr/include
10615               POSTGRESQL_LIBDIR=/usr/lib
10616               POSTGRESQL_BINDIR=/usr/bin
10617           elif test -f /usr/include/pgsql/libpq-fe.h; then
10618               POSTGRESQL_INCDIR=/usr/include/pgsql
10619               POSTGRESQL_LIBDIR=/usr/lib/pgsql
10620               POSTGRESQL_BINDIR=/usr/bin
10621           elif test -f /usr/include/postgresql/libpq-fe.h; then
10622               POSTGRESQL_INCDIR=/usr/include/postgresql
10623               POSTGRESQL_LIBDIR=/usr/lib/postgresql
10624               POSTGRESQL_BINDIR=/usr/bin
10625           else
10626               echo "$as_me:$LINENO: result: no" >&5
10627 echo "${ECHO_T}no" >&6
10628               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10629 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10630    { (exit 1); exit 1; }; }
10631           fi
10632       elif test -f $withval/include/libpq-fe.h; then
10633           POSTGRESQL_INCDIR=$withval/include
10634           POSTGRESQL_LIBDIR=$withval/lib
10635           POSTGRESQL_BINDIR=$withval/bin
10636       elif test -f $withval/include/postgresql/libpq-fe.h; then
10637           POSTGRESQL_INCDIR=$withval/include/postgresql
10638           POSTGRESQL_LIBDIR=$withval/lib
10639           POSTGRESQL_BINDIR=$withval/bin
10640       else
10641           echo "$as_me:$LINENO: result: no" >&5
10642 echo "${ECHO_T}no" >&6
10643           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10644 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10645    { (exit 1); exit 1; }; }
10646       fi
10647       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10648       echo "$as_me:$LINENO: checking for crypt" >&5
10649 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10650 if test "${ac_cv_func_crypt+set}" = set; then
10651   echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653   cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h.  */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h.  */
10659 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10661 #define crypt innocuous_crypt
10662
10663 /* System header to define __stub macros and hopefully few prototypes,
10664     which can conflict with char crypt (); below.
10665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10666     <limits.h> exists even on freestanding compilers.  */
10667
10668 #ifdef __STDC__
10669 # include <limits.h>
10670 #else
10671 # include <assert.h>
10672 #endif
10673
10674 #undef crypt
10675
10676 /* Override any gcc2 internal prototype to avoid an error.  */
10677 #ifdef __cplusplus
10678 extern "C"
10679 {
10680 #endif
10681 /* We use char because int might match the return type of a gcc2
10682    builtin and then its argument prototype would still apply.  */
10683 char crypt ();
10684 /* The GNU C library defines this for functions which it implements
10685     to always fail with ENOSYS.  Some functions are actually named
10686     something starting with __ and the normal name is an alias.  */
10687 #if defined (__stub_crypt) || defined (__stub___crypt)
10688 choke me
10689 #else
10690 char (*f) () = crypt;
10691 #endif
10692 #ifdef __cplusplus
10693 }
10694 #endif
10695
10696 int
10697 main ()
10698 {
10699 return f != crypt;
10700   ;
10701   return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10706   (eval $ac_link) 2>conftest.er1
10707   ac_status=$?
10708   grep -v '^ *+' conftest.er1 >conftest.err
10709   rm -f conftest.er1
10710   cat conftest.err >&5
10711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); } &&
10713          { ac_try='test -z "$ac_c_werror_flag"
10714                          || test ! -s conftest.err'
10715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10716   (eval $ac_try) 2>&5
10717   ac_status=$?
10718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719   (exit $ac_status); }; } &&
10720          { ac_try='test -s conftest$ac_exeext'
10721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10722   (eval $ac_try) 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; }; then
10726   ac_cv_func_crypt=yes
10727 else
10728   echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10730
10731 ac_cv_func_crypt=no
10732 fi
10733 rm -f conftest.err conftest.$ac_objext \
10734       conftest$ac_exeext conftest.$ac_ext
10735 fi
10736 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10737 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10738 if test $ac_cv_func_crypt = yes; then
10739   :
10740 else
10741   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10742 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10743 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10744   echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746   ac_check_lib_save_LIBS=$LIBS
10747 LIBS="-lcrypt  $LIBS"
10748 cat >conftest.$ac_ext <<_ACEOF
10749 /* confdefs.h.  */
10750 _ACEOF
10751 cat confdefs.h >>conftest.$ac_ext
10752 cat >>conftest.$ac_ext <<_ACEOF
10753 /* end confdefs.h.  */
10754
10755 /* Override any gcc2 internal prototype to avoid an error.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 /* We use char because int might match the return type of a gcc2
10760    builtin and then its argument prototype would still apply.  */
10761 char crypt ();
10762 int
10763 main ()
10764 {
10765 crypt ();
10766   ;
10767   return 0;
10768 }
10769 _ACEOF
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10772   (eval $ac_link) 2>conftest.er1
10773   ac_status=$?
10774   grep -v '^ *+' conftest.er1 >conftest.err
10775   rm -f conftest.er1
10776   cat conftest.err >&5
10777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778   (exit $ac_status); } &&
10779          { ac_try='test -z "$ac_c_werror_flag"
10780                          || test ! -s conftest.err'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; } &&
10786          { ac_try='test -s conftest$ac_exeext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_cv_lib_crypt_crypt=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 ac_cv_lib_crypt_crypt=no
10798 fi
10799 rm -f conftest.err conftest.$ac_objext \
10800       conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10802 fi
10803 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10804 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10805 if test $ac_cv_lib_crypt_crypt = yes; then
10806   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10807 fi
10808
10809 fi
10810
10811       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10812       SQL_LFLAGS=$POSTGRESQL_LFLAGS
10813       SQL_BINDIR=$POSTGRESQL_BINDIR
10814       cat >>confdefs.h <<\_ACEOF
10815 #define HAVE_POSTGRESQL 1
10816 _ACEOF
10817
10818       echo "$as_me:$LINENO: result: yes" >&5
10819 echo "${ECHO_T}yes" >&6
10820       db_found=yes
10821       support_postgresql=yes
10822       db_name=PostgreSQL
10823       DB_NAME=postgresql
10824   else
10825       echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10827   fi
10828
10829 else
10830
10831   echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6
10833
10834 fi;
10835
10836
10837
10838
10839
10840
10841
10842 db_found=no
10843 echo "$as_me:$LINENO: checking for MySQL support" >&5
10844 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10845
10846 # Check whether --with-mysql or --without-mysql was given.
10847 if test "${with_mysql+set}" = set; then
10848   withval="$with_mysql"
10849
10850   if test "$withval" != "no"; then
10851         if test "$withval" = "yes"; then
10852                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10853                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10854                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10855                         MYSQL_BINDIR=/usr/local/mysql/bin
10856                 elif test -f /usr/include/mysql/mysql.h; then
10857                         MYSQL_INCDIR=/usr/include/mysql
10858                         MYSQL_LIBDIR=/usr/lib/mysql
10859                         MYSQL_BINDIR=/usr/bin
10860                 elif test -f /usr/include/mysql.h; then
10861                         MYSQL_INCDIR=/usr/include
10862                         MYSQL_LIBDIR=/usr/lib
10863                         MYSQL_BINDIR=/usr/bin
10864                 elif test -f /usr/local/include/mysql/mysql.h; then
10865                         MYSQL_INCDIR=/usr/local/include/mysql
10866                         MYSQL_LIBDIR=/usr/local/lib/mysql
10867                         MYSQL_BINDIR=/usr/local/bin
10868                 elif test -f /usr/local/include/mysql.h; then
10869                         MYSQL_INCDIR=/usr/local/include
10870                         MYSQL_LIBDIR=/usr/local/lib
10871                         MYSQL_BINDIR=/usr/local/bin
10872                 else
10873                    echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6
10875                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10876 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10877    { (exit 1); exit 1; }; }
10878                 fi
10879         else
10880                 if test -f $withval/include/mysql/mysql.h; then
10881                         MYSQL_INCDIR=$withval/include/mysql
10882                         MYSQL_LIBDIR=$withval/lib/mysql
10883                         MYSQL_BINDIR=$withval/bin
10884                 elif test -f $withval/include/mysql.h; then
10885                         MYSQL_INCDIR=$withval/include
10886                         MYSQL_LIBDIR=$withval/lib
10887                         MYSQL_BINDIR=$withval/bin
10888                 else
10889                    echo "$as_me:$LINENO: result: no" >&5
10890 echo "${ECHO_T}no" >&6
10891                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10892 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10893    { (exit 1); exit 1; }; }
10894                 fi
10895         fi
10896     SQL_INCLUDE=-I$MYSQL_INCDIR
10897     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10898        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10899        cat >>confdefs.h <<\_ACEOF
10900 #define HAVE_THREAD_SAFE_MYSQL 1
10901 _ACEOF
10902
10903     else
10904        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10905     fi
10906     SQL_BINDIR=$MYSQL_BINDIR
10907
10908     cat >>confdefs.h <<\_ACEOF
10909 #define HAVE_MYSQL 1
10910 _ACEOF
10911
10912     echo "$as_me:$LINENO: result: yes" >&5
10913 echo "${ECHO_T}yes" >&6
10914     db_found=yes
10915     support_mysql=yes
10916     db_name=MySQL
10917     DB_NAME=mysql
10918
10919   else
10920         echo "$as_me:$LINENO: result: no" >&5
10921 echo "${ECHO_T}no" >&6
10922   fi
10923
10924
10925 fi;
10926
10927
10928 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10929 if test "${with_embedded_mysql+set}" = set; then
10930   withval="$with_embedded_mysql"
10931
10932   if test "$withval" != "no"; then
10933         if test "$withval" = "yes"; then
10934                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10935                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10936                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10937                         MYSQL_BINDIR=/usr/local/mysql/bin
10938                 elif test -f /usr/include/mysql/mysql.h; then
10939                         MYSQL_INCDIR=/usr/include/mysql
10940                         MYSQL_LIBDIR=/usr/lib/mysql
10941                         MYSQL_BINDIR=/usr/bin
10942                 elif test -f /usr/include/mysql.h; then
10943                         MYSQL_INCDIR=/usr/include
10944                         MYSQL_LIBDIR=/usr/lib
10945                         MYSQL_BINDIR=/usr/bin
10946                 elif test -f /usr/local/include/mysql/mysql.h; then
10947                         MYSQL_INCDIR=/usr/local/include/mysql
10948                         MYSQL_LIBDIR=/usr/local/lib/mysql
10949                         MYSQL_BINDIR=/usr/local/bin
10950                 elif test -f /usr/local/include/mysql.h; then
10951                         MYSQL_INCDIR=/usr/local/include
10952                         MYSQL_LIBDIR=/usr/local/lib
10953                         MYSQL_BINDIR=/usr/local/bin
10954                 else
10955                    echo "$as_me:$LINENO: result: no" >&5
10956 echo "${ECHO_T}no" >&6
10957                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10958 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10959    { (exit 1); exit 1; }; }
10960                 fi
10961         else
10962                 if test -f $withval/include/mysql/mysql.h; then
10963                         MYSQL_INCDIR=$withval/include/mysql
10964                         MYSQL_LIBDIR=$withval/lib/mysql
10965                         MYSQL_BINDIR=$withval/bin
10966                 elif test -f $withval/include/mysql.h; then
10967                         MYSQL_INCDIR=$withval/include
10968                         MYSQL_LIBDIR=$withval/lib
10969                         MYSQL_BINDIR=$withval/bin
10970                 else
10971                    echo "$as_me:$LINENO: result: no" >&5
10972 echo "${ECHO_T}no" >&6
10973                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10974 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10975    { (exit 1); exit 1; }; }
10976                 fi
10977         fi
10978     SQL_INCLUDE=-I$MYSQL_INCDIR
10979     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10980     SQL_BINDIR=$MYSQL_BINDIR
10981
10982     cat >>confdefs.h <<\_ACEOF
10983 #define HAVE_MYSQL 1
10984 _ACEOF
10985
10986     cat >>confdefs.h <<\_ACEOF
10987 #define HAVE_EMBEDDED_MYSQL 1
10988 _ACEOF
10989
10990     echo "$as_me:$LINENO: result: yes" >&5
10991 echo "${ECHO_T}yes" >&6
10992     db_found=yes
10993     support_mysql=yes
10994     db_name=MySQL
10995     DB_NAME=mysql
10996
10997   else
10998         echo "$as_me:$LINENO: result: no" >&5
10999 echo "${ECHO_T}no" >&6
11000   fi
11001
11002
11003 fi;
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013 db_found=no
11014 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
11015 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
11016
11017 # Check whether --with-sqlite3 or --without-sqlite3 was given.
11018 if test "${with_sqlite3+set}" = set; then
11019   withval="$with_sqlite3"
11020
11021   if test "$withval" != "no"; then
11022      if test "$withval" = "yes"; then
11023         if test -f /usr/local/include/sqlite3.h; then
11024            SQLITE_INCDIR=/usr/local/include
11025            SQLITE_LIBDIR=/usr/local/lib
11026            SQLITE_BINDIR=/usr/local/bin
11027         elif test -f /usr/include/sqlite3.h; then
11028            SQLITE_INCDIR=/usr/include
11029            SQLITE_LIBDIR=/usr/lib
11030            SQLITE_BINDIR=/usr/bin
11031         elif test -f $prefix/include/sqlite3.h; then
11032            SQLITE_INCDIR=$prefix/include
11033            SQLITE_LIBDIR=$prefix/lib
11034            SQLITE_BINDIR=$prefix/bin
11035         else
11036            echo "$as_me:$LINENO: result: no" >&5
11037 echo "${ECHO_T}no" >&6
11038            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
11039 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
11040    { (exit 1); exit 1; }; }
11041         fi
11042      else
11043         if test -f $withval/sqlite3.h; then
11044            SQLITE_INCDIR=$withval
11045            SQLITE_LIBDIR=$withval
11046            SQLITE_BINDIR=$withval
11047         elif test -f $withval/include/sqlite3.h; then
11048            SQLITE_INCDIR=$withval/include
11049            SQLITE_LIBDIR=$withval/lib
11050            SQLITE_BINDIR=$withval/bin
11051         else
11052            echo "$as_me:$LINENO: result: no" >&5
11053 echo "${ECHO_T}no" >&6
11054            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11055 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11056    { (exit 1); exit 1; }; }
11057         fi
11058      fi
11059      SQL_INCLUDE=-I$SQLITE_INCDIR
11060      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11061      SQL_BINDIR=$SQLITE_BINDIR
11062
11063      cat >>confdefs.h <<\_ACEOF
11064 #define HAVE_SQLITE3 1
11065 _ACEOF
11066
11067      echo "$as_me:$LINENO: result: yes" >&5
11068 echo "${ECHO_T}yes" >&6
11069      db_found=yes
11070      support_sqlite3=yes
11071      db_name=SQLite3
11072      DB_NAME=sqlite3
11073
11074   else
11075      echo "$as_me:$LINENO: result: no" >&5
11076 echo "${ECHO_T}no" >&6
11077   fi
11078
11079 else
11080
11081   echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6
11083
11084 fi;
11085
11086
11087
11088
11089
11090
11091
11092 db_found=no
11093 echo "$as_me:$LINENO: checking for SQLite support" >&5
11094 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11095
11096 # Check whether --with-sqlite or --without-sqlite was given.
11097 if test "${with_sqlite+set}" = set; then
11098   withval="$with_sqlite"
11099
11100   if test "$withval" != "no"; then
11101      if test "$withval" = "yes"; then
11102         if test -f /usr/local/include/sqlite.h; then
11103            SQLITE_INCDIR=/usr/local/include
11104            SQLITE_LIBDIR=/usr/local/lib
11105            SQLITE_BINDIR=/usr/local/bin
11106         elif test -f /usr/include/sqlite.h; then
11107            SQLITE_INCDIR=/usr/include
11108            SQLITE_LIBDIR=/usr/lib
11109            SQLITE_BINDIR=/usr/bin
11110         elif test -f $prefix/include/sqlite.h; then
11111            SQLITE_INCDIR=$prefix/include
11112            SQLITE_LIBDIR=$prefix/lib
11113            SQLITE_BINDIR=$prefix/bin
11114         else
11115            echo "$as_me:$LINENO: result: no" >&5
11116 echo "${ECHO_T}no" >&6
11117            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11118 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11119    { (exit 1); exit 1; }; }
11120         fi
11121      else
11122         if test -f $withval/sqlite.h; then
11123            SQLITE_INCDIR=$withval
11124            SQLITE_LIBDIR=$withval
11125            SQLITE_BINDIR=$withval
11126         elif test -f $withval/include/sqlite.h; then
11127            SQLITE_INCDIR=$withval/include
11128            SQLITE_LIBDIR=$withval/lib
11129            SQLITE_BINDIR=$withval/bin
11130         else
11131            echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6
11133            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11134 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11135    { (exit 1); exit 1; }; }
11136         fi
11137      fi
11138      SQL_INCLUDE=-I$SQLITE_INCDIR
11139      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11140      SQL_BINDIR=$SQLITE_BINDIR
11141
11142      cat >>confdefs.h <<\_ACEOF
11143 #define HAVE_SQLITE 1
11144 _ACEOF
11145
11146      echo "$as_me:$LINENO: result: yes" >&5
11147 echo "${ECHO_T}yes" >&6
11148      db_found=yes
11149      support_sqlite=yes
11150      db_name=SQLite
11151      DB_NAME=sqlite
11152
11153   else
11154      echo "$as_me:$LINENO: result: no" >&5
11155 echo "${ECHO_T}no" >&6
11156   fi
11157
11158 else
11159
11160   echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6
11162
11163 fi;
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173 cat >>confdefs.h <<\_ACEOF
11174 #define PROTOTYPES 1
11175 _ACEOF
11176
11177
11178 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11179     if test -z "$CCOPTS"; then
11180         CCOPTS='-g -O2 -Wall'
11181     fi
11182     CFLAGS="$CCOPTS"
11183 fi
11184
11185
11186
11187
11188 largefile_support="no"
11189
11190    # Check whether --enable-largefile or --disable-largefile was given.
11191 if test "${enable_largefile+set}" = set; then
11192   enableval="$enable_largefile"
11193
11194 fi;
11195    if test "$enable_largefile" != no; then
11196      if test -n "$ac_tool_prefix"; then
11197   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11198 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11199 echo "$as_me:$LINENO: checking for $ac_word" >&5
11200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11201 if test "${ac_cv_prog_GETCONF+set}" = set; then
11202   echo $ECHO_N "(cached) $ECHO_C" >&6
11203 else
11204   if test -n "$GETCONF"; then
11205   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11206 else
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11209 do
11210   IFS=$as_save_IFS
11211   test -z "$as_dir" && as_dir=.
11212   for ac_exec_ext in '' $ac_executable_extensions; do
11213   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11216     break 2
11217   fi
11218 done
11219 done
11220
11221 fi
11222 fi
11223 GETCONF=$ac_cv_prog_GETCONF
11224 if test -n "$GETCONF"; then
11225   echo "$as_me:$LINENO: result: $GETCONF" >&5
11226 echo "${ECHO_T}$GETCONF" >&6
11227 else
11228   echo "$as_me:$LINENO: result: no" >&5
11229 echo "${ECHO_T}no" >&6
11230 fi
11231
11232 fi
11233 if test -z "$ac_cv_prog_GETCONF"; then
11234   ac_ct_GETCONF=$GETCONF
11235   # Extract the first word of "getconf", so it can be a program name with args.
11236 set dummy getconf; ac_word=$2
11237 echo "$as_me:$LINENO: checking for $ac_word" >&5
11238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11239 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11240   echo $ECHO_N "(cached) $ECHO_C" >&6
11241 else
11242   if test -n "$ac_ct_GETCONF"; then
11243   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11244 else
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248   IFS=$as_save_IFS
11249   test -z "$as_dir" && as_dir=.
11250   for ac_exec_ext in '' $ac_executable_extensions; do
11251   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11252     ac_cv_prog_ac_ct_GETCONF="getconf"
11253     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11254     break 2
11255   fi
11256 done
11257 done
11258
11259 fi
11260 fi
11261 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11262 if test -n "$ac_ct_GETCONF"; then
11263   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11264 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11265 else
11266   echo "$as_me:$LINENO: result: no" >&5
11267 echo "${ECHO_T}no" >&6
11268 fi
11269
11270   GETCONF=$ac_ct_GETCONF
11271 else
11272   GETCONF="$ac_cv_prog_GETCONF"
11273 fi
11274
11275      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11276 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11277 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11278   echo $ECHO_N "(cached) $ECHO_C" >&6
11279 else
11280   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11281         ac_cv_sys_largefile_CFLAGS=no
11282         case "$host_os" in
11283            # IRIX 6.2 and later require cc -n32.
11284            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11285              if test "$GCC" != yes; then
11286                ac_cv_sys_largefile_CFLAGS=-n32
11287              fi
11288              ac_save_CC="$CC"
11289              CC="$CC $ac_cv_sys_largefile_CFLAGS"
11290              cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h.  */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h.  */
11296
11297 int
11298 main ()
11299 {
11300
11301   ;
11302   return 0;
11303 }
11304 _ACEOF
11305 rm -f conftest.$ac_objext conftest$ac_exeext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11307   (eval $ac_link) 2>conftest.er1
11308   ac_status=$?
11309   grep -v '^ *+' conftest.er1 >conftest.err
11310   rm -f conftest.er1
11311   cat conftest.err >&5
11312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313   (exit $ac_status); } &&
11314          { ac_try='test -z "$ac_c_werror_flag"
11315                          || test ! -s conftest.err'
11316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11317   (eval $ac_try) 2>&5
11318   ac_status=$?
11319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320   (exit $ac_status); }; } &&
11321          { ac_try='test -s conftest$ac_exeext'
11322   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323   (eval $ac_try) 2>&5
11324   ac_status=$?
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); }; }; then
11327   :
11328 else
11329   echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11331
11332 ac_cv_sys_largefile_CFLAGS=no
11333 fi
11334 rm -f conftest.err conftest.$ac_objext \
11335       conftest$ac_exeext conftest.$ac_ext
11336              CC="$ac_save_CC"
11337            esac
11338       }
11339 fi
11340 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11341 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11342      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11343 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11344 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11345   echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11348         ac_cv_sys_largefile_LDFLAGS=no
11349
11350       }
11351 fi
11352 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11353 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11354      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11355 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11356 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11357   echo $ECHO_N "(cached) $ECHO_C" >&6
11358 else
11359   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11360         ac_cv_sys_largefile_LIBS=no
11361
11362       }
11363 fi
11364 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11365 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11366
11367      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11368        case "$ac_flag" in
11369        no) ;;
11370        -D_FILE_OFFSET_BITS=*) ;;
11371        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11372        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11373        -D?* | -I?*)
11374          case "$ac_flag" in
11375    no) ;;
11376    ?*)
11377      case "$CPPFLAGS" in
11378      '') CPPFLAGS="$ac_flag" ;;
11379      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11380      esac ;;
11381    esac ;;
11382        *)
11383          case "$ac_flag" in
11384    no) ;;
11385    ?*)
11386      case "$CFLAGS" in
11387      '') CFLAGS="$ac_flag" ;;
11388      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11389      esac ;;
11390    esac ;;
11391        esac
11392      done
11393      case "$ac_cv_sys_largefile_LDFLAGS" in
11394    no) ;;
11395    ?*)
11396      case "$LDFLAGS" in
11397      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11398      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11399      esac ;;
11400    esac
11401      case "$ac_cv_sys_largefile_LIBS" in
11402    no) ;;
11403    ?*)
11404      case "$LIBS" in
11405      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11406      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11407      esac ;;
11408    esac
11409      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11410 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11411 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11412   echo $ECHO_N "(cached) $ECHO_C" >&6
11413 else
11414   ac_cv_sys_file_offset_bits=no
11415       ac_cv_sys_file_offset_bits=64
11416       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11417         case "$ac_flag" in
11418         -D_FILE_OFFSET_BITS)
11419           ac_cv_sys_file_offset_bits=1 ;;
11420         -D_FILE_OFFSET_BITS=*)
11421           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11422         esac
11423       done
11424
11425 fi
11426 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11427 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11428    if test "$ac_cv_sys_file_offset_bits" != no; then
11429
11430 cat >>confdefs.h <<_ACEOF
11431 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11432 _ACEOF
11433
11434    fi
11435      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11436 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11437 if test "${ac_cv_sys_largefile_source+set}" = set; then
11438   echo $ECHO_N "(cached) $ECHO_C" >&6
11439 else
11440   ac_cv_sys_largefile_source=no
11441       ac_cv_sys_largefile_source=1
11442       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11443         case "$ac_flag" in
11444         -D_LARGEFILE_SOURCE)
11445           ac_cv_sys_largefile_source=1 ;;
11446         -D_LARGEFILE_SOURCE=*)
11447           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11448         esac
11449       done
11450
11451 fi
11452 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11453 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11454    if test "$ac_cv_sys_largefile_source" != no; then
11455
11456 cat >>confdefs.h <<_ACEOF
11457 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11458 _ACEOF
11459
11460    fi
11461      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11462 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11463 if test "${ac_cv_sys_large_files+set}" = set; then
11464   echo $ECHO_N "(cached) $ECHO_C" >&6
11465 else
11466   ac_cv_sys_large_files=no
11467       ac_cv_sys_large_files=1
11468       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11469         case "$ac_flag" in
11470         -D_LARGE_FILES)
11471           ac_cv_sys_large_files=1 ;;
11472         -D_LARGE_FILES=*)
11473           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11474         esac
11475       done
11476
11477 fi
11478 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11479 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11480    if test "$ac_cv_sys_large_files" != no; then
11481
11482 cat >>confdefs.h <<_ACEOF
11483 #define _LARGE_FILES $ac_cv_sys_large_files
11484 _ACEOF
11485
11486    fi
11487    fi
11488
11489
11490
11491 echo "$as_me:$LINENO: checking for X" >&5
11492 echo $ECHO_N "checking for X... $ECHO_C" >&6
11493
11494
11495 # Check whether --with-x or --without-x was given.
11496 if test "${with_x+set}" = set; then
11497   withval="$with_x"
11498
11499 fi;
11500 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11501 if test "x$with_x" = xno; then
11502   # The user explicitly disabled X.
11503   have_x=disabled
11504 else
11505   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11506     # Both variables are already set.
11507     have_x=yes
11508   else
11509     if test "${ac_cv_have_x+set}" = set; then
11510   echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512   # One or both of the vars are not set, and there is no cached value.
11513 ac_x_includes=no ac_x_libraries=no
11514 rm -fr conftest.dir
11515 if mkdir conftest.dir; then
11516   cd conftest.dir
11517   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11518   cat >Imakefile <<'_ACEOF'
11519 acfindx:
11520         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11521 _ACEOF
11522   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11523     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11524     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11525     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11526     for ac_extension in a so sl; do
11527       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11528          test -f $ac_im_libdir/libX11.$ac_extension; then
11529         ac_im_usrlibdir=$ac_im_libdir; break
11530       fi
11531     done
11532     # Screen out bogus values from the imake configuration.  They are
11533     # bogus both because they are the default anyway, and because
11534     # using them would break gcc on systems where it needs fixed includes.
11535     case $ac_im_incroot in
11536         /usr/include) ;;
11537         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11538     esac
11539     case $ac_im_usrlibdir in
11540         /usr/lib | /lib) ;;
11541         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11542     esac
11543   fi
11544   cd ..
11545   rm -fr conftest.dir
11546 fi
11547
11548 # Standard set of common directories for X headers.
11549 # Check X11 before X11Rn because it is often a symlink to the current release.
11550 ac_x_header_dirs='
11551 /usr/X11/include
11552 /usr/X11R6/include
11553 /usr/X11R5/include
11554 /usr/X11R4/include
11555
11556 /usr/include/X11
11557 /usr/include/X11R6
11558 /usr/include/X11R5
11559 /usr/include/X11R4
11560
11561 /usr/local/X11/include
11562 /usr/local/X11R6/include
11563 /usr/local/X11R5/include
11564 /usr/local/X11R4/include
11565
11566 /usr/local/include/X11
11567 /usr/local/include/X11R6
11568 /usr/local/include/X11R5
11569 /usr/local/include/X11R4
11570
11571 /usr/X386/include
11572 /usr/x386/include
11573 /usr/XFree86/include/X11
11574
11575 /usr/include
11576 /usr/local/include
11577 /usr/unsupported/include
11578 /usr/athena/include
11579 /usr/local/x11r5/include
11580 /usr/lpp/Xamples/include
11581
11582 /usr/openwin/include
11583 /usr/openwin/share/include'
11584
11585 if test "$ac_x_includes" = no; then
11586   # Guess where to find include files, by looking for Intrinsic.h.
11587   # First, try using that file with no special directory specified.
11588   cat >conftest.$ac_ext <<_ACEOF
11589 /* confdefs.h.  */
11590 _ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h.  */
11594 #include <X11/Intrinsic.h>
11595 _ACEOF
11596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11597   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11598   ac_status=$?
11599   grep -v '^ *+' conftest.er1 >conftest.err
11600   rm -f conftest.er1
11601   cat conftest.err >&5
11602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603   (exit $ac_status); } >/dev/null; then
11604   if test -s conftest.err; then
11605     ac_cpp_err=$ac_c_preproc_warn_flag
11606     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11607   else
11608     ac_cpp_err=
11609   fi
11610 else
11611   ac_cpp_err=yes
11612 fi
11613 if test -z "$ac_cpp_err"; then
11614   # We can compile using X headers with no special include directory.
11615 ac_x_includes=
11616 else
11617   echo "$as_me: failed program was:" >&5
11618 sed 's/^/| /' conftest.$ac_ext >&5
11619
11620   for ac_dir in $ac_x_header_dirs; do
11621   if test -r "$ac_dir/X11/Intrinsic.h"; then
11622     ac_x_includes=$ac_dir
11623     break
11624   fi
11625 done
11626 fi
11627 rm -f conftest.err conftest.$ac_ext
11628 fi # $ac_x_includes = no
11629
11630 if test "$ac_x_libraries" = no; then
11631   # Check for the libraries.
11632   # See if we find them without any special options.
11633   # Don't add to $LIBS permanently.
11634   ac_save_LIBS=$LIBS
11635   LIBS="-lXt $LIBS"
11636   cat >conftest.$ac_ext <<_ACEOF
11637 /* confdefs.h.  */
11638 _ACEOF
11639 cat confdefs.h >>conftest.$ac_ext
11640 cat >>conftest.$ac_ext <<_ACEOF
11641 /* end confdefs.h.  */
11642 #include <X11/Intrinsic.h>
11643 int
11644 main ()
11645 {
11646 XtMalloc (0)
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653   (eval $ac_link) 2>conftest.er1
11654   ac_status=$?
11655   grep -v '^ *+' conftest.er1 >conftest.err
11656   rm -f conftest.er1
11657   cat conftest.err >&5
11658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659   (exit $ac_status); } &&
11660          { ac_try='test -z "$ac_c_werror_flag"
11661                          || test ! -s conftest.err'
11662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663   (eval $ac_try) 2>&5
11664   ac_status=$?
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); }; } &&
11667          { ac_try='test -s conftest$ac_exeext'
11668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669   (eval $ac_try) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); }; }; then
11673   LIBS=$ac_save_LIBS
11674 # We can link X programs with no special library path.
11675 ac_x_libraries=
11676 else
11677   echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 LIBS=$ac_save_LIBS
11681 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11682 do
11683   # Don't even attempt the hair of trying to link an X program!
11684   for ac_extension in a so sl; do
11685     if test -r $ac_dir/libXt.$ac_extension; then
11686       ac_x_libraries=$ac_dir
11687       break 2
11688     fi
11689   done
11690 done
11691 fi
11692 rm -f conftest.err conftest.$ac_objext \
11693       conftest$ac_exeext conftest.$ac_ext
11694 fi # $ac_x_libraries = no
11695
11696 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11697   # Didn't find X anywhere.  Cache the known absence of X.
11698   ac_cv_have_x="have_x=no"
11699 else
11700   # Record where we found X for the cache.
11701   ac_cv_have_x="have_x=yes \
11702                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11703 fi
11704 fi
11705
11706   fi
11707   eval "$ac_cv_have_x"
11708 fi # $with_x != no
11709
11710 if test "$have_x" != yes; then
11711   echo "$as_me:$LINENO: result: $have_x" >&5
11712 echo "${ECHO_T}$have_x" >&6
11713   no_x=yes
11714 else
11715   # If each of the values was on the command line, it overrides each guess.
11716   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11717   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11718   # Update the cache value to reflect the command line values.
11719   ac_cv_have_x="have_x=yes \
11720                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11721   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11722 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11723 fi
11724
11725 if test "$no_x" = yes; then
11726   # Not all programs may use this symbol, but it does not hurt to define it.
11727
11728 cat >>confdefs.h <<\_ACEOF
11729 #define X_DISPLAY_MISSING 1
11730 _ACEOF
11731
11732   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11733 else
11734   if test -n "$x_includes"; then
11735     X_CFLAGS="$X_CFLAGS -I$x_includes"
11736   fi
11737
11738   # It would also be nice to do this for all -L options, not just this one.
11739   if test -n "$x_libraries"; then
11740     X_LIBS="$X_LIBS -L$x_libraries"
11741     # For Solaris; some versions of Sun CC require a space after -R and
11742     # others require no space.  Words are not sufficient . . . .
11743     case `(uname -sr) 2>/dev/null` in
11744     "SunOS 5"*)
11745       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11746 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11747       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11748       cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h.  */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h.  */
11754
11755 int
11756 main ()
11757 {
11758
11759   ;
11760   return 0;
11761 }
11762 _ACEOF
11763 rm -f conftest.$ac_objext conftest$ac_exeext
11764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765   (eval $ac_link) 2>conftest.er1
11766   ac_status=$?
11767   grep -v '^ *+' conftest.er1 >conftest.err
11768   rm -f conftest.er1
11769   cat conftest.err >&5
11770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771   (exit $ac_status); } &&
11772          { ac_try='test -z "$ac_c_werror_flag"
11773                          || test ! -s conftest.err'
11774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775   (eval $ac_try) 2>&5
11776   ac_status=$?
11777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778   (exit $ac_status); }; } &&
11779          { ac_try='test -s conftest$ac_exeext'
11780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11781   (eval $ac_try) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); }; }; then
11785   ac_R_nospace=yes
11786 else
11787   echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_R_nospace=no
11791 fi
11792 rm -f conftest.err conftest.$ac_objext \
11793       conftest$ac_exeext conftest.$ac_ext
11794       if test $ac_R_nospace = yes; then
11795         echo "$as_me:$LINENO: result: no" >&5
11796 echo "${ECHO_T}no" >&6
11797         X_LIBS="$X_LIBS -R$x_libraries"
11798       else
11799         LIBS="$ac_xsave_LIBS -R $x_libraries"
11800         cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 int
11808 main ()
11809 {
11810
11811   ;
11812   return 0;
11813 }
11814 _ACEOF
11815 rm -f conftest.$ac_objext conftest$ac_exeext
11816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11817   (eval $ac_link) 2>conftest.er1
11818   ac_status=$?
11819   grep -v '^ *+' conftest.er1 >conftest.err
11820   rm -f conftest.er1
11821   cat conftest.err >&5
11822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823   (exit $ac_status); } &&
11824          { ac_try='test -z "$ac_c_werror_flag"
11825                          || test ! -s conftest.err'
11826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11827   (eval $ac_try) 2>&5
11828   ac_status=$?
11829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830   (exit $ac_status); }; } &&
11831          { ac_try='test -s conftest$ac_exeext'
11832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11833   (eval $ac_try) 2>&5
11834   ac_status=$?
11835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836   (exit $ac_status); }; }; then
11837   ac_R_space=yes
11838 else
11839   echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11841
11842 ac_R_space=no
11843 fi
11844 rm -f conftest.err conftest.$ac_objext \
11845       conftest$ac_exeext conftest.$ac_ext
11846         if test $ac_R_space = yes; then
11847           echo "$as_me:$LINENO: result: yes" >&5
11848 echo "${ECHO_T}yes" >&6
11849           X_LIBS="$X_LIBS -R $x_libraries"
11850         else
11851           echo "$as_me:$LINENO: result: neither works" >&5
11852 echo "${ECHO_T}neither works" >&6
11853         fi
11854       fi
11855       LIBS=$ac_xsave_LIBS
11856     esac
11857   fi
11858
11859   # Check for system-dependent libraries X programs must link with.
11860   # Do this before checking for the system-independent R6 libraries
11861   # (-lICE), since we may need -lsocket or whatever for X linking.
11862
11863   if test "$ISC" = yes; then
11864     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11865   else
11866     # Martyn Johnson says this is needed for Ultrix, if the X
11867     # libraries were built with DECnet support.  And Karl Berry says
11868     # the Alpha needs dnet_stub (dnet does not exist).
11869     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11870     cat >conftest.$ac_ext <<_ACEOF
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876
11877 /* Override any gcc2 internal prototype to avoid an error.  */
11878 #ifdef __cplusplus
11879 extern "C"
11880 #endif
11881 /* We use char because int might match the return type of a gcc2
11882    builtin and then its argument prototype would still apply.  */
11883 char XOpenDisplay ();
11884 int
11885 main ()
11886 {
11887 XOpenDisplay ();
11888   ;
11889   return 0;
11890 }
11891 _ACEOF
11892 rm -f conftest.$ac_objext conftest$ac_exeext
11893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11894   (eval $ac_link) 2>conftest.er1
11895   ac_status=$?
11896   grep -v '^ *+' conftest.er1 >conftest.err
11897   rm -f conftest.er1
11898   cat conftest.err >&5
11899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900   (exit $ac_status); } &&
11901          { ac_try='test -z "$ac_c_werror_flag"
11902                          || test ! -s conftest.err'
11903   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904   (eval $ac_try) 2>&5
11905   ac_status=$?
11906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907   (exit $ac_status); }; } &&
11908          { ac_try='test -s conftest$ac_exeext'
11909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910   (eval $ac_try) 2>&5
11911   ac_status=$?
11912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913   (exit $ac_status); }; }; then
11914   :
11915 else
11916   echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11918
11919 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11920 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11921 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11922   echo $ECHO_N "(cached) $ECHO_C" >&6
11923 else
11924   ac_check_lib_save_LIBS=$LIBS
11925 LIBS="-ldnet  $LIBS"
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h.  */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h.  */
11932
11933 /* Override any gcc2 internal prototype to avoid an error.  */
11934 #ifdef __cplusplus
11935 extern "C"
11936 #endif
11937 /* We use char because int might match the return type of a gcc2
11938    builtin and then its argument prototype would still apply.  */
11939 char dnet_ntoa ();
11940 int
11941 main ()
11942 {
11943 dnet_ntoa ();
11944   ;
11945   return 0;
11946 }
11947 _ACEOF
11948 rm -f conftest.$ac_objext conftest$ac_exeext
11949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11950   (eval $ac_link) 2>conftest.er1
11951   ac_status=$?
11952   grep -v '^ *+' conftest.er1 >conftest.err
11953   rm -f conftest.er1
11954   cat conftest.err >&5
11955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956   (exit $ac_status); } &&
11957          { ac_try='test -z "$ac_c_werror_flag"
11958                          || test ! -s conftest.err'
11959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960   (eval $ac_try) 2>&5
11961   ac_status=$?
11962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963   (exit $ac_status); }; } &&
11964          { ac_try='test -s conftest$ac_exeext'
11965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11966   (eval $ac_try) 2>&5
11967   ac_status=$?
11968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969   (exit $ac_status); }; }; then
11970   ac_cv_lib_dnet_dnet_ntoa=yes
11971 else
11972   echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11974
11975 ac_cv_lib_dnet_dnet_ntoa=no
11976 fi
11977 rm -f conftest.err conftest.$ac_objext \
11978       conftest$ac_exeext conftest.$ac_ext
11979 LIBS=$ac_check_lib_save_LIBS
11980 fi
11981 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11982 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11983 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11984   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11985 fi
11986
11987     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11988       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11989 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11990 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11991   echo $ECHO_N "(cached) $ECHO_C" >&6
11992 else
11993   ac_check_lib_save_LIBS=$LIBS
11994 LIBS="-ldnet_stub  $LIBS"
11995 cat >conftest.$ac_ext <<_ACEOF
11996 /* confdefs.h.  */
11997 _ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h.  */
12001
12002 /* Override any gcc2 internal prototype to avoid an error.  */
12003 #ifdef __cplusplus
12004 extern "C"
12005 #endif
12006 /* We use char because int might match the return type of a gcc2
12007    builtin and then its argument prototype would still apply.  */
12008 char dnet_ntoa ();
12009 int
12010 main ()
12011 {
12012 dnet_ntoa ();
12013   ;
12014   return 0;
12015 }
12016 _ACEOF
12017 rm -f conftest.$ac_objext conftest$ac_exeext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12019   (eval $ac_link) 2>conftest.er1
12020   ac_status=$?
12021   grep -v '^ *+' conftest.er1 >conftest.err
12022   rm -f conftest.er1
12023   cat conftest.err >&5
12024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025   (exit $ac_status); } &&
12026          { ac_try='test -z "$ac_c_werror_flag"
12027                          || test ! -s conftest.err'
12028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029   (eval $ac_try) 2>&5
12030   ac_status=$?
12031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032   (exit $ac_status); }; } &&
12033          { ac_try='test -s conftest$ac_exeext'
12034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035   (eval $ac_try) 2>&5
12036   ac_status=$?
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); }; }; then
12039   ac_cv_lib_dnet_stub_dnet_ntoa=yes
12040 else
12041   echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.$ac_ext >&5
12043
12044 ac_cv_lib_dnet_stub_dnet_ntoa=no
12045 fi
12046 rm -f conftest.err conftest.$ac_objext \
12047       conftest$ac_exeext conftest.$ac_ext
12048 LIBS=$ac_check_lib_save_LIBS
12049 fi
12050 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12051 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
12052 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12053   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12054 fi
12055
12056     fi
12057 fi
12058 rm -f conftest.err conftest.$ac_objext \
12059       conftest$ac_exeext conftest.$ac_ext
12060     LIBS="$ac_xsave_LIBS"
12061
12062     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12063     # to get the SysV transport functions.
12064     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12065     # needs -lnsl.
12066     # The nsl library prevents programs from opening the X display
12067     # on Irix 5.2, according to T.E. Dickey.
12068     # The functions gethostbyname, getservbyname, and inet_addr are
12069     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12070     echo "$as_me:$LINENO: checking for gethostbyname" >&5
12071 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12072 if test "${ac_cv_func_gethostbyname+set}" = set; then
12073   echo $ECHO_N "(cached) $ECHO_C" >&6
12074 else
12075   cat >conftest.$ac_ext <<_ACEOF
12076 /* confdefs.h.  */
12077 _ACEOF
12078 cat confdefs.h >>conftest.$ac_ext
12079 cat >>conftest.$ac_ext <<_ACEOF
12080 /* end confdefs.h.  */
12081 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12082    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12083 #define gethostbyname innocuous_gethostbyname
12084
12085 /* System header to define __stub macros and hopefully few prototypes,
12086     which can conflict with char gethostbyname (); below.
12087     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12088     <limits.h> exists even on freestanding compilers.  */
12089
12090 #ifdef __STDC__
12091 # include <limits.h>
12092 #else
12093 # include <assert.h>
12094 #endif
12095
12096 #undef gethostbyname
12097
12098 /* Override any gcc2 internal prototype to avoid an error.  */
12099 #ifdef __cplusplus
12100 extern "C"
12101 {
12102 #endif
12103 /* We use char because int might match the return type of a gcc2
12104    builtin and then its argument prototype would still apply.  */
12105 char gethostbyname ();
12106 /* The GNU C library defines this for functions which it implements
12107     to always fail with ENOSYS.  Some functions are actually named
12108     something starting with __ and the normal name is an alias.  */
12109 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12110 choke me
12111 #else
12112 char (*f) () = gethostbyname;
12113 #endif
12114 #ifdef __cplusplus
12115 }
12116 #endif
12117
12118 int
12119 main ()
12120 {
12121 return f != gethostbyname;
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135          { ac_try='test -z "$ac_c_werror_flag"
12136                          || test ! -s conftest.err'
12137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12138   (eval $ac_try) 2>&5
12139   ac_status=$?
12140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141   (exit $ac_status); }; } &&
12142          { ac_try='test -s conftest$ac_exeext'
12143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144   (eval $ac_try) 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }; }; then
12148   ac_cv_func_gethostbyname=yes
12149 else
12150   echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 ac_cv_func_gethostbyname=no
12154 fi
12155 rm -f conftest.err conftest.$ac_objext \
12156       conftest$ac_exeext conftest.$ac_ext
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12159 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12160
12161     if test $ac_cv_func_gethostbyname = no; then
12162       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12163 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12164 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12165   echo $ECHO_N "(cached) $ECHO_C" >&6
12166 else
12167   ac_check_lib_save_LIBS=$LIBS
12168 LIBS="-lnsl  $LIBS"
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h.  */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h.  */
12175
12176 /* Override any gcc2 internal prototype to avoid an error.  */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 /* We use char because int might match the return type of a gcc2
12181    builtin and then its argument prototype would still apply.  */
12182 char gethostbyname ();
12183 int
12184 main ()
12185 {
12186 gethostbyname ();
12187   ;
12188   return 0;
12189 }
12190 _ACEOF
12191 rm -f conftest.$ac_objext conftest$ac_exeext
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193   (eval $ac_link) 2>conftest.er1
12194   ac_status=$?
12195   grep -v '^ *+' conftest.er1 >conftest.err
12196   rm -f conftest.er1
12197   cat conftest.err >&5
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); } &&
12200          { ac_try='test -z "$ac_c_werror_flag"
12201                          || test ! -s conftest.err'
12202   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203   (eval $ac_try) 2>&5
12204   ac_status=$?
12205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206   (exit $ac_status); }; } &&
12207          { ac_try='test -s conftest$ac_exeext'
12208   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209   (eval $ac_try) 2>&5
12210   ac_status=$?
12211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); }; }; then
12213   ac_cv_lib_nsl_gethostbyname=yes
12214 else
12215   echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12217
12218 ac_cv_lib_nsl_gethostbyname=no
12219 fi
12220 rm -f conftest.err conftest.$ac_objext \
12221       conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12223 fi
12224 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12225 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12226 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12227   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12228 fi
12229
12230       if test $ac_cv_lib_nsl_gethostbyname = no; then
12231         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12232 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12233 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12234   echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236   ac_check_lib_save_LIBS=$LIBS
12237 LIBS="-lbsd  $LIBS"
12238 cat >conftest.$ac_ext <<_ACEOF
12239 /* confdefs.h.  */
12240 _ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h.  */
12244
12245 /* Override any gcc2 internal prototype to avoid an error.  */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250    builtin and then its argument prototype would still apply.  */
12251 char gethostbyname ();
12252 int
12253 main ()
12254 {
12255 gethostbyname ();
12256   ;
12257   return 0;
12258 }
12259 _ACEOF
12260 rm -f conftest.$ac_objext conftest$ac_exeext
12261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12262   (eval $ac_link) 2>conftest.er1
12263   ac_status=$?
12264   grep -v '^ *+' conftest.er1 >conftest.err
12265   rm -f conftest.er1
12266   cat conftest.err >&5
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); } &&
12269          { ac_try='test -z "$ac_c_werror_flag"
12270                          || test ! -s conftest.err'
12271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12272   (eval $ac_try) 2>&5
12273   ac_status=$?
12274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275   (exit $ac_status); }; } &&
12276          { ac_try='test -s conftest$ac_exeext'
12277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278   (eval $ac_try) 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; }; then
12282   ac_cv_lib_bsd_gethostbyname=yes
12283 else
12284   echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12286
12287 ac_cv_lib_bsd_gethostbyname=no
12288 fi
12289 rm -f conftest.err conftest.$ac_objext \
12290       conftest$ac_exeext conftest.$ac_ext
12291 LIBS=$ac_check_lib_save_LIBS
12292 fi
12293 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12294 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12295 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12296   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12297 fi
12298
12299       fi
12300     fi
12301
12302     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12303     # socket/setsockopt and other routines are undefined under SCO ODT
12304     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12305     # on later versions), says Simon Leinen: it contains gethostby*
12306     # variants that don't use the name server (or something).  -lsocket
12307     # must be given before -lnsl if both are needed.  We assume that
12308     # if connect needs -lnsl, so does gethostbyname.
12309     echo "$as_me:$LINENO: checking for connect" >&5
12310 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12311 if test "${ac_cv_func_connect+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   cat >conftest.$ac_ext <<_ACEOF
12315 /* confdefs.h.  */
12316 _ACEOF
12317 cat confdefs.h >>conftest.$ac_ext
12318 cat >>conftest.$ac_ext <<_ACEOF
12319 /* end confdefs.h.  */
12320 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12321    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12322 #define connect innocuous_connect
12323
12324 /* System header to define __stub macros and hopefully few prototypes,
12325     which can conflict with char connect (); below.
12326     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12327     <limits.h> exists even on freestanding compilers.  */
12328
12329 #ifdef __STDC__
12330 # include <limits.h>
12331 #else
12332 # include <assert.h>
12333 #endif
12334
12335 #undef connect
12336
12337 /* Override any gcc2 internal prototype to avoid an error.  */
12338 #ifdef __cplusplus
12339 extern "C"
12340 {
12341 #endif
12342 /* We use char because int might match the return type of a gcc2
12343    builtin and then its argument prototype would still apply.  */
12344 char connect ();
12345 /* The GNU C library defines this for functions which it implements
12346     to always fail with ENOSYS.  Some functions are actually named
12347     something starting with __ and the normal name is an alias.  */
12348 #if defined (__stub_connect) || defined (__stub___connect)
12349 choke me
12350 #else
12351 char (*f) () = connect;
12352 #endif
12353 #ifdef __cplusplus
12354 }
12355 #endif
12356
12357 int
12358 main ()
12359 {
12360 return f != connect;
12361   ;
12362   return 0;
12363 }
12364 _ACEOF
12365 rm -f conftest.$ac_objext conftest$ac_exeext
12366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12367   (eval $ac_link) 2>conftest.er1
12368   ac_status=$?
12369   grep -v '^ *+' conftest.er1 >conftest.err
12370   rm -f conftest.er1
12371   cat conftest.err >&5
12372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373   (exit $ac_status); } &&
12374          { ac_try='test -z "$ac_c_werror_flag"
12375                          || test ! -s conftest.err'
12376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377   (eval $ac_try) 2>&5
12378   ac_status=$?
12379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380   (exit $ac_status); }; } &&
12381          { ac_try='test -s conftest$ac_exeext'
12382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383   (eval $ac_try) 2>&5
12384   ac_status=$?
12385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386   (exit $ac_status); }; }; then
12387   ac_cv_func_connect=yes
12388 else
12389   echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392 ac_cv_func_connect=no
12393 fi
12394 rm -f conftest.err conftest.$ac_objext \
12395       conftest$ac_exeext conftest.$ac_ext
12396 fi
12397 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12398 echo "${ECHO_T}$ac_cv_func_connect" >&6
12399
12400     if test $ac_cv_func_connect = no; then
12401       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12402 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12403 if test "${ac_cv_lib_socket_connect+set}" = set; then
12404   echo $ECHO_N "(cached) $ECHO_C" >&6
12405 else
12406   ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h.  */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h.  */
12414
12415 /* Override any gcc2 internal prototype to avoid an error.  */
12416 #ifdef __cplusplus
12417 extern "C"
12418 #endif
12419 /* We use char because int might match the return type of a gcc2
12420    builtin and then its argument prototype would still apply.  */
12421 char connect ();
12422 int
12423 main ()
12424 {
12425 connect ();
12426   ;
12427   return 0;
12428 }
12429 _ACEOF
12430 rm -f conftest.$ac_objext conftest$ac_exeext
12431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12432   (eval $ac_link) 2>conftest.er1
12433   ac_status=$?
12434   grep -v '^ *+' conftest.er1 >conftest.err
12435   rm -f conftest.er1
12436   cat conftest.err >&5
12437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); } &&
12439          { ac_try='test -z "$ac_c_werror_flag"
12440                          || test ! -s conftest.err'
12441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442   (eval $ac_try) 2>&5
12443   ac_status=$?
12444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445   (exit $ac_status); }; } &&
12446          { ac_try='test -s conftest$ac_exeext'
12447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448   (eval $ac_try) 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; }; then
12452   ac_cv_lib_socket_connect=yes
12453 else
12454   echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12456
12457 ac_cv_lib_socket_connect=no
12458 fi
12459 rm -f conftest.err conftest.$ac_objext \
12460       conftest$ac_exeext conftest.$ac_ext
12461 LIBS=$ac_check_lib_save_LIBS
12462 fi
12463 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12464 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12465 if test $ac_cv_lib_socket_connect = yes; then
12466   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12467 fi
12468
12469     fi
12470
12471     # Guillermo Gomez says -lposix is necessary on A/UX.
12472     echo "$as_me:$LINENO: checking for remove" >&5
12473 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12474 if test "${ac_cv_func_remove+set}" = set; then
12475   echo $ECHO_N "(cached) $ECHO_C" >&6
12476 else
12477   cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12485 #define remove innocuous_remove
12486
12487 /* System header to define __stub macros and hopefully few prototypes,
12488     which can conflict with char remove (); below.
12489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12490     <limits.h> exists even on freestanding compilers.  */
12491
12492 #ifdef __STDC__
12493 # include <limits.h>
12494 #else
12495 # include <assert.h>
12496 #endif
12497
12498 #undef remove
12499
12500 /* Override any gcc2 internal prototype to avoid an error.  */
12501 #ifdef __cplusplus
12502 extern "C"
12503 {
12504 #endif
12505 /* We use char because int might match the return type of a gcc2
12506    builtin and then its argument prototype would still apply.  */
12507 char remove ();
12508 /* The GNU C library defines this for functions which it implements
12509     to always fail with ENOSYS.  Some functions are actually named
12510     something starting with __ and the normal name is an alias.  */
12511 #if defined (__stub_remove) || defined (__stub___remove)
12512 choke me
12513 #else
12514 char (*f) () = remove;
12515 #endif
12516 #ifdef __cplusplus
12517 }
12518 #endif
12519
12520 int
12521 main ()
12522 {
12523 return f != remove;
12524   ;
12525   return 0;
12526 }
12527 _ACEOF
12528 rm -f conftest.$ac_objext conftest$ac_exeext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12530   (eval $ac_link) 2>conftest.er1
12531   ac_status=$?
12532   grep -v '^ *+' conftest.er1 >conftest.err
12533   rm -f conftest.er1
12534   cat conftest.err >&5
12535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536   (exit $ac_status); } &&
12537          { ac_try='test -z "$ac_c_werror_flag"
12538                          || test ! -s conftest.err'
12539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540   (eval $ac_try) 2>&5
12541   ac_status=$?
12542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543   (exit $ac_status); }; } &&
12544          { ac_try='test -s conftest$ac_exeext'
12545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546   (eval $ac_try) 2>&5
12547   ac_status=$?
12548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549   (exit $ac_status); }; }; then
12550   ac_cv_func_remove=yes
12551 else
12552   echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12554
12555 ac_cv_func_remove=no
12556 fi
12557 rm -f conftest.err conftest.$ac_objext \
12558       conftest$ac_exeext conftest.$ac_ext
12559 fi
12560 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12561 echo "${ECHO_T}$ac_cv_func_remove" >&6
12562
12563     if test $ac_cv_func_remove = no; then
12564       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12565 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12566 if test "${ac_cv_lib_posix_remove+set}" = set; then
12567   echo $ECHO_N "(cached) $ECHO_C" >&6
12568 else
12569   ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lposix  $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h.  */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h.  */
12577
12578 /* Override any gcc2 internal prototype to avoid an error.  */
12579 #ifdef __cplusplus
12580 extern "C"
12581 #endif
12582 /* We use char because int might match the return type of a gcc2
12583    builtin and then its argument prototype would still apply.  */
12584 char remove ();
12585 int
12586 main ()
12587 {
12588 remove ();
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595   (eval $ac_link) 2>conftest.er1
12596   ac_status=$?
12597   grep -v '^ *+' conftest.er1 >conftest.err
12598   rm -f conftest.er1
12599   cat conftest.err >&5
12600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601   (exit $ac_status); } &&
12602          { ac_try='test -z "$ac_c_werror_flag"
12603                          || test ! -s conftest.err'
12604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605   (eval $ac_try) 2>&5
12606   ac_status=$?
12607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608   (exit $ac_status); }; } &&
12609          { ac_try='test -s conftest$ac_exeext'
12610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12611   (eval $ac_try) 2>&5
12612   ac_status=$?
12613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614   (exit $ac_status); }; }; then
12615   ac_cv_lib_posix_remove=yes
12616 else
12617   echo "$as_me: failed program was:" >&5
12618 sed 's/^/| /' conftest.$ac_ext >&5
12619
12620 ac_cv_lib_posix_remove=no
12621 fi
12622 rm -f conftest.err conftest.$ac_objext \
12623       conftest$ac_exeext conftest.$ac_ext
12624 LIBS=$ac_check_lib_save_LIBS
12625 fi
12626 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12627 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12628 if test $ac_cv_lib_posix_remove = yes; then
12629   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12630 fi
12631
12632     fi
12633
12634     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12635     echo "$as_me:$LINENO: checking for shmat" >&5
12636 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12637 if test "${ac_cv_func_shmat+set}" = set; then
12638   echo $ECHO_N "(cached) $ECHO_C" >&6
12639 else
12640   cat >conftest.$ac_ext <<_ACEOF
12641 /* confdefs.h.  */
12642 _ACEOF
12643 cat confdefs.h >>conftest.$ac_ext
12644 cat >>conftest.$ac_ext <<_ACEOF
12645 /* end confdefs.h.  */
12646 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12648 #define shmat innocuous_shmat
12649
12650 /* System header to define __stub macros and hopefully few prototypes,
12651     which can conflict with char shmat (); below.
12652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12653     <limits.h> exists even on freestanding compilers.  */
12654
12655 #ifdef __STDC__
12656 # include <limits.h>
12657 #else
12658 # include <assert.h>
12659 #endif
12660
12661 #undef shmat
12662
12663 /* Override any gcc2 internal prototype to avoid an error.  */
12664 #ifdef __cplusplus
12665 extern "C"
12666 {
12667 #endif
12668 /* We use char because int might match the return type of a gcc2
12669    builtin and then its argument prototype would still apply.  */
12670 char shmat ();
12671 /* The GNU C library defines this for functions which it implements
12672     to always fail with ENOSYS.  Some functions are actually named
12673     something starting with __ and the normal name is an alias.  */
12674 #if defined (__stub_shmat) || defined (__stub___shmat)
12675 choke me
12676 #else
12677 char (*f) () = shmat;
12678 #endif
12679 #ifdef __cplusplus
12680 }
12681 #endif
12682
12683 int
12684 main ()
12685 {
12686 return f != shmat;
12687   ;
12688   return 0;
12689 }
12690 _ACEOF
12691 rm -f conftest.$ac_objext conftest$ac_exeext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12693   (eval $ac_link) 2>conftest.er1
12694   ac_status=$?
12695   grep -v '^ *+' conftest.er1 >conftest.err
12696   rm -f conftest.er1
12697   cat conftest.err >&5
12698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699   (exit $ac_status); } &&
12700          { ac_try='test -z "$ac_c_werror_flag"
12701                          || test ! -s conftest.err'
12702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703   (eval $ac_try) 2>&5
12704   ac_status=$?
12705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706   (exit $ac_status); }; } &&
12707          { ac_try='test -s conftest$ac_exeext'
12708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709   (eval $ac_try) 2>&5
12710   ac_status=$?
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); }; }; then
12713   ac_cv_func_shmat=yes
12714 else
12715   echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12717
12718 ac_cv_func_shmat=no
12719 fi
12720 rm -f conftest.err conftest.$ac_objext \
12721       conftest$ac_exeext conftest.$ac_ext
12722 fi
12723 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12724 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12725
12726     if test $ac_cv_func_shmat = no; then
12727       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12728 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12729 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   ac_check_lib_save_LIBS=$LIBS
12733 LIBS="-lipc  $LIBS"
12734 cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740
12741 /* Override any gcc2 internal prototype to avoid an error.  */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 /* We use char because int might match the return type of a gcc2
12746    builtin and then its argument prototype would still apply.  */
12747 char shmat ();
12748 int
12749 main ()
12750 {
12751 shmat ();
12752   ;
12753   return 0;
12754 }
12755 _ACEOF
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12758   (eval $ac_link) 2>conftest.er1
12759   ac_status=$?
12760   grep -v '^ *+' conftest.er1 >conftest.err
12761   rm -f conftest.er1
12762   cat conftest.err >&5
12763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12764   (exit $ac_status); } &&
12765          { ac_try='test -z "$ac_c_werror_flag"
12766                          || test ! -s conftest.err'
12767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12768   (eval $ac_try) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; } &&
12772          { ac_try='test -s conftest$ac_exeext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   ac_cv_lib_ipc_shmat=yes
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 ac_cv_lib_ipc_shmat=no
12784 fi
12785 rm -f conftest.err conftest.$ac_objext \
12786       conftest$ac_exeext conftest.$ac_ext
12787 LIBS=$ac_check_lib_save_LIBS
12788 fi
12789 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12790 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12791 if test $ac_cv_lib_ipc_shmat = yes; then
12792   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12793 fi
12794
12795     fi
12796   fi
12797
12798   # Check for libraries that X11R6 Xt/Xaw programs need.
12799   ac_save_LDFLAGS=$LDFLAGS
12800   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12801   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12802   # check for ICE first), but we must link in the order -lSM -lICE or
12803   # we get undefined symbols.  So assume we have SM if we have ICE.
12804   # These have to be linked with before -lX11, unlike the other
12805   # libraries we check for below, so use a different variable.
12806   # John Interrante, Karl Berry
12807   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12808 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12809 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12810   echo $ECHO_N "(cached) $ECHO_C" >&6
12811 else
12812   ac_check_lib_save_LIBS=$LIBS
12813 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12814 cat >conftest.$ac_ext <<_ACEOF
12815 /* confdefs.h.  */
12816 _ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h.  */
12820
12821 /* Override any gcc2 internal prototype to avoid an error.  */
12822 #ifdef __cplusplus
12823 extern "C"
12824 #endif
12825 /* We use char because int might match the return type of a gcc2
12826    builtin and then its argument prototype would still apply.  */
12827 char IceConnectionNumber ();
12828 int
12829 main ()
12830 {
12831 IceConnectionNumber ();
12832   ;
12833   return 0;
12834 }
12835 _ACEOF
12836 rm -f conftest.$ac_objext conftest$ac_exeext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12838   (eval $ac_link) 2>conftest.er1
12839   ac_status=$?
12840   grep -v '^ *+' conftest.er1 >conftest.err
12841   rm -f conftest.er1
12842   cat conftest.err >&5
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -z "$ac_c_werror_flag"
12846                          || test ! -s conftest.err'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; } &&
12852          { ac_try='test -s conftest$ac_exeext'
12853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854   (eval $ac_try) 2>&5
12855   ac_status=$?
12856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857   (exit $ac_status); }; }; then
12858   ac_cv_lib_ICE_IceConnectionNumber=yes
12859 else
12860   echo "$as_me: failed program was:" >&5
12861 sed 's/^/| /' conftest.$ac_ext >&5
12862
12863 ac_cv_lib_ICE_IceConnectionNumber=no
12864 fi
12865 rm -f conftest.err conftest.$ac_objext \
12866       conftest$ac_exeext conftest.$ac_ext
12867 LIBS=$ac_check_lib_save_LIBS
12868 fi
12869 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12870 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12871 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12872   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12873 fi
12874
12875   LDFLAGS=$ac_save_LDFLAGS
12876
12877 fi
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907 for ac_header in \
12908         assert.h \
12909         fcntl.h \
12910         grp.h \
12911         pwd.h \
12912         libc.h \
12913         limits.h \
12914         stdarg.h \
12915         stdlib.h \
12916         stdint.h \
12917         string.h \
12918         termios.h \
12919         termcap.h \
12920         term.h \
12921         unistd.h \
12922         sys/bitypes.h \
12923         sys/byteorder.h \
12924         sys/ioctl.h \
12925         sys/select.h \
12926         sys/sockio.h \
12927         sys/time.h \
12928         sys/socket.h \
12929         arpa/nameser.h \
12930         resolv.h \
12931         mtio.h \
12932         sys/mtio.h \
12933         sys/tape.h \
12934         regex.h \
12935
12936 do
12937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12939   echo "$as_me:$LINENO: checking for $ac_header" >&5
12940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12942   echo $ECHO_N "(cached) $ECHO_C" >&6
12943 fi
12944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12945 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12946 else
12947   # Is the header compilable?
12948 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12950 cat >conftest.$ac_ext <<_ACEOF
12951 /* confdefs.h.  */
12952 _ACEOF
12953 cat confdefs.h >>conftest.$ac_ext
12954 cat >>conftest.$ac_ext <<_ACEOF
12955 /* end confdefs.h.  */
12956 $ac_includes_default
12957 #include <$ac_header>
12958 _ACEOF
12959 rm -f conftest.$ac_objext
12960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12961   (eval $ac_compile) 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag"
12969                          || test ! -s conftest.err'
12970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971   (eval $ac_try) 2>&5
12972   ac_status=$?
12973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974   (exit $ac_status); }; } &&
12975          { ac_try='test -s conftest.$ac_objext'
12976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977   (eval $ac_try) 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_header_compiler=yes
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986 ac_header_compiler=no
12987 fi
12988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12990 echo "${ECHO_T}$ac_header_compiler" >&6
12991
12992 # Is the header present?
12993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12995 cat >conftest.$ac_ext <<_ACEOF
12996 /* confdefs.h.  */
12997 _ACEOF
12998 cat confdefs.h >>conftest.$ac_ext
12999 cat >>conftest.$ac_ext <<_ACEOF
13000 /* end confdefs.h.  */
13001 #include <$ac_header>
13002 _ACEOF
13003 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13004   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005   ac_status=$?
13006   grep -v '^ *+' conftest.er1 >conftest.err
13007   rm -f conftest.er1
13008   cat conftest.err >&5
13009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010   (exit $ac_status); } >/dev/null; then
13011   if test -s conftest.err; then
13012     ac_cpp_err=$ac_c_preproc_warn_flag
13013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13014   else
13015     ac_cpp_err=
13016   fi
13017 else
13018   ac_cpp_err=yes
13019 fi
13020 if test -z "$ac_cpp_err"; then
13021   ac_header_preproc=yes
13022 else
13023   echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13025
13026   ac_header_preproc=no
13027 fi
13028 rm -f conftest.err conftest.$ac_ext
13029 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13030 echo "${ECHO_T}$ac_header_preproc" >&6
13031
13032 # So?  What about this header?
13033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13034   yes:no: )
13035     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13039     ac_header_preproc=yes
13040     ;;
13041   no:yes:* )
13042     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13044     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13045 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13046     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13048     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13049 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13050     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13052     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13054     (
13055       cat <<\_ASBOX
13056 ## ------------------------------------------ ##
13057 ## Report this to the AC_PACKAGE_NAME lists.  ##
13058 ## ------------------------------------------ ##
13059 _ASBOX
13060     ) |
13061       sed "s/^/$as_me: WARNING:     /" >&2
13062     ;;
13063 esac
13064 echo "$as_me:$LINENO: checking for $ac_header" >&5
13065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 else
13069   eval "$as_ac_Header=\$ac_header_preproc"
13070 fi
13071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13072 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13073
13074 fi
13075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13076   cat >>confdefs.h <<_ACEOF
13077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 _ACEOF
13079
13080 fi
13081
13082 done
13083
13084 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13085 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13086 if test "${ac_cv_header_stdc+set}" = set; then
13087   echo $ECHO_N "(cached) $ECHO_C" >&6
13088 else
13089   cat >conftest.$ac_ext <<_ACEOF
13090 /* confdefs.h.  */
13091 _ACEOF
13092 cat confdefs.h >>conftest.$ac_ext
13093 cat >>conftest.$ac_ext <<_ACEOF
13094 /* end confdefs.h.  */
13095 #include <stdlib.h>
13096 #include <stdarg.h>
13097 #include <string.h>
13098 #include <float.h>
13099
13100 int
13101 main ()
13102 {
13103
13104   ;
13105   return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110   (eval $ac_compile) 2>conftest.er1
13111   ac_status=$?
13112   grep -v '^ *+' conftest.er1 >conftest.err
13113   rm -f conftest.er1
13114   cat conftest.err >&5
13115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116   (exit $ac_status); } &&
13117          { ac_try='test -z "$ac_c_werror_flag"
13118                          || test ! -s conftest.err'
13119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120   (eval $ac_try) 2>&5
13121   ac_status=$?
13122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123   (exit $ac_status); }; } &&
13124          { ac_try='test -s conftest.$ac_objext'
13125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126   (eval $ac_try) 2>&5
13127   ac_status=$?
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); }; }; then
13130   ac_cv_header_stdc=yes
13131 else
13132   echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135 ac_cv_header_stdc=no
13136 fi
13137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13138
13139 if test $ac_cv_header_stdc = yes; then
13140   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13141   cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 #include <string.h>
13148
13149 _ACEOF
13150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13151   $EGREP "memchr" >/dev/null 2>&1; then
13152   :
13153 else
13154   ac_cv_header_stdc=no
13155 fi
13156 rm -f conftest*
13157
13158 fi
13159
13160 if test $ac_cv_header_stdc = yes; then
13161   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168 #include <stdlib.h>
13169
13170 _ACEOF
13171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13172   $EGREP "free" >/dev/null 2>&1; then
13173   :
13174 else
13175   ac_cv_header_stdc=no
13176 fi
13177 rm -f conftest*
13178
13179 fi
13180
13181 if test $ac_cv_header_stdc = yes; then
13182   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13183   if test "$cross_compiling" = yes; then
13184   :
13185 else
13186   cat >conftest.$ac_ext <<_ACEOF
13187 /* confdefs.h.  */
13188 _ACEOF
13189 cat confdefs.h >>conftest.$ac_ext
13190 cat >>conftest.$ac_ext <<_ACEOF
13191 /* end confdefs.h.  */
13192 #include <ctype.h>
13193 #if ((' ' & 0x0FF) == 0x020)
13194 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13195 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13196 #else
13197 # define ISLOWER(c) \
13198                    (('a' <= (c) && (c) <= 'i') \
13199                      || ('j' <= (c) && (c) <= 'r') \
13200                      || ('s' <= (c) && (c) <= 'z'))
13201 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13202 #endif
13203
13204 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13205 int
13206 main ()
13207 {
13208   int i;
13209   for (i = 0; i < 256; i++)
13210     if (XOR (islower (i), ISLOWER (i))
13211         || toupper (i) != TOUPPER (i))
13212       exit(2);
13213   exit (0);
13214 }
13215 _ACEOF
13216 rm -f conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218   (eval $ac_link) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223   (eval $ac_try) 2>&5
13224   ac_status=$?
13225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226   (exit $ac_status); }; }; then
13227   :
13228 else
13229   echo "$as_me: program exited with status $ac_status" >&5
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 ( exit $ac_status )
13234 ac_cv_header_stdc=no
13235 fi
13236 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 fi
13239 fi
13240 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13241 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13242 if test $ac_cv_header_stdc = yes; then
13243
13244 cat >>confdefs.h <<\_ACEOF
13245 #define STDC_HEADERS 1
13246 _ACEOF
13247
13248 fi
13249
13250 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13251 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13252 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   cat >conftest.$ac_ext <<_ACEOF
13256 /* confdefs.h.  */
13257 _ACEOF
13258 cat confdefs.h >>conftest.$ac_ext
13259 cat >>conftest.$ac_ext <<_ACEOF
13260 /* end confdefs.h.  */
13261 #include <sys/types.h>
13262 int
13263 main ()
13264 {
13265 return makedev(0, 0);
13266   ;
13267   return 0;
13268 }
13269 _ACEOF
13270 rm -f conftest.$ac_objext conftest$ac_exeext
13271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13272   (eval $ac_link) 2>conftest.er1
13273   ac_status=$?
13274   grep -v '^ *+' conftest.er1 >conftest.err
13275   rm -f conftest.er1
13276   cat conftest.err >&5
13277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278   (exit $ac_status); } &&
13279          { ac_try='test -z "$ac_c_werror_flag"
13280                          || test ! -s conftest.err'
13281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282   (eval $ac_try) 2>&5
13283   ac_status=$?
13284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); }; } &&
13286          { ac_try='test -s conftest$ac_exeext'
13287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13288   (eval $ac_try) 2>&5
13289   ac_status=$?
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); }; }; then
13292   ac_cv_header_sys_types_h_makedev=yes
13293 else
13294   echo "$as_me: failed program was:" >&5
13295 sed 's/^/| /' conftest.$ac_ext >&5
13296
13297 ac_cv_header_sys_types_h_makedev=no
13298 fi
13299 rm -f conftest.err conftest.$ac_objext \
13300       conftest$ac_exeext conftest.$ac_ext
13301
13302 fi
13303 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13304 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13305
13306 if test $ac_cv_header_sys_types_h_makedev = no; then
13307 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13308   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13309 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13310 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13311   echo $ECHO_N "(cached) $ECHO_C" >&6
13312 fi
13313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13314 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13315 else
13316   # Is the header compilable?
13317 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13318 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h.  */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h.  */
13325 $ac_includes_default
13326 #include <sys/mkdev.h>
13327 _ACEOF
13328 rm -f conftest.$ac_objext
13329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13330   (eval $ac_compile) 2>conftest.er1
13331   ac_status=$?
13332   grep -v '^ *+' conftest.er1 >conftest.err
13333   rm -f conftest.er1
13334   cat conftest.err >&5
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); } &&
13337          { ac_try='test -z "$ac_c_werror_flag"
13338                          || test ! -s conftest.err'
13339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13340   (eval $ac_try) 2>&5
13341   ac_status=$?
13342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343   (exit $ac_status); }; } &&
13344          { ac_try='test -s conftest.$ac_objext'
13345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346   (eval $ac_try) 2>&5
13347   ac_status=$?
13348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349   (exit $ac_status); }; }; then
13350   ac_header_compiler=yes
13351 else
13352   echo "$as_me: failed program was:" >&5
13353 sed 's/^/| /' conftest.$ac_ext >&5
13354
13355 ac_header_compiler=no
13356 fi
13357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13359 echo "${ECHO_T}$ac_header_compiler" >&6
13360
13361 # Is the header present?
13362 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13363 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370 #include <sys/mkdev.h>
13371 _ACEOF
13372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13373   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13374   ac_status=$?
13375   grep -v '^ *+' conftest.er1 >conftest.err
13376   rm -f conftest.er1
13377   cat conftest.err >&5
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); } >/dev/null; then
13380   if test -s conftest.err; then
13381     ac_cpp_err=$ac_c_preproc_warn_flag
13382     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13383   else
13384     ac_cpp_err=
13385   fi
13386 else
13387   ac_cpp_err=yes
13388 fi
13389 if test -z "$ac_cpp_err"; then
13390   ac_header_preproc=yes
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395   ac_header_preproc=no
13396 fi
13397 rm -f conftest.err conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13399 echo "${ECHO_T}$ac_header_preproc" >&6
13400
13401 # So?  What about this header?
13402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13403   yes:no: )
13404     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13405 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13406     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13407 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13408     ac_header_preproc=yes
13409     ;;
13410   no:yes:* )
13411     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13412 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13413     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13414 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13415     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13416 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13417     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13418 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13419     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13420 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13421     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13422 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13423     (
13424       cat <<\_ASBOX
13425 ## ------------------------------------------ ##
13426 ## Report this to the AC_PACKAGE_NAME lists.  ##
13427 ## ------------------------------------------ ##
13428 _ASBOX
13429     ) |
13430       sed "s/^/$as_me: WARNING:     /" >&2
13431     ;;
13432 esac
13433 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13434 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13435 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13436   echo $ECHO_N "(cached) $ECHO_C" >&6
13437 else
13438   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13439 fi
13440 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13441 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13442
13443 fi
13444 if test $ac_cv_header_sys_mkdev_h = yes; then
13445
13446 cat >>confdefs.h <<\_ACEOF
13447 #define MAJOR_IN_MKDEV 1
13448 _ACEOF
13449
13450 fi
13451
13452
13453
13454   if test $ac_cv_header_sys_mkdev_h = no; then
13455     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13456   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13457 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13458 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13459   echo $ECHO_N "(cached) $ECHO_C" >&6
13460 fi
13461 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13462 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13463 else
13464   # Is the header compilable?
13465 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13466 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13467 cat >conftest.$ac_ext <<_ACEOF
13468 /* confdefs.h.  */
13469 _ACEOF
13470 cat confdefs.h >>conftest.$ac_ext
13471 cat >>conftest.$ac_ext <<_ACEOF
13472 /* end confdefs.h.  */
13473 $ac_includes_default
13474 #include <sys/sysmacros.h>
13475 _ACEOF
13476 rm -f conftest.$ac_objext
13477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478   (eval $ac_compile) 2>conftest.er1
13479   ac_status=$?
13480   grep -v '^ *+' conftest.er1 >conftest.err
13481   rm -f conftest.er1
13482   cat conftest.err >&5
13483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484   (exit $ac_status); } &&
13485          { ac_try='test -z "$ac_c_werror_flag"
13486                          || test ! -s conftest.err'
13487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488   (eval $ac_try) 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; } &&
13492          { ac_try='test -s conftest.$ac_objext'
13493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494   (eval $ac_try) 2>&5
13495   ac_status=$?
13496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497   (exit $ac_status); }; }; then
13498   ac_header_compiler=yes
13499 else
13500   echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13502
13503 ac_header_compiler=no
13504 fi
13505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507 echo "${ECHO_T}$ac_header_compiler" >&6
13508
13509 # Is the header present?
13510 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13511 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13512 cat >conftest.$ac_ext <<_ACEOF
13513 /* confdefs.h.  */
13514 _ACEOF
13515 cat confdefs.h >>conftest.$ac_ext
13516 cat >>conftest.$ac_ext <<_ACEOF
13517 /* end confdefs.h.  */
13518 #include <sys/sysmacros.h>
13519 _ACEOF
13520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13522   ac_status=$?
13523   grep -v '^ *+' conftest.er1 >conftest.err
13524   rm -f conftest.er1
13525   cat conftest.err >&5
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); } >/dev/null; then
13528   if test -s conftest.err; then
13529     ac_cpp_err=$ac_c_preproc_warn_flag
13530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13531   else
13532     ac_cpp_err=
13533   fi
13534 else
13535   ac_cpp_err=yes
13536 fi
13537 if test -z "$ac_cpp_err"; then
13538   ac_header_preproc=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543   ac_header_preproc=no
13544 fi
13545 rm -f conftest.err conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547 echo "${ECHO_T}$ac_header_preproc" >&6
13548
13549 # So?  What about this header?
13550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551   yes:no: )
13552     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13553 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13555 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13556     ac_header_preproc=yes
13557     ;;
13558   no:yes:* )
13559     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13560 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13561     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13562 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13563     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13564 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13565     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13566 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13567     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13568 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13569     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13570 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13571     (
13572       cat <<\_ASBOX
13573 ## ------------------------------------------ ##
13574 ## Report this to the AC_PACKAGE_NAME lists.  ##
13575 ## ------------------------------------------ ##
13576 _ASBOX
13577     ) |
13578       sed "s/^/$as_me: WARNING:     /" >&2
13579     ;;
13580 esac
13581 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13582 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13583 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13584   echo $ECHO_N "(cached) $ECHO_C" >&6
13585 else
13586   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13587 fi
13588 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13589 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13590
13591 fi
13592 if test $ac_cv_header_sys_sysmacros_h = yes; then
13593
13594 cat >>confdefs.h <<\_ACEOF
13595 #define MAJOR_IN_SYSMACROS 1
13596 _ACEOF
13597
13598 fi
13599
13600
13601   fi
13602 fi
13603
13604
13605
13606
13607
13608
13609 ac_header_dirent=no
13610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13611   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13612 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13614 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13615   echo $ECHO_N "(cached) $ECHO_C" >&6
13616 else
13617   cat >conftest.$ac_ext <<_ACEOF
13618 /* confdefs.h.  */
13619 _ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h.  */
13623 #include <sys/types.h>
13624 #include <$ac_hdr>
13625
13626 int
13627 main ()
13628 {
13629 if ((DIR *) 0)
13630 return 0;
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13637   (eval $ac_compile) 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -z "$ac_c_werror_flag"
13645                          || test ! -s conftest.err'
13646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13647   (eval $ac_try) 2>&5
13648   ac_status=$?
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); }; } &&
13651          { ac_try='test -s conftest.$ac_objext'
13652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13653   (eval $ac_try) 2>&5
13654   ac_status=$?
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); }; }; then
13657   eval "$as_ac_Header=yes"
13658 else
13659   echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 eval "$as_ac_Header=no"
13663 fi
13664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13665 fi
13666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13669   cat >>confdefs.h <<_ACEOF
13670 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13671 _ACEOF
13672
13673 ac_header_dirent=$ac_hdr; break
13674 fi
13675
13676 done
13677 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13678 if test $ac_header_dirent = dirent.h; then
13679   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13680 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13681 if test "${ac_cv_search_opendir+set}" = set; then
13682   echo $ECHO_N "(cached) $ECHO_C" >&6
13683 else
13684   ac_func_search_save_LIBS=$LIBS
13685 ac_cv_search_opendir=no
13686 cat >conftest.$ac_ext <<_ACEOF
13687 /* confdefs.h.  */
13688 _ACEOF
13689 cat confdefs.h >>conftest.$ac_ext
13690 cat >>conftest.$ac_ext <<_ACEOF
13691 /* end confdefs.h.  */
13692
13693 /* Override any gcc2 internal prototype to avoid an error.  */
13694 #ifdef __cplusplus
13695 extern "C"
13696 #endif
13697 /* We use char because int might match the return type of a gcc2
13698    builtin and then its argument prototype would still apply.  */
13699 char opendir ();
13700 int
13701 main ()
13702 {
13703 opendir ();
13704   ;
13705   return 0;
13706 }
13707 _ACEOF
13708 rm -f conftest.$ac_objext conftest$ac_exeext
13709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13710   (eval $ac_link) 2>conftest.er1
13711   ac_status=$?
13712   grep -v '^ *+' conftest.er1 >conftest.err
13713   rm -f conftest.er1
13714   cat conftest.err >&5
13715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716   (exit $ac_status); } &&
13717          { ac_try='test -z "$ac_c_werror_flag"
13718                          || test ! -s conftest.err'
13719   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13720   (eval $ac_try) 2>&5
13721   ac_status=$?
13722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723   (exit $ac_status); }; } &&
13724          { ac_try='test -s conftest$ac_exeext'
13725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726   (eval $ac_try) 2>&5
13727   ac_status=$?
13728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729   (exit $ac_status); }; }; then
13730   ac_cv_search_opendir="none required"
13731 else
13732   echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13734
13735 fi
13736 rm -f conftest.err conftest.$ac_objext \
13737       conftest$ac_exeext conftest.$ac_ext
13738 if test "$ac_cv_search_opendir" = no; then
13739   for ac_lib in dir; do
13740     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13741     cat >conftest.$ac_ext <<_ACEOF
13742 /* confdefs.h.  */
13743 _ACEOF
13744 cat confdefs.h >>conftest.$ac_ext
13745 cat >>conftest.$ac_ext <<_ACEOF
13746 /* end confdefs.h.  */
13747
13748 /* Override any gcc2 internal prototype to avoid an error.  */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 /* We use char because int might match the return type of a gcc2
13753    builtin and then its argument prototype would still apply.  */
13754 char opendir ();
13755 int
13756 main ()
13757 {
13758 opendir ();
13759   ;
13760   return 0;
13761 }
13762 _ACEOF
13763 rm -f conftest.$ac_objext conftest$ac_exeext
13764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13765   (eval $ac_link) 2>conftest.er1
13766   ac_status=$?
13767   grep -v '^ *+' conftest.er1 >conftest.err
13768   rm -f conftest.er1
13769   cat conftest.err >&5
13770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13771   (exit $ac_status); } &&
13772          { ac_try='test -z "$ac_c_werror_flag"
13773                          || test ! -s conftest.err'
13774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13775   (eval $ac_try) 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; } &&
13779          { ac_try='test -s conftest$ac_exeext'
13780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13781   (eval $ac_try) 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }; then
13785   ac_cv_search_opendir="-l$ac_lib"
13786 break
13787 else
13788   echo "$as_me: failed program was:" >&5
13789 sed 's/^/| /' conftest.$ac_ext >&5
13790
13791 fi
13792 rm -f conftest.err conftest.$ac_objext \
13793       conftest$ac_exeext conftest.$ac_ext
13794   done
13795 fi
13796 LIBS=$ac_func_search_save_LIBS
13797 fi
13798 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13799 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13800 if test "$ac_cv_search_opendir" != no; then
13801   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13802
13803 fi
13804
13805 else
13806   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13807 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13808 if test "${ac_cv_search_opendir+set}" = set; then
13809   echo $ECHO_N "(cached) $ECHO_C" >&6
13810 else
13811   ac_func_search_save_LIBS=$LIBS
13812 ac_cv_search_opendir=no
13813 cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819
13820 /* Override any gcc2 internal prototype to avoid an error.  */
13821 #ifdef __cplusplus
13822 extern "C"
13823 #endif
13824 /* We use char because int might match the return type of a gcc2
13825    builtin and then its argument prototype would still apply.  */
13826 char opendir ();
13827 int
13828 main ()
13829 {
13830 opendir ();
13831   ;
13832   return 0;
13833 }
13834 _ACEOF
13835 rm -f conftest.$ac_objext conftest$ac_exeext
13836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13837   (eval $ac_link) 2>conftest.er1
13838   ac_status=$?
13839   grep -v '^ *+' conftest.er1 >conftest.err
13840   rm -f conftest.er1
13841   cat conftest.err >&5
13842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843   (exit $ac_status); } &&
13844          { ac_try='test -z "$ac_c_werror_flag"
13845                          || test ! -s conftest.err'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; } &&
13851          { ac_try='test -s conftest$ac_exeext'
13852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853   (eval $ac_try) 2>&5
13854   ac_status=$?
13855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856   (exit $ac_status); }; }; then
13857   ac_cv_search_opendir="none required"
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862 fi
13863 rm -f conftest.err conftest.$ac_objext \
13864       conftest$ac_exeext conftest.$ac_ext
13865 if test "$ac_cv_search_opendir" = no; then
13866   for ac_lib in x; do
13867     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13868     cat >conftest.$ac_ext <<_ACEOF
13869 /* confdefs.h.  */
13870 _ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h.  */
13874
13875 /* Override any gcc2 internal prototype to avoid an error.  */
13876 #ifdef __cplusplus
13877 extern "C"
13878 #endif
13879 /* We use char because int might match the return type of a gcc2
13880    builtin and then its argument prototype would still apply.  */
13881 char opendir ();
13882 int
13883 main ()
13884 {
13885 opendir ();
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 rm -f conftest.$ac_objext conftest$ac_exeext
13891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13892   (eval $ac_link) 2>conftest.er1
13893   ac_status=$?
13894   grep -v '^ *+' conftest.er1 >conftest.err
13895   rm -f conftest.er1
13896   cat conftest.err >&5
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); } &&
13899          { ac_try='test -z "$ac_c_werror_flag"
13900                          || test ! -s conftest.err'
13901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13902   (eval $ac_try) 2>&5
13903   ac_status=$?
13904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905   (exit $ac_status); }; } &&
13906          { ac_try='test -s conftest$ac_exeext'
13907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13908   (eval $ac_try) 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912   ac_cv_search_opendir="-l$ac_lib"
13913 break
13914 else
13915   echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13917
13918 fi
13919 rm -f conftest.err conftest.$ac_objext \
13920       conftest$ac_exeext conftest.$ac_ext
13921   done
13922 fi
13923 LIBS=$ac_func_search_save_LIBS
13924 fi
13925 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13926 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13927 if test "$ac_cv_search_opendir" != no; then
13928   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13929
13930 fi
13931
13932 fi
13933
13934 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13935 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13936 if test "${ac_cv_header_stat_broken+set}" = set; then
13937   echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939   cat >conftest.$ac_ext <<_ACEOF
13940 /* confdefs.h.  */
13941 _ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h.  */
13945 #include <sys/types.h>
13946 #include <sys/stat.h>
13947
13948 #if defined(S_ISBLK) && defined(S_IFDIR)
13949 # if S_ISBLK (S_IFDIR)
13950 You lose.
13951 # endif
13952 #endif
13953
13954 #if defined(S_ISBLK) && defined(S_IFCHR)
13955 # if S_ISBLK (S_IFCHR)
13956 You lose.
13957 # endif
13958 #endif
13959
13960 #if defined(S_ISLNK) && defined(S_IFREG)
13961 # if S_ISLNK (S_IFREG)
13962 You lose.
13963 # endif
13964 #endif
13965
13966 #if defined(S_ISSOCK) && defined(S_IFREG)
13967 # if S_ISSOCK (S_IFREG)
13968 You lose.
13969 # endif
13970 #endif
13971
13972 _ACEOF
13973 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13974   $EGREP "You lose" >/dev/null 2>&1; then
13975   ac_cv_header_stat_broken=yes
13976 else
13977   ac_cv_header_stat_broken=no
13978 fi
13979 rm -f conftest*
13980
13981 fi
13982 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13983 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13984 if test $ac_cv_header_stat_broken = yes; then
13985
13986 cat >>confdefs.h <<\_ACEOF
13987 #define STAT_MACROS_BROKEN 1
13988 _ACEOF
13989
13990 fi
13991
13992 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13995   echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997   cat >conftest.$ac_ext <<_ACEOF
13998 /* confdefs.h.  */
13999 _ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h.  */
14003 #include <sys/types.h>
14004 #include <sys/wait.h>
14005 #ifndef WEXITSTATUS
14006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
14007 #endif
14008 #ifndef WIFEXITED
14009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14010 #endif
14011
14012 int
14013 main ()
14014 {
14015   int s;
14016   wait (&s);
14017   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024   (eval $ac_compile) 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } &&
14031          { ac_try='test -z "$ac_c_werror_flag"
14032                          || test ! -s conftest.err'
14033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14034   (eval $ac_try) 2>&5
14035   ac_status=$?
14036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14037   (exit $ac_status); }; } &&
14038          { ac_try='test -s conftest.$ac_objext'
14039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14040   (eval $ac_try) 2>&5
14041   ac_status=$?
14042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043   (exit $ac_status); }; }; then
14044   ac_cv_header_sys_wait_h=yes
14045 else
14046   echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049 ac_cv_header_sys_wait_h=no
14050 fi
14051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 fi
14053 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14054 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14055 if test $ac_cv_header_sys_wait_h = yes; then
14056
14057 cat >>confdefs.h <<\_ACEOF
14058 #define HAVE_SYS_WAIT_H 1
14059 _ACEOF
14060
14061 fi
14062
14063 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14064 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14065 if test "${ac_cv_header_time+set}" = set; then
14066   echo $ECHO_N "(cached) $ECHO_C" >&6
14067 else
14068   cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074 #include <sys/types.h>
14075 #include <sys/time.h>
14076 #include <time.h>
14077
14078 int
14079 main ()
14080 {
14081 if ((struct tm *) 0)
14082 return 0;
14083   ;
14084   return 0;
14085 }
14086 _ACEOF
14087 rm -f conftest.$ac_objext
14088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14089   (eval $ac_compile) 2>conftest.er1
14090   ac_status=$?
14091   grep -v '^ *+' conftest.er1 >conftest.err
14092   rm -f conftest.er1
14093   cat conftest.err >&5
14094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095   (exit $ac_status); } &&
14096          { ac_try='test -z "$ac_c_werror_flag"
14097                          || test ! -s conftest.err'
14098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099   (eval $ac_try) 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; } &&
14103          { ac_try='test -s conftest.$ac_objext'
14104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105   (eval $ac_try) 2>&5
14106   ac_status=$?
14107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108   (exit $ac_status); }; }; then
14109   ac_cv_header_time=yes
14110 else
14111   echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14113
14114 ac_cv_header_time=no
14115 fi
14116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14117 fi
14118 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14119 echo "${ECHO_T}$ac_cv_header_time" >&6
14120 if test $ac_cv_header_time = yes; then
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define TIME_WITH_SYS_TIME 1
14124 _ACEOF
14125
14126 fi
14127
14128
14129 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14130 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14131 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
14179 /* confdefs.h.  */
14180 _ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h.  */
14184 $ac_includes_default
14185 int
14186 main ()
14187 {
14188 static struct stat ac_aggr;
14189 if (sizeof ac_aggr.st_blksize)
14190 return 0;
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14197   (eval $ac_compile) 2>conftest.er1
14198   ac_status=$?
14199   grep -v '^ *+' conftest.er1 >conftest.err
14200   rm -f conftest.er1
14201   cat conftest.err >&5
14202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203   (exit $ac_status); } &&
14204          { ac_try='test -z "$ac_c_werror_flag"
14205                          || test ! -s conftest.err'
14206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14207   (eval $ac_try) 2>&5
14208   ac_status=$?
14209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210   (exit $ac_status); }; } &&
14211          { ac_try='test -s conftest.$ac_objext'
14212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14213   (eval $ac_try) 2>&5
14214   ac_status=$?
14215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); }; }; then
14217   ac_cv_member_struct_stat_st_blksize=yes
14218 else
14219   echo "$as_me: failed program was:" >&5
14220 sed 's/^/| /' conftest.$ac_ext >&5
14221
14222 ac_cv_member_struct_stat_st_blksize=no
14223 fi
14224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14225 fi
14226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14227 fi
14228 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14229 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14230 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14231
14232 cat >>confdefs.h <<_ACEOF
14233 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14234 _ACEOF
14235
14236
14237 cat >>confdefs.h <<\_ACEOF
14238 #define HAVE_ST_BLKSIZE 1
14239 _ACEOF
14240
14241 fi
14242
14243
14244 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14245 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14246 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14247   echo $ECHO_N "(cached) $ECHO_C" >&6
14248 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
14294 /* confdefs.h.  */
14295 _ACEOF
14296 cat confdefs.h >>conftest.$ac_ext
14297 cat >>conftest.$ac_ext <<_ACEOF
14298 /* end confdefs.h.  */
14299 $ac_includes_default
14300 int
14301 main ()
14302 {
14303 static struct stat ac_aggr;
14304 if (sizeof ac_aggr.st_blocks)
14305 return 0;
14306   ;
14307   return 0;
14308 }
14309 _ACEOF
14310 rm -f conftest.$ac_objext
14311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14312   (eval $ac_compile) 2>conftest.er1
14313   ac_status=$?
14314   grep -v '^ *+' conftest.er1 >conftest.err
14315   rm -f conftest.er1
14316   cat conftest.err >&5
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -z "$ac_c_werror_flag"
14320                          || test ! -s conftest.err'
14321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322   (eval $ac_try) 2>&5
14323   ac_status=$?
14324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325   (exit $ac_status); }; } &&
14326          { ac_try='test -s conftest.$ac_objext'
14327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328   (eval $ac_try) 2>&5
14329   ac_status=$?
14330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331   (exit $ac_status); }; }; then
14332   ac_cv_member_struct_stat_st_blocks=yes
14333 else
14334   echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_cv_member_struct_stat_st_blocks=no
14338 fi
14339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14340 fi
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14342 fi
14343 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14345 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14346
14347 cat >>confdefs.h <<_ACEOF
14348 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14349 _ACEOF
14350
14351
14352 cat >>confdefs.h <<\_ACEOF
14353 #define HAVE_ST_BLOCKS 1
14354 _ACEOF
14355
14356 else
14357   case $LIBOBJS in
14358     "fileblocks.$ac_objext"   | \
14359   *" fileblocks.$ac_objext"   | \
14360     "fileblocks.$ac_objext "* | \
14361   *" fileblocks.$ac_objext "* ) ;;
14362   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14363 esac
14364
14365 fi
14366
14367
14368 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14369 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14370 if test "${ac_cv_struct_tm+set}" = set; then
14371   echo $ECHO_N "(cached) $ECHO_C" >&6
14372 else
14373   cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 #include <sys/types.h>
14380 #include <time.h>
14381
14382 int
14383 main ()
14384 {
14385 struct tm *tp; tp->tm_sec;
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 rm -f conftest.$ac_objext
14391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14392   (eval $ac_compile) 2>conftest.er1
14393   ac_status=$?
14394   grep -v '^ *+' conftest.er1 >conftest.err
14395   rm -f conftest.er1
14396   cat conftest.err >&5
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -z "$ac_c_werror_flag"
14400                          || test ! -s conftest.err'
14401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402   (eval $ac_try) 2>&5
14403   ac_status=$?
14404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405   (exit $ac_status); }; } &&
14406          { ac_try='test -s conftest.$ac_objext'
14407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408   (eval $ac_try) 2>&5
14409   ac_status=$?
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); }; }; then
14412   ac_cv_struct_tm=time.h
14413 else
14414   echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 ac_cv_struct_tm=sys/time.h
14418 fi
14419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14420 fi
14421 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14422 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14423 if test $ac_cv_struct_tm = sys/time.h; then
14424
14425 cat >>confdefs.h <<\_ACEOF
14426 #define TM_IN_SYS_TIME 1
14427 _ACEOF
14428
14429 fi
14430
14431 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14432 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14433 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14434   echo $ECHO_N "(cached) $ECHO_C" >&6
14435 else
14436   cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h.  */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h.  */
14442 #include <sys/types.h>
14443 #include <$ac_cv_struct_tm>
14444
14445
14446 int
14447 main ()
14448 {
14449 static struct tm ac_aggr;
14450 if (ac_aggr.tm_zone)
14451 return 0;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14458   (eval $ac_compile) 2>conftest.er1
14459   ac_status=$?
14460   grep -v '^ *+' conftest.er1 >conftest.err
14461   rm -f conftest.er1
14462   cat conftest.err >&5
14463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464   (exit $ac_status); } &&
14465          { ac_try='test -z "$ac_c_werror_flag"
14466                          || test ! -s conftest.err'
14467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14468   (eval $ac_try) 2>&5
14469   ac_status=$?
14470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471   (exit $ac_status); }; } &&
14472          { ac_try='test -s conftest.$ac_objext'
14473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14474   (eval $ac_try) 2>&5
14475   ac_status=$?
14476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477   (exit $ac_status); }; }; then
14478   ac_cv_member_struct_tm_tm_zone=yes
14479 else
14480   echo "$as_me: failed program was:" >&5
14481 sed 's/^/| /' conftest.$ac_ext >&5
14482
14483 cat >conftest.$ac_ext <<_ACEOF
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489 #include <sys/types.h>
14490 #include <$ac_cv_struct_tm>
14491
14492
14493 int
14494 main ()
14495 {
14496 static struct tm ac_aggr;
14497 if (sizeof ac_aggr.tm_zone)
14498 return 0;
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 rm -f conftest.$ac_objext
14504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14505   (eval $ac_compile) 2>conftest.er1
14506   ac_status=$?
14507   grep -v '^ *+' conftest.er1 >conftest.err
14508   rm -f conftest.er1
14509   cat conftest.err >&5
14510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511   (exit $ac_status); } &&
14512          { ac_try='test -z "$ac_c_werror_flag"
14513                          || test ! -s conftest.err'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest.$ac_objext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   ac_cv_member_struct_tm_tm_zone=yes
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 ac_cv_member_struct_tm_tm_zone=no
14531 fi
14532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14533 fi
14534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14535 fi
14536 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14537 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14538 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14539
14540 cat >>confdefs.h <<_ACEOF
14541 #define HAVE_STRUCT_TM_TM_ZONE 1
14542 _ACEOF
14543
14544
14545 fi
14546
14547 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14548
14549 cat >>confdefs.h <<\_ACEOF
14550 #define HAVE_TM_ZONE 1
14551 _ACEOF
14552
14553 else
14554   echo "$as_me:$LINENO: checking for tzname" >&5
14555 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14556 if test "${ac_cv_var_tzname+set}" = set; then
14557   echo $ECHO_N "(cached) $ECHO_C" >&6
14558 else
14559   cat >conftest.$ac_ext <<_ACEOF
14560 /* confdefs.h.  */
14561 _ACEOF
14562 cat confdefs.h >>conftest.$ac_ext
14563 cat >>conftest.$ac_ext <<_ACEOF
14564 /* end confdefs.h.  */
14565 #include <time.h>
14566 #ifndef tzname /* For SGI.  */
14567 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14568 #endif
14569
14570 int
14571 main ()
14572 {
14573 atoi(*tzname);
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14580   (eval $ac_link) 2>conftest.er1
14581   ac_status=$?
14582   grep -v '^ *+' conftest.er1 >conftest.err
14583   rm -f conftest.er1
14584   cat conftest.err >&5
14585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586   (exit $ac_status); } &&
14587          { ac_try='test -z "$ac_c_werror_flag"
14588                          || test ! -s conftest.err'
14589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14590   (eval $ac_try) 2>&5
14591   ac_status=$?
14592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593   (exit $ac_status); }; } &&
14594          { ac_try='test -s conftest$ac_exeext'
14595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14596   (eval $ac_try) 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; }; then
14600   ac_cv_var_tzname=yes
14601 else
14602   echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14604
14605 ac_cv_var_tzname=no
14606 fi
14607 rm -f conftest.err conftest.$ac_objext \
14608       conftest$ac_exeext conftest.$ac_ext
14609 fi
14610 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14611 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14612   if test $ac_cv_var_tzname = yes; then
14613
14614 cat >>confdefs.h <<\_ACEOF
14615 #define HAVE_TZNAME 1
14616 _ACEOF
14617
14618   fi
14619 fi
14620
14621
14622 echo "$as_me:$LINENO: checking for utime.h" >&5
14623 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14624 if test "${ba_cv_header_utime_h+set}" = set; then
14625   echo $ECHO_N "(cached) $ECHO_C" >&6
14626 else
14627   cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h.  */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h.  */
14633
14634 #include <sys/types.h>
14635 #include <utime.h>
14636 int
14637 main ()
14638 {
14639 struct utimbuf foo
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14646   (eval $ac_compile) 2>conftest.er1
14647   ac_status=$?
14648   grep -v '^ *+' conftest.er1 >conftest.err
14649   rm -f conftest.er1
14650   cat conftest.err >&5
14651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652   (exit $ac_status); } &&
14653          { ac_try='test -z "$ac_c_werror_flag"
14654                          || test ! -s conftest.err'
14655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14656   (eval $ac_try) 2>&5
14657   ac_status=$?
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); }; } &&
14660          { ac_try='test -s conftest.$ac_objext'
14661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662   (eval $ac_try) 2>&5
14663   ac_status=$?
14664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665   (exit $ac_status); }; }; then
14666   ba_cv_header_utime_h=yes
14667 else
14668   echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14670
14671 ba_cv_header_utime_h=no
14672 fi
14673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14674 fi
14675 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14676 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14677 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14678 #define HAVE_UTIME_H 1
14679 _ACEOF
14680
14681
14682 echo "$as_me:$LINENO: checking for socklen_t" >&5
14683 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14684 if test "${ba_cv_header_socklen_t+set}" = set; then
14685   echo $ECHO_N "(cached) $ECHO_C" >&6
14686 else
14687   cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693
14694 #include <sys/types.h>
14695 #include <sys/socket.h>
14696 int
14697 main ()
14698 {
14699 socklen_t x
14700   ;
14701   return 0;
14702 }
14703 _ACEOF
14704 rm -f conftest.$ac_objext
14705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14706   (eval $ac_compile) 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag"
14714                          || test ! -s conftest.err'
14715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14716   (eval $ac_try) 2>&5
14717   ac_status=$?
14718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719   (exit $ac_status); }; } &&
14720          { ac_try='test -s conftest.$ac_objext'
14721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722   (eval $ac_try) 2>&5
14723   ac_status=$?
14724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725   (exit $ac_status); }; }; then
14726   ba_cv_header_socklen_t=yes
14727 else
14728   echo "$as_me: failed program was:" >&5
14729 sed 's/^/| /' conftest.$ac_ext >&5
14730
14731 ba_cv_header_socklen_t=no
14732 fi
14733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14734 fi
14735 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14736 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14737 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14738 #define HAVE_SOCKLEN_T 1
14739 _ACEOF
14740
14741
14742 echo "$as_me:$LINENO: checking for bigendian" >&5
14743 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14744 if test "${ba_cv_bigendian+set}" = set; then
14745   echo $ECHO_N "(cached) $ECHO_C" >&6
14746 else
14747   if test "$cross_compiling" = yes; then
14748   ba_cv_bigendian=no
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 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14757 _ACEOF
14758 rm -f conftest$ac_exeext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14760   (eval $ac_link) 2>&5
14761   ac_status=$?
14762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14765   (eval $ac_try) 2>&5
14766   ac_status=$?
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); }; }; then
14769   ba_cv_bigendian=yes
14770 else
14771   echo "$as_me: program exited with status $ac_status" >&5
14772 echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775 ( exit $ac_status )
14776 ba_cv_bigendian=no
14777 fi
14778 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 fi
14781 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14782 echo "${ECHO_T}$ba_cv_bigendian" >&6
14783 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14784 #define HAVE_BIGENDIAN 1
14785 _ACEOF
14786
14787
14788
14789 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14790 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14791 if test "${ac_cv_c_const+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   cat >conftest.$ac_ext <<_ACEOF
14795 /* confdefs.h.  */
14796 _ACEOF
14797 cat confdefs.h >>conftest.$ac_ext
14798 cat >>conftest.$ac_ext <<_ACEOF
14799 /* end confdefs.h.  */
14800
14801 int
14802 main ()
14803 {
14804 /* FIXME: Include the comments suggested by Paul. */
14805 #ifndef __cplusplus
14806   /* Ultrix mips cc rejects this.  */
14807   typedef int charset[2];
14808   const charset x;
14809   /* SunOS 4.1.1 cc rejects this.  */
14810   char const *const *ccp;
14811   char **p;
14812   /* NEC SVR4.0.2 mips cc rejects this.  */
14813   struct point {int x, y;};
14814   static struct point const zero = {0,0};
14815   /* AIX XL C 1.02.0.0 rejects this.
14816      It does not let you subtract one const X* pointer from another in
14817      an arm of an if-expression whose if-part is not a constant
14818      expression */
14819   const char *g = "string";
14820   ccp = &g + (g ? g-g : 0);
14821   /* HPUX 7.0 cc rejects these. */
14822   ++ccp;
14823   p = (char**) ccp;
14824   ccp = (char const *const *) p;
14825   { /* SCO 3.2v4 cc rejects this.  */
14826     char *t;
14827     char const *s = 0 ? (char *) 0 : (char const *) 0;
14828
14829     *t++ = 0;
14830   }
14831   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14832     int x[] = {25, 17};
14833     const int *foo = &x[0];
14834     ++foo;
14835   }
14836   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14837     typedef const int *iptr;
14838     iptr p = 0;
14839     ++p;
14840   }
14841   { /* AIX XL C 1.02.0.0 rejects this saying
14842        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14843     struct s { int j; const int *ap[3]; };
14844     struct s *b; b->j = 5;
14845   }
14846   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14847     const int foo = 10;
14848   }
14849 #endif
14850
14851   ;
14852   return 0;
14853 }
14854 _ACEOF
14855 rm -f conftest.$ac_objext
14856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14857   (eval $ac_compile) 2>conftest.er1
14858   ac_status=$?
14859   grep -v '^ *+' conftest.er1 >conftest.err
14860   rm -f conftest.er1
14861   cat conftest.err >&5
14862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863   (exit $ac_status); } &&
14864          { ac_try='test -z "$ac_c_werror_flag"
14865                          || test ! -s conftest.err'
14866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14867   (eval $ac_try) 2>&5
14868   ac_status=$?
14869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870   (exit $ac_status); }; } &&
14871          { ac_try='test -s conftest.$ac_objext'
14872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873   (eval $ac_try) 2>&5
14874   ac_status=$?
14875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876   (exit $ac_status); }; }; then
14877   ac_cv_c_const=yes
14878 else
14879   echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14881
14882 ac_cv_c_const=no
14883 fi
14884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14885 fi
14886 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14887 echo "${ECHO_T}$ac_cv_c_const" >&6
14888 if test $ac_cv_c_const = no; then
14889
14890 cat >>confdefs.h <<\_ACEOF
14891 #define const
14892 _ACEOF
14893
14894 fi
14895
14896
14897
14898 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14899 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14900 fstype=no
14901 # The order of these tests is important.
14902 cat >conftest.$ac_ext <<_ACEOF
14903 /* confdefs.h.  */
14904 _ACEOF
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h.  */
14908 #include <sys/statvfs.h>
14909 #include <sys/fstyp.h>
14910 _ACEOF
14911 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14912   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } >/dev/null; then
14919   if test -s conftest.err; then
14920     ac_cpp_err=$ac_c_preproc_warn_flag
14921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14922   else
14923     ac_cpp_err=
14924   fi
14925 else
14926   ac_cpp_err=yes
14927 fi
14928 if test -z "$ac_cpp_err"; then
14929   cat >>confdefs.h <<\_ACEOF
14930 #define FSTYPE_STATVFS 1
14931 _ACEOF
14932  fstype=SVR4
14933 else
14934   echo "$as_me: failed program was:" >&5
14935 sed 's/^/| /' conftest.$ac_ext >&5
14936
14937
14938 fi
14939 rm -f conftest.err conftest.$ac_ext
14940 if test $fstype = no; then
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947 #include <sys/statfs.h>
14948 #include <sys/fstyp.h>
14949 _ACEOF
14950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14952   ac_status=$?
14953   grep -v '^ *+' conftest.er1 >conftest.err
14954   rm -f conftest.er1
14955   cat conftest.err >&5
14956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14957   (exit $ac_status); } >/dev/null; then
14958   if test -s conftest.err; then
14959     ac_cpp_err=$ac_c_preproc_warn_flag
14960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14961   else
14962     ac_cpp_err=
14963   fi
14964 else
14965   ac_cpp_err=yes
14966 fi
14967 if test -z "$ac_cpp_err"; then
14968   cat >>confdefs.h <<\_ACEOF
14969 #define FSTYPE_USG_STATFS 1
14970 _ACEOF
14971  fstype=SVR3
14972 else
14973   echo "$as_me: failed program was:" >&5
14974 sed 's/^/| /' conftest.$ac_ext >&5
14975
14976
14977 fi
14978 rm -f conftest.err conftest.$ac_ext
14979 fi
14980 if test $fstype = no; then
14981 cat >conftest.$ac_ext <<_ACEOF
14982 /* confdefs.h.  */
14983 _ACEOF
14984 cat confdefs.h >>conftest.$ac_ext
14985 cat >>conftest.$ac_ext <<_ACEOF
14986 /* end confdefs.h.  */
14987 #include <sys/statfs.h>
14988 #include <sys/vmount.h>
14989 _ACEOF
14990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14992   ac_status=$?
14993   grep -v '^ *+' conftest.er1 >conftest.err
14994   rm -f conftest.er1
14995   cat conftest.err >&5
14996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997   (exit $ac_status); } >/dev/null; then
14998   if test -s conftest.err; then
14999     ac_cpp_err=$ac_c_preproc_warn_flag
15000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15001   else
15002     ac_cpp_err=
15003   fi
15004 else
15005   ac_cpp_err=yes
15006 fi
15007 if test -z "$ac_cpp_err"; then
15008   cat >>confdefs.h <<\_ACEOF
15009 #define FSTYPE_AIX_STATFS 1
15010 _ACEOF
15011  fstype=AIX
15012 else
15013   echo "$as_me: failed program was:" >&5
15014 sed 's/^/| /' conftest.$ac_ext >&5
15015
15016
15017 fi
15018 rm -f conftest.err conftest.$ac_ext
15019 fi
15020 if test $fstype = no; then
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h.  */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h.  */
15027 #include <mntent.h>
15028 _ACEOF
15029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15030   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } >/dev/null; then
15037   if test -s conftest.err; then
15038     ac_cpp_err=$ac_c_preproc_warn_flag
15039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15040   else
15041     ac_cpp_err=
15042   fi
15043 else
15044   ac_cpp_err=yes
15045 fi
15046 if test -z "$ac_cpp_err"; then
15047   cat >>confdefs.h <<\_ACEOF
15048 #define FSTYPE_MNTENT 1
15049 _ACEOF
15050  fstype=4.3BSD
15051 else
15052   echo "$as_me: failed program was:" >&5
15053 sed 's/^/| /' conftest.$ac_ext >&5
15054
15055
15056 fi
15057 rm -f conftest.err conftest.$ac_ext
15058 fi
15059 if test $fstype = no; then
15060 cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h.  */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h.  */
15066 #include <sys/mount.h>
15067
15068 _ACEOF
15069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15070   $EGREP "f_type;" >/dev/null 2>&1; then
15071   cat >>confdefs.h <<\_ACEOF
15072 #define FSTYPE_STATFS 1
15073 _ACEOF
15074  fstype=4.4BSD/OSF1
15075 fi
15076 rm -f conftest*
15077
15078 fi
15079 if test $fstype = no; then
15080 cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 #include <sys/mount.h>
15087 #include <sys/fs_types.h>
15088 _ACEOF
15089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15090   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15091   ac_status=$?
15092   grep -v '^ *+' conftest.er1 >conftest.err
15093   rm -f conftest.er1
15094   cat conftest.err >&5
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } >/dev/null; then
15097   if test -s conftest.err; then
15098     ac_cpp_err=$ac_c_preproc_warn_flag
15099     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15100   else
15101     ac_cpp_err=
15102   fi
15103 else
15104   ac_cpp_err=yes
15105 fi
15106 if test -z "$ac_cpp_err"; then
15107   cat >>confdefs.h <<\_ACEOF
15108 #define FSTYPE_GETMNT 1
15109 _ACEOF
15110  fstype=Ultrix
15111 else
15112   echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15114
15115
15116 fi
15117 rm -f conftest.err conftest.$ac_ext
15118 fi
15119 echo "$as_me:$LINENO: result: $fstype" >&5
15120 echo "${ECHO_T}$fstype" >&6
15121
15122 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15124 if test "${ac_cv_type_signal+set}" = set; then
15125   echo $ECHO_N "(cached) $ECHO_C" >&6
15126 else
15127   cat >conftest.$ac_ext <<_ACEOF
15128 /* confdefs.h.  */
15129 _ACEOF
15130 cat confdefs.h >>conftest.$ac_ext
15131 cat >>conftest.$ac_ext <<_ACEOF
15132 /* end confdefs.h.  */
15133 #include <sys/types.h>
15134 #include <signal.h>
15135 #ifdef signal
15136 # undef signal
15137 #endif
15138 #ifdef __cplusplus
15139 extern "C" void (*signal (int, void (*)(int)))(int);
15140 #else
15141 void (*signal ()) ();
15142 #endif
15143
15144 int
15145 main ()
15146 {
15147 int i;
15148   ;
15149   return 0;
15150 }
15151 _ACEOF
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154   (eval $ac_compile) 2>conftest.er1
15155   ac_status=$?
15156   grep -v '^ *+' conftest.er1 >conftest.err
15157   rm -f conftest.er1
15158   cat conftest.err >&5
15159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160   (exit $ac_status); } &&
15161          { ac_try='test -z "$ac_c_werror_flag"
15162                          || test ! -s conftest.err'
15163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15164   (eval $ac_try) 2>&5
15165   ac_status=$?
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); }; } &&
15168          { ac_try='test -s conftest.$ac_objext'
15169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15170   (eval $ac_try) 2>&5
15171   ac_status=$?
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   (exit $ac_status); }; }; then
15174   ac_cv_type_signal=void
15175 else
15176   echo "$as_me: failed program was:" >&5
15177 sed 's/^/| /' conftest.$ac_ext >&5
15178
15179 ac_cv_type_signal=int
15180 fi
15181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15182 fi
15183 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15184 echo "${ECHO_T}$ac_cv_type_signal" >&6
15185
15186 cat >>confdefs.h <<_ACEOF
15187 #define RETSIGTYPE $ac_cv_type_signal
15188 _ACEOF
15189
15190
15191
15192 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15193 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15194 if test "${bash_cv_signal_vintage+set}" = set; then
15195   echo $ECHO_N "(cached) $ECHO_C" >&6
15196 else
15197
15198   cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204 #include <signal.h>
15205 int
15206 main ()
15207 {
15208
15209     sigset_t ss;
15210     struct sigaction sa;
15211     sigemptyset(&ss); sigsuspend(&ss);
15212     sigaction(SIGINT, &sa, (struct sigaction *) 0);
15213     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15214
15215   ;
15216   return 0;
15217 }
15218 _ACEOF
15219 rm -f conftest.$ac_objext conftest$ac_exeext
15220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15221   (eval $ac_link) 2>conftest.er1
15222   ac_status=$?
15223   grep -v '^ *+' conftest.er1 >conftest.err
15224   rm -f conftest.er1
15225   cat conftest.err >&5
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); } &&
15228          { ac_try='test -z "$ac_c_werror_flag"
15229                          || test ! -s conftest.err'
15230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231   (eval $ac_try) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); }; } &&
15235          { ac_try='test -s conftest$ac_exeext'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   bash_cv_signal_vintage=posix
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246
15247     cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h.  */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h.  */
15253 #include <signal.h>
15254 int
15255 main ()
15256 {
15257
15258         int mask = sigmask(SIGINT);
15259         sigsetmask(mask); sigblock(mask); sigpause(mask);
15260
15261   ;
15262   return 0;
15263 }
15264 _ACEOF
15265 rm -f conftest.$ac_objext conftest$ac_exeext
15266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15267   (eval $ac_link) 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag"
15275                          || test ! -s conftest.err'
15276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277   (eval $ac_try) 2>&5
15278   ac_status=$?
15279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280   (exit $ac_status); }; } &&
15281          { ac_try='test -s conftest$ac_exeext'
15282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283   (eval $ac_try) 2>&5
15284   ac_status=$?
15285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286   (exit $ac_status); }; }; then
15287   bash_cv_signal_vintage=4.2bsd
15288 else
15289   echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15291
15292
15293       cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300         #include <signal.h>
15301         RETSIGTYPE foo() { }
15302 int
15303 main ()
15304 {
15305
15306                 int mask = sigmask(SIGINT);
15307                 sigset(SIGINT, foo); sigrelse(SIGINT);
15308                 sighold(SIGINT); sigpause(SIGINT);
15309
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15316   (eval $ac_link) 2>conftest.er1
15317   ac_status=$?
15318   grep -v '^ *+' conftest.er1 >conftest.err
15319   rm -f conftest.er1
15320   cat conftest.err >&5
15321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322   (exit $ac_status); } &&
15323          { ac_try='test -z "$ac_c_werror_flag"
15324                          || test ! -s conftest.err'
15325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15326   (eval $ac_try) 2>&5
15327   ac_status=$?
15328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329   (exit $ac_status); }; } &&
15330          { ac_try='test -s conftest$ac_exeext'
15331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332   (eval $ac_try) 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   bash_cv_signal_vintage=svr3
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341 bash_cv_signal_vintage=v7
15342
15343 fi
15344 rm -f conftest.err conftest.$ac_objext \
15345       conftest$ac_exeext conftest.$ac_ext
15346
15347 fi
15348 rm -f conftest.err conftest.$ac_objext \
15349       conftest$ac_exeext conftest.$ac_ext
15350
15351 fi
15352 rm -f conftest.err conftest.$ac_objext \
15353       conftest$ac_exeext conftest.$ac_ext
15354
15355 fi
15356
15357 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15358 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15359 if test "$bash_cv_signal_vintage" = posix; then
15360 cat >>confdefs.h <<\_ACEOF
15361 #define HAVE_POSIX_SIGNALS 1
15362 _ACEOF
15363
15364 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_BSD_SIGNALS 1
15367 _ACEOF
15368
15369 elif test "$bash_cv_signal_vintage" = svr3; then
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_USG_SIGHOLD 1
15372 _ACEOF
15373
15374 fi
15375
15376 echo "$as_me:$LINENO: checking for mode_t" >&5
15377 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15378 if test "${ac_cv_type_mode_t+set}" = set; then
15379   echo $ECHO_N "(cached) $ECHO_C" >&6
15380 else
15381   cat >conftest.$ac_ext <<_ACEOF
15382 /* confdefs.h.  */
15383 _ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h.  */
15387 $ac_includes_default
15388 int
15389 main ()
15390 {
15391 if ((mode_t *) 0)
15392   return 0;
15393 if (sizeof (mode_t))
15394   return 0;
15395   ;
15396   return 0;
15397 }
15398 _ACEOF
15399 rm -f conftest.$ac_objext
15400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15401   (eval $ac_compile) 2>conftest.er1
15402   ac_status=$?
15403   grep -v '^ *+' conftest.er1 >conftest.err
15404   rm -f conftest.er1
15405   cat conftest.err >&5
15406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15407   (exit $ac_status); } &&
15408          { ac_try='test -z "$ac_c_werror_flag"
15409                          || test ! -s conftest.err'
15410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15411   (eval $ac_try) 2>&5
15412   ac_status=$?
15413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414   (exit $ac_status); }; } &&
15415          { ac_try='test -s conftest.$ac_objext'
15416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15417   (eval $ac_try) 2>&5
15418   ac_status=$?
15419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15420   (exit $ac_status); }; }; then
15421   ac_cv_type_mode_t=yes
15422 else
15423   echo "$as_me: failed program was:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15425
15426 ac_cv_type_mode_t=no
15427 fi
15428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15429 fi
15430 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15431 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15432 if test $ac_cv_type_mode_t = yes; then
15433   :
15434 else
15435
15436 cat >>confdefs.h <<_ACEOF
15437 #define mode_t int
15438 _ACEOF
15439
15440 fi
15441
15442 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15443 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15444 if test "${ac_cv_type_uid_t+set}" = set; then
15445   echo $ECHO_N "(cached) $ECHO_C" >&6
15446 else
15447   cat >conftest.$ac_ext <<_ACEOF
15448 /* confdefs.h.  */
15449 _ACEOF
15450 cat confdefs.h >>conftest.$ac_ext
15451 cat >>conftest.$ac_ext <<_ACEOF
15452 /* end confdefs.h.  */
15453 #include <sys/types.h>
15454
15455 _ACEOF
15456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15457   $EGREP "uid_t" >/dev/null 2>&1; then
15458   ac_cv_type_uid_t=yes
15459 else
15460   ac_cv_type_uid_t=no
15461 fi
15462 rm -f conftest*
15463
15464 fi
15465 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15466 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15467 if test $ac_cv_type_uid_t = no; then
15468
15469 cat >>confdefs.h <<\_ACEOF
15470 #define uid_t int
15471 _ACEOF
15472
15473
15474 cat >>confdefs.h <<\_ACEOF
15475 #define gid_t int
15476 _ACEOF
15477
15478 fi
15479
15480 echo "$as_me:$LINENO: checking for size_t" >&5
15481 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15482 if test "${ac_cv_type_size_t+set}" = set; then
15483   echo $ECHO_N "(cached) $ECHO_C" >&6
15484 else
15485   cat >conftest.$ac_ext <<_ACEOF
15486 /* confdefs.h.  */
15487 _ACEOF
15488 cat confdefs.h >>conftest.$ac_ext
15489 cat >>conftest.$ac_ext <<_ACEOF
15490 /* end confdefs.h.  */
15491 $ac_includes_default
15492 int
15493 main ()
15494 {
15495 if ((size_t *) 0)
15496   return 0;
15497 if (sizeof (size_t))
15498   return 0;
15499   ;
15500   return 0;
15501 }
15502 _ACEOF
15503 rm -f conftest.$ac_objext
15504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15505   (eval $ac_compile) 2>conftest.er1
15506   ac_status=$?
15507   grep -v '^ *+' conftest.er1 >conftest.err
15508   rm -f conftest.er1
15509   cat conftest.err >&5
15510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511   (exit $ac_status); } &&
15512          { ac_try='test -z "$ac_c_werror_flag"
15513                          || test ! -s conftest.err'
15514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15515   (eval $ac_try) 2>&5
15516   ac_status=$?
15517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518   (exit $ac_status); }; } &&
15519          { ac_try='test -s conftest.$ac_objext'
15520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15521   (eval $ac_try) 2>&5
15522   ac_status=$?
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); }; }; then
15525   ac_cv_type_size_t=yes
15526 else
15527   echo "$as_me: failed program was:" >&5
15528 sed 's/^/| /' conftest.$ac_ext >&5
15529
15530 ac_cv_type_size_t=no
15531 fi
15532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15533 fi
15534 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15535 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15536 if test $ac_cv_type_size_t = yes; then
15537   :
15538 else
15539
15540 cat >>confdefs.h <<_ACEOF
15541 #define size_t unsigned
15542 _ACEOF
15543
15544 fi
15545
15546 echo "$as_me:$LINENO: checking for pid_t" >&5
15547 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15548 if test "${ac_cv_type_pid_t+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 $ac_includes_default
15558 int
15559 main ()
15560 {
15561 if ((pid_t *) 0)
15562   return 0;
15563 if (sizeof (pid_t))
15564   return 0;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest.$ac_objext
15570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15571   (eval $ac_compile) 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag"
15579                          || test ! -s conftest.err'
15580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15581   (eval $ac_try) 2>&5
15582   ac_status=$?
15583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584   (exit $ac_status); }; } &&
15585          { ac_try='test -s conftest.$ac_objext'
15586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15587   (eval $ac_try) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); }; }; then
15591   ac_cv_type_pid_t=yes
15592 else
15593   echo "$as_me: failed program was:" >&5
15594 sed 's/^/| /' conftest.$ac_ext >&5
15595
15596 ac_cv_type_pid_t=no
15597 fi
15598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15599 fi
15600 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15601 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15602 if test $ac_cv_type_pid_t = yes; then
15603   :
15604 else
15605
15606 cat >>confdefs.h <<_ACEOF
15607 #define pid_t int
15608 _ACEOF
15609
15610 fi
15611
15612 echo "$as_me:$LINENO: checking for off_t" >&5
15613 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15614 if test "${ac_cv_type_off_t+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h.  */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h.  */
15623 $ac_includes_default
15624 int
15625 main ()
15626 {
15627 if ((off_t *) 0)
15628   return 0;
15629 if (sizeof (off_t))
15630   return 0;
15631   ;
15632   return 0;
15633 }
15634 _ACEOF
15635 rm -f conftest.$ac_objext
15636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15637   (eval $ac_compile) 2>conftest.er1
15638   ac_status=$?
15639   grep -v '^ *+' conftest.er1 >conftest.err
15640   rm -f conftest.er1
15641   cat conftest.err >&5
15642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } &&
15644          { ac_try='test -z "$ac_c_werror_flag"
15645                          || test ! -s conftest.err'
15646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15647   (eval $ac_try) 2>&5
15648   ac_status=$?
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); }; } &&
15651          { ac_try='test -s conftest.$ac_objext'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; }; then
15657   ac_cv_type_off_t=yes
15658 else
15659   echo "$as_me: failed program was:" >&5
15660 sed 's/^/| /' conftest.$ac_ext >&5
15661
15662 ac_cv_type_off_t=no
15663 fi
15664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15665 fi
15666 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15667 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15668 if test $ac_cv_type_off_t = yes; then
15669   :
15670 else
15671
15672 cat >>confdefs.h <<_ACEOF
15673 #define off_t long
15674 _ACEOF
15675
15676 fi
15677
15678 echo "$as_me:$LINENO: checking for ino_t" >&5
15679 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15680 if test "${ac_cv_type_ino_t+set}" = set; then
15681   echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683   cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h.  */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h.  */
15689 $ac_includes_default
15690 int
15691 main ()
15692 {
15693 if ((ino_t *) 0)
15694   return 0;
15695 if (sizeof (ino_t))
15696   return 0;
15697   ;
15698   return 0;
15699 }
15700 _ACEOF
15701 rm -f conftest.$ac_objext
15702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15703   (eval $ac_compile) 2>conftest.er1
15704   ac_status=$?
15705   grep -v '^ *+' conftest.er1 >conftest.err
15706   rm -f conftest.er1
15707   cat conftest.err >&5
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); } &&
15710          { ac_try='test -z "$ac_c_werror_flag"
15711                          || test ! -s conftest.err'
15712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713   (eval $ac_try) 2>&5
15714   ac_status=$?
15715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716   (exit $ac_status); }; } &&
15717          { ac_try='test -s conftest.$ac_objext'
15718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15719   (eval $ac_try) 2>&5
15720   ac_status=$?
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); }; }; then
15723   ac_cv_type_ino_t=yes
15724 else
15725   echo "$as_me: failed program was:" >&5
15726 sed 's/^/| /' conftest.$ac_ext >&5
15727
15728 ac_cv_type_ino_t=no
15729 fi
15730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15731 fi
15732 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15733 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15734 if test $ac_cv_type_ino_t = yes; then
15735   :
15736 else
15737
15738 cat >>confdefs.h <<_ACEOF
15739 #define ino_t unsigned long
15740 _ACEOF
15741
15742 fi
15743
15744 echo "$as_me:$LINENO: checking for dev_t" >&5
15745 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15746 if test "${ac_cv_type_dev_t+set}" = set; then
15747   echo $ECHO_N "(cached) $ECHO_C" >&6
15748 else
15749   cat >conftest.$ac_ext <<_ACEOF
15750 /* confdefs.h.  */
15751 _ACEOF
15752 cat confdefs.h >>conftest.$ac_ext
15753 cat >>conftest.$ac_ext <<_ACEOF
15754 /* end confdefs.h.  */
15755 $ac_includes_default
15756 int
15757 main ()
15758 {
15759 if ((dev_t *) 0)
15760   return 0;
15761 if (sizeof (dev_t))
15762   return 0;
15763   ;
15764   return 0;
15765 }
15766 _ACEOF
15767 rm -f conftest.$ac_objext
15768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769   (eval $ac_compile) 2>conftest.er1
15770   ac_status=$?
15771   grep -v '^ *+' conftest.er1 >conftest.err
15772   rm -f conftest.er1
15773   cat conftest.err >&5
15774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15775   (exit $ac_status); } &&
15776          { ac_try='test -z "$ac_c_werror_flag"
15777                          || test ! -s conftest.err'
15778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15779   (eval $ac_try) 2>&5
15780   ac_status=$?
15781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15782   (exit $ac_status); }; } &&
15783          { ac_try='test -s conftest.$ac_objext'
15784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15785   (eval $ac_try) 2>&5
15786   ac_status=$?
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); }; }; then
15789   ac_cv_type_dev_t=yes
15790 else
15791   echo "$as_me: failed program was:" >&5
15792 sed 's/^/| /' conftest.$ac_ext >&5
15793
15794 ac_cv_type_dev_t=no
15795 fi
15796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15797 fi
15798 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15799 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15800 if test $ac_cv_type_dev_t = yes; then
15801   :
15802 else
15803
15804 cat >>confdefs.h <<_ACEOF
15805 #define dev_t unsigned long
15806 _ACEOF
15807
15808 fi
15809
15810 echo "$as_me:$LINENO: checking for daddr_t" >&5
15811 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15812 if test "${ac_cv_type_daddr_t+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 $ac_includes_default
15822 int
15823 main ()
15824 {
15825 if ((daddr_t *) 0)
15826   return 0;
15827 if (sizeof (daddr_t))
15828   return 0;
15829   ;
15830   return 0;
15831 }
15832 _ACEOF
15833 rm -f conftest.$ac_objext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15835   (eval $ac_compile) 2>conftest.er1
15836   ac_status=$?
15837   grep -v '^ *+' conftest.er1 >conftest.err
15838   rm -f conftest.er1
15839   cat conftest.err >&5
15840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841   (exit $ac_status); } &&
15842          { ac_try='test -z "$ac_c_werror_flag"
15843                          || test ! -s conftest.err'
15844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845   (eval $ac_try) 2>&5
15846   ac_status=$?
15847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848   (exit $ac_status); }; } &&
15849          { ac_try='test -s conftest.$ac_objext'
15850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15851   (eval $ac_try) 2>&5
15852   ac_status=$?
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); }; }; then
15855   ac_cv_type_daddr_t=yes
15856 else
15857   echo "$as_me: failed program was:" >&5
15858 sed 's/^/| /' conftest.$ac_ext >&5
15859
15860 ac_cv_type_daddr_t=no
15861 fi
15862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15863 fi
15864 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15865 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15866 if test $ac_cv_type_daddr_t = yes; then
15867   :
15868 else
15869
15870 cat >>confdefs.h <<_ACEOF
15871 #define daddr_t long
15872 _ACEOF
15873
15874 fi
15875
15876 echo "$as_me:$LINENO: checking for major_t" >&5
15877 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15878 if test "${ac_cv_type_major_t+set}" = set; then
15879   echo $ECHO_N "(cached) $ECHO_C" >&6
15880 else
15881   cat >conftest.$ac_ext <<_ACEOF
15882 /* confdefs.h.  */
15883 _ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h.  */
15887 $ac_includes_default
15888 int
15889 main ()
15890 {
15891 if ((major_t *) 0)
15892   return 0;
15893 if (sizeof (major_t))
15894   return 0;
15895   ;
15896   return 0;
15897 }
15898 _ACEOF
15899 rm -f conftest.$ac_objext
15900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15901   (eval $ac_compile) 2>conftest.er1
15902   ac_status=$?
15903   grep -v '^ *+' conftest.er1 >conftest.err
15904   rm -f conftest.er1
15905   cat conftest.err >&5
15906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15907   (exit $ac_status); } &&
15908          { ac_try='test -z "$ac_c_werror_flag"
15909                          || test ! -s conftest.err'
15910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911   (eval $ac_try) 2>&5
15912   ac_status=$?
15913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914   (exit $ac_status); }; } &&
15915          { ac_try='test -s conftest.$ac_objext'
15916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15917   (eval $ac_try) 2>&5
15918   ac_status=$?
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); }; }; then
15921   ac_cv_type_major_t=yes
15922 else
15923   echo "$as_me: failed program was:" >&5
15924 sed 's/^/| /' conftest.$ac_ext >&5
15925
15926 ac_cv_type_major_t=no
15927 fi
15928 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15929 fi
15930 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15931 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15932 if test $ac_cv_type_major_t = yes; then
15933   :
15934 else
15935
15936 cat >>confdefs.h <<_ACEOF
15937 #define major_t int
15938 _ACEOF
15939
15940 fi
15941
15942 echo "$as_me:$LINENO: checking for minor_t" >&5
15943 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15944 if test "${ac_cv_type_minor_t+set}" = set; then
15945   echo $ECHO_N "(cached) $ECHO_C" >&6
15946 else
15947   cat >conftest.$ac_ext <<_ACEOF
15948 /* confdefs.h.  */
15949 _ACEOF
15950 cat confdefs.h >>conftest.$ac_ext
15951 cat >>conftest.$ac_ext <<_ACEOF
15952 /* end confdefs.h.  */
15953 $ac_includes_default
15954 int
15955 main ()
15956 {
15957 if ((minor_t *) 0)
15958   return 0;
15959 if (sizeof (minor_t))
15960   return 0;
15961   ;
15962   return 0;
15963 }
15964 _ACEOF
15965 rm -f conftest.$ac_objext
15966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15967   (eval $ac_compile) 2>conftest.er1
15968   ac_status=$?
15969   grep -v '^ *+' conftest.er1 >conftest.err
15970   rm -f conftest.er1
15971   cat conftest.err >&5
15972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973   (exit $ac_status); } &&
15974          { ac_try='test -z "$ac_c_werror_flag"
15975                          || test ! -s conftest.err'
15976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977   (eval $ac_try) 2>&5
15978   ac_status=$?
15979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980   (exit $ac_status); }; } &&
15981          { ac_try='test -s conftest.$ac_objext'
15982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15983   (eval $ac_try) 2>&5
15984   ac_status=$?
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); }; }; then
15987   ac_cv_type_minor_t=yes
15988 else
15989   echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_cv_type_minor_t=no
15993 fi
15994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15995 fi
15996 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15997 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15998 if test $ac_cv_type_minor_t = yes; then
15999   :
16000 else
16001
16002 cat >>confdefs.h <<_ACEOF
16003 #define minor_t int
16004 _ACEOF
16005
16006 fi
16007
16008 echo "$as_me:$LINENO: checking for ssize_t" >&5
16009 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
16010 if test "${ac_cv_type_ssize_t+set}" = set; then
16011   echo $ECHO_N "(cached) $ECHO_C" >&6
16012 else
16013   cat >conftest.$ac_ext <<_ACEOF
16014 /* confdefs.h.  */
16015 _ACEOF
16016 cat confdefs.h >>conftest.$ac_ext
16017 cat >>conftest.$ac_ext <<_ACEOF
16018 /* end confdefs.h.  */
16019 $ac_includes_default
16020 int
16021 main ()
16022 {
16023 if ((ssize_t *) 0)
16024   return 0;
16025 if (sizeof (ssize_t))
16026   return 0;
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 rm -f conftest.$ac_objext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16033   (eval $ac_compile) 2>conftest.er1
16034   ac_status=$?
16035   grep -v '^ *+' conftest.er1 >conftest.err
16036   rm -f conftest.er1
16037   cat conftest.err >&5
16038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039   (exit $ac_status); } &&
16040          { ac_try='test -z "$ac_c_werror_flag"
16041                          || test ! -s conftest.err'
16042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16043   (eval $ac_try) 2>&5
16044   ac_status=$?
16045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046   (exit $ac_status); }; } &&
16047          { ac_try='test -s conftest.$ac_objext'
16048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16049   (eval $ac_try) 2>&5
16050   ac_status=$?
16051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16052   (exit $ac_status); }; }; then
16053   ac_cv_type_ssize_t=yes
16054 else
16055   echo "$as_me: failed program was:" >&5
16056 sed 's/^/| /' conftest.$ac_ext >&5
16057
16058 ac_cv_type_ssize_t=no
16059 fi
16060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16061 fi
16062 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16063 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16064 if test $ac_cv_type_ssize_t = yes; then
16065   :
16066 else
16067
16068 cat >>confdefs.h <<_ACEOF
16069 #define ssize_t int
16070 _ACEOF
16071
16072 fi
16073
16074 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16075 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16076 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16077   echo $ECHO_N "(cached) $ECHO_C" >&6
16078 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h.  */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h.  */
16129 $ac_includes_default
16130 int
16131 main ()
16132 {
16133 static struct stat ac_aggr;
16134 if (sizeof ac_aggr.st_blocks)
16135 return 0;
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 rm -f conftest.$ac_objext
16141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16142   (eval $ac_compile) 2>conftest.er1
16143   ac_status=$?
16144   grep -v '^ *+' conftest.er1 >conftest.err
16145   rm -f conftest.er1
16146   cat conftest.err >&5
16147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148   (exit $ac_status); } &&
16149          { ac_try='test -z "$ac_c_werror_flag"
16150                          || test ! -s conftest.err'
16151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152   (eval $ac_try) 2>&5
16153   ac_status=$?
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); }; } &&
16156          { ac_try='test -s conftest.$ac_objext'
16157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158   (eval $ac_try) 2>&5
16159   ac_status=$?
16160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161   (exit $ac_status); }; }; then
16162   ac_cv_member_struct_stat_st_blocks=yes
16163 else
16164   echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16166
16167 ac_cv_member_struct_stat_st_blocks=no
16168 fi
16169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16170 fi
16171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16172 fi
16173 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16174 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16175 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16176
16177 cat >>confdefs.h <<_ACEOF
16178 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16179 _ACEOF
16180
16181
16182 cat >>confdefs.h <<\_ACEOF
16183 #define HAVE_ST_BLOCKS 1
16184 _ACEOF
16185
16186 else
16187   case $LIBOBJS in
16188     "fileblocks.$ac_objext"   | \
16189   *" fileblocks.$ac_objext"   | \
16190     "fileblocks.$ac_objext "* | \
16191   *" fileblocks.$ac_objext "* ) ;;
16192   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16193 esac
16194
16195 fi
16196
16197
16198
16199 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16200 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16201 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16202   echo $ECHO_N "(cached) $ECHO_C" >&6
16203 else
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 (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 cat >conftest.$ac_ext <<_ACEOF
16249 /* confdefs.h.  */
16250 _ACEOF
16251 cat confdefs.h >>conftest.$ac_ext
16252 cat >>conftest.$ac_ext <<_ACEOF
16253 /* end confdefs.h.  */
16254 $ac_includes_default
16255 int
16256 main ()
16257 {
16258 static struct stat ac_aggr;
16259 if (sizeof ac_aggr.st_rdev)
16260 return 0;
16261   ;
16262   return 0;
16263 }
16264 _ACEOF
16265 rm -f conftest.$ac_objext
16266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16267   (eval $ac_compile) 2>conftest.er1
16268   ac_status=$?
16269   grep -v '^ *+' conftest.er1 >conftest.err
16270   rm -f conftest.er1
16271   cat conftest.err >&5
16272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273   (exit $ac_status); } &&
16274          { ac_try='test -z "$ac_c_werror_flag"
16275                          || test ! -s conftest.err'
16276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16277   (eval $ac_try) 2>&5
16278   ac_status=$?
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); }; } &&
16281          { ac_try='test -s conftest.$ac_objext'
16282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16283   (eval $ac_try) 2>&5
16284   ac_status=$?
16285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286   (exit $ac_status); }; }; then
16287   ac_cv_member_struct_stat_st_rdev=yes
16288 else
16289   echo "$as_me: failed program was:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16291
16292 ac_cv_member_struct_stat_st_rdev=no
16293 fi
16294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16295 fi
16296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16297 fi
16298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16299 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16300 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16301
16302 cat >>confdefs.h <<_ACEOF
16303 #define HAVE_STRUCT_STAT_ST_RDEV 1
16304 _ACEOF
16305
16306
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_ST_RDEV 1
16309 _ACEOF
16310
16311 fi
16312
16313
16314 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16315 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16316 if test "${ac_cv_struct_tm+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 #include <sys/types.h>
16326 #include <time.h>
16327
16328 int
16329 main ()
16330 {
16331 struct tm *tp; tp->tm_sec;
16332   ;
16333   return 0;
16334 }
16335 _ACEOF
16336 rm -f conftest.$ac_objext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16338   (eval $ac_compile) 2>conftest.er1
16339   ac_status=$?
16340   grep -v '^ *+' conftest.er1 >conftest.err
16341   rm -f conftest.er1
16342   cat conftest.err >&5
16343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344   (exit $ac_status); } &&
16345          { ac_try='test -z "$ac_c_werror_flag"
16346                          || test ! -s conftest.err'
16347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348   (eval $ac_try) 2>&5
16349   ac_status=$?
16350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351   (exit $ac_status); }; } &&
16352          { ac_try='test -s conftest.$ac_objext'
16353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354   (eval $ac_try) 2>&5
16355   ac_status=$?
16356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357   (exit $ac_status); }; }; then
16358   ac_cv_struct_tm=time.h
16359 else
16360   echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16362
16363 ac_cv_struct_tm=sys/time.h
16364 fi
16365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16366 fi
16367 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16368 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16369 if test $ac_cv_struct_tm = sys/time.h; then
16370
16371 cat >>confdefs.h <<\_ACEOF
16372 #define TM_IN_SYS_TIME 1
16373 _ACEOF
16374
16375 fi
16376
16377 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16378 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16379 if test "${ac_cv_c_const+set}" = set; then
16380   echo $ECHO_N "(cached) $ECHO_C" >&6
16381 else
16382   cat >conftest.$ac_ext <<_ACEOF
16383 /* confdefs.h.  */
16384 _ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h.  */
16388
16389 int
16390 main ()
16391 {
16392 /* FIXME: Include the comments suggested by Paul. */
16393 #ifndef __cplusplus
16394   /* Ultrix mips cc rejects this.  */
16395   typedef int charset[2];
16396   const charset x;
16397   /* SunOS 4.1.1 cc rejects this.  */
16398   char const *const *ccp;
16399   char **p;
16400   /* NEC SVR4.0.2 mips cc rejects this.  */
16401   struct point {int x, y;};
16402   static struct point const zero = {0,0};
16403   /* AIX XL C 1.02.0.0 rejects this.
16404      It does not let you subtract one const X* pointer from another in
16405      an arm of an if-expression whose if-part is not a constant
16406      expression */
16407   const char *g = "string";
16408   ccp = &g + (g ? g-g : 0);
16409   /* HPUX 7.0 cc rejects these. */
16410   ++ccp;
16411   p = (char**) ccp;
16412   ccp = (char const *const *) p;
16413   { /* SCO 3.2v4 cc rejects this.  */
16414     char *t;
16415     char const *s = 0 ? (char *) 0 : (char const *) 0;
16416
16417     *t++ = 0;
16418   }
16419   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16420     int x[] = {25, 17};
16421     const int *foo = &x[0];
16422     ++foo;
16423   }
16424   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16425     typedef const int *iptr;
16426     iptr p = 0;
16427     ++p;
16428   }
16429   { /* AIX XL C 1.02.0.0 rejects this saying
16430        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16431     struct s { int j; const int *ap[3]; };
16432     struct s *b; b->j = 5;
16433   }
16434   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16435     const int foo = 10;
16436   }
16437 #endif
16438
16439   ;
16440   return 0;
16441 }
16442 _ACEOF
16443 rm -f conftest.$ac_objext
16444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16445   (eval $ac_compile) 2>conftest.er1
16446   ac_status=$?
16447   grep -v '^ *+' conftest.er1 >conftest.err
16448   rm -f conftest.er1
16449   cat conftest.err >&5
16450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451   (exit $ac_status); } &&
16452          { ac_try='test -z "$ac_c_werror_flag"
16453                          || test ! -s conftest.err'
16454   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455   (eval $ac_try) 2>&5
16456   ac_status=$?
16457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }; } &&
16459          { ac_try='test -s conftest.$ac_objext'
16460   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16461   (eval $ac_try) 2>&5
16462   ac_status=$?
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); }; }; then
16465   ac_cv_c_const=yes
16466 else
16467   echo "$as_me: failed program was:" >&5
16468 sed 's/^/| /' conftest.$ac_ext >&5
16469
16470 ac_cv_c_const=no
16471 fi
16472 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16473 fi
16474 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16475 echo "${ECHO_T}$ac_cv_c_const" >&6
16476 if test $ac_cv_c_const = no; then
16477
16478 cat >>confdefs.h <<\_ACEOF
16479 #define const
16480 _ACEOF
16481
16482 fi
16483
16484
16485
16486 echo "$as_me:$LINENO: checking for char" >&5
16487 echo $ECHO_N "checking for char... $ECHO_C" >&6
16488 if test "${ac_cv_type_char+set}" = set; then
16489   echo $ECHO_N "(cached) $ECHO_C" >&6
16490 else
16491   cat >conftest.$ac_ext <<_ACEOF
16492 /* confdefs.h.  */
16493 _ACEOF
16494 cat confdefs.h >>conftest.$ac_ext
16495 cat >>conftest.$ac_ext <<_ACEOF
16496 /* end confdefs.h.  */
16497 $ac_includes_default
16498 int
16499 main ()
16500 {
16501 if ((char *) 0)
16502   return 0;
16503 if (sizeof (char))
16504   return 0;
16505   ;
16506   return 0;
16507 }
16508 _ACEOF
16509 rm -f conftest.$ac_objext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16511   (eval $ac_compile) 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } &&
16518          { ac_try='test -z "$ac_c_werror_flag"
16519                          || test ! -s conftest.err'
16520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16521   (eval $ac_try) 2>&5
16522   ac_status=$?
16523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); }; } &&
16525          { ac_try='test -s conftest.$ac_objext'
16526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527   (eval $ac_try) 2>&5
16528   ac_status=$?
16529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530   (exit $ac_status); }; }; then
16531   ac_cv_type_char=yes
16532 else
16533   echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 ac_cv_type_char=no
16537 fi
16538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16539 fi
16540 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16541 echo "${ECHO_T}$ac_cv_type_char" >&6
16542
16543 echo "$as_me:$LINENO: checking size of char" >&5
16544 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16545 if test "${ac_cv_sizeof_char+set}" = set; then
16546   echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548   if test "$ac_cv_type_char" = yes; then
16549   # The cast to unsigned long works around a bug in the HP C Compiler
16550   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16551   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16552   # This bug is HP SR number 8606223364.
16553   if test "$cross_compiling" = yes; then
16554   # Depending upon the size, compute the lo and hi bounds.
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 $ac_includes_default
16562 int
16563 main ()
16564 {
16565 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16566 test_array [0] = 0
16567
16568   ;
16569   return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext
16573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16574   (eval $ac_compile) 2>conftest.er1
16575   ac_status=$?
16576   grep -v '^ *+' conftest.er1 >conftest.err
16577   rm -f conftest.er1
16578   cat conftest.err >&5
16579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580   (exit $ac_status); } &&
16581          { ac_try='test -z "$ac_c_werror_flag"
16582                          || test ! -s conftest.err'
16583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584   (eval $ac_try) 2>&5
16585   ac_status=$?
16586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587   (exit $ac_status); }; } &&
16588          { ac_try='test -s conftest.$ac_objext'
16589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16590   (eval $ac_try) 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; }; then
16594   ac_lo=0 ac_mid=0
16595   while :; do
16596     cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h.  */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h.  */
16602 $ac_includes_default
16603 int
16604 main ()
16605 {
16606 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16607 test_array [0] = 0
16608
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>conftest.er1
16616   ac_status=$?
16617   grep -v '^ *+' conftest.er1 >conftest.err
16618   rm -f conftest.er1
16619   cat conftest.err >&5
16620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16621   (exit $ac_status); } &&
16622          { ac_try='test -z "$ac_c_werror_flag"
16623                          || test ! -s conftest.err'
16624   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16625   (eval $ac_try) 2>&5
16626   ac_status=$?
16627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628   (exit $ac_status); }; } &&
16629          { ac_try='test -s conftest.$ac_objext'
16630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631   (eval $ac_try) 2>&5
16632   ac_status=$?
16633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634   (exit $ac_status); }; }; then
16635   ac_hi=$ac_mid; break
16636 else
16637   echo "$as_me: failed program was:" >&5
16638 sed 's/^/| /' conftest.$ac_ext >&5
16639
16640 ac_lo=`expr $ac_mid + 1`
16641                     if test $ac_lo -le $ac_mid; then
16642                       ac_lo= ac_hi=
16643                       break
16644                     fi
16645                     ac_mid=`expr 2 '*' $ac_mid + 1`
16646 fi
16647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16648   done
16649 else
16650   echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16652
16653 cat >conftest.$ac_ext <<_ACEOF
16654 /* confdefs.h.  */
16655 _ACEOF
16656 cat confdefs.h >>conftest.$ac_ext
16657 cat >>conftest.$ac_ext <<_ACEOF
16658 /* end confdefs.h.  */
16659 $ac_includes_default
16660 int
16661 main ()
16662 {
16663 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16664 test_array [0] = 0
16665
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16672   (eval $ac_compile) 2>conftest.er1
16673   ac_status=$?
16674   grep -v '^ *+' conftest.er1 >conftest.err
16675   rm -f conftest.er1
16676   cat conftest.err >&5
16677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678   (exit $ac_status); } &&
16679          { ac_try='test -z "$ac_c_werror_flag"
16680                          || test ! -s conftest.err'
16681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16682   (eval $ac_try) 2>&5
16683   ac_status=$?
16684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16685   (exit $ac_status); }; } &&
16686          { ac_try='test -s conftest.$ac_objext'
16687   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16688   (eval $ac_try) 2>&5
16689   ac_status=$?
16690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691   (exit $ac_status); }; }; then
16692   ac_hi=-1 ac_mid=-1
16693   while :; do
16694     cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 int
16702 main ()
16703 {
16704 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16705 test_array [0] = 0
16706
16707   ;
16708   return 0;
16709 }
16710 _ACEOF
16711 rm -f conftest.$ac_objext
16712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16713   (eval $ac_compile) 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -z "$ac_c_werror_flag"
16721                          || test ! -s conftest.err'
16722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16723   (eval $ac_try) 2>&5
16724   ac_status=$?
16725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726   (exit $ac_status); }; } &&
16727          { ac_try='test -s conftest.$ac_objext'
16728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729   (eval $ac_try) 2>&5
16730   ac_status=$?
16731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732   (exit $ac_status); }; }; then
16733   ac_lo=$ac_mid; break
16734 else
16735   echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16737
16738 ac_hi=`expr '(' $ac_mid ')' - 1`
16739                        if test $ac_mid -le $ac_hi; then
16740                          ac_lo= ac_hi=
16741                          break
16742                        fi
16743                        ac_mid=`expr 2 '*' $ac_mid`
16744 fi
16745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16746   done
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751 ac_lo= ac_hi=
16752 fi
16753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16754 fi
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16756 # Binary search between lo and hi bounds.
16757 while test "x$ac_lo" != "x$ac_hi"; do
16758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16759   cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 $ac_includes_default
16766 int
16767 main ()
16768 {
16769 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16770 test_array [0] = 0
16771
16772   ;
16773   return 0;
16774 }
16775 _ACEOF
16776 rm -f conftest.$ac_objext
16777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16778   (eval $ac_compile) 2>conftest.er1
16779   ac_status=$?
16780   grep -v '^ *+' conftest.er1 >conftest.err
16781   rm -f conftest.er1
16782   cat conftest.err >&5
16783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784   (exit $ac_status); } &&
16785          { ac_try='test -z "$ac_c_werror_flag"
16786                          || test ! -s conftest.err'
16787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16788   (eval $ac_try) 2>&5
16789   ac_status=$?
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); }; } &&
16792          { ac_try='test -s conftest.$ac_objext'
16793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794   (eval $ac_try) 2>&5
16795   ac_status=$?
16796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797   (exit $ac_status); }; }; then
16798   ac_hi=$ac_mid
16799 else
16800   echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_lo=`expr '(' $ac_mid ')' + 1`
16804 fi
16805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16806 done
16807 case $ac_lo in
16808 ?*) ac_cv_sizeof_char=$ac_lo;;
16809 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16810 See \`config.log' for more details." >&5
16811 echo "$as_me: error: cannot compute sizeof (char), 77
16812 See \`config.log' for more details." >&2;}
16813    { (exit 1); exit 1; }; } ;;
16814 esac
16815 else
16816   if test "$cross_compiling" = yes; then
16817   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16818 See \`config.log' for more details." >&5
16819 echo "$as_me: error: cannot run test program while cross compiling
16820 See \`config.log' for more details." >&2;}
16821    { (exit 1); exit 1; }; }
16822 else
16823   cat >conftest.$ac_ext <<_ACEOF
16824 /* confdefs.h.  */
16825 _ACEOF
16826 cat confdefs.h >>conftest.$ac_ext
16827 cat >>conftest.$ac_ext <<_ACEOF
16828 /* end confdefs.h.  */
16829 $ac_includes_default
16830 long longval () { return (long) (sizeof (char)); }
16831 unsigned long ulongval () { return (long) (sizeof (char)); }
16832 #include <stdio.h>
16833 #include <stdlib.h>
16834 int
16835 main ()
16836 {
16837
16838   FILE *f = fopen ("conftest.val", "w");
16839   if (! f)
16840     exit (1);
16841   if (((long) (sizeof (char))) < 0)
16842     {
16843       long i = longval ();
16844       if (i != ((long) (sizeof (char))))
16845         exit (1);
16846       fprintf (f, "%ld\n", i);
16847     }
16848   else
16849     {
16850       unsigned long i = ulongval ();
16851       if (i != ((long) (sizeof (char))))
16852         exit (1);
16853       fprintf (f, "%lu\n", i);
16854     }
16855   exit (ferror (f) || fclose (f) != 0);
16856
16857   ;
16858   return 0;
16859 }
16860 _ACEOF
16861 rm -f conftest$ac_exeext
16862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16863   (eval $ac_link) 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868   (eval $ac_try) 2>&5
16869   ac_status=$?
16870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871   (exit $ac_status); }; }; then
16872   ac_cv_sizeof_char=`cat conftest.val`
16873 else
16874   echo "$as_me: program exited with status $ac_status" >&5
16875 echo "$as_me: failed program was:" >&5
16876 sed 's/^/| /' conftest.$ac_ext >&5
16877
16878 ( exit $ac_status )
16879 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16880 See \`config.log' for more details." >&5
16881 echo "$as_me: error: cannot compute sizeof (char), 77
16882 See \`config.log' for more details." >&2;}
16883    { (exit 1); exit 1; }; }
16884 fi
16885 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16886 fi
16887 fi
16888 rm -f conftest.val
16889 else
16890   ac_cv_sizeof_char=0
16891 fi
16892 fi
16893 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16894 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16895 cat >>confdefs.h <<_ACEOF
16896 #define SIZEOF_CHAR $ac_cv_sizeof_char
16897 _ACEOF
16898
16899
16900 echo "$as_me:$LINENO: checking for short int" >&5
16901 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16902 if test "${ac_cv_type_short_int+set}" = set; then
16903   echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905   cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h.  */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h.  */
16911 $ac_includes_default
16912 int
16913 main ()
16914 {
16915 if ((short int *) 0)
16916   return 0;
16917 if (sizeof (short int))
16918   return 0;
16919   ;
16920   return 0;
16921 }
16922 _ACEOF
16923 rm -f conftest.$ac_objext
16924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16925   (eval $ac_compile) 2>conftest.er1
16926   ac_status=$?
16927   grep -v '^ *+' conftest.er1 >conftest.err
16928   rm -f conftest.er1
16929   cat conftest.err >&5
16930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931   (exit $ac_status); } &&
16932          { ac_try='test -z "$ac_c_werror_flag"
16933                          || test ! -s conftest.err'
16934   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935   (eval $ac_try) 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; } &&
16939          { ac_try='test -s conftest.$ac_objext'
16940   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941   (eval $ac_try) 2>&5
16942   ac_status=$?
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); }; }; then
16945   ac_cv_type_short_int=yes
16946 else
16947   echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16949
16950 ac_cv_type_short_int=no
16951 fi
16952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16953 fi
16954 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16955 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16956
16957 echo "$as_me:$LINENO: checking size of short int" >&5
16958 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16959 if test "${ac_cv_sizeof_short_int+set}" = set; then
16960   echo $ECHO_N "(cached) $ECHO_C" >&6
16961 else
16962   if test "$ac_cv_type_short_int" = yes; then
16963   # The cast to unsigned long works around a bug in the HP C Compiler
16964   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16965   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16966   # This bug is HP SR number 8606223364.
16967   if test "$cross_compiling" = yes; then
16968   # Depending upon the size, compute the lo and hi bounds.
16969 cat >conftest.$ac_ext <<_ACEOF
16970 /* confdefs.h.  */
16971 _ACEOF
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h.  */
16975 $ac_includes_default
16976 int
16977 main ()
16978 {
16979 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16980 test_array [0] = 0
16981
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext
16987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16988   (eval $ac_compile) 2>conftest.er1
16989   ac_status=$?
16990   grep -v '^ *+' conftest.er1 >conftest.err
16991   rm -f conftest.er1
16992   cat conftest.err >&5
16993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994   (exit $ac_status); } &&
16995          { ac_try='test -z "$ac_c_werror_flag"
16996                          || test ! -s conftest.err'
16997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16998   (eval $ac_try) 2>&5
16999   ac_status=$?
17000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001   (exit $ac_status); }; } &&
17002          { ac_try='test -s conftest.$ac_objext'
17003   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004   (eval $ac_try) 2>&5
17005   ac_status=$?
17006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007   (exit $ac_status); }; }; then
17008   ac_lo=0 ac_mid=0
17009   while :; do
17010     cat >conftest.$ac_ext <<_ACEOF
17011 /* confdefs.h.  */
17012 _ACEOF
17013 cat confdefs.h >>conftest.$ac_ext
17014 cat >>conftest.$ac_ext <<_ACEOF
17015 /* end confdefs.h.  */
17016 $ac_includes_default
17017 int
17018 main ()
17019 {
17020 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17021 test_array [0] = 0
17022
17023   ;
17024   return 0;
17025 }
17026 _ACEOF
17027 rm -f conftest.$ac_objext
17028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17029   (eval $ac_compile) 2>conftest.er1
17030   ac_status=$?
17031   grep -v '^ *+' conftest.er1 >conftest.err
17032   rm -f conftest.er1
17033   cat conftest.err >&5
17034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035   (exit $ac_status); } &&
17036          { ac_try='test -z "$ac_c_werror_flag"
17037                          || test ! -s conftest.err'
17038   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039   (eval $ac_try) 2>&5
17040   ac_status=$?
17041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042   (exit $ac_status); }; } &&
17043          { ac_try='test -s conftest.$ac_objext'
17044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045   (eval $ac_try) 2>&5
17046   ac_status=$?
17047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048   (exit $ac_status); }; }; then
17049   ac_hi=$ac_mid; break
17050 else
17051   echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17053
17054 ac_lo=`expr $ac_mid + 1`
17055                     if test $ac_lo -le $ac_mid; then
17056                       ac_lo= ac_hi=
17057                       break
17058                     fi
17059                     ac_mid=`expr 2 '*' $ac_mid + 1`
17060 fi
17061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17062   done
17063 else
17064   echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h.  */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h.  */
17073 $ac_includes_default
17074 int
17075 main ()
17076 {
17077 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17078 test_array [0] = 0
17079
17080   ;
17081   return 0;
17082 }
17083 _ACEOF
17084 rm -f conftest.$ac_objext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17086   (eval $ac_compile) 2>conftest.er1
17087   ac_status=$?
17088   grep -v '^ *+' conftest.er1 >conftest.err
17089   rm -f conftest.er1
17090   cat conftest.err >&5
17091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092   (exit $ac_status); } &&
17093          { ac_try='test -z "$ac_c_werror_flag"
17094                          || test ! -s conftest.err'
17095   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17096   (eval $ac_try) 2>&5
17097   ac_status=$?
17098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17099   (exit $ac_status); }; } &&
17100          { ac_try='test -s conftest.$ac_objext'
17101   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17102   (eval $ac_try) 2>&5
17103   ac_status=$?
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); }; }; then
17106   ac_hi=-1 ac_mid=-1
17107   while :; do
17108     cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h.  */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h.  */
17114 $ac_includes_default
17115 int
17116 main ()
17117 {
17118 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17119 test_array [0] = 0
17120
17121   ;
17122   return 0;
17123 }
17124 _ACEOF
17125 rm -f conftest.$ac_objext
17126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17127   (eval $ac_compile) 2>conftest.er1
17128   ac_status=$?
17129   grep -v '^ *+' conftest.er1 >conftest.err
17130   rm -f conftest.er1
17131   cat conftest.err >&5
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); } &&
17134          { ac_try='test -z "$ac_c_werror_flag"
17135                          || test ! -s conftest.err'
17136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17137   (eval $ac_try) 2>&5
17138   ac_status=$?
17139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17140   (exit $ac_status); }; } &&
17141          { ac_try='test -s conftest.$ac_objext'
17142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17143   (eval $ac_try) 2>&5
17144   ac_status=$?
17145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146   (exit $ac_status); }; }; then
17147   ac_lo=$ac_mid; break
17148 else
17149   echo "$as_me: failed program was:" >&5
17150 sed 's/^/| /' conftest.$ac_ext >&5
17151
17152 ac_hi=`expr '(' $ac_mid ')' - 1`
17153                        if test $ac_mid -le $ac_hi; then
17154                          ac_lo= ac_hi=
17155                          break
17156                        fi
17157                        ac_mid=`expr 2 '*' $ac_mid`
17158 fi
17159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17160   done
17161 else
17162   echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17164
17165 ac_lo= ac_hi=
17166 fi
17167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17168 fi
17169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17170 # Binary search between lo and hi bounds.
17171 while test "x$ac_lo" != "x$ac_hi"; do
17172   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17173   cat >conftest.$ac_ext <<_ACEOF
17174 /* confdefs.h.  */
17175 _ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h.  */
17179 $ac_includes_default
17180 int
17181 main ()
17182 {
17183 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17184 test_array [0] = 0
17185
17186   ;
17187   return 0;
17188 }
17189 _ACEOF
17190 rm -f conftest.$ac_objext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17192   (eval $ac_compile) 2>conftest.er1
17193   ac_status=$?
17194   grep -v '^ *+' conftest.er1 >conftest.err
17195   rm -f conftest.er1
17196   cat conftest.err >&5
17197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198   (exit $ac_status); } &&
17199          { ac_try='test -z "$ac_c_werror_flag"
17200                          || test ! -s conftest.err'
17201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202   (eval $ac_try) 2>&5
17203   ac_status=$?
17204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205   (exit $ac_status); }; } &&
17206          { ac_try='test -s conftest.$ac_objext'
17207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17208   (eval $ac_try) 2>&5
17209   ac_status=$?
17210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17211   (exit $ac_status); }; }; then
17212   ac_hi=$ac_mid
17213 else
17214   echo "$as_me: failed program was:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17216
17217 ac_lo=`expr '(' $ac_mid ')' + 1`
17218 fi
17219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17220 done
17221 case $ac_lo in
17222 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17223 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17224 See \`config.log' for more details." >&5
17225 echo "$as_me: error: cannot compute sizeof (short int), 77
17226 See \`config.log' for more details." >&2;}
17227    { (exit 1); exit 1; }; } ;;
17228 esac
17229 else
17230   if test "$cross_compiling" = yes; then
17231   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17232 See \`config.log' for more details." >&5
17233 echo "$as_me: error: cannot run test program while cross compiling
17234 See \`config.log' for more details." >&2;}
17235    { (exit 1); exit 1; }; }
17236 else
17237   cat >conftest.$ac_ext <<_ACEOF
17238 /* confdefs.h.  */
17239 _ACEOF
17240 cat confdefs.h >>conftest.$ac_ext
17241 cat >>conftest.$ac_ext <<_ACEOF
17242 /* end confdefs.h.  */
17243 $ac_includes_default
17244 long longval () { return (long) (sizeof (short int)); }
17245 unsigned long ulongval () { return (long) (sizeof (short int)); }
17246 #include <stdio.h>
17247 #include <stdlib.h>
17248 int
17249 main ()
17250 {
17251
17252   FILE *f = fopen ("conftest.val", "w");
17253   if (! f)
17254     exit (1);
17255   if (((long) (sizeof (short int))) < 0)
17256     {
17257       long i = longval ();
17258       if (i != ((long) (sizeof (short int))))
17259         exit (1);
17260       fprintf (f, "%ld\n", i);
17261     }
17262   else
17263     {
17264       unsigned long i = ulongval ();
17265       if (i != ((long) (sizeof (short int))))
17266         exit (1);
17267       fprintf (f, "%lu\n", i);
17268     }
17269   exit (ferror (f) || fclose (f) != 0);
17270
17271   ;
17272   return 0;
17273 }
17274 _ACEOF
17275 rm -f conftest$ac_exeext
17276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17277   (eval $ac_link) 2>&5
17278   ac_status=$?
17279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282   (eval $ac_try) 2>&5
17283   ac_status=$?
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); }; }; then
17286   ac_cv_sizeof_short_int=`cat conftest.val`
17287 else
17288   echo "$as_me: program exited with status $ac_status" >&5
17289 echo "$as_me: failed program was:" >&5
17290 sed 's/^/| /' conftest.$ac_ext >&5
17291
17292 ( exit $ac_status )
17293 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17294 See \`config.log' for more details." >&5
17295 echo "$as_me: error: cannot compute sizeof (short int), 77
17296 See \`config.log' for more details." >&2;}
17297    { (exit 1); exit 1; }; }
17298 fi
17299 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17300 fi
17301 fi
17302 rm -f conftest.val
17303 else
17304   ac_cv_sizeof_short_int=0
17305 fi
17306 fi
17307 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17308 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17309 cat >>confdefs.h <<_ACEOF
17310 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17311 _ACEOF
17312
17313
17314 echo "$as_me:$LINENO: checking for int" >&5
17315 echo $ECHO_N "checking for int... $ECHO_C" >&6
17316 if test "${ac_cv_type_int+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325 $ac_includes_default
17326 int
17327 main ()
17328 {
17329 if ((int *) 0)
17330   return 0;
17331 if (sizeof (int))
17332   return 0;
17333   ;
17334   return 0;
17335 }
17336 _ACEOF
17337 rm -f conftest.$ac_objext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17339   (eval $ac_compile) 2>conftest.er1
17340   ac_status=$?
17341   grep -v '^ *+' conftest.er1 >conftest.err
17342   rm -f conftest.er1
17343   cat conftest.err >&5
17344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345   (exit $ac_status); } &&
17346          { ac_try='test -z "$ac_c_werror_flag"
17347                          || test ! -s conftest.err'
17348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17349   (eval $ac_try) 2>&5
17350   ac_status=$?
17351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17352   (exit $ac_status); }; } &&
17353          { ac_try='test -s conftest.$ac_objext'
17354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17355   (eval $ac_try) 2>&5
17356   ac_status=$?
17357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17358   (exit $ac_status); }; }; then
17359   ac_cv_type_int=yes
17360 else
17361   echo "$as_me: failed program was:" >&5
17362 sed 's/^/| /' conftest.$ac_ext >&5
17363
17364 ac_cv_type_int=no
17365 fi
17366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17367 fi
17368 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17369 echo "${ECHO_T}$ac_cv_type_int" >&6
17370
17371 echo "$as_me:$LINENO: checking size of int" >&5
17372 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17373 if test "${ac_cv_sizeof_int+set}" = set; then
17374   echo $ECHO_N "(cached) $ECHO_C" >&6
17375 else
17376   if test "$ac_cv_type_int" = yes; then
17377   # The cast to unsigned long works around a bug in the HP C Compiler
17378   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17379   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17380   # This bug is HP SR number 8606223364.
17381   if test "$cross_compiling" = yes; then
17382   # Depending upon the size, compute the lo and hi bounds.
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h.  */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h.  */
17389 $ac_includes_default
17390 int
17391 main ()
17392 {
17393 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17394 test_array [0] = 0
17395
17396   ;
17397   return 0;
17398 }
17399 _ACEOF
17400 rm -f conftest.$ac_objext
17401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17402   (eval $ac_compile) 2>conftest.er1
17403   ac_status=$?
17404   grep -v '^ *+' conftest.er1 >conftest.err
17405   rm -f conftest.er1
17406   cat conftest.err >&5
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); } &&
17409          { ac_try='test -z "$ac_c_werror_flag"
17410                          || test ! -s conftest.err'
17411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412   (eval $ac_try) 2>&5
17413   ac_status=$?
17414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415   (exit $ac_status); }; } &&
17416          { ac_try='test -s conftest.$ac_objext'
17417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418   (eval $ac_try) 2>&5
17419   ac_status=$?
17420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); }; }; then
17422   ac_lo=0 ac_mid=0
17423   while :; do
17424     cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h.  */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h.  */
17430 $ac_includes_default
17431 int
17432 main ()
17433 {
17434 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17435 test_array [0] = 0
17436
17437   ;
17438   return 0;
17439 }
17440 _ACEOF
17441 rm -f conftest.$ac_objext
17442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17443   (eval $ac_compile) 2>conftest.er1
17444   ac_status=$?
17445   grep -v '^ *+' conftest.er1 >conftest.err
17446   rm -f conftest.er1
17447   cat conftest.err >&5
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -z "$ac_c_werror_flag"
17451                          || test ! -s conftest.err'
17452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453   (eval $ac_try) 2>&5
17454   ac_status=$?
17455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456   (exit $ac_status); }; } &&
17457          { ac_try='test -s conftest.$ac_objext'
17458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459   (eval $ac_try) 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; }; then
17463   ac_hi=$ac_mid; break
17464 else
17465   echo "$as_me: failed program was:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17467
17468 ac_lo=`expr $ac_mid + 1`
17469                     if test $ac_lo -le $ac_mid; then
17470                       ac_lo= ac_hi=
17471                       break
17472                     fi
17473                     ac_mid=`expr 2 '*' $ac_mid + 1`
17474 fi
17475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17476   done
17477 else
17478   echo "$as_me: failed program was:" >&5
17479 sed 's/^/| /' conftest.$ac_ext >&5
17480
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h.  */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h.  */
17487 $ac_includes_default
17488 int
17489 main ()
17490 {
17491 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17492 test_array [0] = 0
17493
17494   ;
17495   return 0;
17496 }
17497 _ACEOF
17498 rm -f conftest.$ac_objext
17499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17500   (eval $ac_compile) 2>conftest.er1
17501   ac_status=$?
17502   grep -v '^ *+' conftest.er1 >conftest.err
17503   rm -f conftest.er1
17504   cat conftest.err >&5
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -z "$ac_c_werror_flag"
17508                          || test ! -s conftest.err'
17509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17510   (eval $ac_try) 2>&5
17511   ac_status=$?
17512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513   (exit $ac_status); }; } &&
17514          { ac_try='test -s conftest.$ac_objext'
17515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17516   (eval $ac_try) 2>&5
17517   ac_status=$?
17518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519   (exit $ac_status); }; }; then
17520   ac_hi=-1 ac_mid=-1
17521   while :; do
17522     cat >conftest.$ac_ext <<_ACEOF
17523 /* confdefs.h.  */
17524 _ACEOF
17525 cat confdefs.h >>conftest.$ac_ext
17526 cat >>conftest.$ac_ext <<_ACEOF
17527 /* end confdefs.h.  */
17528 $ac_includes_default
17529 int
17530 main ()
17531 {
17532 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17533 test_array [0] = 0
17534
17535   ;
17536   return 0;
17537 }
17538 _ACEOF
17539 rm -f conftest.$ac_objext
17540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17541   (eval $ac_compile) 2>conftest.er1
17542   ac_status=$?
17543   grep -v '^ *+' conftest.er1 >conftest.err
17544   rm -f conftest.er1
17545   cat conftest.err >&5
17546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547   (exit $ac_status); } &&
17548          { ac_try='test -z "$ac_c_werror_flag"
17549                          || test ! -s conftest.err'
17550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551   (eval $ac_try) 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; } &&
17555          { ac_try='test -s conftest.$ac_objext'
17556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557   (eval $ac_try) 2>&5
17558   ac_status=$?
17559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560   (exit $ac_status); }; }; then
17561   ac_lo=$ac_mid; break
17562 else
17563   echo "$as_me: failed program was:" >&5
17564 sed 's/^/| /' conftest.$ac_ext >&5
17565
17566 ac_hi=`expr '(' $ac_mid ')' - 1`
17567                        if test $ac_mid -le $ac_hi; then
17568                          ac_lo= ac_hi=
17569                          break
17570                        fi
17571                        ac_mid=`expr 2 '*' $ac_mid`
17572 fi
17573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17574   done
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579 ac_lo= ac_hi=
17580 fi
17581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17582 fi
17583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17584 # Binary search between lo and hi bounds.
17585 while test "x$ac_lo" != "x$ac_hi"; do
17586   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 $ac_includes_default
17594 int
17595 main ()
17596 {
17597 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17598 test_array [0] = 0
17599
17600   ;
17601   return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext
17605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17606   (eval $ac_compile) 2>conftest.er1
17607   ac_status=$?
17608   grep -v '^ *+' conftest.er1 >conftest.err
17609   rm -f conftest.er1
17610   cat conftest.err >&5
17611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612   (exit $ac_status); } &&
17613          { ac_try='test -z "$ac_c_werror_flag"
17614                          || test ! -s conftest.err'
17615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17616   (eval $ac_try) 2>&5
17617   ac_status=$?
17618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619   (exit $ac_status); }; } &&
17620          { ac_try='test -s conftest.$ac_objext'
17621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17622   (eval $ac_try) 2>&5
17623   ac_status=$?
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); }; }; then
17626   ac_hi=$ac_mid
17627 else
17628   echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17630
17631 ac_lo=`expr '(' $ac_mid ')' + 1`
17632 fi
17633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17634 done
17635 case $ac_lo in
17636 ?*) ac_cv_sizeof_int=$ac_lo;;
17637 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17638 See \`config.log' for more details." >&5
17639 echo "$as_me: error: cannot compute sizeof (int), 77
17640 See \`config.log' for more details." >&2;}
17641    { (exit 1); exit 1; }; } ;;
17642 esac
17643 else
17644   if test "$cross_compiling" = yes; then
17645   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17646 See \`config.log' for more details." >&5
17647 echo "$as_me: error: cannot run test program while cross compiling
17648 See \`config.log' for more details." >&2;}
17649    { (exit 1); exit 1; }; }
17650 else
17651   cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h.  */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h.  */
17657 $ac_includes_default
17658 long longval () { return (long) (sizeof (int)); }
17659 unsigned long ulongval () { return (long) (sizeof (int)); }
17660 #include <stdio.h>
17661 #include <stdlib.h>
17662 int
17663 main ()
17664 {
17665
17666   FILE *f = fopen ("conftest.val", "w");
17667   if (! f)
17668     exit (1);
17669   if (((long) (sizeof (int))) < 0)
17670     {
17671       long i = longval ();
17672       if (i != ((long) (sizeof (int))))
17673         exit (1);
17674       fprintf (f, "%ld\n", i);
17675     }
17676   else
17677     {
17678       unsigned long i = ulongval ();
17679       if (i != ((long) (sizeof (int))))
17680         exit (1);
17681       fprintf (f, "%lu\n", i);
17682     }
17683   exit (ferror (f) || fclose (f) != 0);
17684
17685   ;
17686   return 0;
17687 }
17688 _ACEOF
17689 rm -f conftest$ac_exeext
17690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17691   (eval $ac_link) 2>&5
17692   ac_status=$?
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696   (eval $ac_try) 2>&5
17697   ac_status=$?
17698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699   (exit $ac_status); }; }; then
17700   ac_cv_sizeof_int=`cat conftest.val`
17701 else
17702   echo "$as_me: program exited with status $ac_status" >&5
17703 echo "$as_me: failed program was:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17705
17706 ( exit $ac_status )
17707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17708 See \`config.log' for more details." >&5
17709 echo "$as_me: error: cannot compute sizeof (int), 77
17710 See \`config.log' for more details." >&2;}
17711    { (exit 1); exit 1; }; }
17712 fi
17713 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17714 fi
17715 fi
17716 rm -f conftest.val
17717 else
17718   ac_cv_sizeof_int=0
17719 fi
17720 fi
17721 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17722 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17723 cat >>confdefs.h <<_ACEOF
17724 #define SIZEOF_INT $ac_cv_sizeof_int
17725 _ACEOF
17726
17727
17728 echo "$as_me:$LINENO: checking for long int" >&5
17729 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17730 if test "${ac_cv_type_long_int+set}" = set; then
17731   echo $ECHO_N "(cached) $ECHO_C" >&6
17732 else
17733   cat >conftest.$ac_ext <<_ACEOF
17734 /* confdefs.h.  */
17735 _ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h.  */
17739 $ac_includes_default
17740 int
17741 main ()
17742 {
17743 if ((long int *) 0)
17744   return 0;
17745 if (sizeof (long int))
17746   return 0;
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 rm -f conftest.$ac_objext
17752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17753   (eval $ac_compile) 2>conftest.er1
17754   ac_status=$?
17755   grep -v '^ *+' conftest.er1 >conftest.err
17756   rm -f conftest.er1
17757   cat conftest.err >&5
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); } &&
17760          { ac_try='test -z "$ac_c_werror_flag"
17761                          || test ! -s conftest.err'
17762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763   (eval $ac_try) 2>&5
17764   ac_status=$?
17765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766   (exit $ac_status); }; } &&
17767          { ac_try='test -s conftest.$ac_objext'
17768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769   (eval $ac_try) 2>&5
17770   ac_status=$?
17771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772   (exit $ac_status); }; }; then
17773   ac_cv_type_long_int=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_cv_type_long_int=no
17779 fi
17780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17781 fi
17782 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17783 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17784
17785 echo "$as_me:$LINENO: checking size of long int" >&5
17786 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17787 if test "${ac_cv_sizeof_long_int+set}" = set; then
17788   echo $ECHO_N "(cached) $ECHO_C" >&6
17789 else
17790   if test "$ac_cv_type_long_int" = yes; then
17791   # The cast to unsigned long works around a bug in the HP C Compiler
17792   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17793   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17794   # This bug is HP SR number 8606223364.
17795   if test "$cross_compiling" = yes; then
17796   # Depending upon the size, compute the lo and hi bounds.
17797 cat >conftest.$ac_ext <<_ACEOF
17798 /* confdefs.h.  */
17799 _ACEOF
17800 cat confdefs.h >>conftest.$ac_ext
17801 cat >>conftest.$ac_ext <<_ACEOF
17802 /* end confdefs.h.  */
17803 $ac_includes_default
17804 int
17805 main ()
17806 {
17807 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17808 test_array [0] = 0
17809
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 rm -f conftest.$ac_objext
17815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17816   (eval $ac_compile) 2>conftest.er1
17817   ac_status=$?
17818   grep -v '^ *+' conftest.er1 >conftest.err
17819   rm -f conftest.er1
17820   cat conftest.err >&5
17821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822   (exit $ac_status); } &&
17823          { ac_try='test -z "$ac_c_werror_flag"
17824                          || test ! -s conftest.err'
17825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826   (eval $ac_try) 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest.$ac_objext'
17831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832   (eval $ac_try) 2>&5
17833   ac_status=$?
17834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835   (exit $ac_status); }; }; then
17836   ac_lo=0 ac_mid=0
17837   while :; do
17838     cat >conftest.$ac_ext <<_ACEOF
17839 /* confdefs.h.  */
17840 _ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h.  */
17844 $ac_includes_default
17845 int
17846 main ()
17847 {
17848 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17849 test_array [0] = 0
17850
17851   ;
17852   return 0;
17853 }
17854 _ACEOF
17855 rm -f conftest.$ac_objext
17856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17857   (eval $ac_compile) 2>conftest.er1
17858   ac_status=$?
17859   grep -v '^ *+' conftest.er1 >conftest.err
17860   rm -f conftest.er1
17861   cat conftest.err >&5
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); } &&
17864          { ac_try='test -z "$ac_c_werror_flag"
17865                          || test ! -s conftest.err'
17866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17867   (eval $ac_try) 2>&5
17868   ac_status=$?
17869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870   (exit $ac_status); }; } &&
17871          { ac_try='test -s conftest.$ac_objext'
17872   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17873   (eval $ac_try) 2>&5
17874   ac_status=$?
17875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17876   (exit $ac_status); }; }; then
17877   ac_hi=$ac_mid; break
17878 else
17879   echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ac_lo=`expr $ac_mid + 1`
17883                     if test $ac_lo -le $ac_mid; then
17884                       ac_lo= ac_hi=
17885                       break
17886                     fi
17887                     ac_mid=`expr 2 '*' $ac_mid + 1`
17888 fi
17889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17890   done
17891 else
17892   echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 cat >conftest.$ac_ext <<_ACEOF
17896 /* confdefs.h.  */
17897 _ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h.  */
17901 $ac_includes_default
17902 int
17903 main ()
17904 {
17905 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17906 test_array [0] = 0
17907
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext
17913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17914   (eval $ac_compile) 2>conftest.er1
17915   ac_status=$?
17916   grep -v '^ *+' conftest.er1 >conftest.err
17917   rm -f conftest.er1
17918   cat conftest.err >&5
17919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17920   (exit $ac_status); } &&
17921          { ac_try='test -z "$ac_c_werror_flag"
17922                          || test ! -s conftest.err'
17923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17924   (eval $ac_try) 2>&5
17925   ac_status=$?
17926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927   (exit $ac_status); }; } &&
17928          { ac_try='test -s conftest.$ac_objext'
17929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17930   (eval $ac_try) 2>&5
17931   ac_status=$?
17932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17933   (exit $ac_status); }; }; then
17934   ac_hi=-1 ac_mid=-1
17935   while :; do
17936     cat >conftest.$ac_ext <<_ACEOF
17937 /* confdefs.h.  */
17938 _ACEOF
17939 cat confdefs.h >>conftest.$ac_ext
17940 cat >>conftest.$ac_ext <<_ACEOF
17941 /* end confdefs.h.  */
17942 $ac_includes_default
17943 int
17944 main ()
17945 {
17946 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17947 test_array [0] = 0
17948
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 rm -f conftest.$ac_objext
17954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17955   (eval $ac_compile) 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } &&
17962          { ac_try='test -z "$ac_c_werror_flag"
17963                          || test ! -s conftest.err'
17964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965   (eval $ac_try) 2>&5
17966   ac_status=$?
17967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968   (exit $ac_status); }; } &&
17969          { ac_try='test -s conftest.$ac_objext'
17970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17971   (eval $ac_try) 2>&5
17972   ac_status=$?
17973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17974   (exit $ac_status); }; }; then
17975   ac_lo=$ac_mid; break
17976 else
17977   echo "$as_me: failed program was:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17979
17980 ac_hi=`expr '(' $ac_mid ')' - 1`
17981                        if test $ac_mid -le $ac_hi; then
17982                          ac_lo= ac_hi=
17983                          break
17984                        fi
17985                        ac_mid=`expr 2 '*' $ac_mid`
17986 fi
17987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17988   done
17989 else
17990   echo "$as_me: failed program was:" >&5
17991 sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 ac_lo= ac_hi=
17994 fi
17995 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17996 fi
17997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17998 # Binary search between lo and hi bounds.
17999 while test "x$ac_lo" != "x$ac_hi"; do
18000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18001   cat >conftest.$ac_ext <<_ACEOF
18002 /* confdefs.h.  */
18003 _ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h.  */
18007 $ac_includes_default
18008 int
18009 main ()
18010 {
18011 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
18012 test_array [0] = 0
18013
18014   ;
18015   return 0;
18016 }
18017 _ACEOF
18018 rm -f conftest.$ac_objext
18019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18020   (eval $ac_compile) 2>conftest.er1
18021   ac_status=$?
18022   grep -v '^ *+' conftest.er1 >conftest.err
18023   rm -f conftest.er1
18024   cat conftest.err >&5
18025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18026   (exit $ac_status); } &&
18027          { ac_try='test -z "$ac_c_werror_flag"
18028                          || test ! -s conftest.err'
18029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030   (eval $ac_try) 2>&5
18031   ac_status=$?
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); }; } &&
18034          { ac_try='test -s conftest.$ac_objext'
18035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036   (eval $ac_try) 2>&5
18037   ac_status=$?
18038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039   (exit $ac_status); }; }; then
18040   ac_hi=$ac_mid
18041 else
18042   echo "$as_me: failed program was:" >&5
18043 sed 's/^/| /' conftest.$ac_ext >&5
18044
18045 ac_lo=`expr '(' $ac_mid ')' + 1`
18046 fi
18047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18048 done
18049 case $ac_lo in
18050 ?*) ac_cv_sizeof_long_int=$ac_lo;;
18051 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18052 See \`config.log' for more details." >&5
18053 echo "$as_me: error: cannot compute sizeof (long int), 77
18054 See \`config.log' for more details." >&2;}
18055    { (exit 1); exit 1; }; } ;;
18056 esac
18057 else
18058   if test "$cross_compiling" = yes; then
18059   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18060 See \`config.log' for more details." >&5
18061 echo "$as_me: error: cannot run test program while cross compiling
18062 See \`config.log' for more details." >&2;}
18063    { (exit 1); exit 1; }; }
18064 else
18065   cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h.  */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h.  */
18071 $ac_includes_default
18072 long longval () { return (long) (sizeof (long int)); }
18073 unsigned long ulongval () { return (long) (sizeof (long int)); }
18074 #include <stdio.h>
18075 #include <stdlib.h>
18076 int
18077 main ()
18078 {
18079
18080   FILE *f = fopen ("conftest.val", "w");
18081   if (! f)
18082     exit (1);
18083   if (((long) (sizeof (long int))) < 0)
18084     {
18085       long i = longval ();
18086       if (i != ((long) (sizeof (long int))))
18087         exit (1);
18088       fprintf (f, "%ld\n", i);
18089     }
18090   else
18091     {
18092       unsigned long i = ulongval ();
18093       if (i != ((long) (sizeof (long int))))
18094         exit (1);
18095       fprintf (f, "%lu\n", i);
18096     }
18097   exit (ferror (f) || fclose (f) != 0);
18098
18099   ;
18100   return 0;
18101 }
18102 _ACEOF
18103 rm -f conftest$ac_exeext
18104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18105   (eval $ac_link) 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110   (eval $ac_try) 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; }; then
18114   ac_cv_sizeof_long_int=`cat conftest.val`
18115 else
18116   echo "$as_me: program exited with status $ac_status" >&5
18117 echo "$as_me: failed program was:" >&5
18118 sed 's/^/| /' conftest.$ac_ext >&5
18119
18120 ( exit $ac_status )
18121 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18122 See \`config.log' for more details." >&5
18123 echo "$as_me: error: cannot compute sizeof (long int), 77
18124 See \`config.log' for more details." >&2;}
18125    { (exit 1); exit 1; }; }
18126 fi
18127 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18128 fi
18129 fi
18130 rm -f conftest.val
18131 else
18132   ac_cv_sizeof_long_int=0
18133 fi
18134 fi
18135 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18136 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18137 cat >>confdefs.h <<_ACEOF
18138 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18139 _ACEOF
18140
18141
18142 echo "$as_me:$LINENO: checking for long long int" >&5
18143 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18144 if test "${ac_cv_type_long_long_int+set}" = set; then
18145   echo $ECHO_N "(cached) $ECHO_C" >&6
18146 else
18147   cat >conftest.$ac_ext <<_ACEOF
18148 /* confdefs.h.  */
18149 _ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h.  */
18153 $ac_includes_default
18154 int
18155 main ()
18156 {
18157 if ((long long int *) 0)
18158   return 0;
18159 if (sizeof (long long int))
18160   return 0;
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 rm -f conftest.$ac_objext
18166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18167   (eval $ac_compile) 2>conftest.er1
18168   ac_status=$?
18169   grep -v '^ *+' conftest.er1 >conftest.err
18170   rm -f conftest.er1
18171   cat conftest.err >&5
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); } &&
18174          { ac_try='test -z "$ac_c_werror_flag"
18175                          || test ! -s conftest.err'
18176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177   (eval $ac_try) 2>&5
18178   ac_status=$?
18179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180   (exit $ac_status); }; } &&
18181          { ac_try='test -s conftest.$ac_objext'
18182   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18183   (eval $ac_try) 2>&5
18184   ac_status=$?
18185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186   (exit $ac_status); }; }; then
18187   ac_cv_type_long_long_int=yes
18188 else
18189   echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18191
18192 ac_cv_type_long_long_int=no
18193 fi
18194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18195 fi
18196 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18197 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18198
18199 echo "$as_me:$LINENO: checking size of long long int" >&5
18200 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18201 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18202   echo $ECHO_N "(cached) $ECHO_C" >&6
18203 else
18204   if test "$ac_cv_type_long_long_int" = yes; then
18205   # The cast to unsigned long works around a bug in the HP C Compiler
18206   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18207   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18208   # This bug is HP SR number 8606223364.
18209   if test "$cross_compiling" = yes; then
18210   # Depending upon the size, compute the lo and hi bounds.
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217 $ac_includes_default
18218 int
18219 main ()
18220 {
18221 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18222 test_array [0] = 0
18223
18224   ;
18225   return 0;
18226 }
18227 _ACEOF
18228 rm -f conftest.$ac_objext
18229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18230   (eval $ac_compile) 2>conftest.er1
18231   ac_status=$?
18232   grep -v '^ *+' conftest.er1 >conftest.err
18233   rm -f conftest.er1
18234   cat conftest.err >&5
18235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236   (exit $ac_status); } &&
18237          { ac_try='test -z "$ac_c_werror_flag"
18238                          || test ! -s conftest.err'
18239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18240   (eval $ac_try) 2>&5
18241   ac_status=$?
18242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); }; } &&
18244          { ac_try='test -s conftest.$ac_objext'
18245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18246   (eval $ac_try) 2>&5
18247   ac_status=$?
18248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249   (exit $ac_status); }; }; then
18250   ac_lo=0 ac_mid=0
18251   while :; do
18252     cat >conftest.$ac_ext <<_ACEOF
18253 /* confdefs.h.  */
18254 _ACEOF
18255 cat confdefs.h >>conftest.$ac_ext
18256 cat >>conftest.$ac_ext <<_ACEOF
18257 /* end confdefs.h.  */
18258 $ac_includes_default
18259 int
18260 main ()
18261 {
18262 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18263 test_array [0] = 0
18264
18265   ;
18266   return 0;
18267 }
18268 _ACEOF
18269 rm -f conftest.$ac_objext
18270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18271   (eval $ac_compile) 2>conftest.er1
18272   ac_status=$?
18273   grep -v '^ *+' conftest.er1 >conftest.err
18274   rm -f conftest.er1
18275   cat conftest.err >&5
18276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18277   (exit $ac_status); } &&
18278          { ac_try='test -z "$ac_c_werror_flag"
18279                          || test ! -s conftest.err'
18280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18281   (eval $ac_try) 2>&5
18282   ac_status=$?
18283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284   (exit $ac_status); }; } &&
18285          { ac_try='test -s conftest.$ac_objext'
18286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18287   (eval $ac_try) 2>&5
18288   ac_status=$?
18289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18290   (exit $ac_status); }; }; then
18291   ac_hi=$ac_mid; break
18292 else
18293   echo "$as_me: failed program was:" >&5
18294 sed 's/^/| /' conftest.$ac_ext >&5
18295
18296 ac_lo=`expr $ac_mid + 1`
18297                     if test $ac_lo -le $ac_mid; then
18298                       ac_lo= ac_hi=
18299                       break
18300                     fi
18301                     ac_mid=`expr 2 '*' $ac_mid + 1`
18302 fi
18303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18304   done
18305 else
18306   echo "$as_me: failed program was:" >&5
18307 sed 's/^/| /' conftest.$ac_ext >&5
18308
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h.  */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h.  */
18315 $ac_includes_default
18316 int
18317 main ()
18318 {
18319 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18320 test_array [0] = 0
18321
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 rm -f conftest.$ac_objext
18327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18328   (eval $ac_compile) 2>conftest.er1
18329   ac_status=$?
18330   grep -v '^ *+' conftest.er1 >conftest.err
18331   rm -f conftest.er1
18332   cat conftest.err >&5
18333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334   (exit $ac_status); } &&
18335          { ac_try='test -z "$ac_c_werror_flag"
18336                          || test ! -s conftest.err'
18337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338   (eval $ac_try) 2>&5
18339   ac_status=$?
18340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341   (exit $ac_status); }; } &&
18342          { ac_try='test -s conftest.$ac_objext'
18343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344   (eval $ac_try) 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); }; }; then
18348   ac_hi=-1 ac_mid=-1
18349   while :; do
18350     cat >conftest.$ac_ext <<_ACEOF
18351 /* confdefs.h.  */
18352 _ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h.  */
18356 $ac_includes_default
18357 int
18358 main ()
18359 {
18360 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18361 test_array [0] = 0
18362
18363   ;
18364   return 0;
18365 }
18366 _ACEOF
18367 rm -f conftest.$ac_objext
18368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18369   (eval $ac_compile) 2>conftest.er1
18370   ac_status=$?
18371   grep -v '^ *+' conftest.er1 >conftest.err
18372   rm -f conftest.er1
18373   cat conftest.err >&5
18374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375   (exit $ac_status); } &&
18376          { ac_try='test -z "$ac_c_werror_flag"
18377                          || test ! -s conftest.err'
18378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18379   (eval $ac_try) 2>&5
18380   ac_status=$?
18381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382   (exit $ac_status); }; } &&
18383          { ac_try='test -s conftest.$ac_objext'
18384   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18385   (eval $ac_try) 2>&5
18386   ac_status=$?
18387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388   (exit $ac_status); }; }; then
18389   ac_lo=$ac_mid; break
18390 else
18391   echo "$as_me: failed program was:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18393
18394 ac_hi=`expr '(' $ac_mid ')' - 1`
18395                        if test $ac_mid -le $ac_hi; then
18396                          ac_lo= ac_hi=
18397                          break
18398                        fi
18399                        ac_mid=`expr 2 '*' $ac_mid`
18400 fi
18401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18402   done
18403 else
18404   echo "$as_me: failed program was:" >&5
18405 sed 's/^/| /' conftest.$ac_ext >&5
18406
18407 ac_lo= ac_hi=
18408 fi
18409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18410 fi
18411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18412 # Binary search between lo and hi bounds.
18413 while test "x$ac_lo" != "x$ac_hi"; do
18414   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18415   cat >conftest.$ac_ext <<_ACEOF
18416 /* confdefs.h.  */
18417 _ACEOF
18418 cat confdefs.h >>conftest.$ac_ext
18419 cat >>conftest.$ac_ext <<_ACEOF
18420 /* end confdefs.h.  */
18421 $ac_includes_default
18422 int
18423 main ()
18424 {
18425 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18426 test_array [0] = 0
18427
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434   (eval $ac_compile) 2>conftest.er1
18435   ac_status=$?
18436   grep -v '^ *+' conftest.er1 >conftest.err
18437   rm -f conftest.er1
18438   cat conftest.err >&5
18439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440   (exit $ac_status); } &&
18441          { ac_try='test -z "$ac_c_werror_flag"
18442                          || test ! -s conftest.err'
18443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18444   (eval $ac_try) 2>&5
18445   ac_status=$?
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); }; } &&
18448          { ac_try='test -s conftest.$ac_objext'
18449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18450   (eval $ac_try) 2>&5
18451   ac_status=$?
18452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18453   (exit $ac_status); }; }; then
18454   ac_hi=$ac_mid
18455 else
18456   echo "$as_me: failed program was:" >&5
18457 sed 's/^/| /' conftest.$ac_ext >&5
18458
18459 ac_lo=`expr '(' $ac_mid ')' + 1`
18460 fi
18461 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18462 done
18463 case $ac_lo in
18464 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18466 See \`config.log' for more details." >&5
18467 echo "$as_me: error: cannot compute sizeof (long long int), 77
18468 See \`config.log' for more details." >&2;}
18469    { (exit 1); exit 1; }; } ;;
18470 esac
18471 else
18472   if test "$cross_compiling" = yes; then
18473   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18474 See \`config.log' for more details." >&5
18475 echo "$as_me: error: cannot run test program while cross compiling
18476 See \`config.log' for more details." >&2;}
18477    { (exit 1); exit 1; }; }
18478 else
18479   cat >conftest.$ac_ext <<_ACEOF
18480 /* confdefs.h.  */
18481 _ACEOF
18482 cat confdefs.h >>conftest.$ac_ext
18483 cat >>conftest.$ac_ext <<_ACEOF
18484 /* end confdefs.h.  */
18485 $ac_includes_default
18486 long longval () { return (long) (sizeof (long long int)); }
18487 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18488 #include <stdio.h>
18489 #include <stdlib.h>
18490 int
18491 main ()
18492 {
18493
18494   FILE *f = fopen ("conftest.val", "w");
18495   if (! f)
18496     exit (1);
18497   if (((long) (sizeof (long long int))) < 0)
18498     {
18499       long i = longval ();
18500       if (i != ((long) (sizeof (long long int))))
18501         exit (1);
18502       fprintf (f, "%ld\n", i);
18503     }
18504   else
18505     {
18506       unsigned long i = ulongval ();
18507       if (i != ((long) (sizeof (long long int))))
18508         exit (1);
18509       fprintf (f, "%lu\n", i);
18510     }
18511   exit (ferror (f) || fclose (f) != 0);
18512
18513   ;
18514   return 0;
18515 }
18516 _ACEOF
18517 rm -f conftest$ac_exeext
18518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18519   (eval $ac_link) 2>&5
18520   ac_status=$?
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18524   (eval $ac_try) 2>&5
18525   ac_status=$?
18526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527   (exit $ac_status); }; }; then
18528   ac_cv_sizeof_long_long_int=`cat conftest.val`
18529 else
18530   echo "$as_me: program exited with status $ac_status" >&5
18531 echo "$as_me: failed program was:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18533
18534 ( exit $ac_status )
18535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18536 See \`config.log' for more details." >&5
18537 echo "$as_me: error: cannot compute sizeof (long long int), 77
18538 See \`config.log' for more details." >&2;}
18539    { (exit 1); exit 1; }; }
18540 fi
18541 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18542 fi
18543 fi
18544 rm -f conftest.val
18545 else
18546   ac_cv_sizeof_long_long_int=0
18547 fi
18548 fi
18549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18550 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18551 cat >>confdefs.h <<_ACEOF
18552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18553 _ACEOF
18554
18555
18556 echo "$as_me:$LINENO: checking for int *" >&5
18557 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18558 if test "${ac_cv_type_int_p+set}" = set; then
18559   echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561   cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h.  */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h.  */
18567 $ac_includes_default
18568 int
18569 main ()
18570 {
18571 if ((int * *) 0)
18572   return 0;
18573 if (sizeof (int *))
18574   return 0;
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 rm -f conftest.$ac_objext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18581   (eval $ac_compile) 2>conftest.er1
18582   ac_status=$?
18583   grep -v '^ *+' conftest.er1 >conftest.err
18584   rm -f conftest.er1
18585   cat conftest.err >&5
18586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587   (exit $ac_status); } &&
18588          { ac_try='test -z "$ac_c_werror_flag"
18589                          || test ! -s conftest.err'
18590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591   (eval $ac_try) 2>&5
18592   ac_status=$?
18593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594   (exit $ac_status); }; } &&
18595          { ac_try='test -s conftest.$ac_objext'
18596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597   (eval $ac_try) 2>&5
18598   ac_status=$?
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); }; }; then
18601   ac_cv_type_int_p=yes
18602 else
18603   echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18605
18606 ac_cv_type_int_p=no
18607 fi
18608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18609 fi
18610 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18611 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18612
18613 echo "$as_me:$LINENO: checking size of int *" >&5
18614 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18615 if test "${ac_cv_sizeof_int_p+set}" = set; then
18616   echo $ECHO_N "(cached) $ECHO_C" >&6
18617 else
18618   if test "$ac_cv_type_int_p" = yes; then
18619   # The cast to unsigned long works around a bug in the HP C Compiler
18620   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18621   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18622   # This bug is HP SR number 8606223364.
18623   if test "$cross_compiling" = yes; then
18624   # Depending upon the size, compute the lo and hi bounds.
18625 cat >conftest.$ac_ext <<_ACEOF
18626 /* confdefs.h.  */
18627 _ACEOF
18628 cat confdefs.h >>conftest.$ac_ext
18629 cat >>conftest.$ac_ext <<_ACEOF
18630 /* end confdefs.h.  */
18631 $ac_includes_default
18632 int
18633 main ()
18634 {
18635 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18636 test_array [0] = 0
18637
18638   ;
18639   return 0;
18640 }
18641 _ACEOF
18642 rm -f conftest.$ac_objext
18643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18644   (eval $ac_compile) 2>conftest.er1
18645   ac_status=$?
18646   grep -v '^ *+' conftest.er1 >conftest.err
18647   rm -f conftest.er1
18648   cat conftest.err >&5
18649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650   (exit $ac_status); } &&
18651          { ac_try='test -z "$ac_c_werror_flag"
18652                          || test ! -s conftest.err'
18653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654   (eval $ac_try) 2>&5
18655   ac_status=$?
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); }; } &&
18658          { ac_try='test -s conftest.$ac_objext'
18659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18660   (eval $ac_try) 2>&5
18661   ac_status=$?
18662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663   (exit $ac_status); }; }; then
18664   ac_lo=0 ac_mid=0
18665   while :; do
18666     cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672 $ac_includes_default
18673 int
18674 main ()
18675 {
18676 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18677 test_array [0] = 0
18678
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18685   (eval $ac_compile) 2>conftest.er1
18686   ac_status=$?
18687   grep -v '^ *+' conftest.er1 >conftest.err
18688   rm -f conftest.er1
18689   cat conftest.err >&5
18690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691   (exit $ac_status); } &&
18692          { ac_try='test -z "$ac_c_werror_flag"
18693                          || test ! -s conftest.err'
18694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18695   (eval $ac_try) 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; } &&
18699          { ac_try='test -s conftest.$ac_objext'
18700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701   (eval $ac_try) 2>&5
18702   ac_status=$?
18703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704   (exit $ac_status); }; }; then
18705   ac_hi=$ac_mid; break
18706 else
18707   echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18709
18710 ac_lo=`expr $ac_mid + 1`
18711                     if test $ac_lo -le $ac_mid; then
18712                       ac_lo= ac_hi=
18713                       break
18714                     fi
18715                     ac_mid=`expr 2 '*' $ac_mid + 1`
18716 fi
18717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18718   done
18719 else
18720   echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723 cat >conftest.$ac_ext <<_ACEOF
18724 /* confdefs.h.  */
18725 _ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h.  */
18729 $ac_includes_default
18730 int
18731 main ()
18732 {
18733 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18734 test_array [0] = 0
18735
18736   ;
18737   return 0;
18738 }
18739 _ACEOF
18740 rm -f conftest.$ac_objext
18741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18742   (eval $ac_compile) 2>conftest.er1
18743   ac_status=$?
18744   grep -v '^ *+' conftest.er1 >conftest.err
18745   rm -f conftest.er1
18746   cat conftest.err >&5
18747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748   (exit $ac_status); } &&
18749          { ac_try='test -z "$ac_c_werror_flag"
18750                          || test ! -s conftest.err'
18751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18752   (eval $ac_try) 2>&5
18753   ac_status=$?
18754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18755   (exit $ac_status); }; } &&
18756          { ac_try='test -s conftest.$ac_objext'
18757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18758   (eval $ac_try) 2>&5
18759   ac_status=$?
18760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761   (exit $ac_status); }; }; then
18762   ac_hi=-1 ac_mid=-1
18763   while :; do
18764     cat >conftest.$ac_ext <<_ACEOF
18765 /* confdefs.h.  */
18766 _ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h.  */
18770 $ac_includes_default
18771 int
18772 main ()
18773 {
18774 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18775 test_array [0] = 0
18776
18777   ;
18778   return 0;
18779 }
18780 _ACEOF
18781 rm -f conftest.$ac_objext
18782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18783   (eval $ac_compile) 2>conftest.er1
18784   ac_status=$?
18785   grep -v '^ *+' conftest.er1 >conftest.err
18786   rm -f conftest.er1
18787   cat conftest.err >&5
18788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18789   (exit $ac_status); } &&
18790          { ac_try='test -z "$ac_c_werror_flag"
18791                          || test ! -s conftest.err'
18792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18793   (eval $ac_try) 2>&5
18794   ac_status=$?
18795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18796   (exit $ac_status); }; } &&
18797          { ac_try='test -s conftest.$ac_objext'
18798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799   (eval $ac_try) 2>&5
18800   ac_status=$?
18801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802   (exit $ac_status); }; }; then
18803   ac_lo=$ac_mid; break
18804 else
18805   echo "$as_me: failed program was:" >&5
18806 sed 's/^/| /' conftest.$ac_ext >&5
18807
18808 ac_hi=`expr '(' $ac_mid ')' - 1`
18809                        if test $ac_mid -le $ac_hi; then
18810                          ac_lo= ac_hi=
18811                          break
18812                        fi
18813                        ac_mid=`expr 2 '*' $ac_mid`
18814 fi
18815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18816   done
18817 else
18818   echo "$as_me: failed program was:" >&5
18819 sed 's/^/| /' conftest.$ac_ext >&5
18820
18821 ac_lo= ac_hi=
18822 fi
18823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18824 fi
18825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18826 # Binary search between lo and hi bounds.
18827 while test "x$ac_lo" != "x$ac_hi"; do
18828   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18829   cat >conftest.$ac_ext <<_ACEOF
18830 /* confdefs.h.  */
18831 _ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h.  */
18835 $ac_includes_default
18836 int
18837 main ()
18838 {
18839 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18840 test_array [0] = 0
18841
18842   ;
18843   return 0;
18844 }
18845 _ACEOF
18846 rm -f conftest.$ac_objext
18847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18848   (eval $ac_compile) 2>conftest.er1
18849   ac_status=$?
18850   grep -v '^ *+' conftest.er1 >conftest.err
18851   rm -f conftest.er1
18852   cat conftest.err >&5
18853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18854   (exit $ac_status); } &&
18855          { ac_try='test -z "$ac_c_werror_flag"
18856                          || test ! -s conftest.err'
18857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858   (eval $ac_try) 2>&5
18859   ac_status=$?
18860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861   (exit $ac_status); }; } &&
18862          { ac_try='test -s conftest.$ac_objext'
18863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864   (eval $ac_try) 2>&5
18865   ac_status=$?
18866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867   (exit $ac_status); }; }; then
18868   ac_hi=$ac_mid
18869 else
18870   echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_lo=`expr '(' $ac_mid ')' + 1`
18874 fi
18875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18876 done
18877 case $ac_lo in
18878 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18879 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18880 See \`config.log' for more details." >&5
18881 echo "$as_me: error: cannot compute sizeof (int *), 77
18882 See \`config.log' for more details." >&2;}
18883    { (exit 1); exit 1; }; } ;;
18884 esac
18885 else
18886   if test "$cross_compiling" = yes; then
18887   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18888 See \`config.log' for more details." >&5
18889 echo "$as_me: error: cannot run test program while cross compiling
18890 See \`config.log' for more details." >&2;}
18891    { (exit 1); exit 1; }; }
18892 else
18893   cat >conftest.$ac_ext <<_ACEOF
18894 /* confdefs.h.  */
18895 _ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h.  */
18899 $ac_includes_default
18900 long longval () { return (long) (sizeof (int *)); }
18901 unsigned long ulongval () { return (long) (sizeof (int *)); }
18902 #include <stdio.h>
18903 #include <stdlib.h>
18904 int
18905 main ()
18906 {
18907
18908   FILE *f = fopen ("conftest.val", "w");
18909   if (! f)
18910     exit (1);
18911   if (((long) (sizeof (int *))) < 0)
18912     {
18913       long i = longval ();
18914       if (i != ((long) (sizeof (int *))))
18915         exit (1);
18916       fprintf (f, "%ld\n", i);
18917     }
18918   else
18919     {
18920       unsigned long i = ulongval ();
18921       if (i != ((long) (sizeof (int *))))
18922         exit (1);
18923       fprintf (f, "%lu\n", i);
18924     }
18925   exit (ferror (f) || fclose (f) != 0);
18926
18927   ;
18928   return 0;
18929 }
18930 _ACEOF
18931 rm -f conftest$ac_exeext
18932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933   (eval $ac_link) 2>&5
18934   ac_status=$?
18935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938   (eval $ac_try) 2>&5
18939   ac_status=$?
18940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941   (exit $ac_status); }; }; then
18942   ac_cv_sizeof_int_p=`cat conftest.val`
18943 else
18944   echo "$as_me: program exited with status $ac_status" >&5
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18947
18948 ( exit $ac_status )
18949 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18950 See \`config.log' for more details." >&5
18951 echo "$as_me: error: cannot compute sizeof (int *), 77
18952 See \`config.log' for more details." >&2;}
18953    { (exit 1); exit 1; }; }
18954 fi
18955 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18956 fi
18957 fi
18958 rm -f conftest.val
18959 else
18960   ac_cv_sizeof_int_p=0
18961 fi
18962 fi
18963 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18964 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18965 cat >>confdefs.h <<_ACEOF
18966 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18967 _ACEOF
18968
18969
18970
18971 # Check for sys/types.h types
18972 echo "$as_me:$LINENO: checking for u_int type" >&5
18973 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18974 if test "${ac_cv_have_u_int+set}" = set; then
18975   echo $ECHO_N "(cached) $ECHO_C" >&6
18976 else
18977
18978     cat >conftest.$ac_ext <<_ACEOF
18979 /* confdefs.h.  */
18980 _ACEOF
18981 cat confdefs.h >>conftest.$ac_ext
18982 cat >>conftest.$ac_ext <<_ACEOF
18983 /* end confdefs.h.  */
18984  #include <sys/types.h>
18985 int
18986 main ()
18987 {
18988  u_int a; a = 1;
18989   ;
18990   return 0;
18991 }
18992 _ACEOF
18993 rm -f conftest.$ac_objext
18994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18995   (eval $ac_compile) 2>conftest.er1
18996   ac_status=$?
18997   grep -v '^ *+' conftest.er1 >conftest.err
18998   rm -f conftest.er1
18999   cat conftest.err >&5
19000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001   (exit $ac_status); } &&
19002          { ac_try='test -z "$ac_c_werror_flag"
19003                          || test ! -s conftest.err'
19004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19005   (eval $ac_try) 2>&5
19006   ac_status=$?
19007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19008   (exit $ac_status); }; } &&
19009          { ac_try='test -s conftest.$ac_objext'
19010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19011   (eval $ac_try) 2>&5
19012   ac_status=$?
19013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19014   (exit $ac_status); }; }; then
19015    ac_cv_have_u_int="yes"
19016 else
19017   echo "$as_me: failed program was:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19019
19020  ac_cv_have_u_int="no"
19021
19022 fi
19023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19024
19025 fi
19026 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
19027 echo "${ECHO_T}$ac_cv_have_u_int" >&6
19028 if test "x$ac_cv_have_u_int" = "xyes" ; then
19029    cat >>confdefs.h <<\_ACEOF
19030 #define HAVE_U_INT 1
19031 _ACEOF
19032
19033    have_u_int=1
19034 fi
19035
19036 echo "$as_me:$LINENO: checking for intmax_t type" >&5
19037 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
19038 if test "${ac_cv_have_intmax_t+set}" = set; then
19039   echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041
19042    cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h.  */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h.  */
19048  #include <sys/types.h>
19049 int
19050 main ()
19051 {
19052  intmax_t a; a = 1;
19053   ;
19054   return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext
19058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059   (eval $ac_compile) 2>conftest.er1
19060   ac_status=$?
19061   grep -v '^ *+' conftest.er1 >conftest.err
19062   rm -f conftest.er1
19063   cat conftest.err >&5
19064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065   (exit $ac_status); } &&
19066          { ac_try='test -z "$ac_c_werror_flag"
19067                          || test ! -s conftest.err'
19068   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069   (eval $ac_try) 2>&5
19070   ac_status=$?
19071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072   (exit $ac_status); }; } &&
19073          { ac_try='test -s conftest.$ac_objext'
19074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075   (eval $ac_try) 2>&5
19076   ac_status=$?
19077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078   (exit $ac_status); }; }; then
19079    ac_cv_have_intmax_t="yes"
19080 else
19081   echo "$as_me: failed program was:" >&5
19082 sed 's/^/| /' conftest.$ac_ext >&5
19083
19084
19085          cat >conftest.$ac_ext <<_ACEOF
19086 /* confdefs.h.  */
19087 _ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h.  */
19091  #include <stdint.h>
19092 int
19093 main ()
19094 {
19095  intmax_t a; a = 1;
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 rm -f conftest.$ac_objext
19101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19102   (eval $ac_compile) 2>conftest.er1
19103   ac_status=$?
19104   grep -v '^ *+' conftest.er1 >conftest.err
19105   rm -f conftest.er1
19106   cat conftest.err >&5
19107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19108   (exit $ac_status); } &&
19109          { ac_try='test -z "$ac_c_werror_flag"
19110                          || test ! -s conftest.err'
19111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112   (eval $ac_try) 2>&5
19113   ac_status=$?
19114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115   (exit $ac_status); }; } &&
19116          { ac_try='test -s conftest.$ac_objext'
19117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118   (eval $ac_try) 2>&5
19119   ac_status=$?
19120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121   (exit $ac_status); }; }; then
19122    ac_cv_have_intmax_t="yes"
19123 else
19124   echo "$as_me: failed program was:" >&5
19125 sed 's/^/| /' conftest.$ac_ext >&5
19126
19127  ac_cv_have_intmax_t="no"
19128
19129 fi
19130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131
19132
19133 fi
19134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19135
19136
19137 fi
19138 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19139 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19140 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19141    cat >>confdefs.h <<\_ACEOF
19142 #define HAVE_INTMAX_T 1
19143 _ACEOF
19144
19145    have_intmax_t=1
19146 fi
19147
19148
19149 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19150 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19151 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19152   echo $ECHO_N "(cached) $ECHO_C" >&6
19153 else
19154
19155    cat >conftest.$ac_ext <<_ACEOF
19156 /* confdefs.h.  */
19157 _ACEOF
19158 cat confdefs.h >>conftest.$ac_ext
19159 cat >>conftest.$ac_ext <<_ACEOF
19160 /* end confdefs.h.  */
19161  #include <sys/types.h>
19162 int
19163 main ()
19164 {
19165  u_intmax_t a; a = 1;
19166   ;
19167   return 0;
19168 }
19169 _ACEOF
19170 rm -f conftest.$ac_objext
19171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19172   (eval $ac_compile) 2>conftest.er1
19173   ac_status=$?
19174   grep -v '^ *+' conftest.er1 >conftest.err
19175   rm -f conftest.er1
19176   cat conftest.err >&5
19177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178   (exit $ac_status); } &&
19179          { ac_try='test -z "$ac_c_werror_flag"
19180                          || test ! -s conftest.err'
19181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19182   (eval $ac_try) 2>&5
19183   ac_status=$?
19184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19185   (exit $ac_status); }; } &&
19186          { ac_try='test -s conftest.$ac_objext'
19187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19188   (eval $ac_try) 2>&5
19189   ac_status=$?
19190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19191   (exit $ac_status); }; }; then
19192    ac_cv_have_u_intmax_t="yes"
19193 else
19194   echo "$as_me: failed program was:" >&5
19195 sed 's/^/| /' conftest.$ac_ext >&5
19196
19197
19198          cat >conftest.$ac_ext <<_ACEOF
19199 /* confdefs.h.  */
19200 _ACEOF
19201 cat confdefs.h >>conftest.$ac_ext
19202 cat >>conftest.$ac_ext <<_ACEOF
19203 /* end confdefs.h.  */
19204  #include <stdint.h>
19205 int
19206 main ()
19207 {
19208  u_intmax_t a; a = 1;
19209   ;
19210   return 0;
19211 }
19212 _ACEOF
19213 rm -f conftest.$ac_objext
19214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19215   (eval $ac_compile) 2>conftest.er1
19216   ac_status=$?
19217   grep -v '^ *+' conftest.er1 >conftest.err
19218   rm -f conftest.er1
19219   cat conftest.err >&5
19220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221   (exit $ac_status); } &&
19222          { ac_try='test -z "$ac_c_werror_flag"
19223                          || test ! -s conftest.err'
19224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225   (eval $ac_try) 2>&5
19226   ac_status=$?
19227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228   (exit $ac_status); }; } &&
19229          { ac_try='test -s conftest.$ac_objext'
19230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231   (eval $ac_try) 2>&5
19232   ac_status=$?
19233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); }; }; then
19235    ac_cv_have_u_intmax_t="yes"
19236 else
19237   echo "$as_me: failed program was:" >&5
19238 sed 's/^/| /' conftest.$ac_ext >&5
19239
19240  ac_cv_have_u_intmax_t="no"
19241
19242 fi
19243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19244
19245
19246 fi
19247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19248
19249 fi
19250 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19251 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19252 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19253    cat >>confdefs.h <<\_ACEOF
19254 #define HAVE_U_INTMAX_T 1
19255 _ACEOF
19256
19257    have_u_intmax_t=1
19258 fi
19259
19260
19261 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19262 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19263 if test "${ac_cv_have_intxx_t+set}" = set; then
19264   echo $ECHO_N "(cached) $ECHO_C" >&6
19265 else
19266
19267    cat >conftest.$ac_ext <<_ACEOF
19268 /* confdefs.h.  */
19269 _ACEOF
19270 cat confdefs.h >>conftest.$ac_ext
19271 cat >>conftest.$ac_ext <<_ACEOF
19272 /* end confdefs.h.  */
19273  #include <sys/types.h>
19274 int
19275 main ()
19276 {
19277  int8_t a; int16_t b; int32_t c; a = b = c = 1;
19278   ;
19279   return 0;
19280 }
19281 _ACEOF
19282 rm -f conftest.$ac_objext
19283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19284   (eval $ac_compile) 2>conftest.er1
19285   ac_status=$?
19286   grep -v '^ *+' conftest.er1 >conftest.err
19287   rm -f conftest.er1
19288   cat conftest.err >&5
19289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290   (exit $ac_status); } &&
19291          { ac_try='test -z "$ac_c_werror_flag"
19292                          || test ! -s conftest.err'
19293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294   (eval $ac_try) 2>&5
19295   ac_status=$?
19296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297   (exit $ac_status); }; } &&
19298          { ac_try='test -s conftest.$ac_objext'
19299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300   (eval $ac_try) 2>&5
19301   ac_status=$?
19302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303   (exit $ac_status); }; }; then
19304    ac_cv_have_intxx_t="yes"
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309  ac_cv_have_intxx_t="no"
19310
19311 fi
19312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19313
19314 fi
19315 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19316 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19317 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19318    cat >>confdefs.h <<\_ACEOF
19319 #define HAVE_INTXX_T 1
19320 _ACEOF
19321
19322    have_intxx_t=1
19323 fi
19324
19325 echo "$as_me:$LINENO: checking for int64_t type" >&5
19326 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19327 if test "${ac_cv_have_int64_t+set}" = set; then
19328   echo $ECHO_N "(cached) $ECHO_C" >&6
19329 else
19330
19331    cat >conftest.$ac_ext <<_ACEOF
19332 /* confdefs.h.  */
19333 _ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h.  */
19337  #include <sys/types.h>
19338 int
19339 main ()
19340 {
19341  int64_t a; a = 1;
19342   ;
19343   return 0;
19344 }
19345 _ACEOF
19346 rm -f conftest.$ac_objext
19347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348   (eval $ac_compile) 2>conftest.er1
19349   ac_status=$?
19350   grep -v '^ *+' conftest.er1 >conftest.err
19351   rm -f conftest.er1
19352   cat conftest.err >&5
19353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354   (exit $ac_status); } &&
19355          { ac_try='test -z "$ac_c_werror_flag"
19356                          || test ! -s conftest.err'
19357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358   (eval $ac_try) 2>&5
19359   ac_status=$?
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); }; } &&
19362          { ac_try='test -s conftest.$ac_objext'
19363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364   (eval $ac_try) 2>&5
19365   ac_status=$?
19366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); }; }; then
19368    ac_cv_have_int64_t="yes"
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373  ac_cv_have_int64_t="no"
19374
19375 fi
19376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19377
19378 fi
19379 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19380 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19381 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19382    cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_INT64_T 1
19384 _ACEOF
19385
19386    have_int64_t=1
19387 fi
19388
19389 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19390 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19391 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19392   echo $ECHO_N "(cached) $ECHO_C" >&6
19393 else
19394
19395    cat >conftest.$ac_ext <<_ACEOF
19396 /* confdefs.h.  */
19397 _ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h.  */
19401  #include <sys/types.h>
19402 int
19403 main ()
19404 {
19405  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19406   ;
19407   return 0;
19408 }
19409 _ACEOF
19410 rm -f conftest.$ac_objext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19412   (eval $ac_compile) 2>conftest.er1
19413   ac_status=$?
19414   grep -v '^ *+' conftest.er1 >conftest.err
19415   rm -f conftest.er1
19416   cat conftest.err >&5
19417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418   (exit $ac_status); } &&
19419          { ac_try='test -z "$ac_c_werror_flag"
19420                          || test ! -s conftest.err'
19421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422   (eval $ac_try) 2>&5
19423   ac_status=$?
19424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425   (exit $ac_status); }; } &&
19426          { ac_try='test -s conftest.$ac_objext'
19427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428   (eval $ac_try) 2>&5
19429   ac_status=$?
19430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431   (exit $ac_status); }; }; then
19432    ac_cv_have_u_intxx_t="yes"
19433 else
19434   echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19436
19437  ac_cv_have_u_intxx_t="no"
19438
19439 fi
19440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19441
19442 fi
19443 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19444 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19445 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19446    cat >>confdefs.h <<\_ACEOF
19447 #define HAVE_U_INTXX_T 1
19448 _ACEOF
19449
19450    have_u_intxx_t=1
19451 fi
19452
19453 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19454 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19455 if test "${ac_cv_have_u_int64_t+set}" = set; then
19456   echo $ECHO_N "(cached) $ECHO_C" >&6
19457 else
19458
19459    cat >conftest.$ac_ext <<_ACEOF
19460 /* confdefs.h.  */
19461 _ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h.  */
19465  #include <sys/types.h>
19466 int
19467 main ()
19468 {
19469  u_int64_t a; a = 1;
19470   ;
19471   return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19476   (eval $ac_compile) 2>conftest.er1
19477   ac_status=$?
19478   grep -v '^ *+' conftest.er1 >conftest.err
19479   rm -f conftest.er1
19480   cat conftest.err >&5
19481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482   (exit $ac_status); } &&
19483          { ac_try='test -z "$ac_c_werror_flag"
19484                          || test ! -s conftest.err'
19485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486   (eval $ac_try) 2>&5
19487   ac_status=$?
19488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489   (exit $ac_status); }; } &&
19490          { ac_try='test -s conftest.$ac_objext'
19491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492   (eval $ac_try) 2>&5
19493   ac_status=$?
19494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495   (exit $ac_status); }; }; then
19496    ac_cv_have_u_int64_t="yes"
19497 else
19498   echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19500
19501  ac_cv_have_u_int64_t="no"
19502
19503 fi
19504 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19505
19506 fi
19507 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19508 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19509 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19510    cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_U_INT64_T 1
19512 _ACEOF
19513
19514    have_u_int64_t=1
19515 fi
19516
19517 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19518            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19519 then
19520    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19521 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19522    cat >conftest.$ac_ext <<_ACEOF
19523 /* confdefs.h.  */
19524 _ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h.  */
19528  #include <sys/bitypes.h>
19529 int
19530 main ()
19531 {
19532  int8_t a; int16_t b; int32_t c;
19533         u_int8_t e; u_int16_t f; u_int32_t g;
19534         a = b = c = e = f = g = 1;
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest.$ac_objext
19540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19541   (eval $ac_compile) 2>conftest.er1
19542   ac_status=$?
19543   grep -v '^ *+' conftest.er1 >conftest.err
19544   rm -f conftest.er1
19545   cat conftest.err >&5
19546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19547   (exit $ac_status); } &&
19548          { ac_try='test -z "$ac_c_werror_flag"
19549                          || test ! -s conftest.err'
19550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19551   (eval $ac_try) 2>&5
19552   ac_status=$?
19553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554   (exit $ac_status); }; } &&
19555          { ac_try='test -s conftest.$ac_objext'
19556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19557   (eval $ac_try) 2>&5
19558   ac_status=$?
19559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561    cat >>confdefs.h <<\_ACEOF
19562 #define HAVE_U_INTXX_T 1
19563 _ACEOF
19564
19565         cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_INTXX_T 1
19567 _ACEOF
19568
19569         cat >>confdefs.h <<\_ACEOF
19570 #define HAVE_SYS_BITYPES_H 1
19571 _ACEOF
19572
19573         echo "$as_me:$LINENO: result: yes" >&5
19574 echo "${ECHO_T}yes" >&6
19575 else
19576   echo "$as_me: failed program was:" >&5
19577 sed 's/^/| /' conftest.$ac_ext >&5
19578
19579  echo "$as_me:$LINENO: result: no" >&5
19580 echo "${ECHO_T}no" >&6
19581
19582 fi
19583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19584 fi
19585
19586 if test -z "$have_u_intxx_t" ; then
19587    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19588 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19589 if test "${ac_cv_have_uintxx_t+set}" = set; then
19590   echo $ECHO_N "(cached) $ECHO_C" >&6
19591 else
19592
19593       cat >conftest.$ac_ext <<_ACEOF
19594 /* confdefs.h.  */
19595 _ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h.  */
19599  #include <sys/types.h>
19600 int
19601 main ()
19602 {
19603  uint8_t a; uint16_t b;
19604            uint32_t c; a = b = c = 1;
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 rm -f conftest.$ac_objext
19610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19611   (eval $ac_compile) 2>conftest.er1
19612   ac_status=$?
19613   grep -v '^ *+' conftest.er1 >conftest.err
19614   rm -f conftest.er1
19615   cat conftest.err >&5
19616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617   (exit $ac_status); } &&
19618          { ac_try='test -z "$ac_c_werror_flag"
19619                          || test ! -s conftest.err'
19620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621   (eval $ac_try) 2>&5
19622   ac_status=$?
19623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624   (exit $ac_status); }; } &&
19625          { ac_try='test -s conftest.$ac_objext'
19626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627   (eval $ac_try) 2>&5
19628   ac_status=$?
19629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630   (exit $ac_status); }; }; then
19631    ac_cv_have_uintxx_t="yes"
19632 else
19633   echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19635
19636  ac_cv_have_uintxx_t="no"
19637
19638 fi
19639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19640
19641 fi
19642 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19643 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19644    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19645       cat >>confdefs.h <<\_ACEOF
19646 #define HAVE_UINTXX_T 1
19647 _ACEOF
19648
19649    fi
19650 fi
19651
19652 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19653           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19654 then
19655    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19656 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19657    cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h.  */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h.  */
19663  #include <sys/bitypes.h>
19664 int
19665 main ()
19666 {
19667  int64_t a; u_int64_t b;
19668        a = b = 1;
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 rm -f conftest.$ac_objext
19674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19675   (eval $ac_compile) 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } &&
19682          { ac_try='test -z "$ac_c_werror_flag"
19683                          || test ! -s conftest.err'
19684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685   (eval $ac_try) 2>&5
19686   ac_status=$?
19687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688   (exit $ac_status); }; } &&
19689          { ac_try='test -s conftest.$ac_objext'
19690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691   (eval $ac_try) 2>&5
19692   ac_status=$?
19693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694   (exit $ac_status); }; }; then
19695    cat >>confdefs.h <<\_ACEOF
19696 #define HAVE_U_INT64_T 1
19697 _ACEOF
19698
19699        cat >>confdefs.h <<\_ACEOF
19700 #define HAVE_INT64_T 1
19701 _ACEOF
19702
19703        echo "$as_me:$LINENO: result: yes" >&5
19704 echo "${ECHO_T}yes" >&6
19705 else
19706   echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19708
19709  echo "$as_me:$LINENO: result: no" >&5
19710 echo "${ECHO_T}no" >&6
19711
19712 fi
19713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714 fi
19715
19716 if (test -z "$have_uintxx_t" && \
19717           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19718 then
19719    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19720 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19721    cat >conftest.$ac_ext <<_ACEOF
19722 /* confdefs.h.  */
19723 _ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h.  */
19727  #include <sys/bitypes.h>
19728 int
19729 main ()
19730 {
19731  uint8_t a; uint16_t b;
19732           uint32_t c; a = b = c = 1;
19733   ;
19734   return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext
19738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19739   (eval $ac_compile) 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } &&
19746          { ac_try='test -z "$ac_c_werror_flag"
19747                          || test ! -s conftest.err'
19748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19749   (eval $ac_try) 2>&5
19750   ac_status=$?
19751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752   (exit $ac_status); }; } &&
19753          { ac_try='test -s conftest.$ac_objext'
19754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755   (eval $ac_try) 2>&5
19756   ac_status=$?
19757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759    cat >>confdefs.h <<\_ACEOF
19760 #define HAVE_UINTXX_T 1
19761 _ACEOF
19762
19763        echo "$as_me:$LINENO: result: yes" >&5
19764 echo "${ECHO_T}yes" >&6
19765 else
19766   echo "$as_me: failed program was:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19768
19769  echo "$as_me:$LINENO: result: no" >&5
19770 echo "${ECHO_T}no" >&6
19771
19772 fi
19773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19774
19775 fi
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793 for ac_func in \
19794         fork \
19795         getcwd \
19796         gethostname \
19797         getpid \
19798         gettimeofday \
19799         setpgid \
19800         setpgrp \
19801         setsid \
19802         signal \
19803         strerror \
19804         strncmp \
19805         strncpy \
19806         vfprintf \
19807
19808 do
19809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19810 echo "$as_me:$LINENO: checking for $ac_func" >&5
19811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19812 if eval "test \"\${$as_ac_var+set}\" = set"; then
19813   echo $ECHO_N "(cached) $ECHO_C" >&6
19814 else
19815   cat >conftest.$ac_ext <<_ACEOF
19816 /* confdefs.h.  */
19817 _ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h.  */
19821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19822    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19823 #define $ac_func innocuous_$ac_func
19824
19825 /* System header to define __stub macros and hopefully few prototypes,
19826     which can conflict with char $ac_func (); below.
19827     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19828     <limits.h> exists even on freestanding compilers.  */
19829
19830 #ifdef __STDC__
19831 # include <limits.h>
19832 #else
19833 # include <assert.h>
19834 #endif
19835
19836 #undef $ac_func
19837
19838 /* Override any gcc2 internal prototype to avoid an error.  */
19839 #ifdef __cplusplus
19840 extern "C"
19841 {
19842 #endif
19843 /* We use char because int might match the return type of a gcc2
19844    builtin and then its argument prototype would still apply.  */
19845 char $ac_func ();
19846 /* The GNU C library defines this for functions which it implements
19847     to always fail with ENOSYS.  Some functions are actually named
19848     something starting with __ and the normal name is an alias.  */
19849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19850 choke me
19851 #else
19852 char (*f) () = $ac_func;
19853 #endif
19854 #ifdef __cplusplus
19855 }
19856 #endif
19857
19858 int
19859 main ()
19860 {
19861 return f != $ac_func;
19862   ;
19863   return 0;
19864 }
19865 _ACEOF
19866 rm -f conftest.$ac_objext conftest$ac_exeext
19867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19868   (eval $ac_link) 2>conftest.er1
19869   ac_status=$?
19870   grep -v '^ *+' conftest.er1 >conftest.err
19871   rm -f conftest.er1
19872   cat conftest.err >&5
19873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874   (exit $ac_status); } &&
19875          { ac_try='test -z "$ac_c_werror_flag"
19876                          || test ! -s conftest.err'
19877   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878   (eval $ac_try) 2>&5
19879   ac_status=$?
19880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881   (exit $ac_status); }; } &&
19882          { ac_try='test -s conftest$ac_exeext'
19883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884   (eval $ac_try) 2>&5
19885   ac_status=$?
19886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887   (exit $ac_status); }; }; then
19888   eval "$as_ac_var=yes"
19889 else
19890   echo "$as_me: failed program was:" >&5
19891 sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 eval "$as_ac_var=no"
19894 fi
19895 rm -f conftest.err conftest.$ac_objext \
19896       conftest$ac_exeext conftest.$ac_ext
19897 fi
19898 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19899 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19900 if test `eval echo '${'$as_ac_var'}'` = yes; then
19901   cat >>confdefs.h <<_ACEOF
19902 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19903 _ACEOF
19904
19905 else
19906   echo 'configure: cannot find needed function.'; exit 1
19907
19908 fi
19909 done
19910
19911
19912
19913 for ac_func in fchdir
19914 do
19915 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19916 echo "$as_me:$LINENO: checking for $ac_func" >&5
19917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19918 if eval "test \"\${$as_ac_var+set}\" = set"; then
19919   echo $ECHO_N "(cached) $ECHO_C" >&6
19920 else
19921   cat >conftest.$ac_ext <<_ACEOF
19922 /* confdefs.h.  */
19923 _ACEOF
19924 cat confdefs.h >>conftest.$ac_ext
19925 cat >>conftest.$ac_ext <<_ACEOF
19926 /* end confdefs.h.  */
19927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19928    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19929 #define $ac_func innocuous_$ac_func
19930
19931 /* System header to define __stub macros and hopefully few prototypes,
19932     which can conflict with char $ac_func (); below.
19933     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19934     <limits.h> exists even on freestanding compilers.  */
19935
19936 #ifdef __STDC__
19937 # include <limits.h>
19938 #else
19939 # include <assert.h>
19940 #endif
19941
19942 #undef $ac_func
19943
19944 /* Override any gcc2 internal prototype to avoid an error.  */
19945 #ifdef __cplusplus
19946 extern "C"
19947 {
19948 #endif
19949 /* We use char because int might match the return type of a gcc2
19950    builtin and then its argument prototype would still apply.  */
19951 char $ac_func ();
19952 /* The GNU C library defines this for functions which it implements
19953     to always fail with ENOSYS.  Some functions are actually named
19954     something starting with __ and the normal name is an alias.  */
19955 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19956 choke me
19957 #else
19958 char (*f) () = $ac_func;
19959 #endif
19960 #ifdef __cplusplus
19961 }
19962 #endif
19963
19964 int
19965 main ()
19966 {
19967 return f != $ac_func;
19968   ;
19969   return 0;
19970 }
19971 _ACEOF
19972 rm -f conftest.$ac_objext conftest$ac_exeext
19973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19974   (eval $ac_link) 2>conftest.er1
19975   ac_status=$?
19976   grep -v '^ *+' conftest.er1 >conftest.err
19977   rm -f conftest.er1
19978   cat conftest.err >&5
19979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980   (exit $ac_status); } &&
19981          { ac_try='test -z "$ac_c_werror_flag"
19982                          || test ! -s conftest.err'
19983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984   (eval $ac_try) 2>&5
19985   ac_status=$?
19986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987   (exit $ac_status); }; } &&
19988          { ac_try='test -s conftest$ac_exeext'
19989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19990   (eval $ac_try) 2>&5
19991   ac_status=$?
19992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993   (exit $ac_status); }; }; then
19994   eval "$as_ac_var=yes"
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999 eval "$as_ac_var=no"
20000 fi
20001 rm -f conftest.err conftest.$ac_objext \
20002       conftest$ac_exeext conftest.$ac_ext
20003 fi
20004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20006 if test `eval echo '${'$as_ac_var'}'` = yes; then
20007   cat >>confdefs.h <<_ACEOF
20008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20009 _ACEOF
20010  cat >>confdefs.h <<\_ACEOF
20011 #define HAVE_FCHDIR 1
20012 _ACEOF
20013
20014 fi
20015 done
20016
20017
20018 for ac_func in strtoll
20019 do
20020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20021 echo "$as_me:$LINENO: checking for $ac_func" >&5
20022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20023 if eval "test \"\${$as_ac_var+set}\" = set"; then
20024   echo $ECHO_N "(cached) $ECHO_C" >&6
20025 else
20026   cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h.  */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h.  */
20032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20034 #define $ac_func innocuous_$ac_func
20035
20036 /* System header to define __stub macros and hopefully few prototypes,
20037     which can conflict with char $ac_func (); below.
20038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039     <limits.h> exists even on freestanding compilers.  */
20040
20041 #ifdef __STDC__
20042 # include <limits.h>
20043 #else
20044 # include <assert.h>
20045 #endif
20046
20047 #undef $ac_func
20048
20049 /* Override any gcc2 internal prototype to avoid an error.  */
20050 #ifdef __cplusplus
20051 extern "C"
20052 {
20053 #endif
20054 /* We use char because int might match the return type of a gcc2
20055    builtin and then its argument prototype would still apply.  */
20056 char $ac_func ();
20057 /* The GNU C library defines this for functions which it implements
20058     to always fail with ENOSYS.  Some functions are actually named
20059     something starting with __ and the normal name is an alias.  */
20060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20061 choke me
20062 #else
20063 char (*f) () = $ac_func;
20064 #endif
20065 #ifdef __cplusplus
20066 }
20067 #endif
20068
20069 int
20070 main ()
20071 {
20072 return f != $ac_func;
20073   ;
20074   return 0;
20075 }
20076 _ACEOF
20077 rm -f conftest.$ac_objext conftest$ac_exeext
20078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20079   (eval $ac_link) 2>conftest.er1
20080   ac_status=$?
20081   grep -v '^ *+' conftest.er1 >conftest.err
20082   rm -f conftest.er1
20083   cat conftest.err >&5
20084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20085   (exit $ac_status); } &&
20086          { ac_try='test -z "$ac_c_werror_flag"
20087                          || test ! -s conftest.err'
20088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089   (eval $ac_try) 2>&5
20090   ac_status=$?
20091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092   (exit $ac_status); }; } &&
20093          { ac_try='test -s conftest$ac_exeext'
20094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20095   (eval $ac_try) 2>&5
20096   ac_status=$?
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); }; }; then
20099   eval "$as_ac_var=yes"
20100 else
20101   echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 eval "$as_ac_var=no"
20105 fi
20106 rm -f conftest.err conftest.$ac_objext \
20107       conftest$ac_exeext conftest.$ac_ext
20108 fi
20109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20110 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20111 if test `eval echo '${'$as_ac_var'}'` = yes; then
20112   cat >>confdefs.h <<_ACEOF
20113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20114 _ACEOF
20115  cat >>confdefs.h <<\_ACEOF
20116 #define HAVE_STRTOLL 1
20117 _ACEOF
20118
20119 fi
20120 done
20121
20122
20123
20124 for ac_func in chflags
20125 do
20126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20127 echo "$as_me:$LINENO: checking for $ac_func" >&5
20128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_var+set}\" = set"; then
20130   echo $ECHO_N "(cached) $ECHO_C" >&6
20131 else
20132   cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20139    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20140 #define $ac_func innocuous_$ac_func
20141
20142 /* System header to define __stub macros and hopefully few prototypes,
20143     which can conflict with char $ac_func (); below.
20144     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20145     <limits.h> exists even on freestanding compilers.  */
20146
20147 #ifdef __STDC__
20148 # include <limits.h>
20149 #else
20150 # include <assert.h>
20151 #endif
20152
20153 #undef $ac_func
20154
20155 /* Override any gcc2 internal prototype to avoid an error.  */
20156 #ifdef __cplusplus
20157 extern "C"
20158 {
20159 #endif
20160 /* We use char because int might match the return type of a gcc2
20161    builtin and then its argument prototype would still apply.  */
20162 char $ac_func ();
20163 /* The GNU C library defines this for functions which it implements
20164     to always fail with ENOSYS.  Some functions are actually named
20165     something starting with __ and the normal name is an alias.  */
20166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20167 choke me
20168 #else
20169 char (*f) () = $ac_func;
20170 #endif
20171 #ifdef __cplusplus
20172 }
20173 #endif
20174
20175 int
20176 main ()
20177 {
20178 return f != $ac_func;
20179   ;
20180   return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185   (eval $ac_link) 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag"
20193                          || test ! -s conftest.err'
20194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195   (eval $ac_try) 2>&5
20196   ac_status=$?
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); }; } &&
20199          { ac_try='test -s conftest$ac_exeext'
20200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201   (eval $ac_try) 2>&5
20202   ac_status=$?
20203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204   (exit $ac_status); }; }; then
20205   eval "$as_ac_var=yes"
20206 else
20207   echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20209
20210 eval "$as_ac_var=no"
20211 fi
20212 rm -f conftest.err conftest.$ac_objext \
20213       conftest$ac_exeext conftest.$ac_ext
20214 fi
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218   cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20220 _ACEOF
20221
20222 fi
20223 done
20224
20225
20226
20227
20228
20229
20230 for ac_func in snprintf vsnprintf gethostid fseeko
20231 do
20232 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20233 echo "$as_me:$LINENO: checking for $ac_func" >&5
20234 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20235 if eval "test \"\${$as_ac_var+set}\" = set"; then
20236   echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238   cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h.  */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h.  */
20244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20245    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20246 #define $ac_func innocuous_$ac_func
20247
20248 /* System header to define __stub macros and hopefully few prototypes,
20249     which can conflict with char $ac_func (); below.
20250     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20251     <limits.h> exists even on freestanding compilers.  */
20252
20253 #ifdef __STDC__
20254 # include <limits.h>
20255 #else
20256 # include <assert.h>
20257 #endif
20258
20259 #undef $ac_func
20260
20261 /* Override any gcc2 internal prototype to avoid an error.  */
20262 #ifdef __cplusplus
20263 extern "C"
20264 {
20265 #endif
20266 /* We use char because int might match the return type of a gcc2
20267    builtin and then its argument prototype would still apply.  */
20268 char $ac_func ();
20269 /* The GNU C library defines this for functions which it implements
20270     to always fail with ENOSYS.  Some functions are actually named
20271     something starting with __ and the normal name is an alias.  */
20272 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20273 choke me
20274 #else
20275 char (*f) () = $ac_func;
20276 #endif
20277 #ifdef __cplusplus
20278 }
20279 #endif
20280
20281 int
20282 main ()
20283 {
20284 return f != $ac_func;
20285   ;
20286   return 0;
20287 }
20288 _ACEOF
20289 rm -f conftest.$ac_objext conftest$ac_exeext
20290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20291   (eval $ac_link) 2>conftest.er1
20292   ac_status=$?
20293   grep -v '^ *+' conftest.er1 >conftest.err
20294   rm -f conftest.er1
20295   cat conftest.err >&5
20296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297   (exit $ac_status); } &&
20298          { ac_try='test -z "$ac_c_werror_flag"
20299                          || test ! -s conftest.err'
20300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301   (eval $ac_try) 2>&5
20302   ac_status=$?
20303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304   (exit $ac_status); }; } &&
20305          { ac_try='test -s conftest$ac_exeext'
20306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307   (eval $ac_try) 2>&5
20308   ac_status=$?
20309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310   (exit $ac_status); }; }; then
20311   eval "$as_ac_var=yes"
20312 else
20313   echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316 eval "$as_ac_var=no"
20317 fi
20318 rm -f conftest.err conftest.$ac_objext \
20319       conftest$ac_exeext conftest.$ac_ext
20320 fi
20321 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20322 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20323 if test `eval echo '${'$as_ac_var'}'` = yes; then
20324   cat >>confdefs.h <<_ACEOF
20325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20326 _ACEOF
20327
20328 fi
20329 done
20330
20331
20332
20333
20334
20335
20336 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20337 do
20338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20339 echo "$as_me:$LINENO: checking for $ac_func" >&5
20340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20341 if eval "test \"\${$as_ac_var+set}\" = set"; then
20342   echo $ECHO_N "(cached) $ECHO_C" >&6
20343 else
20344   cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20351    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20352 #define $ac_func innocuous_$ac_func
20353
20354 /* System header to define __stub macros and hopefully few prototypes,
20355     which can conflict with char $ac_func (); below.
20356     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20357     <limits.h> exists even on freestanding compilers.  */
20358
20359 #ifdef __STDC__
20360 # include <limits.h>
20361 #else
20362 # include <assert.h>
20363 #endif
20364
20365 #undef $ac_func
20366
20367 /* Override any gcc2 internal prototype to avoid an error.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 {
20371 #endif
20372 /* We use char because int might match the return type of a gcc2
20373    builtin and then its argument prototype would still apply.  */
20374 char $ac_func ();
20375 /* The GNU C library defines this for functions which it implements
20376     to always fail with ENOSYS.  Some functions are actually named
20377     something starting with __ and the normal name is an alias.  */
20378 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20379 choke me
20380 #else
20381 char (*f) () = $ac_func;
20382 #endif
20383 #ifdef __cplusplus
20384 }
20385 #endif
20386
20387 int
20388 main ()
20389 {
20390 return f != $ac_func;
20391   ;
20392   return 0;
20393 }
20394 _ACEOF
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20397   (eval $ac_link) 2>conftest.er1
20398   ac_status=$?
20399   grep -v '^ *+' conftest.er1 >conftest.err
20400   rm -f conftest.er1
20401   cat conftest.err >&5
20402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403   (exit $ac_status); } &&
20404          { ac_try='test -z "$ac_c_werror_flag"
20405                          || test ! -s conftest.err'
20406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20407   (eval $ac_try) 2>&5
20408   ac_status=$?
20409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410   (exit $ac_status); }; } &&
20411          { ac_try='test -s conftest$ac_exeext'
20412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20413   (eval $ac_try) 2>&5
20414   ac_status=$?
20415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20416   (exit $ac_status); }; }; then
20417   eval "$as_ac_var=yes"
20418 else
20419   echo "$as_me: failed program was:" >&5
20420 sed 's/^/| /' conftest.$ac_ext >&5
20421
20422 eval "$as_ac_var=no"
20423 fi
20424 rm -f conftest.err conftest.$ac_objext \
20425       conftest$ac_exeext conftest.$ac_ext
20426 fi
20427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20428 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20429 if test `eval echo '${'$as_ac_var'}'` = yes; then
20430   cat >>confdefs.h <<_ACEOF
20431 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20432 _ACEOF
20433
20434 fi
20435 done
20436
20437
20438 # If resolver functions are not in libc check for -lnsl or -lresolv.
20439 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20440 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20441 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20442   echo $ECHO_N "(cached) $ECHO_C" >&6
20443 else
20444   cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h.  */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h.  */
20450 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20451    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20452 #define gethostbyname_r innocuous_gethostbyname_r
20453
20454 /* System header to define __stub macros and hopefully few prototypes,
20455     which can conflict with char gethostbyname_r (); below.
20456     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20457     <limits.h> exists even on freestanding compilers.  */
20458
20459 #ifdef __STDC__
20460 # include <limits.h>
20461 #else
20462 # include <assert.h>
20463 #endif
20464
20465 #undef gethostbyname_r
20466
20467 /* Override any gcc2 internal prototype to avoid an error.  */
20468 #ifdef __cplusplus
20469 extern "C"
20470 {
20471 #endif
20472 /* We use char because int might match the return type of a gcc2
20473    builtin and then its argument prototype would still apply.  */
20474 char gethostbyname_r ();
20475 /* The GNU C library defines this for functions which it implements
20476     to always fail with ENOSYS.  Some functions are actually named
20477     something starting with __ and the normal name is an alias.  */
20478 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20479 choke me
20480 #else
20481 char (*f) () = gethostbyname_r;
20482 #endif
20483 #ifdef __cplusplus
20484 }
20485 #endif
20486
20487 int
20488 main ()
20489 {
20490 return f != gethostbyname_r;
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 rm -f conftest.$ac_objext conftest$ac_exeext
20496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497   (eval $ac_link) 2>conftest.er1
20498   ac_status=$?
20499   grep -v '^ *+' conftest.er1 >conftest.err
20500   rm -f conftest.er1
20501   cat conftest.err >&5
20502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503   (exit $ac_status); } &&
20504          { ac_try='test -z "$ac_c_werror_flag"
20505                          || test ! -s conftest.err'
20506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507   (eval $ac_try) 2>&5
20508   ac_status=$?
20509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510   (exit $ac_status); }; } &&
20511          { ac_try='test -s conftest$ac_exeext'
20512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513   (eval $ac_try) 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   ac_cv_func_gethostbyname_r=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522 ac_cv_func_gethostbyname_r=no
20523 fi
20524 rm -f conftest.err conftest.$ac_objext \
20525       conftest$ac_exeext conftest.$ac_ext
20526 fi
20527 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20528 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20529 if test $ac_cv_func_gethostbyname_r = yes; then
20530   echo "$as_me:$LINENO: result: using libc's resolver" >&5
20531 echo "${ECHO_T}using libc's resolver" >&6
20532 else
20533
20534 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20535 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20536 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20537   echo $ECHO_N "(cached) $ECHO_C" >&6
20538 else
20539   ac_check_lib_save_LIBS=$LIBS
20540 LIBS="-lnsl  $LIBS"
20541 cat >conftest.$ac_ext <<_ACEOF
20542 /* confdefs.h.  */
20543 _ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h.  */
20547
20548 /* Override any gcc2 internal prototype to avoid an error.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 /* We use char because int might match the return type of a gcc2
20553    builtin and then its argument prototype would still apply.  */
20554 char gethostbyname_r ();
20555 int
20556 main ()
20557 {
20558 gethostbyname_r ();
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565   (eval $ac_link) 2>conftest.er1
20566   ac_status=$?
20567   grep -v '^ *+' conftest.er1 >conftest.err
20568   rm -f conftest.er1
20569   cat conftest.err >&5
20570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571   (exit $ac_status); } &&
20572          { ac_try='test -z "$ac_c_werror_flag"
20573                          || test ! -s conftest.err'
20574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575   (eval $ac_try) 2>&5
20576   ac_status=$?
20577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578   (exit $ac_status); }; } &&
20579          { ac_try='test -s conftest$ac_exeext'
20580   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581   (eval $ac_try) 2>&5
20582   ac_status=$?
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); }; }; then
20585   ac_cv_lib_nsl_gethostbyname_r=yes
20586 else
20587   echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20589
20590 ac_cv_lib_nsl_gethostbyname_r=no
20591 fi
20592 rm -f conftest.err conftest.$ac_objext \
20593       conftest$ac_exeext conftest.$ac_ext
20594 LIBS=$ac_check_lib_save_LIBS
20595 fi
20596 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20597 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20598 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20599   cat >>confdefs.h <<_ACEOF
20600 #define HAVE_LIBNSL 1
20601 _ACEOF
20602
20603   LIBS="-lnsl $LIBS"
20604
20605 fi
20606
20607
20608 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20609 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20610 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20611   echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613   ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lresolv  $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20616 /* confdefs.h.  */
20617 _ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h.  */
20621
20622 /* Override any gcc2 internal prototype to avoid an error.  */
20623 #ifdef __cplusplus
20624 extern "C"
20625 #endif
20626 /* We use char because int might match the return type of a gcc2
20627    builtin and then its argument prototype would still apply.  */
20628 char gethostbyname_r ();
20629 int
20630 main ()
20631 {
20632 gethostbyname_r ();
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639   (eval $ac_link) 2>conftest.er1
20640   ac_status=$?
20641   grep -v '^ *+' conftest.er1 >conftest.err
20642   rm -f conftest.er1
20643   cat conftest.err >&5
20644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645   (exit $ac_status); } &&
20646          { ac_try='test -z "$ac_c_werror_flag"
20647                          || test ! -s conftest.err'
20648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20649   (eval $ac_try) 2>&5
20650   ac_status=$?
20651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20652   (exit $ac_status); }; } &&
20653          { ac_try='test -s conftest$ac_exeext'
20654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20655   (eval $ac_try) 2>&5
20656   ac_status=$?
20657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658   (exit $ac_status); }; }; then
20659   ac_cv_lib_resolv_gethostbyname_r=yes
20660 else
20661   echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ac_cv_lib_resolv_gethostbyname_r=no
20665 fi
20666 rm -f conftest.err conftest.$ac_objext \
20667       conftest$ac_exeext conftest.$ac_ext
20668 LIBS=$ac_check_lib_save_LIBS
20669 fi
20670 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20671 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20672 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20673   cat >>confdefs.h <<_ACEOF
20674 #define HAVE_LIBRESOLV 1
20675 _ACEOF
20676
20677   LIBS="-lresolv $LIBS"
20678
20679 fi
20680
20681 fi
20682
20683
20684
20685
20686
20687 for ac_func in inet_pton
20688 do
20689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20690 echo "$as_me:$LINENO: checking for $ac_func" >&5
20691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20692 if eval "test \"\${$as_ac_var+set}\" = set"; then
20693   echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695   cat >conftest.$ac_ext <<_ACEOF
20696 /* confdefs.h.  */
20697 _ACEOF
20698 cat confdefs.h >>conftest.$ac_ext
20699 cat >>conftest.$ac_ext <<_ACEOF
20700 /* end confdefs.h.  */
20701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20703 #define $ac_func innocuous_$ac_func
20704
20705 /* System header to define __stub macros and hopefully few prototypes,
20706     which can conflict with char $ac_func (); below.
20707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20708     <limits.h> exists even on freestanding compilers.  */
20709
20710 #ifdef __STDC__
20711 # include <limits.h>
20712 #else
20713 # include <assert.h>
20714 #endif
20715
20716 #undef $ac_func
20717
20718 /* Override any gcc2 internal prototype to avoid an error.  */
20719 #ifdef __cplusplus
20720 extern "C"
20721 {
20722 #endif
20723 /* We use char because int might match the return type of a gcc2
20724    builtin and then its argument prototype would still apply.  */
20725 char $ac_func ();
20726 /* The GNU C library defines this for functions which it implements
20727     to always fail with ENOSYS.  Some functions are actually named
20728     something starting with __ and the normal name is an alias.  */
20729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20730 choke me
20731 #else
20732 char (*f) () = $ac_func;
20733 #endif
20734 #ifdef __cplusplus
20735 }
20736 #endif
20737
20738 int
20739 main ()
20740 {
20741 return f != $ac_func;
20742   ;
20743   return 0;
20744 }
20745 _ACEOF
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20748   (eval $ac_link) 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } &&
20755          { ac_try='test -z "$ac_c_werror_flag"
20756                          || test ! -s conftest.err'
20757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758   (eval $ac_try) 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; } &&
20762          { ac_try='test -s conftest$ac_exeext'
20763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764   (eval $ac_try) 2>&5
20765   ac_status=$?
20766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767   (exit $ac_status); }; }; then
20768   eval "$as_ac_var=yes"
20769 else
20770   echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20772
20773 eval "$as_ac_var=no"
20774 fi
20775 rm -f conftest.err conftest.$ac_objext \
20776       conftest$ac_exeext conftest.$ac_ext
20777 fi
20778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20780 if test `eval echo '${'$as_ac_var'}'` = yes; then
20781   cat >>confdefs.h <<_ACEOF
20782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20783 _ACEOF
20784  cat >>confdefs.h <<\_ACEOF
20785 #define HAVE_INET_PTON 1
20786 _ACEOF
20787
20788 fi
20789 done
20790
20791
20792 for ac_func in inet_ntop
20793 do
20794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20795 echo "$as_me:$LINENO: checking for $ac_func" >&5
20796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20797 if eval "test \"\${$as_ac_var+set}\" = set"; then
20798   echo $ECHO_N "(cached) $ECHO_C" >&6
20799 else
20800   cat >conftest.$ac_ext <<_ACEOF
20801 /* confdefs.h.  */
20802 _ACEOF
20803 cat confdefs.h >>conftest.$ac_ext
20804 cat >>conftest.$ac_ext <<_ACEOF
20805 /* end confdefs.h.  */
20806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20808 #define $ac_func innocuous_$ac_func
20809
20810 /* System header to define __stub macros and hopefully few prototypes,
20811     which can conflict with char $ac_func (); below.
20812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20813     <limits.h> exists even on freestanding compilers.  */
20814
20815 #ifdef __STDC__
20816 # include <limits.h>
20817 #else
20818 # include <assert.h>
20819 #endif
20820
20821 #undef $ac_func
20822
20823 /* Override any gcc2 internal prototype to avoid an error.  */
20824 #ifdef __cplusplus
20825 extern "C"
20826 {
20827 #endif
20828 /* We use char because int might match the return type of a gcc2
20829    builtin and then its argument prototype would still apply.  */
20830 char $ac_func ();
20831 /* The GNU C library defines this for functions which it implements
20832     to always fail with ENOSYS.  Some functions are actually named
20833     something starting with __ and the normal name is an alias.  */
20834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20835 choke me
20836 #else
20837 char (*f) () = $ac_func;
20838 #endif
20839 #ifdef __cplusplus
20840 }
20841 #endif
20842
20843 int
20844 main ()
20845 {
20846 return f != $ac_func;
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 rm -f conftest.$ac_objext conftest$ac_exeext
20852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20853   (eval $ac_link) 2>conftest.er1
20854   ac_status=$?
20855   grep -v '^ *+' conftest.er1 >conftest.err
20856   rm -f conftest.er1
20857   cat conftest.err >&5
20858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859   (exit $ac_status); } &&
20860          { ac_try='test -z "$ac_c_werror_flag"
20861                          || test ! -s conftest.err'
20862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20863   (eval $ac_try) 2>&5
20864   ac_status=$?
20865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20866   (exit $ac_status); }; } &&
20867          { ac_try='test -s conftest$ac_exeext'
20868   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20869   (eval $ac_try) 2>&5
20870   ac_status=$?
20871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20872   (exit $ac_status); }; }; then
20873   eval "$as_ac_var=yes"
20874 else
20875   echo "$as_me: failed program was:" >&5
20876 sed 's/^/| /' conftest.$ac_ext >&5
20877
20878 eval "$as_ac_var=no"
20879 fi
20880 rm -f conftest.err conftest.$ac_objext \
20881       conftest$ac_exeext conftest.$ac_ext
20882 fi
20883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20885 if test `eval echo '${'$as_ac_var'}'` = yes; then
20886   cat >>confdefs.h <<_ACEOF
20887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20888 _ACEOF
20889  cat >>confdefs.h <<\_ACEOF
20890 #define HAVE_INET_NTOP 1
20891 _ACEOF
20892
20893 fi
20894 done
20895
20896
20897 for ac_func in gethostbyname2
20898 do
20899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20900 echo "$as_me:$LINENO: checking for $ac_func" >&5
20901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20902 if eval "test \"\${$as_ac_var+set}\" = set"; then
20903   echo $ECHO_N "(cached) $ECHO_C" >&6
20904 else
20905   cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h.  */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h.  */
20911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20913 #define $ac_func innocuous_$ac_func
20914
20915 /* System header to define __stub macros and hopefully few prototypes,
20916     which can conflict with char $ac_func (); below.
20917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20918     <limits.h> exists even on freestanding compilers.  */
20919
20920 #ifdef __STDC__
20921 # include <limits.h>
20922 #else
20923 # include <assert.h>
20924 #endif
20925
20926 #undef $ac_func
20927
20928 /* Override any gcc2 internal prototype to avoid an error.  */
20929 #ifdef __cplusplus
20930 extern "C"
20931 {
20932 #endif
20933 /* We use char because int might match the return type of a gcc2
20934    builtin and then its argument prototype would still apply.  */
20935 char $ac_func ();
20936 /* The GNU C library defines this for functions which it implements
20937     to always fail with ENOSYS.  Some functions are actually named
20938     something starting with __ and the normal name is an alias.  */
20939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20940 choke me
20941 #else
20942 char (*f) () = $ac_func;
20943 #endif
20944 #ifdef __cplusplus
20945 }
20946 #endif
20947
20948 int
20949 main ()
20950 {
20951 return f != $ac_func;
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest.$ac_objext conftest$ac_exeext
20957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20958   (eval $ac_link) 2>conftest.er1
20959   ac_status=$?
20960   grep -v '^ *+' conftest.er1 >conftest.err
20961   rm -f conftest.er1
20962   cat conftest.err >&5
20963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964   (exit $ac_status); } &&
20965          { ac_try='test -z "$ac_c_werror_flag"
20966                          || test ! -s conftest.err'
20967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20968   (eval $ac_try) 2>&5
20969   ac_status=$?
20970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20971   (exit $ac_status); }; } &&
20972          { ac_try='test -s conftest$ac_exeext'
20973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974   (eval $ac_try) 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; }; then
20978   eval "$as_ac_var=yes"
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 eval "$as_ac_var=no"
20984 fi
20985 rm -f conftest.err conftest.$ac_objext \
20986       conftest$ac_exeext conftest.$ac_ext
20987 fi
20988 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20989 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20990 if test `eval echo '${'$as_ac_var'}'` = yes; then
20991   cat >>confdefs.h <<_ACEOF
20992 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20993 _ACEOF
20994  cat >>confdefs.h <<\_ACEOF
20995 #define HAVE_GETHOSTBYNAME2 1
20996 _ACEOF
20997
20998 fi
20999 done
21000
21001
21002 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
21003 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
21004 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
21005   echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21007   cat >conftest.$ac_ext <<_ACEOF
21008 /* confdefs.h.  */
21009 _ACEOF
21010 cat confdefs.h >>conftest.$ac_ext
21011 cat >>conftest.$ac_ext <<_ACEOF
21012 /* end confdefs.h.  */
21013 #include <sys/socket.h>
21014 int
21015 main ()
21016 {
21017 struct sockaddr s; s.sa_len;
21018   ;
21019   return 0;
21020 }
21021 _ACEOF
21022 rm -f conftest.$ac_objext
21023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21024   (eval $ac_compile) 2>conftest.er1
21025   ac_status=$?
21026   grep -v '^ *+' conftest.er1 >conftest.err
21027   rm -f conftest.er1
21028   cat conftest.err >&5
21029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21030   (exit $ac_status); } &&
21031          { ac_try='test -z "$ac_c_werror_flag"
21032                          || test ! -s conftest.err'
21033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21034   (eval $ac_try) 2>&5
21035   ac_status=$?
21036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037   (exit $ac_status); }; } &&
21038          { ac_try='test -s conftest.$ac_objext'
21039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21040   (eval $ac_try) 2>&5
21041   ac_status=$?
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); }; }; then
21044   ac_cv_struct_sockaddr_sa_len=yes
21045 else
21046   echo "$as_me: failed program was:" >&5
21047 sed 's/^/| /' conftest.$ac_ext >&5
21048
21049 ac_cv_struct_sockaddr_sa_len=no
21050 fi
21051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21052 fi
21053 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21054 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21055
21056  if test $ac_cv_struct_sockaddr_sa_len = yes; then
21057
21058 cat >>confdefs.h <<\_ACEOF
21059 #define HAVE_SA_LEN 1
21060 _ACEOF
21061
21062  fi
21063
21064
21065 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21066 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21067 if test "${ac_cv_ipv6_support+set}" = set; then
21068   echo $ECHO_N "(cached) $ECHO_C" >&6
21069 else
21070   cat >conftest.$ac_ext <<_ACEOF
21071 /* confdefs.h.  */
21072 _ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h.  */
21076  #include <sys/types.h>
21077 #include <sys/socket.h>
21078 #include <netinet/in.h>
21079 int
21080 main ()
21081 {
21082 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21083  0;
21084   ;
21085   return 0;
21086 }
21087 _ACEOF
21088 rm -f conftest.$ac_objext conftest$ac_exeext
21089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21090   (eval $ac_link) 2>conftest.er1
21091   ac_status=$?
21092   grep -v '^ *+' conftest.er1 >conftest.err
21093   rm -f conftest.er1
21094   cat conftest.err >&5
21095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096   (exit $ac_status); } &&
21097          { ac_try='test -z "$ac_c_werror_flag"
21098                          || test ! -s conftest.err'
21099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21100   (eval $ac_try) 2>&5
21101   ac_status=$?
21102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103   (exit $ac_status); }; } &&
21104          { ac_try='test -s conftest$ac_exeext'
21105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106   (eval $ac_try) 2>&5
21107   ac_status=$?
21108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109   (exit $ac_status); }; }; then
21110   ac_cv_ipv6_support=yes
21111 else
21112   echo "$as_me: failed program was:" >&5
21113 sed 's/^/| /' conftest.$ac_ext >&5
21114
21115 ac_cv_ipv6_support=no
21116 fi
21117 rm -f conftest.err conftest.$ac_objext \
21118       conftest$ac_exeext conftest.$ac_ext
21119 fi
21120 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21121 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21122
21123 if test "$ac_cv_ipv6_support" = yes; then
21124
21125 cat >>confdefs.h <<\_ACEOF
21126 #define HAVE_IPV6 1
21127 _ACEOF
21128
21129 fi
21130
21131
21132
21133
21134 for ac_func in strftime
21135 do
21136 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21137 echo "$as_me:$LINENO: checking for $ac_func" >&5
21138 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21139 if eval "test \"\${$as_ac_var+set}\" = set"; then
21140   echo $ECHO_N "(cached) $ECHO_C" >&6
21141 else
21142   cat >conftest.$ac_ext <<_ACEOF
21143 /* confdefs.h.  */
21144 _ACEOF
21145 cat confdefs.h >>conftest.$ac_ext
21146 cat >>conftest.$ac_ext <<_ACEOF
21147 /* end confdefs.h.  */
21148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21149    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21150 #define $ac_func innocuous_$ac_func
21151
21152 /* System header to define __stub macros and hopefully few prototypes,
21153     which can conflict with char $ac_func (); below.
21154     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21155     <limits.h> exists even on freestanding compilers.  */
21156
21157 #ifdef __STDC__
21158 # include <limits.h>
21159 #else
21160 # include <assert.h>
21161 #endif
21162
21163 #undef $ac_func
21164
21165 /* Override any gcc2 internal prototype to avoid an error.  */
21166 #ifdef __cplusplus
21167 extern "C"
21168 {
21169 #endif
21170 /* We use char because int might match the return type of a gcc2
21171    builtin and then its argument prototype would still apply.  */
21172 char $ac_func ();
21173 /* The GNU C library defines this for functions which it implements
21174     to always fail with ENOSYS.  Some functions are actually named
21175     something starting with __ and the normal name is an alias.  */
21176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21177 choke me
21178 #else
21179 char (*f) () = $ac_func;
21180 #endif
21181 #ifdef __cplusplus
21182 }
21183 #endif
21184
21185 int
21186 main ()
21187 {
21188 return f != $ac_func;
21189   ;
21190   return 0;
21191 }
21192 _ACEOF
21193 rm -f conftest.$ac_objext conftest$ac_exeext
21194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21195   (eval $ac_link) 2>conftest.er1
21196   ac_status=$?
21197   grep -v '^ *+' conftest.er1 >conftest.err
21198   rm -f conftest.er1
21199   cat conftest.err >&5
21200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201   (exit $ac_status); } &&
21202          { ac_try='test -z "$ac_c_werror_flag"
21203                          || test ! -s conftest.err'
21204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21205   (eval $ac_try) 2>&5
21206   ac_status=$?
21207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21208   (exit $ac_status); }; } &&
21209          { ac_try='test -s conftest$ac_exeext'
21210   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211   (eval $ac_try) 2>&5
21212   ac_status=$?
21213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214   (exit $ac_status); }; }; then
21215   eval "$as_ac_var=yes"
21216 else
21217   echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21219
21220 eval "$as_ac_var=no"
21221 fi
21222 rm -f conftest.err conftest.$ac_objext \
21223       conftest$ac_exeext conftest.$ac_ext
21224 fi
21225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21226 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21227 if test `eval echo '${'$as_ac_var'}'` = yes; then
21228   cat >>confdefs.h <<_ACEOF
21229 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21230 _ACEOF
21231
21232 else
21233   # strftime is in -lintl on SCO UNIX.
21234 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21235 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21236 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21237   echo $ECHO_N "(cached) $ECHO_C" >&6
21238 else
21239   ac_check_lib_save_LIBS=$LIBS
21240 LIBS="-lintl  $LIBS"
21241 cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h.  */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h.  */
21247
21248 /* Override any gcc2 internal prototype to avoid an error.  */
21249 #ifdef __cplusplus
21250 extern "C"
21251 #endif
21252 /* We use char because int might match the return type of a gcc2
21253    builtin and then its argument prototype would still apply.  */
21254 char strftime ();
21255 int
21256 main ()
21257 {
21258 strftime ();
21259   ;
21260   return 0;
21261 }
21262 _ACEOF
21263 rm -f conftest.$ac_objext conftest$ac_exeext
21264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21265   (eval $ac_link) 2>conftest.er1
21266   ac_status=$?
21267   grep -v '^ *+' conftest.er1 >conftest.err
21268   rm -f conftest.er1
21269   cat conftest.err >&5
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); } &&
21272          { ac_try='test -z "$ac_c_werror_flag"
21273                          || test ! -s conftest.err'
21274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275   (eval $ac_try) 2>&5
21276   ac_status=$?
21277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278   (exit $ac_status); }; } &&
21279          { ac_try='test -s conftest$ac_exeext'
21280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281   (eval $ac_try) 2>&5
21282   ac_status=$?
21283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284   (exit $ac_status); }; }; then
21285   ac_cv_lib_intl_strftime=yes
21286 else
21287   echo "$as_me: failed program was:" >&5
21288 sed 's/^/| /' conftest.$ac_ext >&5
21289
21290 ac_cv_lib_intl_strftime=no
21291 fi
21292 rm -f conftest.err conftest.$ac_objext \
21293       conftest$ac_exeext conftest.$ac_ext
21294 LIBS=$ac_check_lib_save_LIBS
21295 fi
21296 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21297 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21298 if test $ac_cv_lib_intl_strftime = yes; then
21299   cat >>confdefs.h <<\_ACEOF
21300 #define HAVE_STRFTIME 1
21301 _ACEOF
21302
21303 LIBS="-lintl $LIBS"
21304 fi
21305
21306 fi
21307 done
21308
21309
21310 for ac_func in vprintf
21311 do
21312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21313 echo "$as_me:$LINENO: checking for $ac_func" >&5
21314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21315 if eval "test \"\${$as_ac_var+set}\" = set"; then
21316   echo $ECHO_N "(cached) $ECHO_C" >&6
21317 else
21318   cat >conftest.$ac_ext <<_ACEOF
21319 /* confdefs.h.  */
21320 _ACEOF
21321 cat confdefs.h >>conftest.$ac_ext
21322 cat >>conftest.$ac_ext <<_ACEOF
21323 /* end confdefs.h.  */
21324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21325    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21326 #define $ac_func innocuous_$ac_func
21327
21328 /* System header to define __stub macros and hopefully few prototypes,
21329     which can conflict with char $ac_func (); below.
21330     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21331     <limits.h> exists even on freestanding compilers.  */
21332
21333 #ifdef __STDC__
21334 # include <limits.h>
21335 #else
21336 # include <assert.h>
21337 #endif
21338
21339 #undef $ac_func
21340
21341 /* Override any gcc2 internal prototype to avoid an error.  */
21342 #ifdef __cplusplus
21343 extern "C"
21344 {
21345 #endif
21346 /* We use char because int might match the return type of a gcc2
21347    builtin and then its argument prototype would still apply.  */
21348 char $ac_func ();
21349 /* The GNU C library defines this for functions which it implements
21350     to always fail with ENOSYS.  Some functions are actually named
21351     something starting with __ and the normal name is an alias.  */
21352 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21353 choke me
21354 #else
21355 char (*f) () = $ac_func;
21356 #endif
21357 #ifdef __cplusplus
21358 }
21359 #endif
21360
21361 int
21362 main ()
21363 {
21364 return f != $ac_func;
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext conftest$ac_exeext
21370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21371   (eval $ac_link) 2>conftest.er1
21372   ac_status=$?
21373   grep -v '^ *+' conftest.er1 >conftest.err
21374   rm -f conftest.er1
21375   cat conftest.err >&5
21376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377   (exit $ac_status); } &&
21378          { ac_try='test -z "$ac_c_werror_flag"
21379                          || test ! -s conftest.err'
21380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21381   (eval $ac_try) 2>&5
21382   ac_status=$?
21383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384   (exit $ac_status); }; } &&
21385          { ac_try='test -s conftest$ac_exeext'
21386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387   (eval $ac_try) 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); }; }; then
21391   eval "$as_ac_var=yes"
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396 eval "$as_ac_var=no"
21397 fi
21398 rm -f conftest.err conftest.$ac_objext \
21399       conftest$ac_exeext conftest.$ac_ext
21400 fi
21401 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21402 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21403 if test `eval echo '${'$as_ac_var'}'` = yes; then
21404   cat >>confdefs.h <<_ACEOF
21405 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21406 _ACEOF
21407
21408 echo "$as_me:$LINENO: checking for _doprnt" >&5
21409 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21410 if test "${ac_cv_func__doprnt+set}" = set; then
21411   echo $ECHO_N "(cached) $ECHO_C" >&6
21412 else
21413   cat >conftest.$ac_ext <<_ACEOF
21414 /* confdefs.h.  */
21415 _ACEOF
21416 cat confdefs.h >>conftest.$ac_ext
21417 cat >>conftest.$ac_ext <<_ACEOF
21418 /* end confdefs.h.  */
21419 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21421 #define _doprnt innocuous__doprnt
21422
21423 /* System header to define __stub macros and hopefully few prototypes,
21424     which can conflict with char _doprnt (); below.
21425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21426     <limits.h> exists even on freestanding compilers.  */
21427
21428 #ifdef __STDC__
21429 # include <limits.h>
21430 #else
21431 # include <assert.h>
21432 #endif
21433
21434 #undef _doprnt
21435
21436 /* Override any gcc2 internal prototype to avoid an error.  */
21437 #ifdef __cplusplus
21438 extern "C"
21439 {
21440 #endif
21441 /* We use char because int might match the return type of a gcc2
21442    builtin and then its argument prototype would still apply.  */
21443 char _doprnt ();
21444 /* The GNU C library defines this for functions which it implements
21445     to always fail with ENOSYS.  Some functions are actually named
21446     something starting with __ and the normal name is an alias.  */
21447 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21448 choke me
21449 #else
21450 char (*f) () = _doprnt;
21451 #endif
21452 #ifdef __cplusplus
21453 }
21454 #endif
21455
21456 int
21457 main ()
21458 {
21459 return f != _doprnt;
21460   ;
21461   return 0;
21462 }
21463 _ACEOF
21464 rm -f conftest.$ac_objext conftest$ac_exeext
21465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21466   (eval $ac_link) 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } &&
21473          { ac_try='test -z "$ac_c_werror_flag"
21474                          || test ! -s conftest.err'
21475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21476   (eval $ac_try) 2>&5
21477   ac_status=$?
21478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21479   (exit $ac_status); }; } &&
21480          { ac_try='test -s conftest$ac_exeext'
21481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21482   (eval $ac_try) 2>&5
21483   ac_status=$?
21484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21485   (exit $ac_status); }; }; then
21486   ac_cv_func__doprnt=yes
21487 else
21488   echo "$as_me: failed program was:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21490
21491 ac_cv_func__doprnt=no
21492 fi
21493 rm -f conftest.err conftest.$ac_objext \
21494       conftest$ac_exeext conftest.$ac_ext
21495 fi
21496 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21497 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21498 if test $ac_cv_func__doprnt = yes; then
21499
21500 cat >>confdefs.h <<\_ACEOF
21501 #define HAVE_DOPRNT 1
21502 _ACEOF
21503
21504 fi
21505
21506 fi
21507 done
21508
21509
21510 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21511 # for constant arguments.  Useless!
21512 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21513 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21514 if test "${ac_cv_working_alloca_h+set}" = set; then
21515   echo $ECHO_N "(cached) $ECHO_C" >&6
21516 else
21517   cat >conftest.$ac_ext <<_ACEOF
21518 /* confdefs.h.  */
21519 _ACEOF
21520 cat confdefs.h >>conftest.$ac_ext
21521 cat >>conftest.$ac_ext <<_ACEOF
21522 /* end confdefs.h.  */
21523 #include <alloca.h>
21524 int
21525 main ()
21526 {
21527 char *p = (char *) alloca (2 * sizeof (int));
21528   ;
21529   return 0;
21530 }
21531 _ACEOF
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21534   (eval $ac_link) 2>conftest.er1
21535   ac_status=$?
21536   grep -v '^ *+' conftest.er1 >conftest.err
21537   rm -f conftest.er1
21538   cat conftest.err >&5
21539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540   (exit $ac_status); } &&
21541          { ac_try='test -z "$ac_c_werror_flag"
21542                          || test ! -s conftest.err'
21543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544   (eval $ac_try) 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; } &&
21548          { ac_try='test -s conftest$ac_exeext'
21549   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550   (eval $ac_try) 2>&5
21551   ac_status=$?
21552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553   (exit $ac_status); }; }; then
21554   ac_cv_working_alloca_h=yes
21555 else
21556   echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21558
21559 ac_cv_working_alloca_h=no
21560 fi
21561 rm -f conftest.err conftest.$ac_objext \
21562       conftest$ac_exeext conftest.$ac_ext
21563 fi
21564 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21565 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21566 if test $ac_cv_working_alloca_h = yes; then
21567
21568 cat >>confdefs.h <<\_ACEOF
21569 #define HAVE_ALLOCA_H 1
21570 _ACEOF
21571
21572 fi
21573
21574 echo "$as_me:$LINENO: checking for alloca" >&5
21575 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21576 if test "${ac_cv_func_alloca_works+set}" = set; then
21577   echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579   cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h.  */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h.  */
21585 #ifdef __GNUC__
21586 # define alloca __builtin_alloca
21587 #else
21588 # ifdef _MSC_VER
21589 #  include <malloc.h>
21590 #  define alloca _alloca
21591 # else
21592 #  if HAVE_ALLOCA_H
21593 #   include <alloca.h>
21594 #  else
21595 #   ifdef _AIX
21596  #pragma alloca
21597 #   else
21598 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21599 char *alloca ();
21600 #    endif
21601 #   endif
21602 #  endif
21603 # endif
21604 #endif
21605
21606 int
21607 main ()
21608 {
21609 char *p = (char *) alloca (1);
21610   ;
21611   return 0;
21612 }
21613 _ACEOF
21614 rm -f conftest.$ac_objext conftest$ac_exeext
21615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21616   (eval $ac_link) 2>conftest.er1
21617   ac_status=$?
21618   grep -v '^ *+' conftest.er1 >conftest.err
21619   rm -f conftest.er1
21620   cat conftest.err >&5
21621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622   (exit $ac_status); } &&
21623          { ac_try='test -z "$ac_c_werror_flag"
21624                          || test ! -s conftest.err'
21625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626   (eval $ac_try) 2>&5
21627   ac_status=$?
21628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629   (exit $ac_status); }; } &&
21630          { ac_try='test -s conftest$ac_exeext'
21631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21632   (eval $ac_try) 2>&5
21633   ac_status=$?
21634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21635   (exit $ac_status); }; }; then
21636   ac_cv_func_alloca_works=yes
21637 else
21638   echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_cv_func_alloca_works=no
21642 fi
21643 rm -f conftest.err conftest.$ac_objext \
21644       conftest$ac_exeext conftest.$ac_ext
21645 fi
21646 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21647 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21648
21649 if test $ac_cv_func_alloca_works = yes; then
21650
21651 cat >>confdefs.h <<\_ACEOF
21652 #define HAVE_ALLOCA 1
21653 _ACEOF
21654
21655 else
21656   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21657 # that cause trouble.  Some versions do not even contain alloca or
21658 # contain a buggy version.  If you still want to use their alloca,
21659 # use ar to extract alloca.o from them instead of compiling alloca.c.
21660
21661 ALLOCA=alloca.$ac_objext
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define C_ALLOCA 1
21665 _ACEOF
21666
21667
21668 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21669 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21670 if test "${ac_cv_os_cray+set}" = set; then
21671   echo $ECHO_N "(cached) $ECHO_C" >&6
21672 else
21673   cat >conftest.$ac_ext <<_ACEOF
21674 /* confdefs.h.  */
21675 _ACEOF
21676 cat confdefs.h >>conftest.$ac_ext
21677 cat >>conftest.$ac_ext <<_ACEOF
21678 /* end confdefs.h.  */
21679 #if defined(CRAY) && ! defined(CRAY2)
21680 webecray
21681 #else
21682 wenotbecray
21683 #endif
21684
21685 _ACEOF
21686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21687   $EGREP "webecray" >/dev/null 2>&1; then
21688   ac_cv_os_cray=yes
21689 else
21690   ac_cv_os_cray=no
21691 fi
21692 rm -f conftest*
21693
21694 fi
21695 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21696 echo "${ECHO_T}$ac_cv_os_cray" >&6
21697 if test $ac_cv_os_cray = yes; then
21698   for ac_func in _getb67 GETB67 getb67; do
21699     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21700 echo "$as_me:$LINENO: checking for $ac_func" >&5
21701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21702 if eval "test \"\${$as_ac_var+set}\" = set"; then
21703   echo $ECHO_N "(cached) $ECHO_C" >&6
21704 else
21705   cat >conftest.$ac_ext <<_ACEOF
21706 /* confdefs.h.  */
21707 _ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h.  */
21711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21712    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21713 #define $ac_func innocuous_$ac_func
21714
21715 /* System header to define __stub macros and hopefully few prototypes,
21716     which can conflict with char $ac_func (); below.
21717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21718     <limits.h> exists even on freestanding compilers.  */
21719
21720 #ifdef __STDC__
21721 # include <limits.h>
21722 #else
21723 # include <assert.h>
21724 #endif
21725
21726 #undef $ac_func
21727
21728 /* Override any gcc2 internal prototype to avoid an error.  */
21729 #ifdef __cplusplus
21730 extern "C"
21731 {
21732 #endif
21733 /* We use char because int might match the return type of a gcc2
21734    builtin and then its argument prototype would still apply.  */
21735 char $ac_func ();
21736 /* The GNU C library defines this for functions which it implements
21737     to always fail with ENOSYS.  Some functions are actually named
21738     something starting with __ and the normal name is an alias.  */
21739 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21740 choke me
21741 #else
21742 char (*f) () = $ac_func;
21743 #endif
21744 #ifdef __cplusplus
21745 }
21746 #endif
21747
21748 int
21749 main ()
21750 {
21751 return f != $ac_func;
21752   ;
21753   return 0;
21754 }
21755 _ACEOF
21756 rm -f conftest.$ac_objext conftest$ac_exeext
21757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21758   (eval $ac_link) 2>conftest.er1
21759   ac_status=$?
21760   grep -v '^ *+' conftest.er1 >conftest.err
21761   rm -f conftest.er1
21762   cat conftest.err >&5
21763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764   (exit $ac_status); } &&
21765          { ac_try='test -z "$ac_c_werror_flag"
21766                          || test ! -s conftest.err'
21767   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768   (eval $ac_try) 2>&5
21769   ac_status=$?
21770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); }; } &&
21772          { ac_try='test -s conftest$ac_exeext'
21773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21774   (eval $ac_try) 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; }; then
21778   eval "$as_ac_var=yes"
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783 eval "$as_ac_var=no"
21784 fi
21785 rm -f conftest.err conftest.$ac_objext \
21786       conftest$ac_exeext conftest.$ac_ext
21787 fi
21788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21790 if test `eval echo '${'$as_ac_var'}'` = yes; then
21791
21792 cat >>confdefs.h <<_ACEOF
21793 #define CRAY_STACKSEG_END $ac_func
21794 _ACEOF
21795
21796     break
21797 fi
21798
21799   done
21800 fi
21801
21802 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21803 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21804 if test "${ac_cv_c_stack_direction+set}" = set; then
21805   echo $ECHO_N "(cached) $ECHO_C" >&6
21806 else
21807   if test "$cross_compiling" = yes; then
21808   ac_cv_c_stack_direction=0
21809 else
21810   cat >conftest.$ac_ext <<_ACEOF
21811 /* confdefs.h.  */
21812 _ACEOF
21813 cat confdefs.h >>conftest.$ac_ext
21814 cat >>conftest.$ac_ext <<_ACEOF
21815 /* end confdefs.h.  */
21816 int
21817 find_stack_direction ()
21818 {
21819   static char *addr = 0;
21820   auto char dummy;
21821   if (addr == 0)
21822     {
21823       addr = &dummy;
21824       return find_stack_direction ();
21825     }
21826   else
21827     return (&dummy > addr) ? 1 : -1;
21828 }
21829
21830 int
21831 main ()
21832 {
21833   exit (find_stack_direction () < 0);
21834 }
21835 _ACEOF
21836 rm -f conftest$ac_exeext
21837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21838   (eval $ac_link) 2>&5
21839   ac_status=$?
21840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843   (eval $ac_try) 2>&5
21844   ac_status=$?
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); }; }; then
21847   ac_cv_c_stack_direction=1
21848 else
21849   echo "$as_me: program exited with status $ac_status" >&5
21850 echo "$as_me: failed program was:" >&5
21851 sed 's/^/| /' conftest.$ac_ext >&5
21852
21853 ( exit $ac_status )
21854 ac_cv_c_stack_direction=-1
21855 fi
21856 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21857 fi
21858 fi
21859 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21860 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21861
21862 cat >>confdefs.h <<_ACEOF
21863 #define STACK_DIRECTION $ac_cv_c_stack_direction
21864 _ACEOF
21865
21866
21867 fi
21868
21869 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21870 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21871 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21872 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21873   echo $ECHO_N "(cached) $ECHO_C" >&6
21874 else
21875   ac_check_lib_save_LIBS=$LIBS
21876 LIBS="-lsun  $LIBS"
21877 cat >conftest.$ac_ext <<_ACEOF
21878 /* confdefs.h.  */
21879 _ACEOF
21880 cat confdefs.h >>conftest.$ac_ext
21881 cat >>conftest.$ac_ext <<_ACEOF
21882 /* end confdefs.h.  */
21883
21884 /* Override any gcc2 internal prototype to avoid an error.  */
21885 #ifdef __cplusplus
21886 extern "C"
21887 #endif
21888 /* We use char because int might match the return type of a gcc2
21889    builtin and then its argument prototype would still apply.  */
21890 char getmntent ();
21891 int
21892 main ()
21893 {
21894 getmntent ();
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 rm -f conftest.$ac_objext conftest$ac_exeext
21900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21901   (eval $ac_link) 2>conftest.er1
21902   ac_status=$?
21903   grep -v '^ *+' conftest.er1 >conftest.err
21904   rm -f conftest.er1
21905   cat conftest.err >&5
21906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907   (exit $ac_status); } &&
21908          { ac_try='test -z "$ac_c_werror_flag"
21909                          || test ! -s conftest.err'
21910   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21911   (eval $ac_try) 2>&5
21912   ac_status=$?
21913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914   (exit $ac_status); }; } &&
21915          { ac_try='test -s conftest$ac_exeext'
21916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21917   (eval $ac_try) 2>&5
21918   ac_status=$?
21919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920   (exit $ac_status); }; }; then
21921   ac_cv_lib_sun_getmntent=yes
21922 else
21923   echo "$as_me: failed program was:" >&5
21924 sed 's/^/| /' conftest.$ac_ext >&5
21925
21926 ac_cv_lib_sun_getmntent=no
21927 fi
21928 rm -f conftest.err conftest.$ac_objext \
21929       conftest$ac_exeext conftest.$ac_ext
21930 LIBS=$ac_check_lib_save_LIBS
21931 fi
21932 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21933 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21934 if test $ac_cv_lib_sun_getmntent = yes; then
21935   LIBS="-lsun $LIBS"
21936 else
21937   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21938 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21939 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21940   echo $ECHO_N "(cached) $ECHO_C" >&6
21941 else
21942   ac_check_lib_save_LIBS=$LIBS
21943 LIBS="-lseq  $LIBS"
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950
21951 /* Override any gcc2 internal prototype to avoid an error.  */
21952 #ifdef __cplusplus
21953 extern "C"
21954 #endif
21955 /* We use char because int might match the return type of a gcc2
21956    builtin and then its argument prototype would still apply.  */
21957 char getmntent ();
21958 int
21959 main ()
21960 {
21961 getmntent ();
21962   ;
21963   return 0;
21964 }
21965 _ACEOF
21966 rm -f conftest.$ac_objext conftest$ac_exeext
21967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21968   (eval $ac_link) 2>conftest.er1
21969   ac_status=$?
21970   grep -v '^ *+' conftest.er1 >conftest.err
21971   rm -f conftest.er1
21972   cat conftest.err >&5
21973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21974   (exit $ac_status); } &&
21975          { ac_try='test -z "$ac_c_werror_flag"
21976                          || test ! -s conftest.err'
21977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21978   (eval $ac_try) 2>&5
21979   ac_status=$?
21980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21981   (exit $ac_status); }; } &&
21982          { ac_try='test -s conftest$ac_exeext'
21983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21984   (eval $ac_try) 2>&5
21985   ac_status=$?
21986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987   (exit $ac_status); }; }; then
21988   ac_cv_lib_seq_getmntent=yes
21989 else
21990   echo "$as_me: failed program was:" >&5
21991 sed 's/^/| /' conftest.$ac_ext >&5
21992
21993 ac_cv_lib_seq_getmntent=no
21994 fi
21995 rm -f conftest.err conftest.$ac_objext \
21996       conftest$ac_exeext conftest.$ac_ext
21997 LIBS=$ac_check_lib_save_LIBS
21998 fi
21999 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
22000 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
22001 if test $ac_cv_lib_seq_getmntent = yes; then
22002   LIBS="-lseq $LIBS"
22003 else
22004   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
22005 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
22006 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
22007   echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009   ac_check_lib_save_LIBS=$LIBS
22010 LIBS="-lgen  $LIBS"
22011 cat >conftest.$ac_ext <<_ACEOF
22012 /* confdefs.h.  */
22013 _ACEOF
22014 cat confdefs.h >>conftest.$ac_ext
22015 cat >>conftest.$ac_ext <<_ACEOF
22016 /* end confdefs.h.  */
22017
22018 /* Override any gcc2 internal prototype to avoid an error.  */
22019 #ifdef __cplusplus
22020 extern "C"
22021 #endif
22022 /* We use char because int might match the return type of a gcc2
22023    builtin and then its argument prototype would still apply.  */
22024 char getmntent ();
22025 int
22026 main ()
22027 {
22028 getmntent ();
22029   ;
22030   return 0;
22031 }
22032 _ACEOF
22033 rm -f conftest.$ac_objext conftest$ac_exeext
22034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22035   (eval $ac_link) 2>conftest.er1
22036   ac_status=$?
22037   grep -v '^ *+' conftest.er1 >conftest.err
22038   rm -f conftest.er1
22039   cat conftest.err >&5
22040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22041   (exit $ac_status); } &&
22042          { ac_try='test -z "$ac_c_werror_flag"
22043                          || test ! -s conftest.err'
22044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045   (eval $ac_try) 2>&5
22046   ac_status=$?
22047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048   (exit $ac_status); }; } &&
22049          { ac_try='test -s conftest$ac_exeext'
22050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051   (eval $ac_try) 2>&5
22052   ac_status=$?
22053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054   (exit $ac_status); }; }; then
22055   ac_cv_lib_gen_getmntent=yes
22056 else
22057   echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22059
22060 ac_cv_lib_gen_getmntent=no
22061 fi
22062 rm -f conftest.err conftest.$ac_objext \
22063       conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22065 fi
22066 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22067 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22068 if test $ac_cv_lib_gen_getmntent = yes; then
22069   LIBS="-lgen $LIBS"
22070 fi
22071
22072 fi
22073
22074 fi
22075
22076
22077 for ac_func in getmntent
22078 do
22079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22080 echo "$as_me:$LINENO: checking for $ac_func" >&5
22081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22082 if eval "test \"\${$as_ac_var+set}\" = set"; then
22083   echo $ECHO_N "(cached) $ECHO_C" >&6
22084 else
22085   cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22092    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22093 #define $ac_func innocuous_$ac_func
22094
22095 /* System header to define __stub macros and hopefully few prototypes,
22096     which can conflict with char $ac_func (); below.
22097     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22098     <limits.h> exists even on freestanding compilers.  */
22099
22100 #ifdef __STDC__
22101 # include <limits.h>
22102 #else
22103 # include <assert.h>
22104 #endif
22105
22106 #undef $ac_func
22107
22108 /* Override any gcc2 internal prototype to avoid an error.  */
22109 #ifdef __cplusplus
22110 extern "C"
22111 {
22112 #endif
22113 /* We use char because int might match the return type of a gcc2
22114    builtin and then its argument prototype would still apply.  */
22115 char $ac_func ();
22116 /* The GNU C library defines this for functions which it implements
22117     to always fail with ENOSYS.  Some functions are actually named
22118     something starting with __ and the normal name is an alias.  */
22119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22120 choke me
22121 #else
22122 char (*f) () = $ac_func;
22123 #endif
22124 #ifdef __cplusplus
22125 }
22126 #endif
22127
22128 int
22129 main ()
22130 {
22131 return f != $ac_func;
22132   ;
22133   return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext conftest$ac_exeext
22137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22138   (eval $ac_link) 2>conftest.er1
22139   ac_status=$?
22140   grep -v '^ *+' conftest.er1 >conftest.err
22141   rm -f conftest.er1
22142   cat conftest.err >&5
22143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22144   (exit $ac_status); } &&
22145          { ac_try='test -z "$ac_c_werror_flag"
22146                          || test ! -s conftest.err'
22147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22148   (eval $ac_try) 2>&5
22149   ac_status=$?
22150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151   (exit $ac_status); }; } &&
22152          { ac_try='test -s conftest$ac_exeext'
22153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22154   (eval $ac_try) 2>&5
22155   ac_status=$?
22156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157   (exit $ac_status); }; }; then
22158   eval "$as_ac_var=yes"
22159 else
22160   echo "$as_me: failed program was:" >&5
22161 sed 's/^/| /' conftest.$ac_ext >&5
22162
22163 eval "$as_ac_var=no"
22164 fi
22165 rm -f conftest.err conftest.$ac_objext \
22166       conftest$ac_exeext conftest.$ac_ext
22167 fi
22168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22170 if test `eval echo '${'$as_ac_var'}'` = yes; then
22171   cat >>confdefs.h <<_ACEOF
22172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22173 _ACEOF
22174
22175 fi
22176 done
22177
22178
22179 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22180 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22181 if test "${ac_cv_func_closedir_void+set}" = set; then
22182   echo $ECHO_N "(cached) $ECHO_C" >&6
22183 else
22184   if test "$cross_compiling" = yes; then
22185   ac_cv_func_closedir_void=yes
22186 else
22187   cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h.  */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h.  */
22193 $ac_includes_default
22194 #include <$ac_header_dirent>
22195 #ifndef __cplusplus
22196 int closedir ();
22197 #endif
22198
22199 int
22200 main ()
22201 {
22202 exit (closedir (opendir (".")) != 0);
22203   ;
22204   return 0;
22205 }
22206 _ACEOF
22207 rm -f conftest$ac_exeext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22209   (eval $ac_link) 2>&5
22210   ac_status=$?
22211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22214   (eval $ac_try) 2>&5
22215   ac_status=$?
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); }; }; then
22218   ac_cv_func_closedir_void=no
22219 else
22220   echo "$as_me: program exited with status $ac_status" >&5
22221 echo "$as_me: failed program was:" >&5
22222 sed 's/^/| /' conftest.$ac_ext >&5
22223
22224 ( exit $ac_status )
22225 ac_cv_func_closedir_void=yes
22226 fi
22227 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22228 fi
22229 fi
22230 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22231 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22232 if test $ac_cv_func_closedir_void = yes; then
22233
22234 cat >>confdefs.h <<\_ACEOF
22235 #define CLOSEDIR_VOID 1
22236 _ACEOF
22237
22238 fi
22239
22240 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22241 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22242 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22243   echo $ECHO_N "(cached) $ECHO_C" >&6
22244 else
22245   if test "$cross_compiling" = yes; then
22246   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22247 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22248    { (exit 1); exit 1; }; }
22249 else
22250   cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256 #if HAVE_UNISTD_H
22257 # include <unistd.h>
22258 #endif
22259
22260 int
22261 main ()
22262 {
22263 /* If this system has a BSD-style setpgrp which takes arguments,
22264   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22265   exit successfully. */
22266   exit (setpgrp (1,1) == -1 ? 0 : 1);
22267   ;
22268   return 0;
22269 }
22270 _ACEOF
22271 rm -f conftest$ac_exeext
22272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22273   (eval $ac_link) 2>&5
22274   ac_status=$?
22275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22276   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22277   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278   (eval $ac_try) 2>&5
22279   ac_status=$?
22280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281   (exit $ac_status); }; }; then
22282   ac_cv_func_setpgrp_void=no
22283 else
22284   echo "$as_me: program exited with status $ac_status" >&5
22285 echo "$as_me: failed program was:" >&5
22286 sed 's/^/| /' conftest.$ac_ext >&5
22287
22288 ( exit $ac_status )
22289 ac_cv_func_setpgrp_void=yes
22290 fi
22291 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22292 fi
22293 fi
22294 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22295 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22296 if test $ac_cv_func_setpgrp_void = yes; then
22297
22298 cat >>confdefs.h <<\_ACEOF
22299 #define SETPGRP_VOID 1
22300 _ACEOF
22301
22302 fi
22303                       # AC_FUNC_FNMATCH    dnl use local version
22304
22305
22306 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22307 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22308 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22309   echo $ECHO_N "(cached) $ECHO_C" >&6
22310 else
22311   ac_check_lib_save_LIBS=$LIBS
22312 LIBS="-lxpg4  $LIBS"
22313 cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319
22320 /* Override any gcc2 internal prototype to avoid an error.  */
22321 #ifdef __cplusplus
22322 extern "C"
22323 #endif
22324 /* We use char because int might match the return type of a gcc2
22325    builtin and then its argument prototype would still apply.  */
22326 char setlocale ();
22327 int
22328 main ()
22329 {
22330 setlocale ();
22331   ;
22332   return 0;
22333 }
22334 _ACEOF
22335 rm -f conftest.$ac_objext conftest$ac_exeext
22336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22337   (eval $ac_link) 2>conftest.er1
22338   ac_status=$?
22339   grep -v '^ *+' conftest.er1 >conftest.err
22340   rm -f conftest.er1
22341   cat conftest.err >&5
22342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22343   (exit $ac_status); } &&
22344          { ac_try='test -z "$ac_c_werror_flag"
22345                          || test ! -s conftest.err'
22346   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22347   (eval $ac_try) 2>&5
22348   ac_status=$?
22349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350   (exit $ac_status); }; } &&
22351          { ac_try='test -s conftest$ac_exeext'
22352   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353   (eval $ac_try) 2>&5
22354   ac_status=$?
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); }; }; then
22357   ac_cv_lib_xpg4_setlocale=yes
22358 else
22359   echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362 ac_cv_lib_xpg4_setlocale=no
22363 fi
22364 rm -f conftest.err conftest.$ac_objext \
22365       conftest$ac_exeext conftest.$ac_ext
22366 LIBS=$ac_check_lib_save_LIBS
22367 fi
22368 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22369 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22370 if test $ac_cv_lib_xpg4_setlocale = yes; then
22371   LIBS="$LIBS -lxpg4"
22372 fi
22373
22374
22375
22376
22377 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22378 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22379 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22380   echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382   ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lsun  $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390
22391 /* Override any gcc2 internal prototype to avoid an error.  */
22392 #ifdef __cplusplus
22393 extern "C"
22394 #endif
22395 /* We use char because int might match the return type of a gcc2
22396    builtin and then its argument prototype would still apply.  */
22397 char getpwnam ();
22398 int
22399 main ()
22400 {
22401 getpwnam ();
22402   ;
22403   return 0;
22404 }
22405 _ACEOF
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22408   (eval $ac_link) 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } &&
22415          { ac_try='test -z "$ac_c_werror_flag"
22416                          || test ! -s conftest.err'
22417   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22418   (eval $ac_try) 2>&5
22419   ac_status=$?
22420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421   (exit $ac_status); }; } &&
22422          { ac_try='test -s conftest$ac_exeext'
22423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424   (eval $ac_try) 2>&5
22425   ac_status=$?
22426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427   (exit $ac_status); }; }; then
22428   ac_cv_lib_sun_getpwnam=yes
22429 else
22430   echo "$as_me: failed program was:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22432
22433 ac_cv_lib_sun_getpwnam=no
22434 fi
22435 rm -f conftest.err conftest.$ac_objext \
22436       conftest$ac_exeext conftest.$ac_ext
22437 LIBS=$ac_check_lib_save_LIBS
22438 fi
22439 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22440 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22441 if test $ac_cv_lib_sun_getpwnam = yes; then
22442   cat >>confdefs.h <<_ACEOF
22443 #define HAVE_LIBSUN 1
22444 _ACEOF
22445
22446   LIBS="-lsun $LIBS"
22447
22448 fi
22449
22450
22451
22452 for ac_header in zlib.h
22453 do
22454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22456   echo "$as_me:$LINENO: checking for $ac_header" >&5
22457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22459   echo $ECHO_N "(cached) $ECHO_C" >&6
22460 fi
22461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22462 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22463 else
22464   # Is the header compilable?
22465 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22467 cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h.  */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h.  */
22473 $ac_includes_default
22474 #include <$ac_header>
22475 _ACEOF
22476 rm -f conftest.$ac_objext
22477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22478   (eval $ac_compile) 2>conftest.er1
22479   ac_status=$?
22480   grep -v '^ *+' conftest.er1 >conftest.err
22481   rm -f conftest.er1
22482   cat conftest.err >&5
22483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22484   (exit $ac_status); } &&
22485          { ac_try='test -z "$ac_c_werror_flag"
22486                          || test ! -s conftest.err'
22487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22488   (eval $ac_try) 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; } &&
22492          { ac_try='test -s conftest.$ac_objext'
22493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494   (eval $ac_try) 2>&5
22495   ac_status=$?
22496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497   (exit $ac_status); }; }; then
22498   ac_header_compiler=yes
22499 else
22500   echo "$as_me: failed program was:" >&5
22501 sed 's/^/| /' conftest.$ac_ext >&5
22502
22503 ac_header_compiler=no
22504 fi
22505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22507 echo "${ECHO_T}$ac_header_compiler" >&6
22508
22509 # Is the header present?
22510 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22511 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22512 cat >conftest.$ac_ext <<_ACEOF
22513 /* confdefs.h.  */
22514 _ACEOF
22515 cat confdefs.h >>conftest.$ac_ext
22516 cat >>conftest.$ac_ext <<_ACEOF
22517 /* end confdefs.h.  */
22518 #include <$ac_header>
22519 _ACEOF
22520 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22521   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22522   ac_status=$?
22523   grep -v '^ *+' conftest.er1 >conftest.err
22524   rm -f conftest.er1
22525   cat conftest.err >&5
22526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527   (exit $ac_status); } >/dev/null; then
22528   if test -s conftest.err; then
22529     ac_cpp_err=$ac_c_preproc_warn_flag
22530     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22531   else
22532     ac_cpp_err=
22533   fi
22534 else
22535   ac_cpp_err=yes
22536 fi
22537 if test -z "$ac_cpp_err"; then
22538   ac_header_preproc=yes
22539 else
22540   echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22542
22543   ac_header_preproc=no
22544 fi
22545 rm -f conftest.err conftest.$ac_ext
22546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22547 echo "${ECHO_T}$ac_header_preproc" >&6
22548
22549 # So?  What about this header?
22550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22551   yes:no: )
22552     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22553 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22555 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22556     ac_header_preproc=yes
22557     ;;
22558   no:yes:* )
22559     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22560 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22561     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22562 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22563     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22564 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22565     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22566 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22567     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22568 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22569     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22570 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22571     (
22572       cat <<\_ASBOX
22573 ## ------------------------------------------ ##
22574 ## Report this to the AC_PACKAGE_NAME lists.  ##
22575 ## ------------------------------------------ ##
22576 _ASBOX
22577     ) |
22578       sed "s/^/$as_me: WARNING:     /" >&2
22579     ;;
22580 esac
22581 echo "$as_me:$LINENO: checking for $ac_header" >&5
22582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22583 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22584   echo $ECHO_N "(cached) $ECHO_C" >&6
22585 else
22586   eval "$as_ac_Header=\$ac_header_preproc"
22587 fi
22588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22590
22591 fi
22592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22593   cat >>confdefs.h <<_ACEOF
22594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22595 _ACEOF
22596
22597 fi
22598
22599 done
22600
22601 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22602 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22603 if test "${ac_cv_lib_z_deflate+set}" = set; then
22604   echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606   ac_check_lib_save_LIBS=$LIBS
22607 LIBS="-lz  $LIBS"
22608 cat >conftest.$ac_ext <<_ACEOF
22609 /* confdefs.h.  */
22610 _ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h.  */
22614
22615 /* Override any gcc2 internal prototype to avoid an error.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 #endif
22619 /* We use char because int might match the return type of a gcc2
22620    builtin and then its argument prototype would still apply.  */
22621 char deflate ();
22622 int
22623 main ()
22624 {
22625 deflate ();
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22632   (eval $ac_link) 2>conftest.er1
22633   ac_status=$?
22634   grep -v '^ *+' conftest.er1 >conftest.err
22635   rm -f conftest.er1
22636   cat conftest.err >&5
22637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22638   (exit $ac_status); } &&
22639          { ac_try='test -z "$ac_c_werror_flag"
22640                          || test ! -s conftest.err'
22641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642   (eval $ac_try) 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; } &&
22646          { ac_try='test -s conftest$ac_exeext'
22647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22648   (eval $ac_try) 2>&5
22649   ac_status=$?
22650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651   (exit $ac_status); }; }; then
22652   ac_cv_lib_z_deflate=yes
22653 else
22654   echo "$as_me: failed program was:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22656
22657 ac_cv_lib_z_deflate=no
22658 fi
22659 rm -f conftest.err conftest.$ac_objext \
22660       conftest$ac_exeext conftest.$ac_ext
22661 LIBS=$ac_check_lib_save_LIBS
22662 fi
22663 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22664 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22665 if test $ac_cv_lib_z_deflate = yes; then
22666   FDLIBS="-lz"
22667 fi
22668
22669 have_zlib=no
22670 if test x$FDLIBS = x-lz; then
22671   cat >>confdefs.h <<\_ACEOF
22672 #define HAVE_LIBZ 1
22673 _ACEOF
22674
22675   have_zlib=yes
22676 fi
22677
22678 have_acl=no
22679 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22680   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22681 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22682 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22683   echo $ECHO_N "(cached) $ECHO_C" >&6
22684 fi
22685 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22686 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22687 else
22688   # Is the header compilable?
22689 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22690 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h.  */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
22696 /* end confdefs.h.  */
22697 $ac_includes_default
22698 #include <sys/acl.h>
22699 _ACEOF
22700 rm -f conftest.$ac_objext
22701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22702   (eval $ac_compile) 2>conftest.er1
22703   ac_status=$?
22704   grep -v '^ *+' conftest.er1 >conftest.err
22705   rm -f conftest.er1
22706   cat conftest.err >&5
22707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708   (exit $ac_status); } &&
22709          { ac_try='test -z "$ac_c_werror_flag"
22710                          || test ! -s conftest.err'
22711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712   (eval $ac_try) 2>&5
22713   ac_status=$?
22714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715   (exit $ac_status); }; } &&
22716          { ac_try='test -s conftest.$ac_objext'
22717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718   (eval $ac_try) 2>&5
22719   ac_status=$?
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); }; }; then
22722   ac_header_compiler=yes
22723 else
22724   echo "$as_me: failed program was:" >&5
22725 sed 's/^/| /' conftest.$ac_ext >&5
22726
22727 ac_header_compiler=no
22728 fi
22729 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22731 echo "${ECHO_T}$ac_header_compiler" >&6
22732
22733 # Is the header present?
22734 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22735 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22736 cat >conftest.$ac_ext <<_ACEOF
22737 /* confdefs.h.  */
22738 _ACEOF
22739 cat confdefs.h >>conftest.$ac_ext
22740 cat >>conftest.$ac_ext <<_ACEOF
22741 /* end confdefs.h.  */
22742 #include <sys/acl.h>
22743 _ACEOF
22744 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22745   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22746   ac_status=$?
22747   grep -v '^ *+' conftest.er1 >conftest.err
22748   rm -f conftest.er1
22749   cat conftest.err >&5
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } >/dev/null; then
22752   if test -s conftest.err; then
22753     ac_cpp_err=$ac_c_preproc_warn_flag
22754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22755   else
22756     ac_cpp_err=
22757   fi
22758 else
22759   ac_cpp_err=yes
22760 fi
22761 if test -z "$ac_cpp_err"; then
22762   ac_header_preproc=yes
22763 else
22764   echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767   ac_header_preproc=no
22768 fi
22769 rm -f conftest.err conftest.$ac_ext
22770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22771 echo "${ECHO_T}$ac_header_preproc" >&6
22772
22773 # So?  What about this header?
22774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22775   yes:no: )
22776     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22777 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22778     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22779 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22780     ac_header_preproc=yes
22781     ;;
22782   no:yes:* )
22783     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22784 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22785     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
22786 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
22787     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22788 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22789     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
22790 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22791     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22792 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22793     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22794 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22795     (
22796       cat <<\_ASBOX
22797 ## ------------------------------------------ ##
22798 ## Report this to the AC_PACKAGE_NAME lists.  ##
22799 ## ------------------------------------------ ##
22800 _ASBOX
22801     ) |
22802       sed "s/^/$as_me: WARNING:     /" >&2
22803     ;;
22804 esac
22805 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22806 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22807 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22808   echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810   ac_cv_header_sys_acl_h=$ac_header_preproc
22811 fi
22812 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22813 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22814
22815 fi
22816
22817
22818 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22819 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22820 if test "${ac_cv_func_acl_get_file+set}" = set; then
22821   echo $ECHO_N "(cached) $ECHO_C" >&6
22822 else
22823   cat >conftest.$ac_ext <<_ACEOF
22824 /* confdefs.h.  */
22825 _ACEOF
22826 cat confdefs.h >>conftest.$ac_ext
22827 cat >>conftest.$ac_ext <<_ACEOF
22828 /* end confdefs.h.  */
22829 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22830    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22831 #define acl_get_file innocuous_acl_get_file
22832
22833 /* System header to define __stub macros and hopefully few prototypes,
22834     which can conflict with char acl_get_file (); below.
22835     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22836     <limits.h> exists even on freestanding compilers.  */
22837
22838 #ifdef __STDC__
22839 # include <limits.h>
22840 #else
22841 # include <assert.h>
22842 #endif
22843
22844 #undef acl_get_file
22845
22846 /* Override any gcc2 internal prototype to avoid an error.  */
22847 #ifdef __cplusplus
22848 extern "C"
22849 {
22850 #endif
22851 /* We use char because int might match the return type of a gcc2
22852    builtin and then its argument prototype would still apply.  */
22853 char acl_get_file ();
22854 /* The GNU C library defines this for functions which it implements
22855     to always fail with ENOSYS.  Some functions are actually named
22856     something starting with __ and the normal name is an alias.  */
22857 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22858 choke me
22859 #else
22860 char (*f) () = acl_get_file;
22861 #endif
22862 #ifdef __cplusplus
22863 }
22864 #endif
22865
22866 int
22867 main ()
22868 {
22869 return f != acl_get_file;
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22876   (eval $ac_link) 2>conftest.er1
22877   ac_status=$?
22878   grep -v '^ *+' conftest.er1 >conftest.err
22879   rm -f conftest.er1
22880   cat conftest.err >&5
22881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882   (exit $ac_status); } &&
22883          { ac_try='test -z "$ac_c_werror_flag"
22884                          || test ! -s conftest.err'
22885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886   (eval $ac_try) 2>&5
22887   ac_status=$?
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); }; } &&
22890          { ac_try='test -s conftest$ac_exeext'
22891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892   (eval $ac_try) 2>&5
22893   ac_status=$?
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); }; }; then
22896   ac_cv_func_acl_get_file=yes
22897 else
22898   echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22900
22901 ac_cv_func_acl_get_file=no
22902 fi
22903 rm -f conftest.err conftest.$ac_objext \
22904       conftest$ac_exeext conftest.$ac_ext
22905 fi
22906 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22907 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22908 if test $ac_cv_func_acl_get_file = yes; then
22909   have_acl=yes
22910 else
22911   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22912 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22913 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22914   echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916   ac_check_lib_save_LIBS=$LIBS
22917 LIBS="-lacl  $LIBS"
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h.  */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h.  */
22924
22925 /* Override any gcc2 internal prototype to avoid an error.  */
22926 #ifdef __cplusplus
22927 extern "C"
22928 #endif
22929 /* We use char because int might match the return type of a gcc2
22930    builtin and then its argument prototype would still apply.  */
22931 char acl_get_file ();
22932 int
22933 main ()
22934 {
22935 acl_get_file ();
22936   ;
22937   return 0;
22938 }
22939 _ACEOF
22940 rm -f conftest.$ac_objext conftest$ac_exeext
22941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22942   (eval $ac_link) 2>conftest.er1
22943   ac_status=$?
22944   grep -v '^ *+' conftest.er1 >conftest.err
22945   rm -f conftest.er1
22946   cat conftest.err >&5
22947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948   (exit $ac_status); } &&
22949          { ac_try='test -z "$ac_c_werror_flag"
22950                          || test ! -s conftest.err'
22951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22952   (eval $ac_try) 2>&5
22953   ac_status=$?
22954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955   (exit $ac_status); }; } &&
22956          { ac_try='test -s conftest$ac_exeext'
22957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22958   (eval $ac_try) 2>&5
22959   ac_status=$?
22960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961   (exit $ac_status); }; }; then
22962   ac_cv_lib_acl_acl_get_file=yes
22963 else
22964   echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22966
22967 ac_cv_lib_acl_acl_get_file=no
22968 fi
22969 rm -f conftest.err conftest.$ac_objext \
22970       conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22972 fi
22973 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22974 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22975 if test $ac_cv_lib_acl_acl_get_file = yes; then
22976   have_acl=yes; FDLIBS="-lacl $FDLIBS"
22977 fi
22978
22979
22980 fi
22981
22982 if test $have_acl = yes; then
22983    cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_ACL 1
22985 _ACEOF
22986
22987 fi
22988
22989 PTHREAD_LIB=""
22990 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22991 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22992 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22993   echo $ECHO_N "(cached) $ECHO_C" >&6
22994 else
22995   ac_check_lib_save_LIBS=$LIBS
22996 LIBS="-lpthread  $LIBS"
22997 cat >conftest.$ac_ext <<_ACEOF
22998 /* confdefs.h.  */
22999 _ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h.  */
23003
23004 /* Override any gcc2 internal prototype to avoid an error.  */
23005 #ifdef __cplusplus
23006 extern "C"
23007 #endif
23008 /* We use char because int might match the return type of a gcc2
23009    builtin and then its argument prototype would still apply.  */
23010 char pthread_create ();
23011 int
23012 main ()
23013 {
23014 pthread_create ();
23015   ;
23016   return 0;
23017 }
23018 _ACEOF
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021   (eval $ac_link) 2>conftest.er1
23022   ac_status=$?
23023   grep -v '^ *+' conftest.er1 >conftest.err
23024   rm -f conftest.er1
23025   cat conftest.err >&5
23026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027   (exit $ac_status); } &&
23028          { ac_try='test -z "$ac_c_werror_flag"
23029                          || test ! -s conftest.err'
23030   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031   (eval $ac_try) 2>&5
23032   ac_status=$?
23033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034   (exit $ac_status); }; } &&
23035          { ac_try='test -s conftest$ac_exeext'
23036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037   (eval $ac_try) 2>&5
23038   ac_status=$?
23039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040   (exit $ac_status); }; }; then
23041   ac_cv_lib_pthread_pthread_create=yes
23042 else
23043   echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23045
23046 ac_cv_lib_pthread_pthread_create=no
23047 fi
23048 rm -f conftest.err conftest.$ac_objext \
23049       conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23051 fi
23052 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23053 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23054 if test $ac_cv_lib_pthread_pthread_create = yes; then
23055   PTHREAD_LIB="-lpthread"
23056 else
23057   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23058 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23059 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23060   echo $ECHO_N "(cached) $ECHO_C" >&6
23061 else
23062   ac_check_lib_save_LIBS=$LIBS
23063 LIBS="-lpthreads  $LIBS"
23064 cat >conftest.$ac_ext <<_ACEOF
23065 /* confdefs.h.  */
23066 _ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h.  */
23070
23071 /* Override any gcc2 internal prototype to avoid an error.  */
23072 #ifdef __cplusplus
23073 extern "C"
23074 #endif
23075 /* We use char because int might match the return type of a gcc2
23076    builtin and then its argument prototype would still apply.  */
23077 char pthread_create ();
23078 int
23079 main ()
23080 {
23081 pthread_create ();
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 rm -f conftest.$ac_objext conftest$ac_exeext
23087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23088   (eval $ac_link) 2>conftest.er1
23089   ac_status=$?
23090   grep -v '^ *+' conftest.er1 >conftest.err
23091   rm -f conftest.er1
23092   cat conftest.err >&5
23093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094   (exit $ac_status); } &&
23095          { ac_try='test -z "$ac_c_werror_flag"
23096                          || test ! -s conftest.err'
23097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098   (eval $ac_try) 2>&5
23099   ac_status=$?
23100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101   (exit $ac_status); }; } &&
23102          { ac_try='test -s conftest$ac_exeext'
23103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104   (eval $ac_try) 2>&5
23105   ac_status=$?
23106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107   (exit $ac_status); }; }; then
23108   ac_cv_lib_pthreads_pthread_create=yes
23109 else
23110   echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_cv_lib_pthreads_pthread_create=no
23114 fi
23115 rm -f conftest.err conftest.$ac_objext \
23116       conftest$ac_exeext conftest.$ac_ext
23117 LIBS=$ac_check_lib_save_LIBS
23118 fi
23119 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23120 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23121 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23122   PTHREAD_LIB="-lpthreads"
23123 else
23124   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23125 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23126 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23127   echo $ECHO_N "(cached) $ECHO_C" >&6
23128 else
23129   ac_check_lib_save_LIBS=$LIBS
23130 LIBS="-lc_r  $LIBS"
23131 cat >conftest.$ac_ext <<_ACEOF
23132 /* confdefs.h.  */
23133 _ACEOF
23134 cat confdefs.h >>conftest.$ac_ext
23135 cat >>conftest.$ac_ext <<_ACEOF
23136 /* end confdefs.h.  */
23137
23138 /* Override any gcc2 internal prototype to avoid an error.  */
23139 #ifdef __cplusplus
23140 extern "C"
23141 #endif
23142 /* We use char because int might match the return type of a gcc2
23143    builtin and then its argument prototype would still apply.  */
23144 char pthread_create ();
23145 int
23146 main ()
23147 {
23148 pthread_create ();
23149   ;
23150   return 0;
23151 }
23152 _ACEOF
23153 rm -f conftest.$ac_objext conftest$ac_exeext
23154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23155   (eval $ac_link) 2>conftest.er1
23156   ac_status=$?
23157   grep -v '^ *+' conftest.er1 >conftest.err
23158   rm -f conftest.er1
23159   cat conftest.err >&5
23160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161   (exit $ac_status); } &&
23162          { ac_try='test -z "$ac_c_werror_flag"
23163                          || test ! -s conftest.err'
23164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23165   (eval $ac_try) 2>&5
23166   ac_status=$?
23167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168   (exit $ac_status); }; } &&
23169          { ac_try='test -s conftest$ac_exeext'
23170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23171   (eval $ac_try) 2>&5
23172   ac_status=$?
23173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23174   (exit $ac_status); }; }; then
23175   ac_cv_lib_c_r_pthread_create=yes
23176 else
23177   echo "$as_me: failed program was:" >&5
23178 sed 's/^/| /' conftest.$ac_ext >&5
23179
23180 ac_cv_lib_c_r_pthread_create=no
23181 fi
23182 rm -f conftest.err conftest.$ac_objext \
23183       conftest$ac_exeext conftest.$ac_ext
23184 LIBS=$ac_check_lib_save_LIBS
23185 fi
23186 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23187 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23188 if test $ac_cv_lib_c_r_pthread_create = yes; then
23189   PTHREAD_LIB="-lc_r"
23190 else
23191   echo "$as_me:$LINENO: checking for pthread_create" >&5
23192 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23193 if test "${ac_cv_func_pthread_create+set}" = set; then
23194   echo $ECHO_N "(cached) $ECHO_C" >&6
23195 else
23196   cat >conftest.$ac_ext <<_ACEOF
23197 /* confdefs.h.  */
23198 _ACEOF
23199 cat confdefs.h >>conftest.$ac_ext
23200 cat >>conftest.$ac_ext <<_ACEOF
23201 /* end confdefs.h.  */
23202 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23203    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23204 #define pthread_create innocuous_pthread_create
23205
23206 /* System header to define __stub macros and hopefully few prototypes,
23207     which can conflict with char pthread_create (); below.
23208     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23209     <limits.h> exists even on freestanding compilers.  */
23210
23211 #ifdef __STDC__
23212 # include <limits.h>
23213 #else
23214 # include <assert.h>
23215 #endif
23216
23217 #undef pthread_create
23218
23219 /* Override any gcc2 internal prototype to avoid an error.  */
23220 #ifdef __cplusplus
23221 extern "C"
23222 {
23223 #endif
23224 /* We use char because int might match the return type of a gcc2
23225    builtin and then its argument prototype would still apply.  */
23226 char pthread_create ();
23227 /* The GNU C library defines this for functions which it implements
23228     to always fail with ENOSYS.  Some functions are actually named
23229     something starting with __ and the normal name is an alias.  */
23230 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23231 choke me
23232 #else
23233 char (*f) () = pthread_create;
23234 #endif
23235 #ifdef __cplusplus
23236 }
23237 #endif
23238
23239 int
23240 main ()
23241 {
23242 return f != pthread_create;
23243   ;
23244   return 0;
23245 }
23246 _ACEOF
23247 rm -f conftest.$ac_objext conftest$ac_exeext
23248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23249   (eval $ac_link) 2>conftest.er1
23250   ac_status=$?
23251   grep -v '^ *+' conftest.er1 >conftest.err
23252   rm -f conftest.er1
23253   cat conftest.err >&5
23254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255   (exit $ac_status); } &&
23256          { ac_try='test -z "$ac_c_werror_flag"
23257                          || test ! -s conftest.err'
23258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23259   (eval $ac_try) 2>&5
23260   ac_status=$?
23261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23262   (exit $ac_status); }; } &&
23263          { ac_try='test -s conftest$ac_exeext'
23264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23265   (eval $ac_try) 2>&5
23266   ac_status=$?
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); }; }; then
23269   ac_cv_func_pthread_create=yes
23270 else
23271   echo "$as_me: failed program was:" >&5
23272 sed 's/^/| /' conftest.$ac_ext >&5
23273
23274 ac_cv_func_pthread_create=no
23275 fi
23276 rm -f conftest.err conftest.$ac_objext \
23277       conftest$ac_exeext conftest.$ac_ext
23278 fi
23279 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23280 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23281
23282
23283 fi
23284
23285
23286 fi
23287
23288
23289 fi
23290
23291
23292
23293 cat >>confdefs.h <<\_ACEOF
23294 #define FDLIBS 1
23295 _ACEOF
23296
23297
23298
23299 CFLAGS=${CFLAGS--O}
23300 LDFLAGS=${LDFLAGS--O}
23301 DB_LIBS="${SQL_LFLAGS}"
23302
23303 CPPFLAGS="$CPPFLAGS"
23304
23305
23306
23307
23308
23309
23310
23311
23312
23313
23314
23315
23316
23317
23318
23319 OBJLIST=
23320
23321
23322 lld="lld"
23323 llu="llu"
23324
23325 WCFLAGS=
23326 WLDFLAGS=
23327
23328 #
23329 # Finally we set appropriate distribution specific
23330 #  variables and defaults
23331 #
23332 # PFILES are platform specific files
23333 PFILES="platforms/Makefile"
23334 PSCMD="ps -e"
23335 WIN32=
23336 MACOSX=
23337 hostname=`uname -n | cut -d '.' -f 1`
23338 case "$DISTNAME" in
23339 aix)
23340         DISTVER=`uname -r`
23341         PSCMD="ps -e -o pid,comm"
23342         PFILES="${PFILES} \
23343            platforms/aix/Makefile"
23344         TAPEDRIVE="/dev/rmt0.1"
23345   ;;
23346 alpha)
23347         DISTVER=`uname -r`
23348         PTHREAD_LIB="-lpthread -lexc"
23349         if test "${CC}" = "gcc" ; then
23350            lld="lld"
23351            llu="llu"
23352         else
23353            lld="ld"
23354            llu="lu"
23355         fi
23356         TAPEDRIVE="/dev/nrmt0"
23357   ;;
23358 bsdi)
23359         DISTVER=`uname -a |awk '{print $3}'`
23360         TAPEDRIVE="/dev/nrmt0"
23361         PTHREAD_LIB="-pthread"
23362         CFLAGS="${CFLAGS} -pthread"
23363         PSCMD="ps -ax -o pid,command"
23364         lld="qd"
23365         llu="qu"
23366         PFILES="${PFILES} \
23367             platforms/bsdi/Makefile \
23368             platforms/bsdi/bacula-fd \
23369             platforms/bsdi/bacula-sd \
23370             platforms/bsdi/bacula-dir"
23371         largefile_support="yes"
23372   ;;
23373 cygwin)
23374         DISTVER=`uname -a |awk '{print $3}'`
23375         TAPEDRIVE="/dev/nrst0"
23376         WIN32=win32
23377         WCFLAGS="-mwindows"
23378         WLDFLAGS="-mwindows"
23379   ;;
23380 darwin)
23381         DISTVER=`uname -r`
23382         TAPEDRIVE="/dev/nst0"
23383         PSCMD="ps -e -o pid,command"
23384         MACOSX=macosx
23385         PFILES="${PFILES} \
23386            platforms/darwin/Makefile"
23387   ;;
23388 debian)
23389         DISTVER=`cat /etc/debian_version`
23390         TAPEDRIVE="/dev/nrst0"
23391         PSCMD="ps -e -o pid,command"
23392   ;;
23393 freebsd)
23394         DISTVER=`uname -a |awk '{print $3}'`
23395         VER=`echo $DISTVER | cut -c 1`
23396         if test x$VER = x4 ; then
23397            PTHREAD_LIB="-pthread"
23398            CFLAGS="${CFLAGS} -pthread"
23399         fi
23400         lld="qd"
23401         llu="qu"
23402         TAPEDRIVE="/dev/nrsa0"
23403         PSCMD="ps -ax -o pid,command"
23404         PFILES="${PFILES} \
23405             platforms/freebsd/Makefile \
23406             platforms/freebsd/bacula-fd \
23407             platforms/freebsd/bacula-sd \
23408             platforms/freebsd/bacula-dir"
23409         largefile_support="yes"
23410   ;;
23411 hpux)
23412         PSCMD="UNIX95=1 ps -e -o pid,comm"
23413         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23414         DISTVER=`uname -r`
23415         TAPEDRIVE="/dev/rmt/0hnb"
23416         PTHREAD_LIB="-lpthread"
23417         cat >>confdefs.h <<\_ACEOF
23418 #define _INCLUDE_LONGLONG 1
23419 _ACEOF
23420
23421   ;;
23422 irix)
23423         DISTVER=`uname -r`
23424         TAPEDRIVE="/dev/rmt/0cbn"
23425         PSCMD="ps -e -o pid,comm"
23426         PFILES="${PFILES} \
23427             platforms/irix/Makefile \
23428             platforms/irix/bacula-fd \
23429             platforms/irix/bacula-sd \
23430             platforms/irix/bacula-dir"
23431   ;;
23432 netbsd)
23433         DISTVER=`uname -a |awk '{print $3}'`
23434         lld="qd"
23435         llu="qu"
23436         TAPEDRIVE="/dev/nrst0"
23437         PSCMD="ps -ax -o pid,command"
23438         PTHREAD_LIB="-pthread"
23439         CFLAGS="${CFLAGS} -pthread"
23440   ;;
23441 openbsd)
23442         DISTVER=`uname -a |awk '{print $3}'`
23443         lld="qd"
23444         llu="qu"
23445         TAPEDRIVE="/dev/nrst0"
23446         PSCMD="ps -ax -o pid,command"
23447         PTHREAD_LIB="-pthread"
23448         CFLAGS="${CFLAGS} -pthread"
23449         PFILES="${PFILES} \
23450             platforms/openbsd/Makefile \
23451             platforms/openbsd/bacula-fd \
23452             platforms/openbsd/bacula-sd \
23453             platforms/openbsd/bacula-dir"
23454   ;;
23455 redhat)
23456         if test -f /etc/whitebox-release ; then
23457            f=/etc/whitebox-release
23458         else
23459            f=/etc/redhat-release
23460         fi
23461         if test `cat $f | grep release |\
23462                    cut -f 3 -d ' '`x = "Enterprise"x ; then
23463            DISTVER="Enterprise "`cat $f | grep release |\
23464                     cut -f 6 -d ' '`
23465         else
23466             DISTVER=`cat /etc/redhat-release | grep release |\
23467                      cut -f 5 -d ' '`
23468         fi
23469         TAPEDRIVE="/dev/nst0"
23470         PSCMD="ps -e -o pid,command"
23471         PFILES="${PFILES} \
23472             platforms/redhat/Makefile \
23473             platforms/redhat/bacula-fd \
23474             platforms/redhat/bacula-sd \
23475             platforms/redhat/bacula-dir \
23476             platforms/redhat/bacula.spec \
23477             "
23478         hostname=`hostname -s`
23479   ;;
23480 mandrake)
23481         DISTVER=`cat /etc/mandrake-release | grep release |\
23482            cut -f 5 -d ' '`
23483         TAPEDRIVE="/dev/nst0"
23484         PSCMD="ps -e -o pid,command"
23485         PFILES="${PFILES} \
23486             platforms/mandrake/Makefile \
23487             platforms/mandrake/bacula-fd \
23488             platforms/mandrake/bacula-sd \
23489             platforms/mandrake/bacula-dir \
23490             platforms/mandrake/bacula.spec \
23491             "
23492   ;;
23493 gentoo)
23494         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23495         TAPEDRIVE="/dev/nst0"
23496         PSCMD="ps -e -o pid,command"
23497         PFILES="${PFILES} \
23498             platforms/gentoo/Makefile \
23499          platforms/gentoo/bacula-init \
23500             platforms/gentoo/bacula-fd \
23501             platforms/gentoo/bacula-sd \
23502             platforms/gentoo/bacula-dir"
23503   ;;
23504 slackware)
23505         DISTVER=`cat /etc/slackware-version`
23506         TAPEDRIVE="/dev/nst0"
23507         PSCMD="ps -e -o pid,command"
23508         PFILES="${PFILES} \
23509             platforms/slackware/Makefile \
23510             platforms/slackware/rc.bacula-fd \
23511             platforms/slackware/rc.bacula-sd \
23512             platforms/slackware/rc.bacula-dir\
23513             platforms/slackware/functions.bacula"
23514   ;;
23515 solaris)
23516         DISTVER=`uname -r`
23517         TAPEDRIVE="/dev/rmt/0cbn"
23518         PSCMD="ps -e -o pid,comm"
23519         PFILES="${PFILES} \
23520             platforms/solaris/Makefile \
23521             platforms/solaris/bacula-fd \
23522             platforms/solaris/bacula-sd \
23523             platforms/solaris/bacula-dir"
23524         if test x$DISTVER = x5.6 ; then
23525             cat >>confdefs.h <<\_ACEOF
23526 #define HAVE_OLD_SOCKOPT 1
23527 _ACEOF
23528
23529         fi
23530         LIBS="$LIBS -lresolv"
23531   ;;
23532 suse)
23533         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23534             cut -f 3 -d ' '`
23535         TAPEDRIVE="/dev/nst0"
23536         PSCMD="ps -e -o pid,command"
23537         PFILES="${PFILES} \
23538             platforms/suse/Makefile \
23539             platforms/suse/bacula-fd \
23540             platforms/suse/bacula-sd \
23541             platforms/suse/bacula-dir \
23542             platforms/suse/bacula \
23543             platforms/suse/bacula.spec"
23544   ;;
23545 suse5)
23546         DISTNAME=suse
23547         DISTVER=5.x
23548         TAPEDRIVE="/dev/nst0"
23549         PSCMD="ps -e -o pid,command"
23550         PFILES="${PFILES} \
23551             platforms/suse/Makefile \
23552             platforms/suse/bacula-fd \
23553             platforms/suse/bacula-sd \
23554             platforms/suse/bacula-dir"
23555   ;;
23556 unknown)
23557         DISTVER=unknown
23558         TAPEDRIVE="/dev/nst0"
23559   ;;
23560 *)
23561   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23562   ;;
23563 esac
23564
23565
23566
23567 LIBS="$PTHREAD_LIB $LIBS"
23568
23569 cat >>confdefs.h <<_ACEOF
23570 #define lld "$lld"
23571 _ACEOF
23572
23573 cat >>confdefs.h <<_ACEOF
23574 #define llu "$llu"
23575 _ACEOF
23576
23577
23578
23579
23580
23581
23582
23583
23584 MCOMMON=./autoconf/Make.common
23585
23586
23587 if test "x${subsysdir}" = "x${sbindir}" ; then
23588    echo " "
23589    echo " "
23590    echo "You have set both --sbindir and --with-subsys-dir"
23591    echo "  equal to: ${subsysdir} "
23592    echo "This is not permitted. Please reconfigure."
23593    echo " "
23594    echo "Aborting configuration ..."
23595    echo " "
23596    echo " "
23597    exit 1
23598 fi
23599
23600                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
23601           ac_config_commands="$ac_config_commands default"
23602 cat >confcache <<\_ACEOF
23603 # This file is a shell script that caches the results of configure
23604 # tests run on this system so they can be shared between configure
23605 # scripts and configure runs, see configure's option --config-cache.
23606 # It is not useful on other systems.  If it contains results you don't
23607 # want to keep, you may remove or edit it.
23608 #
23609 # config.status only pays attention to the cache file if you give it
23610 # the --recheck option to rerun configure.
23611 #
23612 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23613 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23614 # following values.
23615
23616 _ACEOF
23617
23618 # The following way of writing the cache mishandles newlines in values,
23619 # but we know of no workaround that is simple, portable, and efficient.
23620 # So, don't put newlines in cache variables' values.
23621 # Ultrix sh set writes to stderr and can't be redirected directly,
23622 # and sets the high bit in the cache file unless we assign to the vars.
23623 {
23624   (set) 2>&1 |
23625     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23626     *ac_space=\ *)
23627       # `set' does not quote correctly, so add quotes (double-quote
23628       # substitution turns \\\\ into \\, and sed turns \\ into \).
23629       sed -n \
23630         "s/'/'\\\\''/g;
23631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23632       ;;
23633     *)
23634       # `set' quotes correctly as required by POSIX, so do not add quotes.
23635       sed -n \
23636         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23637       ;;
23638     esac;
23639 } |
23640   sed '
23641      t clear
23642      : clear
23643      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23644      t end
23645      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23646      : end' >>confcache
23647 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23648   if test -w $cache_file; then
23649     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23650     cat confcache >$cache_file
23651   else
23652     echo "not updating unwritable cache $cache_file"
23653   fi
23654 fi
23655 rm -f confcache
23656
23657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23658 # Let make expand exec_prefix.
23659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23660
23661 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23662 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23663 # trailing colons and then remove the whole line if VPATH becomes empty
23664 # (actually we leave an empty line to preserve line numbers).
23665 if test "x$srcdir" = x.; then
23666   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23667 s/:*\$(srcdir):*/:/;
23668 s/:*\${srcdir}:*/:/;
23669 s/:*@srcdir@:*/:/;
23670 s/^\([^=]*=[     ]*\):*/\1/;
23671 s/:*$//;
23672 s/^[^=]*=[       ]*$//;
23673 }'
23674 fi
23675
23676 DEFS=-DHAVE_CONFIG_H
23677
23678 ac_libobjs=
23679 ac_ltlibobjs=
23680 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23681   # 1. Remove the extension, and $U if already installed.
23682   ac_i=`echo "$ac_i" |
23683          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23684   # 2. Add them.
23685   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23686   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23687 done
23688 LIBOBJS=$ac_libobjs
23689
23690 LTLIBOBJS=$ac_ltlibobjs
23691
23692
23693
23694 : ${CONFIG_STATUS=./config.status}
23695 ac_clean_files_save=$ac_clean_files
23696 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23697 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23698 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23699 cat >$CONFIG_STATUS <<_ACEOF
23700 #! $SHELL
23701 # Generated by $as_me.
23702 # Run this file to recreate the current configuration.
23703 # Compiler output produced by configure, useful for debugging
23704 # configure, is in config.log if it exists.
23705
23706 debug=false
23707 ac_cs_recheck=false
23708 ac_cs_silent=false
23709 SHELL=\${CONFIG_SHELL-$SHELL}
23710 _ACEOF
23711
23712 cat >>$CONFIG_STATUS <<\_ACEOF
23713 ## --------------------- ##
23714 ## M4sh Initialization.  ##
23715 ## --------------------- ##
23716
23717 # Be Bourne compatible
23718 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23719   emulate sh
23720   NULLCMD=:
23721   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23722   # is contrary to our usage.  Disable this feature.
23723   alias -g '${1+"$@"}'='"$@"'
23724 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23725   set -o posix
23726 fi
23727 DUALCASE=1; export DUALCASE # for MKS sh
23728
23729 # Support unset when possible.
23730 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23731   as_unset=unset
23732 else
23733   as_unset=false
23734 fi
23735
23736
23737 # Work around bugs in pre-3.0 UWIN ksh.
23738 $as_unset ENV MAIL MAILPATH
23739 PS1='$ '
23740 PS2='> '
23741 PS4='+ '
23742
23743 # NLS nuisances.
23744 for as_var in \
23745   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23746   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23747   LC_TELEPHONE LC_TIME
23748 do
23749   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23750     eval $as_var=C; export $as_var
23751   else
23752     $as_unset $as_var
23753   fi
23754 done
23755
23756 # Required to use basename.
23757 if expr a : '\(a\)' >/dev/null 2>&1; then
23758   as_expr=expr
23759 else
23760   as_expr=false
23761 fi
23762
23763 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23764   as_basename=basename
23765 else
23766   as_basename=false
23767 fi
23768
23769
23770 # Name of the executable.
23771 as_me=`$as_basename "$0" ||
23772 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23773          X"$0" : 'X\(//\)$' \| \
23774          X"$0" : 'X\(/\)$' \| \
23775          .     : '\(.\)' 2>/dev/null ||
23776 echo X/"$0" |
23777     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23778           /^X\/\(\/\/\)$/{ s//\1/; q; }
23779           /^X\/\(\/\).*/{ s//\1/; q; }
23780           s/.*/./; q'`
23781
23782
23783 # PATH needs CR, and LINENO needs CR and PATH.
23784 # Avoid depending upon Character Ranges.
23785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23788 as_cr_digits='0123456789'
23789 as_cr_alnum=$as_cr_Letters$as_cr_digits
23790
23791 # The user is always right.
23792 if test "${PATH_SEPARATOR+set}" != set; then
23793   echo "#! /bin/sh" >conf$$.sh
23794   echo  "exit 0"   >>conf$$.sh
23795   chmod +x conf$$.sh
23796   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23797     PATH_SEPARATOR=';'
23798   else
23799     PATH_SEPARATOR=:
23800   fi
23801   rm -f conf$$.sh
23802 fi
23803
23804
23805   as_lineno_1=$LINENO
23806   as_lineno_2=$LINENO
23807   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23808   test "x$as_lineno_1" != "x$as_lineno_2" &&
23809   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23810   # Find who we are.  Look in the path if we contain no path at all
23811   # relative or not.
23812   case $0 in
23813     *[\\/]* ) as_myself=$0 ;;
23814     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23815 for as_dir in $PATH
23816 do
23817   IFS=$as_save_IFS
23818   test -z "$as_dir" && as_dir=.
23819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23820 done
23821
23822        ;;
23823   esac
23824   # We did not find ourselves, most probably we were run as `sh COMMAND'
23825   # in which case we are not to be found in the path.
23826   if test "x$as_myself" = x; then
23827     as_myself=$0
23828   fi
23829   if test ! -f "$as_myself"; then
23830     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23831 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23832    { (exit 1); exit 1; }; }
23833   fi
23834   case $CONFIG_SHELL in
23835   '')
23836     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23837 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23838 do
23839   IFS=$as_save_IFS
23840   test -z "$as_dir" && as_dir=.
23841   for as_base in sh bash ksh sh5; do
23842          case $as_dir in
23843          /*)
23844            if ("$as_dir/$as_base" -c '
23845   as_lineno_1=$LINENO
23846   as_lineno_2=$LINENO
23847   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23848   test "x$as_lineno_1" != "x$as_lineno_2" &&
23849   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23850              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23851              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23852              CONFIG_SHELL=$as_dir/$as_base
23853              export CONFIG_SHELL
23854              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23855            fi;;
23856          esac
23857        done
23858 done
23859 ;;
23860   esac
23861
23862   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23863   # uniformly replaced by the line number.  The first 'sed' inserts a
23864   # line-number line before each line; the second 'sed' does the real
23865   # work.  The second script uses 'N' to pair each line-number line
23866   # with the numbered line, and appends trailing '-' during
23867   # substitution so that $LINENO is not a special case at line end.
23868   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23869   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23870   sed '=' <$as_myself |
23871     sed '
23872       N
23873       s,$,-,
23874       : loop
23875       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23876       t loop
23877       s,-$,,
23878       s,^['$as_cr_digits']*\n,,
23879     ' >$as_me.lineno &&
23880   chmod +x $as_me.lineno ||
23881     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23882 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23883    { (exit 1); exit 1; }; }
23884
23885   # Don't try to exec as it changes $[0], causing all sort of problems
23886   # (the dirname of $[0] is not the place where we might find the
23887   # original and so on.  Autoconf is especially sensible to this).
23888   . ./$as_me.lineno
23889   # Exit status is that of the last command.
23890   exit
23891 }
23892
23893
23894 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23895   *c*,-n*) ECHO_N= ECHO_C='
23896 ' ECHO_T='      ' ;;
23897   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23898   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23899 esac
23900
23901 if expr a : '\(a\)' >/dev/null 2>&1; then
23902   as_expr=expr
23903 else
23904   as_expr=false
23905 fi
23906
23907 rm -f conf$$ conf$$.exe conf$$.file
23908 echo >conf$$.file
23909 if ln -s conf$$.file conf$$ 2>/dev/null; then
23910   # We could just check for DJGPP; but this test a) works b) is more generic
23911   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23912   if test -f conf$$.exe; then
23913     # Don't use ln at all; we don't have any links
23914     as_ln_s='cp -p'
23915   else
23916     as_ln_s='ln -s'
23917   fi
23918 elif ln conf$$.file conf$$ 2>/dev/null; then
23919   as_ln_s=ln
23920 else
23921   as_ln_s='cp -p'
23922 fi
23923 rm -f conf$$ conf$$.exe conf$$.file
23924
23925 if mkdir -p . 2>/dev/null; then
23926   as_mkdir_p=:
23927 else
23928   test -d ./-p && rmdir ./-p
23929   as_mkdir_p=false
23930 fi
23931
23932 as_executable_p="test -f"
23933
23934 # Sed expression to map a string onto a valid CPP name.
23935 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23936
23937 # Sed expression to map a string onto a valid variable name.
23938 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23939
23940
23941 # IFS
23942 # We need space, tab and new line, in precisely that order.
23943 as_nl='
23944 '
23945 IFS="   $as_nl"
23946
23947 # CDPATH.
23948 $as_unset CDPATH
23949
23950 exec 6>&1
23951
23952 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23953 # report actual input values of CONFIG_FILES etc. instead of their
23954 # values after options handling.  Logging --version etc. is OK.
23955 exec 5>>config.log
23956 {
23957   echo
23958   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23959 ## Running $as_me. ##
23960 _ASBOX
23961 } >&5
23962 cat >&5 <<_CSEOF
23963
23964 This file was extended by $as_me, which was
23965 generated by GNU Autoconf 2.59.  Invocation command line was
23966
23967   CONFIG_FILES    = $CONFIG_FILES
23968   CONFIG_HEADERS  = $CONFIG_HEADERS
23969   CONFIG_LINKS    = $CONFIG_LINKS
23970   CONFIG_COMMANDS = $CONFIG_COMMANDS
23971   $ $0 $@
23972
23973 _CSEOF
23974 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23975 echo >&5
23976 _ACEOF
23977
23978 # Files that config.status was made for.
23979 if test -n "$ac_config_files"; then
23980   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23981 fi
23982
23983 if test -n "$ac_config_headers"; then
23984   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23985 fi
23986
23987 if test -n "$ac_config_links"; then
23988   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23989 fi
23990
23991 if test -n "$ac_config_commands"; then
23992   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23993 fi
23994
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23996
23997 ac_cs_usage="\
23998 \`$as_me' instantiates files from templates according to the
23999 current configuration.
24000
24001 Usage: $0 [OPTIONS] [FILE]...
24002
24003   -h, --help       print this help, then exit
24004   -V, --version    print version number, then exit
24005   -q, --quiet      do not print progress messages
24006   -d, --debug      don't remove temporary files
24007       --recheck    update $as_me by reconfiguring in the same conditions
24008   --file=FILE[:TEMPLATE]
24009                    instantiate the configuration file FILE
24010   --header=FILE[:TEMPLATE]
24011                    instantiate the configuration header FILE
24012
24013 Configuration files:
24014 $config_files
24015
24016 Configuration headers:
24017 $config_headers
24018
24019 Configuration commands:
24020 $config_commands
24021
24022 Report bugs to <bug-autoconf@gnu.org>."
24023 _ACEOF
24024
24025 cat >>$CONFIG_STATUS <<_ACEOF
24026 ac_cs_version="\\
24027 config.status
24028 configured by $0, generated by GNU Autoconf 2.59,
24029   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24030
24031 Copyright (C) 2003 Free Software Foundation, Inc.
24032 This config.status script is free software; the Free Software Foundation
24033 gives unlimited permission to copy, distribute and modify it."
24034 srcdir=$srcdir
24035 INSTALL="$INSTALL"
24036 _ACEOF
24037
24038 cat >>$CONFIG_STATUS <<\_ACEOF
24039 # If no file are specified by the user, then we need to provide default
24040 # value.  By we need to know if files were specified by the user.
24041 ac_need_defaults=:
24042 while test $# != 0
24043 do
24044   case $1 in
24045   --*=*)
24046     ac_option=`expr "x$1" : 'x\([^=]*\)='`
24047     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24048     ac_shift=:
24049     ;;
24050   -*)
24051     ac_option=$1
24052     ac_optarg=$2
24053     ac_shift=shift
24054     ;;
24055   *) # This is not an option, so the user has probably given explicit
24056      # arguments.
24057      ac_option=$1
24058      ac_need_defaults=false;;
24059   esac
24060
24061   case $ac_option in
24062   # Handling of the options.
24063 _ACEOF
24064 cat >>$CONFIG_STATUS <<\_ACEOF
24065   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24066     ac_cs_recheck=: ;;
24067   --version | --vers* | -V )
24068     echo "$ac_cs_version"; exit 0 ;;
24069   --he | --h)
24070     # Conflict between --help and --header
24071     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24072 Try \`$0 --help' for more information." >&5
24073 echo "$as_me: error: ambiguous option: $1
24074 Try \`$0 --help' for more information." >&2;}
24075    { (exit 1); exit 1; }; };;
24076   --help | --hel | -h )
24077     echo "$ac_cs_usage"; exit 0 ;;
24078   --debug | --d* | -d )
24079     debug=: ;;
24080   --file | --fil | --fi | --f )
24081     $ac_shift
24082     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24083     ac_need_defaults=false;;
24084   --header | --heade | --head | --hea )
24085     $ac_shift
24086     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24087     ac_need_defaults=false;;
24088   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24089   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24090     ac_cs_silent=: ;;
24091
24092   # This is an error.
24093   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24094 Try \`$0 --help' for more information." >&5
24095 echo "$as_me: error: unrecognized option: $1
24096 Try \`$0 --help' for more information." >&2;}
24097    { (exit 1); exit 1; }; } ;;
24098
24099   *) ac_config_targets="$ac_config_targets $1" ;;
24100
24101   esac
24102   shift
24103 done
24104
24105 ac_configure_extra_args=
24106
24107 if $ac_cs_silent; then
24108   exec 6>/dev/null
24109   ac_configure_extra_args="$ac_configure_extra_args --silent"
24110 fi
24111
24112 _ACEOF
24113 cat >>$CONFIG_STATUS <<_ACEOF
24114 if \$ac_cs_recheck; then
24115   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24116   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24117 fi
24118
24119 _ACEOF
24120
24121 cat >>$CONFIG_STATUS <<_ACEOF
24122 #
24123 # INIT-COMMANDS section.
24124 #
24125
24126 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24127     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24128     # from automake.
24129     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24130     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24131     LINGUAS="${LINGUAS-%UNSET%}"
24132
24133
24134 _ACEOF
24135
24136
24137
24138 cat >>$CONFIG_STATUS <<\_ACEOF
24139 for ac_config_target in $ac_config_targets
24140 do
24141   case "$ac_config_target" in
24142   # Handling of arguments.
24143   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24144   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24145   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24146   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24147   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24148   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24149   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24150   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24151   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24152   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24153   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24154   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24155   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24156   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24157   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24158   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24159   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24160   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24161   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24162   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24163   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24164   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24165   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24166   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24167   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24168   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24169   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24170   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24171   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24172   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24173   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24174   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24175   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24176   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24177   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24178   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24179   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24180   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24181   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24182   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24183   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24184   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24185   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24186   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24187   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24188   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24189   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24190   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24191   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24192   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24193   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24194   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24195   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24196   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24197   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24198   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24199   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24200   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24201   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24202   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24203   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24204   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24205   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24206   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24207   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24208   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24209   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24210   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24211   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24212   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24213   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24214   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24215   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24216   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24217   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24218   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24219   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24220   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24221   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24222   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24223   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24224   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24225   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24226   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24227   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24228   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24229   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24230   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24231   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24232   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24233   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24234   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24235   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24236   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24237   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24238   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24239   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24240   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24241   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24242 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24243    { (exit 1); exit 1; }; };;
24244   esac
24245 done
24246
24247 # If the user did not use the arguments to specify the items to instantiate,
24248 # then the envvar interface is used.  Set only those that are not.
24249 # We use the long form for the default assignment because of an extremely
24250 # bizarre bug on SunOS 4.1.3.
24251 if $ac_need_defaults; then
24252   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24253   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24254   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24255 fi
24256
24257 # Have a temporary directory for convenience.  Make it in the build tree
24258 # simply because there is no reason to put it here, and in addition,
24259 # creating and moving files from /tmp can sometimes cause problems.
24260 # Create a temporary directory, and hook for its removal unless debugging.
24261 $debug ||
24262 {
24263   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24264   trap '{ (exit 1); exit 1; }' 1 2 13 15
24265 }
24266
24267 # Create a (secure) tmp directory for tmp files.
24268
24269 {
24270   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24271   test -n "$tmp" && test -d "$tmp"
24272 }  ||
24273 {
24274   tmp=./confstat$$-$RANDOM
24275   (umask 077 && mkdir $tmp)
24276 } ||
24277 {
24278    echo "$me: cannot create a temporary directory in ." >&2
24279    { (exit 1); exit 1; }
24280 }
24281
24282 _ACEOF
24283
24284 cat >>$CONFIG_STATUS <<_ACEOF
24285
24286 #
24287 # CONFIG_FILES section.
24288 #
24289
24290 # No need to generate the scripts if there are no CONFIG_FILES.
24291 # This happens for instance when ./config.status config.h
24292 if test -n "\$CONFIG_FILES"; then
24293   # Protect against being on the right side of a sed subst in config.status.
24294   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24295    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24296 s,@SHELL@,$SHELL,;t t
24297 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24298 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24299 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24300 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24301 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24302 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24303 s,@exec_prefix@,$exec_prefix,;t t
24304 s,@prefix@,$prefix,;t t
24305 s,@program_transform_name@,$program_transform_name,;t t
24306 s,@bindir@,$bindir,;t t
24307 s,@sbindir@,$sbindir,;t t
24308 s,@libexecdir@,$libexecdir,;t t
24309 s,@datadir@,$datadir,;t t
24310 s,@sysconfdir@,$sysconfdir,;t t
24311 s,@sharedstatedir@,$sharedstatedir,;t t
24312 s,@localstatedir@,$localstatedir,;t t
24313 s,@libdir@,$libdir,;t t
24314 s,@includedir@,$includedir,;t t
24315 s,@oldincludedir@,$oldincludedir,;t t
24316 s,@infodir@,$infodir,;t t
24317 s,@mandir@,$mandir,;t t
24318 s,@build_alias@,$build_alias,;t t
24319 s,@host_alias@,$host_alias,;t t
24320 s,@target_alias@,$target_alias,;t t
24321 s,@DEFS@,$DEFS,;t t
24322 s,@ECHO_C@,$ECHO_C,;t t
24323 s,@ECHO_N@,$ECHO_N,;t t
24324 s,@ECHO_T@,$ECHO_T,;t t
24325 s,@LIBS@,$LIBS,;t t
24326 s,@BUILD_DIR@,$BUILD_DIR,;t t
24327 s,@TRUEPRG@,$TRUEPRG,;t t
24328 s,@FALSEPRG@,$FALSEPRG,;t t
24329 s,@VERSION@,$VERSION,;t t
24330 s,@DATE@,$DATE,;t t
24331 s,@LSMDATE@,$LSMDATE,;t t
24332 s,@CC@,$CC,;t t
24333 s,@CFLAGS@,$CFLAGS,;t t
24334 s,@LDFLAGS@,$LDFLAGS,;t t
24335 s,@CPPFLAGS@,$CPPFLAGS,;t t
24336 s,@ac_ct_CC@,$ac_ct_CC,;t t
24337 s,@EXEEXT@,$EXEEXT,;t t
24338 s,@OBJEXT@,$OBJEXT,;t t
24339 s,@CXX@,$CXX,;t t
24340 s,@CXXFLAGS@,$CXXFLAGS,;t t
24341 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24342 s,@CPP@,$CPP,;t t
24343 s,@EGREP@,$EGREP,;t t
24344 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24345 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24346 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24347 s,@RANLIB@,$RANLIB,;t t
24348 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24349 s,@MV@,$MV,;t t
24350 s,@RM@,$RM,;t t
24351 s,@CP@,$CP,;t t
24352 s,@SED@,$SED,;t t
24353 s,@ECHO@,$ECHO,;t t
24354 s,@CMP@,$CMP,;t t
24355 s,@TBL@,$TBL,;t t
24356 s,@AR@,$AR,;t t
24357 s,@OPENSSL@,$OPENSSL,;t t
24358 s,@MTX@,$MTX,;t t
24359 s,@DF@,$DF,;t t
24360 s,@MKISOFS@,$MKISOFS,;t t
24361 s,@PYTHON@,$PYTHON,;t t
24362 s,@GROWISOFS@,$GROWISOFS,;t t
24363 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24364 s,@PKGCONFIG@,$PKGCONFIG,;t t
24365 s,@WXCONFIG@,$WXCONFIG,;t t
24366 s,@WXFLAGS@,$WXFLAGS,;t t
24367 s,@CDRECORD@,$CDRECORD,;t t
24368 s,@PIDOF@,$PIDOF,;t t
24369 s,@AWK@,$AWK,;t t
24370 s,@ARFLAGS@,$ARFLAGS,;t t
24371 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24372 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24373 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24374 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24375 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24376 s,@build@,$build,;t t
24377 s,@build_cpu@,$build_cpu,;t t
24378 s,@build_vendor@,$build_vendor,;t t
24379 s,@build_os@,$build_os,;t t
24380 s,@host@,$host,;t t
24381 s,@host_cpu@,$host_cpu,;t t
24382 s,@host_vendor@,$host_vendor,;t t
24383 s,@host_os@,$host_os,;t t
24384 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24385 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24386 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24387 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24388 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24389 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24390 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24391 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24392 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24393 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24394 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24395 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24396 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24397 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24398 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24399 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24400 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24401 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24402 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24403 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24404 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24405 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24406 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24407 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24408 s,@SET_MAKE@,$SET_MAKE,;t t
24409 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24410 s,@USE_NLS@,$USE_NLS,;t t
24411 s,@MSGFMT@,$MSGFMT,;t t
24412 s,@GMSGFMT@,$GMSGFMT,;t t
24413 s,@XGETTEXT@,$XGETTEXT,;t t
24414 s,@MSGMERGE@,$MSGMERGE,;t t
24415 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24416 s,@LIBICONV@,$LIBICONV,;t t
24417 s,@LTLIBICONV@,$LTLIBICONV,;t t
24418 s,@INTLLIBS@,$INTLLIBS,;t t
24419 s,@LIBINTL@,$LIBINTL,;t t
24420 s,@LTLIBINTL@,$LTLIBINTL,;t t
24421 s,@POSUB@,$POSUB,;t t
24422 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24423 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24424 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24425 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24426 s,@GNOME_DIR@,$GNOME_DIR,;t t
24427 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24428 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24429 s,@WX_DIR@,$WX_DIR,;t t
24430 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24431 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24432 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24433 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24434 s,@STATIC_FD@,$STATIC_FD,;t t
24435 s,@STATIC_SD@,$STATIC_SD,;t t
24436 s,@STATIC_DIR@,$STATIC_DIR,;t t
24437 s,@STATIC_CONS@,$STATIC_CONS,;t t
24438 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24439 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24440 s,@ALL_DIRS@,$ALL_DIRS,;t t
24441 s,@DIRD_DIR@,$DIRD_DIR,;t t
24442 s,@DIR_TOOLS@,$DIR_TOOLS,;t t
24443 s,@STORED_DIR@,$STORED_DIR,;t t
24444 s,@CONS_INC@,$CONS_INC,;t t
24445 s,@CONS_OBJ@,$CONS_OBJ,;t t
24446 s,@CONS_SRC@,$CONS_SRC,;t t
24447 s,@CONS_LIBS@,$CONS_LIBS,;t t
24448 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24449 s,@READLINE_SRC@,$READLINE_SRC,;t t
24450 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24451 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24452 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24453 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24454 s,@working_dir@,$working_dir,;t t
24455 s,@scriptdir@,$scriptdir,;t t
24456 s,@dump_email@,$dump_email,;t t
24457 s,@job_email@,$job_email,;t t
24458 s,@smtp_host@,$smtp_host,;t t
24459 s,@piddir@,$piddir,;t t
24460 s,@subsysdir@,$subsysdir,;t t
24461 s,@baseport@,$baseport,;t t
24462 s,@dir_port@,$dir_port,;t t
24463 s,@fd_port@,$fd_port,;t t
24464 s,@sd_port@,$sd_port,;t t
24465 s,@dir_password@,$dir_password,;t t
24466 s,@fd_password@,$fd_password,;t t
24467 s,@sd_password@,$sd_password,;t t
24468 s,@mon_dir_password@,$mon_dir_password,;t t
24469 s,@mon_fd_password@,$mon_fd_password,;t t
24470 s,@mon_sd_password@,$mon_sd_password,;t t
24471 s,@dir_user@,$dir_user,;t t
24472 s,@dir_group@,$dir_group,;t t
24473 s,@sd_user@,$sd_user,;t t
24474 s,@sd_group@,$sd_group,;t t
24475 s,@fd_user@,$fd_user,;t t
24476 s,@fd_group@,$fd_group,;t t
24477 s,@SBINPERM@,$SBINPERM,;t t
24478 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24479 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24480 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24481 s,@cats@,$cats,;t t
24482 s,@DB_NAME@,$DB_NAME,;t t
24483 s,@GETCONF@,$GETCONF,;t t
24484 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24485 s,@X_CFLAGS@,$X_CFLAGS,;t t
24486 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24487 s,@X_LIBS@,$X_LIBS,;t t
24488 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24489 s,@LIBOBJS@,$LIBOBJS,;t t
24490 s,@ALLOCA@,$ALLOCA,;t t
24491 s,@FDLIBS@,$FDLIBS,;t t
24492 s,@DEBUG@,$DEBUG,;t t
24493 s,@DINCLUDE@,$DINCLUDE,;t t
24494 s,@DLIB@,$DLIB,;t t
24495 s,@DB_LIBS@,$DB_LIBS,;t t
24496 s,@WCFLAGS@,$WCFLAGS,;t t
24497 s,@WLDFLAGS@,$WLDFLAGS,;t t
24498 s,@OBJLIST@,$OBJLIST,;t t
24499 s,@hostname@,$hostname,;t t
24500 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24501 s,@PSCMD@,$PSCMD,;t t
24502 s,@WIN32@,$WIN32,;t t
24503 s,@MACOSX@,$MACOSX,;t t
24504 s,@DISTNAME@,$DISTNAME,;t t
24505 s,@DISTVER@,$DISTVER,;t t
24506 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24507 /@MCOMMON@/r $MCOMMON
24508 s,@MCOMMON@,,;t t
24509 CEOF
24510
24511 _ACEOF
24512
24513   cat >>$CONFIG_STATUS <<\_ACEOF
24514   # Split the substitutions into bite-sized pieces for seds with
24515   # small command number limits, like on Digital OSF/1 and HP-UX.
24516   ac_max_sed_lines=48
24517   ac_sed_frag=1 # Number of current file.
24518   ac_beg=1 # First line for current file.
24519   ac_end=$ac_max_sed_lines # Line after last line for current file.
24520   ac_more_lines=:
24521   ac_sed_cmds=
24522   while $ac_more_lines; do
24523     if test $ac_beg -gt 1; then
24524       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24525     else
24526       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24527     fi
24528     if test ! -s $tmp/subs.frag; then
24529       ac_more_lines=false
24530     else
24531       # The purpose of the label and of the branching condition is to
24532       # speed up the sed processing (if there are no `@' at all, there
24533       # is no need to browse any of the substitutions).
24534       # These are the two extra sed commands mentioned above.
24535       (echo ':t
24536   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24537       if test -z "$ac_sed_cmds"; then
24538         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24539       else
24540         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24541       fi
24542       ac_sed_frag=`expr $ac_sed_frag + 1`
24543       ac_beg=$ac_end
24544       ac_end=`expr $ac_end + $ac_max_sed_lines`
24545     fi
24546   done
24547   if test -z "$ac_sed_cmds"; then
24548     ac_sed_cmds=cat
24549   fi
24550 fi # test -n "$CONFIG_FILES"
24551
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<\_ACEOF
24554 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24555   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24556   case $ac_file in
24557   - | *:- | *:-:* ) # input from stdin
24558         cat >$tmp/stdin
24559         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24560         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24561   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563   * )   ac_file_in=$ac_file.in ;;
24564   esac
24565
24566   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24567   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24568 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24569          X"$ac_file" : 'X\(//\)[^/]' \| \
24570          X"$ac_file" : 'X\(//\)$' \| \
24571          X"$ac_file" : 'X\(/\)' \| \
24572          .     : '\(.\)' 2>/dev/null ||
24573 echo X"$ac_file" |
24574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24576           /^X\(\/\/\)$/{ s//\1/; q; }
24577           /^X\(\/\).*/{ s//\1/; q; }
24578           s/.*/./; q'`
24579   { if $as_mkdir_p; then
24580     mkdir -p "$ac_dir"
24581   else
24582     as_dir="$ac_dir"
24583     as_dirs=
24584     while test ! -d "$as_dir"; do
24585       as_dirs="$as_dir $as_dirs"
24586       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24588          X"$as_dir" : 'X\(//\)[^/]' \| \
24589          X"$as_dir" : 'X\(//\)$' \| \
24590          X"$as_dir" : 'X\(/\)' \| \
24591          .     : '\(.\)' 2>/dev/null ||
24592 echo X"$as_dir" |
24593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24594           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24595           /^X\(\/\/\)$/{ s//\1/; q; }
24596           /^X\(\/\).*/{ s//\1/; q; }
24597           s/.*/./; q'`
24598     done
24599     test ! -n "$as_dirs" || mkdir $as_dirs
24600   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24602    { (exit 1); exit 1; }; }; }
24603
24604   ac_builddir=.
24605
24606 if test "$ac_dir" != .; then
24607   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24608   # A "../" for each directory in $ac_dir_suffix.
24609   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24610 else
24611   ac_dir_suffix= ac_top_builddir=
24612 fi
24613
24614 case $srcdir in
24615   .)  # No --srcdir option.  We are building in place.
24616     ac_srcdir=.
24617     if test -z "$ac_top_builddir"; then
24618        ac_top_srcdir=.
24619     else
24620        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24621     fi ;;
24622   [\\/]* | ?:[\\/]* )  # Absolute path.
24623     ac_srcdir=$srcdir$ac_dir_suffix;
24624     ac_top_srcdir=$srcdir ;;
24625   *) # Relative path.
24626     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24627     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24628 esac
24629
24630 # Do not use `cd foo && pwd` to compute absolute paths, because
24631 # the directories may not exist.
24632 case `pwd` in
24633 .) ac_abs_builddir="$ac_dir";;
24634 *)
24635   case "$ac_dir" in
24636   .) ac_abs_builddir=`pwd`;;
24637   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24638   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24639   esac;;
24640 esac
24641 case $ac_abs_builddir in
24642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24643 *)
24644   case ${ac_top_builddir}. in
24645   .) ac_abs_top_builddir=$ac_abs_builddir;;
24646   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24647   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24648   esac;;
24649 esac
24650 case $ac_abs_builddir in
24651 .) ac_abs_srcdir=$ac_srcdir;;
24652 *)
24653   case $ac_srcdir in
24654   .) ac_abs_srcdir=$ac_abs_builddir;;
24655   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24656   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24657   esac;;
24658 esac
24659 case $ac_abs_builddir in
24660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24661 *)
24662   case $ac_top_srcdir in
24663   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24664   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24665   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24666   esac;;
24667 esac
24668
24669
24670   case $INSTALL in
24671   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24672   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24673   esac
24674
24675   if test x"$ac_file" != x-; then
24676     { echo "$as_me:$LINENO: creating $ac_file" >&5
24677 echo "$as_me: creating $ac_file" >&6;}
24678     rm -f "$ac_file"
24679   fi
24680   # Let's still pretend it is `configure' which instantiates (i.e., don't
24681   # use $as_me), people would be surprised to read:
24682   #    /* config.h.  Generated by config.status.  */
24683   if test x"$ac_file" = x-; then
24684     configure_input=
24685   else
24686     configure_input="$ac_file.  "
24687   fi
24688   configure_input=$configure_input"Generated from `echo $ac_file_in |
24689                                      sed 's,.*/,,'` by configure."
24690
24691   # First look for the input files in the build tree, otherwise in the
24692   # src tree.
24693   ac_file_inputs=`IFS=:
24694     for f in $ac_file_in; do
24695       case $f in
24696       -) echo $tmp/stdin ;;
24697       [\\/$]*)
24698          # Absolute (can't be DOS-style, as IFS=:)
24699          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24700 echo "$as_me: error: cannot find input file: $f" >&2;}
24701    { (exit 1); exit 1; }; }
24702          echo "$f";;
24703       *) # Relative
24704          if test -f "$f"; then
24705            # Build tree
24706            echo "$f"
24707          elif test -f "$srcdir/$f"; then
24708            # Source tree
24709            echo "$srcdir/$f"
24710          else
24711            # /dev/null tree
24712            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24713 echo "$as_me: error: cannot find input file: $f" >&2;}
24714    { (exit 1); exit 1; }; }
24715          fi;;
24716       esac
24717     done` || { (exit 1); exit 1; }
24718 _ACEOF
24719 cat >>$CONFIG_STATUS <<_ACEOF
24720   sed "$ac_vpsub
24721 $extrasub
24722 _ACEOF
24723 cat >>$CONFIG_STATUS <<\_ACEOF
24724 :t
24725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24726 s,@configure_input@,$configure_input,;t t
24727 s,@srcdir@,$ac_srcdir,;t t
24728 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24729 s,@top_srcdir@,$ac_top_srcdir,;t t
24730 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24731 s,@builddir@,$ac_builddir,;t t
24732 s,@abs_builddir@,$ac_abs_builddir,;t t
24733 s,@top_builddir@,$ac_top_builddir,;t t
24734 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24735 s,@INSTALL@,$ac_INSTALL,;t t
24736 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24737   rm -f $tmp/stdin
24738   if test x"$ac_file" != x-; then
24739     mv $tmp/out $ac_file
24740   else
24741     cat $tmp/out
24742     rm -f $tmp/out
24743   fi
24744
24745 done
24746 _ACEOF
24747 cat >>$CONFIG_STATUS <<\_ACEOF
24748
24749 #
24750 # CONFIG_HEADER section.
24751 #
24752
24753 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24754 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24755 #
24756 # ac_d sets the value in "#define NAME VALUE" lines.
24757 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24758 ac_dB='[         ].*$,\1#\2'
24759 ac_dC=' '
24760 ac_dD=',;t'
24761 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24762 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24763 ac_uB='$,\1#\2define\3'
24764 ac_uC=' '
24765 ac_uD=',;t'
24766
24767 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24768   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24769   case $ac_file in
24770   - | *:- | *:-:* ) # input from stdin
24771         cat >$tmp/stdin
24772         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24775         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24776   * )   ac_file_in=$ac_file.in ;;
24777   esac
24778
24779   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24780 echo "$as_me: creating $ac_file" >&6;}
24781
24782   # First look for the input files in the build tree, otherwise in the
24783   # src tree.
24784   ac_file_inputs=`IFS=:
24785     for f in $ac_file_in; do
24786       case $f in
24787       -) echo $tmp/stdin ;;
24788       [\\/$]*)
24789          # Absolute (can't be DOS-style, as IFS=:)
24790          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24791 echo "$as_me: error: cannot find input file: $f" >&2;}
24792    { (exit 1); exit 1; }; }
24793          # Do quote $f, to prevent DOS paths from being IFS'd.
24794          echo "$f";;
24795       *) # Relative
24796          if test -f "$f"; then
24797            # Build tree
24798            echo "$f"
24799          elif test -f "$srcdir/$f"; then
24800            # Source tree
24801            echo "$srcdir/$f"
24802          else
24803            # /dev/null tree
24804            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24805 echo "$as_me: error: cannot find input file: $f" >&2;}
24806    { (exit 1); exit 1; }; }
24807          fi;;
24808       esac
24809     done` || { (exit 1); exit 1; }
24810   # Remove the trailing spaces.
24811   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24812
24813 _ACEOF
24814
24815 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24816 # `conftest.undefs', that substitutes the proper values into
24817 # config.h.in to produce config.h.  The first handles `#define'
24818 # templates, and the second `#undef' templates.
24819 # And first: Protect against being on the right side of a sed subst in
24820 # config.status.  Protect against being in an unquoted here document
24821 # in config.status.
24822 rm -f conftest.defines conftest.undefs
24823 # Using a here document instead of a string reduces the quoting nightmare.
24824 # Putting comments in sed scripts is not portable.
24825 #
24826 # `end' is used to avoid that the second main sed command (meant for
24827 # 0-ary CPP macros) applies to n-ary macro definitions.
24828 # See the Autoconf documentation for `clear'.
24829 cat >confdef2sed.sed <<\_ACEOF
24830 s/[\\&,]/\\&/g
24831 s,[\\$`],\\&,g
24832 t clear
24833 : clear
24834 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24835 t end
24836 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24837 : end
24838 _ACEOF
24839 # If some macros were called several times there might be several times
24840 # the same #defines, which is useless.  Nevertheless, we may not want to
24841 # sort them, since we want the *last* AC-DEFINE to be honored.
24842 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24843 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24844 rm -f confdef2sed.sed
24845
24846 # This sed command replaces #undef with comments.  This is necessary, for
24847 # example, in the case of _POSIX_SOURCE, which is predefined and required
24848 # on some systems where configure will not decide to define it.
24849 cat >>conftest.undefs <<\_ACEOF
24850 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24851 _ACEOF
24852
24853 # Break up conftest.defines because some shells have a limit on the size
24854 # of here documents, and old seds have small limits too (100 cmds).
24855 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24856 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24857 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24858 echo '  :' >>$CONFIG_STATUS
24859 rm -f conftest.tail
24860 while grep . conftest.defines >/dev/null
24861 do
24862   # Write a limited-size here document to $tmp/defines.sed.
24863   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24864   # Speed up: don't consider the non `#define' lines.
24865   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24866   # Work around the forget-to-reset-the-flag bug.
24867   echo 't clr' >>$CONFIG_STATUS
24868   echo ': clr' >>$CONFIG_STATUS
24869   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24870   echo 'CEOF
24871   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24872   rm -f $tmp/in
24873   mv $tmp/out $tmp/in
24874 ' >>$CONFIG_STATUS
24875   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24876   rm -f conftest.defines
24877   mv conftest.tail conftest.defines
24878 done
24879 rm -f conftest.defines
24880 echo '  fi # grep' >>$CONFIG_STATUS
24881 echo >>$CONFIG_STATUS
24882
24883 # Break up conftest.undefs because some shells have a limit on the size
24884 # of here documents, and old seds have small limits too (100 cmds).
24885 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24886 rm -f conftest.tail
24887 while grep . conftest.undefs >/dev/null
24888 do
24889   # Write a limited-size here document to $tmp/undefs.sed.
24890   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24891   # Speed up: don't consider the non `#undef'
24892   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24893   # Work around the forget-to-reset-the-flag bug.
24894   echo 't clr' >>$CONFIG_STATUS
24895   echo ': clr' >>$CONFIG_STATUS
24896   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24897   echo 'CEOF
24898   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24899   rm -f $tmp/in
24900   mv $tmp/out $tmp/in
24901 ' >>$CONFIG_STATUS
24902   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24903   rm -f conftest.undefs
24904   mv conftest.tail conftest.undefs
24905 done
24906 rm -f conftest.undefs
24907
24908 cat >>$CONFIG_STATUS <<\_ACEOF
24909   # Let's still pretend it is `configure' which instantiates (i.e., don't
24910   # use $as_me), people would be surprised to read:
24911   #    /* config.h.  Generated by config.status.  */
24912   if test x"$ac_file" = x-; then
24913     echo "/* Generated by configure.  */" >$tmp/config.h
24914   else
24915     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24916   fi
24917   cat $tmp/in >>$tmp/config.h
24918   rm -f $tmp/in
24919   if test x"$ac_file" != x-; then
24920     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24921       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24922 echo "$as_me: $ac_file is unchanged" >&6;}
24923     else
24924       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24925 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24926          X"$ac_file" : 'X\(//\)[^/]' \| \
24927          X"$ac_file" : 'X\(//\)$' \| \
24928          X"$ac_file" : 'X\(/\)' \| \
24929          .     : '\(.\)' 2>/dev/null ||
24930 echo X"$ac_file" |
24931     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24932           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24933           /^X\(\/\/\)$/{ s//\1/; q; }
24934           /^X\(\/\).*/{ s//\1/; q; }
24935           s/.*/./; q'`
24936       { if $as_mkdir_p; then
24937     mkdir -p "$ac_dir"
24938   else
24939     as_dir="$ac_dir"
24940     as_dirs=
24941     while test ! -d "$as_dir"; do
24942       as_dirs="$as_dir $as_dirs"
24943       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24944 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24945          X"$as_dir" : 'X\(//\)[^/]' \| \
24946          X"$as_dir" : 'X\(//\)$' \| \
24947          X"$as_dir" : 'X\(/\)' \| \
24948          .     : '\(.\)' 2>/dev/null ||
24949 echo X"$as_dir" |
24950     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24951           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24952           /^X\(\/\/\)$/{ s//\1/; q; }
24953           /^X\(\/\).*/{ s//\1/; q; }
24954           s/.*/./; q'`
24955     done
24956     test ! -n "$as_dirs" || mkdir $as_dirs
24957   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24958 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24959    { (exit 1); exit 1; }; }; }
24960
24961       rm -f $ac_file
24962       mv $tmp/config.h $ac_file
24963     fi
24964   else
24965     cat $tmp/config.h
24966     rm -f $tmp/config.h
24967   fi
24968 done
24969 _ACEOF
24970 cat >>$CONFIG_STATUS <<\_ACEOF
24971
24972 #
24973 # CONFIG_COMMANDS section.
24974 #
24975 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24976   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24977   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24978   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24979 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24980          X"$ac_dest" : 'X\(//\)[^/]' \| \
24981          X"$ac_dest" : 'X\(//\)$' \| \
24982          X"$ac_dest" : 'X\(/\)' \| \
24983          .     : '\(.\)' 2>/dev/null ||
24984 echo X"$ac_dest" |
24985     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24986           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24987           /^X\(\/\/\)$/{ s//\1/; q; }
24988           /^X\(\/\).*/{ s//\1/; q; }
24989           s/.*/./; q'`
24990   { if $as_mkdir_p; then
24991     mkdir -p "$ac_dir"
24992   else
24993     as_dir="$ac_dir"
24994     as_dirs=
24995     while test ! -d "$as_dir"; do
24996       as_dirs="$as_dir $as_dirs"
24997       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24998 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24999          X"$as_dir" : 'X\(//\)[^/]' \| \
25000          X"$as_dir" : 'X\(//\)$' \| \
25001          X"$as_dir" : 'X\(/\)' \| \
25002          .     : '\(.\)' 2>/dev/null ||
25003 echo X"$as_dir" |
25004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25006           /^X\(\/\/\)$/{ s//\1/; q; }
25007           /^X\(\/\).*/{ s//\1/; q; }
25008           s/.*/./; q'`
25009     done
25010     test ! -n "$as_dirs" || mkdir $as_dirs
25011   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25012 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25013    { (exit 1); exit 1; }; }; }
25014
25015   ac_builddir=.
25016
25017 if test "$ac_dir" != .; then
25018   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25019   # A "../" for each directory in $ac_dir_suffix.
25020   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25021 else
25022   ac_dir_suffix= ac_top_builddir=
25023 fi
25024
25025 case $srcdir in
25026   .)  # No --srcdir option.  We are building in place.
25027     ac_srcdir=.
25028     if test -z "$ac_top_builddir"; then
25029        ac_top_srcdir=.
25030     else
25031        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25032     fi ;;
25033   [\\/]* | ?:[\\/]* )  # Absolute path.
25034     ac_srcdir=$srcdir$ac_dir_suffix;
25035     ac_top_srcdir=$srcdir ;;
25036   *) # Relative path.
25037     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25038     ac_top_srcdir=$ac_top_builddir$srcdir ;;
25039 esac
25040
25041 # Do not use `cd foo && pwd` to compute absolute paths, because
25042 # the directories may not exist.
25043 case `pwd` in
25044 .) ac_abs_builddir="$ac_dir";;
25045 *)
25046   case "$ac_dir" in
25047   .) ac_abs_builddir=`pwd`;;
25048   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25049   *) ac_abs_builddir=`pwd`/"$ac_dir";;
25050   esac;;
25051 esac
25052 case $ac_abs_builddir in
25053 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25054 *)
25055   case ${ac_top_builddir}. in
25056   .) ac_abs_top_builddir=$ac_abs_builddir;;
25057   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25058   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25059   esac;;
25060 esac
25061 case $ac_abs_builddir in
25062 .) ac_abs_srcdir=$ac_srcdir;;
25063 *)
25064   case $ac_srcdir in
25065   .) ac_abs_srcdir=$ac_abs_builddir;;
25066   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25067   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25068   esac;;
25069 esac
25070 case $ac_abs_builddir in
25071 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25072 *)
25073   case $ac_top_srcdir in
25074   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25075   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25076   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25077   esac;;
25078 esac
25079
25080
25081   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25082 echo "$as_me: executing $ac_dest commands" >&6;}
25083   case $ac_dest in
25084     default-1 )
25085     for ac_file in $CONFIG_FILES; do
25086       # Support "outfile[:infile[:infile...]]"
25087       case "$ac_file" in
25088         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25089       esac
25090       # PO directories have a Makefile.in generated from Makefile.in.in.
25091       case "$ac_file" in */Makefile.in)
25092         # Adjust a relative srcdir.
25093         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25094         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25095         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25096         # In autoconf-2.13 it is called $ac_given_srcdir.
25097         # In autoconf-2.50 it is called $srcdir.
25098         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25099         case "$ac_given_srcdir" in
25100           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25101           /*) top_srcdir="$ac_given_srcdir" ;;
25102           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25103         esac
25104         # Treat a directory as a PO directory if and only if it has a
25105         # POTFILES.in file. This allows packages to have multiple PO
25106         # directories under different names or in different locations.
25107         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25108           rm -f "$ac_dir/POTFILES"
25109           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25110           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25111           POMAKEFILEDEPS="POTFILES.in"
25112           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25113           # on $ac_dir but don't depend on user-specified configuration
25114           # parameters.
25115           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25116             # The LINGUAS file contains the set of available languages.
25117             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25118               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25119             fi
25120             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25121             # Hide the ALL_LINGUAS assigment from automake.
25122             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25123             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25124           else
25125             # The set of available languages was given in configure.in.
25126             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25127           fi
25128           # Compute POFILES
25129           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25130           # Compute UPDATEPOFILES
25131           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25132           # Compute DUMMYPOFILES
25133           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25134           # Compute GMOFILES
25135           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25136           case "$ac_given_srcdir" in
25137             .) srcdirpre= ;;
25138             *) srcdirpre='$(srcdir)/' ;;
25139           esac
25140           POFILES=
25141           UPDATEPOFILES=
25142           DUMMYPOFILES=
25143           GMOFILES=
25144           for lang in $ALL_LINGUAS; do
25145             POFILES="$POFILES $srcdirpre$lang.po"
25146             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25147             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25148             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25149           done
25150           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25151           # environment variable.
25152           INST_LINGUAS=
25153           if test -n "$ALL_LINGUAS"; then
25154             for presentlang in $ALL_LINGUAS; do
25155               useit=no
25156               if test "%UNSET%" != "$LINGUAS"; then
25157                 desiredlanguages="$LINGUAS"
25158               else
25159                 desiredlanguages="$ALL_LINGUAS"
25160               fi
25161               for desiredlang in $desiredlanguages; do
25162                 # Use the presentlang catalog if desiredlang is
25163                 #   a. equal to presentlang, or
25164                 #   b. a variant of presentlang (because in this case,
25165                 #      presentlang can be used as a fallback for messages
25166                 #      which are not translated in the desiredlang catalog).
25167                 case "$desiredlang" in
25168                   "$presentlang"*) useit=yes;;
25169                 esac
25170               done
25171               if test $useit = yes; then
25172                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25173               fi
25174             done
25175           fi
25176           CATALOGS=
25177           if test -n "$INST_LINGUAS"; then
25178             for lang in $INST_LINGUAS; do
25179               CATALOGS="$CATALOGS $lang.gmo"
25180             done
25181           fi
25182           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25183           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"
25184           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25185             if test -f "$f"; then
25186               case "$f" in
25187                 *.orig | *.bak | *~) ;;
25188                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25189               esac
25190             fi
25191           done
25192         fi
25193         ;;
25194       esac
25195     done ;;
25196     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25197  ;;
25198   esac
25199 done
25200 _ACEOF
25201
25202 cat >>$CONFIG_STATUS <<\_ACEOF
25203
25204 { (exit 0); exit 0; }
25205 _ACEOF
25206 chmod +x $CONFIG_STATUS
25207 ac_clean_files=$ac_clean_files_save
25208
25209
25210 # configure is writing to config.log, and then calls config.status.
25211 # config.status does its own redirection, appending to config.log.
25212 # Unfortunately, on DOS this fails, as config.log is still kept open
25213 # by configure, so config.status won't be able to write to it; its
25214 # output is simply discarded.  So we exec the FD to /dev/null,
25215 # effectively closing config.log, so it can be properly (re)opened and
25216 # appended to by config.status.  When coming back to configure, we
25217 # need to make the FD available again.
25218 if test "$no_create" != yes; then
25219   ac_cs_success=:
25220   ac_config_status_args=
25221   test "$silent" = yes &&
25222     ac_config_status_args="$ac_config_status_args --quiet"
25223   exec 5>/dev/null
25224   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25225   exec 5>>config.log
25226   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25227   # would make configure fail if this is the last instruction.
25228   $ac_cs_success || { (exit 1); exit 1; }
25229 fi
25230
25231
25232 cd scripts
25233 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25234 chmod 755 dvd-writepart dvd-freespace
25235 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25236 cd ..
25237
25238 c=src/cats
25239
25240 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
25241 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
25242
25243 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
25244 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
25245
25246 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
25247 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
25248
25249 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
25250 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
25251
25252 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
25253 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
25254
25255 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25256 chmod 755 $c/sqlite
25257 chmod 755 $c/mysql
25258
25259 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25260    largefile_support="yes"
25261 fi
25262
25263 #
25264 # A whole lot of hand springs to get the compiler version.
25265 #  This is because gcc changed the output in version 3.0
25266 #
25267 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25268 if test "x${CCVERSION}" = "x" ; then
25269   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25270 fi
25271 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25272 if test x"${CXXVERSION}" = x ; then
25273   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25274 fi
25275
25276 if test "x${subsysdir}" = "x${sbindir}" ; then
25277    echo " "
25278    echo " "
25279    echo "You have set --sbindir and --with-subsys-dir"
25280    echo "  both equal to: ${subsysdir} "
25281    echo "  This is not permitted. Please reconfigure."
25282    echo " "
25283    echo "Aborting configuration ..."
25284    echo " "
25285    echo " "
25286    exit 1
25287 fi
25288
25289 if test "x${db_name}" = "xInternal" ; then
25290    echo " "
25291    echo " "
25292    echo "You have not specified either --enable-client-only or one of the"
25293    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25294    echo "  This is not permitted. Please reconfigure."
25295    echo " "
25296    echo "Aborting the configuration ..."
25297    echo " "
25298    echo " "
25299    exit 1
25300 fi
25301
25302 echo "
25303 Configuration on `date`:
25304
25305   Host:                       $host -- ${DISTNAME} ${DISTVER}
25306   Bacula version:             ${VERSION} (${DATE})
25307   Source code location:       ${srcdir}
25308   Install binaries:           ${sbindir}
25309   Install config files:       ${sysconfdir}
25310   Scripts directory:          ${scriptdir}
25311   Working directory:          ${working_dir}
25312   PID directory:              ${piddir}
25313   Subsys directory:           ${subsysdir}
25314   Man directory:              ${mandir}
25315   Data directory:             ${datadir}
25316   C Compiler:                 ${CC} ${CCVERSION}
25317   C++ Compiler:               ${CXX} ${CXXVERSION}
25318   Compiler flags:             ${WCFLAGS} ${CFLAGS}
25319   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
25320   Libraries:                  ${LIBS}
25321   Statically Linked Tools:    ${support_static_tools}
25322   Statically Linked FD:       ${support_static_fd}
25323   Statically Linked SD:       ${support_static_sd}
25324   Statically Linked DIR:      ${support_static_dir}
25325   Statically Linked CONS:     ${support_static_cons}
25326   Database type:              ${db_name}
25327   Database lib:               ${DB_LIBS}
25328
25329   Job Output Email:           ${job_email}
25330   Traceback Email:            ${dump_email}
25331   SMTP Host Address:          ${smtp_host}
25332
25333   Director Port:              ${dir_port}
25334   File daemon Port:           ${fd_port}
25335   Storage daemon Port:        ${sd_port}
25336
25337   Director User:              ${dir_user}
25338   Director Group:             ${dir_group}
25339   Storage Daemon User:        ${sd_user}
25340   Storage DaemonGroup:        ${sd_group}
25341   File Daemon User:           ${fd_user}
25342   File Daemon Group:          ${fd_group}
25343
25344   SQL binaries Directory      ${SQL_BINDIR}
25345
25346   Large file support:         $largefile_support
25347   Bacula conio support:       ${got_conio} ${CONS_LIBS}
25348   readline support:           ${got_readline} ${PRTREADLINE_SRC}
25349   TCP Wrappers support:       ${TCPW_MSG}
25350   TLS support:                ${support_tls}
25351   ZLIB support:               ${have_zlib}
25352   enable-smartalloc:          ${support_smartalloc}
25353   enable-gnome:               ${support_gnome} ${gnome_version}
25354   enable-wx-console:          ${support_wx_console} ${wx_version}
25355   enable-tray-monitor:        ${support_tray_monitor}
25356   client-only:                ${build_client_only}
25357   build-dird:                 ${build_dird}
25358   build-stored:               ${build_stored}
25359   ACL support:                ${have_acl}
25360   Python support:             ${support_python} ${PYTHON_LIBS}
25361
25362   " > config.out
25363
25364 cat config.out