]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Mark translatable strings in all source files.
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE SET_MAKE MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
789
790 #
791 # Report the --help message.
792 #
793 if test "$ac_init_help" = "long"; then
794   # Omit some internal or obsolete options to make the list less imposing.
795   # This message is too long to be a string in the A/UX 3.1 sh.
796   cat <<_ACEOF
797 \`configure' configures this package to adapt to many kinds of systems.
798
799 Usage: $0 [OPTION]... [VAR=VALUE]...
800
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE.  See below for descriptions of some of the useful variables.
803
804 Defaults for the options are specified in brackets.
805
806 Configuration:
807   -h, --help              display this help and exit
808       --help=short        display options specific to this package
809       --help=recursive    display the short help of all the included packages
810   -V, --version           display version information and exit
811   -q, --quiet, --silent   do not print \`checking...' messages
812       --cache-file=FILE   cache test results in FILE [disabled]
813   -C, --config-cache      alias for \`--cache-file=config.cache'
814   -n, --no-create         do not create output files
815       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
816
817 _ACEOF
818
819   cat <<_ACEOF
820 Installation directories:
821   --prefix=PREFIX         install architecture-independent files in PREFIX
822                           [$ac_default_prefix]
823   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
824                           [PREFIX]
825
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
830
831 For better control, use the options below.
832
833 Fine tuning of the installation directories:
834   --bindir=DIR           user executables [EPREFIX/bin]
835   --sbindir=DIR          system admin executables [EPREFIX/sbin]
836   --libexecdir=DIR       program executables [EPREFIX/libexec]
837   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
838   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
839   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
840   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
841   --libdir=DIR           object code libraries [EPREFIX/lib]
842   --includedir=DIR       C header files [PREFIX/include]
843   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
844   --infodir=DIR          info documentation [PREFIX/info]
845   --mandir=DIR           man documentation [PREFIX/man]
846 _ACEOF
847
848   cat <<\_ACEOF
849
850 X features:
851   --x-includes=DIR    X include files are in DIR
852   --x-libraries=DIR   X library files are in DIR
853
854 System types:
855   --build=BUILD     configure for building on BUILD [guessed]
856   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
857 _ACEOF
858 fi
859
860 if test -n "$ac_init_help"; then
861
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --disable-nls           do not use Native Language Support
868   --disable-rpath         do not hardcode runtime library paths
869   --enable-gnome          enable build of gnome-console GUI disabled
870   --enable-wx-console     enable build of wxWidgets console disabled
871   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
872   --enable-smartalloc     enable smartalloc debugging support disabled
873   --enable-static-tools   enable static tape tools disabled
874   --enable-static-fd      enable static File daemon disabled
875   --enable-static-sd      enable static Storage daemon disabled
876   --enable-static-dir     enable static Director disabled
877   --enable-static-cons    enable static Console disabled
878   --enable-client-only    build client (File daemon) only disabled
879   --disable-conio            disable conio support enabled
880
881   --disable-readline      disable readline support disable
882
883   --disable-largefile     omit support for large files
884
885 Optional Packages:
886   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
887   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
888   --with-gnu-ld           assume the C compiler uses GNU ld default=no
889   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
890   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
891   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
892   --without-libintl-prefix     don't search for libintl in includedir and libdir
893  --with-readline=DIR             specify readline library directory
894
895   --with-python=DIR       Include Python support.  DIR is the Python base
896                           install directory, default is to search through
897                           a number of common places for the Python files.
898   --with-tcp-wrappers=DIR        enable tcpwrappers support
899   --with-openssl[=DIR]
900                           Include OpenSSL support. DIR is the OpenSSL base
901   --with-working-dir=PATH        specify path of Bacula working directory
902   --with-scriptdir=PATH    specify path of Bacula scripts directory
903   --with-dump-email=EMAIL        dump email address
904   --with-job-email=EMAIL         job output email address
905   --with-smtp-host=HOST          SMTP mail host address
906   --with-pid-dir=PATH            specify location of Bacula pid files
907   --with-subsys-dir=PATH         specify location of Bacula subsys file
908   --with-baseport=PORT           specify base port address for daemons
909   --with-dir-password=PASSWORD   specify Director's password
910   --with-fd-password=PASSWORD    specify Client's password
911   --with-sd-password=PASSWORD    specify Storage daemon's password
912   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
913   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
914   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
915   --with-dir-user=USER           specify user for Director daemon
916   --with-dir-group=GROUP                 specify group for Director daemon
917   --with-sd-user=USER            specify user for Storage daemon
918   --with-sd-group=GROUP          specify group for Storage daemon
919   --with-fd-user=USER            specify user for File daemon
920   --with-fd-group=GROUP          specify group for File daemon
921   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
922   --with-postgresql=DIR      Include PostgreSQL support.  DIR is the PostgreSQL
923                           base install directory, defaults to /usr/local/pgsql
924
925   --with-mysql=DIR      Include MySQL support.  DIR is the MySQL base
926                           install directory, default is to search through
927                           a number of common places for the MySQL files.
928
929   --with-embedded-mysql=DIR Include MySQL support.  DIR is the MySQL base
930                           install directory, default is to search through
931                           a number of common places for the MySQL files.
932
933   --with-sqlite3=DIR    Include SQLite3 support.  DIR is the SQLite3 base
934                           install directory, default is to search through
935                           a number of common places for the SQLite3 files.
936
937   --with-sqlite=DIR     Include SQLite support.  DIR is the SQLite base
938                           install directory, default is to search through
939                           a number of common places for the SQLite files.
940   --with-x                use the X Window System
941
942 Some influential environment variables:
943   CC          C compiler command
944   CFLAGS      C compiler flags
945   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
946               nonstandard directory <lib dir>
947   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
948               headers in a nonstandard directory <include dir>
949   CXX         C++ compiler command
950   CXXFLAGS    C++ compiler flags
951   CPP         C preprocessor
952   WXCONFIG    wx-config command. On some systems, you must set it to
953               wx-config-2.6 to use wxWidgets 2.6.
954   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
955
956 Use these variables to override the choices made by `configure' or to help
957 it to find libraries and programs with nonstandard names/locations.
958
959 _ACEOF
960 fi
961
962 if test "$ac_init_help" = "recursive"; then
963   # If there are subdirs, report their specific --help.
964   ac_popdir=`pwd`
965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
966     test -d $ac_dir || continue
967     ac_builddir=.
968
969 if test "$ac_dir" != .; then
970   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
971   # A "../" for each directory in $ac_dir_suffix.
972   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
973 else
974   ac_dir_suffix= ac_top_builddir=
975 fi
976
977 case $srcdir in
978   .)  # No --srcdir option.  We are building in place.
979     ac_srcdir=.
980     if test -z "$ac_top_builddir"; then
981        ac_top_srcdir=.
982     else
983        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
984     fi ;;
985   [\\/]* | ?:[\\/]* )  # Absolute path.
986     ac_srcdir=$srcdir$ac_dir_suffix;
987     ac_top_srcdir=$srcdir ;;
988   *) # Relative path.
989     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
990     ac_top_srcdir=$ac_top_builddir$srcdir ;;
991 esac
992
993 # Do not use `cd foo && pwd` to compute absolute paths, because
994 # the directories may not exist.
995 case `pwd` in
996 .) ac_abs_builddir="$ac_dir";;
997 *)
998   case "$ac_dir" in
999   .) ac_abs_builddir=`pwd`;;
1000   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1001   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1002   esac;;
1003 esac
1004 case $ac_abs_builddir in
1005 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1006 *)
1007   case ${ac_top_builddir}. in
1008   .) ac_abs_top_builddir=$ac_abs_builddir;;
1009   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1010   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1011   esac;;
1012 esac
1013 case $ac_abs_builddir in
1014 .) ac_abs_srcdir=$ac_srcdir;;
1015 *)
1016   case $ac_srcdir in
1017   .) ac_abs_srcdir=$ac_abs_builddir;;
1018   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1019   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1020   esac;;
1021 esac
1022 case $ac_abs_builddir in
1023 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1024 *)
1025   case $ac_top_srcdir in
1026   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1027   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1028   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1029   esac;;
1030 esac
1031
1032     cd $ac_dir
1033     # Check for guested configure; otherwise get Cygnus style configure.
1034     if test -f $ac_srcdir/configure.gnu; then
1035       echo
1036       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1037     elif test -f $ac_srcdir/configure; then
1038       echo
1039       $SHELL $ac_srcdir/configure  --help=recursive
1040     elif test -f $ac_srcdir/configure.ac ||
1041            test -f $ac_srcdir/configure.in; then
1042       echo
1043       $ac_configure --help
1044     else
1045       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1046     fi
1047     cd $ac_popdir
1048   done
1049 fi
1050
1051 test -n "$ac_init_help" && exit 0
1052 if $ac_init_version; then
1053   cat <<\_ACEOF
1054
1055 Copyright (C) 2003 Free Software Foundation, Inc.
1056 This configure script is free software; the Free Software Foundation
1057 gives unlimited permission to copy, distribute and modify it.
1058 _ACEOF
1059   exit 0
1060 fi
1061 exec 5>config.log
1062 cat >&5 <<_ACEOF
1063 This file contains any messages produced by compilers while
1064 running configure, to aid debugging if configure makes a mistake.
1065
1066 It was created by $as_me, which was
1067 generated by GNU Autoconf 2.59.  Invocation command line was
1068
1069   $ $0 $@
1070
1071 _ACEOF
1072 {
1073 cat <<_ASUNAME
1074 ## --------- ##
1075 ## Platform. ##
1076 ## --------- ##
1077
1078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1083
1084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1085 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1086
1087 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1088 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1090 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1091 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1092 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1093 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1094
1095 _ASUNAME
1096
1097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1098 for as_dir in $PATH
1099 do
1100   IFS=$as_save_IFS
1101   test -z "$as_dir" && as_dir=.
1102   echo "PATH: $as_dir"
1103 done
1104
1105 } >&5
1106
1107 cat >&5 <<_ACEOF
1108
1109
1110 ## ----------- ##
1111 ## Core tests. ##
1112 ## ----------- ##
1113
1114 _ACEOF
1115
1116
1117 # Keep a trace of the command line.
1118 # Strip out --no-create and --no-recursion so they do not pile up.
1119 # Strip out --silent because we don't want to record it for future runs.
1120 # Also quote any args containing shell meta-characters.
1121 # Make two passes to allow for proper duplicate-argument suppression.
1122 ac_configure_args=
1123 ac_configure_args0=
1124 ac_configure_args1=
1125 ac_sep=
1126 ac_must_keep_next=false
1127 for ac_pass in 1 2
1128 do
1129   for ac_arg
1130   do
1131     case $ac_arg in
1132     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1133     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1134     | -silent | --silent | --silen | --sile | --sil)
1135       continue ;;
1136     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1137       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1138     esac
1139     case $ac_pass in
1140     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1141     2)
1142       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1143       if test $ac_must_keep_next = true; then
1144         ac_must_keep_next=false # Got value, back to normal.
1145       else
1146         case $ac_arg in
1147           *=* | --config-cache | -C | -disable-* | --disable-* \
1148           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1149           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1150           | -with-* | --with-* | -without-* | --without-* | --x)
1151             case "$ac_configure_args0 " in
1152               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1153             esac
1154             ;;
1155           -* ) ac_must_keep_next=true ;;
1156         esac
1157       fi
1158       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1159       # Get rid of the leading space.
1160       ac_sep=" "
1161       ;;
1162     esac
1163   done
1164 done
1165 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1166 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1167
1168 # When interrupted or exit'd, cleanup temporary files, and complete
1169 # config.log.  We remove comments because anyway the quotes in there
1170 # would cause problems or look ugly.
1171 # WARNING: Be sure not to use single quotes in there, as some shells,
1172 # such as our DU 5.0 friend, will then `close' the trap.
1173 trap 'exit_status=$?
1174   # Save into config.log some information that might help in debugging.
1175   {
1176     echo
1177
1178     cat <<\_ASBOX
1179 ## ---------------- ##
1180 ## Cache variables. ##
1181 ## ---------------- ##
1182 _ASBOX
1183     echo
1184     # The following way of writing the cache mishandles newlines in values,
1185 {
1186   (set) 2>&1 |
1187     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1188     *ac_space=\ *)
1189       sed -n \
1190         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1191           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1192       ;;
1193     *)
1194       sed -n \
1195         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1196       ;;
1197     esac;
1198 }
1199     echo
1200
1201     cat <<\_ASBOX
1202 ## ----------------- ##
1203 ## Output variables. ##
1204 ## ----------------- ##
1205 _ASBOX
1206     echo
1207     for ac_var in $ac_subst_vars
1208     do
1209       eval ac_val=$`echo $ac_var`
1210       echo "$ac_var='"'"'$ac_val'"'"'"
1211     done | sort
1212     echo
1213
1214     if test -n "$ac_subst_files"; then
1215       cat <<\_ASBOX
1216 ## ------------- ##
1217 ## Output files. ##
1218 ## ------------- ##
1219 _ASBOX
1220       echo
1221       for ac_var in $ac_subst_files
1222       do
1223         eval ac_val=$`echo $ac_var`
1224         echo "$ac_var='"'"'$ac_val'"'"'"
1225       done | sort
1226       echo
1227     fi
1228
1229     if test -s confdefs.h; then
1230       cat <<\_ASBOX
1231 ## ----------- ##
1232 ## confdefs.h. ##
1233 ## ----------- ##
1234 _ASBOX
1235       echo
1236       sed "/^$/d" confdefs.h | sort
1237       echo
1238     fi
1239     test "$ac_signal" != 0 &&
1240       echo "$as_me: caught signal $ac_signal"
1241     echo "$as_me: exit $exit_status"
1242   } >&5
1243   rm -f core *.core &&
1244   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1245     exit $exit_status
1246      ' 0
1247 for ac_signal in 1 2 13 15; do
1248   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1249 done
1250 ac_signal=0
1251
1252 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1253 rm -rf conftest* confdefs.h
1254 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1255 echo >confdefs.h
1256
1257 # Predefined preprocessor variables.
1258
1259 cat >>confdefs.h <<_ACEOF
1260 #define PACKAGE_NAME "$PACKAGE_NAME"
1261 _ACEOF
1262
1263
1264 cat >>confdefs.h <<_ACEOF
1265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1266 _ACEOF
1267
1268
1269 cat >>confdefs.h <<_ACEOF
1270 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1271 _ACEOF
1272
1273
1274 cat >>confdefs.h <<_ACEOF
1275 #define PACKAGE_STRING "$PACKAGE_STRING"
1276 _ACEOF
1277
1278
1279 cat >>confdefs.h <<_ACEOF
1280 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1281 _ACEOF
1282
1283
1284 # Let the site file select an alternate cache file if it wants to.
1285 # Prefer explicitly selected file to automatically selected ones.
1286 if test -z "$CONFIG_SITE"; then
1287   if test "x$prefix" != xNONE; then
1288     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1289   else
1290     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1291   fi
1292 fi
1293 for ac_site_file in $CONFIG_SITE; do
1294   if test -r "$ac_site_file"; then
1295     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1296 echo "$as_me: loading site script $ac_site_file" >&6;}
1297     sed 's/^/| /' "$ac_site_file" >&5
1298     . "$ac_site_file"
1299   fi
1300 done
1301
1302 if test -r "$cache_file"; then
1303   # Some versions of bash will fail to source /dev/null (special
1304   # files actually), so we avoid doing that.
1305   if test -f "$cache_file"; then
1306     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1307 echo "$as_me: loading cache $cache_file" >&6;}
1308     case $cache_file in
1309       [\\/]* | ?:[\\/]* ) . $cache_file;;
1310       *)                      . ./$cache_file;;
1311     esac
1312   fi
1313 else
1314   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1315 echo "$as_me: creating cache $cache_file" >&6;}
1316   >$cache_file
1317 fi
1318
1319 # Check that the precious variables saved in the cache have kept the same
1320 # value.
1321 ac_cache_corrupted=false
1322 for ac_var in `(set) 2>&1 |
1323                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1324   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1325   eval ac_new_set=\$ac_env_${ac_var}_set
1326   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1327   eval ac_new_val="\$ac_env_${ac_var}_value"
1328   case $ac_old_set,$ac_new_set in
1329     set,)
1330       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1331 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1332       ac_cache_corrupted=: ;;
1333     ,set)
1334       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1335 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1336       ac_cache_corrupted=: ;;
1337     ,);;
1338     *)
1339       if test "x$ac_old_val" != "x$ac_new_val"; then
1340         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1341 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1342         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1343 echo "$as_me:   former value:  $ac_old_val" >&2;}
1344         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1345 echo "$as_me:   current value: $ac_new_val" >&2;}
1346         ac_cache_corrupted=:
1347       fi;;
1348   esac
1349   # Pass precious variables to config.status.
1350   if test "$ac_new_set" = set; then
1351     case $ac_new_val in
1352     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1353       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1354     *) ac_arg=$ac_var=$ac_new_val ;;
1355     esac
1356     case " $ac_configure_args " in
1357       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1358       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1359     esac
1360   fi
1361 done
1362 if $ac_cache_corrupted; then
1363   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1364 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1365   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1366 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1367    { (exit 1); exit 1; }; }
1368 fi
1369
1370 ac_ext=c
1371 ac_cpp='$CPP $CPPFLAGS'
1372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394 BUILD_DIR=`pwd`
1395 cd ..
1396 TOP_DIR=`pwd`
1397 cd ${BUILD_DIR}
1398
1399 ac_aux_dir=
1400 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1401   if test -f $ac_dir/install-sh; then
1402     ac_aux_dir=$ac_dir
1403     ac_install_sh="$ac_aux_dir/install-sh -c"
1404     break
1405   elif test -f $ac_dir/install.sh; then
1406     ac_aux_dir=$ac_dir
1407     ac_install_sh="$ac_aux_dir/install.sh -c"
1408     break
1409   elif test -f $ac_dir/shtool; then
1410     ac_aux_dir=$ac_dir
1411     ac_install_sh="$ac_aux_dir/shtool install -c"
1412     break
1413   fi
1414 done
1415 if test -z "$ac_aux_dir"; then
1416   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1417 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1418    { (exit 1); exit 1; }; }
1419 fi
1420 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1421 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1422 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1423
1424           ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425
1426
1427
1428
1429
1430 for ac_prog in true
1431 do
1432   # Extract the first word of "$ac_prog", so it can be a program name with args.
1433 set dummy $ac_prog; ac_word=$2
1434 echo "$as_me:$LINENO: checking for $ac_word" >&5
1435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1436 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1437   echo $ECHO_N "(cached) $ECHO_C" >&6
1438 else
1439   case $TRUEPRG in
1440   [\\/]* | ?:[\\/]*)
1441   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1442   ;;
1443   *)
1444   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
1448   test -z "$as_dir" && as_dir=.
1449   for ac_exec_ext in '' $ac_executable_extensions; do
1450   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1452     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1453     break 2
1454   fi
1455 done
1456 done
1457
1458   ;;
1459 esac
1460 fi
1461 TRUEPRG=$ac_cv_path_TRUEPRG
1462
1463 if test -n "$TRUEPRG"; then
1464   echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1465 echo "${ECHO_T}$TRUEPRG" >&6
1466 else
1467   echo "$as_me:$LINENO: result: no" >&5
1468 echo "${ECHO_T}no" >&6
1469 fi
1470
1471   test -n "$TRUEPRG" && break
1472 done
1473 test -n "$TRUEPRG" || TRUEPRG=":"
1474
1475 for ac_prog in false
1476 do
1477   # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1482   echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484   case $FALSEPRG in
1485   [\\/]* | ?:[\\/]*)
1486   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1487   ;;
1488   *)
1489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503   ;;
1504 esac
1505 fi
1506 FALSEPRG=$ac_cv_path_FALSEPRG
1507
1508 if test -n "$FALSEPRG"; then
1509   echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1510 echo "${ECHO_T}$FALSEPRG" >&6
1511 else
1512   echo "$as_me:$LINENO: result: no" >&5
1513 echo "${ECHO_T}no" >&6
1514 fi
1515
1516   test -n "$FALSEPRG" && break
1517 done
1518 test -n "$FALSEPRG" || FALSEPRG=":"
1519
1520
1521 #AC_CANONICAL_HOST
1522
1523 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1524 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1525 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1526 echo "configuring for bacula $VERSION ($DATE)"
1527
1528
1529
1530 ac_ext=c
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535 if test -n "$ac_tool_prefix"; then
1536   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1537 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1538 echo "$as_me:$LINENO: checking for $ac_word" >&5
1539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1540 if test "${ac_cv_prog_CC+set}" = set; then
1541   echo $ECHO_N "(cached) $ECHO_C" >&6
1542 else
1543   if test -n "$CC"; then
1544   ac_cv_prog_CC="$CC" # Let the user override the test.
1545 else
1546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 for as_dir in $PATH
1548 do
1549   IFS=$as_save_IFS
1550   test -z "$as_dir" && as_dir=.
1551   for ac_exec_ext in '' $ac_executable_extensions; do
1552   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1553     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555     break 2
1556   fi
1557 done
1558 done
1559
1560 fi
1561 fi
1562 CC=$ac_cv_prog_CC
1563 if test -n "$CC"; then
1564   echo "$as_me:$LINENO: result: $CC" >&5
1565 echo "${ECHO_T}$CC" >&6
1566 else
1567   echo "$as_me:$LINENO: result: no" >&5
1568 echo "${ECHO_T}no" >&6
1569 fi
1570
1571 fi
1572 if test -z "$ac_cv_prog_CC"; then
1573   ac_ct_CC=$CC
1574   # Extract the first word of "gcc", so it can be a program name with args.
1575 set dummy gcc; ac_word=$2
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1579   echo $ECHO_N "(cached) $ECHO_C" >&6
1580 else
1581   if test -n "$ac_ct_CC"; then
1582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1583 else
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 for as_dir in $PATH
1586 do
1587   IFS=$as_save_IFS
1588   test -z "$as_dir" && as_dir=.
1589   for ac_exec_ext in '' $ac_executable_extensions; do
1590   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1591     ac_cv_prog_ac_ct_CC="gcc"
1592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593     break 2
1594   fi
1595 done
1596 done
1597
1598 fi
1599 fi
1600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1601 if test -n "$ac_ct_CC"; then
1602   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1603 echo "${ECHO_T}$ac_ct_CC" >&6
1604 else
1605   echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 fi
1608
1609   CC=$ac_ct_CC
1610 else
1611   CC="$ac_cv_prog_CC"
1612 fi
1613
1614 if test -z "$CC"; then
1615   if test -n "$ac_tool_prefix"; then
1616   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1617 set dummy ${ac_tool_prefix}cc; ac_word=$2
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1620 if test "${ac_cv_prog_CC+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   if test -n "$CC"; then
1624   ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1627 for as_dir in $PATH
1628 do
1629   IFS=$as_save_IFS
1630   test -z "$as_dir" && as_dir=.
1631   for ac_exec_ext in '' $ac_executable_extensions; do
1632   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1633     ac_cv_prog_CC="${ac_tool_prefix}cc"
1634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635     break 2
1636   fi
1637 done
1638 done
1639
1640 fi
1641 fi
1642 CC=$ac_cv_prog_CC
1643 if test -n "$CC"; then
1644   echo "$as_me:$LINENO: result: $CC" >&5
1645 echo "${ECHO_T}$CC" >&6
1646 else
1647   echo "$as_me:$LINENO: result: no" >&5
1648 echo "${ECHO_T}no" >&6
1649 fi
1650
1651 fi
1652 if test -z "$ac_cv_prog_CC"; then
1653   ac_ct_CC=$CC
1654   # Extract the first word of "cc", so it can be a program name with args.
1655 set dummy cc; ac_word=$2
1656 echo "$as_me:$LINENO: checking for $ac_word" >&5
1657 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1658 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1659   echo $ECHO_N "(cached) $ECHO_C" >&6
1660 else
1661   if test -n "$ac_ct_CC"; then
1662   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1663 else
1664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1665 for as_dir in $PATH
1666 do
1667   IFS=$as_save_IFS
1668   test -z "$as_dir" && as_dir=.
1669   for ac_exec_ext in '' $ac_executable_extensions; do
1670   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1671     ac_cv_prog_ac_ct_CC="cc"
1672     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673     break 2
1674   fi
1675 done
1676 done
1677
1678 fi
1679 fi
1680 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1681 if test -n "$ac_ct_CC"; then
1682   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1683 echo "${ECHO_T}$ac_ct_CC" >&6
1684 else
1685   echo "$as_me:$LINENO: result: no" >&5
1686 echo "${ECHO_T}no" >&6
1687 fi
1688
1689   CC=$ac_ct_CC
1690 else
1691   CC="$ac_cv_prog_CC"
1692 fi
1693
1694 fi
1695 if test -z "$CC"; then
1696   # Extract the first word of "cc", so it can be a program name with args.
1697 set dummy cc; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$CC"; then
1704   ac_cv_prog_CC="$CC" # Let the user override the test.
1705 else
1706   ac_prog_rejected=no
1707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1708 for as_dir in $PATH
1709 do
1710   IFS=$as_save_IFS
1711   test -z "$as_dir" && as_dir=.
1712   for ac_exec_ext in '' $ac_executable_extensions; do
1713   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1714     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1715        ac_prog_rejected=yes
1716        continue
1717      fi
1718     ac_cv_prog_CC="cc"
1719     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720     break 2
1721   fi
1722 done
1723 done
1724
1725 if test $ac_prog_rejected = yes; then
1726   # We found a bogon in the path, so make sure we never use it.
1727   set dummy $ac_cv_prog_CC
1728   shift
1729   if test $# != 0; then
1730     # We chose a different compiler from the bogus one.
1731     # However, it has the same basename, so the bogon will be chosen
1732     # first if we set CC to just the basename; use the full file name.
1733     shift
1734     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1735   fi
1736 fi
1737 fi
1738 fi
1739 CC=$ac_cv_prog_CC
1740 if test -n "$CC"; then
1741   echo "$as_me:$LINENO: result: $CC" >&5
1742 echo "${ECHO_T}$CC" >&6
1743 else
1744   echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1746 fi
1747
1748 fi
1749 if test -z "$CC"; then
1750   if test -n "$ac_tool_prefix"; then
1751   for ac_prog in cl
1752   do
1753     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1754 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$CC"; then
1761   ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776
1777 fi
1778 fi
1779 CC=$ac_cv_prog_CC
1780 if test -n "$CC"; then
1781   echo "$as_me:$LINENO: result: $CC" >&5
1782 echo "${ECHO_T}$CC" >&6
1783 else
1784   echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1786 fi
1787
1788     test -n "$CC" && break
1789   done
1790 fi
1791 if test -z "$CC"; then
1792   ac_ct_CC=$CC
1793   for ac_prog in cl
1794 do
1795   # Extract the first word of "$ac_prog", so it can be a program name with args.
1796 set dummy $ac_prog; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1800   echo $ECHO_N "(cached) $ECHO_C" >&6
1801 else
1802   if test -n "$ac_ct_CC"; then
1803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804 else
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 for as_dir in $PATH
1807 do
1808   IFS=$as_save_IFS
1809   test -z "$as_dir" && as_dir=.
1810   for ac_exec_ext in '' $ac_executable_extensions; do
1811   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812     ac_cv_prog_ac_ct_CC="$ac_prog"
1813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814     break 2
1815   fi
1816 done
1817 done
1818
1819 fi
1820 fi
1821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1822 if test -n "$ac_ct_CC"; then
1823   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1824 echo "${ECHO_T}$ac_ct_CC" >&6
1825 else
1826   echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1828 fi
1829
1830   test -n "$ac_ct_CC" && break
1831 done
1832
1833   CC=$ac_ct_CC
1834 fi
1835
1836 fi
1837
1838
1839 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1840 See \`config.log' for more details." >&5
1841 echo "$as_me: error: no acceptable C compiler found in \$PATH
1842 See \`config.log' for more details." >&2;}
1843    { (exit 1); exit 1; }; }
1844
1845 # Provide some information about the compiler.
1846 echo "$as_me:$LINENO:" \
1847      "checking for C compiler version" >&5
1848 ac_compiler=`set X $ac_compile; echo $2`
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1850   (eval $ac_compiler --version </dev/null >&5) 2>&5
1851   ac_status=$?
1852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853   (exit $ac_status); }
1854 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1855   (eval $ac_compiler -v </dev/null >&5) 2>&5
1856   ac_status=$?
1857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1858   (exit $ac_status); }
1859 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1860   (eval $ac_compiler -V </dev/null >&5) 2>&5
1861   ac_status=$?
1862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863   (exit $ac_status); }
1864
1865 cat >conftest.$ac_ext <<_ACEOF
1866 /* confdefs.h.  */
1867 _ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h.  */
1871
1872 int
1873 main ()
1874 {
1875
1876   ;
1877   return 0;
1878 }
1879 _ACEOF
1880 ac_clean_files_save=$ac_clean_files
1881 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1882 # Try to create an executable without -o first, disregard a.out.
1883 # It will help us diagnose broken compilers, and finding out an intuition
1884 # of exeext.
1885 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1886 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1887 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1888 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1889   (eval $ac_link_default) 2>&5
1890   ac_status=$?
1891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1892   (exit $ac_status); }; then
1893   # Find the output, starting from the most likely.  This scheme is
1894 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1895 # resort.
1896
1897 # Be careful to initialize this variable, since it used to be cached.
1898 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1899 ac_cv_exeext=
1900 # b.out is created by i960 compilers.
1901 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1902 do
1903   test -f "$ac_file" || continue
1904   case $ac_file in
1905     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1906         ;;
1907     conftest.$ac_ext )
1908         # This is the source file.
1909         ;;
1910     [ab].out )
1911         # We found the default executable, but exeext='' is most
1912         # certainly right.
1913         break;;
1914     *.* )
1915         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1916         # FIXME: I believe we export ac_cv_exeext for Libtool,
1917         # but it would be cool to find out if it's true.  Does anybody
1918         # maintain Libtool? --akim.
1919         export ac_cv_exeext
1920         break;;
1921     * )
1922         break;;
1923   esac
1924 done
1925 else
1926   echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1928
1929 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1930 See \`config.log' for more details." >&5
1931 echo "$as_me: error: C compiler cannot create executables
1932 See \`config.log' for more details." >&2;}
1933    { (exit 77); exit 77; }; }
1934 fi
1935
1936 ac_exeext=$ac_cv_exeext
1937 echo "$as_me:$LINENO: result: $ac_file" >&5
1938 echo "${ECHO_T}$ac_file" >&6
1939
1940 # Check the compiler produces executables we can run.  If not, either
1941 # the compiler is broken, or we cross compile.
1942 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1943 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1944 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1945 # If not cross compiling, check that we can run a simple program.
1946 if test "$cross_compiling" != yes; then
1947   if { ac_try='./$ac_file'
1948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949   (eval $ac_try) 2>&5
1950   ac_status=$?
1951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952   (exit $ac_status); }; }; then
1953     cross_compiling=no
1954   else
1955     if test "$cross_compiling" = maybe; then
1956         cross_compiling=yes
1957     else
1958         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1959 If you meant to cross compile, use \`--host'.
1960 See \`config.log' for more details." >&5
1961 echo "$as_me: error: cannot run C compiled programs.
1962 If you meant to cross compile, use \`--host'.
1963 See \`config.log' for more details." >&2;}
1964    { (exit 1); exit 1; }; }
1965     fi
1966   fi
1967 fi
1968 echo "$as_me:$LINENO: result: yes" >&5
1969 echo "${ECHO_T}yes" >&6
1970
1971 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1972 ac_clean_files=$ac_clean_files_save
1973 # Check the compiler produces executables we can run.  If not, either
1974 # the compiler is broken, or we cross compile.
1975 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1976 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1977 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1978 echo "${ECHO_T}$cross_compiling" >&6
1979
1980 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1981 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1983   (eval $ac_link) 2>&5
1984   ac_status=$?
1985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1986   (exit $ac_status); }; then
1987   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1988 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1989 # work properly (i.e., refer to `conftest.exe'), while it won't with
1990 # `rm'.
1991 for ac_file in conftest.exe conftest conftest.*; do
1992   test -f "$ac_file" || continue
1993   case $ac_file in
1994     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1995     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1996           export ac_cv_exeext
1997           break;;
1998     * ) break;;
1999   esac
2000 done
2001 else
2002   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2003 See \`config.log' for more details." >&5
2004 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2005 See \`config.log' for more details." >&2;}
2006    { (exit 1); exit 1; }; }
2007 fi
2008
2009 rm -f conftest$ac_cv_exeext
2010 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2011 echo "${ECHO_T}$ac_cv_exeext" >&6
2012
2013 rm -f conftest.$ac_ext
2014 EXEEXT=$ac_cv_exeext
2015 ac_exeext=$EXEEXT
2016 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2017 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2018 if test "${ac_cv_objext+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   cat >conftest.$ac_ext <<_ACEOF
2022 /* confdefs.h.  */
2023 _ACEOF
2024 cat confdefs.h >>conftest.$ac_ext
2025 cat >>conftest.$ac_ext <<_ACEOF
2026 /* end confdefs.h.  */
2027
2028 int
2029 main ()
2030 {
2031
2032   ;
2033   return 0;
2034 }
2035 _ACEOF
2036 rm -f conftest.o conftest.obj
2037 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2038   (eval $ac_compile) 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2043   case $ac_file in
2044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2045     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2046        break;;
2047   esac
2048 done
2049 else
2050   echo "$as_me: failed program was:" >&5
2051 sed 's/^/| /' conftest.$ac_ext >&5
2052
2053 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2054 See \`config.log' for more details." >&5
2055 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2056 See \`config.log' for more details." >&2;}
2057    { (exit 1); exit 1; }; }
2058 fi
2059
2060 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2061 fi
2062 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2063 echo "${ECHO_T}$ac_cv_objext" >&6
2064 OBJEXT=$ac_cv_objext
2065 ac_objext=$OBJEXT
2066 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2067 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2068 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2069   echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071   cat >conftest.$ac_ext <<_ACEOF
2072 /* confdefs.h.  */
2073 _ACEOF
2074 cat confdefs.h >>conftest.$ac_ext
2075 cat >>conftest.$ac_ext <<_ACEOF
2076 /* end confdefs.h.  */
2077
2078 int
2079 main ()
2080 {
2081 #ifndef __GNUC__
2082        choke me
2083 #endif
2084
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>conftest.er1
2092   ac_status=$?
2093   grep -v '^ *+' conftest.er1 >conftest.err
2094   rm -f conftest.er1
2095   cat conftest.err >&5
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -z "$ac_c_werror_flag"
2099                          || test ! -s conftest.err'
2100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101   (eval $ac_try) 2>&5
2102   ac_status=$?
2103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104   (exit $ac_status); }; } &&
2105          { ac_try='test -s conftest.$ac_objext'
2106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107   (eval $ac_try) 2>&5
2108   ac_status=$?
2109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110   (exit $ac_status); }; }; then
2111   ac_compiler_gnu=yes
2112 else
2113   echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2115
2116 ac_compiler_gnu=no
2117 fi
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2120
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2123 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2124 GCC=`test $ac_compiler_gnu = yes && echo yes`
2125 ac_test_CFLAGS=${CFLAGS+set}
2126 ac_save_CFLAGS=$CFLAGS
2127 CFLAGS="-g"
2128 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2129 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2130 if test "${ac_cv_prog_cc_g+set}" = set; then
2131   echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133   cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 rm -f conftest.$ac_objext
2149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2150   (eval $ac_compile) 2>conftest.er1
2151   ac_status=$?
2152   grep -v '^ *+' conftest.er1 >conftest.err
2153   rm -f conftest.er1
2154   cat conftest.err >&5
2155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156   (exit $ac_status); } &&
2157          { ac_try='test -z "$ac_c_werror_flag"
2158                          || test ! -s conftest.err'
2159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160   (eval $ac_try) 2>&5
2161   ac_status=$?
2162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163   (exit $ac_status); }; } &&
2164          { ac_try='test -s conftest.$ac_objext'
2165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166   (eval $ac_try) 2>&5
2167   ac_status=$?
2168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169   (exit $ac_status); }; }; then
2170   ac_cv_prog_cc_g=yes
2171 else
2172   echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_cv_prog_cc_g=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 fi
2179 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2180 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2181 if test "$ac_test_CFLAGS" = set; then
2182   CFLAGS=$ac_save_CFLAGS
2183 elif test $ac_cv_prog_cc_g = yes; then
2184   if test "$GCC" = yes; then
2185     CFLAGS="-g -O2"
2186   else
2187     CFLAGS="-g"
2188   fi
2189 else
2190   if test "$GCC" = yes; then
2191     CFLAGS="-O2"
2192   else
2193     CFLAGS=
2194   fi
2195 fi
2196 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2197 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2198 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   ac_cv_prog_cc_stdc=no
2202 ac_save_CC=$CC
2203 cat >conftest.$ac_ext <<_ACEOF
2204 /* confdefs.h.  */
2205 _ACEOF
2206 cat confdefs.h >>conftest.$ac_ext
2207 cat >>conftest.$ac_ext <<_ACEOF
2208 /* end confdefs.h.  */
2209 #include <stdarg.h>
2210 #include <stdio.h>
2211 #include <sys/types.h>
2212 #include <sys/stat.h>
2213 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2214 struct buf { int x; };
2215 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2216 static char *e (p, i)
2217      char **p;
2218      int i;
2219 {
2220   return p[i];
2221 }
2222 static char *f (char * (*g) (char **, int), char **p, ...)
2223 {
2224   char *s;
2225   va_list v;
2226   va_start (v,p);
2227   s = g (p, va_arg (v,int));
2228   va_end (v);
2229   return s;
2230 }
2231
2232 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2233    function prototypes and stuff, but not '\xHH' hex character constants.
2234    These don't provoke an error unfortunately, instead are silently treated
2235    as 'x'.  The following induces an error, until -std1 is added to get
2236    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2237    array size at least.  It's necessary to write '\x00'==0 to get something
2238    that's true only with -std1.  */
2239 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2240
2241 int test (int i, double x);
2242 struct s1 {int (*f) (int a);};
2243 struct s2 {int (*f) (double a);};
2244 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2245 int argc;
2246 char **argv;
2247 int
2248 main ()
2249 {
2250 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2251   ;
2252   return 0;
2253 }
2254 _ACEOF
2255 # Don't try gcc -ansi; that turns off useful extensions and
2256 # breaks some systems' header files.
2257 # AIX                   -qlanglvl=ansi
2258 # Ultrix and OSF/1      -std1
2259 # HP-UX 10.20 and later -Ae
2260 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2261 # SVR4                  -Xc -D__EXTENSIONS__
2262 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2263 do
2264   CC="$ac_save_CC $ac_arg"
2265   rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267   (eval $ac_compile) 2>conftest.er1
2268   ac_status=$?
2269   grep -v '^ *+' conftest.er1 >conftest.err
2270   rm -f conftest.er1
2271   cat conftest.err >&5
2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273   (exit $ac_status); } &&
2274          { ac_try='test -z "$ac_c_werror_flag"
2275                          || test ! -s conftest.err'
2276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277   (eval $ac_try) 2>&5
2278   ac_status=$?
2279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280   (exit $ac_status); }; } &&
2281          { ac_try='test -s conftest.$ac_objext'
2282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283   (eval $ac_try) 2>&5
2284   ac_status=$?
2285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286   (exit $ac_status); }; }; then
2287   ac_cv_prog_cc_stdc=$ac_arg
2288 break
2289 else
2290   echo "$as_me: failed program was:" >&5
2291 sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 fi
2294 rm -f conftest.err conftest.$ac_objext
2295 done
2296 rm -f conftest.$ac_ext conftest.$ac_objext
2297 CC=$ac_save_CC
2298
2299 fi
2300
2301 case "x$ac_cv_prog_cc_stdc" in
2302   x|xno)
2303     echo "$as_me:$LINENO: result: none needed" >&5
2304 echo "${ECHO_T}none needed" >&6 ;;
2305   *)
2306     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308     CC="$CC $ac_cv_prog_cc_stdc" ;;
2309 esac
2310
2311 # Some people use a C++ compiler to compile C.  Since we use `exit',
2312 # in C++ we need to declare it.  In case someone uses the same compiler
2313 # for both compiling C and C++ we need to have the C++ compiler decide
2314 # the declaration of exit, since it's the most demanding environment.
2315 cat >conftest.$ac_ext <<_ACEOF
2316 #ifndef __cplusplus
2317   choke me
2318 #endif
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2322   (eval $ac_compile) 2>conftest.er1
2323   ac_status=$?
2324   grep -v '^ *+' conftest.er1 >conftest.err
2325   rm -f conftest.er1
2326   cat conftest.err >&5
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); } &&
2329          { ac_try='test -z "$ac_c_werror_flag"
2330                          || test ! -s conftest.err'
2331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332   (eval $ac_try) 2>&5
2333   ac_status=$?
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); }; } &&
2336          { ac_try='test -s conftest.$ac_objext'
2337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338   (eval $ac_try) 2>&5
2339   ac_status=$?
2340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341   (exit $ac_status); }; }; then
2342   for ac_declaration in \
2343    '' \
2344    'extern "C" void std::exit (int) throw (); using std::exit;' \
2345    'extern "C" void std::exit (int); using std::exit;' \
2346    'extern "C" void exit (int) throw ();' \
2347    'extern "C" void exit (int);' \
2348    'void exit (int);'
2349 do
2350   cat >conftest.$ac_ext <<_ACEOF
2351 /* confdefs.h.  */
2352 _ACEOF
2353 cat confdefs.h >>conftest.$ac_ext
2354 cat >>conftest.$ac_ext <<_ACEOF
2355 /* end confdefs.h.  */
2356 $ac_declaration
2357 #include <stdlib.h>
2358 int
2359 main ()
2360 {
2361 exit (42);
2362   ;
2363   return 0;
2364 }
2365 _ACEOF
2366 rm -f conftest.$ac_objext
2367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2368   (eval $ac_compile) 2>conftest.er1
2369   ac_status=$?
2370   grep -v '^ *+' conftest.er1 >conftest.err
2371   rm -f conftest.er1
2372   cat conftest.err >&5
2373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374   (exit $ac_status); } &&
2375          { ac_try='test -z "$ac_c_werror_flag"
2376                          || test ! -s conftest.err'
2377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378   (eval $ac_try) 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; } &&
2382          { ac_try='test -s conftest.$ac_objext'
2383   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384   (eval $ac_try) 2>&5
2385   ac_status=$?
2386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387   (exit $ac_status); }; }; then
2388   :
2389 else
2390   echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 continue
2394 fi
2395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2396   cat >conftest.$ac_ext <<_ACEOF
2397 /* confdefs.h.  */
2398 _ACEOF
2399 cat confdefs.h >>conftest.$ac_ext
2400 cat >>conftest.$ac_ext <<_ACEOF
2401 /* end confdefs.h.  */
2402 $ac_declaration
2403 int
2404 main ()
2405 {
2406 exit (42);
2407   ;
2408   return 0;
2409 }
2410 _ACEOF
2411 rm -f conftest.$ac_objext
2412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413   (eval $ac_compile) 2>conftest.er1
2414   ac_status=$?
2415   grep -v '^ *+' conftest.er1 >conftest.err
2416   rm -f conftest.er1
2417   cat conftest.err >&5
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); } &&
2420          { ac_try='test -z "$ac_c_werror_flag"
2421                          || test ! -s conftest.err'
2422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2423   (eval $ac_try) 2>&5
2424   ac_status=$?
2425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }; } &&
2427          { ac_try='test -s conftest.$ac_objext'
2428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429   (eval $ac_try) 2>&5
2430   ac_status=$?
2431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }; }; then
2433   break
2434 else
2435   echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2437
2438 fi
2439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 done
2441 rm -f conftest*
2442 if test -n "$ac_declaration"; then
2443   echo '#ifdef __cplusplus' >>confdefs.h
2444   echo $ac_declaration      >>confdefs.h
2445   echo '#endif'             >>confdefs.h
2446 fi
2447
2448 else
2449   echo "$as_me: failed program was:" >&5
2450 sed 's/^/| /' conftest.$ac_ext >&5
2451
2452 fi
2453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2454 ac_ext=c
2455 ac_cpp='$CPP $CPPFLAGS'
2456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2459
2460 ac_ext=cc
2461 ac_cpp='$CXXCPP $CPPFLAGS'
2462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2465 if test -n "$ac_tool_prefix"; then
2466   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2467   do
2468     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2470 echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2472 if test "${ac_cv_prog_CXX+set}" = set; then
2473   echo $ECHO_N "(cached) $ECHO_C" >&6
2474 else
2475   if test -n "$CXX"; then
2476   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2477 else
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479 for as_dir in $PATH
2480 do
2481   IFS=$as_save_IFS
2482   test -z "$as_dir" && as_dir=.
2483   for ac_exec_ext in '' $ac_executable_extensions; do
2484   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2485     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487     break 2
2488   fi
2489 done
2490 done
2491
2492 fi
2493 fi
2494 CXX=$ac_cv_prog_CXX
2495 if test -n "$CXX"; then
2496   echo "$as_me:$LINENO: result: $CXX" >&5
2497 echo "${ECHO_T}$CXX" >&6
2498 else
2499   echo "$as_me:$LINENO: result: no" >&5
2500 echo "${ECHO_T}no" >&6
2501 fi
2502
2503     test -n "$CXX" && break
2504   done
2505 fi
2506 if test -z "$CXX"; then
2507   ac_ct_CXX=$CXX
2508   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2509 do
2510   # Extract the first word of "$ac_prog", so it can be a program name with args.
2511 set dummy $ac_prog; ac_word=$2
2512 echo "$as_me:$LINENO: checking for $ac_word" >&5
2513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2514 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2515   echo $ECHO_N "(cached) $ECHO_C" >&6
2516 else
2517   if test -n "$ac_ct_CXX"; then
2518   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2519 else
2520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2521 for as_dir in $PATH
2522 do
2523   IFS=$as_save_IFS
2524   test -z "$as_dir" && as_dir=.
2525   for ac_exec_ext in '' $ac_executable_extensions; do
2526   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2527     ac_cv_prog_ac_ct_CXX="$ac_prog"
2528     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529     break 2
2530   fi
2531 done
2532 done
2533
2534 fi
2535 fi
2536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2537 if test -n "$ac_ct_CXX"; then
2538   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2539 echo "${ECHO_T}$ac_ct_CXX" >&6
2540 else
2541   echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6
2543 fi
2544
2545   test -n "$ac_ct_CXX" && break
2546 done
2547 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2548
2549   CXX=$ac_ct_CXX
2550 fi
2551
2552
2553 # Provide some information about the compiler.
2554 echo "$as_me:$LINENO:" \
2555      "checking for C++ compiler version" >&5
2556 ac_compiler=`set X $ac_compile; echo $2`
2557 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2558   (eval $ac_compiler --version </dev/null >&5) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }
2562 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2563   (eval $ac_compiler -v </dev/null >&5) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }
2567 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2568   (eval $ac_compiler -V </dev/null >&5) 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }
2572
2573 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2575 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_cxx_werror_flag"
2606                          || test ! -s conftest.err'
2607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2608   (eval $ac_try) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; } &&
2612          { ac_try='test -s conftest.$ac_objext'
2613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2614   (eval $ac_try) 2>&5
2615   ac_status=$?
2616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2617   (exit $ac_status); }; }; then
2618   ac_compiler_gnu=yes
2619 else
2620   echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_compiler_gnu=no
2624 fi
2625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2626 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2627
2628 fi
2629 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2630 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2631 GXX=`test $ac_compiler_gnu = yes && echo yes`
2632 ac_test_CXXFLAGS=${CXXFLAGS+set}
2633 ac_save_CXXFLAGS=$CXXFLAGS
2634 CXXFLAGS="-g"
2635 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2636 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2637 if test "${ac_cv_prog_cxx_g+set}" = set; then
2638   echo $ECHO_N "(cached) $ECHO_C" >&6
2639 else
2640   cat >conftest.$ac_ext <<_ACEOF
2641 /* confdefs.h.  */
2642 _ACEOF
2643 cat confdefs.h >>conftest.$ac_ext
2644 cat >>conftest.$ac_ext <<_ACEOF
2645 /* end confdefs.h.  */
2646
2647 int
2648 main ()
2649 {
2650
2651   ;
2652   return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657   (eval $ac_compile) 2>conftest.er1
2658   ac_status=$?
2659   grep -v '^ *+' conftest.er1 >conftest.err
2660   rm -f conftest.er1
2661   cat conftest.err >&5
2662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663   (exit $ac_status); } &&
2664          { ac_try='test -z "$ac_cxx_werror_flag"
2665                          || test ! -s conftest.err'
2666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667   (eval $ac_try) 2>&5
2668   ac_status=$?
2669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670   (exit $ac_status); }; } &&
2671          { ac_try='test -s conftest.$ac_objext'
2672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673   (eval $ac_try) 2>&5
2674   ac_status=$?
2675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676   (exit $ac_status); }; }; then
2677   ac_cv_prog_cxx_g=yes
2678 else
2679   echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2681
2682 ac_cv_prog_cxx_g=no
2683 fi
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 fi
2686 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2688 if test "$ac_test_CXXFLAGS" = set; then
2689   CXXFLAGS=$ac_save_CXXFLAGS
2690 elif test $ac_cv_prog_cxx_g = yes; then
2691   if test "$GXX" = yes; then
2692     CXXFLAGS="-g -O2"
2693   else
2694     CXXFLAGS="-g"
2695   fi
2696 else
2697   if test "$GXX" = yes; then
2698     CXXFLAGS="-O2"
2699   else
2700     CXXFLAGS=
2701   fi
2702 fi
2703 for ac_declaration in \
2704    '' \
2705    'extern "C" void std::exit (int) throw (); using std::exit;' \
2706    'extern "C" void std::exit (int); using std::exit;' \
2707    'extern "C" void exit (int) throw ();' \
2708    'extern "C" void exit (int);' \
2709    'void exit (int);'
2710 do
2711   cat >conftest.$ac_ext <<_ACEOF
2712 /* confdefs.h.  */
2713 _ACEOF
2714 cat confdefs.h >>conftest.$ac_ext
2715 cat >>conftest.$ac_ext <<_ACEOF
2716 /* end confdefs.h.  */
2717 $ac_declaration
2718 #include <stdlib.h>
2719 int
2720 main ()
2721 {
2722 exit (42);
2723   ;
2724   return 0;
2725 }
2726 _ACEOF
2727 rm -f conftest.$ac_objext
2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2729   (eval $ac_compile) 2>conftest.er1
2730   ac_status=$?
2731   grep -v '^ *+' conftest.er1 >conftest.err
2732   rm -f conftest.er1
2733   cat conftest.err >&5
2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735   (exit $ac_status); } &&
2736          { ac_try='test -z "$ac_cxx_werror_flag"
2737                          || test ! -s conftest.err'
2738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739   (eval $ac_try) 2>&5
2740   ac_status=$?
2741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742   (exit $ac_status); }; } &&
2743          { ac_try='test -s conftest.$ac_objext'
2744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745   (eval $ac_try) 2>&5
2746   ac_status=$?
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); }; }; then
2749   :
2750 else
2751   echo "$as_me: failed program was:" >&5
2752 sed 's/^/| /' conftest.$ac_ext >&5
2753
2754 continue
2755 fi
2756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2757   cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763 $ac_declaration
2764 int
2765 main ()
2766 {
2767 exit (42);
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2774   (eval $ac_compile) 2>conftest.er1
2775   ac_status=$?
2776   grep -v '^ *+' conftest.er1 >conftest.err
2777   rm -f conftest.er1
2778   cat conftest.err >&5
2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780   (exit $ac_status); } &&
2781          { ac_try='test -z "$ac_cxx_werror_flag"
2782                          || test ! -s conftest.err'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; } &&
2788          { ac_try='test -s conftest.$ac_objext'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; }; then
2794   break
2795 else
2796   echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2798
2799 fi
2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2801 done
2802 rm -f conftest*
2803 if test -n "$ac_declaration"; then
2804   echo '#ifdef __cplusplus' >>confdefs.h
2805   echo $ac_declaration      >>confdefs.h
2806   echo '#endif'             >>confdefs.h
2807 fi
2808
2809 ac_ext=c
2810 ac_cpp='$CPP $CPPFLAGS'
2811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2814
2815 if test "x$CC" != xcc; then
2816   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2817 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2818 else
2819   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2820 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2821 fi
2822 set dummy $CC; ac_cc=`echo $2 |
2823                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2824 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2825   echo $ECHO_N "(cached) $ECHO_C" >&6
2826 else
2827   cat >conftest.$ac_ext <<_ACEOF
2828 /* confdefs.h.  */
2829 _ACEOF
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h.  */
2833
2834 int
2835 main ()
2836 {
2837
2838   ;
2839   return 0;
2840 }
2841 _ACEOF
2842 # Make sure it works both with $CC and with simple cc.
2843 # We do the test twice because some compilers refuse to overwrite an
2844 # existing .o file with -o, though they will create one.
2845 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2846 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847   (eval $ac_try) 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
2854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855   (exit $ac_status); };
2856 then
2857   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2858   if test "x$CC" != xcc; then
2859     # Test first that cc exists at all.
2860     if { ac_try='cc -c conftest.$ac_ext >&5'
2861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862   (eval $ac_try) 2>&5
2863   ac_status=$?
2864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865   (exit $ac_status); }; }; then
2866       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2867       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868   (eval $ac_try) 2>&5
2869   ac_status=$?
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } &&
2872          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873   (eval $ac_try) 2>&5
2874   ac_status=$?
2875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876   (exit $ac_status); };
2877       then
2878         # cc works too.
2879         :
2880       else
2881         # cc exists but doesn't like -o.
2882         eval ac_cv_prog_cc_${ac_cc}_c_o=no
2883       fi
2884     fi
2885   fi
2886 else
2887   eval ac_cv_prog_cc_${ac_cc}_c_o=no
2888 fi
2889 rm -f conftest*
2890
2891 fi
2892 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2893   echo "$as_me:$LINENO: result: yes" >&5
2894 echo "${ECHO_T}yes" >&6
2895 else
2896   echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6
2898
2899 cat >>confdefs.h <<\_ACEOF
2900 #define NO_MINUS_C_MINUS_O 1
2901 _ACEOF
2902
2903 fi
2904
2905 ac_ext=c
2906 ac_cpp='$CPP $CPPFLAGS'
2907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2911 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2912 # On Suns, sometimes $CPP names a directory.
2913 if test -n "$CPP" && test -d "$CPP"; then
2914   CPP=
2915 fi
2916 if test -z "$CPP"; then
2917   if test "${ac_cv_prog_CPP+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920       # Double quotes because CPP needs to be expanded
2921     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2922     do
2923       ac_preproc_ok=false
2924 for ac_c_preproc_warn_flag in '' yes
2925 do
2926   # Use a header file that comes with gcc, so configuring glibc
2927   # with a fresh cross-compiler works.
2928   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929   # <limits.h> exists even on freestanding compilers.
2930   # On the NeXT, cc -E runs the code through the compiler's parser,
2931   # not just through cpp. "Syntax error" is here to catch this case.
2932   cat >conftest.$ac_ext <<_ACEOF
2933 /* confdefs.h.  */
2934 _ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h.  */
2938 #ifdef __STDC__
2939 # include <limits.h>
2940 #else
2941 # include <assert.h>
2942 #endif
2943                      Syntax error
2944 _ACEOF
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947   ac_status=$?
2948   grep -v '^ *+' conftest.er1 >conftest.err
2949   rm -f conftest.er1
2950   cat conftest.err >&5
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } >/dev/null; then
2953   if test -s conftest.err; then
2954     ac_cpp_err=$ac_c_preproc_warn_flag
2955     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2956   else
2957     ac_cpp_err=
2958   fi
2959 else
2960   ac_cpp_err=yes
2961 fi
2962 if test -z "$ac_cpp_err"; then
2963   :
2964 else
2965   echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968   # Broken: fails on valid input.
2969 continue
2970 fi
2971 rm -f conftest.err conftest.$ac_ext
2972
2973   # OK, works on sane cases.  Now check whether non-existent headers
2974   # can be detected and how.
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981 #include <ac_nonexistent.h>
2982 _ACEOF
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985   ac_status=$?
2986   grep -v '^ *+' conftest.er1 >conftest.err
2987   rm -f conftest.er1
2988   cat conftest.err >&5
2989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990   (exit $ac_status); } >/dev/null; then
2991   if test -s conftest.err; then
2992     ac_cpp_err=$ac_c_preproc_warn_flag
2993     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2994   else
2995     ac_cpp_err=
2996   fi
2997 else
2998   ac_cpp_err=yes
2999 fi
3000 if test -z "$ac_cpp_err"; then
3001   # Broken: success on invalid input.
3002 continue
3003 else
3004   echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3006
3007   # Passes both tests.
3008 ac_preproc_ok=:
3009 break
3010 fi
3011 rm -f conftest.err conftest.$ac_ext
3012
3013 done
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3017   break
3018 fi
3019
3020     done
3021     ac_cv_prog_CPP=$CPP
3022
3023 fi
3024   CPP=$ac_cv_prog_CPP
3025 else
3026   ac_cv_prog_CPP=$CPP
3027 fi
3028 echo "$as_me:$LINENO: result: $CPP" >&5
3029 echo "${ECHO_T}$CPP" >&6
3030 ac_preproc_ok=false
3031 for ac_c_preproc_warn_flag in '' yes
3032 do
3033   # Use a header file that comes with gcc, so configuring glibc
3034   # with a fresh cross-compiler works.
3035   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3036   # <limits.h> exists even on freestanding compilers.
3037   # On the NeXT, cc -E runs the code through the compiler's parser,
3038   # not just through cpp. "Syntax error" is here to catch this case.
3039   cat >conftest.$ac_ext <<_ACEOF
3040 /* confdefs.h.  */
3041 _ACEOF
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h.  */
3045 #ifdef __STDC__
3046 # include <limits.h>
3047 #else
3048 # include <assert.h>
3049 #endif
3050                      Syntax error
3051 _ACEOF
3052 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3053   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054   ac_status=$?
3055   grep -v '^ *+' conftest.er1 >conftest.err
3056   rm -f conftest.er1
3057   cat conftest.err >&5
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); } >/dev/null; then
3060   if test -s conftest.err; then
3061     ac_cpp_err=$ac_c_preproc_warn_flag
3062     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3063   else
3064     ac_cpp_err=
3065   fi
3066 else
3067   ac_cpp_err=yes
3068 fi
3069 if test -z "$ac_cpp_err"; then
3070   :
3071 else
3072   echo "$as_me: failed program was:" >&5
3073 sed 's/^/| /' conftest.$ac_ext >&5
3074
3075   # Broken: fails on valid input.
3076 continue
3077 fi
3078 rm -f conftest.err conftest.$ac_ext
3079
3080   # OK, works on sane cases.  Now check whether non-existent headers
3081   # can be detected and how.
3082   cat >conftest.$ac_ext <<_ACEOF
3083 /* confdefs.h.  */
3084 _ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h.  */
3088 #include <ac_nonexistent.h>
3089 _ACEOF
3090 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3091   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092   ac_status=$?
3093   grep -v '^ *+' conftest.er1 >conftest.err
3094   rm -f conftest.er1
3095   cat conftest.err >&5
3096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097   (exit $ac_status); } >/dev/null; then
3098   if test -s conftest.err; then
3099     ac_cpp_err=$ac_c_preproc_warn_flag
3100     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3101   else
3102     ac_cpp_err=
3103   fi
3104 else
3105   ac_cpp_err=yes
3106 fi
3107 if test -z "$ac_cpp_err"; then
3108   # Broken: success on invalid input.
3109 continue
3110 else
3111   echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114   # Passes both tests.
3115 ac_preproc_ok=:
3116 break
3117 fi
3118 rm -f conftest.err conftest.$ac_ext
3119
3120 done
3121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3122 rm -f conftest.err conftest.$ac_ext
3123 if $ac_preproc_ok; then
3124   :
3125 else
3126   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3127 See \`config.log' for more details." >&5
3128 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3129 See \`config.log' for more details." >&2;}
3130    { (exit 1); exit 1; }; }
3131 fi
3132
3133 ac_ext=c
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138
3139
3140 echo "$as_me:$LINENO: checking for egrep" >&5
3141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3142 if test "${ac_cv_prog_egrep+set}" = set; then
3143   echo $ECHO_N "(cached) $ECHO_C" >&6
3144 else
3145   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3146     then ac_cv_prog_egrep='grep -E'
3147     else ac_cv_prog_egrep='egrep'
3148     fi
3149 fi
3150 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3151 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3152  EGREP=$ac_cv_prog_egrep
3153
3154
3155 if test $ac_cv_c_compiler_gnu = yes; then
3156     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3157 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3158 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3159   echo $ECHO_N "(cached) $ECHO_C" >&6
3160 else
3161     ac_pattern="Autoconf.*'x'"
3162   cat >conftest.$ac_ext <<_ACEOF
3163 /* confdefs.h.  */
3164 _ACEOF
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h.  */
3168 #include <sgtty.h>
3169 Autoconf TIOCGETP
3170 _ACEOF
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3173   ac_cv_prog_gcc_traditional=yes
3174 else
3175   ac_cv_prog_gcc_traditional=no
3176 fi
3177 rm -f conftest*
3178
3179
3180   if test $ac_cv_prog_gcc_traditional = no; then
3181     cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <termio.h>
3188 Autoconf TCGETA
3189 _ACEOF
3190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3191   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3192   ac_cv_prog_gcc_traditional=yes
3193 fi
3194 rm -f conftest*
3195
3196   fi
3197 fi
3198 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3199 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3200   if test $ac_cv_prog_gcc_traditional = yes; then
3201     CC="$CC -traditional"
3202   fi
3203 fi
3204
3205 if test "x$CC" = xgcc; then
3206    cat >>confdefs.h <<\_ACEOF
3207 #define HAVE_GCC 1
3208 _ACEOF
3209
3210 fi
3211 # Extract the first word of "$CXX", so it can be a program name with args.
3212 set dummy $CXX; ac_word=$2
3213 echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3215 if test "${ac_cv_path_CXX+set}" = set; then
3216   echo $ECHO_N "(cached) $ECHO_C" >&6
3217 else
3218   case $CXX in
3219   [\\/]* | ?:[\\/]*)
3220   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3221   ;;
3222   *)
3223   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226   IFS=$as_save_IFS
3227   test -z "$as_dir" && as_dir=.
3228   for ac_exec_ext in '' $ac_executable_extensions; do
3229   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3231     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3232     break 2
3233   fi
3234 done
3235 done
3236
3237   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3238   ;;
3239 esac
3240 fi
3241 CXX=$ac_cv_path_CXX
3242
3243 if test -n "$CXX"; then
3244   echo "$as_me:$LINENO: result: $CXX" >&5
3245 echo "${ECHO_T}$CXX" >&6
3246 else
3247   echo "$as_me:$LINENO: result: no" >&5
3248 echo "${ECHO_T}no" >&6
3249 fi
3250
3251 if test ! -e $CXX; then
3252    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3253 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3254    { (exit 1); exit 1; }; }
3255 fi
3256
3257 # Find a good install program.  We prefer a C program (faster),
3258 # so one script is as good as another.  But avoid the broken or
3259 # incompatible versions:
3260 # SysV /etc/install, /usr/sbin/install
3261 # SunOS /usr/etc/install
3262 # IRIX /sbin/install
3263 # AIX /bin/install
3264 # AmigaOS /C/install, which installs bootblocks on floppy discs
3265 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3266 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3267 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3268 # OS/2's system install, which has a completely different semantic
3269 # ./install, which can be erroneously created by make from ./install.sh.
3270 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3271 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3272 if test -z "$INSTALL"; then
3273 if test "${ac_cv_path_install+set}" = set; then
3274   echo $ECHO_N "(cached) $ECHO_C" >&6
3275 else
3276   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281   # Account for people who put trailing slashes in PATH elements.
3282 case $as_dir/ in
3283   ./ | .// | /cC/* | \
3284   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3285   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3286   /usr/ucb/* ) ;;
3287   *)
3288     # OSF1 and SCO ODT 3.0 have their own names for install.
3289     # Don't use installbsd from OSF since it installs stuff as root
3290     # by default.
3291     for ac_prog in ginstall scoinst install; do
3292       for ac_exec_ext in '' $ac_executable_extensions; do
3293         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3294           if test $ac_prog = install &&
3295             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3296             # AIX install.  It has an incompatible calling convention.
3297             :
3298           elif test $ac_prog = install &&
3299             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3300             # program-specific install script used by HP pwplus--don't use.
3301             :
3302           else
3303             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3304             break 3
3305           fi
3306         fi
3307       done
3308     done
3309     ;;
3310 esac
3311 done
3312
3313
3314 fi
3315   if test "${ac_cv_path_install+set}" = set; then
3316     INSTALL=$ac_cv_path_install
3317   else
3318     # As a last resort, use the slow shell script.  We don't cache a
3319     # path for INSTALL within a source directory, because that will
3320     # break other packages using the cache if that directory is
3321     # removed, or if the path is relative.
3322     INSTALL=$ac_install_sh
3323   fi
3324 fi
3325 echo "$as_me:$LINENO: result: $INSTALL" >&5
3326 echo "${ECHO_T}$INSTALL" >&6
3327
3328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3329 # It thinks the first close brace ends the variable substitution.
3330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3331
3332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3333
3334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3335
3336 if test -n "$ac_tool_prefix"; then
3337   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3339 echo "$as_me:$LINENO: checking for $ac_word" >&5
3340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3341 if test "${ac_cv_prog_RANLIB+set}" = set; then
3342   echo $ECHO_N "(cached) $ECHO_C" >&6
3343 else
3344   if test -n "$RANLIB"; then
3345   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352   for ac_exec_ext in '' $ac_executable_extensions; do
3353   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359 done
3360
3361 fi
3362 fi
3363 RANLIB=$ac_cv_prog_RANLIB
3364 if test -n "$RANLIB"; then
3365   echo "$as_me:$LINENO: result: $RANLIB" >&5
3366 echo "${ECHO_T}$RANLIB" >&6
3367 else
3368   echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6
3370 fi
3371
3372 fi
3373 if test -z "$ac_cv_prog_RANLIB"; then
3374   ac_ct_RANLIB=$RANLIB
3375   # Extract the first word of "ranlib", so it can be a program name with args.
3376 set dummy ranlib; ac_word=$2
3377 echo "$as_me:$LINENO: checking for $ac_word" >&5
3378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3380   echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382   if test -n "$ac_ct_RANLIB"; then
3383   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3384 else
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386 for as_dir in $PATH
3387 do
3388   IFS=$as_save_IFS
3389   test -z "$as_dir" && as_dir=.
3390   for ac_exec_ext in '' $ac_executable_extensions; do
3391   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3392     ac_cv_prog_ac_ct_RANLIB="ranlib"
3393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394     break 2
3395   fi
3396 done
3397 done
3398
3399   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3400 fi
3401 fi
3402 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3403 if test -n "$ac_ct_RANLIB"; then
3404   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3405 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3406 else
3407   echo "$as_me:$LINENO: result: no" >&5
3408 echo "${ECHO_T}no" >&6
3409 fi
3410
3411   RANLIB=$ac_ct_RANLIB
3412 else
3413   RANLIB="$ac_cv_prog_RANLIB"
3414 fi
3415
3416 # Extract the first word of "mv", so it can be a program name with args.
3417 set dummy mv; ac_word=$2
3418 echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3420 if test "${ac_cv_path_MV+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   case $MV in
3424   [\\/]* | ?:[\\/]*)
3425   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3426   ;;
3427   *)
3428   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431   IFS=$as_save_IFS
3432   test -z "$as_dir" && as_dir=.
3433   for ac_exec_ext in '' $ac_executable_extensions; do
3434   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3435     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3436     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437     break 2
3438   fi
3439 done
3440 done
3441
3442   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3443   ;;
3444 esac
3445 fi
3446 MV=$ac_cv_path_MV
3447
3448 if test -n "$MV"; then
3449   echo "$as_me:$LINENO: result: $MV" >&5
3450 echo "${ECHO_T}$MV" >&6
3451 else
3452   echo "$as_me:$LINENO: result: no" >&5
3453 echo "${ECHO_T}no" >&6
3454 fi
3455
3456 # Extract the first word of "rm", so it can be a program name with args.
3457 set dummy rm; ac_word=$2
3458 echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3460 if test "${ac_cv_path_RM+set}" = set; then
3461   echo $ECHO_N "(cached) $ECHO_C" >&6
3462 else
3463   case $RM in
3464   [\\/]* | ?:[\\/]*)
3465   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3466   ;;
3467   *)
3468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH
3470 do
3471   IFS=$as_save_IFS
3472   test -z "$as_dir" && as_dir=.
3473   for ac_exec_ext in '' $ac_executable_extensions; do
3474   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3475     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480 done
3481
3482   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3483   ;;
3484 esac
3485 fi
3486 RM=$ac_cv_path_RM
3487
3488 if test -n "$RM"; then
3489   echo "$as_me:$LINENO: result: $RM" >&5
3490 echo "${ECHO_T}$RM" >&6
3491 else
3492   echo "$as_me:$LINENO: result: no" >&5
3493 echo "${ECHO_T}no" >&6
3494 fi
3495
3496 # Extract the first word of "cp", so it can be a program name with args.
3497 set dummy cp; ac_word=$2
3498 echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3500 if test "${ac_cv_path_CP+set}" = set; then
3501   echo $ECHO_N "(cached) $ECHO_C" >&6
3502 else
3503   case $CP in
3504   [\\/]* | ?:[\\/]*)
3505   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3506   ;;
3507   *)
3508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511   IFS=$as_save_IFS
3512   test -z "$as_dir" && as_dir=.
3513   for ac_exec_ext in '' $ac_executable_extensions; do
3514   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3515     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517     break 2
3518   fi
3519 done
3520 done
3521
3522   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3523   ;;
3524 esac
3525 fi
3526 CP=$ac_cv_path_CP
3527
3528 if test -n "$CP"; then
3529   echo "$as_me:$LINENO: result: $CP" >&5
3530 echo "${ECHO_T}$CP" >&6
3531 else
3532   echo "$as_me:$LINENO: result: no" >&5
3533 echo "${ECHO_T}no" >&6
3534 fi
3535
3536 # Extract the first word of "sed", so it can be a program name with args.
3537 set dummy sed; ac_word=$2
3538 echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540 if test "${ac_cv_path_SED+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   case $SED in
3544   [\\/]* | ?:[\\/]*)
3545   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3546   ;;
3547   *)
3548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551   IFS=$as_save_IFS
3552   test -z "$as_dir" && as_dir=.
3553   for ac_exec_ext in '' $ac_executable_extensions; do
3554   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3556     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560 done
3561
3562   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3563   ;;
3564 esac
3565 fi
3566 SED=$ac_cv_path_SED
3567
3568 if test -n "$SED"; then
3569   echo "$as_me:$LINENO: result: $SED" >&5
3570 echo "${ECHO_T}$SED" >&6
3571 else
3572   echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6
3574 fi
3575
3576 # Extract the first word of "echo", so it can be a program name with args.
3577 set dummy echo; ac_word=$2
3578 echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580 if test "${ac_cv_path_ECHO+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   case $ECHO in
3584   [\\/]* | ?:[\\/]*)
3585   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3586   ;;
3587   *)
3588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3590 do
3591   IFS=$as_save_IFS
3592   test -z "$as_dir" && as_dir=.
3593   for ac_exec_ext in '' $ac_executable_extensions; do
3594   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3596     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3597     break 2
3598   fi
3599 done
3600 done
3601
3602   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3603   ;;
3604 esac
3605 fi
3606 ECHO=$ac_cv_path_ECHO
3607
3608 if test -n "$ECHO"; then
3609   echo "$as_me:$LINENO: result: $ECHO" >&5
3610 echo "${ECHO_T}$ECHO" >&6
3611 else
3612   echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6
3614 fi
3615
3616 # Extract the first word of "cmp", so it can be a program name with args.
3617 set dummy cmp; ac_word=$2
3618 echo "$as_me:$LINENO: checking for $ac_word" >&5
3619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3620 if test "${ac_cv_path_CMP+set}" = set; then
3621   echo $ECHO_N "(cached) $ECHO_C" >&6
3622 else
3623   case $CMP in
3624   [\\/]* | ?:[\\/]*)
3625   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3626   ;;
3627   *)
3628   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3629 for as_dir in $PATH
3630 do
3631   IFS=$as_save_IFS
3632   test -z "$as_dir" && as_dir=.
3633   for ac_exec_ext in '' $ac_executable_extensions; do
3634   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3635     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637     break 2
3638   fi
3639 done
3640 done
3641
3642   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3643   ;;
3644 esac
3645 fi
3646 CMP=$ac_cv_path_CMP
3647
3648 if test -n "$CMP"; then
3649   echo "$as_me:$LINENO: result: $CMP" >&5
3650 echo "${ECHO_T}$CMP" >&6
3651 else
3652   echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3654 fi
3655
3656 # Extract the first word of "tbl", so it can be a program name with args.
3657 set dummy tbl; ac_word=$2
3658 echo "$as_me:$LINENO: checking for $ac_word" >&5
3659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3660 if test "${ac_cv_path_TBL+set}" = set; then
3661   echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663   case $TBL in
3664   [\\/]* | ?:[\\/]*)
3665   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3666   ;;
3667   *)
3668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3670 do
3671   IFS=$as_save_IFS
3672   test -z "$as_dir" && as_dir=.
3673   for ac_exec_ext in '' $ac_executable_extensions; do
3674   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3675     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3677     break 2
3678   fi
3679 done
3680 done
3681
3682   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3683   ;;
3684 esac
3685 fi
3686 TBL=$ac_cv_path_TBL
3687
3688 if test -n "$TBL"; then
3689   echo "$as_me:$LINENO: result: $TBL" >&5
3690 echo "${ECHO_T}$TBL" >&6
3691 else
3692   echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6
3694 fi
3695
3696 # Extract the first word of "ar", so it can be a program name with args.
3697 set dummy ar; ac_word=$2
3698 echo "$as_me:$LINENO: checking for $ac_word" >&5
3699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700 if test "${ac_cv_path_AR+set}" = set; then
3701   echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703   case $AR in
3704   [\\/]* | ?:[\\/]*)
3705   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3706   ;;
3707   *)
3708   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3709 for as_dir in $PATH
3710 do
3711   IFS=$as_save_IFS
3712   test -z "$as_dir" && as_dir=.
3713   for ac_exec_ext in '' $ac_executable_extensions; do
3714   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3715     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3716     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3717     break 2
3718   fi
3719 done
3720 done
3721
3722   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3723   ;;
3724 esac
3725 fi
3726 AR=$ac_cv_path_AR
3727
3728 if test -n "$AR"; then
3729   echo "$as_me:$LINENO: result: $AR" >&5
3730 echo "${ECHO_T}$AR" >&6
3731 else
3732   echo "$as_me:$LINENO: result: no" >&5
3733 echo "${ECHO_T}no" >&6
3734 fi
3735
3736 # Extract the first word of "openssl", so it can be a program name with args.
3737 set dummy openssl; ac_word=$2
3738 echo "$as_me:$LINENO: checking for $ac_word" >&5
3739 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3740 if test "${ac_cv_path_OPENSSL+set}" = set; then
3741   echo $ECHO_N "(cached) $ECHO_C" >&6
3742 else
3743   case $OPENSSL in
3744   [\\/]* | ?:[\\/]*)
3745   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3746   ;;
3747   *)
3748   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749 for as_dir in $PATH
3750 do
3751   IFS=$as_save_IFS
3752   test -z "$as_dir" && as_dir=.
3753   for ac_exec_ext in '' $ac_executable_extensions; do
3754   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3755     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3756     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3757     break 2
3758   fi
3759 done
3760 done
3761
3762   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3763   ;;
3764 esac
3765 fi
3766 OPENSSL=$ac_cv_path_OPENSSL
3767
3768 if test -n "$OPENSSL"; then
3769   echo "$as_me:$LINENO: result: $OPENSSL" >&5
3770 echo "${ECHO_T}$OPENSSL" >&6
3771 else
3772   echo "$as_me:$LINENO: result: no" >&5
3773 echo "${ECHO_T}no" >&6
3774 fi
3775
3776 # Extract the first word of "mtx", so it can be a program name with args.
3777 set dummy mtx; ac_word=$2
3778 echo "$as_me:$LINENO: checking for $ac_word" >&5
3779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3780 if test "${ac_cv_path_MTX+set}" = set; then
3781   echo $ECHO_N "(cached) $ECHO_C" >&6
3782 else
3783   case $MTX in
3784   [\\/]* | ?:[\\/]*)
3785   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3786   ;;
3787   *)
3788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3790 do
3791   IFS=$as_save_IFS
3792   test -z "$as_dir" && as_dir=.
3793   for ac_exec_ext in '' $ac_executable_extensions; do
3794   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3795     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3796     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3797     break 2
3798   fi
3799 done
3800 done
3801
3802   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3803   ;;
3804 esac
3805 fi
3806 MTX=$ac_cv_path_MTX
3807
3808 if test -n "$MTX"; then
3809   echo "$as_me:$LINENO: result: $MTX" >&5
3810 echo "${ECHO_T}$MTX" >&6
3811 else
3812   echo "$as_me:$LINENO: result: no" >&5
3813 echo "${ECHO_T}no" >&6
3814 fi
3815
3816 # Extract the first word of "df", so it can be a program name with args.
3817 set dummy df; ac_word=$2
3818 echo "$as_me:$LINENO: checking for $ac_word" >&5
3819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3820 if test "${ac_cv_path_DF+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   case $DF in
3824   [\\/]* | ?:[\\/]*)
3825   ac_cv_path_DF="$DF" # Let the user override the test with a path.
3826   ;;
3827   *)
3828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829 for as_dir in $PATH
3830 do
3831   IFS=$as_save_IFS
3832   test -z "$as_dir" && as_dir=.
3833   for ac_exec_ext in '' $ac_executable_extensions; do
3834   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3835     ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3837     break 2
3838   fi
3839 done
3840 done
3841
3842   test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3843   ;;
3844 esac
3845 fi
3846 DF=$ac_cv_path_DF
3847
3848 if test -n "$DF"; then
3849   echo "$as_me:$LINENO: result: $DF" >&5
3850 echo "${ECHO_T}$DF" >&6
3851 else
3852   echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6
3854 fi
3855
3856 # Extract the first word of "mkisofs", so it can be a program name with args.
3857 set dummy mkisofs; ac_word=$2
3858 echo "$as_me:$LINENO: checking for $ac_word" >&5
3859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3860 if test "${ac_cv_path_MKISOFS+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   case $MKISOFS in
3864   [\\/]* | ?:[\\/]*)
3865   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3866   ;;
3867   *)
3868   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_exec_ext in '' $ac_executable_extensions; do
3874   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3877     break 2
3878   fi
3879 done
3880 done
3881
3882   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3883   ;;
3884 esac
3885 fi
3886 MKISOFS=$ac_cv_path_MKISOFS
3887
3888 if test -n "$MKISOFS"; then
3889   echo "$as_me:$LINENO: result: $MKISOFS" >&5
3890 echo "${ECHO_T}$MKISOFS" >&6
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 fi
3895
3896 # Extract the first word of "python", so it can be a program name with args.
3897 set dummy python; ac_word=$2
3898 echo "$as_me:$LINENO: checking for $ac_word" >&5
3899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3900 if test "${ac_cv_path_PYTHON+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   case $PYTHON in
3904   [\\/]* | ?:[\\/]*)
3905   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3906   ;;
3907   *)
3908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 for as_dir in $PATH
3910 do
3911   IFS=$as_save_IFS
3912   test -z "$as_dir" && as_dir=.
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3915     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917     break 2
3918   fi
3919 done
3920 done
3921
3922   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3923   ;;
3924 esac
3925 fi
3926 PYTHON=$ac_cv_path_PYTHON
3927
3928 if test -n "$PYTHON"; then
3929   echo "$as_me:$LINENO: result: $PYTHON" >&5
3930 echo "${ECHO_T}$PYTHON" >&6
3931 else
3932   echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6
3934 fi
3935
3936 # Extract the first word of "growisofs", so it can be a program name with args.
3937 set dummy growisofs; ac_word=$2
3938 echo "$as_me:$LINENO: checking for $ac_word" >&5
3939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3940 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3941   echo $ECHO_N "(cached) $ECHO_C" >&6
3942 else
3943   case $GROWISOFS in
3944   [\\/]* | ?:[\\/]*)
3945   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3946   ;;
3947   *)
3948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3950 do
3951   IFS=$as_save_IFS
3952   test -z "$as_dir" && as_dir=.
3953   for ac_exec_ext in '' $ac_executable_extensions; do
3954   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3956     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3957     break 2
3958   fi
3959 done
3960 done
3961
3962   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3963   ;;
3964 esac
3965 fi
3966 GROWISOFS=$ac_cv_path_GROWISOFS
3967
3968 if test -n "$GROWISOFS"; then
3969   echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3970 echo "${ECHO_T}$GROWISOFS" >&6
3971 else
3972   echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6
3974 fi
3975
3976 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3977 set dummy dvd+rw-mediainfo; ac_word=$2
3978 echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3980 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   case $DVDRWMEDIAINFO in
3984   [\\/]* | ?:[\\/]*)
3985   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3986   ;;
3987   *)
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001
4002   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4003   ;;
4004 esac
4005 fi
4006 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4007
4008 if test -n "$DVDRWMEDIAINFO"; then
4009   echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4010 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4011 else
4012   echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6
4014 fi
4015
4016 # Extract the first word of "pkg-config", so it can be a program name with args.
4017 set dummy pkg-config; ac_word=$2
4018 echo "$as_me:$LINENO: checking for $ac_word" >&5
4019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4020 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4021   echo $ECHO_N "(cached) $ECHO_C" >&6
4022 else
4023   case $PKGCONFIG in
4024   [\\/]* | ?:[\\/]*)
4025   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4026   ;;
4027   *)
4028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4035     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041
4042   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4043   ;;
4044 esac
4045 fi
4046 PKGCONFIG=$ac_cv_path_PKGCONFIG
4047
4048 if test -n "$PKGCONFIG"; then
4049   echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4050 echo "${ECHO_T}$PKGCONFIG" >&6
4051 else
4052   echo "$as_me:$LINENO: result: no" >&5
4053 echo "${ECHO_T}no" >&6
4054 fi
4055
4056
4057 if test "x$WXCONFIG" = x; then
4058   WXCONFIG=wx-config
4059 fi
4060 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4061 set dummy ${WXCONFIG}; ac_word=$2
4062 echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4064 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067   case $WXCONFIG in
4068   [\\/]* | ?:[\\/]*)
4069   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4070   ;;
4071   *)
4072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4074 do
4075   IFS=$as_save_IFS
4076   test -z "$as_dir" && as_dir=.
4077   for ac_exec_ext in '' $ac_executable_extensions; do
4078   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4079     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4080     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081     break 2
4082   fi
4083 done
4084 done
4085
4086   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4087   ;;
4088 esac
4089 fi
4090 WXCONFIG=$ac_cv_path_WXCONFIG
4091
4092 if test -n "$WXCONFIG"; then
4093   echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4094 echo "${ECHO_T}$WXCONFIG" >&6
4095 else
4096   echo "$as_me:$LINENO: result: no" >&5
4097 echo "${ECHO_T}no" >&6
4098 fi
4099
4100
4101 # Extract the first word of "cdrecord", so it can be a program name with args.
4102 set dummy cdrecord; ac_word=$2
4103 echo "$as_me:$LINENO: checking for $ac_word" >&5
4104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4105 if test "${ac_cv_path_CDRECORD+set}" = set; then
4106   echo $ECHO_N "(cached) $ECHO_C" >&6
4107 else
4108   case $CDRECORD in
4109   [\\/]* | ?:[\\/]*)
4110   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4111   ;;
4112   *)
4113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4114 for as_dir in $PATH
4115 do
4116   IFS=$as_save_IFS
4117   test -z "$as_dir" && as_dir=.
4118   for ac_exec_ext in '' $ac_executable_extensions; do
4119   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4120     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4122     break 2
4123   fi
4124 done
4125 done
4126
4127   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4128   ;;
4129 esac
4130 fi
4131 CDRECORD=$ac_cv_path_CDRECORD
4132
4133 if test -n "$CDRECORD"; then
4134   echo "$as_me:$LINENO: result: $CDRECORD" >&5
4135 echo "${ECHO_T}$CDRECORD" >&6
4136 else
4137   echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4139 fi
4140
4141 # Extract the first word of "pidof", so it can be a program name with args.
4142 set dummy pidof; ac_word=$2
4143 echo "$as_me:$LINENO: checking for $ac_word" >&5
4144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4145 if test "${ac_cv_path_PIDOF+set}" = set; then
4146   echo $ECHO_N "(cached) $ECHO_C" >&6
4147 else
4148   case $PIDOF in
4149   [\\/]* | ?:[\\/]*)
4150   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4151   ;;
4152   *)
4153   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 for as_dir in $PATH
4155 do
4156   IFS=$as_save_IFS
4157   test -z "$as_dir" && as_dir=.
4158   for ac_exec_ext in '' $ac_executable_extensions; do
4159   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4160     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162     break 2
4163   fi
4164 done
4165 done
4166
4167   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4168   ;;
4169 esac
4170 fi
4171 PIDOF=$ac_cv_path_PIDOF
4172
4173 if test -n "$PIDOF"; then
4174   echo "$as_me:$LINENO: result: $PIDOF" >&5
4175 echo "${ECHO_T}$PIDOF" >&6
4176 else
4177   echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6
4179 fi
4180
4181 for ac_prog in gawk mawk nawk awk
4182 do
4183   # Extract the first word of "$ac_prog", so it can be a program name with args.
4184 set dummy $ac_prog; ac_word=$2
4185 echo "$as_me:$LINENO: checking for $ac_word" >&5
4186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4187 if test "${ac_cv_prog_AWK+set}" = set; then
4188   echo $ECHO_N "(cached) $ECHO_C" >&6
4189 else
4190   if test -n "$AWK"; then
4191   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4195 do
4196   IFS=$as_save_IFS
4197   test -z "$as_dir" && as_dir=.
4198   for ac_exec_ext in '' $ac_executable_extensions; do
4199   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200     ac_cv_prog_AWK="$ac_prog"
4201     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202     break 2
4203   fi
4204 done
4205 done
4206
4207 fi
4208 fi
4209 AWK=$ac_cv_prog_AWK
4210 if test -n "$AWK"; then
4211   echo "$as_me:$LINENO: result: $AWK" >&5
4212 echo "${ECHO_T}$AWK" >&6
4213 else
4214   echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216 fi
4217
4218   test -n "$AWK" && break
4219 done
4220
4221 # Some AWK programs fail, so test it and warn the user
4222 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4223       { if ((prog == $2) || (("(" prog ")") == $2) ||
4224            (("" prog "") == $2) ||
4225            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4226 else
4227   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4228    The regex engine of $AWK is too broken to be used you
4229    might want to install GNU AWK.
4230    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4231 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4232    The regex engine of $AWK is too broken to be used you
4233    might want to install GNU AWK.
4234    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4235    { (exit 1); exit 1; }; }
4236 fi
4237 THE_AWK=$AWK
4238 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4239 set dummy $THE_AWK; ac_word=$2
4240 echo "$as_me:$LINENO: checking for $ac_word" >&5
4241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4242 if test "${ac_cv_path_AWK+set}" = set; then
4243   echo $ECHO_N "(cached) $ECHO_C" >&6
4244 else
4245   case $AWK in
4246   [\\/]* | ?:[\\/]*)
4247   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4248   ;;
4249   *)
4250   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259     break 2
4260   fi
4261 done
4262 done
4263
4264   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4265   ;;
4266 esac
4267 fi
4268 AWK=$ac_cv_path_AWK
4269
4270 if test -n "$AWK"; then
4271   echo "$as_me:$LINENO: result: $AWK" >&5
4272 echo "${ECHO_T}$AWK" >&6
4273 else
4274   echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6
4276 fi
4277
4278
4279 test -n "$ARFLAG" || ARFLAGS="cr"
4280
4281
4282 MAKE_SHELL=/bin/sh
4283
4284
4285
4286
4287
4288
4289
4290 # Make sure we can run config.sub.
4291 $ac_config_sub sun4 >/dev/null 2>&1 ||
4292   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4293 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4294    { (exit 1); exit 1; }; }
4295
4296 echo "$as_me:$LINENO: checking build system type" >&5
4297 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4298 if test "${ac_cv_build+set}" = set; then
4299   echo $ECHO_N "(cached) $ECHO_C" >&6
4300 else
4301   ac_cv_build_alias=$build_alias
4302 test -z "$ac_cv_build_alias" &&
4303   ac_cv_build_alias=`$ac_config_guess`
4304 test -z "$ac_cv_build_alias" &&
4305   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4306 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4307    { (exit 1); exit 1; }; }
4308 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4309   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4310 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4311    { (exit 1); exit 1; }; }
4312
4313 fi
4314 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4315 echo "${ECHO_T}$ac_cv_build" >&6
4316 build=$ac_cv_build
4317 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4318 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4319 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4320
4321
4322
4323 echo "$as_me:$LINENO: checking host system type" >&5
4324 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4325 if test "${ac_cv_host+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   ac_cv_host_alias=$host_alias
4329 test -z "$ac_cv_host_alias" &&
4330   ac_cv_host_alias=$ac_cv_build_alias
4331 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4332   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4333 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4334    { (exit 1); exit 1; }; }
4335
4336 fi
4337 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4338 echo "${ECHO_T}$ac_cv_host" >&6
4339 host=$ac_cv_host
4340 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4341 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4342 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4343
4344
4345 case $host_os in
4346   *cygwin* ) CYGWIN=yes;;
4347          * ) CYGWIN=no;;
4348 esac
4349
4350 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 then
4352
4353
4354 if $TRUEPRG; then
4355   HAVE_SUN_OS_TRUE=
4356   HAVE_SUN_OS_FALSE='#'
4357 else
4358   HAVE_SUN_OS_TRUE='#'
4359   HAVE_SUN_OS_FALSE=
4360 fi
4361         cat >>confdefs.h <<\_ACEOF
4362 #define HAVE_SUN_OS 1
4363 _ACEOF
4364
4365 else
4366
4367
4368 if $FALSEPRG; then
4369   HAVE_SUN_OS_TRUE=
4370   HAVE_SUN_OS_FALSE='#'
4371 else
4372   HAVE_SUN_OS_TRUE='#'
4373   HAVE_SUN_OS_FALSE=
4374 fi
4375 fi
4376
4377 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 then
4379
4380
4381 if $TRUEPRG; then
4382   HAVE_OSF1_OS_TRUE=
4383   HAVE_OSF1_OS_FALSE='#'
4384 else
4385   HAVE_OSF1_OS_TRUE='#'
4386   HAVE_OSF1_OS_FALSE=
4387 fi
4388         cat >>confdefs.h <<\_ACEOF
4389 #define HAVE_OSF1_OS 1
4390 _ACEOF
4391
4392 else
4393
4394
4395 if $FALSEPRG; then
4396   HAVE_OSF1_OS_TRUE=
4397   HAVE_OSF1_OS_FALSE='#'
4398 else
4399   HAVE_OSF1_OS_TRUE='#'
4400   HAVE_OSF1_OS_FALSE=
4401 fi
4402 fi
4403
4404 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 then
4406
4407
4408 if $TRUEPRG; then
4409   HAVE_AIX_OS_TRUE=
4410   HAVE_AIX_OS_FALSE='#'
4411 else
4412   HAVE_AIX_OS_TRUE='#'
4413   HAVE_AIX_OS_FALSE=
4414 fi
4415         cat >>confdefs.h <<\_ACEOF
4416 #define HAVE_AIX_OS 1
4417 _ACEOF
4418
4419 else
4420
4421
4422 if $FALSEPRG; then
4423   HAVE_AIX_OS_TRUE=
4424   HAVE_AIX_OS_FALSE='#'
4425 else
4426   HAVE_AIX_OS_TRUE='#'
4427   HAVE_AIX_OS_FALSE=
4428 fi
4429 fi
4430
4431 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 then
4433
4434
4435 if $TRUEPRG; then
4436   HAVE_HPUX_OS_TRUE=
4437   HAVE_HPUX_OS_FALSE='#'
4438 else
4439   HAVE_HPUX_OS_TRUE='#'
4440   HAVE_HPUX_OS_FALSE=
4441 fi
4442         cat >>confdefs.h <<\_ACEOF
4443 #define HAVE_HPUX_OS 1
4444 _ACEOF
4445
4446 else
4447
4448
4449 if $FALSEPRG; then
4450   HAVE_HPUX_OS_TRUE=
4451   HAVE_HPUX_OS_FALSE='#'
4452 else
4453   HAVE_HPUX_OS_TRUE='#'
4454   HAVE_HPUX_OS_FALSE=
4455 fi
4456 fi
4457
4458 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 then
4460
4461
4462 if $TRUEPRG; then
4463   HAVE_LINUX_OS_TRUE=
4464   HAVE_LINUX_OS_FALSE='#'
4465 else
4466   HAVE_LINUX_OS_TRUE='#'
4467   HAVE_LINUX_OS_FALSE=
4468 fi
4469         cat >>confdefs.h <<\_ACEOF
4470 #define HAVE_LINUX_OS 1
4471 _ACEOF
4472
4473 else
4474
4475
4476 if $FALSEPRG; then
4477   HAVE_LINUX_OS_TRUE=
4478   HAVE_LINUX_OS_FALSE='#'
4479 else
4480   HAVE_LINUX_OS_TRUE='#'
4481   HAVE_LINUX_OS_FALSE=
4482 fi
4483 fi
4484
4485 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4486 then
4487
4488
4489 if $TRUEPRG; then
4490   HAVE_FREEBSD_OS_TRUE=
4491   HAVE_FREEBSD_OS_FALSE='#'
4492 else
4493   HAVE_FREEBSD_OS_TRUE='#'
4494   HAVE_FREEBSD_OS_FALSE=
4495 fi
4496         cat >>confdefs.h <<\_ACEOF
4497 #define HAVE_FREEBSD_OS 1
4498 _ACEOF
4499
4500 else
4501
4502
4503 if $FALSEPRG; then
4504   HAVE_FREEBSD_OS_TRUE=
4505   HAVE_FREEBSD_OS_FALSE='#'
4506 else
4507   HAVE_FREEBSD_OS_TRUE='#'
4508   HAVE_FREEBSD_OS_FALSE=
4509 fi
4510 fi
4511
4512 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4513 then
4514
4515
4516 if $TRUEPRG; then
4517   HAVE_NETBSD_OS_TRUE=
4518   HAVE_NETBSD_OS_FALSE='#'
4519 else
4520   HAVE_NETBSD_OS_TRUE='#'
4521   HAVE_NETBSD_OS_FALSE=
4522 fi
4523         cat >>confdefs.h <<\_ACEOF
4524 #define HAVE_NETBSD_OS 1
4525 _ACEOF
4526
4527 else
4528
4529
4530 if $FALSEPRG; then
4531   HAVE_NETBSD_OS_TRUE=
4532   HAVE_NETBSD_OS_FALSE='#'
4533 else
4534   HAVE_NETBSD_OS_TRUE='#'
4535   HAVE_NETBSD_OS_FALSE=
4536 fi
4537 fi
4538
4539 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4540 then
4541
4542
4543 if $TRUEPRG; then
4544   HAVE_OPENBSD_OS_TRUE=
4545   HAVE_OPENBSD_OS_FALSE='#'
4546 else
4547   HAVE_OPENBSD_OS_TRUE='#'
4548   HAVE_OPENBSD_OS_FALSE=
4549 fi
4550         cat >>confdefs.h <<\_ACEOF
4551 #define HAVE_OPENBSD_OS 1
4552 _ACEOF
4553
4554 else
4555
4556
4557 if $FALSEPRG; then
4558   HAVE_OPENBSD_OS_TRUE=
4559   HAVE_OPENBSD_OS_FALSE='#'
4560 else
4561   HAVE_OPENBSD_OS_TRUE='#'
4562   HAVE_OPENBSD_OS_FALSE=
4563 fi
4564 fi
4565
4566 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 then
4568
4569
4570 if $TRUEPRG; then
4571   HAVE_BSDI_OS_TRUE=
4572   HAVE_BSDI_OS_FALSE='#'
4573 else
4574   HAVE_BSDI_OS_TRUE='#'
4575   HAVE_BSDI_OS_FALSE=
4576 fi
4577         cat >>confdefs.h <<\_ACEOF
4578 #define HAVE_BSDI_OS 1
4579 _ACEOF
4580
4581 else
4582
4583
4584 if $FALSEPRG; then
4585   HAVE_BSDI_OS_TRUE=
4586   HAVE_BSDI_OS_FALSE='#'
4587 else
4588   HAVE_BSDI_OS_TRUE='#'
4589   HAVE_BSDI_OS_FALSE=
4590 fi
4591 fi
4592
4593 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 then
4595
4596
4597 if $TRUEPRG; then
4598   HAVE_SGI_OS_TRUE=
4599   HAVE_SGI_OS_FALSE='#'
4600 else
4601   HAVE_SGI_OS_TRUE='#'
4602   HAVE_SGI_OS_FALSE=
4603 fi
4604         cat >>confdefs.h <<\_ACEOF
4605 #define HAVE_SGI_OS 1
4606 _ACEOF
4607
4608 else
4609
4610
4611 if $FALSEPRG; then
4612   HAVE_SGI_OS_TRUE=
4613   HAVE_SGI_OS_FALSE='#'
4614 else
4615   HAVE_SGI_OS_TRUE='#'
4616   HAVE_SGI_OS_FALSE=
4617 fi
4618 fi
4619
4620 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 then
4622
4623
4624 if $TRUEPRG; then
4625   HAVE_IRIX_OS_TRUE=
4626   HAVE_IRIX_OS_FALSE='#'
4627 else
4628   HAVE_IRIX_OS_TRUE='#'
4629   HAVE_IRIX_OS_FALSE=
4630 fi
4631         cat >>confdefs.h <<\_ACEOF
4632 #define HAVE_IRIX_OS 1
4633 _ACEOF
4634
4635 else
4636
4637
4638 if $FALSEPRG; then
4639   HAVE_IRIX_OS_TRUE=
4640   HAVE_IRIX_OS_FALSE='#'
4641 else
4642   HAVE_IRIX_OS_TRUE='#'
4643   HAVE_IRIX_OS_FALSE=
4644 fi
4645 fi
4646
4647 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4648 then
4649
4650
4651 if $TRUEPRG; then
4652   HAVE_DARWIN_OS_TRUE=
4653   HAVE_DARWIN_OS_FALSE='#'
4654 else
4655   HAVE_DARWIN_OS_TRUE='#'
4656   HAVE_DARWIN_OS_FALSE=
4657 fi
4658     cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_DARWIN_OS 1
4660 _ACEOF
4661
4662 else
4663
4664
4665 if $FALSEPRG; then
4666   HAVE_DARWIN_OS_TRUE=
4667   HAVE_DARWIN_OS_FALSE='#'
4668 else
4669   HAVE_DARWIN_OS_TRUE='#'
4670   HAVE_DARWIN_OS_FALSE=
4671 fi
4672 fi
4673
4674
4675 # -----------------------------------------------------------
4676 # ----------------------------------------------------------
4677 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4678 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4679 if test "x$DISTNAME" != "x"
4680 then
4681         echo "distname set to $DISTNAME"
4682 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4683 then
4684         DISTNAME=alpha
4685 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4686 then
4687         DISTNAME=aix
4688 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4689 then
4690         DISTNAME=hpux
4691 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4692 then
4693         DISTNAME=solaris
4694 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4695 then
4696         DISTNAME=freebsd
4697 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4698 then
4699         DISTNAME=netbsd
4700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4701 then
4702         DISTNAME=openbsd
4703 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4704 then
4705         DISTNAME=irix
4706 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4707 then
4708         DISTNAME=bsdi
4709 elif test -f /etc/SuSE-release
4710 then
4711         DISTNAME=suse
4712 elif test -d /etc/SuSEconfig
4713 then
4714         DISTNAME=suse5
4715 elif test -f /etc/mandrake-release
4716 then
4717         DISTNAME=mandrake
4718 elif test -f /etc/whitebox-release
4719 then
4720        DISTNAME=redhat
4721 elif test -f /etc/redhat-release
4722 then
4723         DISTNAME=redhat
4724 elif test -f /etc/gentoo-release
4725 then
4726         DISTNAME=gentoo
4727 elif test -f /etc/debian_version
4728 then
4729         DISTNAME=debian
4730 elif test -f /etc/slackware-version
4731 then
4732         DISTNAME=slackware
4733 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4734 then
4735     DISTNAME=darwin
4736 elif test -f /etc/engarde-version
4737 then
4738         DISTNAME=engarde
4739 elif test "$CYGWIN" = yes
4740 then
4741         DISTNAME=cygwin
4742         cat >>confdefs.h <<\_ACEOF
4743 #define HAVE_CYGWIN 1
4744 _ACEOF
4745
4746 else
4747         DISTNAME=unknown
4748 fi
4749 echo "$as_me:$LINENO: result: done" >&5
4750 echo "${ECHO_T}done" >&6
4751
4752
4753 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4754 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4756 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   cat >conftest.make <<\_ACEOF
4760 all:
4761         @echo 'ac_maketemp="$(MAKE)"'
4762 _ACEOF
4763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4764 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4765 if test -n "$ac_maketemp"; then
4766   eval ac_cv_prog_make_${ac_make}_set=yes
4767 else
4768   eval ac_cv_prog_make_${ac_make}_set=no
4769 fi
4770 rm -f conftest.make
4771 fi
4772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4773   echo "$as_me:$LINENO: result: yes" >&5
4774 echo "${ECHO_T}yes" >&6
4775   SET_MAKE=
4776 else
4777   echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6
4779   SET_MAKE="MAKE=${MAKE-make}"
4780 fi
4781
4782
4783
4784         MKINSTALLDIRS=
4785   if test -n "$ac_aux_dir"; then
4786     case "$ac_aux_dir" in
4787       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4788       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4789     esac
4790   fi
4791   if test -z "$MKINSTALLDIRS"; then
4792     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4793   fi
4794
4795
4796
4797   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4799     # Check whether --enable-nls or --disable-nls was given.
4800 if test "${enable_nls+set}" = set; then
4801   enableval="$enable_nls"
4802   USE_NLS=$enableval
4803 else
4804   USE_NLS=yes
4805 fi;
4806   echo "$as_me:$LINENO: result: $USE_NLS" >&5
4807 echo "${ECHO_T}$USE_NLS" >&6
4808
4809
4810
4811
4812
4813
4814 # Prepare PATH_SEPARATOR.
4815 # The user is always right.
4816 if test "${PATH_SEPARATOR+set}" != set; then
4817   echo "#! /bin/sh" >conf$$.sh
4818   echo  "exit 0"   >>conf$$.sh
4819   chmod +x conf$$.sh
4820   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4821     PATH_SEPARATOR=';'
4822   else
4823     PATH_SEPARATOR=:
4824   fi
4825   rm -f conf$$.sh
4826 fi
4827
4828 # Find out how to test for executable files. Don't use a zero-byte file,
4829 # as systems may use methods other than mode bits to determine executability.
4830 cat >conf$$.file <<_ASEOF
4831 #! /bin/sh
4832 exit 0
4833 _ASEOF
4834 chmod +x conf$$.file
4835 if test -x conf$$.file >/dev/null 2>&1; then
4836   ac_executable_p="test -x"
4837 else
4838   ac_executable_p="test -f"
4839 fi
4840 rm -f conf$$.file
4841
4842 # Extract the first word of "msgfmt", so it can be a program name with args.
4843 set dummy msgfmt; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_path_MSGFMT+set}" = set; then
4847   echo $ECHO_N "(cached) $ECHO_C" >&6
4848 else
4849   case "$MSGFMT" in
4850   [\\/]* | ?:[\\/]*)
4851     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4852     ;;
4853   *)
4854     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4855     for ac_dir in $PATH; do
4856       IFS="$ac_save_IFS"
4857       test -z "$ac_dir" && ac_dir=.
4858       for ac_exec_ext in '' $ac_executable_extensions; do
4859         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4860           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4861           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
4862      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4863             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4864             break 2
4865           fi
4866         fi
4867       done
4868     done
4869     IFS="$ac_save_IFS"
4870   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4871     ;;
4872 esac
4873 fi
4874 MSGFMT="$ac_cv_path_MSGFMT"
4875 if test "$MSGFMT" != ":"; then
4876   echo "$as_me:$LINENO: result: $MSGFMT" >&5
4877 echo "${ECHO_T}$MSGFMT" >&6
4878 else
4879   echo "$as_me:$LINENO: result: no" >&5
4880 echo "${ECHO_T}no" >&6
4881 fi
4882
4883   # Extract the first word of "gmsgfmt", so it can be a program name with args.
4884 set dummy gmsgfmt; ac_word=$2
4885 echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4887 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4888   echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890   case $GMSGFMT in
4891   [\\/]* | ?:[\\/]*)
4892   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4893   ;;
4894   *)
4895   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898   IFS=$as_save_IFS
4899   test -z "$as_dir" && as_dir=.
4900   for ac_exec_ext in '' $ac_executable_extensions; do
4901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904     break 2
4905   fi
4906 done
4907 done
4908
4909   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4910   ;;
4911 esac
4912 fi
4913 GMSGFMT=$ac_cv_path_GMSGFMT
4914
4915 if test -n "$GMSGFMT"; then
4916   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4917 echo "${ECHO_T}$GMSGFMT" >&6
4918 else
4919   echo "$as_me:$LINENO: result: no" >&5
4920 echo "${ECHO_T}no" >&6
4921 fi
4922
4923
4924
4925 # Prepare PATH_SEPARATOR.
4926 # The user is always right.
4927 if test "${PATH_SEPARATOR+set}" != set; then
4928   echo "#! /bin/sh" >conf$$.sh
4929   echo  "exit 0"   >>conf$$.sh
4930   chmod +x conf$$.sh
4931   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4932     PATH_SEPARATOR=';'
4933   else
4934     PATH_SEPARATOR=:
4935   fi
4936   rm -f conf$$.sh
4937 fi
4938
4939 # Find out how to test for executable files. Don't use a zero-byte file,
4940 # as systems may use methods other than mode bits to determine executability.
4941 cat >conf$$.file <<_ASEOF
4942 #! /bin/sh
4943 exit 0
4944 _ASEOF
4945 chmod +x conf$$.file
4946 if test -x conf$$.file >/dev/null 2>&1; then
4947   ac_executable_p="test -x"
4948 else
4949   ac_executable_p="test -f"
4950 fi
4951 rm -f conf$$.file
4952
4953 # Extract the first word of "xgettext", so it can be a program name with args.
4954 set dummy xgettext; ac_word=$2
4955 echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4957 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   case "$XGETTEXT" in
4961   [\\/]* | ?:[\\/]*)
4962     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4963     ;;
4964   *)
4965     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4966     for ac_dir in $PATH; do
4967       IFS="$ac_save_IFS"
4968       test -z "$ac_dir" && ac_dir=.
4969       for ac_exec_ext in '' $ac_executable_extensions; do
4970         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4971           echo "$as_me: trying $ac_dir/$ac_word..." >&5
4972           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
4973      (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
4974             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4975             break 2
4976           fi
4977         fi
4978       done
4979     done
4980     IFS="$ac_save_IFS"
4981   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4982     ;;
4983 esac
4984 fi
4985 XGETTEXT="$ac_cv_path_XGETTEXT"
4986 if test "$XGETTEXT" != ":"; then
4987   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4988 echo "${ECHO_T}$XGETTEXT" >&6
4989 else
4990   echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4992 fi
4993
4994     rm -f messages.po
4995
4996
4997 # Prepare PATH_SEPARATOR.
4998 # The user is always right.
4999 if test "${PATH_SEPARATOR+set}" != set; then
5000   echo "#! /bin/sh" >conf$$.sh
5001   echo  "exit 0"   >>conf$$.sh
5002   chmod +x conf$$.sh
5003   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5004     PATH_SEPARATOR=';'
5005   else
5006     PATH_SEPARATOR=:
5007   fi
5008   rm -f conf$$.sh
5009 fi
5010
5011 # Find out how to test for executable files. Don't use a zero-byte file,
5012 # as systems may use methods other than mode bits to determine executability.
5013 cat >conf$$.file <<_ASEOF
5014 #! /bin/sh
5015 exit 0
5016 _ASEOF
5017 chmod +x conf$$.file
5018 if test -x conf$$.file >/dev/null 2>&1; then
5019   ac_executable_p="test -x"
5020 else
5021   ac_executable_p="test -f"
5022 fi
5023 rm -f conf$$.file
5024
5025 # Extract the first word of "msgmerge", so it can be a program name with args.
5026 set dummy msgmerge; ac_word=$2
5027 echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5030   echo $ECHO_N "(cached) $ECHO_C" >&6
5031 else
5032   case "$MSGMERGE" in
5033   [\\/]* | ?:[\\/]*)
5034     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5035     ;;
5036   *)
5037     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5038     for ac_dir in $PATH; do
5039       IFS="$ac_save_IFS"
5040       test -z "$ac_dir" && ac_dir=.
5041       for ac_exec_ext in '' $ac_executable_extensions; do
5042         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5043           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5044           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5045             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5046             break 2
5047           fi
5048         fi
5049       done
5050     done
5051     IFS="$ac_save_IFS"
5052   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5053     ;;
5054 esac
5055 fi
5056 MSGMERGE="$ac_cv_path_MSGMERGE"
5057 if test "$MSGMERGE" != ":"; then
5058   echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5059 echo "${ECHO_T}$MSGMERGE" >&6
5060 else
5061   echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6
5063 fi
5064
5065
5066       if test "$GMSGFMT" != ":"; then
5067             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5068        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5069       : ;
5070     else
5071       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5072       echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5073 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5074       GMSGFMT=":"
5075     fi
5076   fi
5077
5078       if test "$XGETTEXT" != ":"; then
5079             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5080        (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
5081       : ;
5082     else
5083       echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5084 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5085       XGETTEXT=":"
5086     fi
5087         rm -f messages.po
5088   fi
5089
5090             ac_config_commands="$ac_config_commands default-1"
5091
5092
5093
5094       if test "X$prefix" = "XNONE"; then
5095     acl_final_prefix="$ac_default_prefix"
5096   else
5097     acl_final_prefix="$prefix"
5098   fi
5099   if test "X$exec_prefix" = "XNONE"; then
5100     acl_final_exec_prefix='${prefix}'
5101   else
5102     acl_final_exec_prefix="$exec_prefix"
5103   fi
5104   acl_save_prefix="$prefix"
5105   prefix="$acl_final_prefix"
5106   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5107   prefix="$acl_save_prefix"
5108
5109
5110 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5111 if test "${with_gnu_ld+set}" = set; then
5112   withval="$with_gnu_ld"
5113   test "$withval" = no || with_gnu_ld=yes
5114 else
5115   with_gnu_ld=no
5116 fi;
5117 # Prepare PATH_SEPARATOR.
5118 # The user is always right.
5119 if test "${PATH_SEPARATOR+set}" != set; then
5120   echo "#! /bin/sh" >conf$$.sh
5121   echo  "exit 0"   >>conf$$.sh
5122   chmod +x conf$$.sh
5123   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5124     PATH_SEPARATOR=';'
5125   else
5126     PATH_SEPARATOR=:
5127   fi
5128   rm -f conf$$.sh
5129 fi
5130 ac_prog=ld
5131 if test "$GCC" = yes; then
5132   # Check if gcc -print-prog-name=ld gives a path.
5133   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5134 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5135   case $host in
5136   *-*-mingw*)
5137     # gcc leaves a trailing carriage return which upsets mingw
5138     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5139   *)
5140     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5141   esac
5142   case $ac_prog in
5143     # Accept absolute paths.
5144     [\\/]* | [A-Za-z]:[\\/]*)
5145       re_direlt='/[^/][^/]*/\.\./'
5146       # Canonicalize the path of ld
5147       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5148       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5149         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5150       done
5151       test -z "$LD" && LD="$ac_prog"
5152       ;;
5153   "")
5154     # If it fails, then pretend we aren't using GCC.
5155     ac_prog=ld
5156     ;;
5157   *)
5158     # If it is relative, then search for the first ld in PATH.
5159     with_gnu_ld=unknown
5160     ;;
5161   esac
5162 elif test "$with_gnu_ld" = yes; then
5163   echo "$as_me:$LINENO: checking for GNU ld" >&5
5164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5165 else
5166   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5168 fi
5169 if test "${acl_cv_path_LD+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -z "$LD"; then
5173   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5174   for ac_dir in $PATH; do
5175     test -z "$ac_dir" && ac_dir=.
5176     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5177       acl_cv_path_LD="$ac_dir/$ac_prog"
5178       # Check to see if the program is GNU ld.  I'd rather use --version,
5179       # but apparently some GNU ld's only accept -v.
5180       # Break only if it was the GNU/non-GNU ld that we prefer.
5181       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5182       *GNU* | *'with BFD'*)
5183         test "$with_gnu_ld" != no && break ;;
5184       *)
5185         test "$with_gnu_ld" != yes && break ;;
5186       esac
5187     fi
5188   done
5189   IFS="$ac_save_ifs"
5190 else
5191   acl_cv_path_LD="$LD" # Let the user override the test with a path.
5192 fi
5193 fi
5194
5195 LD="$acl_cv_path_LD"
5196 if test -n "$LD"; then
5197   echo "$as_me:$LINENO: result: $LD" >&5
5198 echo "${ECHO_T}$LD" >&6
5199 else
5200   echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5202 fi
5203 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5204 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5205    { (exit 1); exit 1; }; }
5206 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5207 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5208 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5212 case `$LD -v 2>&1 </dev/null` in
5213 *GNU* | *'with BFD'*)
5214   acl_cv_prog_gnu_ld=yes ;;
5215 *)
5216   acl_cv_prog_gnu_ld=no ;;
5217 esac
5218 fi
5219 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5220 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5221 with_gnu_ld=$acl_cv_prog_gnu_ld
5222
5223
5224
5225
5226                                                 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5227 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5228 if test "${acl_cv_rpath+set}" = set; then
5229   echo $ECHO_N "(cached) $ECHO_C" >&6
5230 else
5231
5232     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5233     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5234     . ./conftest.sh
5235     rm -f ./conftest.sh
5236     acl_cv_rpath=done
5237
5238 fi
5239 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5240 echo "${ECHO_T}$acl_cv_rpath" >&6
5241   wl="$acl_cv_wl"
5242   libext="$acl_cv_libext"
5243   shlibext="$acl_cv_shlibext"
5244   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5245   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5246   hardcode_direct="$acl_cv_hardcode_direct"
5247   hardcode_minus_L="$acl_cv_hardcode_minus_L"
5248     # Check whether --enable-rpath or --disable-rpath was given.
5249 if test "${enable_rpath+set}" = set; then
5250   enableval="$enable_rpath"
5251   :
5252 else
5253   enable_rpath=yes
5254 fi;
5255
5256
5257
5258
5259
5260
5261
5262     use_additional=yes
5263
5264   acl_save_prefix="$prefix"
5265   prefix="$acl_final_prefix"
5266   acl_save_exec_prefix="$exec_prefix"
5267   exec_prefix="$acl_final_exec_prefix"
5268
5269     eval additional_includedir=\"$includedir\"
5270     eval additional_libdir=\"$libdir\"
5271
5272   exec_prefix="$acl_save_exec_prefix"
5273   prefix="$acl_save_prefix"
5274
5275
5276 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5277 if test "${with_libiconv_prefix+set}" = set; then
5278   withval="$with_libiconv_prefix"
5279
5280     if test "X$withval" = "Xno"; then
5281       use_additional=no
5282     else
5283       if test "X$withval" = "X"; then
5284
5285   acl_save_prefix="$prefix"
5286   prefix="$acl_final_prefix"
5287   acl_save_exec_prefix="$exec_prefix"
5288   exec_prefix="$acl_final_exec_prefix"
5289
5290           eval additional_includedir=\"$includedir\"
5291           eval additional_libdir=\"$libdir\"
5292
5293   exec_prefix="$acl_save_exec_prefix"
5294   prefix="$acl_save_prefix"
5295
5296       else
5297         additional_includedir="$withval/include"
5298         additional_libdir="$withval/lib"
5299       fi
5300     fi
5301
5302 fi;
5303       LIBICONV=
5304   LTLIBICONV=
5305   INCICONV=
5306   rpathdirs=
5307   ltrpathdirs=
5308   names_already_handled=
5309   names_next_round='iconv '
5310   while test -n "$names_next_round"; do
5311     names_this_round="$names_next_round"
5312     names_next_round=
5313     for name in $names_this_round; do
5314       already_handled=
5315       for n in $names_already_handled; do
5316         if test "$n" = "$name"; then
5317           already_handled=yes
5318           break
5319         fi
5320       done
5321       if test -z "$already_handled"; then
5322         names_already_handled="$names_already_handled $name"
5323                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5324         eval value=\"\$HAVE_LIB$uppername\"
5325         if test -n "$value"; then
5326           if test "$value" = yes; then
5327             eval value=\"\$LIB$uppername\"
5328             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5329             eval value=\"\$LTLIB$uppername\"
5330             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5331           else
5332                                     :
5333           fi
5334         else
5335                               found_dir=
5336           found_la=
5337           found_so=
5338           found_a=
5339           if test $use_additional = yes; then
5340             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5341               found_dir="$additional_libdir"
5342               found_so="$additional_libdir/lib$name.$shlibext"
5343               if test -f "$additional_libdir/lib$name.la"; then
5344                 found_la="$additional_libdir/lib$name.la"
5345               fi
5346             else
5347               if test -f "$additional_libdir/lib$name.$libext"; then
5348                 found_dir="$additional_libdir"
5349                 found_a="$additional_libdir/lib$name.$libext"
5350                 if test -f "$additional_libdir/lib$name.la"; then
5351                   found_la="$additional_libdir/lib$name.la"
5352                 fi
5353               fi
5354             fi
5355           fi
5356           if test "X$found_dir" = "X"; then
5357             for x in $LDFLAGS $LTLIBICONV; do
5358
5359   acl_save_prefix="$prefix"
5360   prefix="$acl_final_prefix"
5361   acl_save_exec_prefix="$exec_prefix"
5362   exec_prefix="$acl_final_exec_prefix"
5363   eval x=\"$x\"
5364   exec_prefix="$acl_save_exec_prefix"
5365   prefix="$acl_save_prefix"
5366
5367               case "$x" in
5368                 -L*)
5369                   dir=`echo "X$x" | sed -e 's/^X-L//'`
5370                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5371                     found_dir="$dir"
5372                     found_so="$dir/lib$name.$shlibext"
5373                     if test -f "$dir/lib$name.la"; then
5374                       found_la="$dir/lib$name.la"
5375                     fi
5376                   else
5377                     if test -f "$dir/lib$name.$libext"; then
5378                       found_dir="$dir"
5379                       found_a="$dir/lib$name.$libext"
5380                       if test -f "$dir/lib$name.la"; then
5381                         found_la="$dir/lib$name.la"
5382                       fi
5383                     fi
5384                   fi
5385                   ;;
5386               esac
5387               if test "X$found_dir" != "X"; then
5388                 break
5389               fi
5390             done
5391           fi
5392           if test "X$found_dir" != "X"; then
5393                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5394             if test "X$found_so" != "X"; then
5395                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5396                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5397               else
5398                                                                                 haveit=
5399                 for x in $ltrpathdirs; do
5400                   if test "X$x" = "X$found_dir"; then
5401                     haveit=yes
5402                     break
5403                   fi
5404                 done
5405                 if test -z "$haveit"; then
5406                   ltrpathdirs="$ltrpathdirs $found_dir"
5407                 fi
5408                                 if test "$hardcode_direct" = yes; then
5409                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5410                 else
5411                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5412                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5413                                                             haveit=
5414                     for x in $rpathdirs; do
5415                       if test "X$x" = "X$found_dir"; then
5416                         haveit=yes
5417                         break
5418                       fi
5419                     done
5420                     if test -z "$haveit"; then
5421                       rpathdirs="$rpathdirs $found_dir"
5422                     fi
5423                   else
5424                                                                                 haveit=
5425                     for x in $LDFLAGS $LIBICONV; do
5426
5427   acl_save_prefix="$prefix"
5428   prefix="$acl_final_prefix"
5429   acl_save_exec_prefix="$exec_prefix"
5430   exec_prefix="$acl_final_exec_prefix"
5431   eval x=\"$x\"
5432   exec_prefix="$acl_save_exec_prefix"
5433   prefix="$acl_save_prefix"
5434
5435                       if test "X$x" = "X-L$found_dir"; then
5436                         haveit=yes
5437                         break
5438                       fi
5439                     done
5440                     if test -z "$haveit"; then
5441                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5442                     fi
5443                     if test "$hardcode_minus_L" != no; then
5444                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5445                     else
5446                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5447                     fi
5448                   fi
5449                 fi
5450               fi
5451             else
5452               if test "X$found_a" != "X"; then
5453                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5454               else
5455                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5456               fi
5457             fi
5458                         additional_includedir=
5459             case "$found_dir" in
5460               */lib | */lib/)
5461                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5462                 additional_includedir="$basedir/include"
5463                 ;;
5464             esac
5465             if test "X$additional_includedir" != "X"; then
5466                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
5467                 haveit=
5468                 if test "X$additional_includedir" = "X/usr/local/include"; then
5469                   if test -n "$GCC"; then
5470                     case $host_os in
5471                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5472                     esac
5473                   fi
5474                 fi
5475                 if test -z "$haveit"; then
5476                   for x in $CPPFLAGS $INCICONV; do
5477
5478   acl_save_prefix="$prefix"
5479   prefix="$acl_final_prefix"
5480   acl_save_exec_prefix="$exec_prefix"
5481   exec_prefix="$acl_final_exec_prefix"
5482   eval x=\"$x\"
5483   exec_prefix="$acl_save_exec_prefix"
5484   prefix="$acl_save_prefix"
5485
5486                     if test "X$x" = "X-I$additional_includedir"; then
5487                       haveit=yes
5488                       break
5489                     fi
5490                   done
5491                   if test -z "$haveit"; then
5492                     if test -d "$additional_includedir"; then
5493                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5494                     fi
5495                   fi
5496                 fi
5497               fi
5498             fi
5499                         if test -n "$found_la"; then
5500                                                         save_libdir="$libdir"
5501               case "$found_la" in
5502                 */* | *\\*) . "$found_la" ;;
5503                 *) . "./$found_la" ;;
5504               esac
5505               libdir="$save_libdir"
5506                             for dep in $dependency_libs; do
5507                 case "$dep" in
5508                   -L*)
5509                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5510                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
5511                       haveit=
5512                       if test "X$additional_libdir" = "X/usr/local/lib"; then
5513                         if test -n "$GCC"; then
5514                           case $host_os in
5515                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5516                           esac
5517                         fi
5518                       fi
5519                       if test -z "$haveit"; then
5520                         haveit=
5521                         for x in $LDFLAGS $LIBICONV; do
5522
5523   acl_save_prefix="$prefix"
5524   prefix="$acl_final_prefix"
5525   acl_save_exec_prefix="$exec_prefix"
5526   exec_prefix="$acl_final_exec_prefix"
5527   eval x=\"$x\"
5528   exec_prefix="$acl_save_exec_prefix"
5529   prefix="$acl_save_prefix"
5530
5531                           if test "X$x" = "X-L$additional_libdir"; then
5532                             haveit=yes
5533                             break
5534                           fi
5535                         done
5536                         if test -z "$haveit"; then
5537                           if test -d "$additional_libdir"; then
5538                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5539                           fi
5540                         fi
5541                         haveit=
5542                         for x in $LDFLAGS $LTLIBICONV; do
5543
5544   acl_save_prefix="$prefix"
5545   prefix="$acl_final_prefix"
5546   acl_save_exec_prefix="$exec_prefix"
5547   exec_prefix="$acl_final_exec_prefix"
5548   eval x=\"$x\"
5549   exec_prefix="$acl_save_exec_prefix"
5550   prefix="$acl_save_prefix"
5551
5552                           if test "X$x" = "X-L$additional_libdir"; then
5553                             haveit=yes
5554                             break
5555                           fi
5556                         done
5557                         if test -z "$haveit"; then
5558                           if test -d "$additional_libdir"; then
5559                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5560                           fi
5561                         fi
5562                       fi
5563                     fi
5564                     ;;
5565                   -R*)
5566                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
5567                     if test "$enable_rpath" != no; then
5568                                                                   haveit=
5569                       for x in $rpathdirs; do
5570                         if test "X$x" = "X$dir"; then
5571                           haveit=yes
5572                           break
5573                         fi
5574                       done
5575                       if test -z "$haveit"; then
5576                         rpathdirs="$rpathdirs $dir"
5577                       fi
5578                                                                   haveit=
5579                       for x in $ltrpathdirs; do
5580                         if test "X$x" = "X$dir"; then
5581                           haveit=yes
5582                           break
5583                         fi
5584                       done
5585                       if test -z "$haveit"; then
5586                         ltrpathdirs="$ltrpathdirs $dir"
5587                       fi
5588                     fi
5589                     ;;
5590                   -l*)
5591                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5592                     ;;
5593                   *.la)
5594                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5595                     ;;
5596                   *)
5597                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5598                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5599                     ;;
5600                 esac
5601               done
5602             fi
5603           else
5604                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5605             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5606           fi
5607         fi
5608       fi
5609     done
5610   done
5611   if test "X$rpathdirs" != "X"; then
5612     if test -n "$hardcode_libdir_separator"; then
5613                         alldirs=
5614       for found_dir in $rpathdirs; do
5615         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5616       done
5617             acl_save_libdir="$libdir"
5618       libdir="$alldirs"
5619       eval flag=\"$hardcode_libdir_flag_spec\"
5620       libdir="$acl_save_libdir"
5621       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5622     else
5623             for found_dir in $rpathdirs; do
5624         acl_save_libdir="$libdir"
5625         libdir="$found_dir"
5626         eval flag=\"$hardcode_libdir_flag_spec\"
5627         libdir="$acl_save_libdir"
5628         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5629       done
5630     fi
5631   fi
5632   if test "X$ltrpathdirs" != "X"; then
5633             for found_dir in $ltrpathdirs; do
5634       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5635     done
5636   fi
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655     echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
5656 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
5657 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
5658   echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660   gt_save_CPPFLAGS="$CPPFLAGS"
5661      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5662      gt_save_LIBS="$LIBS"
5663      LIBS="$LIBS -framework CoreFoundation"
5664      cat >conftest.$ac_ext <<_ACEOF
5665 /* confdefs.h.  */
5666 _ACEOF
5667 cat confdefs.h >>conftest.$ac_ext
5668 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h.  */
5670 #include <CFPreferences.h>
5671 int
5672 main ()
5673 {
5674 CFPreferencesCopyAppValue(NULL, NULL)
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679 rm -f conftest.$ac_objext conftest$ac_exeext
5680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5681   (eval $ac_link) 2>conftest.er1
5682   ac_status=$?
5683   grep -v '^ *+' conftest.er1 >conftest.err
5684   rm -f conftest.er1
5685   cat conftest.err >&5
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } &&
5688          { ac_try='test -z "$ac_c_werror_flag"
5689                          || test ! -s conftest.err'
5690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691   (eval $ac_try) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; } &&
5695          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5701   gt_cv_func_CFPreferencesCopyAppValue=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706 gt_cv_func_CFPreferencesCopyAppValue=no
5707 fi
5708 rm -f conftest.err conftest.$ac_objext \
5709       conftest$ac_exeext conftest.$ac_ext
5710      CPPFLAGS="$gt_save_CPPFLAGS"
5711      LIBS="$gt_save_LIBS"
5712 fi
5713 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
5714 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
5715   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
5716
5717 cat >>confdefs.h <<\_ACEOF
5718 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
5719 _ACEOF
5720
5721   fi
5722     echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
5723 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
5724 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   gt_save_CPPFLAGS="$CPPFLAGS"
5728      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
5729      gt_save_LIBS="$LIBS"
5730      LIBS="$LIBS -framework CoreFoundation"
5731      cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737 #include <CFLocale.h>
5738 int
5739 main ()
5740 {
5741 CFLocaleCopyCurrent();
5742   ;
5743   return 0;
5744 }
5745 _ACEOF
5746 rm -f conftest.$ac_objext conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748   (eval $ac_link) 2>conftest.er1
5749   ac_status=$?
5750   grep -v '^ *+' conftest.er1 >conftest.err
5751   rm -f conftest.er1
5752   cat conftest.err >&5
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); } &&
5755          { ac_try='test -z "$ac_c_werror_flag"
5756                          || test ! -s conftest.err'
5757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5758   (eval $ac_try) 2>&5
5759   ac_status=$?
5760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761   (exit $ac_status); }; } &&
5762          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5768   gt_cv_func_CFLocaleCopyCurrent=yes
5769 else
5770   echo "$as_me: failed program was:" >&5
5771 sed 's/^/| /' conftest.$ac_ext >&5
5772
5773 gt_cv_func_CFLocaleCopyCurrent=no
5774 fi
5775 rm -f conftest.err conftest.$ac_objext \
5776       conftest$ac_exeext conftest.$ac_ext
5777      CPPFLAGS="$gt_save_CPPFLAGS"
5778      LIBS="$gt_save_LIBS"
5779 fi
5780 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
5781 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
5782   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5783
5784 cat >>confdefs.h <<\_ACEOF
5785 #define HAVE_CFLOCALECOPYCURRENT 1
5786 _ACEOF
5787
5788   fi
5789   INTL_MACOSX_LIBS=
5790   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
5791     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
5792   fi
5793
5794
5795
5796
5797   echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5798 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5799     # Check whether --enable-nls or --disable-nls was given.
5800 if test "${enable_nls+set}" = set; then
5801   enableval="$enable_nls"
5802   USE_NLS=$enableval
5803 else
5804   USE_NLS=yes
5805 fi;
5806   echo "$as_me:$LINENO: result: $USE_NLS" >&5
5807 echo "${ECHO_T}$USE_NLS" >&6
5808
5809
5810
5811
5812   LIBINTL=
5813   LTLIBINTL=
5814   POSUB=
5815
5816     if test "$USE_NLS" = "yes"; then
5817     gt_use_preinstalled_gnugettext=no
5818
5819
5820
5821
5822
5823
5824         echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
5825 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
5826 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h.  */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h.  */
5835 #include <libintl.h>
5836 extern int _nl_msg_cat_cntr;
5837 extern int *_nl_domain_bindings;
5838 int
5839 main ()
5840 {
5841 bindtextdomain ("", "");
5842 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5849   (eval $ac_link) 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag"
5857                          || test ! -s conftest.err'
5858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859   (eval $ac_try) 2>&5
5860   ac_status=$?
5861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862   (exit $ac_status); }; } &&
5863          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5869   gt_cv_func_gnugettext1_libc=yes
5870 else
5871   echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5873
5874 gt_cv_func_gnugettext1_libc=no
5875 fi
5876 rm -f conftest.err conftest.$ac_objext \
5877       conftest$ac_exeext conftest.$ac_ext
5878 fi
5879 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
5880 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
5881
5882         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5883
5884
5885
5886
5887
5888           am_save_CPPFLAGS="$CPPFLAGS"
5889
5890   for element in $INCICONV; do
5891     haveit=
5892     for x in $CPPFLAGS; do
5893
5894   acl_save_prefix="$prefix"
5895   prefix="$acl_final_prefix"
5896   acl_save_exec_prefix="$exec_prefix"
5897   exec_prefix="$acl_final_exec_prefix"
5898   eval x=\"$x\"
5899   exec_prefix="$acl_save_exec_prefix"
5900   prefix="$acl_save_prefix"
5901
5902       if test "X$x" = "X$element"; then
5903         haveit=yes
5904         break
5905       fi
5906     done
5907     if test -z "$haveit"; then
5908       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
5909     fi
5910   done
5911
5912
5913   echo "$as_me:$LINENO: checking for iconv" >&5
5914 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
5915 if test "${am_cv_func_iconv+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918
5919     am_cv_func_iconv="no, consider installing GNU libiconv"
5920     am_cv_lib_iconv=no
5921     cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h.  */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h.  */
5927 #include <stdlib.h>
5928 #include <iconv.h>
5929 int
5930 main ()
5931 {
5932 iconv_t cd = iconv_open("","");
5933        iconv(cd,NULL,NULL,NULL,NULL);
5934        iconv_close(cd);
5935   ;
5936   return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941   (eval $ac_link) 2>conftest.er1
5942   ac_status=$?
5943   grep -v '^ *+' conftest.er1 >conftest.err
5944   rm -f conftest.er1
5945   cat conftest.err >&5
5946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947   (exit $ac_status); } &&
5948          { ac_try='test -z "$ac_c_werror_flag"
5949                          || test ! -s conftest.err'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; } &&
5955          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
5961   am_cv_func_iconv=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966 fi
5967 rm -f conftest.err conftest.$ac_objext \
5968       conftest$ac_exeext conftest.$ac_ext
5969     if test "$am_cv_func_iconv" != yes; then
5970       am_save_LIBS="$LIBS"
5971       LIBS="$LIBS $LIBICONV"
5972       cat >conftest.$ac_ext <<_ACEOF
5973 /* confdefs.h.  */
5974 _ACEOF
5975 cat confdefs.h >>conftest.$ac_ext
5976 cat >>conftest.$ac_ext <<_ACEOF
5977 /* end confdefs.h.  */
5978 #include <stdlib.h>
5979 #include <iconv.h>
5980 int
5981 main ()
5982 {
5983 iconv_t cd = iconv_open("","");
5984          iconv(cd,NULL,NULL,NULL,NULL);
5985          iconv_close(cd);
5986   ;
5987   return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5992   (eval $ac_link) 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } &&
5999          { ac_try='test -z "$ac_c_werror_flag"
6000                          || test ! -s conftest.err'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; } &&
6006          { ac_try='test -s conftest$ac_exeext'
6007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6008   (eval $ac_try) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); }; }; then
6012   am_cv_lib_iconv=yes
6013         am_cv_func_iconv=yes
6014 else
6015   echo "$as_me: failed program was:" >&5
6016 sed 's/^/| /' conftest.$ac_ext >&5
6017
6018 fi
6019 rm -f conftest.err conftest.$ac_objext \
6020       conftest$ac_exeext conftest.$ac_ext
6021       LIBS="$am_save_LIBS"
6022     fi
6023
6024 fi
6025 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6026 echo "${ECHO_T}$am_cv_func_iconv" >&6
6027   if test "$am_cv_func_iconv" = yes; then
6028
6029 cat >>confdefs.h <<\_ACEOF
6030 #define HAVE_ICONV 1
6031 _ACEOF
6032
6033   fi
6034   if test "$am_cv_lib_iconv" = yes; then
6035     echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6036 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6037     echo "$as_me:$LINENO: result: $LIBICONV" >&5
6038 echo "${ECHO_T}$LIBICONV" >&6
6039   else
6040             CPPFLAGS="$am_save_CPPFLAGS"
6041     LIBICONV=
6042     LTLIBICONV=
6043   fi
6044
6045
6046
6047
6048
6049
6050     use_additional=yes
6051
6052   acl_save_prefix="$prefix"
6053   prefix="$acl_final_prefix"
6054   acl_save_exec_prefix="$exec_prefix"
6055   exec_prefix="$acl_final_exec_prefix"
6056
6057     eval additional_includedir=\"$includedir\"
6058     eval additional_libdir=\"$libdir\"
6059
6060   exec_prefix="$acl_save_exec_prefix"
6061   prefix="$acl_save_prefix"
6062
6063
6064 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6065 if test "${with_libintl_prefix+set}" = set; then
6066   withval="$with_libintl_prefix"
6067
6068     if test "X$withval" = "Xno"; then
6069       use_additional=no
6070     else
6071       if test "X$withval" = "X"; then
6072
6073   acl_save_prefix="$prefix"
6074   prefix="$acl_final_prefix"
6075   acl_save_exec_prefix="$exec_prefix"
6076   exec_prefix="$acl_final_exec_prefix"
6077
6078           eval additional_includedir=\"$includedir\"
6079           eval additional_libdir=\"$libdir\"
6080
6081   exec_prefix="$acl_save_exec_prefix"
6082   prefix="$acl_save_prefix"
6083
6084       else
6085         additional_includedir="$withval/include"
6086         additional_libdir="$withval/lib"
6087       fi
6088     fi
6089
6090 fi;
6091       LIBINTL=
6092   LTLIBINTL=
6093   INCINTL=
6094   rpathdirs=
6095   ltrpathdirs=
6096   names_already_handled=
6097   names_next_round='intl '
6098   while test -n "$names_next_round"; do
6099     names_this_round="$names_next_round"
6100     names_next_round=
6101     for name in $names_this_round; do
6102       already_handled=
6103       for n in $names_already_handled; do
6104         if test "$n" = "$name"; then
6105           already_handled=yes
6106           break
6107         fi
6108       done
6109       if test -z "$already_handled"; then
6110         names_already_handled="$names_already_handled $name"
6111                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6112         eval value=\"\$HAVE_LIB$uppername\"
6113         if test -n "$value"; then
6114           if test "$value" = yes; then
6115             eval value=\"\$LIB$uppername\"
6116             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6117             eval value=\"\$LTLIB$uppername\"
6118             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6119           else
6120                                     :
6121           fi
6122         else
6123                               found_dir=
6124           found_la=
6125           found_so=
6126           found_a=
6127           if test $use_additional = yes; then
6128             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6129               found_dir="$additional_libdir"
6130               found_so="$additional_libdir/lib$name.$shlibext"
6131               if test -f "$additional_libdir/lib$name.la"; then
6132                 found_la="$additional_libdir/lib$name.la"
6133               fi
6134             else
6135               if test -f "$additional_libdir/lib$name.$libext"; then
6136                 found_dir="$additional_libdir"
6137                 found_a="$additional_libdir/lib$name.$libext"
6138                 if test -f "$additional_libdir/lib$name.la"; then
6139                   found_la="$additional_libdir/lib$name.la"
6140                 fi
6141               fi
6142             fi
6143           fi
6144           if test "X$found_dir" = "X"; then
6145             for x in $LDFLAGS $LTLIBINTL; do
6146
6147   acl_save_prefix="$prefix"
6148   prefix="$acl_final_prefix"
6149   acl_save_exec_prefix="$exec_prefix"
6150   exec_prefix="$acl_final_exec_prefix"
6151   eval x=\"$x\"
6152   exec_prefix="$acl_save_exec_prefix"
6153   prefix="$acl_save_prefix"
6154
6155               case "$x" in
6156                 -L*)
6157                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6158                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6159                     found_dir="$dir"
6160                     found_so="$dir/lib$name.$shlibext"
6161                     if test -f "$dir/lib$name.la"; then
6162                       found_la="$dir/lib$name.la"
6163                     fi
6164                   else
6165                     if test -f "$dir/lib$name.$libext"; then
6166                       found_dir="$dir"
6167                       found_a="$dir/lib$name.$libext"
6168                       if test -f "$dir/lib$name.la"; then
6169                         found_la="$dir/lib$name.la"
6170                       fi
6171                     fi
6172                   fi
6173                   ;;
6174               esac
6175               if test "X$found_dir" != "X"; then
6176                 break
6177               fi
6178             done
6179           fi
6180           if test "X$found_dir" != "X"; then
6181                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6182             if test "X$found_so" != "X"; then
6183                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6184                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6185               else
6186                                                                                 haveit=
6187                 for x in $ltrpathdirs; do
6188                   if test "X$x" = "X$found_dir"; then
6189                     haveit=yes
6190                     break
6191                   fi
6192                 done
6193                 if test -z "$haveit"; then
6194                   ltrpathdirs="$ltrpathdirs $found_dir"
6195                 fi
6196                                 if test "$hardcode_direct" = yes; then
6197                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6198                 else
6199                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6200                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6201                                                             haveit=
6202                     for x in $rpathdirs; do
6203                       if test "X$x" = "X$found_dir"; then
6204                         haveit=yes
6205                         break
6206                       fi
6207                     done
6208                     if test -z "$haveit"; then
6209                       rpathdirs="$rpathdirs $found_dir"
6210                     fi
6211                   else
6212                                                                                 haveit=
6213                     for x in $LDFLAGS $LIBINTL; do
6214
6215   acl_save_prefix="$prefix"
6216   prefix="$acl_final_prefix"
6217   acl_save_exec_prefix="$exec_prefix"
6218   exec_prefix="$acl_final_exec_prefix"
6219   eval x=\"$x\"
6220   exec_prefix="$acl_save_exec_prefix"
6221   prefix="$acl_save_prefix"
6222
6223                       if test "X$x" = "X-L$found_dir"; then
6224                         haveit=yes
6225                         break
6226                       fi
6227                     done
6228                     if test -z "$haveit"; then
6229                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6230                     fi
6231                     if test "$hardcode_minus_L" != no; then
6232                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6233                     else
6234                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6235                     fi
6236                   fi
6237                 fi
6238               fi
6239             else
6240               if test "X$found_a" != "X"; then
6241                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6242               else
6243                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6244               fi
6245             fi
6246                         additional_includedir=
6247             case "$found_dir" in
6248               */lib | */lib/)
6249                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6250                 additional_includedir="$basedir/include"
6251                 ;;
6252             esac
6253             if test "X$additional_includedir" != "X"; then
6254                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6255                 haveit=
6256                 if test "X$additional_includedir" = "X/usr/local/include"; then
6257                   if test -n "$GCC"; then
6258                     case $host_os in
6259                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6260                     esac
6261                   fi
6262                 fi
6263                 if test -z "$haveit"; then
6264                   for x in $CPPFLAGS $INCINTL; do
6265
6266   acl_save_prefix="$prefix"
6267   prefix="$acl_final_prefix"
6268   acl_save_exec_prefix="$exec_prefix"
6269   exec_prefix="$acl_final_exec_prefix"
6270   eval x=\"$x\"
6271   exec_prefix="$acl_save_exec_prefix"
6272   prefix="$acl_save_prefix"
6273
6274                     if test "X$x" = "X-I$additional_includedir"; then
6275                       haveit=yes
6276                       break
6277                     fi
6278                   done
6279                   if test -z "$haveit"; then
6280                     if test -d "$additional_includedir"; then
6281                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6282                     fi
6283                   fi
6284                 fi
6285               fi
6286             fi
6287                         if test -n "$found_la"; then
6288                                                         save_libdir="$libdir"
6289               case "$found_la" in
6290                 */* | *\\*) . "$found_la" ;;
6291                 *) . "./$found_la" ;;
6292               esac
6293               libdir="$save_libdir"
6294                             for dep in $dependency_libs; do
6295                 case "$dep" in
6296                   -L*)
6297                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6298                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6299                       haveit=
6300                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6301                         if test -n "$GCC"; then
6302                           case $host_os in
6303                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6304                           esac
6305                         fi
6306                       fi
6307                       if test -z "$haveit"; then
6308                         haveit=
6309                         for x in $LDFLAGS $LIBINTL; do
6310
6311   acl_save_prefix="$prefix"
6312   prefix="$acl_final_prefix"
6313   acl_save_exec_prefix="$exec_prefix"
6314   exec_prefix="$acl_final_exec_prefix"
6315   eval x=\"$x\"
6316   exec_prefix="$acl_save_exec_prefix"
6317   prefix="$acl_save_prefix"
6318
6319                           if test "X$x" = "X-L$additional_libdir"; then
6320                             haveit=yes
6321                             break
6322                           fi
6323                         done
6324                         if test -z "$haveit"; then
6325                           if test -d "$additional_libdir"; then
6326                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6327                           fi
6328                         fi
6329                         haveit=
6330                         for x in $LDFLAGS $LTLIBINTL; do
6331
6332   acl_save_prefix="$prefix"
6333   prefix="$acl_final_prefix"
6334   acl_save_exec_prefix="$exec_prefix"
6335   exec_prefix="$acl_final_exec_prefix"
6336   eval x=\"$x\"
6337   exec_prefix="$acl_save_exec_prefix"
6338   prefix="$acl_save_prefix"
6339
6340                           if test "X$x" = "X-L$additional_libdir"; then
6341                             haveit=yes
6342                             break
6343                           fi
6344                         done
6345                         if test -z "$haveit"; then
6346                           if test -d "$additional_libdir"; then
6347                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6348                           fi
6349                         fi
6350                       fi
6351                     fi
6352                     ;;
6353                   -R*)
6354                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6355                     if test "$enable_rpath" != no; then
6356                                                                   haveit=
6357                       for x in $rpathdirs; do
6358                         if test "X$x" = "X$dir"; then
6359                           haveit=yes
6360                           break
6361                         fi
6362                       done
6363                       if test -z "$haveit"; then
6364                         rpathdirs="$rpathdirs $dir"
6365                       fi
6366                                                                   haveit=
6367                       for x in $ltrpathdirs; do
6368                         if test "X$x" = "X$dir"; then
6369                           haveit=yes
6370                           break
6371                         fi
6372                       done
6373                       if test -z "$haveit"; then
6374                         ltrpathdirs="$ltrpathdirs $dir"
6375                       fi
6376                     fi
6377                     ;;
6378                   -l*)
6379                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6380                     ;;
6381                   *.la)
6382                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6383                     ;;
6384                   *)
6385                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6386                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6387                     ;;
6388                 esac
6389               done
6390             fi
6391           else
6392                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6393             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6394           fi
6395         fi
6396       fi
6397     done
6398   done
6399   if test "X$rpathdirs" != "X"; then
6400     if test -n "$hardcode_libdir_separator"; then
6401                         alldirs=
6402       for found_dir in $rpathdirs; do
6403         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6404       done
6405             acl_save_libdir="$libdir"
6406       libdir="$alldirs"
6407       eval flag=\"$hardcode_libdir_flag_spec\"
6408       libdir="$acl_save_libdir"
6409       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6410     else
6411             for found_dir in $rpathdirs; do
6412         acl_save_libdir="$libdir"
6413         libdir="$found_dir"
6414         eval flag=\"$hardcode_libdir_flag_spec\"
6415         libdir="$acl_save_libdir"
6416         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6417       done
6418     fi
6419   fi
6420   if test "X$ltrpathdirs" != "X"; then
6421             for found_dir in $ltrpathdirs; do
6422       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6423     done
6424   fi
6425
6426           echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
6427 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
6428 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
6429   echo $ECHO_N "(cached) $ECHO_C" >&6
6430 else
6431   gt_save_CPPFLAGS="$CPPFLAGS"
6432             CPPFLAGS="$CPPFLAGS $INCINTL"
6433             gt_save_LIBS="$LIBS"
6434             LIBS="$LIBS $LIBINTL"
6435                         cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 #include <libintl.h>
6442 extern int _nl_msg_cat_cntr;
6443 extern
6444 #ifdef __cplusplus
6445 "C"
6446 #endif
6447 const char *_nl_expand_alias (const char *);
6448 int
6449 main ()
6450 {
6451 bindtextdomain ("", "");
6452 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext conftest$ac_exeext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6459   (eval $ac_link) 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -z "$ac_c_werror_flag"
6467                          || test ! -s conftest.err'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; } &&
6473          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6479   gt_cv_func_gnugettext1_libintl=yes
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484 gt_cv_func_gnugettext1_libintl=no
6485 fi
6486 rm -f conftest.err conftest.$ac_objext \
6487       conftest$ac_exeext conftest.$ac_ext
6488                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
6489               LIBS="$LIBS $LIBICONV"
6490               cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h.  */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h.  */
6496 #include <libintl.h>
6497 extern int _nl_msg_cat_cntr;
6498 extern
6499 #ifdef __cplusplus
6500 "C"
6501 #endif
6502 const char *_nl_expand_alias (const char *);
6503 int
6504 main ()
6505 {
6506 bindtextdomain ("", "");
6507 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6508   ;
6509   return 0;
6510 }
6511 _ACEOF
6512 rm -f conftest.$ac_objext conftest$ac_exeext
6513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6514   (eval $ac_link) 2>conftest.er1
6515   ac_status=$?
6516   grep -v '^ *+' conftest.er1 >conftest.err
6517   rm -f conftest.er1
6518   cat conftest.err >&5
6519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520   (exit $ac_status); } &&
6521          { ac_try='test -z "$ac_c_werror_flag"
6522                          || test ! -s conftest.err'
6523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6524   (eval $ac_try) 2>&5
6525   ac_status=$?
6526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527   (exit $ac_status); }; } &&
6528          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
6534   LIBINTL="$LIBINTL $LIBICONV"
6535                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6536                 gt_cv_func_gnugettext1_libintl=yes
6537
6538 else
6539   echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 fi
6543 rm -f conftest.err conftest.$ac_objext \
6544       conftest$ac_exeext conftest.$ac_ext
6545             fi
6546             CPPFLAGS="$gt_save_CPPFLAGS"
6547             LIBS="$gt_save_LIBS"
6548 fi
6549 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
6550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
6551         fi
6552
6553                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
6554            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
6555                 && test "$PACKAGE" != gettext-runtime \
6556                 && test "$PACKAGE" != gettext-tools; }; then
6557           gt_use_preinstalled_gnugettext=yes
6558         else
6559                     LIBINTL=
6560           LTLIBINTL=
6561           INCINTL=
6562         fi
6563
6564
6565
6566     if test -n "$INTL_MACOSX_LIBS"; then
6567       if test "$gt_use_preinstalled_gnugettext" = "yes" \
6568          || test "$nls_cv_use_gnu_gettext" = "yes"; then
6569                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6570         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6571       fi
6572     fi
6573
6574     if test "$gt_use_preinstalled_gnugettext" = "yes" \
6575        || test "$nls_cv_use_gnu_gettext" = "yes"; then
6576
6577 cat >>confdefs.h <<\_ACEOF
6578 #define ENABLE_NLS 1
6579 _ACEOF
6580
6581     else
6582       USE_NLS=no
6583     fi
6584   fi
6585
6586   echo "$as_me:$LINENO: checking whether to use NLS" >&5
6587 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
6588   echo "$as_me:$LINENO: result: $USE_NLS" >&5
6589 echo "${ECHO_T}$USE_NLS" >&6
6590   if test "$USE_NLS" = "yes"; then
6591     echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
6592 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
6593     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6594       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6595         gt_source="external libintl"
6596       else
6597         gt_source="libc"
6598       fi
6599     else
6600       gt_source="included intl directory"
6601     fi
6602     echo "$as_me:$LINENO: result: $gt_source" >&5
6603 echo "${ECHO_T}$gt_source" >&6
6604   fi
6605
6606   if test "$USE_NLS" = "yes"; then
6607
6608     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6609       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
6610         echo "$as_me:$LINENO: checking how to link with libintl" >&5
6611 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
6612         echo "$as_me:$LINENO: result: $LIBINTL" >&5
6613 echo "${ECHO_T}$LIBINTL" >&6
6614
6615   for element in $INCINTL; do
6616     haveit=
6617     for x in $CPPFLAGS; do
6618
6619   acl_save_prefix="$prefix"
6620   prefix="$acl_final_prefix"
6621   acl_save_exec_prefix="$exec_prefix"
6622   exec_prefix="$acl_final_exec_prefix"
6623   eval x=\"$x\"
6624   exec_prefix="$acl_save_exec_prefix"
6625   prefix="$acl_save_prefix"
6626
6627       if test "X$x" = "X$element"; then
6628         haveit=yes
6629         break
6630       fi
6631     done
6632     if test -z "$haveit"; then
6633       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6634     fi
6635   done
6636
6637       fi
6638
6639
6640 cat >>confdefs.h <<\_ACEOF
6641 #define HAVE_GETTEXT 1
6642 _ACEOF
6643
6644
6645 cat >>confdefs.h <<\_ACEOF
6646 #define HAVE_DCGETTEXT 1
6647 _ACEOF
6648
6649     fi
6650
6651         POSUB=po
6652   fi
6653
6654
6655
6656     INTLLIBS="$LIBINTL"
6657
6658
6659
6660
6661
6662
6663 localedir=${datadir}/locale
6664 LOCAL_DEFS="$LOCAL_DEFS -DLOCALEDIR=\"\\\"${localedir}\\\"\""
6665
6666 # ------------------------------------------------------------------
6667 #  If the user has not set --prefix, we set our default to nothing.
6668 #  In this case, if the user has not set --sysconfdir, we set it
6669 #  to the package default of /etc/bacula.  If either --prefix or
6670 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
6671 # ------------------------------------------------------------------
6672 if test x${prefix} = xNONE ; then
6673     if test `eval echo ${sysconfdir}` = NONE/etc ; then
6674         sysconfdir=/etc/bacula
6675     fi
6676     prefix=
6677 fi
6678 sysconfdir=`eval echo ${sysconfdir}`
6679
6680 # -------------------------------------------------------------------------
6681 #  If the user has not set --exec-prefix, we default to ${prefix}
6682 # -------------------------------------------------------------------------
6683 if test x${exec_prefix} = xNONE ; then
6684     exec_prefix=${prefix}
6685 fi
6686
6687 # ------------------------------------------------------------------
6688 # If the user has not set --sbindir, we set our default as /sbin
6689 # ------------------------------------------------------------------
6690 if test x$sbindir = x'${exec_prefix}/sbin' ; then
6691     sbindir=${exec_prefix}/sbin
6692 fi
6693 sbindir=`eval echo ${sbindir}`
6694
6695 # -------------------------------------------------------------------------
6696 #  If the user has not set --mandir, we default to /usr/share/man
6697 # -------------------------------------------------------------------------
6698 if test x$mandir = x'${prefix}/man' ; then
6699    mandir=/usr/share/man
6700 fi
6701
6702
6703 # ------------------------------------------------------------------
6704 # All list of languages for which a translation exist. Each
6705 #  language is separated by a space.
6706 # ------------------------------------------------------------------
6707 ALL_LINGUAS=""
6708
6709 for ac_prog in msgfmt
6710 do
6711   # Extract the first word of "$ac_prog", so it can be a program name with args.
6712 set dummy $ac_prog; ac_word=$2
6713 echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6715 if test "${ac_cv_path_MSGFMT+set}" = set; then
6716   echo $ECHO_N "(cached) $ECHO_C" >&6
6717 else
6718   case $MSGFMT in
6719   [\\/]* | ?:[\\/]*)
6720   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6721   ;;
6722   *)
6723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6724 for as_dir in $PATH
6725 do
6726   IFS=$as_save_IFS
6727   test -z "$as_dir" && as_dir=.
6728   for ac_exec_ext in '' $ac_executable_extensions; do
6729   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6730     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
6731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6732     break 2
6733   fi
6734 done
6735 done
6736
6737   ;;
6738 esac
6739 fi
6740 MSGFMT=$ac_cv_path_MSGFMT
6741
6742 if test -n "$MSGFMT"; then
6743   echo "$as_me:$LINENO: result: $MSGFMT" >&5
6744 echo "${ECHO_T}$MSGFMT" >&6
6745 else
6746   echo "$as_me:$LINENO: result: no" >&5
6747 echo "${ECHO_T}no" >&6
6748 fi
6749
6750   test -n "$MSGFMT" && break
6751 done
6752 test -n "$MSGFMT" || MSGFMT="no"
6753
6754 if test "$MSGFMT" = "no"
6755 then
6756    echo 'msgfmt program not found, disabling NLS !'
6757    USE_NLS=no
6758    USE_INCLUDED_LIBINTL=no
6759 #else
6760 #   AM_GNU_GETTEXT
6761 fi
6762
6763
6764 support_mysql=no
6765 support_sqlite=no
6766 support_sqlite3=no
6767 support_postgresql=no
6768 support_smartalloc=yes
6769 support_readline=yes
6770 support_conio=yes
6771 support_gnome=no
6772 support_wx_console=no
6773 support_tls=no
6774 gnome_version=
6775 wx_version=
6776 support_static_tools=no
6777 support_static_fd=no
6778 support_static_sd=no
6779 support_static_dir=no
6780 support_static_cons=no
6781 support_python=no
6782 build_client_only=no
6783 cats=
6784 db_name=Internal
6785 DB_NAME=bdb
6786
6787
6788 # -------------------------------------------
6789 # gnome (default off)
6790 # -------------------------------------------
6791 # Check whether --enable-gnome or --disable-gnome was given.
6792 if test "${enable_gnome+set}" = set; then
6793   enableval="$enable_gnome"
6794   if test x$enableval = xyes; then
6795     support_gnome=yes
6796   fi
6797 fi;
6798
6799 GNOME_DIR=
6800 if test x$support_gnome = xyes; then
6801   abc=`$PKGCONFIG --exists libgnomeui-2.0`
6802   pkg=$?
6803   if test $pkg = 0; then
6804      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
6805      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6806      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
6807      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
6808
6809
6810
6811
6812      GNOME_DIR=src/gnome2-console
6813      gnome_version="Version 2.x"
6814   else
6815      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
6816 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
6817    { (exit 1); exit 1; }; }
6818   fi
6819 fi
6820
6821
6822
6823 # -------------------------------------------
6824 # wx-console (default off)
6825 # -------------------------------------------
6826 # Check whether --enable-wx-console or --disable-wx-console was given.
6827 if test "${enable_wx_console+set}" = set; then
6828   enableval="$enable_wx_console"
6829   if test x$enableval = xyes; then
6830     support_wx_console=yes
6831   fi
6832 fi;
6833
6834 WX_DIR=
6835 if test x$support_wx_console = xyes; then
6836   abc=`$WXCONFIG $WXFLAGS --cppflags`
6837   pkg=$?
6838   if test $pkg = 0; then
6839      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
6840      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
6841      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
6842
6843
6844
6845      WX_DIR=src/wx-console
6846   else
6847      echo " "
6848      echo "wx-config program not found. wx-console disabled."
6849      echo " "
6850      support_wx_console=no
6851   fi
6852 fi
6853
6854
6855
6856 # -------------------------------------------
6857 # tray-monitor (default off)
6858 # -------------------------------------------
6859 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
6860 if test "${enable_tray_monitor+set}" = set; then
6861   enableval="$enable_tray_monitor"
6862   if test x$enableval = xyes; then
6863     support_tray_monitor=yes
6864   fi
6865 fi;
6866
6867 TRAY_MONITOR_DIR=
6868 if test x$support_tray_monitor = xyes; then
6869   abc=`$PKGCONFIG --exists gtk+-2.0`
6870   pkg=$?
6871   if test $pkg = 0; then
6872      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
6873      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
6874
6875
6876      TRAY_MONITOR_DIR=src/tray-monitor
6877      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
6878      pkg=$?
6879      if test $pkg = 0; then
6880         cat >>confdefs.h <<\_ACEOF
6881 #define HAVE_GTK_2_4 1
6882 _ACEOF
6883
6884      fi
6885   fi
6886 fi
6887
6888
6889 # -------------------------------------------
6890 # smartalloc (default off)
6891 # -------------------------------------------
6892 # Check whether --enable-smartalloc or --disable-smartalloc was given.
6893 if test "${enable_smartalloc+set}" = set; then
6894   enableval="$enable_smartalloc"
6895   if test x$enableval = xno; then
6896     support_smartalloc=no
6897   fi
6898 fi;
6899
6900 if test x$support_smartalloc = xyes; then
6901    cat >>confdefs.h <<\_ACEOF
6902 #define SMARTALLOC 1
6903 _ACEOF
6904
6905 fi
6906
6907 # -------------------------------------------
6908 # static-tools (default off)
6909 # -------------------------------------------
6910 # Check whether --enable-static-tools or --disable-static-tools was given.
6911 if test "${enable_static_tools+set}" = set; then
6912   enableval="$enable_static_tools"
6913   if test x$enableval = xyes; then
6914      support_static_tools=yes
6915    fi
6916 fi;
6917
6918 TTOOL_LDFLAGS=
6919 if test x$support_static_tools = xyes; then
6920    TTOOL_LDFLAGS="-static"
6921 fi
6922
6923
6924 # -------------------------------------------
6925 # static-fd    (default off)
6926 # -------------------------------------------
6927 # Check whether --enable-static-fd or --disable-static-fd was given.
6928 if test "${enable_static_fd+set}" = set; then
6929   enableval="$enable_static_fd"
6930   if test x$enableval = xyes; then
6931      support_static_fd=yes
6932    fi
6933 fi;
6934
6935 STATIC_FD=
6936 if test x$support_static_fd = xyes; then
6937    STATIC_FD="static-bacula-fd"
6938 fi
6939
6940
6941 # -------------------------------------------
6942 # static-sd    (default off)
6943 # -------------------------------------------
6944 # Check whether --enable-static-sd or --disable-static-sd was given.
6945 if test "${enable_static_sd+set}" = set; then
6946   enableval="$enable_static_sd"
6947   if test x$enableval = xyes; then
6948      support_static_sd=yes
6949    fi
6950 fi;
6951
6952 STATIC_SD=
6953 if test x$support_static_sd = xyes; then
6954    STATIC_SD="static-bacula-sd"
6955 fi
6956
6957
6958 # -------------------------------------------
6959 # static-dir   (default off)
6960 # -------------------------------------------
6961 # Check whether --enable-static-dir or --disable-static-dir was given.
6962 if test "${enable_static_dir+set}" = set; then
6963   enableval="$enable_static_dir"
6964   if test x$enableval = xyes; then
6965      support_static_dir=yes
6966    fi
6967 fi;
6968
6969 STATIC_DIR=
6970 if test x$support_static_dir = xyes; then
6971    STATIC_DIR="static-bacula-dir"
6972 fi
6973
6974
6975 # -------------------------------------------
6976 # static-cons  (default off)
6977 # -------------------------------------------
6978 # Check whether --enable-static-cons or --disable-static-cons was given.
6979 if test "${enable_static_cons+set}" = set; then
6980   enableval="$enable_static_cons"
6981   if test x$enableval = xyes; then
6982      support_static_cons=yes
6983    fi
6984 fi;
6985
6986 STATIC_CONS=
6987 STATIC_GNOME_CONS=
6988 STATIC_WX_CONS=
6989 if test x$support_static_cons = xyes; then
6990    STATIC_CONS="static-bconsole"
6991    STATIC_GNOME_CONS="static-gnome-console"
6992    STATIC_WX_CONS="static-wx-console"
6993 fi
6994
6995
6996
6997
6998 # -------------------------------------------
6999 # client_only  (default off)
7000 # -------------------------------------------
7001 # Check whether --enable-client-only or --disable-client-only was given.
7002 if test "${enable_client_only+set}" = set; then
7003   enableval="$enable_client_only"
7004   if test x$enableval = xyes; then
7005      build_client_only=yes
7006     db_name=None
7007     DB_NAME=none
7008    fi
7009 fi;
7010 if test x$build_client_only = xno; then
7011    ALL_DIRS="subdirs"
7012 else
7013    ALL_DIRS=""
7014 fi
7015
7016
7017 # ---------------------------------------------------
7018 # Check for conio (Bacula readline substitute)(
7019 # ---------------------------------------------------
7020 # this allows you to turn it completely off
7021 # Check whether --enable-conio or --disable-conio was given.
7022 if test "${enable_conio+set}" = set; then
7023   enableval="$enable_conio"
7024   if test x$enableval = xno; then
7025     support_conio=no
7026   fi
7027 fi;
7028
7029 got_conio="no"
7030 if test x$support_conio = xyes; then
7031    echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7033 if test "${ac_cv_header_stdc+set}" = set; then
7034   echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036   cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <stdlib.h>
7043 #include <stdarg.h>
7044 #include <string.h>
7045 #include <float.h>
7046
7047 int
7048 main ()
7049 {
7050
7051   ;
7052   return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7057   (eval $ac_compile) 2>conftest.er1
7058   ac_status=$?
7059   grep -v '^ *+' conftest.er1 >conftest.err
7060   rm -f conftest.er1
7061   cat conftest.err >&5
7062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063   (exit $ac_status); } &&
7064          { ac_try='test -z "$ac_c_werror_flag"
7065                          || test ! -s conftest.err'
7066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7067   (eval $ac_try) 2>&5
7068   ac_status=$?
7069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070   (exit $ac_status); }; } &&
7071          { ac_try='test -s conftest.$ac_objext'
7072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073   (eval $ac_try) 2>&5
7074   ac_status=$?
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); }; }; then
7077   ac_cv_header_stdc=yes
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082 ac_cv_header_stdc=no
7083 fi
7084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7085
7086 if test $ac_cv_header_stdc = yes; then
7087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <string.h>
7095
7096 _ACEOF
7097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098   $EGREP "memchr" >/dev/null 2>&1; then
7099   :
7100 else
7101   ac_cv_header_stdc=no
7102 fi
7103 rm -f conftest*
7104
7105 fi
7106
7107 if test $ac_cv_header_stdc = yes; then
7108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7109   cat >conftest.$ac_ext <<_ACEOF
7110 /* confdefs.h.  */
7111 _ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h.  */
7115 #include <stdlib.h>
7116
7117 _ACEOF
7118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7119   $EGREP "free" >/dev/null 2>&1; then
7120   :
7121 else
7122   ac_cv_header_stdc=no
7123 fi
7124 rm -f conftest*
7125
7126 fi
7127
7128 if test $ac_cv_header_stdc = yes; then
7129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7130   if test "$cross_compiling" = yes; then
7131   :
7132 else
7133   cat >conftest.$ac_ext <<_ACEOF
7134 /* confdefs.h.  */
7135 _ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h.  */
7139 #include <ctype.h>
7140 #if ((' ' & 0x0FF) == 0x020)
7141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7143 #else
7144 # define ISLOWER(c) \
7145                    (('a' <= (c) && (c) <= 'i') \
7146                      || ('j' <= (c) && (c) <= 'r') \
7147                      || ('s' <= (c) && (c) <= 'z'))
7148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7149 #endif
7150
7151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7152 int
7153 main ()
7154 {
7155   int i;
7156   for (i = 0; i < 256; i++)
7157     if (XOR (islower (i), ISLOWER (i))
7158         || toupper (i) != TOUPPER (i))
7159       exit(2);
7160   exit (0);
7161 }
7162 _ACEOF
7163 rm -f conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165   (eval $ac_link) 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170   (eval $ac_try) 2>&5
7171   ac_status=$?
7172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173   (exit $ac_status); }; }; then
7174   :
7175 else
7176   echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7179
7180 ( exit $ac_status )
7181 ac_cv_header_stdc=no
7182 fi
7183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7184 fi
7185 fi
7186 fi
7187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7189 if test $ac_cv_header_stdc = yes; then
7190
7191 cat >>confdefs.h <<\_ACEOF
7192 #define STDC_HEADERS 1
7193 _ACEOF
7194
7195 fi
7196
7197 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7208                   inttypes.h stdint.h unistd.h
7209 do
7210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7211 echo "$as_me:$LINENO: checking for $ac_header" >&5
7212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214   echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216   cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h.  */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h.  */
7222 $ac_includes_default
7223
7224 #include <$ac_header>
7225 _ACEOF
7226 rm -f conftest.$ac_objext
7227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7228   (eval $ac_compile) 2>conftest.er1
7229   ac_status=$?
7230   grep -v '^ *+' conftest.er1 >conftest.err
7231   rm -f conftest.er1
7232   cat conftest.err >&5
7233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234   (exit $ac_status); } &&
7235          { ac_try='test -z "$ac_c_werror_flag"
7236                          || test ! -s conftest.err'
7237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7238   (eval $ac_try) 2>&5
7239   ac_status=$?
7240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241   (exit $ac_status); }; } &&
7242          { ac_try='test -s conftest.$ac_objext'
7243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244   (eval $ac_try) 2>&5
7245   ac_status=$?
7246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247   (exit $ac_status); }; }; then
7248   eval "$as_ac_Header=yes"
7249 else
7250   echo "$as_me: failed program was:" >&5
7251 sed 's/^/| /' conftest.$ac_ext >&5
7252
7253 eval "$as_ac_Header=no"
7254 fi
7255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7256 fi
7257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7258 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7260   cat >>confdefs.h <<_ACEOF
7261 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7262 _ACEOF
7263
7264 fi
7265
7266 done
7267
7268
7269 if test "${ac_cv_header_termcap_h+set}" = set; then
7270   echo "$as_me:$LINENO: checking for termcap.h" >&5
7271 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7272 if test "${ac_cv_header_termcap_h+set}" = set; then
7273   echo $ECHO_N "(cached) $ECHO_C" >&6
7274 fi
7275 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7276 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7277 else
7278   # Is the header compilable?
7279 echo "$as_me:$LINENO: checking termcap.h usability" >&5
7280 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h.  */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h.  */
7287 $ac_includes_default
7288 #include <termcap.h>
7289 _ACEOF
7290 rm -f conftest.$ac_objext
7291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7292   (eval $ac_compile) 2>conftest.er1
7293   ac_status=$?
7294   grep -v '^ *+' conftest.er1 >conftest.err
7295   rm -f conftest.er1
7296   cat conftest.err >&5
7297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298   (exit $ac_status); } &&
7299          { ac_try='test -z "$ac_c_werror_flag"
7300                          || test ! -s conftest.err'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; } &&
7306          { ac_try='test -s conftest.$ac_objext'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; }; then
7312   ac_header_compiler=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 ac_header_compiler=no
7318 fi
7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7322
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking termcap.h presence" >&5
7325 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #include <termcap.h>
7333 _ACEOF
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } >/dev/null; then
7342   if test -s conftest.err; then
7343     ac_cpp_err=$ac_c_preproc_warn_flag
7344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7345   else
7346     ac_cpp_err=
7347   fi
7348 else
7349   ac_cpp_err=yes
7350 fi
7351 if test -z "$ac_cpp_err"; then
7352   ac_header_preproc=yes
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357   ac_header_preproc=no
7358 fi
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7362
7363 # So?  What about this header?
7364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7365   yes:no: )
7366     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
7369 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
7370     ac_header_preproc=yes
7371     ;;
7372   no:yes:* )
7373     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
7374 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
7376 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
7378 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
7379     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
7380 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7381     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
7382 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
7383     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
7384 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
7385     (
7386       cat <<\_ASBOX
7387 ## ------------------------------------------ ##
7388 ## Report this to the AC_PACKAGE_NAME lists.  ##
7389 ## ------------------------------------------ ##
7390 _ASBOX
7391     ) |
7392       sed "s/^/$as_me: WARNING:     /" >&2
7393     ;;
7394 esac
7395 echo "$as_me:$LINENO: checking for termcap.h" >&5
7396 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
7397 if test "${ac_cv_header_termcap_h+set}" = set; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   ac_cv_header_termcap_h=$ac_header_preproc
7401 fi
7402 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
7403 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
7404
7405 fi
7406 if test $ac_cv_header_termcap_h = yes; then
7407    echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7408 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7409 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7410   echo $ECHO_N "(cached) $ECHO_C" >&6
7411 else
7412   ac_check_lib_save_LIBS=$LIBS
7413 LIBS="-ltermcap  $LIBS"
7414 cat >conftest.$ac_ext <<_ACEOF
7415 /* confdefs.h.  */
7416 _ACEOF
7417 cat confdefs.h >>conftest.$ac_ext
7418 cat >>conftest.$ac_ext <<_ACEOF
7419 /* end confdefs.h.  */
7420
7421 /* Override any gcc2 internal prototype to avoid an error.  */
7422 #ifdef __cplusplus
7423 extern "C"
7424 #endif
7425 /* We use char because int might match the return type of a gcc2
7426    builtin and then its argument prototype would still apply.  */
7427 char tgetent ();
7428 int
7429 main ()
7430 {
7431 tgetent ();
7432   ;
7433   return 0;
7434 }
7435 _ACEOF
7436 rm -f conftest.$ac_objext conftest$ac_exeext
7437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7438   (eval $ac_link) 2>conftest.er1
7439   ac_status=$?
7440   grep -v '^ *+' conftest.er1 >conftest.err
7441   rm -f conftest.er1
7442   cat conftest.err >&5
7443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444   (exit $ac_status); } &&
7445          { ac_try='test -z "$ac_c_werror_flag"
7446                          || test ! -s conftest.err'
7447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448   (eval $ac_try) 2>&5
7449   ac_status=$?
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); }; } &&
7452          { ac_try='test -s conftest$ac_exeext'
7453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454   (eval $ac_try) 2>&5
7455   ac_status=$?
7456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457   (exit $ac_status); }; }; then
7458   ac_cv_lib_termcap_tgetent=yes
7459 else
7460   echo "$as_me: failed program was:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7462
7463 ac_cv_lib_termcap_tgetent=no
7464 fi
7465 rm -f conftest.err conftest.$ac_objext \
7466       conftest$ac_exeext conftest.$ac_ext
7467 LIBS=$ac_check_lib_save_LIBS
7468 fi
7469 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7470 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7471 if test $ac_cv_lib_termcap_tgetent = yes; then
7472    CONS_LIBS="-ltermcap"
7473          CONS_OBJ="conio.o"
7474          CONS_SRC="conio.c"
7475          got_conio="yes"
7476          support_readline=no
7477
7478 cat >>confdefs.h <<\_ACEOF
7479 #define HAVE_CONIO 1
7480 _ACEOF
7481
7482
7483 else
7484    echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7485 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7486 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-lncurses  $LIBS"
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497
7498 /* Override any gcc2 internal prototype to avoid an error.  */
7499 #ifdef __cplusplus
7500 extern "C"
7501 #endif
7502 /* We use char because int might match the return type of a gcc2
7503    builtin and then its argument prototype would still apply.  */
7504 char tgetent ();
7505 int
7506 main ()
7507 {
7508 tgetent ();
7509   ;
7510   return 0;
7511 }
7512 _ACEOF
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515   (eval $ac_link) 2>conftest.er1
7516   ac_status=$?
7517   grep -v '^ *+' conftest.er1 >conftest.err
7518   rm -f conftest.er1
7519   cat conftest.err >&5
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } &&
7522          { ac_try='test -z "$ac_c_werror_flag"
7523                          || test ! -s conftest.err'
7524   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7525   (eval $ac_try) 2>&5
7526   ac_status=$?
7527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); }; } &&
7529          { ac_try='test -s conftest$ac_exeext'
7530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531   (eval $ac_try) 2>&5
7532   ac_status=$?
7533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534   (exit $ac_status); }; }; then
7535   ac_cv_lib_ncurses_tgetent=yes
7536 else
7537   echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540 ac_cv_lib_ncurses_tgetent=no
7541 fi
7542 rm -f conftest.err conftest.$ac_objext \
7543       conftest$ac_exeext conftest.$ac_ext
7544 LIBS=$ac_check_lib_save_LIBS
7545 fi
7546 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7547 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7548 if test $ac_cv_lib_ncurses_tgetent = yes; then
7549    CONS_LIBS="-lncurses"
7550            CONS_OBJ="conio.o"
7551            CONS_SRC="conio.c"
7552            got_conio="yes"
7553            support_readline=no
7554
7555 cat >>confdefs.h <<\_ACEOF
7556 #define HAVE_CONIO 1
7557 _ACEOF
7558
7559
7560 fi
7561
7562
7563 fi
7564
7565
7566 else
7567
7568
7569 for ac_header in curses.h
7570 do
7571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7573   echo "$as_me:$LINENO: checking for $ac_header" >&5
7574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7576   echo $ECHO_N "(cached) $ECHO_C" >&6
7577 fi
7578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7580 else
7581   # Is the header compilable?
7582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h.  */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h.  */
7590 $ac_includes_default
7591 #include <$ac_header>
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7595   (eval $ac_compile) 2>conftest.er1
7596   ac_status=$?
7597   grep -v '^ *+' conftest.er1 >conftest.err
7598   rm -f conftest.er1
7599   cat conftest.err >&5
7600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601   (exit $ac_status); } &&
7602          { ac_try='test -z "$ac_c_werror_flag"
7603                          || test ! -s conftest.err'
7604   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605   (eval $ac_try) 2>&5
7606   ac_status=$?
7607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608   (exit $ac_status); }; } &&
7609          { ac_try='test -s conftest.$ac_objext'
7610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7611   (eval $ac_try) 2>&5
7612   ac_status=$?
7613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614   (exit $ac_status); }; }; then
7615   ac_header_compiler=yes
7616 else
7617   echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7619
7620 ac_header_compiler=no
7621 fi
7622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7624 echo "${ECHO_T}$ac_header_compiler" >&6
7625
7626 # Is the header present?
7627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7629 cat >conftest.$ac_ext <<_ACEOF
7630 /* confdefs.h.  */
7631 _ACEOF
7632 cat confdefs.h >>conftest.$ac_ext
7633 cat >>conftest.$ac_ext <<_ACEOF
7634 /* end confdefs.h.  */
7635 #include <$ac_header>
7636 _ACEOF
7637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7638   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7639   ac_status=$?
7640   grep -v '^ *+' conftest.er1 >conftest.err
7641   rm -f conftest.er1
7642   cat conftest.err >&5
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); } >/dev/null; then
7645   if test -s conftest.err; then
7646     ac_cpp_err=$ac_c_preproc_warn_flag
7647     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7648   else
7649     ac_cpp_err=
7650   fi
7651 else
7652   ac_cpp_err=yes
7653 fi
7654 if test -z "$ac_cpp_err"; then
7655   ac_header_preproc=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660   ac_header_preproc=no
7661 fi
7662 rm -f conftest.err conftest.$ac_ext
7663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7664 echo "${ECHO_T}$ac_header_preproc" >&6
7665
7666 # So?  What about this header?
7667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7668   yes:no: )
7669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7673     ac_header_preproc=yes
7674     ;;
7675   no:yes:* )
7676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7688     (
7689       cat <<\_ASBOX
7690 ## ------------------------------------------ ##
7691 ## Report this to the AC_PACKAGE_NAME lists.  ##
7692 ## ------------------------------------------ ##
7693 _ASBOX
7694     ) |
7695       sed "s/^/$as_me: WARNING:     /" >&2
7696     ;;
7697 esac
7698 echo "$as_me:$LINENO: checking for $ac_header" >&5
7699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7701   echo $ECHO_N "(cached) $ECHO_C" >&6
7702 else
7703   eval "$as_ac_Header=\$ac_header_preproc"
7704 fi
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7707
7708 fi
7709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7710   cat >>confdefs.h <<_ACEOF
7711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7712 _ACEOF
7713
7714 fi
7715
7716 done
7717
7718          echo "$as_me:$LINENO: checking for term.h" >&5
7719 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
7720 if test "${ac_cv_header_term_h+set}" = set; then
7721   echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723   cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h.  */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h.  */
7729 #if HAVE_CURSES_H
7730 #include <curses.h>
7731 #endif
7732
7733
7734 #include <term.h>
7735 _ACEOF
7736 rm -f conftest.$ac_objext
7737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738   (eval $ac_compile) 2>conftest.er1
7739   ac_status=$?
7740   grep -v '^ *+' conftest.er1 >conftest.err
7741   rm -f conftest.er1
7742   cat conftest.err >&5
7743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744   (exit $ac_status); } &&
7745          { ac_try='test -z "$ac_c_werror_flag"
7746                          || test ! -s conftest.err'
7747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748   (eval $ac_try) 2>&5
7749   ac_status=$?
7750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751   (exit $ac_status); }; } &&
7752          { ac_try='test -s conftest.$ac_objext'
7753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754   (eval $ac_try) 2>&5
7755   ac_status=$?
7756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757   (exit $ac_status); }; }; then
7758   ac_cv_header_term_h=yes
7759 else
7760   echo "$as_me: failed program was:" >&5
7761 sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_cv_header_term_h=no
7764 fi
7765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7766 fi
7767 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
7768 echo "${ECHO_T}$ac_cv_header_term_h" >&6
7769 if test $ac_cv_header_term_h = yes; then
7770    echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
7771 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
7772 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
7773   echo $ECHO_N "(cached) $ECHO_C" >&6
7774 else
7775   ac_check_lib_save_LIBS=$LIBS
7776 LIBS="-lcurses  $LIBS"
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
7784 /* Override any gcc2 internal prototype to avoid an error.  */
7785 #ifdef __cplusplus
7786 extern "C"
7787 #endif
7788 /* We use char because int might match the return type of a gcc2
7789    builtin and then its argument prototype would still apply.  */
7790 char tgetent ();
7791 int
7792 main ()
7793 {
7794 tgetent ();
7795   ;
7796   return 0;
7797 }
7798 _ACEOF
7799 rm -f conftest.$ac_objext conftest$ac_exeext
7800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801   (eval $ac_link) 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } &&
7808          { ac_try='test -z "$ac_c_werror_flag"
7809                          || test ! -s conftest.err'
7810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811   (eval $ac_try) 2>&5
7812   ac_status=$?
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); }; } &&
7815          { ac_try='test -s conftest$ac_exeext'
7816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817   (eval $ac_try) 2>&5
7818   ac_status=$?
7819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820   (exit $ac_status); }; }; then
7821   ac_cv_lib_curses_tgetent=yes
7822 else
7823   echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ac_cv_lib_curses_tgetent=no
7827 fi
7828 rm -f conftest.err conftest.$ac_objext \
7829       conftest$ac_exeext conftest.$ac_ext
7830 LIBS=$ac_check_lib_save_LIBS
7831 fi
7832 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
7833 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
7834 if test $ac_cv_lib_curses_tgetent = yes; then
7835    CONS_LIBS="-lcurses"
7836                    CONS_OBJ="conio.o"
7837                    CONS_SRC="conio.c"
7838                    got_conio="yes"
7839                    support_readline=no
7840
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_CONIO 1
7843 _ACEOF
7844
7845
7846 fi
7847
7848
7849 else
7850    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
7851 fi
7852
7853
7854
7855 fi
7856
7857
7858 fi
7859
7860
7861 # ---------------------------------------------------
7862 # Check for readline support/directory (default off)
7863 # ---------------------------------------------------
7864 # this allows you to turn it completely off
7865 # Check whether --enable-readline or --disable-readline was given.
7866 if test "${enable_readline+set}" = set; then
7867   enableval="$enable_readline"
7868   if test x$enableval = xno; then
7869     support_readline=no
7870   fi
7871 fi;
7872
7873 got_readline="no"
7874 READLINE_SRC=
7875 if test x$support_readline = xyes; then
7876
7877 # Check whether --with-readline or --without-readline was given.
7878 if test "${with_readline+set}" = set; then
7879   withval="$with_readline"
7880
7881         case "$with_readline" in
7882         no) : ;;
7883         yes|*)
7884           if test -f ${with_readline}/readline.h; then
7885              CONS_INC="-I${with_readline}"
7886              CONS_LDFLAGS="-L$with_readline"
7887           elif test -f ${with_readline}/include/readline/readline.h; then
7888              CONS_INC="-I${with_readline}/include/readline"
7889              CONS_LDFLAGS="-L${with_readline}/lib"
7890              with_readline="${with_readline}/include/readline"
7891           else
7892              with_readline="/usr/include/readline"
7893           fi
7894           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
7895 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7896   echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
7897 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
7898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7899   echo $ECHO_N "(cached) $ECHO_C" >&6
7900 fi
7901 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7902 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7903 else
7904   # Is the header compilable?
7905 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
7906 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
7907 cat >conftest.$ac_ext <<_ACEOF
7908 /* confdefs.h.  */
7909 _ACEOF
7910 cat confdefs.h >>conftest.$ac_ext
7911 cat >>conftest.$ac_ext <<_ACEOF
7912 /* end confdefs.h.  */
7913 $ac_includes_default
7914 #include <${with_readline}/readline.h>
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7918   (eval $ac_compile) 2>conftest.er1
7919   ac_status=$?
7920   grep -v '^ *+' conftest.er1 >conftest.err
7921   rm -f conftest.er1
7922   cat conftest.err >&5
7923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7924   (exit $ac_status); } &&
7925          { ac_try='test -z "$ac_c_werror_flag"
7926                          || test ! -s conftest.err'
7927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928   (eval $ac_try) 2>&5
7929   ac_status=$?
7930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931   (exit $ac_status); }; } &&
7932          { ac_try='test -s conftest.$ac_objext'
7933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7934   (eval $ac_try) 2>&5
7935   ac_status=$?
7936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937   (exit $ac_status); }; }; then
7938   ac_header_compiler=yes
7939 else
7940   echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943 ac_header_compiler=no
7944 fi
7945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7947 echo "${ECHO_T}$ac_header_compiler" >&6
7948
7949 # Is the header present?
7950 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
7951 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7953 /* confdefs.h.  */
7954 _ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h.  */
7958 #include <${with_readline}/readline.h>
7959 _ACEOF
7960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7961   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } >/dev/null; then
7968   if test -s conftest.err; then
7969     ac_cpp_err=$ac_c_preproc_warn_flag
7970     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7971   else
7972     ac_cpp_err=
7973   fi
7974 else
7975   ac_cpp_err=yes
7976 fi
7977 if test -z "$ac_cpp_err"; then
7978   ac_header_preproc=yes
7979 else
7980   echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7982
7983   ac_header_preproc=no
7984 fi
7985 rm -f conftest.err conftest.$ac_ext
7986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7987 echo "${ECHO_T}$ac_header_preproc" >&6
7988
7989 # So?  What about this header?
7990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7991   yes:no: )
7992     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
7993 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7994     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
7995 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
7996     ac_header_preproc=yes
7997     ;;
7998   no:yes:* )
7999     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
8000 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
8001     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
8002 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
8003     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
8004 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
8005     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8006 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8007     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
8008 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
8009     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
8010 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
8011     (
8012       cat <<\_ASBOX
8013 ## ------------------------------------------ ##
8014 ## Report this to the AC_PACKAGE_NAME lists.  ##
8015 ## ------------------------------------------ ##
8016 _ASBOX
8017     ) |
8018       sed "s/^/$as_me: WARNING:     /" >&2
8019     ;;
8020 esac
8021 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
8022 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
8023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8024   echo $ECHO_N "(cached) $ECHO_C" >&6
8025 else
8026   eval "$as_ac_Header=\$ac_header_preproc"
8027 fi
8028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8030
8031 fi
8032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8033    cat >>confdefs.h <<\_ACEOF
8034 #define HAVE_READLINE 1
8035 _ACEOF
8036
8037                CONS_LIBS="-lreadline -lhistory -ltermcap"
8038                got_readline="yes"
8039
8040 else
8041    echo " "
8042                echo "readline.h not found. readline turned off ..."
8043                echo " "
8044
8045
8046 fi
8047
8048
8049           ;;
8050         esac
8051
8052 else
8053
8054        # check for standard readline library
8055        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8056   echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8057 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8058 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8059   echo $ECHO_N "(cached) $ECHO_C" >&6
8060 fi
8061 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8062 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8063 else
8064   # Is the header compilable?
8065 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
8066 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
8067 cat >conftest.$ac_ext <<_ACEOF
8068 /* confdefs.h.  */
8069 _ACEOF
8070 cat confdefs.h >>conftest.$ac_ext
8071 cat >>conftest.$ac_ext <<_ACEOF
8072 /* end confdefs.h.  */
8073 $ac_includes_default
8074 #include </usr/include/readline/readline.h>
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078   (eval $ac_compile) 2>conftest.er1
8079   ac_status=$?
8080   grep -v '^ *+' conftest.er1 >conftest.err
8081   rm -f conftest.er1
8082   cat conftest.err >&5
8083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084   (exit $ac_status); } &&
8085          { ac_try='test -z "$ac_c_werror_flag"
8086                          || test ! -s conftest.err'
8087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088   (eval $ac_try) 2>&5
8089   ac_status=$?
8090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091   (exit $ac_status); }; } &&
8092          { ac_try='test -s conftest.$ac_objext'
8093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094   (eval $ac_try) 2>&5
8095   ac_status=$?
8096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097   (exit $ac_status); }; }; then
8098   ac_header_compiler=yes
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ac_header_compiler=no
8104 fi
8105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8107 echo "${ECHO_T}$ac_header_compiler" >&6
8108
8109 # Is the header present?
8110 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
8111 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
8112 cat >conftest.$ac_ext <<_ACEOF
8113 /* confdefs.h.  */
8114 _ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h.  */
8118 #include </usr/include/readline/readline.h>
8119 _ACEOF
8120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } >/dev/null; then
8128   if test -s conftest.err; then
8129     ac_cpp_err=$ac_c_preproc_warn_flag
8130     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8131   else
8132     ac_cpp_err=
8133   fi
8134 else
8135   ac_cpp_err=yes
8136 fi
8137 if test -z "$ac_cpp_err"; then
8138   ac_header_preproc=yes
8139 else
8140   echo "$as_me: failed program was:" >&5
8141 sed 's/^/| /' conftest.$ac_ext >&5
8142
8143   ac_header_preproc=no
8144 fi
8145 rm -f conftest.err conftest.$ac_ext
8146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8147 echo "${ECHO_T}$ac_header_preproc" >&6
8148
8149 # So?  What about this header?
8150 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8151   yes:no: )
8152     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8153 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8154     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
8155 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
8156     ac_header_preproc=yes
8157     ;;
8158   no:yes:* )
8159     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
8160 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
8161     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
8162 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8163     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
8164 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
8165     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8166 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8167     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
8168 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8169     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
8170 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8171     (
8172       cat <<\_ASBOX
8173 ## ------------------------------------------ ##
8174 ## Report this to the AC_PACKAGE_NAME lists.  ##
8175 ## ------------------------------------------ ##
8176 _ASBOX
8177     ) |
8178       sed "s/^/$as_me: WARNING:     /" >&2
8179     ;;
8180 esac
8181 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
8182 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
8183 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
8184   echo $ECHO_N "(cached) $ECHO_C" >&6
8185 else
8186   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
8187 fi
8188 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
8189 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
8190
8191 fi
8192 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
8193    cat >>confdefs.h <<\_ACEOF
8194 #define HAVE_READLINE 1
8195 _ACEOF
8196
8197            got_readline="yes"
8198            CONS_INC="-I/usr/include/readline"
8199            CONS_LIBS="-lreadline -ltermcap"
8200
8201 else
8202
8203            # Did not find standard library, so try Bacula's default
8204             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
8205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8206   echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8207 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 fi
8211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8213 else
8214   # Is the header compilable?
8215 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
8216 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
8217 cat >conftest.$ac_ext <<_ACEOF
8218 /* confdefs.h.  */
8219 _ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h.  */
8223 $ac_includes_default
8224 #include <${TOP_DIR}/depkgs/readline/readline.h>
8225 _ACEOF
8226 rm -f conftest.$ac_objext
8227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8228   (eval $ac_compile) 2>conftest.er1
8229   ac_status=$?
8230   grep -v '^ *+' conftest.er1 >conftest.err
8231   rm -f conftest.er1
8232   cat conftest.err >&5
8233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234   (exit $ac_status); } &&
8235          { ac_try='test -z "$ac_c_werror_flag"
8236                          || test ! -s conftest.err'
8237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238   (eval $ac_try) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; } &&
8242          { ac_try='test -s conftest.$ac_objext'
8243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244   (eval $ac_try) 2>&5
8245   ac_status=$?
8246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247   (exit $ac_status); }; }; then
8248   ac_header_compiler=yes
8249 else
8250   echo "$as_me: failed program was:" >&5
8251 sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_header_compiler=no
8254 fi
8255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8256 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8257 echo "${ECHO_T}$ac_header_compiler" >&6
8258
8259 # Is the header present?
8260 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
8261 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
8262 cat >conftest.$ac_ext <<_ACEOF
8263 /* confdefs.h.  */
8264 _ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h.  */
8268 #include <${TOP_DIR}/depkgs/readline/readline.h>
8269 _ACEOF
8270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8271   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8272   ac_status=$?
8273   grep -v '^ *+' conftest.er1 >conftest.err
8274   rm -f conftest.er1
8275   cat conftest.err >&5
8276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277   (exit $ac_status); } >/dev/null; then
8278   if test -s conftest.err; then
8279     ac_cpp_err=$ac_c_preproc_warn_flag
8280     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8281   else
8282     ac_cpp_err=
8283   fi
8284 else
8285   ac_cpp_err=yes
8286 fi
8287 if test -z "$ac_cpp_err"; then
8288   ac_header_preproc=yes
8289 else
8290   echo "$as_me: failed program was:" >&5
8291 sed 's/^/| /' conftest.$ac_ext >&5
8292
8293   ac_header_preproc=no
8294 fi
8295 rm -f conftest.err conftest.$ac_ext
8296 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8297 echo "${ECHO_T}$ac_header_preproc" >&6
8298
8299 # So?  What about this header?
8300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8301   yes:no: )
8302     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
8303 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8304     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
8305 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
8306     ac_header_preproc=yes
8307     ;;
8308   no:yes:* )
8309     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
8310 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
8311     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
8312 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
8313     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
8314 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
8315     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
8316 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8317     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
8318 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
8319     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
8320 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
8321     (
8322       cat <<\_ASBOX
8323 ## ------------------------------------------ ##
8324 ## Report this to the AC_PACKAGE_NAME lists.  ##
8325 ## ------------------------------------------ ##
8326 _ASBOX
8327     ) |
8328       sed "s/^/$as_me: WARNING:     /" >&2
8329     ;;
8330 esac
8331 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
8332 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
8333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8334   echo $ECHO_N "(cached) $ECHO_C" >&6
8335 else
8336   eval "$as_ac_Header=\$ac_header_preproc"
8337 fi
8338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8340
8341 fi
8342 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8343    cat >>confdefs.h <<\_ACEOF
8344 #define HAVE_READLINE 1
8345 _ACEOF
8346
8347                  got_readline="yes"
8348                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
8349                  CONS_LIBS="-lreadline -lhistory -ltermcap"
8350                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
8351                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
8352
8353 else
8354    echo " "
8355                 echo "readline.h not found. readline turned off ..."
8356                 echo " "
8357
8358
8359 fi
8360
8361
8362
8363
8364 fi
8365
8366
8367
8368
8369 fi;
8370 fi
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381 # Minimal stuff for readline Makefile configuration
8382 MAKE_SHELL=/bin/sh
8383
8384 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8385 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8386 if test "${ac_cv_header_stat_broken+set}" = set; then
8387   echo $ECHO_N "(cached) $ECHO_C" >&6
8388 else
8389   cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h.  */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h.  */
8395 #include <sys/types.h>
8396 #include <sys/stat.h>
8397
8398 #if defined(S_ISBLK) && defined(S_IFDIR)
8399 # if S_ISBLK (S_IFDIR)
8400 You lose.
8401 # endif
8402 #endif
8403
8404 #if defined(S_ISBLK) && defined(S_IFCHR)
8405 # if S_ISBLK (S_IFCHR)
8406 You lose.
8407 # endif
8408 #endif
8409
8410 #if defined(S_ISLNK) && defined(S_IFREG)
8411 # if S_ISLNK (S_IFREG)
8412 You lose.
8413 # endif
8414 #endif
8415
8416 #if defined(S_ISSOCK) && defined(S_IFREG)
8417 # if S_ISSOCK (S_IFREG)
8418 You lose.
8419 # endif
8420 #endif
8421
8422 _ACEOF
8423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8424   $EGREP "You lose" >/dev/null 2>&1; then
8425   ac_cv_header_stat_broken=yes
8426 else
8427   ac_cv_header_stat_broken=no
8428 fi
8429 rm -f conftest*
8430
8431 fi
8432 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8433 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8434 if test $ac_cv_header_stat_broken = yes; then
8435
8436 cat >>confdefs.h <<\_ACEOF
8437 #define STAT_MACROS_BROKEN 1
8438 _ACEOF
8439
8440 fi
8441
8442
8443
8444
8445
8446
8447 ac_header_dirent=no
8448 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8449   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8450 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8451 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
8452 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8453   echo $ECHO_N "(cached) $ECHO_C" >&6
8454 else
8455   cat >conftest.$ac_ext <<_ACEOF
8456 /* confdefs.h.  */
8457 _ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h.  */
8461 #include <sys/types.h>
8462 #include <$ac_hdr>
8463
8464 int
8465 main ()
8466 {
8467 if ((DIR *) 0)
8468 return 0;
8469   ;
8470   return 0;
8471 }
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475   (eval $ac_compile) 2>conftest.er1
8476   ac_status=$?
8477   grep -v '^ *+' conftest.er1 >conftest.err
8478   rm -f conftest.er1
8479   cat conftest.err >&5
8480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8481   (exit $ac_status); } &&
8482          { ac_try='test -z "$ac_c_werror_flag"
8483                          || test ! -s conftest.err'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; } &&
8489          { ac_try='test -s conftest.$ac_objext'
8490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8491   (eval $ac_try) 2>&5
8492   ac_status=$?
8493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8494   (exit $ac_status); }; }; then
8495   eval "$as_ac_Header=yes"
8496 else
8497   echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500 eval "$as_ac_Header=no"
8501 fi
8502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8505 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8507   cat >>confdefs.h <<_ACEOF
8508 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8509 _ACEOF
8510
8511 ac_header_dirent=$ac_hdr; break
8512 fi
8513
8514 done
8515 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8516 if test $ac_header_dirent = dirent.h; then
8517   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8518 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8519 if test "${ac_cv_search_opendir+set}" = set; then
8520   echo $ECHO_N "(cached) $ECHO_C" >&6
8521 else
8522   ac_func_search_save_LIBS=$LIBS
8523 ac_cv_search_opendir=no
8524 cat >conftest.$ac_ext <<_ACEOF
8525 /* confdefs.h.  */
8526 _ACEOF
8527 cat confdefs.h >>conftest.$ac_ext
8528 cat >>conftest.$ac_ext <<_ACEOF
8529 /* end confdefs.h.  */
8530
8531 /* Override any gcc2 internal prototype to avoid an error.  */
8532 #ifdef __cplusplus
8533 extern "C"
8534 #endif
8535 /* We use char because int might match the return type of a gcc2
8536    builtin and then its argument prototype would still apply.  */
8537 char opendir ();
8538 int
8539 main ()
8540 {
8541 opendir ();
8542   ;
8543   return 0;
8544 }
8545 _ACEOF
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548   (eval $ac_link) 2>conftest.er1
8549   ac_status=$?
8550   grep -v '^ *+' conftest.er1 >conftest.err
8551   rm -f conftest.er1
8552   cat conftest.err >&5
8553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554   (exit $ac_status); } &&
8555          { ac_try='test -z "$ac_c_werror_flag"
8556                          || test ! -s conftest.err'
8557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8558   (eval $ac_try) 2>&5
8559   ac_status=$?
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); }; } &&
8562          { ac_try='test -s conftest$ac_exeext'
8563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8564   (eval $ac_try) 2>&5
8565   ac_status=$?
8566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567   (exit $ac_status); }; }; then
8568   ac_cv_search_opendir="none required"
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573 fi
8574 rm -f conftest.err conftest.$ac_objext \
8575       conftest$ac_exeext conftest.$ac_ext
8576 if test "$ac_cv_search_opendir" = no; then
8577   for ac_lib in dir; do
8578     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8579     cat >conftest.$ac_ext <<_ACEOF
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586 /* Override any gcc2 internal prototype to avoid an error.  */
8587 #ifdef __cplusplus
8588 extern "C"
8589 #endif
8590 /* We use char because int might match the return type of a gcc2
8591    builtin and then its argument prototype would still apply.  */
8592 char opendir ();
8593 int
8594 main ()
8595 {
8596 opendir ();
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603   (eval $ac_link) 2>conftest.er1
8604   ac_status=$?
8605   grep -v '^ *+' conftest.er1 >conftest.err
8606   rm -f conftest.er1
8607   cat conftest.err >&5
8608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609   (exit $ac_status); } &&
8610          { ac_try='test -z "$ac_c_werror_flag"
8611                          || test ! -s conftest.err'
8612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613   (eval $ac_try) 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; } &&
8617          { ac_try='test -s conftest$ac_exeext'
8618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619   (eval $ac_try) 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; }; then
8623   ac_cv_search_opendir="-l$ac_lib"
8624 break
8625 else
8626   echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 fi
8630 rm -f conftest.err conftest.$ac_objext \
8631       conftest$ac_exeext conftest.$ac_ext
8632   done
8633 fi
8634 LIBS=$ac_func_search_save_LIBS
8635 fi
8636 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8637 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8638 if test "$ac_cv_search_opendir" != no; then
8639   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8640
8641 fi
8642
8643 else
8644   echo "$as_me:$LINENO: checking for library containing opendir" >&5
8645 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
8646 if test "${ac_cv_search_opendir+set}" = set; then
8647   echo $ECHO_N "(cached) $ECHO_C" >&6
8648 else
8649   ac_func_search_save_LIBS=$LIBS
8650 ac_cv_search_opendir=no
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h.  */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h.  */
8657
8658 /* Override any gcc2 internal prototype to avoid an error.  */
8659 #ifdef __cplusplus
8660 extern "C"
8661 #endif
8662 /* We use char because int might match the return type of a gcc2
8663    builtin and then its argument prototype would still apply.  */
8664 char opendir ();
8665 int
8666 main ()
8667 {
8668 opendir ();
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext conftest$ac_exeext
8674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8675   (eval $ac_link) 2>conftest.er1
8676   ac_status=$?
8677   grep -v '^ *+' conftest.er1 >conftest.err
8678   rm -f conftest.er1
8679   cat conftest.err >&5
8680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681   (exit $ac_status); } &&
8682          { ac_try='test -z "$ac_c_werror_flag"
8683                          || test ! -s conftest.err'
8684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685   (eval $ac_try) 2>&5
8686   ac_status=$?
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); }; } &&
8689          { ac_try='test -s conftest$ac_exeext'
8690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691   (eval $ac_try) 2>&5
8692   ac_status=$?
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); }; }; then
8695   ac_cv_search_opendir="none required"
8696 else
8697   echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8699
8700 fi
8701 rm -f conftest.err conftest.$ac_objext \
8702       conftest$ac_exeext conftest.$ac_ext
8703 if test "$ac_cv_search_opendir" = no; then
8704   for ac_lib in x; do
8705     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8706     cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h.  */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h.  */
8712
8713 /* Override any gcc2 internal prototype to avoid an error.  */
8714 #ifdef __cplusplus
8715 extern "C"
8716 #endif
8717 /* We use char because int might match the return type of a gcc2
8718    builtin and then its argument prototype would still apply.  */
8719 char opendir ();
8720 int
8721 main ()
8722 {
8723 opendir ();
8724   ;
8725   return 0;
8726 }
8727 _ACEOF
8728 rm -f conftest.$ac_objext conftest$ac_exeext
8729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8730   (eval $ac_link) 2>conftest.er1
8731   ac_status=$?
8732   grep -v '^ *+' conftest.er1 >conftest.err
8733   rm -f conftest.er1
8734   cat conftest.err >&5
8735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736   (exit $ac_status); } &&
8737          { ac_try='test -z "$ac_c_werror_flag"
8738                          || test ! -s conftest.err'
8739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8740   (eval $ac_try) 2>&5
8741   ac_status=$?
8742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743   (exit $ac_status); }; } &&
8744          { ac_try='test -s conftest$ac_exeext'
8745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8746   (eval $ac_try) 2>&5
8747   ac_status=$?
8748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749   (exit $ac_status); }; }; then
8750   ac_cv_search_opendir="-l$ac_lib"
8751 break
8752 else
8753   echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8755
8756 fi
8757 rm -f conftest.err conftest.$ac_objext \
8758       conftest$ac_exeext conftest.$ac_ext
8759   done
8760 fi
8761 LIBS=$ac_func_search_save_LIBS
8762 fi
8763 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8764 echo "${ECHO_T}$ac_cv_search_opendir" >&6
8765 if test "$ac_cv_search_opendir" != no; then
8766   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
8767
8768 fi
8769
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
8781 do
8782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8783 echo "$as_me:$LINENO: checking for $ac_func" >&5
8784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8785 if eval "test \"\${$as_ac_var+set}\" = set"; then
8786   echo $ECHO_N "(cached) $ECHO_C" >&6
8787 else
8788   cat >conftest.$ac_ext <<_ACEOF
8789 /* confdefs.h.  */
8790 _ACEOF
8791 cat confdefs.h >>conftest.$ac_ext
8792 cat >>conftest.$ac_ext <<_ACEOF
8793 /* end confdefs.h.  */
8794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8796 #define $ac_func innocuous_$ac_func
8797
8798 /* System header to define __stub macros and hopefully few prototypes,
8799     which can conflict with char $ac_func (); below.
8800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8801     <limits.h> exists even on freestanding compilers.  */
8802
8803 #ifdef __STDC__
8804 # include <limits.h>
8805 #else
8806 # include <assert.h>
8807 #endif
8808
8809 #undef $ac_func
8810
8811 /* Override any gcc2 internal prototype to avoid an error.  */
8812 #ifdef __cplusplus
8813 extern "C"
8814 {
8815 #endif
8816 /* We use char because int might match the return type of a gcc2
8817    builtin and then its argument prototype would still apply.  */
8818 char $ac_func ();
8819 /* The GNU C library defines this for functions which it implements
8820     to always fail with ENOSYS.  Some functions are actually named
8821     something starting with __ and the normal name is an alias.  */
8822 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8823 choke me
8824 #else
8825 char (*f) () = $ac_func;
8826 #endif
8827 #ifdef __cplusplus
8828 }
8829 #endif
8830
8831 int
8832 main ()
8833 {
8834 return f != $ac_func;
8835   ;
8836   return 0;
8837 }
8838 _ACEOF
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841   (eval $ac_link) 2>conftest.er1
8842   ac_status=$?
8843   grep -v '^ *+' conftest.er1 >conftest.err
8844   rm -f conftest.er1
8845   cat conftest.err >&5
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); } &&
8848          { ac_try='test -z "$ac_c_werror_flag"
8849                          || test ! -s conftest.err'
8850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851   (eval $ac_try) 2>&5
8852   ac_status=$?
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); }; } &&
8855          { ac_try='test -s conftest$ac_exeext'
8856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857   (eval $ac_try) 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; }; then
8861   eval "$as_ac_var=yes"
8862 else
8863   echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866 eval "$as_ac_var=no"
8867 fi
8868 rm -f conftest.err conftest.$ac_objext \
8869       conftest$ac_exeext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8872 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8873 if test `eval echo '${'$as_ac_var'}'` = yes; then
8874   cat >>confdefs.h <<_ACEOF
8875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8876 _ACEOF
8877
8878 fi
8879 done
8880
8881
8882
8883 for ac_func in nanosleep nl_langinfo
8884 do
8885 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8886 echo "$as_me:$LINENO: checking for $ac_func" >&5
8887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8888 if eval "test \"\${$as_ac_var+set}\" = set"; then
8889   echo $ECHO_N "(cached) $ECHO_C" >&6
8890 else
8891   cat >conftest.$ac_ext <<_ACEOF
8892 /* confdefs.h.  */
8893 _ACEOF
8894 cat confdefs.h >>conftest.$ac_ext
8895 cat >>conftest.$ac_ext <<_ACEOF
8896 /* end confdefs.h.  */
8897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8899 #define $ac_func innocuous_$ac_func
8900
8901 /* System header to define __stub macros and hopefully few prototypes,
8902     which can conflict with char $ac_func (); below.
8903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8904     <limits.h> exists even on freestanding compilers.  */
8905
8906 #ifdef __STDC__
8907 # include <limits.h>
8908 #else
8909 # include <assert.h>
8910 #endif
8911
8912 #undef $ac_func
8913
8914 /* Override any gcc2 internal prototype to avoid an error.  */
8915 #ifdef __cplusplus
8916 extern "C"
8917 {
8918 #endif
8919 /* We use char because int might match the return type of a gcc2
8920    builtin and then its argument prototype would still apply.  */
8921 char $ac_func ();
8922 /* The GNU C library defines this for functions which it implements
8923     to always fail with ENOSYS.  Some functions are actually named
8924     something starting with __ and the normal name is an alias.  */
8925 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8926 choke me
8927 #else
8928 char (*f) () = $ac_func;
8929 #endif
8930 #ifdef __cplusplus
8931 }
8932 #endif
8933
8934 int
8935 main ()
8936 {
8937 return f != $ac_func;
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8944   (eval $ac_link) 2>conftest.er1
8945   ac_status=$?
8946   grep -v '^ *+' conftest.er1 >conftest.err
8947   rm -f conftest.er1
8948   cat conftest.err >&5
8949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950   (exit $ac_status); } &&
8951          { ac_try='test -z "$ac_c_werror_flag"
8952                          || test ! -s conftest.err'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; } &&
8958          { ac_try='test -s conftest$ac_exeext'
8959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8960   (eval $ac_try) 2>&5
8961   ac_status=$?
8962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963   (exit $ac_status); }; }; then
8964   eval "$as_ac_var=yes"
8965 else
8966   echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8968
8969 eval "$as_ac_var=no"
8970 fi
8971 rm -f conftest.err conftest.$ac_objext \
8972       conftest$ac_exeext conftest.$ac_ext
8973 fi
8974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8975 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8976 if test `eval echo '${'$as_ac_var'}'` = yes; then
8977   cat >>confdefs.h <<_ACEOF
8978 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8979 _ACEOF
8980
8981 fi
8982 done
8983
8984
8985 for ac_header in varargs.h
8986 do
8987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8989   echo "$as_me:$LINENO: checking for $ac_header" >&5
8990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8991 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8992   echo $ECHO_N "(cached) $ECHO_C" >&6
8993 fi
8994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8996 else
8997   # Is the header compilable?
8998 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8999 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9000 cat >conftest.$ac_ext <<_ACEOF
9001 /* confdefs.h.  */
9002 _ACEOF
9003 cat confdefs.h >>conftest.$ac_ext
9004 cat >>conftest.$ac_ext <<_ACEOF
9005 /* end confdefs.h.  */
9006 $ac_includes_default
9007 #include <$ac_header>
9008 _ACEOF
9009 rm -f conftest.$ac_objext
9010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9011   (eval $ac_compile) 2>conftest.er1
9012   ac_status=$?
9013   grep -v '^ *+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } &&
9018          { ac_try='test -z "$ac_c_werror_flag"
9019                          || test ! -s conftest.err'
9020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9021   (eval $ac_try) 2>&5
9022   ac_status=$?
9023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024   (exit $ac_status); }; } &&
9025          { ac_try='test -s conftest.$ac_objext'
9026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9027   (eval $ac_try) 2>&5
9028   ac_status=$?
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); }; }; then
9031   ac_header_compiler=yes
9032 else
9033   echo "$as_me: failed program was:" >&5
9034 sed 's/^/| /' conftest.$ac_ext >&5
9035
9036 ac_header_compiler=no
9037 fi
9038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9039 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9040 echo "${ECHO_T}$ac_header_compiler" >&6
9041
9042 # Is the header present?
9043 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9044 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9045 cat >conftest.$ac_ext <<_ACEOF
9046 /* confdefs.h.  */
9047 _ACEOF
9048 cat confdefs.h >>conftest.$ac_ext
9049 cat >>conftest.$ac_ext <<_ACEOF
9050 /* end confdefs.h.  */
9051 #include <$ac_header>
9052 _ACEOF
9053 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9054   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9055   ac_status=$?
9056   grep -v '^ *+' conftest.er1 >conftest.err
9057   rm -f conftest.er1
9058   cat conftest.err >&5
9059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060   (exit $ac_status); } >/dev/null; then
9061   if test -s conftest.err; then
9062     ac_cpp_err=$ac_c_preproc_warn_flag
9063     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9064   else
9065     ac_cpp_err=
9066   fi
9067 else
9068   ac_cpp_err=yes
9069 fi
9070 if test -z "$ac_cpp_err"; then
9071   ac_header_preproc=yes
9072 else
9073   echo "$as_me: failed program was:" >&5
9074 sed 's/^/| /' conftest.$ac_ext >&5
9075
9076   ac_header_preproc=no
9077 fi
9078 rm -f conftest.err conftest.$ac_ext
9079 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9080 echo "${ECHO_T}$ac_header_preproc" >&6
9081
9082 # So?  What about this header?
9083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9084   yes:no: )
9085     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9089     ac_header_preproc=yes
9090     ;;
9091   no:yes:* )
9092     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9094     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9095 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9096     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9098     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9099 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9100     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9102     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9104     (
9105       cat <<\_ASBOX
9106 ## ------------------------------------------ ##
9107 ## Report this to the AC_PACKAGE_NAME lists.  ##
9108 ## ------------------------------------------ ##
9109 _ASBOX
9110     ) |
9111       sed "s/^/$as_me: WARNING:     /" >&2
9112     ;;
9113 esac
9114 echo "$as_me:$LINENO: checking for $ac_header" >&5
9115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9116 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9117   echo $ECHO_N "(cached) $ECHO_C" >&6
9118 else
9119   eval "$as_ac_Header=\$ac_header_preproc"
9120 fi
9121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9123
9124 fi
9125 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9126   cat >>confdefs.h <<_ACEOF
9127 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9128 _ACEOF
9129
9130 fi
9131
9132 done
9133
9134
9135 # End of readline/conio stuff
9136 # -----------------------------------------------------------------------
9137
9138 # -----------------------------------------------------------------------
9139 #  Check for Python support
9140 #
9141 echo "$as_me:$LINENO: checking for Python support" >&5
9142 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
9143
9144 # Check whether --with-python or --without-python was given.
9145 if test "${with_python+set}" = set; then
9146   withval="$with_python"
9147
9148   PYTHON_INCDIR=
9149   PYTHON_LIBS=
9150   if test "$withval" != "no"; then
9151      if test "$withval" = "yes"; then
9152         for python_root in /usr /usr/local; do
9153           if test -f $python_root/include/python2.2/Python.h; then
9154              PYTHON_INCDIR=-I$python_root/include/python2.2
9155              PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
9156              break
9157           elif test -f $python_root/include/python2.3/Python.h; then
9158              PYTHON_INCDIR=-I$python_root/include/python2.3
9159              PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
9160              break
9161           elif test -f $python_root/include/python2.4/Python.h; then
9162              PYTHON_INCDIR=-I$python_root/include/python2.4
9163              PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
9164              break
9165           fi
9166         done
9167         if test x$PYTHON_INCDIR = x; then
9168           if test -f $prefix/include/Python.h; then
9169              PYTHON_INCDIR=-I$prefix/include
9170              PYTHON_LIBS="-L$prefix/lib/config -lpython"
9171           else
9172            echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6
9174            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
9175 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
9176    { (exit 1); exit 1; }; }
9177           fi
9178         fi
9179      else
9180         if test -f $withval/Python.h; then
9181            PYTHON_INCDIR=-I$withval
9182            PYTHON_LIBS="-L$withval/config -lpython"
9183         elif test -f $withval/include/Python.h; then
9184            PYTHON_INCDIR=-I$withval/include
9185            PYTHON_LIBS="-L$withval/lib/config -lpython"
9186         elif test -f $withval/include/python/Python.h; then
9187            PYTHON_INCDIR=-I$withval/include/python
9188            PYTHON_LIBS="-L$withval/lib/python/config -lpython"
9189         else
9190            echo "$as_me:$LINENO: result: no" >&5
9191 echo "${ECHO_T}no" >&6
9192            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
9193 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
9194    { (exit 1); exit 1; }; }
9195         fi
9196      fi
9197      cat >>confdefs.h <<\_ACEOF
9198 #define HAVE_PYTHON 1
9199 _ACEOF
9200
9201      echo "$as_me:$LINENO: result: yes" >&5
9202 echo "${ECHO_T}yes" >&6
9203      support_python=yes
9204      { echo "$as_me:$LINENO: checking for more Python libs" >&5
9205 echo "$as_me: checking for more Python libs" >&6;}
9206      saved_LIBS="$LIBS"; LIBS=
9207      echo "$as_me:$LINENO: checking for library containing shm_open" >&5
9208 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
9209 if test "${ac_cv_search_shm_open+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   ac_func_search_save_LIBS=$LIBS
9213 ac_cv_search_shm_open=no
9214 cat >conftest.$ac_ext <<_ACEOF
9215 /* confdefs.h.  */
9216 _ACEOF
9217 cat confdefs.h >>conftest.$ac_ext
9218 cat >>conftest.$ac_ext <<_ACEOF
9219 /* end confdefs.h.  */
9220
9221 /* Override any gcc2 internal prototype to avoid an error.  */
9222 #ifdef __cplusplus
9223 extern "C"
9224 #endif
9225 /* We use char because int might match the return type of a gcc2
9226    builtin and then its argument prototype would still apply.  */
9227 char shm_open ();
9228 int
9229 main ()
9230 {
9231 shm_open ();
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext conftest$ac_exeext
9237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9238   (eval $ac_link) 2>conftest.er1
9239   ac_status=$?
9240   grep -v '^ *+' conftest.er1 >conftest.err
9241   rm -f conftest.er1
9242   cat conftest.err >&5
9243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9244   (exit $ac_status); } &&
9245          { ac_try='test -z "$ac_c_werror_flag"
9246                          || test ! -s conftest.err'
9247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248   (eval $ac_try) 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest$ac_exeext'
9253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9254   (eval $ac_try) 2>&5
9255   ac_status=$?
9256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257   (exit $ac_status); }; }; then
9258   ac_cv_search_shm_open="none required"
9259 else
9260   echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9262
9263 fi
9264 rm -f conftest.err conftest.$ac_objext \
9265       conftest$ac_exeext conftest.$ac_ext
9266 if test "$ac_cv_search_shm_open" = no; then
9267   for ac_lib in rt; do
9268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9269     cat >conftest.$ac_ext <<_ACEOF
9270 /* confdefs.h.  */
9271 _ACEOF
9272 cat confdefs.h >>conftest.$ac_ext
9273 cat >>conftest.$ac_ext <<_ACEOF
9274 /* end confdefs.h.  */
9275
9276 /* Override any gcc2 internal prototype to avoid an error.  */
9277 #ifdef __cplusplus
9278 extern "C"
9279 #endif
9280 /* We use char because int might match the return type of a gcc2
9281    builtin and then its argument prototype would still apply.  */
9282 char shm_open ();
9283 int
9284 main ()
9285 {
9286 shm_open ();
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 rm -f conftest.$ac_objext conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293   (eval $ac_link) 2>conftest.er1
9294   ac_status=$?
9295   grep -v '^ *+' conftest.er1 >conftest.err
9296   rm -f conftest.er1
9297   cat conftest.err >&5
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); } &&
9300          { ac_try='test -z "$ac_c_werror_flag"
9301                          || test ! -s conftest.err'
9302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303   (eval $ac_try) 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; } &&
9307          { ac_try='test -s conftest$ac_exeext'
9308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309   (eval $ac_try) 2>&5
9310   ac_status=$?
9311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312   (exit $ac_status); }; }; then
9313   ac_cv_search_shm_open="-l$ac_lib"
9314 break
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 fi
9320 rm -f conftest.err conftest.$ac_objext \
9321       conftest$ac_exeext conftest.$ac_ext
9322   done
9323 fi
9324 LIBS=$ac_func_search_save_LIBS
9325 fi
9326 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
9327 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
9328 if test "$ac_cv_search_shm_open" != no; then
9329   test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
9330
9331 fi
9332
9333
9334 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
9335 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
9336 if test "${ac_cv_lib_util_openpty+set}" = set; then
9337   echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339   ac_check_lib_save_LIBS=$LIBS
9340 LIBS="-lutil  $LIBS"
9341 cat >conftest.$ac_ext <<_ACEOF
9342 /* confdefs.h.  */
9343 _ACEOF
9344 cat confdefs.h >>conftest.$ac_ext
9345 cat >>conftest.$ac_ext <<_ACEOF
9346 /* end confdefs.h.  */
9347
9348 /* Override any gcc2 internal prototype to avoid an error.  */
9349 #ifdef __cplusplus
9350 extern "C"
9351 #endif
9352 /* We use char because int might match the return type of a gcc2
9353    builtin and then its argument prototype would still apply.  */
9354 char openpty ();
9355 int
9356 main ()
9357 {
9358 openpty ();
9359   ;
9360   return 0;
9361 }
9362 _ACEOF
9363 rm -f conftest.$ac_objext conftest$ac_exeext
9364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9365   (eval $ac_link) 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } &&
9372          { ac_try='test -z "$ac_c_werror_flag"
9373                          || test ! -s conftest.err'
9374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375   (eval $ac_try) 2>&5
9376   ac_status=$?
9377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378   (exit $ac_status); }; } &&
9379          { ac_try='test -s conftest$ac_exeext'
9380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9381   (eval $ac_try) 2>&5
9382   ac_status=$?
9383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384   (exit $ac_status); }; }; then
9385   ac_cv_lib_util_openpty=yes
9386 else
9387   echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390 ac_cv_lib_util_openpty=no
9391 fi
9392 rm -f conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext conftest.$ac_ext
9394 LIBS=$ac_check_lib_save_LIBS
9395 fi
9396 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
9397 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
9398 if test $ac_cv_lib_util_openpty = yes; then
9399   cat >>confdefs.h <<_ACEOF
9400 #define HAVE_LIBUTIL 1
9401 _ACEOF
9402
9403   LIBS="-lutil $LIBS"
9404
9405 fi
9406
9407      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
9408      LIBS="$saved_LIBS"
9409   else
9410      echo "$as_me:$LINENO: result: no" >&5
9411 echo "${ECHO_T}no" >&6
9412   fi
9413
9414 else
9415
9416   echo "$as_me:$LINENO: result: no" >&5
9417 echo "${ECHO_T}no" >&6
9418
9419 fi;
9420
9421
9422
9423
9424 #
9425 # Find where sockets are (especially for Solaris)
9426 # Do this before the TCP Wrappers test since tcp wrappers
9427 # uses the socket library and some linkers are stupid.
9428 #
9429 echo "$as_me:$LINENO: checking for socket" >&5
9430 echo $ECHO_N "checking for socket... $ECHO_C" >&6
9431 if test "${ac_cv_func_socket+set}" = set; then
9432   echo $ECHO_N "(cached) $ECHO_C" >&6
9433 else
9434   cat >conftest.$ac_ext <<_ACEOF
9435 /* confdefs.h.  */
9436 _ACEOF
9437 cat confdefs.h >>conftest.$ac_ext
9438 cat >>conftest.$ac_ext <<_ACEOF
9439 /* end confdefs.h.  */
9440 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
9441    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9442 #define socket innocuous_socket
9443
9444 /* System header to define __stub macros and hopefully few prototypes,
9445     which can conflict with char socket (); below.
9446     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447     <limits.h> exists even on freestanding compilers.  */
9448
9449 #ifdef __STDC__
9450 # include <limits.h>
9451 #else
9452 # include <assert.h>
9453 #endif
9454
9455 #undef socket
9456
9457 /* Override any gcc2 internal prototype to avoid an error.  */
9458 #ifdef __cplusplus
9459 extern "C"
9460 {
9461 #endif
9462 /* We use char because int might match the return type of a gcc2
9463    builtin and then its argument prototype would still apply.  */
9464 char socket ();
9465 /* The GNU C library defines this for functions which it implements
9466     to always fail with ENOSYS.  Some functions are actually named
9467     something starting with __ and the normal name is an alias.  */
9468 #if defined (__stub_socket) || defined (__stub___socket)
9469 choke me
9470 #else
9471 char (*f) () = socket;
9472 #endif
9473 #ifdef __cplusplus
9474 }
9475 #endif
9476
9477 int
9478 main ()
9479 {
9480 return f != socket;
9481   ;
9482   return 0;
9483 }
9484 _ACEOF
9485 rm -f conftest.$ac_objext conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487   (eval $ac_link) 2>conftest.er1
9488   ac_status=$?
9489   grep -v '^ *+' conftest.er1 >conftest.err
9490   rm -f conftest.er1
9491   cat conftest.err >&5
9492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9493   (exit $ac_status); } &&
9494          { ac_try='test -z "$ac_c_werror_flag"
9495                          || test ! -s conftest.err'
9496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497   (eval $ac_try) 2>&5
9498   ac_status=$?
9499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500   (exit $ac_status); }; } &&
9501          { ac_try='test -s conftest$ac_exeext'
9502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9503   (eval $ac_try) 2>&5
9504   ac_status=$?
9505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506   (exit $ac_status); }; }; then
9507   ac_cv_func_socket=yes
9508 else
9509   echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9511
9512 ac_cv_func_socket=no
9513 fi
9514 rm -f conftest.err conftest.$ac_objext \
9515       conftest$ac_exeext conftest.$ac_ext
9516 fi
9517 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
9518 echo "${ECHO_T}$ac_cv_func_socket" >&6
9519 if test $ac_cv_func_socket = yes; then
9520   echo "$as_me:$LINENO: result: using libc's socket" >&5
9521 echo "${ECHO_T}using libc's socket" >&6
9522 else
9523
9524 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
9525 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
9526 if test "${ac_cv_lib_xnet_socket+set}" = set; then
9527   echo $ECHO_N "(cached) $ECHO_C" >&6
9528 else
9529   ac_check_lib_save_LIBS=$LIBS
9530 LIBS="-lxnet  $LIBS"
9531 cat >conftest.$ac_ext <<_ACEOF
9532 /* confdefs.h.  */
9533 _ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h.  */
9537
9538 /* Override any gcc2 internal prototype to avoid an error.  */
9539 #ifdef __cplusplus
9540 extern "C"
9541 #endif
9542 /* We use char because int might match the return type of a gcc2
9543    builtin and then its argument prototype would still apply.  */
9544 char socket ();
9545 int
9546 main ()
9547 {
9548 socket ();
9549   ;
9550   return 0;
9551 }
9552 _ACEOF
9553 rm -f conftest.$ac_objext conftest$ac_exeext
9554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9555   (eval $ac_link) 2>conftest.er1
9556   ac_status=$?
9557   grep -v '^ *+' conftest.er1 >conftest.err
9558   rm -f conftest.er1
9559   cat conftest.err >&5
9560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561   (exit $ac_status); } &&
9562          { ac_try='test -z "$ac_c_werror_flag"
9563                          || test ! -s conftest.err'
9564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565   (eval $ac_try) 2>&5
9566   ac_status=$?
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); }; } &&
9569          { ac_try='test -s conftest$ac_exeext'
9570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9571   (eval $ac_try) 2>&5
9572   ac_status=$?
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); }; }; then
9575   ac_cv_lib_xnet_socket=yes
9576 else
9577   echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580 ac_cv_lib_xnet_socket=no
9581 fi
9582 rm -f conftest.err conftest.$ac_objext \
9583       conftest$ac_exeext conftest.$ac_ext
9584 LIBS=$ac_check_lib_save_LIBS
9585 fi
9586 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
9587 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
9588 if test $ac_cv_lib_xnet_socket = yes; then
9589   cat >>confdefs.h <<_ACEOF
9590 #define HAVE_LIBXNET 1
9591 _ACEOF
9592
9593   LIBS="-lxnet $LIBS"
9594
9595 fi
9596
9597
9598 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
9599 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
9600 if test "${ac_cv_lib_socket_socket+set}" = set; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   ac_check_lib_save_LIBS=$LIBS
9604 LIBS="-lsocket  $LIBS"
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611
9612 /* Override any gcc2 internal prototype to avoid an error.  */
9613 #ifdef __cplusplus
9614 extern "C"
9615 #endif
9616 /* We use char because int might match the return type of a gcc2
9617    builtin and then its argument prototype would still apply.  */
9618 char socket ();
9619 int
9620 main ()
9621 {
9622 socket ();
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext conftest$ac_exeext
9628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9629   (eval $ac_link) 2>conftest.er1
9630   ac_status=$?
9631   grep -v '^ *+' conftest.er1 >conftest.err
9632   rm -f conftest.er1
9633   cat conftest.err >&5
9634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635   (exit $ac_status); } &&
9636          { ac_try='test -z "$ac_c_werror_flag"
9637                          || test ! -s conftest.err'
9638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9639   (eval $ac_try) 2>&5
9640   ac_status=$?
9641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642   (exit $ac_status); }; } &&
9643          { ac_try='test -s conftest$ac_exeext'
9644   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9645   (eval $ac_try) 2>&5
9646   ac_status=$?
9647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648   (exit $ac_status); }; }; then
9649   ac_cv_lib_socket_socket=yes
9650 else
9651   echo "$as_me: failed program was:" >&5
9652 sed 's/^/| /' conftest.$ac_ext >&5
9653
9654 ac_cv_lib_socket_socket=no
9655 fi
9656 rm -f conftest.err conftest.$ac_objext \
9657       conftest$ac_exeext conftest.$ac_ext
9658 LIBS=$ac_check_lib_save_LIBS
9659 fi
9660 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
9661 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
9662 if test $ac_cv_lib_socket_socket = yes; then
9663   cat >>confdefs.h <<_ACEOF
9664 #define HAVE_LIBSOCKET 1
9665 _ACEOF
9666
9667   LIBS="-lsocket $LIBS"
9668
9669 fi
9670
9671
9672 echo "$as_me:$LINENO: checking for socket in -linet" >&5
9673 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
9674 if test "${ac_cv_lib_inet_socket+set}" = set; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   ac_check_lib_save_LIBS=$LIBS
9678 LIBS="-linet  $LIBS"
9679 cat >conftest.$ac_ext <<_ACEOF
9680 /* confdefs.h.  */
9681 _ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h.  */
9685
9686 /* Override any gcc2 internal prototype to avoid an error.  */
9687 #ifdef __cplusplus
9688 extern "C"
9689 #endif
9690 /* We use char because int might match the return type of a gcc2
9691    builtin and then its argument prototype would still apply.  */
9692 char socket ();
9693 int
9694 main ()
9695 {
9696 socket ();
9697   ;
9698   return 0;
9699 }
9700 _ACEOF
9701 rm -f conftest.$ac_objext conftest$ac_exeext
9702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9703   (eval $ac_link) 2>conftest.er1
9704   ac_status=$?
9705   grep -v '^ *+' conftest.er1 >conftest.err
9706   rm -f conftest.er1
9707   cat conftest.err >&5
9708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709   (exit $ac_status); } &&
9710          { ac_try='test -z "$ac_c_werror_flag"
9711                          || test ! -s conftest.err'
9712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713   (eval $ac_try) 2>&5
9714   ac_status=$?
9715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716   (exit $ac_status); }; } &&
9717          { ac_try='test -s conftest$ac_exeext'
9718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719   (eval $ac_try) 2>&5
9720   ac_status=$?
9721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722   (exit $ac_status); }; }; then
9723   ac_cv_lib_inet_socket=yes
9724 else
9725   echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9727
9728 ac_cv_lib_inet_socket=no
9729 fi
9730 rm -f conftest.err conftest.$ac_objext \
9731       conftest$ac_exeext conftest.$ac_ext
9732 LIBS=$ac_check_lib_save_LIBS
9733 fi
9734 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
9735 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
9736 if test $ac_cv_lib_inet_socket = yes; then
9737   cat >>confdefs.h <<_ACEOF
9738 #define HAVE_LIBINET 1
9739 _ACEOF
9740
9741   LIBS="-linet $LIBS"
9742
9743 fi
9744
9745 fi
9746
9747
9748
9749 # -----------------------------------------------------------
9750 # Check whether user wants TCP wrappers support (default off)
9751 # -----------------------------------------------------------
9752 TCPW_MSG="no"
9753
9754 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
9755 if test "${with_tcp_wrappers+set}" = set; then
9756   withval="$with_tcp_wrappers"
9757
9758     if test "x$withval" != "xno" ; then
9759        saved_LIBS="$LIBS"
9760        LIBS="$saved_LIBS -lwrap"
9761        echo "$as_me:$LINENO: checking for libwrap" >&5
9762 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
9763        cat >conftest.$ac_ext <<_ACEOF
9764 /* confdefs.h.  */
9765 _ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h.  */
9769  #include <tcpd.h>
9770              int deny_severity = 0;
9771              int allow_severity = 0;
9772              struct request_info *req;
9773 int
9774 main ()
9775 {
9776  hosts_access(req);
9777   ;
9778   return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest.$ac_objext conftest$ac_exeext
9782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783   (eval $ac_link) 2>conftest.er1
9784   ac_status=$?
9785   grep -v '^ *+' conftest.er1 >conftest.err
9786   rm -f conftest.er1
9787   cat conftest.err >&5
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -z "$ac_c_werror_flag"
9791                          || test ! -s conftest.err'
9792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793   (eval $ac_try) 2>&5
9794   ac_status=$?
9795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796   (exit $ac_status); }; } &&
9797          { ac_try='test -s conftest$ac_exeext'
9798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799   (eval $ac_try) 2>&5
9800   ac_status=$?
9801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802   (exit $ac_status); }; }; then
9803
9804             echo "$as_me:$LINENO: result: yes" >&5
9805 echo "${ECHO_T}yes" >&6
9806             cat >>confdefs.h <<\_ACEOF
9807 #define HAVE_LIBWRAP 1
9808 _ACEOF
9809
9810             TCPW_MSG="yes"
9811
9812 else
9813   echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9815
9816
9817             LIBS="$saved_LIBS -lwrap -lnsl"
9818             cat >conftest.$ac_ext <<_ACEOF
9819 /* confdefs.h.  */
9820 _ACEOF
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h.  */
9824  #include <tcpd.h>
9825                  int deny_severity = 0;
9826                  int allow_severity = 0;
9827                  struct request_info *req;
9828 int
9829 main ()
9830 {
9831  hosts_access(req);
9832   ;
9833   return 0;
9834 }
9835 _ACEOF
9836 rm -f conftest.$ac_objext conftest$ac_exeext
9837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9838   (eval $ac_link) 2>conftest.er1
9839   ac_status=$?
9840   grep -v '^ *+' conftest.er1 >conftest.err
9841   rm -f conftest.er1
9842   cat conftest.err >&5
9843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844   (exit $ac_status); } &&
9845          { ac_try='test -z "$ac_c_werror_flag"
9846                          || test ! -s conftest.err'
9847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848   (eval $ac_try) 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; } &&
9852          { ac_try='test -s conftest$ac_exeext'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; }; then
9858
9859                  echo "$as_me:$LINENO: result: yes" >&5
9860 echo "${ECHO_T}yes" >&6
9861                  cat >>confdefs.h <<\_ACEOF
9862 #define HAVE_LIBWRAP 1
9863 _ACEOF
9864
9865                  TCPW_MSG="yes"
9866
9867 else
9868   echo "$as_me: failed program was:" >&5
9869 sed 's/^/| /' conftest.$ac_ext >&5
9870
9871 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
9872 echo "$as_me: error: *** libwrap missing" >&2;}
9873    { (exit 1); exit 1; }; }
9874
9875 fi
9876 rm -f conftest.err conftest.$ac_objext \
9877       conftest$ac_exeext conftest.$ac_ext
9878
9879 fi
9880 rm -f conftest.err conftest.$ac_objext \
9881       conftest$ac_exeext conftest.$ac_ext
9882     fi
9883
9884
9885 fi;
9886
9887 # -----------------------------------------------------------
9888 # Check whether OpenSSL is available
9889 # -----------------------------------------------------------
9890 echo "$as_me:$LINENO: checking for OpenSSL" >&5
9891 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
9892
9893 # Check whether --with-openssl or --without-openssl was given.
9894 if test "${with_openssl+set}" = set; then
9895   withval="$with_openssl"
9896   with_openssl_directory=${withval}
9897 fi;
9898
9899 if test "x$with_openssl_directory" != "x"; then
9900         OPENSSL_LIBS="-lssl -lcrypto"
9901         OPENSSL_INC=""
9902
9903         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
9904                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
9905                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
9906         fi
9907
9908         saved_LIBS="$LIBS"
9909         saved_CFLAGS="$CFLAGS"
9910         LIBS="$saved_LIBS $OPENSSL_LIBS"
9911         CFLAGS="$saved_CFLAGS $OPENSSL_INC"
9912
9913         cat >conftest.$ac_ext <<_ACEOF
9914 /* confdefs.h.  */
9915 _ACEOF
9916 cat confdefs.h >>conftest.$ac_ext
9917 cat >>conftest.$ac_ext <<_ACEOF
9918 /* end confdefs.h.  */
9919  #include <openssl/ssl.h>
9920 int
9921 main ()
9922 {
9923  CRYPTO_set_id_callback(NULL);
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930   (eval $ac_link) 2>conftest.er1
9931   ac_status=$?
9932   grep -v '^ *+' conftest.er1 >conftest.err
9933   rm -f conftest.er1
9934   cat conftest.err >&5
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); } &&
9937          { ac_try='test -z "$ac_c_werror_flag"
9938                          || test ! -s conftest.err'
9939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940   (eval $ac_try) 2>&5
9941   ac_status=$?
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; } &&
9944          { ac_try='test -s conftest$ac_exeext'
9945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9946   (eval $ac_try) 2>&5
9947   ac_status=$?
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); }; }; then
9950    support_tls="yes"
9951 else
9952   echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955  support_tls="no"
9956
9957 fi
9958 rm -f conftest.err conftest.$ac_objext \
9959       conftest$ac_exeext conftest.$ac_ext
9960
9961         LIBS="$saved_LIBS"
9962         CFLAGS="$saved_CFLAGS"
9963
9964         if test "$support_tls" = "yes"; then
9965
9966 cat >>confdefs.h <<\_ACEOF
9967 #define HAVE_OPENSSL 1
9968 _ACEOF
9969
9970
9971 cat >>confdefs.h <<\_ACEOF
9972 #define HAVE_TLS 1
9973 _ACEOF
9974
9975         fi
9976 else
9977         support_tls="no"
9978         OPENSSL_LIBS=""
9979         OPENSSL_INC=""
9980 fi
9981
9982 echo "$as_me:$LINENO: result: $support_tls" >&5
9983 echo "${ECHO_T}$support_tls" >&6
9984
9985
9986
9987
9988 # -----------------------------------------------------------
9989 # Python and OpenSSL are using dlopen
9990 # -----------------------------------------------------------
9991
9992 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
9993    echo "$as_me:$LINENO: checking for library containing dlopen" >&5
9994 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
9995 if test "${ac_cv_search_dlopen+set}" = set; then
9996   echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998   ac_func_search_save_LIBS=$LIBS
9999 ac_cv_search_dlopen=no
10000 cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006
10007 /* Override any gcc2 internal prototype to avoid an error.  */
10008 #ifdef __cplusplus
10009 extern "C"
10010 #endif
10011 /* We use char because int might match the return type of a gcc2
10012    builtin and then its argument prototype would still apply.  */
10013 char dlopen ();
10014 int
10015 main ()
10016 {
10017 dlopen ();
10018   ;
10019   return 0;
10020 }
10021 _ACEOF
10022 rm -f conftest.$ac_objext conftest$ac_exeext
10023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10024   (eval $ac_link) 2>conftest.er1
10025   ac_status=$?
10026   grep -v '^ *+' conftest.er1 >conftest.err
10027   rm -f conftest.er1
10028   cat conftest.err >&5
10029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030   (exit $ac_status); } &&
10031          { ac_try='test -z "$ac_c_werror_flag"
10032                          || test ! -s conftest.err'
10033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10034   (eval $ac_try) 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10040   (eval $ac_try) 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   ac_cv_search_dlopen="none required"
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049 fi
10050 rm -f conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 if test "$ac_cv_search_dlopen" = no; then
10053   for ac_lib in dl; do
10054     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
10055     cat >conftest.$ac_ext <<_ACEOF
10056 /* confdefs.h.  */
10057 _ACEOF
10058 cat confdefs.h >>conftest.$ac_ext
10059 cat >>conftest.$ac_ext <<_ACEOF
10060 /* end confdefs.h.  */
10061
10062 /* Override any gcc2 internal prototype to avoid an error.  */
10063 #ifdef __cplusplus
10064 extern "C"
10065 #endif
10066 /* We use char because int might match the return type of a gcc2
10067    builtin and then its argument prototype would still apply.  */
10068 char dlopen ();
10069 int
10070 main ()
10071 {
10072 dlopen ();
10073   ;
10074   return 0;
10075 }
10076 _ACEOF
10077 rm -f conftest.$ac_objext conftest$ac_exeext
10078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10079   (eval $ac_link) 2>conftest.er1
10080   ac_status=$?
10081   grep -v '^ *+' conftest.er1 >conftest.err
10082   rm -f conftest.er1
10083   cat conftest.err >&5
10084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085   (exit $ac_status); } &&
10086          { ac_try='test -z "$ac_c_werror_flag"
10087                          || test ! -s conftest.err'
10088   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10089   (eval $ac_try) 2>&5
10090   ac_status=$?
10091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092   (exit $ac_status); }; } &&
10093          { ac_try='test -s conftest$ac_exeext'
10094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10095   (eval $ac_try) 2>&5
10096   ac_status=$?
10097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098   (exit $ac_status); }; }; then
10099   ac_cv_search_dlopen="-l$ac_lib"
10100 break
10101 else
10102   echo "$as_me: failed program was:" >&5
10103 sed 's/^/| /' conftest.$ac_ext >&5
10104
10105 fi
10106 rm -f conftest.err conftest.$ac_objext \
10107       conftest$ac_exeext conftest.$ac_ext
10108   done
10109 fi
10110 LIBS=$ac_func_search_save_LIBS
10111 fi
10112 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
10113 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
10114 if test "$ac_cv_search_dlopen" != no; then
10115   test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
10116
10117 fi
10118
10119 fi
10120
10121 # ------------------------------------------
10122 # Where to place working dir
10123 # ------------------------------------------
10124 working_dir=`eval echo ${prefix}/var/bacula/working`
10125
10126 # Check whether --with-working-dir or --without-working-dir was given.
10127 if test "${with_working_dir+set}" = set; then
10128   withval="$with_working_dir"
10129
10130        if test "x$withval" != "xno" ; then
10131               working_dir=$withval
10132        fi
10133
10134
10135 fi;
10136
10137
10138
10139
10140 # ------------------------------------------
10141 # Where to place scriptdir (script files)
10142 # ------------------------------------------
10143 scriptdir=`eval echo ${sysconfdir}`
10144
10145 # Check whether --with-scriptdir or --without-scriptdir was given.
10146 if test "${with_scriptdir+set}" = set; then
10147   withval="$with_scriptdir"
10148
10149        if test "x$withval" != "xno" ; then
10150               scriptdir=$withval
10151        fi
10152
10153
10154 fi;
10155
10156
10157
10158
10159 # ------------------------------------------
10160 # Where to send dump email
10161 # ------------------------------------------
10162 dump_email=root@localhost
10163
10164 # Check whether --with-dump-email or --without-dump-email was given.
10165 if test "${with_dump_email+set}" = set; then
10166   withval="$with_dump_email"
10167
10168        if test "x$withval" != "xno" ; then
10169               dump_email=$withval
10170        fi
10171
10172
10173 fi;
10174
10175
10176
10177 # ------------------------------------------
10178 # Where to send job email
10179 # ------------------------------------------
10180 job_email=root@localhost
10181
10182 # Check whether --with-job-email or --without-job-email was given.
10183 if test "${with_job_email+set}" = set; then
10184   withval="$with_job_email"
10185
10186        if test "x$withval" != "xno" ; then
10187               job_email=$withval
10188        fi
10189
10190
10191 fi;
10192
10193
10194
10195 # ------------------------------------------
10196 # Where to find smtp host
10197 # ------------------------------------------
10198 smtp_host=localhost
10199
10200 # Check whether --with-smtp_host or --without-smtp_host was given.
10201 if test "${with_smtp_host+set}" = set; then
10202   withval="$with_smtp_host"
10203
10204        if test "x$withval" != "xno" ; then
10205               smtp_host=$withval
10206        fi
10207
10208
10209 fi;
10210
10211
10212
10213
10214 # ------------------------------------
10215 # Where to place pid files
10216 # ------------------------------------
10217 piddir=/var/run
10218
10219 # Check whether --with-pid-dir or --without-pid-dir was given.
10220 if test "${with_pid_dir+set}" = set; then
10221   withval="$with_pid_dir"
10222
10223         if test "x$withval" != "xno" ; then
10224             piddir=$withval
10225         fi
10226
10227
10228 fi;
10229
10230 cat >>confdefs.h <<_ACEOF
10231 #define _PATH_BACULA_PIDDIR "$piddir"
10232 _ACEOF
10233
10234
10235
10236
10237 # ------------------------------------
10238 # Where to place subsys "lock file"
10239 # ------------------------------------
10240 subsysdir=/var/run/subsys
10241
10242 # Check whether --with-subsys-dir or --without-subsys-dir was given.
10243 if test "${with_subsys_dir+set}" = set; then
10244   withval="$with_subsys_dir"
10245
10246         if test "x$withval" != "xno" ; then
10247             subsysdir=$withval
10248         fi
10249
10250
10251 fi;
10252
10253
10254
10255
10256
10257 # ------------------------------------
10258 # Where to start assigning ports
10259 # ------------------------------------
10260 baseport=9101
10261
10262 # Check whether --with-baseport or --without-baseport was given.
10263 if test "${with_baseport+set}" = set; then
10264   withval="$with_baseport"
10265
10266         if test "x$withval" != "xno" ; then
10267              baseport=$withval
10268         fi
10269
10270
10271 fi;
10272
10273
10274 dir_port=`expr $baseport`
10275 fd_port=`expr $baseport + 1`
10276 sd_port=`expr $fd_port + 1`
10277
10278
10279
10280
10281
10282
10283 # ------------------------------------------
10284 # Generate passwords
10285 # ------------------------------------------
10286 dir_password=
10287
10288 # Check whether --with-dir-password or --without-dir-password was given.
10289 if test "${with_dir_password+set}" = set; then
10290   withval="$with_dir_password"
10291
10292        if test "x$withval" != "xno" ; then
10293            dir_password=$withval
10294        fi
10295
10296
10297 fi;
10298
10299 if test "x$dir_password" = "x" ; then
10300    if test "x$OPENSSL" = "xnone" ; then
10301       key=`autoconf/randpass 33`
10302    else
10303       key=`openssl rand -base64 33`
10304    fi
10305    dir_password=$key
10306 fi
10307
10308 fd_password=
10309
10310 # Check whether --with-fd-password or --without-fd-password was given.
10311 if test "${with_fd_password+set}" = set; then
10312   withval="$with_fd_password"
10313
10314        if test "x$withval" != "xno" ; then
10315            fd_password=$withval
10316        fi
10317
10318
10319 fi;
10320
10321 if test "x$fd_password" = "x" ; then
10322    if test "x$OPENSSL" = "xnone" ; then
10323       key=`autoconf/randpass 37`
10324    else
10325       key=`openssl rand -base64 33`
10326    fi
10327    fd_password=$key
10328 fi
10329
10330 sd_password=
10331
10332 # Check whether --with-sd-password or --without-sd-password was given.
10333 if test "${with_sd_password+set}" = set; then
10334   withval="$with_sd_password"
10335
10336        if test "x$withval" != "xno" ; then
10337            sd_password=$withval
10338        fi
10339
10340
10341 fi;
10342
10343 if test "x$sd_password" = "x" ; then
10344    if test "x$OPENSSL" = "xnone" ; then
10345       key=`autoconf/randpass 41`
10346    else
10347       key=`openssl rand -base64 33`
10348    fi
10349    sd_password=$key
10350 fi
10351
10352 mon_dir_password=
10353
10354 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
10355 if test "${with_mon_dir_password+set}" = set; then
10356   withval="$with_mon_dir_password"
10357
10358        if test "x$withval" != "xno" ; then
10359            mon_dir_password=$withval
10360        fi
10361
10362
10363 fi;
10364
10365 if test "x$mon_dir_password" = "x" ; then
10366    if test "x$OPENSSL" = "xnone" ; then
10367       key=`autoconf/randpass 33`
10368    else
10369       key=`openssl rand -base64 33`
10370    fi
10371    mon_dir_password=$key
10372 fi
10373
10374 mon_fd_password=
10375
10376 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
10377 if test "${with_mon_fd_password+set}" = set; then
10378   withval="$with_mon_fd_password"
10379
10380        if test "x$withval" != "xno" ; then
10381            mon_fd_password=$withval
10382        fi
10383
10384
10385 fi;
10386
10387 if test "x$mon_fd_password" = "x" ; then
10388    if test "x$OPENSSL" = "xnone" ; then
10389       key=`autoconf/randpass 37`
10390    else
10391       key=`openssl rand -base64 33`
10392    fi
10393    mon_fd_password=$key
10394 fi
10395
10396 mon_sd_password=
10397
10398 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
10399 if test "${with_mon_sd_password+set}" = set; then
10400   withval="$with_mon_sd_password"
10401
10402        if test "x$withval" != "xno" ; then
10403            mon_sd_password=$withval
10404        fi
10405
10406
10407 fi;
10408
10409 if test "x$mon_sd_password" = "x" ; then
10410    if test "x$OPENSSL" = "xnone" ; then
10411       key=`autoconf/randpass 41`
10412    else
10413       key=`openssl rand -base64 33`
10414    fi
10415    mon_sd_password=$key
10416 fi
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426 #
10427 # Handle users and groups for each daemon
10428 #
10429 dir_user=
10430
10431 # Check whether --with-dir_user or --without-dir_user was given.
10432 if test "${with_dir_user+set}" = set; then
10433   withval="$with_dir_user"
10434
10435         if test "x$withval" != "x" ; then
10436              dir_user=$withval
10437         fi
10438
10439
10440 fi;
10441
10442 dir_group=
10443
10444 # Check whether --with-dir_group or --without-dir_group was given.
10445 if test "${with_dir_group+set}" = set; then
10446   withval="$with_dir_group"
10447
10448         if test "x$withval" != "x" ; then
10449              dir_group=$withval
10450         fi
10451
10452
10453 fi;
10454
10455 sd_user=
10456
10457 # Check whether --with-sd_user or --without-sd_user was given.
10458 if test "${with_sd_user+set}" = set; then
10459   withval="$with_sd_user"
10460
10461         if test "x$withval" != "x" ; then
10462              sd_user=$withval
10463         fi
10464
10465
10466 fi;
10467
10468 sd_group=
10469
10470 # Check whether --with-sd_group or --without-sd_group was given.
10471 if test "${with_sd_group+set}" = set; then
10472   withval="$with_sd_group"
10473
10474         if test "x$withval" != "x" ; then
10475              sd_group=$withval
10476         fi
10477
10478
10479 fi;
10480
10481 fd_user=
10482
10483 # Check whether --with-fd_user or --without-fd_user was given.
10484 if test "${with_fd_user+set}" = set; then
10485   withval="$with_fd_user"
10486
10487         if test "x$withval" != "x" ; then
10488              fd_user=$withval
10489         fi
10490
10491
10492 fi;
10493
10494 fd_group=
10495
10496 # Check whether --with-fd_group or --without-fd_group was given.
10497 if test "${with_fd_group+set}" = set; then
10498   withval="$with_fd_group"
10499
10500         if test "x$withval" != "x" ; then
10501              fd_group=$withval
10502         fi
10503
10504
10505 fi;
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517 #
10518 # allow setting default executable permissions
10519 #
10520 SBINPERM=0754
10521
10522 # Check whether --with-sbin-perm or --without-sbin-perm was given.
10523 if test "${with_sbin_perm+set}" = set; then
10524   withval="$with_sbin_perm"
10525
10526         if test "x$withval" != "x" ; then
10527             SBINPERM=$withval
10528         fi
10529
10530
10531 fi;
10532
10533
10534
10535 # ------------------------------------------------
10536 # Bacula check for various SQL database engines
10537 # ------------------------------------------------
10538
10539 db_found=no
10540 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
10541 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
10542
10543 # Check whether --with-postgresql or --without-postgresql was given.
10544 if test "${with_postgresql+set}" = set; then
10545   withval="$with_postgresql"
10546
10547   if test "$withval" != "no"; then
10548       if test "$db_found" = "yes"; then
10549           echo "$as_me:$LINENO: result: error" >&5
10550 echo "${ECHO_T}error" >&6
10551           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
10552 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
10553    { (exit 1); exit 1; }; };
10554       fi
10555       if test "$withval" = "yes"; then
10556           if test -f /usr/local/include/libpq-fe.h; then
10557               POSTGRESQL_INCDIR=/usr/local/include
10558               POSTGRESQL_LIBDIR=/usr/local/lib
10559               POSTGRESQL_BINDIR=/usr/local/bin
10560           elif test -f /usr/include/libpq-fe.h; then
10561               POSTGRESQL_INCDIR=/usr/include
10562               POSTGRESQL_LIBDIR=/usr/lib
10563               POSTGRESQL_BINDIR=/usr/bin
10564           elif test -f /usr/include/pgsql/libpq-fe.h; then
10565               POSTGRESQL_INCDIR=/usr/include/pgsql
10566               POSTGRESQL_LIBDIR=/usr/lib/pgsql
10567               POSTGRESQL_BINDIR=/usr/bin
10568           elif test -f /usr/include/postgresql/libpq-fe.h; then
10569               POSTGRESQL_INCDIR=/usr/include/postgresql
10570               POSTGRESQL_LIBDIR=/usr/lib/postgresql
10571               POSTGRESQL_BINDIR=/usr/bin
10572           else
10573               echo "$as_me:$LINENO: result: no" >&5
10574 echo "${ECHO_T}no" >&6
10575               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
10576 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
10577    { (exit 1); exit 1; }; }
10578           fi
10579       elif test -f $withval/include/libpq-fe.h; then
10580           POSTGRESQL_INCDIR=$withval/include
10581           POSTGRESQL_LIBDIR=$withval/lib
10582           POSTGRESQL_BINDIR=$withval/bin
10583       elif test -f $withval/include/postgresql/libpq-fe.h; then
10584           POSTGRESQL_INCDIR=$withval/include/postgresql
10585           POSTGRESQL_LIBDIR=$withval/lib
10586           POSTGRESQL_BINDIR=$withval/bin
10587       else
10588           echo "$as_me:$LINENO: result: no" >&5
10589 echo "${ECHO_T}no" >&6
10590           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
10591 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
10592    { (exit 1); exit 1; }; }
10593       fi
10594       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
10595       echo "$as_me:$LINENO: checking for crypt" >&5
10596 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
10597 if test "${ac_cv_func_crypt+set}" = set; then
10598   echo $ECHO_N "(cached) $ECHO_C" >&6
10599 else
10600   cat >conftest.$ac_ext <<_ACEOF
10601 /* confdefs.h.  */
10602 _ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h.  */
10606 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
10607    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10608 #define crypt innocuous_crypt
10609
10610 /* System header to define __stub macros and hopefully few prototypes,
10611     which can conflict with char crypt (); below.
10612     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10613     <limits.h> exists even on freestanding compilers.  */
10614
10615 #ifdef __STDC__
10616 # include <limits.h>
10617 #else
10618 # include <assert.h>
10619 #endif
10620
10621 #undef crypt
10622
10623 /* Override any gcc2 internal prototype to avoid an error.  */
10624 #ifdef __cplusplus
10625 extern "C"
10626 {
10627 #endif
10628 /* We use char because int might match the return type of a gcc2
10629    builtin and then its argument prototype would still apply.  */
10630 char crypt ();
10631 /* The GNU C library defines this for functions which it implements
10632     to always fail with ENOSYS.  Some functions are actually named
10633     something starting with __ and the normal name is an alias.  */
10634 #if defined (__stub_crypt) || defined (__stub___crypt)
10635 choke me
10636 #else
10637 char (*f) () = crypt;
10638 #endif
10639 #ifdef __cplusplus
10640 }
10641 #endif
10642
10643 int
10644 main ()
10645 {
10646 return f != crypt;
10647   ;
10648   return 0;
10649 }
10650 _ACEOF
10651 rm -f conftest.$ac_objext conftest$ac_exeext
10652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10653   (eval $ac_link) 2>conftest.er1
10654   ac_status=$?
10655   grep -v '^ *+' conftest.er1 >conftest.err
10656   rm -f conftest.er1
10657   cat conftest.err >&5
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); } &&
10660          { ac_try='test -z "$ac_c_werror_flag"
10661                          || test ! -s conftest.err'
10662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10663   (eval $ac_try) 2>&5
10664   ac_status=$?
10665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666   (exit $ac_status); }; } &&
10667          { ac_try='test -s conftest$ac_exeext'
10668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669   (eval $ac_try) 2>&5
10670   ac_status=$?
10671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672   (exit $ac_status); }; }; then
10673   ac_cv_func_crypt=yes
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678 ac_cv_func_crypt=no
10679 fi
10680 rm -f conftest.err conftest.$ac_objext \
10681       conftest$ac_exeext conftest.$ac_ext
10682 fi
10683 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
10684 echo "${ECHO_T}$ac_cv_func_crypt" >&6
10685 if test $ac_cv_func_crypt = yes; then
10686   :
10687 else
10688   echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
10689 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
10690 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
10691   echo $ECHO_N "(cached) $ECHO_C" >&6
10692 else
10693   ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-lcrypt  $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF
10696 /* confdefs.h.  */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h.  */
10701
10702 /* Override any gcc2 internal prototype to avoid an error.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 /* We use char because int might match the return type of a gcc2
10707    builtin and then its argument prototype would still apply.  */
10708 char crypt ();
10709 int
10710 main ()
10711 {
10712 crypt ();
10713   ;
10714   return 0;
10715 }
10716 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext
10718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10719   (eval $ac_link) 2>conftest.er1
10720   ac_status=$?
10721   grep -v '^ *+' conftest.er1 >conftest.err
10722   rm -f conftest.er1
10723   cat conftest.err >&5
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); } &&
10726          { ac_try='test -z "$ac_c_werror_flag"
10727                          || test ! -s conftest.err'
10728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729   (eval $ac_try) 2>&5
10730   ac_status=$?
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   (exit $ac_status); }; } &&
10733          { ac_try='test -s conftest$ac_exeext'
10734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10735   (eval $ac_try) 2>&5
10736   ac_status=$?
10737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10738   (exit $ac_status); }; }; then
10739   ac_cv_lib_crypt_crypt=yes
10740 else
10741   echo "$as_me: failed program was:" >&5
10742 sed 's/^/| /' conftest.$ac_ext >&5
10743
10744 ac_cv_lib_crypt_crypt=no
10745 fi
10746 rm -f conftest.err conftest.$ac_objext \
10747       conftest$ac_exeext conftest.$ac_ext
10748 LIBS=$ac_check_lib_save_LIBS
10749 fi
10750 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
10751 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
10752 if test $ac_cv_lib_crypt_crypt = yes; then
10753   POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
10754 fi
10755
10756 fi
10757
10758       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
10759       SQL_LFLAGS=$POSTGRESQL_LFLAGS
10760       SQL_BINDIR=$POSTGRESQL_BINDIR
10761       cat >>confdefs.h <<\_ACEOF
10762 #define HAVE_POSTGRESQL 1
10763 _ACEOF
10764
10765       echo "$as_me:$LINENO: result: yes" >&5
10766 echo "${ECHO_T}yes" >&6
10767       db_found=yes
10768       support_postgresql=yes
10769       db_name=PostgreSQL
10770       DB_NAME=postgresql
10771   else
10772       echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6
10774   fi
10775
10776 else
10777
10778   echo "$as_me:$LINENO: result: no" >&5
10779 echo "${ECHO_T}no" >&6
10780
10781 fi;
10782
10783
10784
10785
10786
10787
10788
10789 db_found=no
10790 echo "$as_me:$LINENO: checking for MySQL support" >&5
10791 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
10792
10793 # Check whether --with-mysql or --without-mysql was given.
10794 if test "${with_mysql+set}" = set; then
10795   withval="$with_mysql"
10796
10797   if test "$withval" != "no"; then
10798         if test "$withval" = "yes"; then
10799                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10800                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10801                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10802                         MYSQL_BINDIR=/usr/local/mysql/bin
10803                 elif test -f /usr/include/mysql/mysql.h; then
10804                         MYSQL_INCDIR=/usr/include/mysql
10805                         MYSQL_LIBDIR=/usr/lib/mysql
10806                         MYSQL_BINDIR=/usr/bin
10807                 elif test -f /usr/include/mysql.h; then
10808                         MYSQL_INCDIR=/usr/include
10809                         MYSQL_LIBDIR=/usr/lib
10810                         MYSQL_BINDIR=/usr/bin
10811                 elif test -f /usr/local/include/mysql/mysql.h; then
10812                         MYSQL_INCDIR=/usr/local/include/mysql
10813                         MYSQL_LIBDIR=/usr/local/lib/mysql
10814                         MYSQL_BINDIR=/usr/local/bin
10815                 elif test -f /usr/local/include/mysql.h; then
10816                         MYSQL_INCDIR=/usr/local/include
10817                         MYSQL_LIBDIR=/usr/local/lib
10818                         MYSQL_BINDIR=/usr/local/bin
10819                 else
10820                    echo "$as_me:$LINENO: result: no" >&5
10821 echo "${ECHO_T}no" >&6
10822                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10823 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10824    { (exit 1); exit 1; }; }
10825                 fi
10826         else
10827                 if test -f $withval/include/mysql/mysql.h; then
10828                         MYSQL_INCDIR=$withval/include/mysql
10829                         MYSQL_LIBDIR=$withval/lib/mysql
10830                         MYSQL_BINDIR=$withval/bin
10831                 elif test -f $withval/include/mysql.h; then
10832                         MYSQL_INCDIR=$withval/include
10833                         MYSQL_LIBDIR=$withval/lib
10834                         MYSQL_BINDIR=$withval/bin
10835                 else
10836                    echo "$as_me:$LINENO: result: no" >&5
10837 echo "${ECHO_T}no" >&6
10838                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10839 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10840    { (exit 1); exit 1; }; }
10841                 fi
10842         fi
10843     SQL_INCLUDE=-I$MYSQL_INCDIR
10844     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
10845        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
10846        cat >>confdefs.h <<\_ACEOF
10847 #define HAVE_THREAD_SAFE_MYSQL 1
10848 _ACEOF
10849
10850     else
10851        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
10852     fi
10853     SQL_BINDIR=$MYSQL_BINDIR
10854
10855     cat >>confdefs.h <<\_ACEOF
10856 #define HAVE_MYSQL 1
10857 _ACEOF
10858
10859     echo "$as_me:$LINENO: result: yes" >&5
10860 echo "${ECHO_T}yes" >&6
10861     db_found=yes
10862     support_mysql=yes
10863     db_name=MySQL
10864     DB_NAME=mysql
10865
10866   else
10867         echo "$as_me:$LINENO: result: no" >&5
10868 echo "${ECHO_T}no" >&6
10869   fi
10870
10871
10872 fi;
10873
10874
10875 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
10876 if test "${with_embedded_mysql+set}" = set; then
10877   withval="$with_embedded_mysql"
10878
10879   if test "$withval" != "no"; then
10880         if test "$withval" = "yes"; then
10881                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
10882                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
10883                         MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
10884                         MYSQL_BINDIR=/usr/local/mysql/bin
10885                 elif test -f /usr/include/mysql/mysql.h; then
10886                         MYSQL_INCDIR=/usr/include/mysql
10887                         MYSQL_LIBDIR=/usr/lib/mysql
10888                         MYSQL_BINDIR=/usr/bin
10889                 elif test -f /usr/include/mysql.h; then
10890                         MYSQL_INCDIR=/usr/include
10891                         MYSQL_LIBDIR=/usr/lib
10892                         MYSQL_BINDIR=/usr/bin
10893                 elif test -f /usr/local/include/mysql/mysql.h; then
10894                         MYSQL_INCDIR=/usr/local/include/mysql
10895                         MYSQL_LIBDIR=/usr/local/lib/mysql
10896                         MYSQL_BINDIR=/usr/local/bin
10897                 elif test -f /usr/local/include/mysql.h; then
10898                         MYSQL_INCDIR=/usr/local/include
10899                         MYSQL_LIBDIR=/usr/local/lib
10900                         MYSQL_BINDIR=/usr/local/bin
10901                 else
10902                    echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6
10904                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
10905 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
10906    { (exit 1); exit 1; }; }
10907                 fi
10908         else
10909                 if test -f $withval/include/mysql/mysql.h; then
10910                         MYSQL_INCDIR=$withval/include/mysql
10911                         MYSQL_LIBDIR=$withval/lib/mysql
10912                         MYSQL_BINDIR=$withval/bin
10913                 elif test -f $withval/include/mysql.h; then
10914                         MYSQL_INCDIR=$withval/include
10915                         MYSQL_LIBDIR=$withval/lib
10916                         MYSQL_BINDIR=$withval/bin
10917                 else
10918                    echo "$as_me:$LINENO: result: no" >&5
10919 echo "${ECHO_T}no" >&6
10920                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
10921 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
10922    { (exit 1); exit 1; }; }
10923                 fi
10924         fi
10925     SQL_INCLUDE=-I$MYSQL_INCDIR
10926     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
10927     SQL_BINDIR=$MYSQL_BINDIR
10928
10929     cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_MYSQL 1
10931 _ACEOF
10932
10933     cat >>confdefs.h <<\_ACEOF
10934 #define HAVE_EMBEDDED_MYSQL 1
10935 _ACEOF
10936
10937     echo "$as_me:$LINENO: result: yes" >&5
10938 echo "${ECHO_T}yes" >&6
10939     db_found=yes
10940     support_mysql=yes
10941     db_name=MySQL
10942     DB_NAME=mysql
10943
10944   else
10945         echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6
10947   fi
10948
10949
10950 fi;
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960 db_found=no
10961 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
10962 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
10963
10964 # Check whether --with-sqlite3 or --without-sqlite3 was given.
10965 if test "${with_sqlite3+set}" = set; then
10966   withval="$with_sqlite3"
10967
10968   if test "$withval" != "no"; then
10969      if test "$withval" = "yes"; then
10970         if test -f /usr/local/include/sqlite3.h; then
10971            SQLITE_INCDIR=/usr/local/include
10972            SQLITE_LIBDIR=/usr/local/lib
10973            SQLITE_BINDIR=/usr/local/bin
10974         elif test -f /usr/include/sqlite3.h; then
10975            SQLITE_INCDIR=/usr/include
10976            SQLITE_LIBDIR=/usr/lib
10977            SQLITE_BINDIR=/usr/bin
10978         elif test -f $prefix/include/sqlite3.h; then
10979            SQLITE_INCDIR=$prefix/include
10980            SQLITE_LIBDIR=$prefix/lib
10981            SQLITE_BINDIR=$prefix/bin
10982         else
10983            echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6
10985            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
10986 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
10987    { (exit 1); exit 1; }; }
10988         fi
10989      else
10990         if test -f $withval/sqlite3.h; then
10991            SQLITE_INCDIR=$withval
10992            SQLITE_LIBDIR=$withval
10993            SQLITE_BINDIR=$withval
10994         elif test -f $withval/include/sqlite3.h; then
10995            SQLITE_INCDIR=$withval/include
10996            SQLITE_LIBDIR=$withval/lib
10997            SQLITE_BINDIR=$withval/bin
10998         else
10999            echo "$as_me:$LINENO: result: no" >&5
11000 echo "${ECHO_T}no" >&6
11001            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
11002 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
11003    { (exit 1); exit 1; }; }
11004         fi
11005      fi
11006      SQL_INCLUDE=-I$SQLITE_INCDIR
11007      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
11008      SQL_BINDIR=$SQLITE_BINDIR
11009
11010      cat >>confdefs.h <<\_ACEOF
11011 #define HAVE_SQLITE3 1
11012 _ACEOF
11013
11014      echo "$as_me:$LINENO: result: yes" >&5
11015 echo "${ECHO_T}yes" >&6
11016      db_found=yes
11017      support_sqlite3=yes
11018      db_name=SQLite3
11019      DB_NAME=sqlite3
11020
11021   else
11022      echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6
11024   fi
11025
11026 else
11027
11028   echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6
11030
11031 fi;
11032
11033
11034
11035
11036
11037
11038
11039 db_found=no
11040 echo "$as_me:$LINENO: checking for SQLite support" >&5
11041 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
11042
11043 # Check whether --with-sqlite or --without-sqlite was given.
11044 if test "${with_sqlite+set}" = set; then
11045   withval="$with_sqlite"
11046
11047   if test "$withval" != "no"; then
11048      if test "$withval" = "yes"; then
11049         if test -f /usr/local/include/sqlite.h; then
11050            SQLITE_INCDIR=/usr/local/include
11051            SQLITE_LIBDIR=/usr/local/lib
11052            SQLITE_BINDIR=/usr/local/bin
11053         elif test -f /usr/include/sqlite.h; then
11054            SQLITE_INCDIR=/usr/include
11055            SQLITE_LIBDIR=/usr/lib
11056            SQLITE_BINDIR=/usr/bin
11057         elif test -f $prefix/include/sqlite.h; then
11058            SQLITE_INCDIR=$prefix/include
11059            SQLITE_LIBDIR=$prefix/lib
11060            SQLITE_BINDIR=$prefix/bin
11061         else
11062            echo "$as_me:$LINENO: result: no" >&5
11063 echo "${ECHO_T}no" >&6
11064            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
11065 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
11066    { (exit 1); exit 1; }; }
11067         fi
11068      else
11069         if test -f $withval/sqlite.h; then
11070            SQLITE_INCDIR=$withval
11071            SQLITE_LIBDIR=$withval
11072            SQLITE_BINDIR=$withval
11073         elif test -f $withval/include/sqlite.h; then
11074            SQLITE_INCDIR=$withval/include
11075            SQLITE_LIBDIR=$withval/lib
11076            SQLITE_BINDIR=$withval/bin
11077         else
11078            echo "$as_me:$LINENO: result: no" >&5
11079 echo "${ECHO_T}no" >&6
11080            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
11081 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
11082    { (exit 1); exit 1; }; }
11083         fi
11084      fi
11085      SQL_INCLUDE=-I$SQLITE_INCDIR
11086      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
11087      SQL_BINDIR=$SQLITE_BINDIR
11088
11089      cat >>confdefs.h <<\_ACEOF
11090 #define HAVE_SQLITE 1
11091 _ACEOF
11092
11093      echo "$as_me:$LINENO: result: yes" >&5
11094 echo "${ECHO_T}yes" >&6
11095      db_found=yes
11096      support_sqlite=yes
11097      db_name=SQLite
11098      DB_NAME=sqlite
11099
11100   else
11101      echo "$as_me:$LINENO: result: no" >&5
11102 echo "${ECHO_T}no" >&6
11103   fi
11104
11105 else
11106
11107   echo "$as_me:$LINENO: result: no" >&5
11108 echo "${ECHO_T}no" >&6
11109
11110 fi;
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120 cat >>confdefs.h <<\_ACEOF
11121 #define PROTOTYPES 1
11122 _ACEOF
11123
11124
11125 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
11126     if test -z "$CCOPTS"; then
11127         CCOPTS='-g -O2 -Wall'
11128     fi
11129     CFLAGS="$CCOPTS"
11130 fi
11131
11132
11133
11134
11135 largefile_support="no"
11136
11137    # Check whether --enable-largefile or --disable-largefile was given.
11138 if test "${enable_largefile+set}" = set; then
11139   enableval="$enable_largefile"
11140
11141 fi;
11142    if test "$enable_largefile" != no; then
11143      if test -n "$ac_tool_prefix"; then
11144   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
11145 set dummy ${ac_tool_prefix}getconf; ac_word=$2
11146 echo "$as_me:$LINENO: checking for $ac_word" >&5
11147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11148 if test "${ac_cv_prog_GETCONF+set}" = set; then
11149   echo $ECHO_N "(cached) $ECHO_C" >&6
11150 else
11151   if test -n "$GETCONF"; then
11152   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
11153 else
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11156 do
11157   IFS=$as_save_IFS
11158   test -z "$as_dir" && as_dir=.
11159   for ac_exec_ext in '' $ac_executable_extensions; do
11160   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
11162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11163     break 2
11164   fi
11165 done
11166 done
11167
11168 fi
11169 fi
11170 GETCONF=$ac_cv_prog_GETCONF
11171 if test -n "$GETCONF"; then
11172   echo "$as_me:$LINENO: result: $GETCONF" >&5
11173 echo "${ECHO_T}$GETCONF" >&6
11174 else
11175   echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6
11177 fi
11178
11179 fi
11180 if test -z "$ac_cv_prog_GETCONF"; then
11181   ac_ct_GETCONF=$GETCONF
11182   # Extract the first word of "getconf", so it can be a program name with args.
11183 set dummy getconf; ac_word=$2
11184 echo "$as_me:$LINENO: checking for $ac_word" >&5
11185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11186 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
11187   echo $ECHO_N "(cached) $ECHO_C" >&6
11188 else
11189   if test -n "$ac_ct_GETCONF"; then
11190   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
11191 else
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11194 do
11195   IFS=$as_save_IFS
11196   test -z "$as_dir" && as_dir=.
11197   for ac_exec_ext in '' $ac_executable_extensions; do
11198   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11199     ac_cv_prog_ac_ct_GETCONF="getconf"
11200     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11201     break 2
11202   fi
11203 done
11204 done
11205
11206 fi
11207 fi
11208 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
11209 if test -n "$ac_ct_GETCONF"; then
11210   echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
11211 echo "${ECHO_T}$ac_ct_GETCONF" >&6
11212 else
11213   echo "$as_me:$LINENO: result: no" >&5
11214 echo "${ECHO_T}no" >&6
11215 fi
11216
11217   GETCONF=$ac_ct_GETCONF
11218 else
11219   GETCONF="$ac_cv_prog_GETCONF"
11220 fi
11221
11222      echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
11223 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
11224 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
11225   echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
11228         ac_cv_sys_largefile_CFLAGS=no
11229         case "$host_os" in
11230            # IRIX 6.2 and later require cc -n32.
11231            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
11232              if test "$GCC" != yes; then
11233                ac_cv_sys_largefile_CFLAGS=-n32
11234              fi
11235              ac_save_CC="$CC"
11236              CC="$CC $ac_cv_sys_largefile_CFLAGS"
11237              cat >conftest.$ac_ext <<_ACEOF
11238 /* confdefs.h.  */
11239 _ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h.  */
11243
11244 int
11245 main ()
11246 {
11247
11248   ;
11249   return 0;
11250 }
11251 _ACEOF
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11254   (eval $ac_link) 2>conftest.er1
11255   ac_status=$?
11256   grep -v '^ *+' conftest.er1 >conftest.err
11257   rm -f conftest.er1
11258   cat conftest.err >&5
11259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11260   (exit $ac_status); } &&
11261          { ac_try='test -z "$ac_c_werror_flag"
11262                          || test ! -s conftest.err'
11263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264   (eval $ac_try) 2>&5
11265   ac_status=$?
11266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267   (exit $ac_status); }; } &&
11268          { ac_try='test -s conftest$ac_exeext'
11269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270   (eval $ac_try) 2>&5
11271   ac_status=$?
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); }; }; then
11274   :
11275 else
11276   echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279 ac_cv_sys_largefile_CFLAGS=no
11280 fi
11281 rm -f conftest.err conftest.$ac_objext \
11282       conftest$ac_exeext conftest.$ac_ext
11283              CC="$ac_save_CC"
11284            esac
11285       }
11286 fi
11287 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
11288 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
11289      echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
11290 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
11291 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
11292   echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
11295         ac_cv_sys_largefile_LDFLAGS=no
11296
11297       }
11298 fi
11299 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
11300 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
11301      echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
11302 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
11303 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
11304   echo $ECHO_N "(cached) $ECHO_C" >&6
11305 else
11306   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
11307         ac_cv_sys_largefile_LIBS=no
11308
11309       }
11310 fi
11311 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
11312 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
11313
11314      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11315        case "$ac_flag" in
11316        no) ;;
11317        -D_FILE_OFFSET_BITS=*) ;;
11318        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
11319        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
11320        -D?* | -I?*)
11321          case "$ac_flag" in
11322    no) ;;
11323    ?*)
11324      case "$CPPFLAGS" in
11325      '') CPPFLAGS="$ac_flag" ;;
11326      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
11327      esac ;;
11328    esac ;;
11329        *)
11330          case "$ac_flag" in
11331    no) ;;
11332    ?*)
11333      case "$CFLAGS" in
11334      '') CFLAGS="$ac_flag" ;;
11335      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
11336      esac ;;
11337    esac ;;
11338        esac
11339      done
11340      case "$ac_cv_sys_largefile_LDFLAGS" in
11341    no) ;;
11342    ?*)
11343      case "$LDFLAGS" in
11344      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
11345      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
11346      esac ;;
11347    esac
11348      case "$ac_cv_sys_largefile_LIBS" in
11349    no) ;;
11350    ?*)
11351      case "$LIBS" in
11352      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
11353      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
11354      esac ;;
11355    esac
11356      echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
11357 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
11358 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
11359   echo $ECHO_N "(cached) $ECHO_C" >&6
11360 else
11361   ac_cv_sys_file_offset_bits=no
11362       ac_cv_sys_file_offset_bits=64
11363       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11364         case "$ac_flag" in
11365         -D_FILE_OFFSET_BITS)
11366           ac_cv_sys_file_offset_bits=1 ;;
11367         -D_FILE_OFFSET_BITS=*)
11368           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11369         esac
11370       done
11371
11372 fi
11373 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
11374 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
11375    if test "$ac_cv_sys_file_offset_bits" != no; then
11376
11377 cat >>confdefs.h <<_ACEOF
11378 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11379 _ACEOF
11380
11381    fi
11382      echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
11383 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
11384 if test "${ac_cv_sys_largefile_source+set}" = set; then
11385   echo $ECHO_N "(cached) $ECHO_C" >&6
11386 else
11387   ac_cv_sys_largefile_source=no
11388       ac_cv_sys_largefile_source=1
11389       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11390         case "$ac_flag" in
11391         -D_LARGEFILE_SOURCE)
11392           ac_cv_sys_largefile_source=1 ;;
11393         -D_LARGEFILE_SOURCE=*)
11394           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11395         esac
11396       done
11397
11398 fi
11399 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11400 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
11401    if test "$ac_cv_sys_largefile_source" != no; then
11402
11403 cat >>confdefs.h <<_ACEOF
11404 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11405 _ACEOF
11406
11407    fi
11408      echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
11409 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
11410 if test "${ac_cv_sys_large_files+set}" = set; then
11411   echo $ECHO_N "(cached) $ECHO_C" >&6
11412 else
11413   ac_cv_sys_large_files=no
11414       ac_cv_sys_large_files=1
11415       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
11416         case "$ac_flag" in
11417         -D_LARGE_FILES)
11418           ac_cv_sys_large_files=1 ;;
11419         -D_LARGE_FILES=*)
11420           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
11421         esac
11422       done
11423
11424 fi
11425 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
11426 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
11427    if test "$ac_cv_sys_large_files" != no; then
11428
11429 cat >>confdefs.h <<_ACEOF
11430 #define _LARGE_FILES $ac_cv_sys_large_files
11431 _ACEOF
11432
11433    fi
11434    fi
11435
11436
11437
11438 echo "$as_me:$LINENO: checking for X" >&5
11439 echo $ECHO_N "checking for X... $ECHO_C" >&6
11440
11441
11442 # Check whether --with-x or --without-x was given.
11443 if test "${with_x+set}" = set; then
11444   withval="$with_x"
11445
11446 fi;
11447 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11448 if test "x$with_x" = xno; then
11449   # The user explicitly disabled X.
11450   have_x=disabled
11451 else
11452   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11453     # Both variables are already set.
11454     have_x=yes
11455   else
11456     if test "${ac_cv_have_x+set}" = set; then
11457   echo $ECHO_N "(cached) $ECHO_C" >&6
11458 else
11459   # One or both of the vars are not set, and there is no cached value.
11460 ac_x_includes=no ac_x_libraries=no
11461 rm -fr conftest.dir
11462 if mkdir conftest.dir; then
11463   cd conftest.dir
11464   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11465   cat >Imakefile <<'_ACEOF'
11466 acfindx:
11467         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11468 _ACEOF
11469   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11470     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11471     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11472     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11473     for ac_extension in a so sl; do
11474       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11475          test -f $ac_im_libdir/libX11.$ac_extension; then
11476         ac_im_usrlibdir=$ac_im_libdir; break
11477       fi
11478     done
11479     # Screen out bogus values from the imake configuration.  They are
11480     # bogus both because they are the default anyway, and because
11481     # using them would break gcc on systems where it needs fixed includes.
11482     case $ac_im_incroot in
11483         /usr/include) ;;
11484         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11485     esac
11486     case $ac_im_usrlibdir in
11487         /usr/lib | /lib) ;;
11488         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11489     esac
11490   fi
11491   cd ..
11492   rm -fr conftest.dir
11493 fi
11494
11495 # Standard set of common directories for X headers.
11496 # Check X11 before X11Rn because it is often a symlink to the current release.
11497 ac_x_header_dirs='
11498 /usr/X11/include
11499 /usr/X11R6/include
11500 /usr/X11R5/include
11501 /usr/X11R4/include
11502
11503 /usr/include/X11
11504 /usr/include/X11R6
11505 /usr/include/X11R5
11506 /usr/include/X11R4
11507
11508 /usr/local/X11/include
11509 /usr/local/X11R6/include
11510 /usr/local/X11R5/include
11511 /usr/local/X11R4/include
11512
11513 /usr/local/include/X11
11514 /usr/local/include/X11R6
11515 /usr/local/include/X11R5
11516 /usr/local/include/X11R4
11517
11518 /usr/X386/include
11519 /usr/x386/include
11520 /usr/XFree86/include/X11
11521
11522 /usr/include
11523 /usr/local/include
11524 /usr/unsupported/include
11525 /usr/athena/include
11526 /usr/local/x11r5/include
11527 /usr/lpp/Xamples/include
11528
11529 /usr/openwin/include
11530 /usr/openwin/share/include'
11531
11532 if test "$ac_x_includes" = no; then
11533   # Guess where to find include files, by looking for Intrinsic.h.
11534   # First, try using that file with no special directory specified.
11535   cat >conftest.$ac_ext <<_ACEOF
11536 /* confdefs.h.  */
11537 _ACEOF
11538 cat confdefs.h >>conftest.$ac_ext
11539 cat >>conftest.$ac_ext <<_ACEOF
11540 /* end confdefs.h.  */
11541 #include <X11/Intrinsic.h>
11542 _ACEOF
11543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11544   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11545   ac_status=$?
11546   grep -v '^ *+' conftest.er1 >conftest.err
11547   rm -f conftest.er1
11548   cat conftest.err >&5
11549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550   (exit $ac_status); } >/dev/null; then
11551   if test -s conftest.err; then
11552     ac_cpp_err=$ac_c_preproc_warn_flag
11553     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11554   else
11555     ac_cpp_err=
11556   fi
11557 else
11558   ac_cpp_err=yes
11559 fi
11560 if test -z "$ac_cpp_err"; then
11561   # We can compile using X headers with no special include directory.
11562 ac_x_includes=
11563 else
11564   echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11566
11567   for ac_dir in $ac_x_header_dirs; do
11568   if test -r "$ac_dir/X11/Intrinsic.h"; then
11569     ac_x_includes=$ac_dir
11570     break
11571   fi
11572 done
11573 fi
11574 rm -f conftest.err conftest.$ac_ext
11575 fi # $ac_x_includes = no
11576
11577 if test "$ac_x_libraries" = no; then
11578   # Check for the libraries.
11579   # See if we find them without any special options.
11580   # Don't add to $LIBS permanently.
11581   ac_save_LIBS=$LIBS
11582   LIBS="-lXt $LIBS"
11583   cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h.  */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h.  */
11589 #include <X11/Intrinsic.h>
11590 int
11591 main ()
11592 {
11593 XtMalloc (0)
11594   ;
11595   return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11600   (eval $ac_link) 2>conftest.er1
11601   ac_status=$?
11602   grep -v '^ *+' conftest.er1 >conftest.err
11603   rm -f conftest.er1
11604   cat conftest.err >&5
11605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606   (exit $ac_status); } &&
11607          { ac_try='test -z "$ac_c_werror_flag"
11608                          || test ! -s conftest.err'
11609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610   (eval $ac_try) 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); }; } &&
11614          { ac_try='test -s conftest$ac_exeext'
11615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11616   (eval $ac_try) 2>&5
11617   ac_status=$?
11618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11619   (exit $ac_status); }; }; then
11620   LIBS=$ac_save_LIBS
11621 # We can link X programs with no special library path.
11622 ac_x_libraries=
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 LIBS=$ac_save_LIBS
11628 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11629 do
11630   # Don't even attempt the hair of trying to link an X program!
11631   for ac_extension in a so sl; do
11632     if test -r $ac_dir/libXt.$ac_extension; then
11633       ac_x_libraries=$ac_dir
11634       break 2
11635     fi
11636   done
11637 done
11638 fi
11639 rm -f conftest.err conftest.$ac_objext \
11640       conftest$ac_exeext conftest.$ac_ext
11641 fi # $ac_x_libraries = no
11642
11643 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
11644   # Didn't find X anywhere.  Cache the known absence of X.
11645   ac_cv_have_x="have_x=no"
11646 else
11647   # Record where we found X for the cache.
11648   ac_cv_have_x="have_x=yes \
11649                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11650 fi
11651 fi
11652
11653   fi
11654   eval "$ac_cv_have_x"
11655 fi # $with_x != no
11656
11657 if test "$have_x" != yes; then
11658   echo "$as_me:$LINENO: result: $have_x" >&5
11659 echo "${ECHO_T}$have_x" >&6
11660   no_x=yes
11661 else
11662   # If each of the values was on the command line, it overrides each guess.
11663   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11664   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11665   # Update the cache value to reflect the command line values.
11666   ac_cv_have_x="have_x=yes \
11667                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11668   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11669 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
11670 fi
11671
11672 if test "$no_x" = yes; then
11673   # Not all programs may use this symbol, but it does not hurt to define it.
11674
11675 cat >>confdefs.h <<\_ACEOF
11676 #define X_DISPLAY_MISSING 1
11677 _ACEOF
11678
11679   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11680 else
11681   if test -n "$x_includes"; then
11682     X_CFLAGS="$X_CFLAGS -I$x_includes"
11683   fi
11684
11685   # It would also be nice to do this for all -L options, not just this one.
11686   if test -n "$x_libraries"; then
11687     X_LIBS="$X_LIBS -L$x_libraries"
11688     # For Solaris; some versions of Sun CC require a space after -R and
11689     # others require no space.  Words are not sufficient . . . .
11690     case `(uname -sr) 2>/dev/null` in
11691     "SunOS 5"*)
11692       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
11693 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
11694       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
11695       cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701
11702 int
11703 main ()
11704 {
11705
11706   ;
11707   return 0;
11708 }
11709 _ACEOF
11710 rm -f conftest.$ac_objext conftest$ac_exeext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11712   (eval $ac_link) 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -z "$ac_c_werror_flag"
11720                          || test ! -s conftest.err'
11721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11722   (eval $ac_try) 2>&5
11723   ac_status=$?
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); }; } &&
11726          { ac_try='test -s conftest$ac_exeext'
11727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11728   (eval $ac_try) 2>&5
11729   ac_status=$?
11730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731   (exit $ac_status); }; }; then
11732   ac_R_nospace=yes
11733 else
11734   echo "$as_me: failed program was:" >&5
11735 sed 's/^/| /' conftest.$ac_ext >&5
11736
11737 ac_R_nospace=no
11738 fi
11739 rm -f conftest.err conftest.$ac_objext \
11740       conftest$ac_exeext conftest.$ac_ext
11741       if test $ac_R_nospace = yes; then
11742         echo "$as_me:$LINENO: result: no" >&5
11743 echo "${ECHO_T}no" >&6
11744         X_LIBS="$X_LIBS -R$x_libraries"
11745       else
11746         LIBS="$ac_xsave_LIBS -R $x_libraries"
11747         cat >conftest.$ac_ext <<_ACEOF
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753
11754 int
11755 main ()
11756 {
11757
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11764   (eval $ac_link) 2>conftest.er1
11765   ac_status=$?
11766   grep -v '^ *+' conftest.er1 >conftest.err
11767   rm -f conftest.er1
11768   cat conftest.err >&5
11769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770   (exit $ac_status); } &&
11771          { ac_try='test -z "$ac_c_werror_flag"
11772                          || test ! -s conftest.err'
11773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774   (eval $ac_try) 2>&5
11775   ac_status=$?
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); }; } &&
11778          { ac_try='test -s conftest$ac_exeext'
11779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780   (eval $ac_try) 2>&5
11781   ac_status=$?
11782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783   (exit $ac_status); }; }; then
11784   ac_R_space=yes
11785 else
11786   echo "$as_me: failed program was:" >&5
11787 sed 's/^/| /' conftest.$ac_ext >&5
11788
11789 ac_R_space=no
11790 fi
11791 rm -f conftest.err conftest.$ac_objext \
11792       conftest$ac_exeext conftest.$ac_ext
11793         if test $ac_R_space = yes; then
11794           echo "$as_me:$LINENO: result: yes" >&5
11795 echo "${ECHO_T}yes" >&6
11796           X_LIBS="$X_LIBS -R $x_libraries"
11797         else
11798           echo "$as_me:$LINENO: result: neither works" >&5
11799 echo "${ECHO_T}neither works" >&6
11800         fi
11801       fi
11802       LIBS=$ac_xsave_LIBS
11803     esac
11804   fi
11805
11806   # Check for system-dependent libraries X programs must link with.
11807   # Do this before checking for the system-independent R6 libraries
11808   # (-lICE), since we may need -lsocket or whatever for X linking.
11809
11810   if test "$ISC" = yes; then
11811     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11812   else
11813     # Martyn Johnson says this is needed for Ultrix, if the X
11814     # libraries were built with DECnet support.  And Karl Berry says
11815     # the Alpha needs dnet_stub (dnet does not exist).
11816     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
11817     cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823
11824 /* Override any gcc2 internal prototype to avoid an error.  */
11825 #ifdef __cplusplus
11826 extern "C"
11827 #endif
11828 /* We use char because int might match the return type of a gcc2
11829    builtin and then its argument prototype would still apply.  */
11830 char XOpenDisplay ();
11831 int
11832 main ()
11833 {
11834 XOpenDisplay ();
11835   ;
11836   return 0;
11837 }
11838 _ACEOF
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841   (eval $ac_link) 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -z "$ac_c_werror_flag"
11849                          || test ! -s conftest.err'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; } &&
11855          { ac_try='test -s conftest$ac_exeext'
11856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857   (eval $ac_try) 2>&5
11858   ac_status=$?
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); }; }; then
11861   :
11862 else
11863   echo "$as_me: failed program was:" >&5
11864 sed 's/^/| /' conftest.$ac_ext >&5
11865
11866 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11867 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
11868 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11869   echo $ECHO_N "(cached) $ECHO_C" >&6
11870 else
11871   ac_check_lib_save_LIBS=$LIBS
11872 LIBS="-ldnet  $LIBS"
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h.  */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h.  */
11879
11880 /* Override any gcc2 internal prototype to avoid an error.  */
11881 #ifdef __cplusplus
11882 extern "C"
11883 #endif
11884 /* We use char because int might match the return type of a gcc2
11885    builtin and then its argument prototype would still apply.  */
11886 char dnet_ntoa ();
11887 int
11888 main ()
11889 {
11890 dnet_ntoa ();
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11897   (eval $ac_link) 2>conftest.er1
11898   ac_status=$?
11899   grep -v '^ *+' conftest.er1 >conftest.err
11900   rm -f conftest.er1
11901   cat conftest.err >&5
11902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903   (exit $ac_status); } &&
11904          { ac_try='test -z "$ac_c_werror_flag"
11905                          || test ! -s conftest.err'
11906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907   (eval $ac_try) 2>&5
11908   ac_status=$?
11909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910   (exit $ac_status); }; } &&
11911          { ac_try='test -s conftest$ac_exeext'
11912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11913   (eval $ac_try) 2>&5
11914   ac_status=$?
11915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11916   (exit $ac_status); }; }; then
11917   ac_cv_lib_dnet_dnet_ntoa=yes
11918 else
11919   echo "$as_me: failed program was:" >&5
11920 sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_cv_lib_dnet_dnet_ntoa=no
11923 fi
11924 rm -f conftest.err conftest.$ac_objext \
11925       conftest$ac_exeext conftest.$ac_ext
11926 LIBS=$ac_check_lib_save_LIBS
11927 fi
11928 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11929 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
11930 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11931   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11932 fi
11933
11934     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11935       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
11936 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
11937 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940   ac_check_lib_save_LIBS=$LIBS
11941 LIBS="-ldnet_stub  $LIBS"
11942 cat >conftest.$ac_ext <<_ACEOF
11943 /* confdefs.h.  */
11944 _ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h.  */
11948
11949 /* Override any gcc2 internal prototype to avoid an error.  */
11950 #ifdef __cplusplus
11951 extern "C"
11952 #endif
11953 /* We use char because int might match the return type of a gcc2
11954    builtin and then its argument prototype would still apply.  */
11955 char dnet_ntoa ();
11956 int
11957 main ()
11958 {
11959 dnet_ntoa ();
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_c_werror_flag"
11974                          || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986   ac_cv_lib_dnet_stub_dnet_ntoa=yes
11987 else
11988   echo "$as_me: failed program was:" >&5
11989 sed 's/^/| /' conftest.$ac_ext >&5
11990
11991 ac_cv_lib_dnet_stub_dnet_ntoa=no
11992 fi
11993 rm -f conftest.err conftest.$ac_objext \
11994       conftest$ac_exeext conftest.$ac_ext
11995 LIBS=$ac_check_lib_save_LIBS
11996 fi
11997 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
11998 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
11999 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
12000   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12001 fi
12002
12003     fi
12004 fi
12005 rm -f conftest.err conftest.$ac_objext \
12006       conftest$ac_exeext conftest.$ac_ext
12007     LIBS="$ac_xsave_LIBS"
12008
12009     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12010     # to get the SysV transport functions.
12011     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12012     # needs -lnsl.
12013     # The nsl library prevents programs from opening the X display
12014     # on Irix 5.2, according to T.E. Dickey.
12015     # The functions gethostbyname, getservbyname, and inet_addr are
12016     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12017     echo "$as_me:$LINENO: checking for gethostbyname" >&5
12018 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
12019 if test "${ac_cv_func_gethostbyname+set}" = set; then
12020   echo $ECHO_N "(cached) $ECHO_C" >&6
12021 else
12022   cat >conftest.$ac_ext <<_ACEOF
12023 /* confdefs.h.  */
12024 _ACEOF
12025 cat confdefs.h >>conftest.$ac_ext
12026 cat >>conftest.$ac_ext <<_ACEOF
12027 /* end confdefs.h.  */
12028 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
12029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12030 #define gethostbyname innocuous_gethostbyname
12031
12032 /* System header to define __stub macros and hopefully few prototypes,
12033     which can conflict with char gethostbyname (); below.
12034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12035     <limits.h> exists even on freestanding compilers.  */
12036
12037 #ifdef __STDC__
12038 # include <limits.h>
12039 #else
12040 # include <assert.h>
12041 #endif
12042
12043 #undef gethostbyname
12044
12045 /* Override any gcc2 internal prototype to avoid an error.  */
12046 #ifdef __cplusplus
12047 extern "C"
12048 {
12049 #endif
12050 /* We use char because int might match the return type of a gcc2
12051    builtin and then its argument prototype would still apply.  */
12052 char gethostbyname ();
12053 /* The GNU C library defines this for functions which it implements
12054     to always fail with ENOSYS.  Some functions are actually named
12055     something starting with __ and the normal name is an alias.  */
12056 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12057 choke me
12058 #else
12059 char (*f) () = gethostbyname;
12060 #endif
12061 #ifdef __cplusplus
12062 }
12063 #endif
12064
12065 int
12066 main ()
12067 {
12068 return f != gethostbyname;
12069   ;
12070   return 0;
12071 }
12072 _ACEOF
12073 rm -f conftest.$ac_objext conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075   (eval $ac_link) 2>conftest.er1
12076   ac_status=$?
12077   grep -v '^ *+' conftest.er1 >conftest.err
12078   rm -f conftest.er1
12079   cat conftest.err >&5
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); } &&
12082          { ac_try='test -z "$ac_c_werror_flag"
12083                          || test ! -s conftest.err'
12084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085   (eval $ac_try) 2>&5
12086   ac_status=$?
12087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088   (exit $ac_status); }; } &&
12089          { ac_try='test -s conftest$ac_exeext'
12090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091   (eval $ac_try) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); }; }; then
12095   ac_cv_func_gethostbyname=yes
12096 else
12097   echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12099
12100 ac_cv_func_gethostbyname=no
12101 fi
12102 rm -f conftest.err conftest.$ac_objext \
12103       conftest$ac_exeext conftest.$ac_ext
12104 fi
12105 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
12106 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
12107
12108     if test $ac_cv_func_gethostbyname = no; then
12109       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
12110 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
12111 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
12112   echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114   ac_check_lib_save_LIBS=$LIBS
12115 LIBS="-lnsl  $LIBS"
12116 cat >conftest.$ac_ext <<_ACEOF
12117 /* confdefs.h.  */
12118 _ACEOF
12119 cat confdefs.h >>conftest.$ac_ext
12120 cat >>conftest.$ac_ext <<_ACEOF
12121 /* end confdefs.h.  */
12122
12123 /* Override any gcc2 internal prototype to avoid an error.  */
12124 #ifdef __cplusplus
12125 extern "C"
12126 #endif
12127 /* We use char because int might match the return type of a gcc2
12128    builtin and then its argument prototype would still apply.  */
12129 char gethostbyname ();
12130 int
12131 main ()
12132 {
12133 gethostbyname ();
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 rm -f conftest.$ac_objext conftest$ac_exeext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12140   (eval $ac_link) 2>conftest.er1
12141   ac_status=$?
12142   grep -v '^ *+' conftest.er1 >conftest.err
12143   rm -f conftest.er1
12144   cat conftest.err >&5
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); } &&
12147          { ac_try='test -z "$ac_c_werror_flag"
12148                          || test ! -s conftest.err'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; } &&
12154          { ac_try='test -s conftest$ac_exeext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   ac_cv_lib_nsl_gethostbyname=yes
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ac_cv_lib_nsl_gethostbyname=no
12166 fi
12167 rm -f conftest.err conftest.$ac_objext \
12168       conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
12172 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
12173 if test $ac_cv_lib_nsl_gethostbyname = yes; then
12174   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12175 fi
12176
12177       if test $ac_cv_lib_nsl_gethostbyname = no; then
12178         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
12179 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
12180 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
12181   echo $ECHO_N "(cached) $ECHO_C" >&6
12182 else
12183   ac_check_lib_save_LIBS=$LIBS
12184 LIBS="-lbsd  $LIBS"
12185 cat >conftest.$ac_ext <<_ACEOF
12186 /* confdefs.h.  */
12187 _ACEOF
12188 cat confdefs.h >>conftest.$ac_ext
12189 cat >>conftest.$ac_ext <<_ACEOF
12190 /* end confdefs.h.  */
12191
12192 /* Override any gcc2 internal prototype to avoid an error.  */
12193 #ifdef __cplusplus
12194 extern "C"
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char gethostbyname ();
12199 int
12200 main ()
12201 {
12202 gethostbyname ();
12203   ;
12204   return 0;
12205 }
12206 _ACEOF
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209   (eval $ac_link) 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } &&
12216          { ac_try='test -z "$ac_c_werror_flag"
12217                          || test ! -s conftest.err'
12218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219   (eval $ac_try) 2>&5
12220   ac_status=$?
12221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222   (exit $ac_status); }; } &&
12223          { ac_try='test -s conftest$ac_exeext'
12224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225   (eval $ac_try) 2>&5
12226   ac_status=$?
12227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228   (exit $ac_status); }; }; then
12229   ac_cv_lib_bsd_gethostbyname=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234 ac_cv_lib_bsd_gethostbyname=no
12235 fi
12236 rm -f conftest.err conftest.$ac_objext \
12237       conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
12241 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
12242 if test $ac_cv_lib_bsd_gethostbyname = yes; then
12243   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
12244 fi
12245
12246       fi
12247     fi
12248
12249     # lieder@skyler.mavd.honeywell.com says without -lsocket,
12250     # socket/setsockopt and other routines are undefined under SCO ODT
12251     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
12252     # on later versions), says Simon Leinen: it contains gethostby*
12253     # variants that don't use the name server (or something).  -lsocket
12254     # must be given before -lnsl if both are needed.  We assume that
12255     # if connect needs -lnsl, so does gethostbyname.
12256     echo "$as_me:$LINENO: checking for connect" >&5
12257 echo $ECHO_N "checking for connect... $ECHO_C" >&6
12258 if test "${ac_cv_func_connect+set}" = set; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   cat >conftest.$ac_ext <<_ACEOF
12262 /* confdefs.h.  */
12263 _ACEOF
12264 cat confdefs.h >>conftest.$ac_ext
12265 cat >>conftest.$ac_ext <<_ACEOF
12266 /* end confdefs.h.  */
12267 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
12268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12269 #define connect innocuous_connect
12270
12271 /* System header to define __stub macros and hopefully few prototypes,
12272     which can conflict with char connect (); below.
12273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12274     <limits.h> exists even on freestanding compilers.  */
12275
12276 #ifdef __STDC__
12277 # include <limits.h>
12278 #else
12279 # include <assert.h>
12280 #endif
12281
12282 #undef connect
12283
12284 /* Override any gcc2 internal prototype to avoid an error.  */
12285 #ifdef __cplusplus
12286 extern "C"
12287 {
12288 #endif
12289 /* We use char because int might match the return type of a gcc2
12290    builtin and then its argument prototype would still apply.  */
12291 char connect ();
12292 /* The GNU C library defines this for functions which it implements
12293     to always fail with ENOSYS.  Some functions are actually named
12294     something starting with __ and the normal name is an alias.  */
12295 #if defined (__stub_connect) || defined (__stub___connect)
12296 choke me
12297 #else
12298 char (*f) () = connect;
12299 #endif
12300 #ifdef __cplusplus
12301 }
12302 #endif
12303
12304 int
12305 main ()
12306 {
12307 return f != connect;
12308   ;
12309   return 0;
12310 }
12311 _ACEOF
12312 rm -f conftest.$ac_objext conftest$ac_exeext
12313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12314   (eval $ac_link) 2>conftest.er1
12315   ac_status=$?
12316   grep -v '^ *+' conftest.er1 >conftest.err
12317   rm -f conftest.er1
12318   cat conftest.err >&5
12319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320   (exit $ac_status); } &&
12321          { ac_try='test -z "$ac_c_werror_flag"
12322                          || test ! -s conftest.err'
12323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324   (eval $ac_try) 2>&5
12325   ac_status=$?
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); }; } &&
12328          { ac_try='test -s conftest$ac_exeext'
12329   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330   (eval $ac_try) 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; }; then
12334   ac_cv_func_connect=yes
12335 else
12336   echo "$as_me: failed program was:" >&5
12337 sed 's/^/| /' conftest.$ac_ext >&5
12338
12339 ac_cv_func_connect=no
12340 fi
12341 rm -f conftest.err conftest.$ac_objext \
12342       conftest$ac_exeext conftest.$ac_ext
12343 fi
12344 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
12345 echo "${ECHO_T}$ac_cv_func_connect" >&6
12346
12347     if test $ac_cv_func_connect = no; then
12348       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
12349 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
12350 if test "${ac_cv_lib_socket_connect+set}" = set; then
12351   echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353   ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h.  */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h.  */
12361
12362 /* Override any gcc2 internal prototype to avoid an error.  */
12363 #ifdef __cplusplus
12364 extern "C"
12365 #endif
12366 /* We use char because int might match the return type of a gcc2
12367    builtin and then its argument prototype would still apply.  */
12368 char connect ();
12369 int
12370 main ()
12371 {
12372 connect ();
12373   ;
12374   return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379   (eval $ac_link) 2>conftest.er1
12380   ac_status=$?
12381   grep -v '^ *+' conftest.er1 >conftest.err
12382   rm -f conftest.er1
12383   cat conftest.err >&5
12384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385   (exit $ac_status); } &&
12386          { ac_try='test -z "$ac_c_werror_flag"
12387                          || test ! -s conftest.err'
12388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389   (eval $ac_try) 2>&5
12390   ac_status=$?
12391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392   (exit $ac_status); }; } &&
12393          { ac_try='test -s conftest$ac_exeext'
12394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12395   (eval $ac_try) 2>&5
12396   ac_status=$?
12397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); }; }; then
12399   ac_cv_lib_socket_connect=yes
12400 else
12401   echo "$as_me: failed program was:" >&5
12402 sed 's/^/| /' conftest.$ac_ext >&5
12403
12404 ac_cv_lib_socket_connect=no
12405 fi
12406 rm -f conftest.err conftest.$ac_objext \
12407       conftest$ac_exeext conftest.$ac_ext
12408 LIBS=$ac_check_lib_save_LIBS
12409 fi
12410 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12411 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12412 if test $ac_cv_lib_socket_connect = yes; then
12413   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12414 fi
12415
12416     fi
12417
12418     # Guillermo Gomez says -lposix is necessary on A/UX.
12419     echo "$as_me:$LINENO: checking for remove" >&5
12420 echo $ECHO_N "checking for remove... $ECHO_C" >&6
12421 if test "${ac_cv_func_remove+set}" = set; then
12422   echo $ECHO_N "(cached) $ECHO_C" >&6
12423 else
12424   cat >conftest.$ac_ext <<_ACEOF
12425 /* confdefs.h.  */
12426 _ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h.  */
12430 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
12431    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12432 #define remove innocuous_remove
12433
12434 /* System header to define __stub macros and hopefully few prototypes,
12435     which can conflict with char remove (); below.
12436     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12437     <limits.h> exists even on freestanding compilers.  */
12438
12439 #ifdef __STDC__
12440 # include <limits.h>
12441 #else
12442 # include <assert.h>
12443 #endif
12444
12445 #undef remove
12446
12447 /* Override any gcc2 internal prototype to avoid an error.  */
12448 #ifdef __cplusplus
12449 extern "C"
12450 {
12451 #endif
12452 /* We use char because int might match the return type of a gcc2
12453    builtin and then its argument prototype would still apply.  */
12454 char remove ();
12455 /* The GNU C library defines this for functions which it implements
12456     to always fail with ENOSYS.  Some functions are actually named
12457     something starting with __ and the normal name is an alias.  */
12458 #if defined (__stub_remove) || defined (__stub___remove)
12459 choke me
12460 #else
12461 char (*f) () = remove;
12462 #endif
12463 #ifdef __cplusplus
12464 }
12465 #endif
12466
12467 int
12468 main ()
12469 {
12470 return f != remove;
12471   ;
12472   return 0;
12473 }
12474 _ACEOF
12475 rm -f conftest.$ac_objext conftest$ac_exeext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477   (eval $ac_link) 2>conftest.er1
12478   ac_status=$?
12479   grep -v '^ *+' conftest.er1 >conftest.err
12480   rm -f conftest.er1
12481   cat conftest.err >&5
12482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12483   (exit $ac_status); } &&
12484          { ac_try='test -z "$ac_c_werror_flag"
12485                          || test ! -s conftest.err'
12486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12487   (eval $ac_try) 2>&5
12488   ac_status=$?
12489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490   (exit $ac_status); }; } &&
12491          { ac_try='test -s conftest$ac_exeext'
12492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493   (eval $ac_try) 2>&5
12494   ac_status=$?
12495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496   (exit $ac_status); }; }; then
12497   ac_cv_func_remove=yes
12498 else
12499   echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.$ac_ext >&5
12501
12502 ac_cv_func_remove=no
12503 fi
12504 rm -f conftest.err conftest.$ac_objext \
12505       conftest$ac_exeext conftest.$ac_ext
12506 fi
12507 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
12508 echo "${ECHO_T}$ac_cv_func_remove" >&6
12509
12510     if test $ac_cv_func_remove = no; then
12511       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
12512 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
12513 if test "${ac_cv_lib_posix_remove+set}" = set; then
12514   echo $ECHO_N "(cached) $ECHO_C" >&6
12515 else
12516   ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lposix  $LIBS"
12518 cat >conftest.$ac_ext <<_ACEOF
12519 /* confdefs.h.  */
12520 _ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h.  */
12524
12525 /* Override any gcc2 internal prototype to avoid an error.  */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 /* We use char because int might match the return type of a gcc2
12530    builtin and then its argument prototype would still apply.  */
12531 char remove ();
12532 int
12533 main ()
12534 {
12535 remove ();
12536   ;
12537   return 0;
12538 }
12539 _ACEOF
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12542   (eval $ac_link) 2>conftest.er1
12543   ac_status=$?
12544   grep -v '^ *+' conftest.er1 >conftest.err
12545   rm -f conftest.er1
12546   cat conftest.err >&5
12547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548   (exit $ac_status); } &&
12549          { ac_try='test -z "$ac_c_werror_flag"
12550                          || test ! -s conftest.err'
12551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12552   (eval $ac_try) 2>&5
12553   ac_status=$?
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); }; } &&
12556          { ac_try='test -s conftest$ac_exeext'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; }; then
12562   ac_cv_lib_posix_remove=yes
12563 else
12564   echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_cv_lib_posix_remove=no
12568 fi
12569 rm -f conftest.err conftest.$ac_objext \
12570       conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12572 fi
12573 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
12574 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
12575 if test $ac_cv_lib_posix_remove = yes; then
12576   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12577 fi
12578
12579     fi
12580
12581     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12582     echo "$as_me:$LINENO: checking for shmat" >&5
12583 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
12584 if test "${ac_cv_func_shmat+set}" = set; then
12585   echo $ECHO_N "(cached) $ECHO_C" >&6
12586 else
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
12594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12595 #define shmat innocuous_shmat
12596
12597 /* System header to define __stub macros and hopefully few prototypes,
12598     which can conflict with char shmat (); below.
12599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12600     <limits.h> exists even on freestanding compilers.  */
12601
12602 #ifdef __STDC__
12603 # include <limits.h>
12604 #else
12605 # include <assert.h>
12606 #endif
12607
12608 #undef shmat
12609
12610 /* Override any gcc2 internal prototype to avoid an error.  */
12611 #ifdef __cplusplus
12612 extern "C"
12613 {
12614 #endif
12615 /* We use char because int might match the return type of a gcc2
12616    builtin and then its argument prototype would still apply.  */
12617 char shmat ();
12618 /* The GNU C library defines this for functions which it implements
12619     to always fail with ENOSYS.  Some functions are actually named
12620     something starting with __ and the normal name is an alias.  */
12621 #if defined (__stub_shmat) || defined (__stub___shmat)
12622 choke me
12623 #else
12624 char (*f) () = shmat;
12625 #endif
12626 #ifdef __cplusplus
12627 }
12628 #endif
12629
12630 int
12631 main ()
12632 {
12633 return f != shmat;
12634   ;
12635   return 0;
12636 }
12637 _ACEOF
12638 rm -f conftest.$ac_objext conftest$ac_exeext
12639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12640   (eval $ac_link) 2>conftest.er1
12641   ac_status=$?
12642   grep -v '^ *+' conftest.er1 >conftest.err
12643   rm -f conftest.er1
12644   cat conftest.err >&5
12645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646   (exit $ac_status); } &&
12647          { ac_try='test -z "$ac_c_werror_flag"
12648                          || test ! -s conftest.err'
12649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650   (eval $ac_try) 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; } &&
12654          { ac_try='test -s conftest$ac_exeext'
12655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656   (eval $ac_try) 2>&5
12657   ac_status=$?
12658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659   (exit $ac_status); }; }; then
12660   ac_cv_func_shmat=yes
12661 else
12662   echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12664
12665 ac_cv_func_shmat=no
12666 fi
12667 rm -f conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
12671 echo "${ECHO_T}$ac_cv_func_shmat" >&6
12672
12673     if test $ac_cv_func_shmat = no; then
12674       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
12675 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
12676 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
12677   echo $ECHO_N "(cached) $ECHO_C" >&6
12678 else
12679   ac_check_lib_save_LIBS=$LIBS
12680 LIBS="-lipc  $LIBS"
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h.  */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h.  */
12687
12688 /* Override any gcc2 internal prototype to avoid an error.  */
12689 #ifdef __cplusplus
12690 extern "C"
12691 #endif
12692 /* We use char because int might match the return type of a gcc2
12693    builtin and then its argument prototype would still apply.  */
12694 char shmat ();
12695 int
12696 main ()
12697 {
12698 shmat ();
12699   ;
12700   return 0;
12701 }
12702 _ACEOF
12703 rm -f conftest.$ac_objext conftest$ac_exeext
12704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12705   (eval $ac_link) 2>conftest.er1
12706   ac_status=$?
12707   grep -v '^ *+' conftest.er1 >conftest.err
12708   rm -f conftest.er1
12709   cat conftest.err >&5
12710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711   (exit $ac_status); } &&
12712          { ac_try='test -z "$ac_c_werror_flag"
12713                          || test ! -s conftest.err'
12714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715   (eval $ac_try) 2>&5
12716   ac_status=$?
12717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718   (exit $ac_status); }; } &&
12719          { ac_try='test -s conftest$ac_exeext'
12720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12721   (eval $ac_try) 2>&5
12722   ac_status=$?
12723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724   (exit $ac_status); }; }; then
12725   ac_cv_lib_ipc_shmat=yes
12726 else
12727   echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_cv_lib_ipc_shmat=no
12731 fi
12732 rm -f conftest.err conftest.$ac_objext \
12733       conftest$ac_exeext conftest.$ac_ext
12734 LIBS=$ac_check_lib_save_LIBS
12735 fi
12736 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
12737 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
12738 if test $ac_cv_lib_ipc_shmat = yes; then
12739   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12740 fi
12741
12742     fi
12743   fi
12744
12745   # Check for libraries that X11R6 Xt/Xaw programs need.
12746   ac_save_LDFLAGS=$LDFLAGS
12747   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12748   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12749   # check for ICE first), but we must link in the order -lSM -lICE or
12750   # we get undefined symbols.  So assume we have SM if we have ICE.
12751   # These have to be linked with before -lX11, unlike the other
12752   # libraries we check for below, so use a different variable.
12753   # John Interrante, Karl Berry
12754   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
12755 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
12756 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
12757   echo $ECHO_N "(cached) $ECHO_C" >&6
12758 else
12759   ac_check_lib_save_LIBS=$LIBS
12760 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12761 cat >conftest.$ac_ext <<_ACEOF
12762 /* confdefs.h.  */
12763 _ACEOF
12764 cat confdefs.h >>conftest.$ac_ext
12765 cat >>conftest.$ac_ext <<_ACEOF
12766 /* end confdefs.h.  */
12767
12768 /* Override any gcc2 internal prototype to avoid an error.  */
12769 #ifdef __cplusplus
12770 extern "C"
12771 #endif
12772 /* We use char because int might match the return type of a gcc2
12773    builtin and then its argument prototype would still apply.  */
12774 char IceConnectionNumber ();
12775 int
12776 main ()
12777 {
12778 IceConnectionNumber ();
12779   ;
12780   return 0;
12781 }
12782 _ACEOF
12783 rm -f conftest.$ac_objext conftest$ac_exeext
12784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12785   (eval $ac_link) 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } &&
12792          { ac_try='test -z "$ac_c_werror_flag"
12793                          || test ! -s conftest.err'
12794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12795   (eval $ac_try) 2>&5
12796   ac_status=$?
12797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798   (exit $ac_status); }; } &&
12799          { ac_try='test -s conftest$ac_exeext'
12800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801   (eval $ac_try) 2>&5
12802   ac_status=$?
12803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804   (exit $ac_status); }; }; then
12805   ac_cv_lib_ICE_IceConnectionNumber=yes
12806 else
12807   echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 ac_cv_lib_ICE_IceConnectionNumber=no
12811 fi
12812 rm -f conftest.err conftest.$ac_objext \
12813       conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12815 fi
12816 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
12817 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
12818 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
12819   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12820 fi
12821
12822   LDFLAGS=$ac_save_LDFLAGS
12823
12824 fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854 for ac_header in \
12855         assert.h \
12856         fcntl.h \
12857         grp.h \
12858         pwd.h \
12859         libc.h \
12860         limits.h \
12861         stdarg.h \
12862         stdlib.h \
12863         stdint.h \
12864         string.h \
12865         termios.h \
12866         termcap.h \
12867         term.h \
12868         unistd.h \
12869         sys/bitypes.h \
12870         sys/byteorder.h \
12871         sys/ioctl.h \
12872         sys/select.h \
12873         sys/sockio.h \
12874         sys/time.h \
12875         sys/socket.h \
12876         arpa/nameser.h \
12877         resolv.h \
12878         mtio.h \
12879         sys/mtio.h \
12880         sys/tape.h \
12881         regex.h \
12882
12883 do
12884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12886   echo "$as_me:$LINENO: checking for $ac_header" >&5
12887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12889   echo $ECHO_N "(cached) $ECHO_C" >&6
12890 fi
12891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12893 else
12894   # Is the header compilable?
12895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12897 cat >conftest.$ac_ext <<_ACEOF
12898 /* confdefs.h.  */
12899 _ACEOF
12900 cat confdefs.h >>conftest.$ac_ext
12901 cat >>conftest.$ac_ext <<_ACEOF
12902 /* end confdefs.h.  */
12903 $ac_includes_default
12904 #include <$ac_header>
12905 _ACEOF
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908   (eval $ac_compile) 2>conftest.er1
12909   ac_status=$?
12910   grep -v '^ *+' conftest.er1 >conftest.err
12911   rm -f conftest.er1
12912   cat conftest.err >&5
12913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914   (exit $ac_status); } &&
12915          { ac_try='test -z "$ac_c_werror_flag"
12916                          || test ! -s conftest.err'
12917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12918   (eval $ac_try) 2>&5
12919   ac_status=$?
12920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921   (exit $ac_status); }; } &&
12922          { ac_try='test -s conftest.$ac_objext'
12923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924   (eval $ac_try) 2>&5
12925   ac_status=$?
12926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927   (exit $ac_status); }; }; then
12928   ac_header_compiler=yes
12929 else
12930   echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12932
12933 ac_header_compiler=no
12934 fi
12935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12937 echo "${ECHO_T}$ac_header_compiler" >&6
12938
12939 # Is the header present?
12940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12942 cat >conftest.$ac_ext <<_ACEOF
12943 /* confdefs.h.  */
12944 _ACEOF
12945 cat confdefs.h >>conftest.$ac_ext
12946 cat >>conftest.$ac_ext <<_ACEOF
12947 /* end confdefs.h.  */
12948 #include <$ac_header>
12949 _ACEOF
12950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12951   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12952   ac_status=$?
12953   grep -v '^ *+' conftest.er1 >conftest.err
12954   rm -f conftest.er1
12955   cat conftest.err >&5
12956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957   (exit $ac_status); } >/dev/null; then
12958   if test -s conftest.err; then
12959     ac_cpp_err=$ac_c_preproc_warn_flag
12960     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12961   else
12962     ac_cpp_err=
12963   fi
12964 else
12965   ac_cpp_err=yes
12966 fi
12967 if test -z "$ac_cpp_err"; then
12968   ac_header_preproc=yes
12969 else
12970   echo "$as_me: failed program was:" >&5
12971 sed 's/^/| /' conftest.$ac_ext >&5
12972
12973   ac_header_preproc=no
12974 fi
12975 rm -f conftest.err conftest.$ac_ext
12976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12977 echo "${ECHO_T}$ac_header_preproc" >&6
12978
12979 # So?  What about this header?
12980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12981   yes:no: )
12982     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12984     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12986     ac_header_preproc=yes
12987     ;;
12988   no:yes:* )
12989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12991     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12992 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12993     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12995     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12996 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12997     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12999     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13001     (
13002       cat <<\_ASBOX
13003 ## ------------------------------------------ ##
13004 ## Report this to the AC_PACKAGE_NAME lists.  ##
13005 ## ------------------------------------------ ##
13006 _ASBOX
13007     ) |
13008       sed "s/^/$as_me: WARNING:     /" >&2
13009     ;;
13010 esac
13011 echo "$as_me:$LINENO: checking for $ac_header" >&5
13012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   eval "$as_ac_Header=\$ac_header_preproc"
13017 fi
13018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13020
13021 fi
13022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13023   cat >>confdefs.h <<_ACEOF
13024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13025 _ACEOF
13026
13027 fi
13028
13029 done
13030
13031 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13032 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
13033 if test "${ac_cv_header_stdc+set}" = set; then
13034   echo $ECHO_N "(cached) $ECHO_C" >&6
13035 else
13036   cat >conftest.$ac_ext <<_ACEOF
13037 /* confdefs.h.  */
13038 _ACEOF
13039 cat confdefs.h >>conftest.$ac_ext
13040 cat >>conftest.$ac_ext <<_ACEOF
13041 /* end confdefs.h.  */
13042 #include <stdlib.h>
13043 #include <stdarg.h>
13044 #include <string.h>
13045 #include <float.h>
13046
13047 int
13048 main ()
13049 {
13050
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13057   (eval $ac_compile) 2>conftest.er1
13058   ac_status=$?
13059   grep -v '^ *+' conftest.er1 >conftest.err
13060   rm -f conftest.er1
13061   cat conftest.err >&5
13062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063   (exit $ac_status); } &&
13064          { ac_try='test -z "$ac_c_werror_flag"
13065                          || test ! -s conftest.err'
13066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13067   (eval $ac_try) 2>&5
13068   ac_status=$?
13069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070   (exit $ac_status); }; } &&
13071          { ac_try='test -s conftest.$ac_objext'
13072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13073   (eval $ac_try) 2>&5
13074   ac_status=$?
13075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076   (exit $ac_status); }; }; then
13077   ac_cv_header_stdc=yes
13078 else
13079   echo "$as_me: failed program was:" >&5
13080 sed 's/^/| /' conftest.$ac_ext >&5
13081
13082 ac_cv_header_stdc=no
13083 fi
13084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13085
13086 if test $ac_cv_header_stdc = yes; then
13087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13088   cat >conftest.$ac_ext <<_ACEOF
13089 /* confdefs.h.  */
13090 _ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h.  */
13094 #include <string.h>
13095
13096 _ACEOF
13097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13098   $EGREP "memchr" >/dev/null 2>&1; then
13099   :
13100 else
13101   ac_cv_header_stdc=no
13102 fi
13103 rm -f conftest*
13104
13105 fi
13106
13107 if test $ac_cv_header_stdc = yes; then
13108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13109   cat >conftest.$ac_ext <<_ACEOF
13110 /* confdefs.h.  */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h.  */
13115 #include <stdlib.h>
13116
13117 _ACEOF
13118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13119   $EGREP "free" >/dev/null 2>&1; then
13120   :
13121 else
13122   ac_cv_header_stdc=no
13123 fi
13124 rm -f conftest*
13125
13126 fi
13127
13128 if test $ac_cv_header_stdc = yes; then
13129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13130   if test "$cross_compiling" = yes; then
13131   :
13132 else
13133   cat >conftest.$ac_ext <<_ACEOF
13134 /* confdefs.h.  */
13135 _ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h.  */
13139 #include <ctype.h>
13140 #if ((' ' & 0x0FF) == 0x020)
13141 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13142 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13143 #else
13144 # define ISLOWER(c) \
13145                    (('a' <= (c) && (c) <= 'i') \
13146                      || ('j' <= (c) && (c) <= 'r') \
13147                      || ('s' <= (c) && (c) <= 'z'))
13148 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13149 #endif
13150
13151 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13152 int
13153 main ()
13154 {
13155   int i;
13156   for (i = 0; i < 256; i++)
13157     if (XOR (islower (i), ISLOWER (i))
13158         || toupper (i) != TOUPPER (i))
13159       exit(2);
13160   exit (0);
13161 }
13162 _ACEOF
13163 rm -f conftest$ac_exeext
13164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13165   (eval $ac_link) 2>&5
13166   ac_status=$?
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13169   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13170   (eval $ac_try) 2>&5
13171   ac_status=$?
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); }; }; then
13174   :
13175 else
13176   echo "$as_me: program exited with status $ac_status" >&5
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180 ( exit $ac_status )
13181 ac_cv_header_stdc=no
13182 fi
13183 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13184 fi
13185 fi
13186 fi
13187 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13188 echo "${ECHO_T}$ac_cv_header_stdc" >&6
13189 if test $ac_cv_header_stdc = yes; then
13190
13191 cat >>confdefs.h <<\_ACEOF
13192 #define STDC_HEADERS 1
13193 _ACEOF
13194
13195 fi
13196
13197 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
13198 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
13199 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
13200   echo $ECHO_N "(cached) $ECHO_C" >&6
13201 else
13202   cat >conftest.$ac_ext <<_ACEOF
13203 /* confdefs.h.  */
13204 _ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h.  */
13208 #include <sys/types.h>
13209 int
13210 main ()
13211 {
13212 return makedev(0, 0);
13213   ;
13214   return 0;
13215 }
13216 _ACEOF
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13219   (eval $ac_link) 2>conftest.er1
13220   ac_status=$?
13221   grep -v '^ *+' conftest.er1 >conftest.err
13222   rm -f conftest.er1
13223   cat conftest.err >&5
13224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225   (exit $ac_status); } &&
13226          { ac_try='test -z "$ac_c_werror_flag"
13227                          || test ! -s conftest.err'
13228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229   (eval $ac_try) 2>&5
13230   ac_status=$?
13231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232   (exit $ac_status); }; } &&
13233          { ac_try='test -s conftest$ac_exeext'
13234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13235   (eval $ac_try) 2>&5
13236   ac_status=$?
13237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238   (exit $ac_status); }; }; then
13239   ac_cv_header_sys_types_h_makedev=yes
13240 else
13241   echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13243
13244 ac_cv_header_sys_types_h_makedev=no
13245 fi
13246 rm -f conftest.err conftest.$ac_objext \
13247       conftest$ac_exeext conftest.$ac_ext
13248
13249 fi
13250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
13251 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
13252
13253 if test $ac_cv_header_sys_types_h_makedev = no; then
13254 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13255   echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13256 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13257 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13258   echo $ECHO_N "(cached) $ECHO_C" >&6
13259 fi
13260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13261 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13262 else
13263   # Is the header compilable?
13264 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
13265 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
13266 cat >conftest.$ac_ext <<_ACEOF
13267 /* confdefs.h.  */
13268 _ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h.  */
13272 $ac_includes_default
13273 #include <sys/mkdev.h>
13274 _ACEOF
13275 rm -f conftest.$ac_objext
13276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277   (eval $ac_compile) 2>conftest.er1
13278   ac_status=$?
13279   grep -v '^ *+' conftest.er1 >conftest.err
13280   rm -f conftest.er1
13281   cat conftest.err >&5
13282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283   (exit $ac_status); } &&
13284          { ac_try='test -z "$ac_c_werror_flag"
13285                          || test ! -s conftest.err'
13286   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287   (eval $ac_try) 2>&5
13288   ac_status=$?
13289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290   (exit $ac_status); }; } &&
13291          { ac_try='test -s conftest.$ac_objext'
13292   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13293   (eval $ac_try) 2>&5
13294   ac_status=$?
13295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296   (exit $ac_status); }; }; then
13297   ac_header_compiler=yes
13298 else
13299   echo "$as_me: failed program was:" >&5
13300 sed 's/^/| /' conftest.$ac_ext >&5
13301
13302 ac_header_compiler=no
13303 fi
13304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13305 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13306 echo "${ECHO_T}$ac_header_compiler" >&6
13307
13308 # Is the header present?
13309 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
13310 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h.  */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h.  */
13317 #include <sys/mkdev.h>
13318 _ACEOF
13319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13320   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13321   ac_status=$?
13322   grep -v '^ *+' conftest.er1 >conftest.err
13323   rm -f conftest.er1
13324   cat conftest.err >&5
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); } >/dev/null; then
13327   if test -s conftest.err; then
13328     ac_cpp_err=$ac_c_preproc_warn_flag
13329     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13330   else
13331     ac_cpp_err=
13332   fi
13333 else
13334   ac_cpp_err=yes
13335 fi
13336 if test -z "$ac_cpp_err"; then
13337   ac_header_preproc=yes
13338 else
13339   echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13341
13342   ac_header_preproc=no
13343 fi
13344 rm -f conftest.err conftest.$ac_ext
13345 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13346 echo "${ECHO_T}$ac_header_preproc" >&6
13347
13348 # So?  What about this header?
13349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13350   yes:no: )
13351     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
13352 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13353     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
13354 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
13355     ac_header_preproc=yes
13356     ;;
13357   no:yes:* )
13358     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
13359 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
13360     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
13361 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
13362     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
13363 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
13364     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
13365 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13366     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
13367 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
13368     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
13369 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
13370     (
13371       cat <<\_ASBOX
13372 ## ------------------------------------------ ##
13373 ## Report this to the AC_PACKAGE_NAME lists.  ##
13374 ## ------------------------------------------ ##
13375 _ASBOX
13376     ) |
13377       sed "s/^/$as_me: WARNING:     /" >&2
13378     ;;
13379 esac
13380 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
13381 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
13382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
13383   echo $ECHO_N "(cached) $ECHO_C" >&6
13384 else
13385   ac_cv_header_sys_mkdev_h=$ac_header_preproc
13386 fi
13387 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
13388 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
13389
13390 fi
13391 if test $ac_cv_header_sys_mkdev_h = yes; then
13392
13393 cat >>confdefs.h <<\_ACEOF
13394 #define MAJOR_IN_MKDEV 1
13395 _ACEOF
13396
13397 fi
13398
13399
13400
13401   if test $ac_cv_header_sys_mkdev_h = no; then
13402     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13403   echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13404 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13405 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 fi
13408 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13409 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13410 else
13411   # Is the header compilable?
13412 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
13413 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13415 /* confdefs.h.  */
13416 _ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h.  */
13420 $ac_includes_default
13421 #include <sys/sysmacros.h>
13422 _ACEOF
13423 rm -f conftest.$ac_objext
13424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13425   (eval $ac_compile) 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag"
13433                          || test ! -s conftest.err'
13434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435   (eval $ac_try) 2>&5
13436   ac_status=$?
13437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438   (exit $ac_status); }; } &&
13439          { ac_try='test -s conftest.$ac_objext'
13440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441   (eval $ac_try) 2>&5
13442   ac_status=$?
13443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444   (exit $ac_status); }; }; then
13445   ac_header_compiler=yes
13446 else
13447   echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13449
13450 ac_header_compiler=no
13451 fi
13452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13454 echo "${ECHO_T}$ac_header_compiler" >&6
13455
13456 # Is the header present?
13457 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
13458 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
13459 cat >conftest.$ac_ext <<_ACEOF
13460 /* confdefs.h.  */
13461 _ACEOF
13462 cat confdefs.h >>conftest.$ac_ext
13463 cat >>conftest.$ac_ext <<_ACEOF
13464 /* end confdefs.h.  */
13465 #include <sys/sysmacros.h>
13466 _ACEOF
13467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13469   ac_status=$?
13470   grep -v '^ *+' conftest.er1 >conftest.err
13471   rm -f conftest.er1
13472   cat conftest.err >&5
13473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474   (exit $ac_status); } >/dev/null; then
13475   if test -s conftest.err; then
13476     ac_cpp_err=$ac_c_preproc_warn_flag
13477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13478   else
13479     ac_cpp_err=
13480   fi
13481 else
13482   ac_cpp_err=yes
13483 fi
13484 if test -z "$ac_cpp_err"; then
13485   ac_header_preproc=yes
13486 else
13487   echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490   ac_header_preproc=no
13491 fi
13492 rm -f conftest.err conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13494 echo "${ECHO_T}$ac_header_preproc" >&6
13495
13496 # So?  What about this header?
13497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13498   yes:no: )
13499     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
13500 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13501     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
13502 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
13503     ac_header_preproc=yes
13504     ;;
13505   no:yes:* )
13506     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
13507 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
13508     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
13509 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
13510     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
13511 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
13512     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
13513 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13514     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
13515 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
13516     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
13517 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
13518     (
13519       cat <<\_ASBOX
13520 ## ------------------------------------------ ##
13521 ## Report this to the AC_PACKAGE_NAME lists.  ##
13522 ## ------------------------------------------ ##
13523 _ASBOX
13524     ) |
13525       sed "s/^/$as_me: WARNING:     /" >&2
13526     ;;
13527 esac
13528 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
13529 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
13530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
13531   echo $ECHO_N "(cached) $ECHO_C" >&6
13532 else
13533   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
13534 fi
13535 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
13536 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
13537
13538 fi
13539 if test $ac_cv_header_sys_sysmacros_h = yes; then
13540
13541 cat >>confdefs.h <<\_ACEOF
13542 #define MAJOR_IN_SYSMACROS 1
13543 _ACEOF
13544
13545 fi
13546
13547
13548   fi
13549 fi
13550
13551
13552
13553
13554
13555
13556 ac_header_dirent=no
13557 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13558   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13559 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13560 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
13561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 #include <sys/types.h>
13571 #include <$ac_hdr>
13572
13573 int
13574 main ()
13575 {
13576 if ((DIR *) 0)
13577 return 0;
13578   ;
13579   return 0;
13580 }
13581 _ACEOF
13582 rm -f conftest.$ac_objext
13583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13584   (eval $ac_compile) 2>conftest.er1
13585   ac_status=$?
13586   grep -v '^ *+' conftest.er1 >conftest.err
13587   rm -f conftest.er1
13588   cat conftest.err >&5
13589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590   (exit $ac_status); } &&
13591          { ac_try='test -z "$ac_c_werror_flag"
13592                          || test ! -s conftest.err'
13593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13594   (eval $ac_try) 2>&5
13595   ac_status=$?
13596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597   (exit $ac_status); }; } &&
13598          { ac_try='test -s conftest.$ac_objext'
13599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13600   (eval $ac_try) 2>&5
13601   ac_status=$?
13602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603   (exit $ac_status); }; }; then
13604   eval "$as_ac_Header=yes"
13605 else
13606   echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13608
13609 eval "$as_ac_Header=no"
13610 fi
13611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13612 fi
13613 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13614 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13616   cat >>confdefs.h <<_ACEOF
13617 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13618 _ACEOF
13619
13620 ac_header_dirent=$ac_hdr; break
13621 fi
13622
13623 done
13624 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13625 if test $ac_header_dirent = dirent.h; then
13626   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13627 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13628 if test "${ac_cv_search_opendir+set}" = set; then
13629   echo $ECHO_N "(cached) $ECHO_C" >&6
13630 else
13631   ac_func_search_save_LIBS=$LIBS
13632 ac_cv_search_opendir=no
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h.  */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h.  */
13639
13640 /* Override any gcc2 internal prototype to avoid an error.  */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 /* We use char because int might match the return type of a gcc2
13645    builtin and then its argument prototype would still apply.  */
13646 char opendir ();
13647 int
13648 main ()
13649 {
13650 opendir ();
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13657   (eval $ac_link) 2>conftest.er1
13658   ac_status=$?
13659   grep -v '^ *+' conftest.er1 >conftest.err
13660   rm -f conftest.er1
13661   cat conftest.err >&5
13662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663   (exit $ac_status); } &&
13664          { ac_try='test -z "$ac_c_werror_flag"
13665                          || test ! -s conftest.err'
13666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667   (eval $ac_try) 2>&5
13668   ac_status=$?
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); }; } &&
13671          { ac_try='test -s conftest$ac_exeext'
13672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673   (eval $ac_try) 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_search_opendir="none required"
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682 fi
13683 rm -f conftest.err conftest.$ac_objext \
13684       conftest$ac_exeext conftest.$ac_ext
13685 if test "$ac_cv_search_opendir" = no; then
13686   for ac_lib in dir; do
13687     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13688     cat >conftest.$ac_ext <<_ACEOF
13689 /* confdefs.h.  */
13690 _ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h.  */
13694
13695 /* Override any gcc2 internal prototype to avoid an error.  */
13696 #ifdef __cplusplus
13697 extern "C"
13698 #endif
13699 /* We use char because int might match the return type of a gcc2
13700    builtin and then its argument prototype would still apply.  */
13701 char opendir ();
13702 int
13703 main ()
13704 {
13705 opendir ();
13706   ;
13707   return 0;
13708 }
13709 _ACEOF
13710 rm -f conftest.$ac_objext conftest$ac_exeext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13712   (eval $ac_link) 2>conftest.er1
13713   ac_status=$?
13714   grep -v '^ *+' conftest.er1 >conftest.err
13715   rm -f conftest.er1
13716   cat conftest.err >&5
13717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718   (exit $ac_status); } &&
13719          { ac_try='test -z "$ac_c_werror_flag"
13720                          || test ! -s conftest.err'
13721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722   (eval $ac_try) 2>&5
13723   ac_status=$?
13724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725   (exit $ac_status); }; } &&
13726          { ac_try='test -s conftest$ac_exeext'
13727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728   (eval $ac_try) 2>&5
13729   ac_status=$?
13730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731   (exit $ac_status); }; }; then
13732   ac_cv_search_opendir="-l$ac_lib"
13733 break
13734 else
13735   echo "$as_me: failed program was:" >&5
13736 sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 fi
13739 rm -f conftest.err conftest.$ac_objext \
13740       conftest$ac_exeext conftest.$ac_ext
13741   done
13742 fi
13743 LIBS=$ac_func_search_save_LIBS
13744 fi
13745 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13746 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13747 if test "$ac_cv_search_opendir" != no; then
13748   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13749
13750 fi
13751
13752 else
13753   echo "$as_me:$LINENO: checking for library containing opendir" >&5
13754 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
13755 if test "${ac_cv_search_opendir+set}" = set; then
13756   echo $ECHO_N "(cached) $ECHO_C" >&6
13757 else
13758   ac_func_search_save_LIBS=$LIBS
13759 ac_cv_search_opendir=no
13760 cat >conftest.$ac_ext <<_ACEOF
13761 /* confdefs.h.  */
13762 _ACEOF
13763 cat confdefs.h >>conftest.$ac_ext
13764 cat >>conftest.$ac_ext <<_ACEOF
13765 /* end confdefs.h.  */
13766
13767 /* Override any gcc2 internal prototype to avoid an error.  */
13768 #ifdef __cplusplus
13769 extern "C"
13770 #endif
13771 /* We use char because int might match the return type of a gcc2
13772    builtin and then its argument prototype would still apply.  */
13773 char opendir ();
13774 int
13775 main ()
13776 {
13777 opendir ();
13778   ;
13779   return 0;
13780 }
13781 _ACEOF
13782 rm -f conftest.$ac_objext conftest$ac_exeext
13783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13784   (eval $ac_link) 2>conftest.er1
13785   ac_status=$?
13786   grep -v '^ *+' conftest.er1 >conftest.err
13787   rm -f conftest.er1
13788   cat conftest.err >&5
13789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790   (exit $ac_status); } &&
13791          { ac_try='test -z "$ac_c_werror_flag"
13792                          || test ! -s conftest.err'
13793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794   (eval $ac_try) 2>&5
13795   ac_status=$?
13796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797   (exit $ac_status); }; } &&
13798          { ac_try='test -s conftest$ac_exeext'
13799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800   (eval $ac_try) 2>&5
13801   ac_status=$?
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); }; }; then
13804   ac_cv_search_opendir="none required"
13805 else
13806   echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13808
13809 fi
13810 rm -f conftest.err conftest.$ac_objext \
13811       conftest$ac_exeext conftest.$ac_ext
13812 if test "$ac_cv_search_opendir" = no; then
13813   for ac_lib in x; do
13814     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13815     cat >conftest.$ac_ext <<_ACEOF
13816 /* confdefs.h.  */
13817 _ACEOF
13818 cat confdefs.h >>conftest.$ac_ext
13819 cat >>conftest.$ac_ext <<_ACEOF
13820 /* end confdefs.h.  */
13821
13822 /* Override any gcc2 internal prototype to avoid an error.  */
13823 #ifdef __cplusplus
13824 extern "C"
13825 #endif
13826 /* We use char because int might match the return type of a gcc2
13827    builtin and then its argument prototype would still apply.  */
13828 char opendir ();
13829 int
13830 main ()
13831 {
13832 opendir ();
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 rm -f conftest.$ac_objext conftest$ac_exeext
13838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13839   (eval $ac_link) 2>conftest.er1
13840   ac_status=$?
13841   grep -v '^ *+' conftest.er1 >conftest.err
13842   rm -f conftest.er1
13843   cat conftest.err >&5
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); } &&
13846          { ac_try='test -z "$ac_c_werror_flag"
13847                          || test ! -s conftest.err'
13848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849   (eval $ac_try) 2>&5
13850   ac_status=$?
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); }; } &&
13853          { ac_try='test -s conftest$ac_exeext'
13854   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855   (eval $ac_try) 2>&5
13856   ac_status=$?
13857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858   (exit $ac_status); }; }; then
13859   ac_cv_search_opendir="-l$ac_lib"
13860 break
13861 else
13862   echo "$as_me: failed program was:" >&5
13863 sed 's/^/| /' conftest.$ac_ext >&5
13864
13865 fi
13866 rm -f conftest.err conftest.$ac_objext \
13867       conftest$ac_exeext conftest.$ac_ext
13868   done
13869 fi
13870 LIBS=$ac_func_search_save_LIBS
13871 fi
13872 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13873 echo "${ECHO_T}$ac_cv_search_opendir" >&6
13874 if test "$ac_cv_search_opendir" != no; then
13875   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
13876
13877 fi
13878
13879 fi
13880
13881 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
13882 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13883 if test "${ac_cv_header_stat_broken+set}" = set; then
13884   echo $ECHO_N "(cached) $ECHO_C" >&6
13885 else
13886   cat >conftest.$ac_ext <<_ACEOF
13887 /* confdefs.h.  */
13888 _ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h.  */
13892 #include <sys/types.h>
13893 #include <sys/stat.h>
13894
13895 #if defined(S_ISBLK) && defined(S_IFDIR)
13896 # if S_ISBLK (S_IFDIR)
13897 You lose.
13898 # endif
13899 #endif
13900
13901 #if defined(S_ISBLK) && defined(S_IFCHR)
13902 # if S_ISBLK (S_IFCHR)
13903 You lose.
13904 # endif
13905 #endif
13906
13907 #if defined(S_ISLNK) && defined(S_IFREG)
13908 # if S_ISLNK (S_IFREG)
13909 You lose.
13910 # endif
13911 #endif
13912
13913 #if defined(S_ISSOCK) && defined(S_IFREG)
13914 # if S_ISSOCK (S_IFREG)
13915 You lose.
13916 # endif
13917 #endif
13918
13919 _ACEOF
13920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13921   $EGREP "You lose" >/dev/null 2>&1; then
13922   ac_cv_header_stat_broken=yes
13923 else
13924   ac_cv_header_stat_broken=no
13925 fi
13926 rm -f conftest*
13927
13928 fi
13929 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
13930 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
13931 if test $ac_cv_header_stat_broken = yes; then
13932
13933 cat >>confdefs.h <<\_ACEOF
13934 #define STAT_MACROS_BROKEN 1
13935 _ACEOF
13936
13937 fi
13938
13939 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13940 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
13941 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13942   echo $ECHO_N "(cached) $ECHO_C" >&6
13943 else
13944   cat >conftest.$ac_ext <<_ACEOF
13945 /* confdefs.h.  */
13946 _ACEOF
13947 cat confdefs.h >>conftest.$ac_ext
13948 cat >>conftest.$ac_ext <<_ACEOF
13949 /* end confdefs.h.  */
13950 #include <sys/types.h>
13951 #include <sys/wait.h>
13952 #ifndef WEXITSTATUS
13953 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
13954 #endif
13955 #ifndef WIFEXITED
13956 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13957 #endif
13958
13959 int
13960 main ()
13961 {
13962   int s;
13963   wait (&s);
13964   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13965   ;
13966   return 0;
13967 }
13968 _ACEOF
13969 rm -f conftest.$ac_objext
13970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13971   (eval $ac_compile) 2>conftest.er1
13972   ac_status=$?
13973   grep -v '^ *+' conftest.er1 >conftest.err
13974   rm -f conftest.er1
13975   cat conftest.err >&5
13976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977   (exit $ac_status); } &&
13978          { ac_try='test -z "$ac_c_werror_flag"
13979                          || test ! -s conftest.err'
13980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13981   (eval $ac_try) 2>&5
13982   ac_status=$?
13983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984   (exit $ac_status); }; } &&
13985          { ac_try='test -s conftest.$ac_objext'
13986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987   (eval $ac_try) 2>&5
13988   ac_status=$?
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); }; }; then
13991   ac_cv_header_sys_wait_h=yes
13992 else
13993   echo "$as_me: failed program was:" >&5
13994 sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 ac_cv_header_sys_wait_h=no
13997 fi
13998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14001 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
14002 if test $ac_cv_header_sys_wait_h = yes; then
14003
14004 cat >>confdefs.h <<\_ACEOF
14005 #define HAVE_SYS_WAIT_H 1
14006 _ACEOF
14007
14008 fi
14009
14010 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14011 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
14012 if test "${ac_cv_header_time+set}" = set; then
14013   echo $ECHO_N "(cached) $ECHO_C" >&6
14014 else
14015   cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021 #include <sys/types.h>
14022 #include <sys/time.h>
14023 #include <time.h>
14024
14025 int
14026 main ()
14027 {
14028 if ((struct tm *) 0)
14029 return 0;
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext
14035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14036   (eval $ac_compile) 2>conftest.er1
14037   ac_status=$?
14038   grep -v '^ *+' conftest.er1 >conftest.err
14039   rm -f conftest.er1
14040   cat conftest.err >&5
14041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042   (exit $ac_status); } &&
14043          { ac_try='test -z "$ac_c_werror_flag"
14044                          || test ! -s conftest.err'
14045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046   (eval $ac_try) 2>&5
14047   ac_status=$?
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); }; } &&
14050          { ac_try='test -s conftest.$ac_objext'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; }; then
14056   ac_cv_header_time=yes
14057 else
14058   echo "$as_me: failed program was:" >&5
14059 sed 's/^/| /' conftest.$ac_ext >&5
14060
14061 ac_cv_header_time=no
14062 fi
14063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14064 fi
14065 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14066 echo "${ECHO_T}$ac_cv_header_time" >&6
14067 if test $ac_cv_header_time = yes; then
14068
14069 cat >>confdefs.h <<\_ACEOF
14070 #define TIME_WITH_SYS_TIME 1
14071 _ACEOF
14072
14073 fi
14074
14075
14076 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14077 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
14078 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   cat >conftest.$ac_ext <<_ACEOF
14082 /* confdefs.h.  */
14083 _ACEOF
14084 cat confdefs.h >>conftest.$ac_ext
14085 cat >>conftest.$ac_ext <<_ACEOF
14086 /* end confdefs.h.  */
14087 $ac_includes_default
14088 int
14089 main ()
14090 {
14091 static struct stat ac_aggr;
14092 if (ac_aggr.st_blksize)
14093 return 0;
14094   ;
14095   return 0;
14096 }
14097 _ACEOF
14098 rm -f conftest.$ac_objext
14099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14100   (eval $ac_compile) 2>conftest.er1
14101   ac_status=$?
14102   grep -v '^ *+' conftest.er1 >conftest.err
14103   rm -f conftest.er1
14104   cat conftest.err >&5
14105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14106   (exit $ac_status); } &&
14107          { ac_try='test -z "$ac_c_werror_flag"
14108                          || test ! -s conftest.err'
14109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14110   (eval $ac_try) 2>&5
14111   ac_status=$?
14112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113   (exit $ac_status); }; } &&
14114          { ac_try='test -s conftest.$ac_objext'
14115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116   (eval $ac_try) 2>&5
14117   ac_status=$?
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); }; }; then
14120   ac_cv_member_struct_stat_st_blksize=yes
14121 else
14122   echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14124
14125 cat >conftest.$ac_ext <<_ACEOF
14126 /* confdefs.h.  */
14127 _ACEOF
14128 cat confdefs.h >>conftest.$ac_ext
14129 cat >>conftest.$ac_ext <<_ACEOF
14130 /* end confdefs.h.  */
14131 $ac_includes_default
14132 int
14133 main ()
14134 {
14135 static struct stat ac_aggr;
14136 if (sizeof ac_aggr.st_blksize)
14137 return 0;
14138   ;
14139   return 0;
14140 }
14141 _ACEOF
14142 rm -f conftest.$ac_objext
14143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14144   (eval $ac_compile) 2>conftest.er1
14145   ac_status=$?
14146   grep -v '^ *+' conftest.er1 >conftest.err
14147   rm -f conftest.er1
14148   cat conftest.err >&5
14149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150   (exit $ac_status); } &&
14151          { ac_try='test -z "$ac_c_werror_flag"
14152                          || test ! -s conftest.err'
14153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154   (eval $ac_try) 2>&5
14155   ac_status=$?
14156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157   (exit $ac_status); }; } &&
14158          { ac_try='test -s conftest.$ac_objext'
14159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14160   (eval $ac_try) 2>&5
14161   ac_status=$?
14162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163   (exit $ac_status); }; }; then
14164   ac_cv_member_struct_stat_st_blksize=yes
14165 else
14166   echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_cv_member_struct_stat_st_blksize=no
14170 fi
14171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14172 fi
14173 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14174 fi
14175 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
14176 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
14177 if test $ac_cv_member_struct_stat_st_blksize = yes; then
14178
14179 cat >>confdefs.h <<_ACEOF
14180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
14181 _ACEOF
14182
14183
14184 cat >>confdefs.h <<\_ACEOF
14185 #define HAVE_ST_BLKSIZE 1
14186 _ACEOF
14187
14188 fi
14189
14190
14191 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14192 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14193 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14194   echo $ECHO_N "(cached) $ECHO_C" >&6
14195 else
14196   cat >conftest.$ac_ext <<_ACEOF
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 $ac_includes_default
14203 int
14204 main ()
14205 {
14206 static struct stat ac_aggr;
14207 if (ac_aggr.st_blocks)
14208 return 0;
14209   ;
14210   return 0;
14211 }
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14215   (eval $ac_compile) 2>conftest.er1
14216   ac_status=$?
14217   grep -v '^ *+' conftest.er1 >conftest.err
14218   rm -f conftest.er1
14219   cat conftest.err >&5
14220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221   (exit $ac_status); } &&
14222          { ac_try='test -z "$ac_c_werror_flag"
14223                          || test ! -s conftest.err'
14224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14225   (eval $ac_try) 2>&5
14226   ac_status=$?
14227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14228   (exit $ac_status); }; } &&
14229          { ac_try='test -s conftest.$ac_objext'
14230   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14231   (eval $ac_try) 2>&5
14232   ac_status=$?
14233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234   (exit $ac_status); }; }; then
14235   ac_cv_member_struct_stat_st_blocks=yes
14236 else
14237   echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14239
14240 cat >conftest.$ac_ext <<_ACEOF
14241 /* confdefs.h.  */
14242 _ACEOF
14243 cat confdefs.h >>conftest.$ac_ext
14244 cat >>conftest.$ac_ext <<_ACEOF
14245 /* end confdefs.h.  */
14246 $ac_includes_default
14247 int
14248 main ()
14249 {
14250 static struct stat ac_aggr;
14251 if (sizeof ac_aggr.st_blocks)
14252 return 0;
14253   ;
14254   return 0;
14255 }
14256 _ACEOF
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259   (eval $ac_compile) 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } &&
14266          { ac_try='test -z "$ac_c_werror_flag"
14267                          || test ! -s conftest.err'
14268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14269   (eval $ac_try) 2>&5
14270   ac_status=$?
14271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272   (exit $ac_status); }; } &&
14273          { ac_try='test -s conftest.$ac_objext'
14274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14275   (eval $ac_try) 2>&5
14276   ac_status=$?
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); }; }; then
14279   ac_cv_member_struct_stat_st_blocks=yes
14280 else
14281   echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14283
14284 ac_cv_member_struct_stat_st_blocks=no
14285 fi
14286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14287 fi
14288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14289 fi
14290 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14291 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14292 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14293
14294 cat >>confdefs.h <<_ACEOF
14295 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14296 _ACEOF
14297
14298
14299 cat >>confdefs.h <<\_ACEOF
14300 #define HAVE_ST_BLOCKS 1
14301 _ACEOF
14302
14303 else
14304   case $LIBOBJS in
14305     "fileblocks.$ac_objext"   | \
14306   *" fileblocks.$ac_objext"   | \
14307     "fileblocks.$ac_objext "* | \
14308   *" fileblocks.$ac_objext "* ) ;;
14309   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14310 esac
14311
14312 fi
14313
14314
14315 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14316 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14317 if test "${ac_cv_struct_tm+set}" = set; then
14318   echo $ECHO_N "(cached) $ECHO_C" >&6
14319 else
14320   cat >conftest.$ac_ext <<_ACEOF
14321 /* confdefs.h.  */
14322 _ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h.  */
14326 #include <sys/types.h>
14327 #include <time.h>
14328
14329 int
14330 main ()
14331 {
14332 struct tm *tp; tp->tm_sec;
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext
14338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14339   (eval $ac_compile) 2>conftest.er1
14340   ac_status=$?
14341   grep -v '^ *+' conftest.er1 >conftest.err
14342   rm -f conftest.er1
14343   cat conftest.err >&5
14344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345   (exit $ac_status); } &&
14346          { ac_try='test -z "$ac_c_werror_flag"
14347                          || test ! -s conftest.err'
14348   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349   (eval $ac_try) 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest.$ac_objext'
14354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355   (eval $ac_try) 2>&5
14356   ac_status=$?
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); }; }; then
14359   ac_cv_struct_tm=time.h
14360 else
14361   echo "$as_me: failed program was:" >&5
14362 sed 's/^/| /' conftest.$ac_ext >&5
14363
14364 ac_cv_struct_tm=sys/time.h
14365 fi
14366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14367 fi
14368 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14369 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14370 if test $ac_cv_struct_tm = sys/time.h; then
14371
14372 cat >>confdefs.h <<\_ACEOF
14373 #define TM_IN_SYS_TIME 1
14374 _ACEOF
14375
14376 fi
14377
14378 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
14379 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
14380 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
14381   echo $ECHO_N "(cached) $ECHO_C" >&6
14382 else
14383   cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h.  */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h.  */
14389 #include <sys/types.h>
14390 #include <$ac_cv_struct_tm>
14391
14392
14393 int
14394 main ()
14395 {
14396 static struct tm ac_aggr;
14397 if (ac_aggr.tm_zone)
14398 return 0;
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 rm -f conftest.$ac_objext
14404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14405   (eval $ac_compile) 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } &&
14412          { ac_try='test -z "$ac_c_werror_flag"
14413                          || test ! -s conftest.err'
14414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14415   (eval $ac_try) 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest.$ac_objext'
14420   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14421   (eval $ac_try) 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; }; then
14425   ac_cv_member_struct_tm_tm_zone=yes
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h.  */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h.  */
14436 #include <sys/types.h>
14437 #include <$ac_cv_struct_tm>
14438
14439
14440 int
14441 main ()
14442 {
14443 static struct tm ac_aggr;
14444 if (sizeof ac_aggr.tm_zone)
14445 return 0;
14446   ;
14447   return 0;
14448 }
14449 _ACEOF
14450 rm -f conftest.$ac_objext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452   (eval $ac_compile) 2>conftest.er1
14453   ac_status=$?
14454   grep -v '^ *+' conftest.er1 >conftest.err
14455   rm -f conftest.er1
14456   cat conftest.err >&5
14457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458   (exit $ac_status); } &&
14459          { ac_try='test -z "$ac_c_werror_flag"
14460                          || test ! -s conftest.err'
14461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462   (eval $ac_try) 2>&5
14463   ac_status=$?
14464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465   (exit $ac_status); }; } &&
14466          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14472   ac_cv_member_struct_tm_tm_zone=yes
14473 else
14474   echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14476
14477 ac_cv_member_struct_tm_tm_zone=no
14478 fi
14479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14480 fi
14481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14482 fi
14483 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
14484 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
14485 if test $ac_cv_member_struct_tm_tm_zone = yes; then
14486
14487 cat >>confdefs.h <<_ACEOF
14488 #define HAVE_STRUCT_TM_TM_ZONE 1
14489 _ACEOF
14490
14491
14492 fi
14493
14494 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
14495
14496 cat >>confdefs.h <<\_ACEOF
14497 #define HAVE_TM_ZONE 1
14498 _ACEOF
14499
14500 else
14501   echo "$as_me:$LINENO: checking for tzname" >&5
14502 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
14503 if test "${ac_cv_var_tzname+set}" = set; then
14504   echo $ECHO_N "(cached) $ECHO_C" >&6
14505 else
14506   cat >conftest.$ac_ext <<_ACEOF
14507 /* confdefs.h.  */
14508 _ACEOF
14509 cat confdefs.h >>conftest.$ac_ext
14510 cat >>conftest.$ac_ext <<_ACEOF
14511 /* end confdefs.h.  */
14512 #include <time.h>
14513 #ifndef tzname /* For SGI.  */
14514 extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
14515 #endif
14516
14517 int
14518 main ()
14519 {
14520 atoi(*tzname);
14521   ;
14522   return 0;
14523 }
14524 _ACEOF
14525 rm -f conftest.$ac_objext conftest$ac_exeext
14526 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14527   (eval $ac_link) 2>conftest.er1
14528   ac_status=$?
14529   grep -v '^ *+' conftest.er1 >conftest.err
14530   rm -f conftest.er1
14531   cat conftest.err >&5
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); } &&
14534          { ac_try='test -z "$ac_c_werror_flag"
14535                          || test ! -s conftest.err'
14536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14537   (eval $ac_try) 2>&5
14538   ac_status=$?
14539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540   (exit $ac_status); }; } &&
14541          { ac_try='test -s conftest$ac_exeext'
14542   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14543   (eval $ac_try) 2>&5
14544   ac_status=$?
14545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546   (exit $ac_status); }; }; then
14547   ac_cv_var_tzname=yes
14548 else
14549   echo "$as_me: failed program was:" >&5
14550 sed 's/^/| /' conftest.$ac_ext >&5
14551
14552 ac_cv_var_tzname=no
14553 fi
14554 rm -f conftest.err conftest.$ac_objext \
14555       conftest$ac_exeext conftest.$ac_ext
14556 fi
14557 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
14558 echo "${ECHO_T}$ac_cv_var_tzname" >&6
14559   if test $ac_cv_var_tzname = yes; then
14560
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_TZNAME 1
14563 _ACEOF
14564
14565   fi
14566 fi
14567
14568
14569 echo "$as_me:$LINENO: checking for utime.h" >&5
14570 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
14571 if test "${ba_cv_header_utime_h+set}" = set; then
14572   echo $ECHO_N "(cached) $ECHO_C" >&6
14573 else
14574   cat >conftest.$ac_ext <<_ACEOF
14575 /* confdefs.h.  */
14576 _ACEOF
14577 cat confdefs.h >>conftest.$ac_ext
14578 cat >>conftest.$ac_ext <<_ACEOF
14579 /* end confdefs.h.  */
14580
14581 #include <sys/types.h>
14582 #include <utime.h>
14583 int
14584 main ()
14585 {
14586 struct utimbuf foo
14587   ;
14588   return 0;
14589 }
14590 _ACEOF
14591 rm -f conftest.$ac_objext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14593   (eval $ac_compile) 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } &&
14600          { ac_try='test -z "$ac_c_werror_flag"
14601                          || test ! -s conftest.err'
14602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603   (eval $ac_try) 2>&5
14604   ac_status=$?
14605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606   (exit $ac_status); }; } &&
14607          { ac_try='test -s conftest.$ac_objext'
14608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609   (eval $ac_try) 2>&5
14610   ac_status=$?
14611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612   (exit $ac_status); }; }; then
14613   ba_cv_header_utime_h=yes
14614 else
14615   echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ba_cv_header_utime_h=no
14619 fi
14620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14621 fi
14622 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
14623 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
14624 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
14625 #define HAVE_UTIME_H 1
14626 _ACEOF
14627
14628
14629 echo "$as_me:$LINENO: checking for socklen_t" >&5
14630 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14631 if test "${ba_cv_header_socklen_t+set}" = set; then
14632   echo $ECHO_N "(cached) $ECHO_C" >&6
14633 else
14634   cat >conftest.$ac_ext <<_ACEOF
14635 /* confdefs.h.  */
14636 _ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h.  */
14640
14641 #include <sys/types.h>
14642 #include <sys/socket.h>
14643 int
14644 main ()
14645 {
14646 socklen_t x
14647   ;
14648   return 0;
14649 }
14650 _ACEOF
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653   (eval $ac_compile) 2>conftest.er1
14654   ac_status=$?
14655   grep -v '^ *+' conftest.er1 >conftest.err
14656   rm -f conftest.er1
14657   cat conftest.err >&5
14658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659   (exit $ac_status); } &&
14660          { ac_try='test -z "$ac_c_werror_flag"
14661                          || test ! -s conftest.err'
14662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663   (eval $ac_try) 2>&5
14664   ac_status=$?
14665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666   (exit $ac_status); }; } &&
14667          { ac_try='test -s conftest.$ac_objext'
14668   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669   (eval $ac_try) 2>&5
14670   ac_status=$?
14671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672   (exit $ac_status); }; }; then
14673   ba_cv_header_socklen_t=yes
14674 else
14675   echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14677
14678 ba_cv_header_socklen_t=no
14679 fi
14680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14681 fi
14682 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
14683 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
14684 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_SOCKLEN_T 1
14686 _ACEOF
14687
14688
14689 echo "$as_me:$LINENO: checking for bigendian" >&5
14690 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
14691 if test "${ba_cv_bigendian+set}" = set; then
14692   echo $ECHO_N "(cached) $ECHO_C" >&6
14693 else
14694   if test "$cross_compiling" = yes; then
14695   ba_cv_bigendian=no
14696 else
14697   cat >conftest.$ac_ext <<_ACEOF
14698 /* confdefs.h.  */
14699 _ACEOF
14700 cat confdefs.h >>conftest.$ac_ext
14701 cat >>conftest.$ac_ext <<_ACEOF
14702 /* end confdefs.h.  */
14703 main(){long a=1L; char *p=(char *)&a; exit(*p);}
14704 _ACEOF
14705 rm -f conftest$ac_exeext
14706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14707   (eval $ac_link) 2>&5
14708   ac_status=$?
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14711   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14712   (eval $ac_try) 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716   ba_cv_bigendian=yes
14717 else
14718   echo "$as_me: program exited with status $ac_status" >&5
14719 echo "$as_me: failed program was:" >&5
14720 sed 's/^/| /' conftest.$ac_ext >&5
14721
14722 ( exit $ac_status )
14723 ba_cv_bigendian=no
14724 fi
14725 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14726 fi
14727 fi
14728 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
14729 echo "${ECHO_T}$ba_cv_bigendian" >&6
14730 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_BIGENDIAN 1
14732 _ACEOF
14733
14734
14735
14736 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14737 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14738 if test "${ac_cv_c_const+set}" = set; then
14739   echo $ECHO_N "(cached) $ECHO_C" >&6
14740 else
14741   cat >conftest.$ac_ext <<_ACEOF
14742 /* confdefs.h.  */
14743 _ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h.  */
14747
14748 int
14749 main ()
14750 {
14751 /* FIXME: Include the comments suggested by Paul. */
14752 #ifndef __cplusplus
14753   /* Ultrix mips cc rejects this.  */
14754   typedef int charset[2];
14755   const charset x;
14756   /* SunOS 4.1.1 cc rejects this.  */
14757   char const *const *ccp;
14758   char **p;
14759   /* NEC SVR4.0.2 mips cc rejects this.  */
14760   struct point {int x, y;};
14761   static struct point const zero = {0,0};
14762   /* AIX XL C 1.02.0.0 rejects this.
14763      It does not let you subtract one const X* pointer from another in
14764      an arm of an if-expression whose if-part is not a constant
14765      expression */
14766   const char *g = "string";
14767   ccp = &g + (g ? g-g : 0);
14768   /* HPUX 7.0 cc rejects these. */
14769   ++ccp;
14770   p = (char**) ccp;
14771   ccp = (char const *const *) p;
14772   { /* SCO 3.2v4 cc rejects this.  */
14773     char *t;
14774     char const *s = 0 ? (char *) 0 : (char const *) 0;
14775
14776     *t++ = 0;
14777   }
14778   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14779     int x[] = {25, 17};
14780     const int *foo = &x[0];
14781     ++foo;
14782   }
14783   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14784     typedef const int *iptr;
14785     iptr p = 0;
14786     ++p;
14787   }
14788   { /* AIX XL C 1.02.0.0 rejects this saying
14789        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14790     struct s { int j; const int *ap[3]; };
14791     struct s *b; b->j = 5;
14792   }
14793   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14794     const int foo = 10;
14795   }
14796 #endif
14797
14798   ;
14799   return 0;
14800 }
14801 _ACEOF
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804   (eval $ac_compile) 2>conftest.er1
14805   ac_status=$?
14806   grep -v '^ *+' conftest.er1 >conftest.err
14807   rm -f conftest.er1
14808   cat conftest.err >&5
14809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810   (exit $ac_status); } &&
14811          { ac_try='test -z "$ac_c_werror_flag"
14812                          || test ! -s conftest.err'
14813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14814   (eval $ac_try) 2>&5
14815   ac_status=$?
14816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817   (exit $ac_status); }; } &&
14818          { ac_try='test -s conftest.$ac_objext'
14819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14820   (eval $ac_try) 2>&5
14821   ac_status=$?
14822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); }; }; then
14824   ac_cv_c_const=yes
14825 else
14826   echo "$as_me: failed program was:" >&5
14827 sed 's/^/| /' conftest.$ac_ext >&5
14828
14829 ac_cv_c_const=no
14830 fi
14831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14832 fi
14833 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14834 echo "${ECHO_T}$ac_cv_c_const" >&6
14835 if test $ac_cv_c_const = no; then
14836
14837 cat >>confdefs.h <<\_ACEOF
14838 #define const
14839 _ACEOF
14840
14841 fi
14842
14843
14844
14845 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
14846 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
14847 fstype=no
14848 # The order of these tests is important.
14849 cat >conftest.$ac_ext <<_ACEOF
14850 /* confdefs.h.  */
14851 _ACEOF
14852 cat confdefs.h >>conftest.$ac_ext
14853 cat >>conftest.$ac_ext <<_ACEOF
14854 /* end confdefs.h.  */
14855 #include <sys/statvfs.h>
14856 #include <sys/fstyp.h>
14857 _ACEOF
14858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14859   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14860   ac_status=$?
14861   grep -v '^ *+' conftest.er1 >conftest.err
14862   rm -f conftest.er1
14863   cat conftest.err >&5
14864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865   (exit $ac_status); } >/dev/null; then
14866   if test -s conftest.err; then
14867     ac_cpp_err=$ac_c_preproc_warn_flag
14868     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14869   else
14870     ac_cpp_err=
14871   fi
14872 else
14873   ac_cpp_err=yes
14874 fi
14875 if test -z "$ac_cpp_err"; then
14876   cat >>confdefs.h <<\_ACEOF
14877 #define FSTYPE_STATVFS 1
14878 _ACEOF
14879  fstype=SVR4
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884
14885 fi
14886 rm -f conftest.err conftest.$ac_ext
14887 if test $fstype = no; then
14888 cat >conftest.$ac_ext <<_ACEOF
14889 /* confdefs.h.  */
14890 _ACEOF
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h.  */
14894 #include <sys/statfs.h>
14895 #include <sys/fstyp.h>
14896 _ACEOF
14897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14898   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14899   ac_status=$?
14900   grep -v '^ *+' conftest.er1 >conftest.err
14901   rm -f conftest.er1
14902   cat conftest.err >&5
14903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } >/dev/null; then
14905   if test -s conftest.err; then
14906     ac_cpp_err=$ac_c_preproc_warn_flag
14907     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14908   else
14909     ac_cpp_err=
14910   fi
14911 else
14912   ac_cpp_err=yes
14913 fi
14914 if test -z "$ac_cpp_err"; then
14915   cat >>confdefs.h <<\_ACEOF
14916 #define FSTYPE_USG_STATFS 1
14917 _ACEOF
14918  fstype=SVR3
14919 else
14920   echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14922
14923
14924 fi
14925 rm -f conftest.err conftest.$ac_ext
14926 fi
14927 if test $fstype = no; then
14928 cat >conftest.$ac_ext <<_ACEOF
14929 /* confdefs.h.  */
14930 _ACEOF
14931 cat confdefs.h >>conftest.$ac_ext
14932 cat >>conftest.$ac_ext <<_ACEOF
14933 /* end confdefs.h.  */
14934 #include <sys/statfs.h>
14935 #include <sys/vmount.h>
14936 _ACEOF
14937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14938   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14939   ac_status=$?
14940   grep -v '^ *+' conftest.er1 >conftest.err
14941   rm -f conftest.er1
14942   cat conftest.err >&5
14943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944   (exit $ac_status); } >/dev/null; then
14945   if test -s conftest.err; then
14946     ac_cpp_err=$ac_c_preproc_warn_flag
14947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14948   else
14949     ac_cpp_err=
14950   fi
14951 else
14952   ac_cpp_err=yes
14953 fi
14954 if test -z "$ac_cpp_err"; then
14955   cat >>confdefs.h <<\_ACEOF
14956 #define FSTYPE_AIX_STATFS 1
14957 _ACEOF
14958  fstype=AIX
14959 else
14960   echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14962
14963
14964 fi
14965 rm -f conftest.err conftest.$ac_ext
14966 fi
14967 if test $fstype = no; then
14968 cat >conftest.$ac_ext <<_ACEOF
14969 /* confdefs.h.  */
14970 _ACEOF
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h.  */
14974 #include <mntent.h>
14975 _ACEOF
14976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14977   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14978   ac_status=$?
14979   grep -v '^ *+' conftest.er1 >conftest.err
14980   rm -f conftest.er1
14981   cat conftest.err >&5
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); } >/dev/null; then
14984   if test -s conftest.err; then
14985     ac_cpp_err=$ac_c_preproc_warn_flag
14986     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14987   else
14988     ac_cpp_err=
14989   fi
14990 else
14991   ac_cpp_err=yes
14992 fi
14993 if test -z "$ac_cpp_err"; then
14994   cat >>confdefs.h <<\_ACEOF
14995 #define FSTYPE_MNTENT 1
14996 _ACEOF
14997  fstype=4.3BSD
14998 else
14999   echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15001
15002
15003 fi
15004 rm -f conftest.err conftest.$ac_ext
15005 fi
15006 if test $fstype = no; then
15007 cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013 #include <sys/mount.h>
15014
15015 _ACEOF
15016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15017   $EGREP "f_type;" >/dev/null 2>&1; then
15018   cat >>confdefs.h <<\_ACEOF
15019 #define FSTYPE_STATFS 1
15020 _ACEOF
15021  fstype=4.4BSD/OSF1
15022 fi
15023 rm -f conftest*
15024
15025 fi
15026 if test $fstype = no; then
15027 cat >conftest.$ac_ext <<_ACEOF
15028 /* confdefs.h.  */
15029 _ACEOF
15030 cat confdefs.h >>conftest.$ac_ext
15031 cat >>conftest.$ac_ext <<_ACEOF
15032 /* end confdefs.h.  */
15033 #include <sys/mount.h>
15034 #include <sys/fs_types.h>
15035 _ACEOF
15036 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15037   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15038   ac_status=$?
15039   grep -v '^ *+' conftest.er1 >conftest.err
15040   rm -f conftest.er1
15041   cat conftest.err >&5
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); } >/dev/null; then
15044   if test -s conftest.err; then
15045     ac_cpp_err=$ac_c_preproc_warn_flag
15046     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15047   else
15048     ac_cpp_err=
15049   fi
15050 else
15051   ac_cpp_err=yes
15052 fi
15053 if test -z "$ac_cpp_err"; then
15054   cat >>confdefs.h <<\_ACEOF
15055 #define FSTYPE_GETMNT 1
15056 _ACEOF
15057  fstype=Ultrix
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062
15063 fi
15064 rm -f conftest.err conftest.$ac_ext
15065 fi
15066 echo "$as_me:$LINENO: result: $fstype" >&5
15067 echo "${ECHO_T}$fstype" >&6
15068
15069 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15070 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
15071 if test "${ac_cv_type_signal+set}" = set; then
15072   echo $ECHO_N "(cached) $ECHO_C" >&6
15073 else
15074   cat >conftest.$ac_ext <<_ACEOF
15075 /* confdefs.h.  */
15076 _ACEOF
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h.  */
15080 #include <sys/types.h>
15081 #include <signal.h>
15082 #ifdef signal
15083 # undef signal
15084 #endif
15085 #ifdef __cplusplus
15086 extern "C" void (*signal (int, void (*)(int)))(int);
15087 #else
15088 void (*signal ()) ();
15089 #endif
15090
15091 int
15092 main ()
15093 {
15094 int i;
15095   ;
15096   return 0;
15097 }
15098 _ACEOF
15099 rm -f conftest.$ac_objext
15100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15101   (eval $ac_compile) 2>conftest.er1
15102   ac_status=$?
15103   grep -v '^ *+' conftest.er1 >conftest.err
15104   rm -f conftest.er1
15105   cat conftest.err >&5
15106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107   (exit $ac_status); } &&
15108          { ac_try='test -z "$ac_c_werror_flag"
15109                          || test ! -s conftest.err'
15110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15111   (eval $ac_try) 2>&5
15112   ac_status=$?
15113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15114   (exit $ac_status); }; } &&
15115          { ac_try='test -s conftest.$ac_objext'
15116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15117   (eval $ac_try) 2>&5
15118   ac_status=$?
15119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120   (exit $ac_status); }; }; then
15121   ac_cv_type_signal=void
15122 else
15123   echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15125
15126 ac_cv_type_signal=int
15127 fi
15128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15129 fi
15130 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15131 echo "${ECHO_T}$ac_cv_type_signal" >&6
15132
15133 cat >>confdefs.h <<_ACEOF
15134 #define RETSIGTYPE $ac_cv_type_signal
15135 _ACEOF
15136
15137
15138
15139 echo "$as_me:$LINENO: checking for type of signal functions" >&5
15140 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
15141 if test "${bash_cv_signal_vintage+set}" = set; then
15142   echo $ECHO_N "(cached) $ECHO_C" >&6
15143 else
15144
15145   cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h.  */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h.  */
15151 #include <signal.h>
15152 int
15153 main ()
15154 {
15155
15156     sigset_t ss;
15157     struct sigaction sa;
15158     sigemptyset(&ss); sigsuspend(&ss);
15159     sigaction(SIGINT, &sa, (struct sigaction *) 0);
15160     sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
15161
15162   ;
15163   return 0;
15164 }
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15168   (eval $ac_link) 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } &&
15175          { ac_try='test -z "$ac_c_werror_flag"
15176                          || test ! -s conftest.err'
15177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15178   (eval $ac_try) 2>&5
15179   ac_status=$?
15180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181   (exit $ac_status); }; } &&
15182          { ac_try='test -s conftest$ac_exeext'
15183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184   (eval $ac_try) 2>&5
15185   ac_status=$?
15186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187   (exit $ac_status); }; }; then
15188   bash_cv_signal_vintage=posix
15189 else
15190   echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15192
15193
15194     cat >conftest.$ac_ext <<_ACEOF
15195 /* confdefs.h.  */
15196 _ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h.  */
15200 #include <signal.h>
15201 int
15202 main ()
15203 {
15204
15205         int mask = sigmask(SIGINT);
15206         sigsetmask(mask); sigblock(mask); sigpause(mask);
15207
15208   ;
15209   return 0;
15210 }
15211 _ACEOF
15212 rm -f conftest.$ac_objext conftest$ac_exeext
15213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15214   (eval $ac_link) 2>conftest.er1
15215   ac_status=$?
15216   grep -v '^ *+' conftest.er1 >conftest.err
15217   rm -f conftest.er1
15218   cat conftest.err >&5
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); } &&
15221          { ac_try='test -z "$ac_c_werror_flag"
15222                          || test ! -s conftest.err'
15223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224   (eval $ac_try) 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; } &&
15228          { ac_try='test -s conftest$ac_exeext'
15229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15230   (eval $ac_try) 2>&5
15231   ac_status=$?
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); }; }; then
15234   bash_cv_signal_vintage=4.2bsd
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239
15240       cat >conftest.$ac_ext <<_ACEOF
15241 /* confdefs.h.  */
15242 _ACEOF
15243 cat confdefs.h >>conftest.$ac_ext
15244 cat >>conftest.$ac_ext <<_ACEOF
15245 /* end confdefs.h.  */
15246
15247         #include <signal.h>
15248         RETSIGTYPE foo() { }
15249 int
15250 main ()
15251 {
15252
15253                 int mask = sigmask(SIGINT);
15254                 sigset(SIGINT, foo); sigrelse(SIGINT);
15255                 sighold(SIGINT); sigpause(SIGINT);
15256
15257   ;
15258   return 0;
15259 }
15260 _ACEOF
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15263   (eval $ac_link) 2>conftest.er1
15264   ac_status=$?
15265   grep -v '^ *+' conftest.er1 >conftest.err
15266   rm -f conftest.er1
15267   cat conftest.err >&5
15268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15269   (exit $ac_status); } &&
15270          { ac_try='test -z "$ac_c_werror_flag"
15271                          || test ! -s conftest.err'
15272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15273   (eval $ac_try) 2>&5
15274   ac_status=$?
15275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15276   (exit $ac_status); }; } &&
15277          { ac_try='test -s conftest$ac_exeext'
15278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15279   (eval $ac_try) 2>&5
15280   ac_status=$?
15281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282   (exit $ac_status); }; }; then
15283   bash_cv_signal_vintage=svr3
15284 else
15285   echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15287
15288 bash_cv_signal_vintage=v7
15289
15290 fi
15291 rm -f conftest.err conftest.$ac_objext \
15292       conftest$ac_exeext conftest.$ac_ext
15293
15294 fi
15295 rm -f conftest.err conftest.$ac_objext \
15296       conftest$ac_exeext conftest.$ac_ext
15297
15298 fi
15299 rm -f conftest.err conftest.$ac_objext \
15300       conftest$ac_exeext conftest.$ac_ext
15301
15302 fi
15303
15304 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
15305 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
15306 if test "$bash_cv_signal_vintage" = posix; then
15307 cat >>confdefs.h <<\_ACEOF
15308 #define HAVE_POSIX_SIGNALS 1
15309 _ACEOF
15310
15311 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
15312 cat >>confdefs.h <<\_ACEOF
15313 #define HAVE_BSD_SIGNALS 1
15314 _ACEOF
15315
15316 elif test "$bash_cv_signal_vintage" = svr3; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_USG_SIGHOLD 1
15319 _ACEOF
15320
15321 fi
15322
15323 echo "$as_me:$LINENO: checking for mode_t" >&5
15324 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
15325 if test "${ac_cv_type_mode_t+set}" = set; then
15326   echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328   cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334 $ac_includes_default
15335 int
15336 main ()
15337 {
15338 if ((mode_t *) 0)
15339   return 0;
15340 if (sizeof (mode_t))
15341   return 0;
15342   ;
15343   return 0;
15344 }
15345 _ACEOF
15346 rm -f conftest.$ac_objext
15347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15348   (eval $ac_compile) 2>conftest.er1
15349   ac_status=$?
15350   grep -v '^ *+' conftest.er1 >conftest.err
15351   rm -f conftest.er1
15352   cat conftest.err >&5
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); } &&
15355          { ac_try='test -z "$ac_c_werror_flag"
15356                          || test ! -s conftest.err'
15357   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15358   (eval $ac_try) 2>&5
15359   ac_status=$?
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); }; } &&
15362          { ac_try='test -s conftest.$ac_objext'
15363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364   (eval $ac_try) 2>&5
15365   ac_status=$?
15366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367   (exit $ac_status); }; }; then
15368   ac_cv_type_mode_t=yes
15369 else
15370   echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.$ac_ext >&5
15372
15373 ac_cv_type_mode_t=no
15374 fi
15375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15376 fi
15377 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
15378 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
15379 if test $ac_cv_type_mode_t = yes; then
15380   :
15381 else
15382
15383 cat >>confdefs.h <<_ACEOF
15384 #define mode_t int
15385 _ACEOF
15386
15387 fi
15388
15389 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
15390 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
15391 if test "${ac_cv_type_uid_t+set}" = set; then
15392   echo $ECHO_N "(cached) $ECHO_C" >&6
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 #include <sys/types.h>
15401
15402 _ACEOF
15403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15404   $EGREP "uid_t" >/dev/null 2>&1; then
15405   ac_cv_type_uid_t=yes
15406 else
15407   ac_cv_type_uid_t=no
15408 fi
15409 rm -f conftest*
15410
15411 fi
15412 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
15413 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
15414 if test $ac_cv_type_uid_t = no; then
15415
15416 cat >>confdefs.h <<\_ACEOF
15417 #define uid_t int
15418 _ACEOF
15419
15420
15421 cat >>confdefs.h <<\_ACEOF
15422 #define gid_t int
15423 _ACEOF
15424
15425 fi
15426
15427 echo "$as_me:$LINENO: checking for size_t" >&5
15428 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15429 if test "${ac_cv_type_size_t+set}" = set; then
15430   echo $ECHO_N "(cached) $ECHO_C" >&6
15431 else
15432   cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h.  */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h.  */
15438 $ac_includes_default
15439 int
15440 main ()
15441 {
15442 if ((size_t *) 0)
15443   return 0;
15444 if (sizeof (size_t))
15445   return 0;
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext
15451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15452   (eval $ac_compile) 2>conftest.er1
15453   ac_status=$?
15454   grep -v '^ *+' conftest.er1 >conftest.err
15455   rm -f conftest.er1
15456   cat conftest.err >&5
15457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15458   (exit $ac_status); } &&
15459          { ac_try='test -z "$ac_c_werror_flag"
15460                          || test ! -s conftest.err'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; } &&
15466          { ac_try='test -s conftest.$ac_objext'
15467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468   (eval $ac_try) 2>&5
15469   ac_status=$?
15470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471   (exit $ac_status); }; }; then
15472   ac_cv_type_size_t=yes
15473 else
15474   echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15476
15477 ac_cv_type_size_t=no
15478 fi
15479 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15480 fi
15481 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15482 echo "${ECHO_T}$ac_cv_type_size_t" >&6
15483 if test $ac_cv_type_size_t = yes; then
15484   :
15485 else
15486
15487 cat >>confdefs.h <<_ACEOF
15488 #define size_t unsigned
15489 _ACEOF
15490
15491 fi
15492
15493 echo "$as_me:$LINENO: checking for pid_t" >&5
15494 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
15495 if test "${ac_cv_type_pid_t+set}" = set; then
15496   echo $ECHO_N "(cached) $ECHO_C" >&6
15497 else
15498   cat >conftest.$ac_ext <<_ACEOF
15499 /* confdefs.h.  */
15500 _ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h.  */
15504 $ac_includes_default
15505 int
15506 main ()
15507 {
15508 if ((pid_t *) 0)
15509   return 0;
15510 if (sizeof (pid_t))
15511   return 0;
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15518   (eval $ac_compile) 2>conftest.er1
15519   ac_status=$?
15520   grep -v '^ *+' conftest.er1 >conftest.err
15521   rm -f conftest.er1
15522   cat conftest.err >&5
15523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15524   (exit $ac_status); } &&
15525          { ac_try='test -z "$ac_c_werror_flag"
15526                          || test ! -s conftest.err'
15527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15528   (eval $ac_try) 2>&5
15529   ac_status=$?
15530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531   (exit $ac_status); }; } &&
15532          { ac_try='test -s conftest.$ac_objext'
15533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15534   (eval $ac_try) 2>&5
15535   ac_status=$?
15536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); }; }; then
15538   ac_cv_type_pid_t=yes
15539 else
15540   echo "$as_me: failed program was:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15542
15543 ac_cv_type_pid_t=no
15544 fi
15545 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15546 fi
15547 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
15548 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
15549 if test $ac_cv_type_pid_t = yes; then
15550   :
15551 else
15552
15553 cat >>confdefs.h <<_ACEOF
15554 #define pid_t int
15555 _ACEOF
15556
15557 fi
15558
15559 echo "$as_me:$LINENO: checking for off_t" >&5
15560 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
15561 if test "${ac_cv_type_off_t+set}" = set; then
15562   echo $ECHO_N "(cached) $ECHO_C" >&6
15563 else
15564   cat >conftest.$ac_ext <<_ACEOF
15565 /* confdefs.h.  */
15566 _ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h.  */
15570 $ac_includes_default
15571 int
15572 main ()
15573 {
15574 if ((off_t *) 0)
15575   return 0;
15576 if (sizeof (off_t))
15577   return 0;
15578   ;
15579   return 0;
15580 }
15581 _ACEOF
15582 rm -f conftest.$ac_objext
15583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15584   (eval $ac_compile) 2>conftest.er1
15585   ac_status=$?
15586   grep -v '^ *+' conftest.er1 >conftest.err
15587   rm -f conftest.er1
15588   cat conftest.err >&5
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } &&
15591          { ac_try='test -z "$ac_c_werror_flag"
15592                          || test ! -s conftest.err'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; } &&
15598          { ac_try='test -s conftest.$ac_objext'
15599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600   (eval $ac_try) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   ac_cv_type_off_t=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 ac_cv_type_off_t=no
15610 fi
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15612 fi
15613 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
15614 echo "${ECHO_T}$ac_cv_type_off_t" >&6
15615 if test $ac_cv_type_off_t = yes; then
15616   :
15617 else
15618
15619 cat >>confdefs.h <<_ACEOF
15620 #define off_t long
15621 _ACEOF
15622
15623 fi
15624
15625 echo "$as_me:$LINENO: checking for ino_t" >&5
15626 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
15627 if test "${ac_cv_type_ino_t+set}" = set; then
15628   echo $ECHO_N "(cached) $ECHO_C" >&6
15629 else
15630   cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h.  */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h.  */
15636 $ac_includes_default
15637 int
15638 main ()
15639 {
15640 if ((ino_t *) 0)
15641   return 0;
15642 if (sizeof (ino_t))
15643   return 0;
15644   ;
15645   return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext
15649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15650   (eval $ac_compile) 2>conftest.er1
15651   ac_status=$?
15652   grep -v '^ *+' conftest.er1 >conftest.err
15653   rm -f conftest.er1
15654   cat conftest.err >&5
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); } &&
15657          { ac_try='test -z "$ac_c_werror_flag"
15658                          || test ! -s conftest.err'
15659   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660   (eval $ac_try) 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest.$ac_objext'
15665   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15666   (eval $ac_try) 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_cv_type_ino_t=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_cv_type_ino_t=no
15676 fi
15677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15678 fi
15679 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
15680 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
15681 if test $ac_cv_type_ino_t = yes; then
15682   :
15683 else
15684
15685 cat >>confdefs.h <<_ACEOF
15686 #define ino_t unsigned long
15687 _ACEOF
15688
15689 fi
15690
15691 echo "$as_me:$LINENO: checking for dev_t" >&5
15692 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
15693 if test "${ac_cv_type_dev_t+set}" = set; then
15694   echo $ECHO_N "(cached) $ECHO_C" >&6
15695 else
15696   cat >conftest.$ac_ext <<_ACEOF
15697 /* confdefs.h.  */
15698 _ACEOF
15699 cat confdefs.h >>conftest.$ac_ext
15700 cat >>conftest.$ac_ext <<_ACEOF
15701 /* end confdefs.h.  */
15702 $ac_includes_default
15703 int
15704 main ()
15705 {
15706 if ((dev_t *) 0)
15707   return 0;
15708 if (sizeof (dev_t))
15709   return 0;
15710   ;
15711   return 0;
15712 }
15713 _ACEOF
15714 rm -f conftest.$ac_objext
15715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15716   (eval $ac_compile) 2>conftest.er1
15717   ac_status=$?
15718   grep -v '^ *+' conftest.er1 >conftest.err
15719   rm -f conftest.er1
15720   cat conftest.err >&5
15721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722   (exit $ac_status); } &&
15723          { ac_try='test -z "$ac_c_werror_flag"
15724                          || test ! -s conftest.err'
15725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15726   (eval $ac_try) 2>&5
15727   ac_status=$?
15728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15729   (exit $ac_status); }; } &&
15730          { ac_try='test -s conftest.$ac_objext'
15731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15732   (eval $ac_try) 2>&5
15733   ac_status=$?
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); }; }; then
15736   ac_cv_type_dev_t=yes
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741 ac_cv_type_dev_t=no
15742 fi
15743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15744 fi
15745 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
15746 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
15747 if test $ac_cv_type_dev_t = yes; then
15748   :
15749 else
15750
15751 cat >>confdefs.h <<_ACEOF
15752 #define dev_t unsigned long
15753 _ACEOF
15754
15755 fi
15756
15757 echo "$as_me:$LINENO: checking for daddr_t" >&5
15758 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
15759 if test "${ac_cv_type_daddr_t+set}" = set; then
15760   echo $ECHO_N "(cached) $ECHO_C" >&6
15761 else
15762   cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 $ac_includes_default
15769 int
15770 main ()
15771 {
15772 if ((daddr_t *) 0)
15773   return 0;
15774 if (sizeof (daddr_t))
15775   return 0;
15776   ;
15777   return 0;
15778 }
15779 _ACEOF
15780 rm -f conftest.$ac_objext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15782   (eval $ac_compile) 2>conftest.er1
15783   ac_status=$?
15784   grep -v '^ *+' conftest.er1 >conftest.err
15785   rm -f conftest.er1
15786   cat conftest.err >&5
15787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788   (exit $ac_status); } &&
15789          { ac_try='test -z "$ac_c_werror_flag"
15790                          || test ! -s conftest.err'
15791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792   (eval $ac_try) 2>&5
15793   ac_status=$?
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); }; } &&
15796          { ac_try='test -s conftest.$ac_objext'
15797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798   (eval $ac_try) 2>&5
15799   ac_status=$?
15800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801   (exit $ac_status); }; }; then
15802   ac_cv_type_daddr_t=yes
15803 else
15804   echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_cv_type_daddr_t=no
15808 fi
15809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15810 fi
15811 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
15812 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
15813 if test $ac_cv_type_daddr_t = yes; then
15814   :
15815 else
15816
15817 cat >>confdefs.h <<_ACEOF
15818 #define daddr_t long
15819 _ACEOF
15820
15821 fi
15822
15823 echo "$as_me:$LINENO: checking for major_t" >&5
15824 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
15825 if test "${ac_cv_type_major_t+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834 $ac_includes_default
15835 int
15836 main ()
15837 {
15838 if ((major_t *) 0)
15839   return 0;
15840 if (sizeof (major_t))
15841   return 0;
15842   ;
15843   return 0;
15844 }
15845 _ACEOF
15846 rm -f conftest.$ac_objext
15847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15848   (eval $ac_compile) 2>conftest.er1
15849   ac_status=$?
15850   grep -v '^ *+' conftest.er1 >conftest.err
15851   rm -f conftest.er1
15852   cat conftest.err >&5
15853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854   (exit $ac_status); } &&
15855          { ac_try='test -z "$ac_c_werror_flag"
15856                          || test ! -s conftest.err'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; } &&
15862          { ac_try='test -s conftest.$ac_objext'
15863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864   (eval $ac_try) 2>&5
15865   ac_status=$?
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); }; }; then
15868   ac_cv_type_major_t=yes
15869 else
15870   echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15872
15873 ac_cv_type_major_t=no
15874 fi
15875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15876 fi
15877 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
15878 echo "${ECHO_T}$ac_cv_type_major_t" >&6
15879 if test $ac_cv_type_major_t = yes; then
15880   :
15881 else
15882
15883 cat >>confdefs.h <<_ACEOF
15884 #define major_t int
15885 _ACEOF
15886
15887 fi
15888
15889 echo "$as_me:$LINENO: checking for minor_t" >&5
15890 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
15891 if test "${ac_cv_type_minor_t+set}" = set; then
15892   echo $ECHO_N "(cached) $ECHO_C" >&6
15893 else
15894   cat >conftest.$ac_ext <<_ACEOF
15895 /* confdefs.h.  */
15896 _ACEOF
15897 cat confdefs.h >>conftest.$ac_ext
15898 cat >>conftest.$ac_ext <<_ACEOF
15899 /* end confdefs.h.  */
15900 $ac_includes_default
15901 int
15902 main ()
15903 {
15904 if ((minor_t *) 0)
15905   return 0;
15906 if (sizeof (minor_t))
15907   return 0;
15908   ;
15909   return 0;
15910 }
15911 _ACEOF
15912 rm -f conftest.$ac_objext
15913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15914   (eval $ac_compile) 2>conftest.er1
15915   ac_status=$?
15916   grep -v '^ *+' conftest.er1 >conftest.err
15917   rm -f conftest.er1
15918   cat conftest.err >&5
15919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15920   (exit $ac_status); } &&
15921          { ac_try='test -z "$ac_c_werror_flag"
15922                          || test ! -s conftest.err'
15923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15924   (eval $ac_try) 2>&5
15925   ac_status=$?
15926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927   (exit $ac_status); }; } &&
15928          { ac_try='test -s conftest.$ac_objext'
15929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15930   (eval $ac_try) 2>&5
15931   ac_status=$?
15932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933   (exit $ac_status); }; }; then
15934   ac_cv_type_minor_t=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939 ac_cv_type_minor_t=no
15940 fi
15941 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15942 fi
15943 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
15944 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
15945 if test $ac_cv_type_minor_t = yes; then
15946   :
15947 else
15948
15949 cat >>confdefs.h <<_ACEOF
15950 #define minor_t int
15951 _ACEOF
15952
15953 fi
15954
15955 echo "$as_me:$LINENO: checking for ssize_t" >&5
15956 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
15957 if test "${ac_cv_type_ssize_t+set}" = set; then
15958   echo $ECHO_N "(cached) $ECHO_C" >&6
15959 else
15960   cat >conftest.$ac_ext <<_ACEOF
15961 /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 $ac_includes_default
15967 int
15968 main ()
15969 {
15970 if ((ssize_t *) 0)
15971   return 0;
15972 if (sizeof (ssize_t))
15973   return 0;
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext
15979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15980   (eval $ac_compile) 2>conftest.er1
15981   ac_status=$?
15982   grep -v '^ *+' conftest.er1 >conftest.err
15983   rm -f conftest.er1
15984   cat conftest.err >&5
15985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986   (exit $ac_status); } &&
15987          { ac_try='test -z "$ac_c_werror_flag"
15988                          || test ! -s conftest.err'
15989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15990   (eval $ac_try) 2>&5
15991   ac_status=$?
15992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993   (exit $ac_status); }; } &&
15994          { ac_try='test -s conftest.$ac_objext'
15995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15996   (eval $ac_try) 2>&5
15997   ac_status=$?
15998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999   (exit $ac_status); }; }; then
16000   ac_cv_type_ssize_t=yes
16001 else
16002   echo "$as_me: failed program was:" >&5
16003 sed 's/^/| /' conftest.$ac_ext >&5
16004
16005 ac_cv_type_ssize_t=no
16006 fi
16007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16008 fi
16009 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
16010 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
16011 if test $ac_cv_type_ssize_t = yes; then
16012   :
16013 else
16014
16015 cat >>confdefs.h <<_ACEOF
16016 #define ssize_t int
16017 _ACEOF
16018
16019 fi
16020
16021 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
16022 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
16023 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
16024   echo $ECHO_N "(cached) $ECHO_C" >&6
16025 else
16026   cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 $ac_includes_default
16033 int
16034 main ()
16035 {
16036 static struct stat ac_aggr;
16037 if (ac_aggr.st_blocks)
16038 return 0;
16039   ;
16040   return 0;
16041 }
16042 _ACEOF
16043 rm -f conftest.$ac_objext
16044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16045   (eval $ac_compile) 2>conftest.er1
16046   ac_status=$?
16047   grep -v '^ *+' conftest.er1 >conftest.err
16048   rm -f conftest.er1
16049   cat conftest.err >&5
16050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051   (exit $ac_status); } &&
16052          { ac_try='test -z "$ac_c_werror_flag"
16053                          || test ! -s conftest.err'
16054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16055   (eval $ac_try) 2>&5
16056   ac_status=$?
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); }; } &&
16059          { ac_try='test -s conftest.$ac_objext'
16060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16061   (eval $ac_try) 2>&5
16062   ac_status=$?
16063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064   (exit $ac_status); }; }; then
16065   ac_cv_member_struct_stat_st_blocks=yes
16066 else
16067   echo "$as_me: failed program was:" >&5
16068 sed 's/^/| /' conftest.$ac_ext >&5
16069
16070 cat >conftest.$ac_ext <<_ACEOF
16071 /* confdefs.h.  */
16072 _ACEOF
16073 cat confdefs.h >>conftest.$ac_ext
16074 cat >>conftest.$ac_ext <<_ACEOF
16075 /* end confdefs.h.  */
16076 $ac_includes_default
16077 int
16078 main ()
16079 {
16080 static struct stat ac_aggr;
16081 if (sizeof ac_aggr.st_blocks)
16082 return 0;
16083   ;
16084   return 0;
16085 }
16086 _ACEOF
16087 rm -f conftest.$ac_objext
16088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16089   (eval $ac_compile) 2>conftest.er1
16090   ac_status=$?
16091   grep -v '^ *+' conftest.er1 >conftest.err
16092   rm -f conftest.er1
16093   cat conftest.err >&5
16094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095   (exit $ac_status); } &&
16096          { ac_try='test -z "$ac_c_werror_flag"
16097                          || test ! -s conftest.err'
16098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16099   (eval $ac_try) 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; } &&
16103          { ac_try='test -s conftest.$ac_objext'
16104   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16105   (eval $ac_try) 2>&5
16106   ac_status=$?
16107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108   (exit $ac_status); }; }; then
16109   ac_cv_member_struct_stat_st_blocks=yes
16110 else
16111   echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16113
16114 ac_cv_member_struct_stat_st_blocks=no
16115 fi
16116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16117 fi
16118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16119 fi
16120 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
16121 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
16122 if test $ac_cv_member_struct_stat_st_blocks = yes; then
16123
16124 cat >>confdefs.h <<_ACEOF
16125 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16126 _ACEOF
16127
16128
16129 cat >>confdefs.h <<\_ACEOF
16130 #define HAVE_ST_BLOCKS 1
16131 _ACEOF
16132
16133 else
16134   case $LIBOBJS in
16135     "fileblocks.$ac_objext"   | \
16136   *" fileblocks.$ac_objext"   | \
16137     "fileblocks.$ac_objext "* | \
16138   *" fileblocks.$ac_objext "* ) ;;
16139   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
16140 esac
16141
16142 fi
16143
16144
16145
16146 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
16147 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
16148 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 $ac_includes_default
16158 int
16159 main ()
16160 {
16161 static struct stat ac_aggr;
16162 if (ac_aggr.st_rdev)
16163 return 0;
16164   ;
16165   return 0;
16166 }
16167 _ACEOF
16168 rm -f conftest.$ac_objext
16169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16170   (eval $ac_compile) 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } &&
16177          { ac_try='test -z "$ac_c_werror_flag"
16178                          || test ! -s conftest.err'
16179   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16180   (eval $ac_try) 2>&5
16181   ac_status=$?
16182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183   (exit $ac_status); }; } &&
16184          { ac_try='test -s conftest.$ac_objext'
16185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186   (eval $ac_try) 2>&5
16187   ac_status=$?
16188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189   (exit $ac_status); }; }; then
16190   ac_cv_member_struct_stat_st_rdev=yes
16191 else
16192   echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16194
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h.  */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h.  */
16201 $ac_includes_default
16202 int
16203 main ()
16204 {
16205 static struct stat ac_aggr;
16206 if (sizeof ac_aggr.st_rdev)
16207 return 0;
16208   ;
16209   return 0;
16210 }
16211 _ACEOF
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214   (eval $ac_compile) 2>conftest.er1
16215   ac_status=$?
16216   grep -v '^ *+' conftest.er1 >conftest.err
16217   rm -f conftest.er1
16218   cat conftest.err >&5
16219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220   (exit $ac_status); } &&
16221          { ac_try='test -z "$ac_c_werror_flag"
16222                          || test ! -s conftest.err'
16223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224   (eval $ac_try) 2>&5
16225   ac_status=$?
16226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227   (exit $ac_status); }; } &&
16228          { ac_try='test -s conftest.$ac_objext'
16229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230   (eval $ac_try) 2>&5
16231   ac_status=$?
16232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233   (exit $ac_status); }; }; then
16234   ac_cv_member_struct_stat_st_rdev=yes
16235 else
16236   echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239 ac_cv_member_struct_stat_st_rdev=no
16240 fi
16241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16242 fi
16243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16244 fi
16245 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
16246 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
16247 if test $ac_cv_member_struct_stat_st_rdev = yes; then
16248
16249 cat >>confdefs.h <<_ACEOF
16250 #define HAVE_STRUCT_STAT_ST_RDEV 1
16251 _ACEOF
16252
16253
16254 cat >>confdefs.h <<\_ACEOF
16255 #define HAVE_ST_RDEV 1
16256 _ACEOF
16257
16258 fi
16259
16260
16261 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16262 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
16263 if test "${ac_cv_struct_tm+set}" = set; then
16264   echo $ECHO_N "(cached) $ECHO_C" >&6
16265 else
16266   cat >conftest.$ac_ext <<_ACEOF
16267 /* confdefs.h.  */
16268 _ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h.  */
16272 #include <sys/types.h>
16273 #include <time.h>
16274
16275 int
16276 main ()
16277 {
16278 struct tm *tp; tp->tm_sec;
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16285   (eval $ac_compile) 2>conftest.er1
16286   ac_status=$?
16287   grep -v '^ *+' conftest.er1 >conftest.err
16288   rm -f conftest.er1
16289   cat conftest.err >&5
16290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16291   (exit $ac_status); } &&
16292          { ac_try='test -z "$ac_c_werror_flag"
16293                          || test ! -s conftest.err'
16294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295   (eval $ac_try) 2>&5
16296   ac_status=$?
16297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298   (exit $ac_status); }; } &&
16299          { ac_try='test -s conftest.$ac_objext'
16300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301   (eval $ac_try) 2>&5
16302   ac_status=$?
16303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304   (exit $ac_status); }; }; then
16305   ac_cv_struct_tm=time.h
16306 else
16307   echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 ac_cv_struct_tm=sys/time.h
16311 fi
16312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16313 fi
16314 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16315 echo "${ECHO_T}$ac_cv_struct_tm" >&6
16316 if test $ac_cv_struct_tm = sys/time.h; then
16317
16318 cat >>confdefs.h <<\_ACEOF
16319 #define TM_IN_SYS_TIME 1
16320 _ACEOF
16321
16322 fi
16323
16324 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
16325 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16326 if test "${ac_cv_c_const+set}" = set; then
16327   echo $ECHO_N "(cached) $ECHO_C" >&6
16328 else
16329   cat >conftest.$ac_ext <<_ACEOF
16330 /* confdefs.h.  */
16331 _ACEOF
16332 cat confdefs.h >>conftest.$ac_ext
16333 cat >>conftest.$ac_ext <<_ACEOF
16334 /* end confdefs.h.  */
16335
16336 int
16337 main ()
16338 {
16339 /* FIXME: Include the comments suggested by Paul. */
16340 #ifndef __cplusplus
16341   /* Ultrix mips cc rejects this.  */
16342   typedef int charset[2];
16343   const charset x;
16344   /* SunOS 4.1.1 cc rejects this.  */
16345   char const *const *ccp;
16346   char **p;
16347   /* NEC SVR4.0.2 mips cc rejects this.  */
16348   struct point {int x, y;};
16349   static struct point const zero = {0,0};
16350   /* AIX XL C 1.02.0.0 rejects this.
16351      It does not let you subtract one const X* pointer from another in
16352      an arm of an if-expression whose if-part is not a constant
16353      expression */
16354   const char *g = "string";
16355   ccp = &g + (g ? g-g : 0);
16356   /* HPUX 7.0 cc rejects these. */
16357   ++ccp;
16358   p = (char**) ccp;
16359   ccp = (char const *const *) p;
16360   { /* SCO 3.2v4 cc rejects this.  */
16361     char *t;
16362     char const *s = 0 ? (char *) 0 : (char const *) 0;
16363
16364     *t++ = 0;
16365   }
16366   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16367     int x[] = {25, 17};
16368     const int *foo = &x[0];
16369     ++foo;
16370   }
16371   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16372     typedef const int *iptr;
16373     iptr p = 0;
16374     ++p;
16375   }
16376   { /* AIX XL C 1.02.0.0 rejects this saying
16377        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16378     struct s { int j; const int *ap[3]; };
16379     struct s *b; b->j = 5;
16380   }
16381   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16382     const int foo = 10;
16383   }
16384 #endif
16385
16386   ;
16387   return 0;
16388 }
16389 _ACEOF
16390 rm -f conftest.$ac_objext
16391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16392   (eval $ac_compile) 2>conftest.er1
16393   ac_status=$?
16394   grep -v '^ *+' conftest.er1 >conftest.err
16395   rm -f conftest.er1
16396   cat conftest.err >&5
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); } &&
16399          { ac_try='test -z "$ac_c_werror_flag"
16400                          || test ! -s conftest.err'
16401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16402   (eval $ac_try) 2>&5
16403   ac_status=$?
16404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405   (exit $ac_status); }; } &&
16406          { ac_try='test -s conftest.$ac_objext'
16407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408   (eval $ac_try) 2>&5
16409   ac_status=$?
16410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411   (exit $ac_status); }; }; then
16412   ac_cv_c_const=yes
16413 else
16414   echo "$as_me: failed program was:" >&5
16415 sed 's/^/| /' conftest.$ac_ext >&5
16416
16417 ac_cv_c_const=no
16418 fi
16419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16420 fi
16421 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
16422 echo "${ECHO_T}$ac_cv_c_const" >&6
16423 if test $ac_cv_c_const = no; then
16424
16425 cat >>confdefs.h <<\_ACEOF
16426 #define const
16427 _ACEOF
16428
16429 fi
16430
16431
16432
16433 echo "$as_me:$LINENO: checking for char" >&5
16434 echo $ECHO_N "checking for char... $ECHO_C" >&6
16435 if test "${ac_cv_type_char+set}" = set; then
16436   echo $ECHO_N "(cached) $ECHO_C" >&6
16437 else
16438   cat >conftest.$ac_ext <<_ACEOF
16439 /* confdefs.h.  */
16440 _ACEOF
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h.  */
16444 $ac_includes_default
16445 int
16446 main ()
16447 {
16448 if ((char *) 0)
16449   return 0;
16450 if (sizeof (char))
16451   return 0;
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext
16457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16458   (eval $ac_compile) 2>conftest.er1
16459   ac_status=$?
16460   grep -v '^ *+' conftest.er1 >conftest.err
16461   rm -f conftest.er1
16462   cat conftest.err >&5
16463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464   (exit $ac_status); } &&
16465          { ac_try='test -z "$ac_c_werror_flag"
16466                          || test ! -s conftest.err'
16467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16468   (eval $ac_try) 2>&5
16469   ac_status=$?
16470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471   (exit $ac_status); }; } &&
16472          { ac_try='test -s conftest.$ac_objext'
16473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474   (eval $ac_try) 2>&5
16475   ac_status=$?
16476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477   (exit $ac_status); }; }; then
16478   ac_cv_type_char=yes
16479 else
16480   echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16482
16483 ac_cv_type_char=no
16484 fi
16485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16486 fi
16487 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
16488 echo "${ECHO_T}$ac_cv_type_char" >&6
16489
16490 echo "$as_me:$LINENO: checking size of char" >&5
16491 echo $ECHO_N "checking size of char... $ECHO_C" >&6
16492 if test "${ac_cv_sizeof_char+set}" = set; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   if test "$ac_cv_type_char" = yes; then
16496   # The cast to unsigned long works around a bug in the HP C Compiler
16497   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16498   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16499   # This bug is HP SR number 8606223364.
16500   if test "$cross_compiling" = yes; then
16501   # Depending upon the size, compute the lo and hi bounds.
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508 $ac_includes_default
16509 int
16510 main ()
16511 {
16512 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
16513 test_array [0] = 0
16514
16515   ;
16516   return 0;
16517 }
16518 _ACEOF
16519 rm -f conftest.$ac_objext
16520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16521   (eval $ac_compile) 2>conftest.er1
16522   ac_status=$?
16523   grep -v '^ *+' conftest.er1 >conftest.err
16524   rm -f conftest.er1
16525   cat conftest.err >&5
16526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527   (exit $ac_status); } &&
16528          { ac_try='test -z "$ac_c_werror_flag"
16529                          || test ! -s conftest.err'
16530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16531   (eval $ac_try) 2>&5
16532   ac_status=$?
16533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; } &&
16535          { ac_try='test -s conftest.$ac_objext'
16536   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16537   (eval $ac_try) 2>&5
16538   ac_status=$?
16539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16540   (exit $ac_status); }; }; then
16541   ac_lo=0 ac_mid=0
16542   while :; do
16543     cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h.  */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h.  */
16549 $ac_includes_default
16550 int
16551 main ()
16552 {
16553 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16554 test_array [0] = 0
16555
16556   ;
16557   return 0;
16558 }
16559 _ACEOF
16560 rm -f conftest.$ac_objext
16561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16562   (eval $ac_compile) 2>conftest.er1
16563   ac_status=$?
16564   grep -v '^ *+' conftest.er1 >conftest.err
16565   rm -f conftest.er1
16566   cat conftest.err >&5
16567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16568   (exit $ac_status); } &&
16569          { ac_try='test -z "$ac_c_werror_flag"
16570                          || test ! -s conftest.err'
16571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16572   (eval $ac_try) 2>&5
16573   ac_status=$?
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); }; } &&
16576          { ac_try='test -s conftest.$ac_objext'
16577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16578   (eval $ac_try) 2>&5
16579   ac_status=$?
16580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16581   (exit $ac_status); }; }; then
16582   ac_hi=$ac_mid; break
16583 else
16584   echo "$as_me: failed program was:" >&5
16585 sed 's/^/| /' conftest.$ac_ext >&5
16586
16587 ac_lo=`expr $ac_mid + 1`
16588                     if test $ac_lo -le $ac_mid; then
16589                       ac_lo= ac_hi=
16590                       break
16591                     fi
16592                     ac_mid=`expr 2 '*' $ac_mid + 1`
16593 fi
16594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16595   done
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 cat >conftest.$ac_ext <<_ACEOF
16601 /* confdefs.h.  */
16602 _ACEOF
16603 cat confdefs.h >>conftest.$ac_ext
16604 cat >>conftest.$ac_ext <<_ACEOF
16605 /* end confdefs.h.  */
16606 $ac_includes_default
16607 int
16608 main ()
16609 {
16610 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
16611 test_array [0] = 0
16612
16613   ;
16614   return 0;
16615 }
16616 _ACEOF
16617 rm -f conftest.$ac_objext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16619   (eval $ac_compile) 2>conftest.er1
16620   ac_status=$?
16621   grep -v '^ *+' conftest.er1 >conftest.err
16622   rm -f conftest.er1
16623   cat conftest.err >&5
16624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625   (exit $ac_status); } &&
16626          { ac_try='test -z "$ac_c_werror_flag"
16627                          || test ! -s conftest.err'
16628   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629   (eval $ac_try) 2>&5
16630   ac_status=$?
16631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632   (exit $ac_status); }; } &&
16633          { ac_try='test -s conftest.$ac_objext'
16634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635   (eval $ac_try) 2>&5
16636   ac_status=$?
16637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638   (exit $ac_status); }; }; then
16639   ac_hi=-1 ac_mid=-1
16640   while :; do
16641     cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 $ac_includes_default
16648 int
16649 main ()
16650 {
16651 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
16652 test_array [0] = 0
16653
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 rm -f conftest.$ac_objext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16660   (eval $ac_compile) 2>conftest.er1
16661   ac_status=$?
16662   grep -v '^ *+' conftest.er1 >conftest.err
16663   rm -f conftest.er1
16664   cat conftest.err >&5
16665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666   (exit $ac_status); } &&
16667          { ac_try='test -z "$ac_c_werror_flag"
16668                          || test ! -s conftest.err'
16669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16670   (eval $ac_try) 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); }; } &&
16674          { ac_try='test -s conftest.$ac_objext'
16675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16676   (eval $ac_try) 2>&5
16677   ac_status=$?
16678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679   (exit $ac_status); }; }; then
16680   ac_lo=$ac_mid; break
16681 else
16682   echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16684
16685 ac_hi=`expr '(' $ac_mid ')' - 1`
16686                        if test $ac_mid -le $ac_hi; then
16687                          ac_lo= ac_hi=
16688                          break
16689                        fi
16690                        ac_mid=`expr 2 '*' $ac_mid`
16691 fi
16692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16693   done
16694 else
16695   echo "$as_me: failed program was:" >&5
16696 sed 's/^/| /' conftest.$ac_ext >&5
16697
16698 ac_lo= ac_hi=
16699 fi
16700 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16701 fi
16702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16703 # Binary search between lo and hi bounds.
16704 while test "x$ac_lo" != "x$ac_hi"; do
16705   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16706   cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h.  */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h.  */
16712 $ac_includes_default
16713 int
16714 main ()
16715 {
16716 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
16717 test_array [0] = 0
16718
16719   ;
16720   return 0;
16721 }
16722 _ACEOF
16723 rm -f conftest.$ac_objext
16724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16725   (eval $ac_compile) 2>conftest.er1
16726   ac_status=$?
16727   grep -v '^ *+' conftest.er1 >conftest.err
16728   rm -f conftest.er1
16729   cat conftest.err >&5
16730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731   (exit $ac_status); } &&
16732          { ac_try='test -z "$ac_c_werror_flag"
16733                          || test ! -s conftest.err'
16734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735   (eval $ac_try) 2>&5
16736   ac_status=$?
16737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738   (exit $ac_status); }; } &&
16739          { ac_try='test -s conftest.$ac_objext'
16740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16741   (eval $ac_try) 2>&5
16742   ac_status=$?
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); }; }; then
16745   ac_hi=$ac_mid
16746 else
16747   echo "$as_me: failed program was:" >&5
16748 sed 's/^/| /' conftest.$ac_ext >&5
16749
16750 ac_lo=`expr '(' $ac_mid ')' + 1`
16751 fi
16752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16753 done
16754 case $ac_lo in
16755 ?*) ac_cv_sizeof_char=$ac_lo;;
16756 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16757 See \`config.log' for more details." >&5
16758 echo "$as_me: error: cannot compute sizeof (char), 77
16759 See \`config.log' for more details." >&2;}
16760    { (exit 1); exit 1; }; } ;;
16761 esac
16762 else
16763   if test "$cross_compiling" = yes; then
16764   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16765 See \`config.log' for more details." >&5
16766 echo "$as_me: error: cannot run test program while cross compiling
16767 See \`config.log' for more details." >&2;}
16768    { (exit 1); exit 1; }; }
16769 else
16770   cat >conftest.$ac_ext <<_ACEOF
16771 /* confdefs.h.  */
16772 _ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h.  */
16776 $ac_includes_default
16777 long longval () { return (long) (sizeof (char)); }
16778 unsigned long ulongval () { return (long) (sizeof (char)); }
16779 #include <stdio.h>
16780 #include <stdlib.h>
16781 int
16782 main ()
16783 {
16784
16785   FILE *f = fopen ("conftest.val", "w");
16786   if (! f)
16787     exit (1);
16788   if (((long) (sizeof (char))) < 0)
16789     {
16790       long i = longval ();
16791       if (i != ((long) (sizeof (char))))
16792         exit (1);
16793       fprintf (f, "%ld\n", i);
16794     }
16795   else
16796     {
16797       unsigned long i = ulongval ();
16798       if (i != ((long) (sizeof (char))))
16799         exit (1);
16800       fprintf (f, "%lu\n", i);
16801     }
16802   exit (ferror (f) || fclose (f) != 0);
16803
16804   ;
16805   return 0;
16806 }
16807 _ACEOF
16808 rm -f conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810   (eval $ac_link) 2>&5
16811   ac_status=$?
16812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815   (eval $ac_try) 2>&5
16816   ac_status=$?
16817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818   (exit $ac_status); }; }; then
16819   ac_cv_sizeof_char=`cat conftest.val`
16820 else
16821   echo "$as_me: program exited with status $ac_status" >&5
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16824
16825 ( exit $ac_status )
16826 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
16827 See \`config.log' for more details." >&5
16828 echo "$as_me: error: cannot compute sizeof (char), 77
16829 See \`config.log' for more details." >&2;}
16830    { (exit 1); exit 1; }; }
16831 fi
16832 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16833 fi
16834 fi
16835 rm -f conftest.val
16836 else
16837   ac_cv_sizeof_char=0
16838 fi
16839 fi
16840 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
16841 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
16842 cat >>confdefs.h <<_ACEOF
16843 #define SIZEOF_CHAR $ac_cv_sizeof_char
16844 _ACEOF
16845
16846
16847 echo "$as_me:$LINENO: checking for short int" >&5
16848 echo $ECHO_N "checking for short int... $ECHO_C" >&6
16849 if test "${ac_cv_type_short_int+set}" = set; then
16850   echo $ECHO_N "(cached) $ECHO_C" >&6
16851 else
16852   cat >conftest.$ac_ext <<_ACEOF
16853 /* confdefs.h.  */
16854 _ACEOF
16855 cat confdefs.h >>conftest.$ac_ext
16856 cat >>conftest.$ac_ext <<_ACEOF
16857 /* end confdefs.h.  */
16858 $ac_includes_default
16859 int
16860 main ()
16861 {
16862 if ((short int *) 0)
16863   return 0;
16864 if (sizeof (short int))
16865   return 0;
16866   ;
16867   return 0;
16868 }
16869 _ACEOF
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872   (eval $ac_compile) 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } &&
16879          { ac_try='test -z "$ac_c_werror_flag"
16880                          || test ! -s conftest.err'
16881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16882   (eval $ac_try) 2>&5
16883   ac_status=$?
16884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16885   (exit $ac_status); }; } &&
16886          { ac_try='test -s conftest.$ac_objext'
16887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16888   (eval $ac_try) 2>&5
16889   ac_status=$?
16890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891   (exit $ac_status); }; }; then
16892   ac_cv_type_short_int=yes
16893 else
16894   echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16896
16897 ac_cv_type_short_int=no
16898 fi
16899 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16900 fi
16901 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
16902 echo "${ECHO_T}$ac_cv_type_short_int" >&6
16903
16904 echo "$as_me:$LINENO: checking size of short int" >&5
16905 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
16906 if test "${ac_cv_sizeof_short_int+set}" = set; then
16907   echo $ECHO_N "(cached) $ECHO_C" >&6
16908 else
16909   if test "$ac_cv_type_short_int" = yes; then
16910   # The cast to unsigned long works around a bug in the HP C Compiler
16911   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16912   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16913   # This bug is HP SR number 8606223364.
16914   if test "$cross_compiling" = yes; then
16915   # Depending upon the size, compute the lo and hi bounds.
16916 cat >conftest.$ac_ext <<_ACEOF
16917 /* confdefs.h.  */
16918 _ACEOF
16919 cat confdefs.h >>conftest.$ac_ext
16920 cat >>conftest.$ac_ext <<_ACEOF
16921 /* end confdefs.h.  */
16922 $ac_includes_default
16923 int
16924 main ()
16925 {
16926 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
16927 test_array [0] = 0
16928
16929   ;
16930   return 0;
16931 }
16932 _ACEOF
16933 rm -f conftest.$ac_objext
16934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16935   (eval $ac_compile) 2>conftest.er1
16936   ac_status=$?
16937   grep -v '^ *+' conftest.er1 >conftest.err
16938   rm -f conftest.er1
16939   cat conftest.err >&5
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } &&
16942          { ac_try='test -z "$ac_c_werror_flag"
16943                          || test ! -s conftest.err'
16944   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16945   (eval $ac_try) 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; } &&
16949          { ac_try='test -s conftest.$ac_objext'
16950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16951   (eval $ac_try) 2>&5
16952   ac_status=$?
16953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16954   (exit $ac_status); }; }; then
16955   ac_lo=0 ac_mid=0
16956   while :; do
16957     cat >conftest.$ac_ext <<_ACEOF
16958 /* confdefs.h.  */
16959 _ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h.  */
16963 $ac_includes_default
16964 int
16965 main ()
16966 {
16967 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
16968 test_array [0] = 0
16969
16970   ;
16971   return 0;
16972 }
16973 _ACEOF
16974 rm -f conftest.$ac_objext
16975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16976   (eval $ac_compile) 2>conftest.er1
16977   ac_status=$?
16978   grep -v '^ *+' conftest.er1 >conftest.err
16979   rm -f conftest.er1
16980   cat conftest.err >&5
16981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982   (exit $ac_status); } &&
16983          { ac_try='test -z "$ac_c_werror_flag"
16984                          || test ! -s conftest.err'
16985   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986   (eval $ac_try) 2>&5
16987   ac_status=$?
16988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989   (exit $ac_status); }; } &&
16990          { ac_try='test -s conftest.$ac_objext'
16991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16992   (eval $ac_try) 2>&5
16993   ac_status=$?
16994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16995   (exit $ac_status); }; }; then
16996   ac_hi=$ac_mid; break
16997 else
16998   echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_lo=`expr $ac_mid + 1`
17002                     if test $ac_lo -le $ac_mid; then
17003                       ac_lo= ac_hi=
17004                       break
17005                     fi
17006                     ac_mid=`expr 2 '*' $ac_mid + 1`
17007 fi
17008 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17009   done
17010 else
17011   echo "$as_me: failed program was:" >&5
17012 sed 's/^/| /' conftest.$ac_ext >&5
17013
17014 cat >conftest.$ac_ext <<_ACEOF
17015 /* confdefs.h.  */
17016 _ACEOF
17017 cat confdefs.h >>conftest.$ac_ext
17018 cat >>conftest.$ac_ext <<_ACEOF
17019 /* end confdefs.h.  */
17020 $ac_includes_default
17021 int
17022 main ()
17023 {
17024 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
17025 test_array [0] = 0
17026
17027   ;
17028   return 0;
17029 }
17030 _ACEOF
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033   (eval $ac_compile) 2>conftest.er1
17034   ac_status=$?
17035   grep -v '^ *+' conftest.er1 >conftest.err
17036   rm -f conftest.er1
17037   cat conftest.err >&5
17038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039   (exit $ac_status); } &&
17040          { ac_try='test -z "$ac_c_werror_flag"
17041                          || test ! -s conftest.err'
17042   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043   (eval $ac_try) 2>&5
17044   ac_status=$?
17045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); }; } &&
17047          { ac_try='test -s conftest.$ac_objext'
17048   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049   (eval $ac_try) 2>&5
17050   ac_status=$?
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }; }; then
17053   ac_hi=-1 ac_mid=-1
17054   while :; do
17055     cat >conftest.$ac_ext <<_ACEOF
17056 /* confdefs.h.  */
17057 _ACEOF
17058 cat confdefs.h >>conftest.$ac_ext
17059 cat >>conftest.$ac_ext <<_ACEOF
17060 /* end confdefs.h.  */
17061 $ac_includes_default
17062 int
17063 main ()
17064 {
17065 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
17066 test_array [0] = 0
17067
17068   ;
17069   return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074   (eval $ac_compile) 2>conftest.er1
17075   ac_status=$?
17076   grep -v '^ *+' conftest.er1 >conftest.err
17077   rm -f conftest.er1
17078   cat conftest.err >&5
17079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080   (exit $ac_status); } &&
17081          { ac_try='test -z "$ac_c_werror_flag"
17082                          || test ! -s conftest.err'
17083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084   (eval $ac_try) 2>&5
17085   ac_status=$?
17086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087   (exit $ac_status); }; } &&
17088          { ac_try='test -s conftest.$ac_objext'
17089   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17090   (eval $ac_try) 2>&5
17091   ac_status=$?
17092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17093   (exit $ac_status); }; }; then
17094   ac_lo=$ac_mid; break
17095 else
17096   echo "$as_me: failed program was:" >&5
17097 sed 's/^/| /' conftest.$ac_ext >&5
17098
17099 ac_hi=`expr '(' $ac_mid ')' - 1`
17100                        if test $ac_mid -le $ac_hi; then
17101                          ac_lo= ac_hi=
17102                          break
17103                        fi
17104                        ac_mid=`expr 2 '*' $ac_mid`
17105 fi
17106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17107   done
17108 else
17109   echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_lo= ac_hi=
17113 fi
17114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17115 fi
17116 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17117 # Binary search between lo and hi bounds.
17118 while test "x$ac_lo" != "x$ac_hi"; do
17119   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17120   cat >conftest.$ac_ext <<_ACEOF
17121 /* confdefs.h.  */
17122 _ACEOF
17123 cat confdefs.h >>conftest.$ac_ext
17124 cat >>conftest.$ac_ext <<_ACEOF
17125 /* end confdefs.h.  */
17126 $ac_includes_default
17127 int
17128 main ()
17129 {
17130 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
17131 test_array [0] = 0
17132
17133   ;
17134   return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17139   (eval $ac_compile) 2>conftest.er1
17140   ac_status=$?
17141   grep -v '^ *+' conftest.er1 >conftest.err
17142   rm -f conftest.er1
17143   cat conftest.err >&5
17144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145   (exit $ac_status); } &&
17146          { ac_try='test -z "$ac_c_werror_flag"
17147                          || test ! -s conftest.err'
17148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149   (eval $ac_try) 2>&5
17150   ac_status=$?
17151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152   (exit $ac_status); }; } &&
17153          { ac_try='test -s conftest.$ac_objext'
17154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155   (eval $ac_try) 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; }; then
17159   ac_hi=$ac_mid
17160 else
17161   echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.$ac_ext >&5
17163
17164 ac_lo=`expr '(' $ac_mid ')' + 1`
17165 fi
17166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17167 done
17168 case $ac_lo in
17169 ?*) ac_cv_sizeof_short_int=$ac_lo;;
17170 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17171 See \`config.log' for more details." >&5
17172 echo "$as_me: error: cannot compute sizeof (short int), 77
17173 See \`config.log' for more details." >&2;}
17174    { (exit 1); exit 1; }; } ;;
17175 esac
17176 else
17177   if test "$cross_compiling" = yes; then
17178   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17179 See \`config.log' for more details." >&5
17180 echo "$as_me: error: cannot run test program while cross compiling
17181 See \`config.log' for more details." >&2;}
17182    { (exit 1); exit 1; }; }
17183 else
17184   cat >conftest.$ac_ext <<_ACEOF
17185 /* confdefs.h.  */
17186 _ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h.  */
17190 $ac_includes_default
17191 long longval () { return (long) (sizeof (short int)); }
17192 unsigned long ulongval () { return (long) (sizeof (short int)); }
17193 #include <stdio.h>
17194 #include <stdlib.h>
17195 int
17196 main ()
17197 {
17198
17199   FILE *f = fopen ("conftest.val", "w");
17200   if (! f)
17201     exit (1);
17202   if (((long) (sizeof (short int))) < 0)
17203     {
17204       long i = longval ();
17205       if (i != ((long) (sizeof (short int))))
17206         exit (1);
17207       fprintf (f, "%ld\n", i);
17208     }
17209   else
17210     {
17211       unsigned long i = ulongval ();
17212       if (i != ((long) (sizeof (short int))))
17213         exit (1);
17214       fprintf (f, "%lu\n", i);
17215     }
17216   exit (ferror (f) || fclose (f) != 0);
17217
17218   ;
17219   return 0;
17220 }
17221 _ACEOF
17222 rm -f conftest$ac_exeext
17223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17224   (eval $ac_link) 2>&5
17225   ac_status=$?
17226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229   (eval $ac_try) 2>&5
17230   ac_status=$?
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); }; }; then
17233   ac_cv_sizeof_short_int=`cat conftest.val`
17234 else
17235   echo "$as_me: program exited with status $ac_status" >&5
17236 echo "$as_me: failed program was:" >&5
17237 sed 's/^/| /' conftest.$ac_ext >&5
17238
17239 ( exit $ac_status )
17240 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
17241 See \`config.log' for more details." >&5
17242 echo "$as_me: error: cannot compute sizeof (short int), 77
17243 See \`config.log' for more details." >&2;}
17244    { (exit 1); exit 1; }; }
17245 fi
17246 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17247 fi
17248 fi
17249 rm -f conftest.val
17250 else
17251   ac_cv_sizeof_short_int=0
17252 fi
17253 fi
17254 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
17255 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
17256 cat >>confdefs.h <<_ACEOF
17257 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
17258 _ACEOF
17259
17260
17261 echo "$as_me:$LINENO: checking for int" >&5
17262 echo $ECHO_N "checking for int... $ECHO_C" >&6
17263 if test "${ac_cv_type_int+set}" = set; then
17264   echo $ECHO_N "(cached) $ECHO_C" >&6
17265 else
17266   cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272 $ac_includes_default
17273 int
17274 main ()
17275 {
17276 if ((int *) 0)
17277   return 0;
17278 if (sizeof (int))
17279   return 0;
17280   ;
17281   return 0;
17282 }
17283 _ACEOF
17284 rm -f conftest.$ac_objext
17285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17286   (eval $ac_compile) 2>conftest.er1
17287   ac_status=$?
17288   grep -v '^ *+' conftest.er1 >conftest.err
17289   rm -f conftest.er1
17290   cat conftest.err >&5
17291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292   (exit $ac_status); } &&
17293          { ac_try='test -z "$ac_c_werror_flag"
17294                          || test ! -s conftest.err'
17295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296   (eval $ac_try) 2>&5
17297   ac_status=$?
17298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299   (exit $ac_status); }; } &&
17300          { ac_try='test -s conftest.$ac_objext'
17301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302   (eval $ac_try) 2>&5
17303   ac_status=$?
17304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305   (exit $ac_status); }; }; then
17306   ac_cv_type_int=yes
17307 else
17308   echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311 ac_cv_type_int=no
17312 fi
17313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17314 fi
17315 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17316 echo "${ECHO_T}$ac_cv_type_int" >&6
17317
17318 echo "$as_me:$LINENO: checking size of int" >&5
17319 echo $ECHO_N "checking size of int... $ECHO_C" >&6
17320 if test "${ac_cv_sizeof_int+set}" = set; then
17321   echo $ECHO_N "(cached) $ECHO_C" >&6
17322 else
17323   if test "$ac_cv_type_int" = yes; then
17324   # The cast to unsigned long works around a bug in the HP C Compiler
17325   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17326   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17327   # This bug is HP SR number 8606223364.
17328   if test "$cross_compiling" = yes; then
17329   # Depending upon the size, compute the lo and hi bounds.
17330 cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h.  */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h.  */
17336 $ac_includes_default
17337 int
17338 main ()
17339 {
17340 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
17341 test_array [0] = 0
17342
17343   ;
17344   return 0;
17345 }
17346 _ACEOF
17347 rm -f conftest.$ac_objext
17348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17349   (eval $ac_compile) 2>conftest.er1
17350   ac_status=$?
17351   grep -v '^ *+' conftest.er1 >conftest.err
17352   rm -f conftest.er1
17353   cat conftest.err >&5
17354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355   (exit $ac_status); } &&
17356          { ac_try='test -z "$ac_c_werror_flag"
17357                          || test ! -s conftest.err'
17358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17359   (eval $ac_try) 2>&5
17360   ac_status=$?
17361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17362   (exit $ac_status); }; } &&
17363          { ac_try='test -s conftest.$ac_objext'
17364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365   (eval $ac_try) 2>&5
17366   ac_status=$?
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); }; }; then
17369   ac_lo=0 ac_mid=0
17370   while :; do
17371     cat >conftest.$ac_ext <<_ACEOF
17372 /* confdefs.h.  */
17373 _ACEOF
17374 cat confdefs.h >>conftest.$ac_ext
17375 cat >>conftest.$ac_ext <<_ACEOF
17376 /* end confdefs.h.  */
17377 $ac_includes_default
17378 int
17379 main ()
17380 {
17381 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17382 test_array [0] = 0
17383
17384   ;
17385   return 0;
17386 }
17387 _ACEOF
17388 rm -f conftest.$ac_objext
17389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17390   (eval $ac_compile) 2>conftest.er1
17391   ac_status=$?
17392   grep -v '^ *+' conftest.er1 >conftest.err
17393   rm -f conftest.er1
17394   cat conftest.err >&5
17395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396   (exit $ac_status); } &&
17397          { ac_try='test -z "$ac_c_werror_flag"
17398                          || test ! -s conftest.err'
17399   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17400   (eval $ac_try) 2>&5
17401   ac_status=$?
17402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403   (exit $ac_status); }; } &&
17404          { ac_try='test -s conftest.$ac_objext'
17405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406   (eval $ac_try) 2>&5
17407   ac_status=$?
17408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409   (exit $ac_status); }; }; then
17410   ac_hi=$ac_mid; break
17411 else
17412   echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ac_lo=`expr $ac_mid + 1`
17416                     if test $ac_lo -le $ac_mid; then
17417                       ac_lo= ac_hi=
17418                       break
17419                     fi
17420                     ac_mid=`expr 2 '*' $ac_mid + 1`
17421 fi
17422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17423   done
17424 else
17425   echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17427
17428 cat >conftest.$ac_ext <<_ACEOF
17429 /* confdefs.h.  */
17430 _ACEOF
17431 cat confdefs.h >>conftest.$ac_ext
17432 cat >>conftest.$ac_ext <<_ACEOF
17433 /* end confdefs.h.  */
17434 $ac_includes_default
17435 int
17436 main ()
17437 {
17438 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
17439 test_array [0] = 0
17440
17441   ;
17442   return 0;
17443 }
17444 _ACEOF
17445 rm -f conftest.$ac_objext
17446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17447   (eval $ac_compile) 2>conftest.er1
17448   ac_status=$?
17449   grep -v '^ *+' conftest.er1 >conftest.err
17450   rm -f conftest.er1
17451   cat conftest.err >&5
17452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17453   (exit $ac_status); } &&
17454          { ac_try='test -z "$ac_c_werror_flag"
17455                          || test ! -s conftest.err'
17456   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17457   (eval $ac_try) 2>&5
17458   ac_status=$?
17459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460   (exit $ac_status); }; } &&
17461          { ac_try='test -s conftest.$ac_objext'
17462   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17463   (eval $ac_try) 2>&5
17464   ac_status=$?
17465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466   (exit $ac_status); }; }; then
17467   ac_hi=-1 ac_mid=-1
17468   while :; do
17469     cat >conftest.$ac_ext <<_ACEOF
17470 /* confdefs.h.  */
17471 _ACEOF
17472 cat confdefs.h >>conftest.$ac_ext
17473 cat >>conftest.$ac_ext <<_ACEOF
17474 /* end confdefs.h.  */
17475 $ac_includes_default
17476 int
17477 main ()
17478 {
17479 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
17480 test_array [0] = 0
17481
17482   ;
17483   return 0;
17484 }
17485 _ACEOF
17486 rm -f conftest.$ac_objext
17487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17488   (eval $ac_compile) 2>conftest.er1
17489   ac_status=$?
17490   grep -v '^ *+' conftest.er1 >conftest.err
17491   rm -f conftest.er1
17492   cat conftest.err >&5
17493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494   (exit $ac_status); } &&
17495          { ac_try='test -z "$ac_c_werror_flag"
17496                          || test ! -s conftest.err'
17497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498   (eval $ac_try) 2>&5
17499   ac_status=$?
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); }; } &&
17502          { ac_try='test -s conftest.$ac_objext'
17503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17504   (eval $ac_try) 2>&5
17505   ac_status=$?
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); }; }; then
17508   ac_lo=$ac_mid; break
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513 ac_hi=`expr '(' $ac_mid ')' - 1`
17514                        if test $ac_mid -le $ac_hi; then
17515                          ac_lo= ac_hi=
17516                          break
17517                        fi
17518                        ac_mid=`expr 2 '*' $ac_mid`
17519 fi
17520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17521   done
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526 ac_lo= ac_hi=
17527 fi
17528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17529 fi
17530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17531 # Binary search between lo and hi bounds.
17532 while test "x$ac_lo" != "x$ac_hi"; do
17533   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17534   cat >conftest.$ac_ext <<_ACEOF
17535 /* confdefs.h.  */
17536 _ACEOF
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h.  */
17540 $ac_includes_default
17541 int
17542 main ()
17543 {
17544 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
17545 test_array [0] = 0
17546
17547   ;
17548   return 0;
17549 }
17550 _ACEOF
17551 rm -f conftest.$ac_objext
17552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17553   (eval $ac_compile) 2>conftest.er1
17554   ac_status=$?
17555   grep -v '^ *+' conftest.er1 >conftest.err
17556   rm -f conftest.er1
17557   cat conftest.err >&5
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); } &&
17560          { ac_try='test -z "$ac_c_werror_flag"
17561                          || test ! -s conftest.err'
17562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563   (eval $ac_try) 2>&5
17564   ac_status=$?
17565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566   (exit $ac_status); }; } &&
17567          { ac_try='test -s conftest.$ac_objext'
17568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569   (eval $ac_try) 2>&5
17570   ac_status=$?
17571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572   (exit $ac_status); }; }; then
17573   ac_hi=$ac_mid
17574 else
17575   echo "$as_me: failed program was:" >&5
17576 sed 's/^/| /' conftest.$ac_ext >&5
17577
17578 ac_lo=`expr '(' $ac_mid ')' + 1`
17579 fi
17580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17581 done
17582 case $ac_lo in
17583 ?*) ac_cv_sizeof_int=$ac_lo;;
17584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17585 See \`config.log' for more details." >&5
17586 echo "$as_me: error: cannot compute sizeof (int), 77
17587 See \`config.log' for more details." >&2;}
17588    { (exit 1); exit 1; }; } ;;
17589 esac
17590 else
17591   if test "$cross_compiling" = yes; then
17592   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17593 See \`config.log' for more details." >&5
17594 echo "$as_me: error: cannot run test program while cross compiling
17595 See \`config.log' for more details." >&2;}
17596    { (exit 1); exit 1; }; }
17597 else
17598   cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h.  */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h.  */
17604 $ac_includes_default
17605 long longval () { return (long) (sizeof (int)); }
17606 unsigned long ulongval () { return (long) (sizeof (int)); }
17607 #include <stdio.h>
17608 #include <stdlib.h>
17609 int
17610 main ()
17611 {
17612
17613   FILE *f = fopen ("conftest.val", "w");
17614   if (! f)
17615     exit (1);
17616   if (((long) (sizeof (int))) < 0)
17617     {
17618       long i = longval ();
17619       if (i != ((long) (sizeof (int))))
17620         exit (1);
17621       fprintf (f, "%ld\n", i);
17622     }
17623   else
17624     {
17625       unsigned long i = ulongval ();
17626       if (i != ((long) (sizeof (int))))
17627         exit (1);
17628       fprintf (f, "%lu\n", i);
17629     }
17630   exit (ferror (f) || fclose (f) != 0);
17631
17632   ;
17633   return 0;
17634 }
17635 _ACEOF
17636 rm -f conftest$ac_exeext
17637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17638   (eval $ac_link) 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17643   (eval $ac_try) 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   ac_cv_sizeof_int=`cat conftest.val`
17648 else
17649   echo "$as_me: program exited with status $ac_status" >&5
17650 echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.$ac_ext >&5
17652
17653 ( exit $ac_status )
17654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
17655 See \`config.log' for more details." >&5
17656 echo "$as_me: error: cannot compute sizeof (int), 77
17657 See \`config.log' for more details." >&2;}
17658    { (exit 1); exit 1; }; }
17659 fi
17660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17661 fi
17662 fi
17663 rm -f conftest.val
17664 else
17665   ac_cv_sizeof_int=0
17666 fi
17667 fi
17668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
17669 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
17670 cat >>confdefs.h <<_ACEOF
17671 #define SIZEOF_INT $ac_cv_sizeof_int
17672 _ACEOF
17673
17674
17675 echo "$as_me:$LINENO: checking for long int" >&5
17676 echo $ECHO_N "checking for long int... $ECHO_C" >&6
17677 if test "${ac_cv_type_long_int+set}" = set; then
17678   echo $ECHO_N "(cached) $ECHO_C" >&6
17679 else
17680   cat >conftest.$ac_ext <<_ACEOF
17681 /* confdefs.h.  */
17682 _ACEOF
17683 cat confdefs.h >>conftest.$ac_ext
17684 cat >>conftest.$ac_ext <<_ACEOF
17685 /* end confdefs.h.  */
17686 $ac_includes_default
17687 int
17688 main ()
17689 {
17690 if ((long int *) 0)
17691   return 0;
17692 if (sizeof (long int))
17693   return 0;
17694   ;
17695   return 0;
17696 }
17697 _ACEOF
17698 rm -f conftest.$ac_objext
17699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17700   (eval $ac_compile) 2>conftest.er1
17701   ac_status=$?
17702   grep -v '^ *+' conftest.er1 >conftest.err
17703   rm -f conftest.er1
17704   cat conftest.err >&5
17705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706   (exit $ac_status); } &&
17707          { ac_try='test -z "$ac_c_werror_flag"
17708                          || test ! -s conftest.err'
17709   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710   (eval $ac_try) 2>&5
17711   ac_status=$?
17712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713   (exit $ac_status); }; } &&
17714          { ac_try='test -s conftest.$ac_objext'
17715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17716   (eval $ac_try) 2>&5
17717   ac_status=$?
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); }; }; then
17720   ac_cv_type_long_int=yes
17721 else
17722   echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 ac_cv_type_long_int=no
17726 fi
17727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17728 fi
17729 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
17730 echo "${ECHO_T}$ac_cv_type_long_int" >&6
17731
17732 echo "$as_me:$LINENO: checking size of long int" >&5
17733 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
17734 if test "${ac_cv_sizeof_long_int+set}" = set; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   if test "$ac_cv_type_long_int" = yes; then
17738   # The cast to unsigned long works around a bug in the HP C Compiler
17739   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17740   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17741   # This bug is HP SR number 8606223364.
17742   if test "$cross_compiling" = yes; then
17743   # Depending upon the size, compute the lo and hi bounds.
17744 cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750 $ac_includes_default
17751 int
17752 main ()
17753 {
17754 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
17755 test_array [0] = 0
17756
17757   ;
17758   return 0;
17759 }
17760 _ACEOF
17761 rm -f conftest.$ac_objext
17762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17763   (eval $ac_compile) 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } &&
17770          { ac_try='test -z "$ac_c_werror_flag"
17771                          || test ! -s conftest.err'
17772   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17773   (eval $ac_try) 2>&5
17774   ac_status=$?
17775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776   (exit $ac_status); }; } &&
17777          { ac_try='test -s conftest.$ac_objext'
17778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17779   (eval $ac_try) 2>&5
17780   ac_status=$?
17781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782   (exit $ac_status); }; }; then
17783   ac_lo=0 ac_mid=0
17784   while :; do
17785     cat >conftest.$ac_ext <<_ACEOF
17786 /* confdefs.h.  */
17787 _ACEOF
17788 cat confdefs.h >>conftest.$ac_ext
17789 cat >>conftest.$ac_ext <<_ACEOF
17790 /* end confdefs.h.  */
17791 $ac_includes_default
17792 int
17793 main ()
17794 {
17795 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17796 test_array [0] = 0
17797
17798   ;
17799   return 0;
17800 }
17801 _ACEOF
17802 rm -f conftest.$ac_objext
17803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17804   (eval $ac_compile) 2>conftest.er1
17805   ac_status=$?
17806   grep -v '^ *+' conftest.er1 >conftest.err
17807   rm -f conftest.er1
17808   cat conftest.err >&5
17809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810   (exit $ac_status); } &&
17811          { ac_try='test -z "$ac_c_werror_flag"
17812                          || test ! -s conftest.err'
17813   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17814   (eval $ac_try) 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; } &&
17818          { ac_try='test -s conftest.$ac_objext'
17819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17820   (eval $ac_try) 2>&5
17821   ac_status=$?
17822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823   (exit $ac_status); }; }; then
17824   ac_hi=$ac_mid; break
17825 else
17826   echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17828
17829 ac_lo=`expr $ac_mid + 1`
17830                     if test $ac_lo -le $ac_mid; then
17831                       ac_lo= ac_hi=
17832                       break
17833                     fi
17834                     ac_mid=`expr 2 '*' $ac_mid + 1`
17835 fi
17836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17837   done
17838 else
17839   echo "$as_me: failed program was:" >&5
17840 sed 's/^/| /' conftest.$ac_ext >&5
17841
17842 cat >conftest.$ac_ext <<_ACEOF
17843 /* confdefs.h.  */
17844 _ACEOF
17845 cat confdefs.h >>conftest.$ac_ext
17846 cat >>conftest.$ac_ext <<_ACEOF
17847 /* end confdefs.h.  */
17848 $ac_includes_default
17849 int
17850 main ()
17851 {
17852 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
17853 test_array [0] = 0
17854
17855   ;
17856   return 0;
17857 }
17858 _ACEOF
17859 rm -f conftest.$ac_objext
17860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17861   (eval $ac_compile) 2>conftest.er1
17862   ac_status=$?
17863   grep -v '^ *+' conftest.er1 >conftest.err
17864   rm -f conftest.er1
17865   cat conftest.err >&5
17866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17867   (exit $ac_status); } &&
17868          { ac_try='test -z "$ac_c_werror_flag"
17869                          || test ! -s conftest.err'
17870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871   (eval $ac_try) 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; } &&
17875          { ac_try='test -s conftest.$ac_objext'
17876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17877   (eval $ac_try) 2>&5
17878   ac_status=$?
17879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880   (exit $ac_status); }; }; then
17881   ac_hi=-1 ac_mid=-1
17882   while :; do
17883     cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889 $ac_includes_default
17890 int
17891 main ()
17892 {
17893 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
17894 test_array [0] = 0
17895
17896   ;
17897   return 0;
17898 }
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17902   (eval $ac_compile) 2>conftest.er1
17903   ac_status=$?
17904   grep -v '^ *+' conftest.er1 >conftest.err
17905   rm -f conftest.er1
17906   cat conftest.err >&5
17907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17908   (exit $ac_status); } &&
17909          { ac_try='test -z "$ac_c_werror_flag"
17910                          || test ! -s conftest.err'
17911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912   (eval $ac_try) 2>&5
17913   ac_status=$?
17914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915   (exit $ac_status); }; } &&
17916          { ac_try='test -s conftest.$ac_objext'
17917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918   (eval $ac_try) 2>&5
17919   ac_status=$?
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); }; }; then
17922   ac_lo=$ac_mid; break
17923 else
17924   echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17926
17927 ac_hi=`expr '(' $ac_mid ')' - 1`
17928                        if test $ac_mid -le $ac_hi; then
17929                          ac_lo= ac_hi=
17930                          break
17931                        fi
17932                        ac_mid=`expr 2 '*' $ac_mid`
17933 fi
17934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17935   done
17936 else
17937   echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17939
17940 ac_lo= ac_hi=
17941 fi
17942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17943 fi
17944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17945 # Binary search between lo and hi bounds.
17946 while test "x$ac_lo" != "x$ac_hi"; do
17947   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17948   cat >conftest.$ac_ext <<_ACEOF
17949 /* confdefs.h.  */
17950 _ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h.  */
17954 $ac_includes_default
17955 int
17956 main ()
17957 {
17958 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
17959 test_array [0] = 0
17960
17961   ;
17962   return 0;
17963 }
17964 _ACEOF
17965 rm -f conftest.$ac_objext
17966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17967   (eval $ac_compile) 2>conftest.er1
17968   ac_status=$?
17969   grep -v '^ *+' conftest.er1 >conftest.err
17970   rm -f conftest.er1
17971   cat conftest.err >&5
17972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973   (exit $ac_status); } &&
17974          { ac_try='test -z "$ac_c_werror_flag"
17975                          || test ! -s conftest.err'
17976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17977   (eval $ac_try) 2>&5
17978   ac_status=$?
17979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980   (exit $ac_status); }; } &&
17981          { ac_try='test -s conftest.$ac_objext'
17982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17983   (eval $ac_try) 2>&5
17984   ac_status=$?
17985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986   (exit $ac_status); }; }; then
17987   ac_hi=$ac_mid
17988 else
17989   echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17991
17992 ac_lo=`expr '(' $ac_mid ')' + 1`
17993 fi
17994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17995 done
17996 case $ac_lo in
17997 ?*) ac_cv_sizeof_long_int=$ac_lo;;
17998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
17999 See \`config.log' for more details." >&5
18000 echo "$as_me: error: cannot compute sizeof (long int), 77
18001 See \`config.log' for more details." >&2;}
18002    { (exit 1); exit 1; }; } ;;
18003 esac
18004 else
18005   if test "$cross_compiling" = yes; then
18006   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18007 See \`config.log' for more details." >&5
18008 echo "$as_me: error: cannot run test program while cross compiling
18009 See \`config.log' for more details." >&2;}
18010    { (exit 1); exit 1; }; }
18011 else
18012   cat >conftest.$ac_ext <<_ACEOF
18013 /* confdefs.h.  */
18014 _ACEOF
18015 cat confdefs.h >>conftest.$ac_ext
18016 cat >>conftest.$ac_ext <<_ACEOF
18017 /* end confdefs.h.  */
18018 $ac_includes_default
18019 long longval () { return (long) (sizeof (long int)); }
18020 unsigned long ulongval () { return (long) (sizeof (long int)); }
18021 #include <stdio.h>
18022 #include <stdlib.h>
18023 int
18024 main ()
18025 {
18026
18027   FILE *f = fopen ("conftest.val", "w");
18028   if (! f)
18029     exit (1);
18030   if (((long) (sizeof (long int))) < 0)
18031     {
18032       long i = longval ();
18033       if (i != ((long) (sizeof (long int))))
18034         exit (1);
18035       fprintf (f, "%ld\n", i);
18036     }
18037   else
18038     {
18039       unsigned long i = ulongval ();
18040       if (i != ((long) (sizeof (long int))))
18041         exit (1);
18042       fprintf (f, "%lu\n", i);
18043     }
18044   exit (ferror (f) || fclose (f) != 0);
18045
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest$ac_exeext
18051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18052   (eval $ac_link) 2>&5
18053   ac_status=$?
18054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18056   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18057   (eval $ac_try) 2>&5
18058   ac_status=$?
18059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18060   (exit $ac_status); }; }; then
18061   ac_cv_sizeof_long_int=`cat conftest.val`
18062 else
18063   echo "$as_me: program exited with status $ac_status" >&5
18064 echo "$as_me: failed program was:" >&5
18065 sed 's/^/| /' conftest.$ac_ext >&5
18066
18067 ( exit $ac_status )
18068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
18069 See \`config.log' for more details." >&5
18070 echo "$as_me: error: cannot compute sizeof (long int), 77
18071 See \`config.log' for more details." >&2;}
18072    { (exit 1); exit 1; }; }
18073 fi
18074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18075 fi
18076 fi
18077 rm -f conftest.val
18078 else
18079   ac_cv_sizeof_long_int=0
18080 fi
18081 fi
18082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
18083 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
18084 cat >>confdefs.h <<_ACEOF
18085 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
18086 _ACEOF
18087
18088
18089 echo "$as_me:$LINENO: checking for long long int" >&5
18090 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
18091 if test "${ac_cv_type_long_long_int+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100 $ac_includes_default
18101 int
18102 main ()
18103 {
18104 if ((long long int *) 0)
18105   return 0;
18106 if (sizeof (long long int))
18107   return 0;
18108   ;
18109   return 0;
18110 }
18111 _ACEOF
18112 rm -f conftest.$ac_objext
18113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18114   (eval $ac_compile) 2>conftest.er1
18115   ac_status=$?
18116   grep -v '^ *+' conftest.er1 >conftest.err
18117   rm -f conftest.er1
18118   cat conftest.err >&5
18119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18120   (exit $ac_status); } &&
18121          { ac_try='test -z "$ac_c_werror_flag"
18122                          || test ! -s conftest.err'
18123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18124   (eval $ac_try) 2>&5
18125   ac_status=$?
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); }; } &&
18128          { ac_try='test -s conftest.$ac_objext'
18129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18130   (eval $ac_try) 2>&5
18131   ac_status=$?
18132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18133   (exit $ac_status); }; }; then
18134   ac_cv_type_long_long_int=yes
18135 else
18136   echo "$as_me: failed program was:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18138
18139 ac_cv_type_long_long_int=no
18140 fi
18141 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18142 fi
18143 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
18144 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
18145
18146 echo "$as_me:$LINENO: checking size of long long int" >&5
18147 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
18148 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
18149   echo $ECHO_N "(cached) $ECHO_C" >&6
18150 else
18151   if test "$ac_cv_type_long_long_int" = yes; then
18152   # The cast to unsigned long works around a bug in the HP C Compiler
18153   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18154   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18155   # This bug is HP SR number 8606223364.
18156   if test "$cross_compiling" = yes; then
18157   # Depending upon the size, compute the lo and hi bounds.
18158 cat >conftest.$ac_ext <<_ACEOF
18159 /* confdefs.h.  */
18160 _ACEOF
18161 cat confdefs.h >>conftest.$ac_ext
18162 cat >>conftest.$ac_ext <<_ACEOF
18163 /* end confdefs.h.  */
18164 $ac_includes_default
18165 int
18166 main ()
18167 {
18168 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
18169 test_array [0] = 0
18170
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 rm -f conftest.$ac_objext
18176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18177   (eval $ac_compile) 2>conftest.er1
18178   ac_status=$?
18179   grep -v '^ *+' conftest.er1 >conftest.err
18180   rm -f conftest.er1
18181   cat conftest.err >&5
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); } &&
18184          { ac_try='test -z "$ac_c_werror_flag"
18185                          || test ! -s conftest.err'
18186   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187   (eval $ac_try) 2>&5
18188   ac_status=$?
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); }; } &&
18191          { ac_try='test -s conftest.$ac_objext'
18192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18193   (eval $ac_try) 2>&5
18194   ac_status=$?
18195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18196   (exit $ac_status); }; }; then
18197   ac_lo=0 ac_mid=0
18198   while :; do
18199     cat >conftest.$ac_ext <<_ACEOF
18200 /* confdefs.h.  */
18201 _ACEOF
18202 cat confdefs.h >>conftest.$ac_ext
18203 cat >>conftest.$ac_ext <<_ACEOF
18204 /* end confdefs.h.  */
18205 $ac_includes_default
18206 int
18207 main ()
18208 {
18209 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18210 test_array [0] = 0
18211
18212   ;
18213   return 0;
18214 }
18215 _ACEOF
18216 rm -f conftest.$ac_objext
18217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18218   (eval $ac_compile) 2>conftest.er1
18219   ac_status=$?
18220   grep -v '^ *+' conftest.er1 >conftest.err
18221   rm -f conftest.er1
18222   cat conftest.err >&5
18223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18224   (exit $ac_status); } &&
18225          { ac_try='test -z "$ac_c_werror_flag"
18226                          || test ! -s conftest.err'
18227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18228   (eval $ac_try) 2>&5
18229   ac_status=$?
18230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231   (exit $ac_status); }; } &&
18232          { ac_try='test -s conftest.$ac_objext'
18233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18234   (eval $ac_try) 2>&5
18235   ac_status=$?
18236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18237   (exit $ac_status); }; }; then
18238   ac_hi=$ac_mid; break
18239 else
18240   echo "$as_me: failed program was:" >&5
18241 sed 's/^/| /' conftest.$ac_ext >&5
18242
18243 ac_lo=`expr $ac_mid + 1`
18244                     if test $ac_lo -le $ac_mid; then
18245                       ac_lo= ac_hi=
18246                       break
18247                     fi
18248                     ac_mid=`expr 2 '*' $ac_mid + 1`
18249 fi
18250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18251   done
18252 else
18253   echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18255
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262 $ac_includes_default
18263 int
18264 main ()
18265 {
18266 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
18267 test_array [0] = 0
18268
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext
18274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18275   (eval $ac_compile) 2>conftest.er1
18276   ac_status=$?
18277   grep -v '^ *+' conftest.er1 >conftest.err
18278   rm -f conftest.er1
18279   cat conftest.err >&5
18280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18281   (exit $ac_status); } &&
18282          { ac_try='test -z "$ac_c_werror_flag"
18283                          || test ! -s conftest.err'
18284   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18285   (eval $ac_try) 2>&5
18286   ac_status=$?
18287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288   (exit $ac_status); }; } &&
18289          { ac_try='test -s conftest.$ac_objext'
18290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18291   (eval $ac_try) 2>&5
18292   ac_status=$?
18293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294   (exit $ac_status); }; }; then
18295   ac_hi=-1 ac_mid=-1
18296   while :; do
18297     cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h.  */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h.  */
18303 $ac_includes_default
18304 int
18305 main ()
18306 {
18307 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
18308 test_array [0] = 0
18309
18310   ;
18311   return 0;
18312 }
18313 _ACEOF
18314 rm -f conftest.$ac_objext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18316   (eval $ac_compile) 2>conftest.er1
18317   ac_status=$?
18318   grep -v '^ *+' conftest.er1 >conftest.err
18319   rm -f conftest.er1
18320   cat conftest.err >&5
18321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322   (exit $ac_status); } &&
18323          { ac_try='test -z "$ac_c_werror_flag"
18324                          || test ! -s conftest.err'
18325   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18326   (eval $ac_try) 2>&5
18327   ac_status=$?
18328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329   (exit $ac_status); }; } &&
18330          { ac_try='test -s conftest.$ac_objext'
18331   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332   (eval $ac_try) 2>&5
18333   ac_status=$?
18334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335   (exit $ac_status); }; }; then
18336   ac_lo=$ac_mid; break
18337 else
18338   echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341 ac_hi=`expr '(' $ac_mid ')' - 1`
18342                        if test $ac_mid -le $ac_hi; then
18343                          ac_lo= ac_hi=
18344                          break
18345                        fi
18346                        ac_mid=`expr 2 '*' $ac_mid`
18347 fi
18348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18349   done
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354 ac_lo= ac_hi=
18355 fi
18356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18357 fi
18358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18359 # Binary search between lo and hi bounds.
18360 while test "x$ac_lo" != "x$ac_hi"; do
18361   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18362   cat >conftest.$ac_ext <<_ACEOF
18363 /* confdefs.h.  */
18364 _ACEOF
18365 cat confdefs.h >>conftest.$ac_ext
18366 cat >>conftest.$ac_ext <<_ACEOF
18367 /* end confdefs.h.  */
18368 $ac_includes_default
18369 int
18370 main ()
18371 {
18372 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
18373 test_array [0] = 0
18374
18375   ;
18376   return 0;
18377 }
18378 _ACEOF
18379 rm -f conftest.$ac_objext
18380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18381   (eval $ac_compile) 2>conftest.er1
18382   ac_status=$?
18383   grep -v '^ *+' conftest.er1 >conftest.err
18384   rm -f conftest.er1
18385   cat conftest.err >&5
18386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387   (exit $ac_status); } &&
18388          { ac_try='test -z "$ac_c_werror_flag"
18389                          || test ! -s conftest.err'
18390   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18391   (eval $ac_try) 2>&5
18392   ac_status=$?
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   (exit $ac_status); }; } &&
18395          { ac_try='test -s conftest.$ac_objext'
18396   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18397   (eval $ac_try) 2>&5
18398   ac_status=$?
18399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400   (exit $ac_status); }; }; then
18401   ac_hi=$ac_mid
18402 else
18403   echo "$as_me: failed program was:" >&5
18404 sed 's/^/| /' conftest.$ac_ext >&5
18405
18406 ac_lo=`expr '(' $ac_mid ')' + 1`
18407 fi
18408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18409 done
18410 case $ac_lo in
18411 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
18412 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18413 See \`config.log' for more details." >&5
18414 echo "$as_me: error: cannot compute sizeof (long long int), 77
18415 See \`config.log' for more details." >&2;}
18416    { (exit 1); exit 1; }; } ;;
18417 esac
18418 else
18419   if test "$cross_compiling" = yes; then
18420   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18421 See \`config.log' for more details." >&5
18422 echo "$as_me: error: cannot run test program while cross compiling
18423 See \`config.log' for more details." >&2;}
18424    { (exit 1); exit 1; }; }
18425 else
18426   cat >conftest.$ac_ext <<_ACEOF
18427 /* confdefs.h.  */
18428 _ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h.  */
18432 $ac_includes_default
18433 long longval () { return (long) (sizeof (long long int)); }
18434 unsigned long ulongval () { return (long) (sizeof (long long int)); }
18435 #include <stdio.h>
18436 #include <stdlib.h>
18437 int
18438 main ()
18439 {
18440
18441   FILE *f = fopen ("conftest.val", "w");
18442   if (! f)
18443     exit (1);
18444   if (((long) (sizeof (long long int))) < 0)
18445     {
18446       long i = longval ();
18447       if (i != ((long) (sizeof (long long int))))
18448         exit (1);
18449       fprintf (f, "%ld\n", i);
18450     }
18451   else
18452     {
18453       unsigned long i = ulongval ();
18454       if (i != ((long) (sizeof (long long int))))
18455         exit (1);
18456       fprintf (f, "%lu\n", i);
18457     }
18458   exit (ferror (f) || fclose (f) != 0);
18459
18460   ;
18461   return 0;
18462 }
18463 _ACEOF
18464 rm -f conftest$ac_exeext
18465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18466   (eval $ac_link) 2>&5
18467   ac_status=$?
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471   (eval $ac_try) 2>&5
18472   ac_status=$?
18473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474   (exit $ac_status); }; }; then
18475   ac_cv_sizeof_long_long_int=`cat conftest.val`
18476 else
18477   echo "$as_me: program exited with status $ac_status" >&5
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18480
18481 ( exit $ac_status )
18482 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
18483 See \`config.log' for more details." >&5
18484 echo "$as_me: error: cannot compute sizeof (long long int), 77
18485 See \`config.log' for more details." >&2;}
18486    { (exit 1); exit 1; }; }
18487 fi
18488 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18489 fi
18490 fi
18491 rm -f conftest.val
18492 else
18493   ac_cv_sizeof_long_long_int=0
18494 fi
18495 fi
18496 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
18497 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
18498 cat >>confdefs.h <<_ACEOF
18499 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
18500 _ACEOF
18501
18502
18503 echo "$as_me:$LINENO: checking for int *" >&5
18504 echo $ECHO_N "checking for int *... $ECHO_C" >&6
18505 if test "${ac_cv_type_int_p+set}" = set; then
18506   echo $ECHO_N "(cached) $ECHO_C" >&6
18507 else
18508   cat >conftest.$ac_ext <<_ACEOF
18509 /* confdefs.h.  */
18510 _ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h.  */
18514 $ac_includes_default
18515 int
18516 main ()
18517 {
18518 if ((int * *) 0)
18519   return 0;
18520 if (sizeof (int *))
18521   return 0;
18522   ;
18523   return 0;
18524 }
18525 _ACEOF
18526 rm -f conftest.$ac_objext
18527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18528   (eval $ac_compile) 2>conftest.er1
18529   ac_status=$?
18530   grep -v '^ *+' conftest.er1 >conftest.err
18531   rm -f conftest.er1
18532   cat conftest.err >&5
18533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18534   (exit $ac_status); } &&
18535          { ac_try='test -z "$ac_c_werror_flag"
18536                          || test ! -s conftest.err'
18537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18538   (eval $ac_try) 2>&5
18539   ac_status=$?
18540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541   (exit $ac_status); }; } &&
18542          { ac_try='test -s conftest.$ac_objext'
18543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18544   (eval $ac_try) 2>&5
18545   ac_status=$?
18546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18547   (exit $ac_status); }; }; then
18548   ac_cv_type_int_p=yes
18549 else
18550   echo "$as_me: failed program was:" >&5
18551 sed 's/^/| /' conftest.$ac_ext >&5
18552
18553 ac_cv_type_int_p=no
18554 fi
18555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18556 fi
18557 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
18558 echo "${ECHO_T}$ac_cv_type_int_p" >&6
18559
18560 echo "$as_me:$LINENO: checking size of int *" >&5
18561 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
18562 if test "${ac_cv_sizeof_int_p+set}" = set; then
18563   echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565   if test "$ac_cv_type_int_p" = yes; then
18566   # The cast to unsigned long works around a bug in the HP C Compiler
18567   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18568   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18569   # This bug is HP SR number 8606223364.
18570   if test "$cross_compiling" = yes; then
18571   # Depending upon the size, compute the lo and hi bounds.
18572 cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578 $ac_includes_default
18579 int
18580 main ()
18581 {
18582 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
18583 test_array [0] = 0
18584
18585   ;
18586   return 0;
18587 }
18588 _ACEOF
18589 rm -f conftest.$ac_objext
18590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18591   (eval $ac_compile) 2>conftest.er1
18592   ac_status=$?
18593   grep -v '^ *+' conftest.er1 >conftest.err
18594   rm -f conftest.er1
18595   cat conftest.err >&5
18596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597   (exit $ac_status); } &&
18598          { ac_try='test -z "$ac_c_werror_flag"
18599                          || test ! -s conftest.err'
18600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18601   (eval $ac_try) 2>&5
18602   ac_status=$?
18603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604   (exit $ac_status); }; } &&
18605          { ac_try='test -s conftest.$ac_objext'
18606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18607   (eval $ac_try) 2>&5
18608   ac_status=$?
18609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18610   (exit $ac_status); }; }; then
18611   ac_lo=0 ac_mid=0
18612   while :; do
18613     cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619 $ac_includes_default
18620 int
18621 main ()
18622 {
18623 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18624 test_array [0] = 0
18625
18626   ;
18627   return 0;
18628 }
18629 _ACEOF
18630 rm -f conftest.$ac_objext
18631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18632   (eval $ac_compile) 2>conftest.er1
18633   ac_status=$?
18634   grep -v '^ *+' conftest.er1 >conftest.err
18635   rm -f conftest.er1
18636   cat conftest.err >&5
18637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638   (exit $ac_status); } &&
18639          { ac_try='test -z "$ac_c_werror_flag"
18640                          || test ! -s conftest.err'
18641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18642   (eval $ac_try) 2>&5
18643   ac_status=$?
18644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); }; } &&
18646          { ac_try='test -s conftest.$ac_objext'
18647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648   (eval $ac_try) 2>&5
18649   ac_status=$?
18650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651   (exit $ac_status); }; }; then
18652   ac_hi=$ac_mid; break
18653 else
18654   echo "$as_me: failed program was:" >&5
18655 sed 's/^/| /' conftest.$ac_ext >&5
18656
18657 ac_lo=`expr $ac_mid + 1`
18658                     if test $ac_lo -le $ac_mid; then
18659                       ac_lo= ac_hi=
18660                       break
18661                     fi
18662                     ac_mid=`expr 2 '*' $ac_mid + 1`
18663 fi
18664 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18665   done
18666 else
18667   echo "$as_me: failed program was:" >&5
18668 sed 's/^/| /' conftest.$ac_ext >&5
18669
18670 cat >conftest.$ac_ext <<_ACEOF
18671 /* confdefs.h.  */
18672 _ACEOF
18673 cat confdefs.h >>conftest.$ac_ext
18674 cat >>conftest.$ac_ext <<_ACEOF
18675 /* end confdefs.h.  */
18676 $ac_includes_default
18677 int
18678 main ()
18679 {
18680 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
18681 test_array [0] = 0
18682
18683   ;
18684   return 0;
18685 }
18686 _ACEOF
18687 rm -f conftest.$ac_objext
18688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18689   (eval $ac_compile) 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -z "$ac_c_werror_flag"
18697                          || test ! -s conftest.err'
18698   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18699   (eval $ac_try) 2>&5
18700   ac_status=$?
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   (exit $ac_status); }; } &&
18703          { ac_try='test -s conftest.$ac_objext'
18704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18705   (eval $ac_try) 2>&5
18706   ac_status=$?
18707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18708   (exit $ac_status); }; }; then
18709   ac_hi=-1 ac_mid=-1
18710   while :; do
18711     cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 $ac_includes_default
18718 int
18719 main ()
18720 {
18721 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
18722 test_array [0] = 0
18723
18724   ;
18725   return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18730   (eval $ac_compile) 2>conftest.er1
18731   ac_status=$?
18732   grep -v '^ *+' conftest.er1 >conftest.err
18733   rm -f conftest.er1
18734   cat conftest.err >&5
18735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736   (exit $ac_status); } &&
18737          { ac_try='test -z "$ac_c_werror_flag"
18738                          || test ! -s conftest.err'
18739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18740   (eval $ac_try) 2>&5
18741   ac_status=$?
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); }; } &&
18744          { ac_try='test -s conftest.$ac_objext'
18745   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18746   (eval $ac_try) 2>&5
18747   ac_status=$?
18748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18749   (exit $ac_status); }; }; then
18750   ac_lo=$ac_mid; break
18751 else
18752   echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755 ac_hi=`expr '(' $ac_mid ')' - 1`
18756                        if test $ac_mid -le $ac_hi; then
18757                          ac_lo= ac_hi=
18758                          break
18759                        fi
18760                        ac_mid=`expr 2 '*' $ac_mid`
18761 fi
18762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18763   done
18764 else
18765   echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18767
18768 ac_lo= ac_hi=
18769 fi
18770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18771 fi
18772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18773 # Binary search between lo and hi bounds.
18774 while test "x$ac_lo" != "x$ac_hi"; do
18775   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18776   cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h.  */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h.  */
18782 $ac_includes_default
18783 int
18784 main ()
18785 {
18786 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
18787 test_array [0] = 0
18788
18789   ;
18790   return 0;
18791 }
18792 _ACEOF
18793 rm -f conftest.$ac_objext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18795   (eval $ac_compile) 2>conftest.er1
18796   ac_status=$?
18797   grep -v '^ *+' conftest.er1 >conftest.err
18798   rm -f conftest.er1
18799   cat conftest.err >&5
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); } &&
18802          { ac_try='test -z "$ac_c_werror_flag"
18803                          || test ! -s conftest.err'
18804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805   (eval $ac_try) 2>&5
18806   ac_status=$?
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); }; } &&
18809          { ac_try='test -s conftest.$ac_objext'
18810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811   (eval $ac_try) 2>&5
18812   ac_status=$?
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); }; }; then
18815   ac_hi=$ac_mid
18816 else
18817   echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18819
18820 ac_lo=`expr '(' $ac_mid ')' + 1`
18821 fi
18822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18823 done
18824 case $ac_lo in
18825 ?*) ac_cv_sizeof_int_p=$ac_lo;;
18826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18827 See \`config.log' for more details." >&5
18828 echo "$as_me: error: cannot compute sizeof (int *), 77
18829 See \`config.log' for more details." >&2;}
18830    { (exit 1); exit 1; }; } ;;
18831 esac
18832 else
18833   if test "$cross_compiling" = yes; then
18834   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18835 See \`config.log' for more details." >&5
18836 echo "$as_me: error: cannot run test program while cross compiling
18837 See \`config.log' for more details." >&2;}
18838    { (exit 1); exit 1; }; }
18839 else
18840   cat >conftest.$ac_ext <<_ACEOF
18841 /* confdefs.h.  */
18842 _ACEOF
18843 cat confdefs.h >>conftest.$ac_ext
18844 cat >>conftest.$ac_ext <<_ACEOF
18845 /* end confdefs.h.  */
18846 $ac_includes_default
18847 long longval () { return (long) (sizeof (int *)); }
18848 unsigned long ulongval () { return (long) (sizeof (int *)); }
18849 #include <stdio.h>
18850 #include <stdlib.h>
18851 int
18852 main ()
18853 {
18854
18855   FILE *f = fopen ("conftest.val", "w");
18856   if (! f)
18857     exit (1);
18858   if (((long) (sizeof (int *))) < 0)
18859     {
18860       long i = longval ();
18861       if (i != ((long) (sizeof (int *))))
18862         exit (1);
18863       fprintf (f, "%ld\n", i);
18864     }
18865   else
18866     {
18867       unsigned long i = ulongval ();
18868       if (i != ((long) (sizeof (int *))))
18869         exit (1);
18870       fprintf (f, "%lu\n", i);
18871     }
18872   exit (ferror (f) || fclose (f) != 0);
18873
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest$ac_exeext
18879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18880   (eval $ac_link) 2>&5
18881   ac_status=$?
18882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885   (eval $ac_try) 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; }; then
18889   ac_cv_sizeof_int_p=`cat conftest.val`
18890 else
18891   echo "$as_me: program exited with status $ac_status" >&5
18892 echo "$as_me: failed program was:" >&5
18893 sed 's/^/| /' conftest.$ac_ext >&5
18894
18895 ( exit $ac_status )
18896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
18897 See \`config.log' for more details." >&5
18898 echo "$as_me: error: cannot compute sizeof (int *), 77
18899 See \`config.log' for more details." >&2;}
18900    { (exit 1); exit 1; }; }
18901 fi
18902 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18903 fi
18904 fi
18905 rm -f conftest.val
18906 else
18907   ac_cv_sizeof_int_p=0
18908 fi
18909 fi
18910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
18911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
18912 cat >>confdefs.h <<_ACEOF
18913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
18914 _ACEOF
18915
18916
18917
18918 # Check for sys/types.h types
18919 echo "$as_me:$LINENO: checking for u_int type" >&5
18920 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
18921 if test "${ac_cv_have_u_int+set}" = set; then
18922   echo $ECHO_N "(cached) $ECHO_C" >&6
18923 else
18924
18925     cat >conftest.$ac_ext <<_ACEOF
18926 /* confdefs.h.  */
18927 _ACEOF
18928 cat confdefs.h >>conftest.$ac_ext
18929 cat >>conftest.$ac_ext <<_ACEOF
18930 /* end confdefs.h.  */
18931  #include <sys/types.h>
18932 int
18933 main ()
18934 {
18935  u_int a; a = 1;
18936   ;
18937   return 0;
18938 }
18939 _ACEOF
18940 rm -f conftest.$ac_objext
18941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18942   (eval $ac_compile) 2>conftest.er1
18943   ac_status=$?
18944   grep -v '^ *+' conftest.er1 >conftest.err
18945   rm -f conftest.er1
18946   cat conftest.err >&5
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } &&
18949          { ac_try='test -z "$ac_c_werror_flag"
18950                          || test ! -s conftest.err'
18951   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18952   (eval $ac_try) 2>&5
18953   ac_status=$?
18954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18955   (exit $ac_status); }; } &&
18956          { ac_try='test -s conftest.$ac_objext'
18957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18958   (eval $ac_try) 2>&5
18959   ac_status=$?
18960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18961   (exit $ac_status); }; }; then
18962    ac_cv_have_u_int="yes"
18963 else
18964   echo "$as_me: failed program was:" >&5
18965 sed 's/^/| /' conftest.$ac_ext >&5
18966
18967  ac_cv_have_u_int="no"
18968
18969 fi
18970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18971
18972 fi
18973 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
18974 echo "${ECHO_T}$ac_cv_have_u_int" >&6
18975 if test "x$ac_cv_have_u_int" = "xyes" ; then
18976    cat >>confdefs.h <<\_ACEOF
18977 #define HAVE_U_INT 1
18978 _ACEOF
18979
18980    have_u_int=1
18981 fi
18982
18983 echo "$as_me:$LINENO: checking for intmax_t type" >&5
18984 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
18985 if test "${ac_cv_have_intmax_t+set}" = set; then
18986   echo $ECHO_N "(cached) $ECHO_C" >&6
18987 else
18988
18989    cat >conftest.$ac_ext <<_ACEOF
18990 /* confdefs.h.  */
18991 _ACEOF
18992 cat confdefs.h >>conftest.$ac_ext
18993 cat >>conftest.$ac_ext <<_ACEOF
18994 /* end confdefs.h.  */
18995  #include <sys/types.h>
18996 int
18997 main ()
18998 {
18999  intmax_t a; a = 1;
19000   ;
19001   return 0;
19002 }
19003 _ACEOF
19004 rm -f conftest.$ac_objext
19005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19006   (eval $ac_compile) 2>conftest.er1
19007   ac_status=$?
19008   grep -v '^ *+' conftest.er1 >conftest.err
19009   rm -f conftest.er1
19010   cat conftest.err >&5
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } &&
19013          { ac_try='test -z "$ac_c_werror_flag"
19014                          || test ! -s conftest.err'
19015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19016   (eval $ac_try) 2>&5
19017   ac_status=$?
19018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); }; } &&
19020          { ac_try='test -s conftest.$ac_objext'
19021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19022   (eval $ac_try) 2>&5
19023   ac_status=$?
19024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19025   (exit $ac_status); }; }; then
19026    ac_cv_have_intmax_t="yes"
19027 else
19028   echo "$as_me: failed program was:" >&5
19029 sed 's/^/| /' conftest.$ac_ext >&5
19030
19031
19032          cat >conftest.$ac_ext <<_ACEOF
19033 /* confdefs.h.  */
19034 _ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h.  */
19038  #include <stdint.h>
19039 int
19040 main ()
19041 {
19042  intmax_t a; a = 1;
19043   ;
19044   return 0;
19045 }
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049   (eval $ac_compile) 2>conftest.er1
19050   ac_status=$?
19051   grep -v '^ *+' conftest.er1 >conftest.err
19052   rm -f conftest.er1
19053   cat conftest.err >&5
19054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055   (exit $ac_status); } &&
19056          { ac_try='test -z "$ac_c_werror_flag"
19057                          || test ! -s conftest.err'
19058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059   (eval $ac_try) 2>&5
19060   ac_status=$?
19061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062   (exit $ac_status); }; } &&
19063          { ac_try='test -s conftest.$ac_objext'
19064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065   (eval $ac_try) 2>&5
19066   ac_status=$?
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); }; }; then
19069    ac_cv_have_intmax_t="yes"
19070 else
19071   echo "$as_me: failed program was:" >&5
19072 sed 's/^/| /' conftest.$ac_ext >&5
19073
19074  ac_cv_have_intmax_t="no"
19075
19076 fi
19077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19078
19079
19080 fi
19081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19082
19083
19084 fi
19085 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
19086 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
19087 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
19088    cat >>confdefs.h <<\_ACEOF
19089 #define HAVE_INTMAX_T 1
19090 _ACEOF
19091
19092    have_intmax_t=1
19093 fi
19094
19095
19096 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
19097 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
19098 if test "${ac_cv_have_u_intmax_t+set}" = set; then
19099   echo $ECHO_N "(cached) $ECHO_C" >&6
19100 else
19101
19102    cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108  #include <sys/types.h>
19109 int
19110 main ()
19111 {
19112  u_intmax_t a; a = 1;
19113   ;
19114   return 0;
19115 }
19116 _ACEOF
19117 rm -f conftest.$ac_objext
19118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19119   (eval $ac_compile) 2>conftest.er1
19120   ac_status=$?
19121   grep -v '^ *+' conftest.er1 >conftest.err
19122   rm -f conftest.er1
19123   cat conftest.err >&5
19124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125   (exit $ac_status); } &&
19126          { ac_try='test -z "$ac_c_werror_flag"
19127                          || test ! -s conftest.err'
19128   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19129   (eval $ac_try) 2>&5
19130   ac_status=$?
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); }; } &&
19133          { ac_try='test -s conftest.$ac_objext'
19134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19135   (eval $ac_try) 2>&5
19136   ac_status=$?
19137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138   (exit $ac_status); }; }; then
19139    ac_cv_have_u_intmax_t="yes"
19140 else
19141   echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144
19145          cat >conftest.$ac_ext <<_ACEOF
19146 /* confdefs.h.  */
19147 _ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h.  */
19151  #include <stdint.h>
19152 int
19153 main ()
19154 {
19155  u_intmax_t a; a = 1;
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 rm -f conftest.$ac_objext
19161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19162   (eval $ac_compile) 2>conftest.er1
19163   ac_status=$?
19164   grep -v '^ *+' conftest.er1 >conftest.err
19165   rm -f conftest.er1
19166   cat conftest.err >&5
19167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168   (exit $ac_status); } &&
19169          { ac_try='test -z "$ac_c_werror_flag"
19170                          || test ! -s conftest.err'
19171   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172   (eval $ac_try) 2>&5
19173   ac_status=$?
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); }; } &&
19176          { ac_try='test -s conftest.$ac_objext'
19177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178   (eval $ac_try) 2>&5
19179   ac_status=$?
19180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181   (exit $ac_status); }; }; then
19182    ac_cv_have_u_intmax_t="yes"
19183 else
19184   echo "$as_me: failed program was:" >&5
19185 sed 's/^/| /' conftest.$ac_ext >&5
19186
19187  ac_cv_have_u_intmax_t="no"
19188
19189 fi
19190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19191
19192
19193 fi
19194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19195
19196 fi
19197 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
19198 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
19199 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
19200    cat >>confdefs.h <<\_ACEOF
19201 #define HAVE_U_INTMAX_T 1
19202 _ACEOF
19203
19204    have_u_intmax_t=1
19205 fi
19206
19207
19208 echo "$as_me:$LINENO: checking for intXX_t types" >&5
19209 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
19210 if test "${ac_cv_have_intxx_t+set}" = set; then
19211   echo $ECHO_N "(cached) $ECHO_C" >&6
19212 else
19213
19214    cat >conftest.$ac_ext <<_ACEOF
19215 /* confdefs.h.  */
19216 _ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h.  */
19220  #include <sys/types.h>
19221 int
19222 main ()
19223 {
19224  int8_t a; int16_t b; int32_t c; a = b = c = 1;
19225   ;
19226   return 0;
19227 }
19228 _ACEOF
19229 rm -f conftest.$ac_objext
19230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19231   (eval $ac_compile) 2>conftest.er1
19232   ac_status=$?
19233   grep -v '^ *+' conftest.er1 >conftest.err
19234   rm -f conftest.er1
19235   cat conftest.err >&5
19236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237   (exit $ac_status); } &&
19238          { ac_try='test -z "$ac_c_werror_flag"
19239                          || test ! -s conftest.err'
19240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241   (eval $ac_try) 2>&5
19242   ac_status=$?
19243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244   (exit $ac_status); }; } &&
19245          { ac_try='test -s conftest.$ac_objext'
19246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247   (eval $ac_try) 2>&5
19248   ac_status=$?
19249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); }; }; then
19251    ac_cv_have_intxx_t="yes"
19252 else
19253   echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19255
19256  ac_cv_have_intxx_t="no"
19257
19258 fi
19259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260
19261 fi
19262 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
19263 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
19264 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
19265    cat >>confdefs.h <<\_ACEOF
19266 #define HAVE_INTXX_T 1
19267 _ACEOF
19268
19269    have_intxx_t=1
19270 fi
19271
19272 echo "$as_me:$LINENO: checking for int64_t type" >&5
19273 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
19274 if test "${ac_cv_have_int64_t+set}" = set; then
19275   echo $ECHO_N "(cached) $ECHO_C" >&6
19276 else
19277
19278    cat >conftest.$ac_ext <<_ACEOF
19279 /* confdefs.h.  */
19280 _ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h.  */
19284  #include <sys/types.h>
19285 int
19286 main ()
19287 {
19288  int64_t a; a = 1;
19289   ;
19290   return 0;
19291 }
19292 _ACEOF
19293 rm -f conftest.$ac_objext
19294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19295   (eval $ac_compile) 2>conftest.er1
19296   ac_status=$?
19297   grep -v '^ *+' conftest.er1 >conftest.err
19298   rm -f conftest.er1
19299   cat conftest.err >&5
19300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301   (exit $ac_status); } &&
19302          { ac_try='test -z "$ac_c_werror_flag"
19303                          || test ! -s conftest.err'
19304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305   (eval $ac_try) 2>&5
19306   ac_status=$?
19307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308   (exit $ac_status); }; } &&
19309          { ac_try='test -s conftest.$ac_objext'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; }; then
19315    ac_cv_have_int64_t="yes"
19316 else
19317   echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.$ac_ext >&5
19319
19320  ac_cv_have_int64_t="no"
19321
19322 fi
19323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19324
19325 fi
19326 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
19327 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
19328 if test "x$ac_cv_have_int64_t" = "xyes" ; then
19329    cat >>confdefs.h <<\_ACEOF
19330 #define HAVE_INT64_T 1
19331 _ACEOF
19332
19333    have_int64_t=1
19334 fi
19335
19336 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
19337 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
19338 if test "${ac_cv_have_u_intxx_t+set}" = set; then
19339   echo $ECHO_N "(cached) $ECHO_C" >&6
19340 else
19341
19342    cat >conftest.$ac_ext <<_ACEOF
19343 /* confdefs.h.  */
19344 _ACEOF
19345 cat confdefs.h >>conftest.$ac_ext
19346 cat >>conftest.$ac_ext <<_ACEOF
19347 /* end confdefs.h.  */
19348  #include <sys/types.h>
19349 int
19350 main ()
19351 {
19352  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
19353   ;
19354   return 0;
19355 }
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19359   (eval $ac_compile) 2>conftest.er1
19360   ac_status=$?
19361   grep -v '^ *+' conftest.er1 >conftest.err
19362   rm -f conftest.er1
19363   cat conftest.err >&5
19364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365   (exit $ac_status); } &&
19366          { ac_try='test -z "$ac_c_werror_flag"
19367                          || test ! -s conftest.err'
19368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369   (eval $ac_try) 2>&5
19370   ac_status=$?
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); }; } &&
19373          { ac_try='test -s conftest.$ac_objext'
19374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375   (eval $ac_try) 2>&5
19376   ac_status=$?
19377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378   (exit $ac_status); }; }; then
19379    ac_cv_have_u_intxx_t="yes"
19380 else
19381   echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19383
19384  ac_cv_have_u_intxx_t="no"
19385
19386 fi
19387 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19388
19389 fi
19390 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
19391 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
19392 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
19393    cat >>confdefs.h <<\_ACEOF
19394 #define HAVE_U_INTXX_T 1
19395 _ACEOF
19396
19397    have_u_intxx_t=1
19398 fi
19399
19400 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
19401 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
19402 if test "${ac_cv_have_u_int64_t+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405
19406    cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h.  */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h.  */
19412  #include <sys/types.h>
19413 int
19414 main ()
19415 {
19416  u_int64_t a; a = 1;
19417   ;
19418   return 0;
19419 }
19420 _ACEOF
19421 rm -f conftest.$ac_objext
19422 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19423   (eval $ac_compile) 2>conftest.er1
19424   ac_status=$?
19425   grep -v '^ *+' conftest.er1 >conftest.err
19426   rm -f conftest.er1
19427   cat conftest.err >&5
19428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429   (exit $ac_status); } &&
19430          { ac_try='test -z "$ac_c_werror_flag"
19431                          || test ! -s conftest.err'
19432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19433   (eval $ac_try) 2>&5
19434   ac_status=$?
19435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436   (exit $ac_status); }; } &&
19437          { ac_try='test -s conftest.$ac_objext'
19438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19439   (eval $ac_try) 2>&5
19440   ac_status=$?
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); }; }; then
19443    ac_cv_have_u_int64_t="yes"
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448  ac_cv_have_u_int64_t="no"
19449
19450 fi
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19452
19453 fi
19454 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
19455 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
19456 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
19457    cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_U_INT64_T 1
19459 _ACEOF
19460
19461    have_u_int64_t=1
19462 fi
19463
19464 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
19465            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19466 then
19467    echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
19468 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
19469    cat >conftest.$ac_ext <<_ACEOF
19470 /* confdefs.h.  */
19471 _ACEOF
19472 cat confdefs.h >>conftest.$ac_ext
19473 cat >>conftest.$ac_ext <<_ACEOF
19474 /* end confdefs.h.  */
19475  #include <sys/bitypes.h>
19476 int
19477 main ()
19478 {
19479  int8_t a; int16_t b; int32_t c;
19480         u_int8_t e; u_int16_t f; u_int32_t g;
19481         a = b = c = e = f = g = 1;
19482   ;
19483   return 0;
19484 }
19485 _ACEOF
19486 rm -f conftest.$ac_objext
19487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19488   (eval $ac_compile) 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } &&
19495          { ac_try='test -z "$ac_c_werror_flag"
19496                          || test ! -s conftest.err'
19497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498   (eval $ac_try) 2>&5
19499   ac_status=$?
19500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501   (exit $ac_status); }; } &&
19502          { ac_try='test -s conftest.$ac_objext'
19503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504   (eval $ac_try) 2>&5
19505   ac_status=$?
19506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507   (exit $ac_status); }; }; then
19508    cat >>confdefs.h <<\_ACEOF
19509 #define HAVE_U_INTXX_T 1
19510 _ACEOF
19511
19512         cat >>confdefs.h <<\_ACEOF
19513 #define HAVE_INTXX_T 1
19514 _ACEOF
19515
19516         cat >>confdefs.h <<\_ACEOF
19517 #define HAVE_SYS_BITYPES_H 1
19518 _ACEOF
19519
19520         echo "$as_me:$LINENO: result: yes" >&5
19521 echo "${ECHO_T}yes" >&6
19522 else
19523   echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19525
19526  echo "$as_me:$LINENO: result: no" >&5
19527 echo "${ECHO_T}no" >&6
19528
19529 fi
19530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19531 fi
19532
19533 if test -z "$have_u_intxx_t" ; then
19534    echo "$as_me:$LINENO: checking for uintXX_t types" >&5
19535 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
19536 if test "${ac_cv_have_uintxx_t+set}" = set; then
19537   echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539
19540       cat >conftest.$ac_ext <<_ACEOF
19541 /* confdefs.h.  */
19542 _ACEOF
19543 cat confdefs.h >>conftest.$ac_ext
19544 cat >>conftest.$ac_ext <<_ACEOF
19545 /* end confdefs.h.  */
19546  #include <sys/types.h>
19547 int
19548 main ()
19549 {
19550  uint8_t a; uint16_t b;
19551            uint32_t c; a = b = c = 1;
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558   (eval $ac_compile) 2>conftest.er1
19559   ac_status=$?
19560   grep -v '^ *+' conftest.er1 >conftest.err
19561   rm -f conftest.er1
19562   cat conftest.err >&5
19563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564   (exit $ac_status); } &&
19565          { ac_try='test -z "$ac_c_werror_flag"
19566                          || test ! -s conftest.err'
19567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568   (eval $ac_try) 2>&5
19569   ac_status=$?
19570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571   (exit $ac_status); }; } &&
19572          { ac_try='test -s conftest.$ac_objext'
19573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574   (eval $ac_try) 2>&5
19575   ac_status=$?
19576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577   (exit $ac_status); }; }; then
19578    ac_cv_have_uintxx_t="yes"
19579 else
19580   echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19582
19583  ac_cv_have_uintxx_t="no"
19584
19585 fi
19586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19587
19588 fi
19589 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
19590 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
19591    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
19592       cat >>confdefs.h <<\_ACEOF
19593 #define HAVE_UINTXX_T 1
19594 _ACEOF
19595
19596    fi
19597 fi
19598
19599 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
19600           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19601 then
19602    echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
19603 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
19604    cat >conftest.$ac_ext <<_ACEOF
19605 /* confdefs.h.  */
19606 _ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h.  */
19610  #include <sys/bitypes.h>
19611 int
19612 main ()
19613 {
19614  int64_t a; u_int64_t b;
19615        a = b = 1;
19616   ;
19617   return 0;
19618 }
19619 _ACEOF
19620 rm -f conftest.$ac_objext
19621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19622   (eval $ac_compile) 2>conftest.er1
19623   ac_status=$?
19624   grep -v '^ *+' conftest.er1 >conftest.err
19625   rm -f conftest.er1
19626   cat conftest.err >&5
19627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628   (exit $ac_status); } &&
19629          { ac_try='test -z "$ac_c_werror_flag"
19630                          || test ! -s conftest.err'
19631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632   (eval $ac_try) 2>&5
19633   ac_status=$?
19634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635   (exit $ac_status); }; } &&
19636          { ac_try='test -s conftest.$ac_objext'
19637   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638   (eval $ac_try) 2>&5
19639   ac_status=$?
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); }; }; then
19642    cat >>confdefs.h <<\_ACEOF
19643 #define HAVE_U_INT64_T 1
19644 _ACEOF
19645
19646        cat >>confdefs.h <<\_ACEOF
19647 #define HAVE_INT64_T 1
19648 _ACEOF
19649
19650        echo "$as_me:$LINENO: result: yes" >&5
19651 echo "${ECHO_T}yes" >&6
19652 else
19653   echo "$as_me: failed program was:" >&5
19654 sed 's/^/| /' conftest.$ac_ext >&5
19655
19656  echo "$as_me:$LINENO: result: no" >&5
19657 echo "${ECHO_T}no" >&6
19658
19659 fi
19660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19661 fi
19662
19663 if (test -z "$have_uintxx_t" && \
19664           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
19665 then
19666    echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
19667 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
19668    cat >conftest.$ac_ext <<_ACEOF
19669 /* confdefs.h.  */
19670 _ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h.  */
19674  #include <sys/bitypes.h>
19675 int
19676 main ()
19677 {
19678  uint8_t a; uint16_t b;
19679           uint32_t c; a = b = c = 1;
19680   ;
19681   return 0;
19682 }
19683 _ACEOF
19684 rm -f conftest.$ac_objext
19685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686   (eval $ac_compile) 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_c_werror_flag"
19694                          || test ! -s conftest.err'
19695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696   (eval $ac_try) 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; } &&
19700          { ac_try='test -s conftest.$ac_objext'
19701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702   (eval $ac_try) 2>&5
19703   ac_status=$?
19704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705   (exit $ac_status); }; }; then
19706    cat >>confdefs.h <<\_ACEOF
19707 #define HAVE_UINTXX_T 1
19708 _ACEOF
19709
19710        echo "$as_me:$LINENO: result: yes" >&5
19711 echo "${ECHO_T}yes" >&6
19712 else
19713   echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716  echo "$as_me:$LINENO: result: no" >&5
19717 echo "${ECHO_T}no" >&6
19718
19719 fi
19720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19721
19722 fi
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737
19738
19739
19740 for ac_func in \
19741         fork \
19742         getcwd \
19743         gethostname \
19744         getpid \
19745         gettimeofday \
19746         setpgid \
19747         setpgrp \
19748         setsid \
19749         signal \
19750         strerror \
19751         strncmp \
19752         strncpy \
19753         vfprintf \
19754
19755 do
19756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19757 echo "$as_me:$LINENO: checking for $ac_func" >&5
19758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19759 if eval "test \"\${$as_ac_var+set}\" = set"; then
19760   echo $ECHO_N "(cached) $ECHO_C" >&6
19761 else
19762   cat >conftest.$ac_ext <<_ACEOF
19763 /* confdefs.h.  */
19764 _ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h.  */
19768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19769    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19770 #define $ac_func innocuous_$ac_func
19771
19772 /* System header to define __stub macros and hopefully few prototypes,
19773     which can conflict with char $ac_func (); below.
19774     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19775     <limits.h> exists even on freestanding compilers.  */
19776
19777 #ifdef __STDC__
19778 # include <limits.h>
19779 #else
19780 # include <assert.h>
19781 #endif
19782
19783 #undef $ac_func
19784
19785 /* Override any gcc2 internal prototype to avoid an error.  */
19786 #ifdef __cplusplus
19787 extern "C"
19788 {
19789 #endif
19790 /* We use char because int might match the return type of a gcc2
19791    builtin and then its argument prototype would still apply.  */
19792 char $ac_func ();
19793 /* The GNU C library defines this for functions which it implements
19794     to always fail with ENOSYS.  Some functions are actually named
19795     something starting with __ and the normal name is an alias.  */
19796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19797 choke me
19798 #else
19799 char (*f) () = $ac_func;
19800 #endif
19801 #ifdef __cplusplus
19802 }
19803 #endif
19804
19805 int
19806 main ()
19807 {
19808 return f != $ac_func;
19809   ;
19810   return 0;
19811 }
19812 _ACEOF
19813 rm -f conftest.$ac_objext conftest$ac_exeext
19814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19815   (eval $ac_link) 2>conftest.er1
19816   ac_status=$?
19817   grep -v '^ *+' conftest.er1 >conftest.err
19818   rm -f conftest.er1
19819   cat conftest.err >&5
19820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821   (exit $ac_status); } &&
19822          { ac_try='test -z "$ac_c_werror_flag"
19823                          || test ! -s conftest.err'
19824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19825   (eval $ac_try) 2>&5
19826   ac_status=$?
19827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19828   (exit $ac_status); }; } &&
19829          { ac_try='test -s conftest$ac_exeext'
19830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19831   (eval $ac_try) 2>&5
19832   ac_status=$?
19833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19834   (exit $ac_status); }; }; then
19835   eval "$as_ac_var=yes"
19836 else
19837   echo "$as_me: failed program was:" >&5
19838 sed 's/^/| /' conftest.$ac_ext >&5
19839
19840 eval "$as_ac_var=no"
19841 fi
19842 rm -f conftest.err conftest.$ac_objext \
19843       conftest$ac_exeext conftest.$ac_ext
19844 fi
19845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19847 if test `eval echo '${'$as_ac_var'}'` = yes; then
19848   cat >>confdefs.h <<_ACEOF
19849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19850 _ACEOF
19851
19852 else
19853   echo 'configure: cannot find needed function.'; exit 1
19854
19855 fi
19856 done
19857
19858
19859
19860 for ac_func in fchdir
19861 do
19862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19863 echo "$as_me:$LINENO: checking for $ac_func" >&5
19864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19865 if eval "test \"\${$as_ac_var+set}\" = set"; then
19866   echo $ECHO_N "(cached) $ECHO_C" >&6
19867 else
19868   cat >conftest.$ac_ext <<_ACEOF
19869 /* confdefs.h.  */
19870 _ACEOF
19871 cat confdefs.h >>conftest.$ac_ext
19872 cat >>conftest.$ac_ext <<_ACEOF
19873 /* end confdefs.h.  */
19874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19876 #define $ac_func innocuous_$ac_func
19877
19878 /* System header to define __stub macros and hopefully few prototypes,
19879     which can conflict with char $ac_func (); below.
19880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19881     <limits.h> exists even on freestanding compilers.  */
19882
19883 #ifdef __STDC__
19884 # include <limits.h>
19885 #else
19886 # include <assert.h>
19887 #endif
19888
19889 #undef $ac_func
19890
19891 /* Override any gcc2 internal prototype to avoid an error.  */
19892 #ifdef __cplusplus
19893 extern "C"
19894 {
19895 #endif
19896 /* We use char because int might match the return type of a gcc2
19897    builtin and then its argument prototype would still apply.  */
19898 char $ac_func ();
19899 /* The GNU C library defines this for functions which it implements
19900     to always fail with ENOSYS.  Some functions are actually named
19901     something starting with __ and the normal name is an alias.  */
19902 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19903 choke me
19904 #else
19905 char (*f) () = $ac_func;
19906 #endif
19907 #ifdef __cplusplus
19908 }
19909 #endif
19910
19911 int
19912 main ()
19913 {
19914 return f != $ac_func;
19915   ;
19916   return 0;
19917 }
19918 _ACEOF
19919 rm -f conftest.$ac_objext conftest$ac_exeext
19920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19921   (eval $ac_link) 2>conftest.er1
19922   ac_status=$?
19923   grep -v '^ *+' conftest.er1 >conftest.err
19924   rm -f conftest.er1
19925   cat conftest.err >&5
19926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927   (exit $ac_status); } &&
19928          { ac_try='test -z "$ac_c_werror_flag"
19929                          || test ! -s conftest.err'
19930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931   (eval $ac_try) 2>&5
19932   ac_status=$?
19933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934   (exit $ac_status); }; } &&
19935          { ac_try='test -s conftest$ac_exeext'
19936   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937   (eval $ac_try) 2>&5
19938   ac_status=$?
19939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940   (exit $ac_status); }; }; then
19941   eval "$as_ac_var=yes"
19942 else
19943   echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 eval "$as_ac_var=no"
19947 fi
19948 rm -f conftest.err conftest.$ac_objext \
19949       conftest$ac_exeext conftest.$ac_ext
19950 fi
19951 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19952 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19953 if test `eval echo '${'$as_ac_var'}'` = yes; then
19954   cat >>confdefs.h <<_ACEOF
19955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19956 _ACEOF
19957  cat >>confdefs.h <<\_ACEOF
19958 #define HAVE_FCHDIR 1
19959 _ACEOF
19960
19961 fi
19962 done
19963
19964
19965 for ac_func in strtoll
19966 do
19967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19968 echo "$as_me:$LINENO: checking for $ac_func" >&5
19969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19970 if eval "test \"\${$as_ac_var+set}\" = set"; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h.  */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h.  */
19979 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19980    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19981 #define $ac_func innocuous_$ac_func
19982
19983 /* System header to define __stub macros and hopefully few prototypes,
19984     which can conflict with char $ac_func (); below.
19985     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19986     <limits.h> exists even on freestanding compilers.  */
19987
19988 #ifdef __STDC__
19989 # include <limits.h>
19990 #else
19991 # include <assert.h>
19992 #endif
19993
19994 #undef $ac_func
19995
19996 /* Override any gcc2 internal prototype to avoid an error.  */
19997 #ifdef __cplusplus
19998 extern "C"
19999 {
20000 #endif
20001 /* We use char because int might match the return type of a gcc2
20002    builtin and then its argument prototype would still apply.  */
20003 char $ac_func ();
20004 /* The GNU C library defines this for functions which it implements
20005     to always fail with ENOSYS.  Some functions are actually named
20006     something starting with __ and the normal name is an alias.  */
20007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20008 choke me
20009 #else
20010 char (*f) () = $ac_func;
20011 #endif
20012 #ifdef __cplusplus
20013 }
20014 #endif
20015
20016 int
20017 main ()
20018 {
20019 return f != $ac_func;
20020   ;
20021   return 0;
20022 }
20023 _ACEOF
20024 rm -f conftest.$ac_objext conftest$ac_exeext
20025 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20026   (eval $ac_link) 2>conftest.er1
20027   ac_status=$?
20028   grep -v '^ *+' conftest.er1 >conftest.err
20029   rm -f conftest.er1
20030   cat conftest.err >&5
20031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032   (exit $ac_status); } &&
20033          { ac_try='test -z "$ac_c_werror_flag"
20034                          || test ! -s conftest.err'
20035   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20036   (eval $ac_try) 2>&5
20037   ac_status=$?
20038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039   (exit $ac_status); }; } &&
20040          { ac_try='test -s conftest$ac_exeext'
20041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20042   (eval $ac_try) 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; }; then
20046   eval "$as_ac_var=yes"
20047 else
20048   echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 eval "$as_ac_var=no"
20052 fi
20053 rm -f conftest.err conftest.$ac_objext \
20054       conftest$ac_exeext conftest.$ac_ext
20055 fi
20056 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20057 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20058 if test `eval echo '${'$as_ac_var'}'` = yes; then
20059   cat >>confdefs.h <<_ACEOF
20060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20061 _ACEOF
20062  cat >>confdefs.h <<\_ACEOF
20063 #define HAVE_STRTOLL 1
20064 _ACEOF
20065
20066 fi
20067 done
20068
20069
20070
20071 for ac_func in chflags
20072 do
20073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20074 echo "$as_me:$LINENO: checking for $ac_func" >&5
20075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20076 if eval "test \"\${$as_ac_var+set}\" = set"; then
20077   echo $ECHO_N "(cached) $ECHO_C" >&6
20078 else
20079   cat >conftest.$ac_ext <<_ACEOF
20080 /* confdefs.h.  */
20081 _ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h.  */
20085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20086    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20087 #define $ac_func innocuous_$ac_func
20088
20089 /* System header to define __stub macros and hopefully few prototypes,
20090     which can conflict with char $ac_func (); below.
20091     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20092     <limits.h> exists even on freestanding compilers.  */
20093
20094 #ifdef __STDC__
20095 # include <limits.h>
20096 #else
20097 # include <assert.h>
20098 #endif
20099
20100 #undef $ac_func
20101
20102 /* Override any gcc2 internal prototype to avoid an error.  */
20103 #ifdef __cplusplus
20104 extern "C"
20105 {
20106 #endif
20107 /* We use char because int might match the return type of a gcc2
20108    builtin and then its argument prototype would still apply.  */
20109 char $ac_func ();
20110 /* The GNU C library defines this for functions which it implements
20111     to always fail with ENOSYS.  Some functions are actually named
20112     something starting with __ and the normal name is an alias.  */
20113 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20114 choke me
20115 #else
20116 char (*f) () = $ac_func;
20117 #endif
20118 #ifdef __cplusplus
20119 }
20120 #endif
20121
20122 int
20123 main ()
20124 {
20125 return f != $ac_func;
20126   ;
20127   return 0;
20128 }
20129 _ACEOF
20130 rm -f conftest.$ac_objext conftest$ac_exeext
20131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20132   (eval $ac_link) 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } &&
20139          { ac_try='test -z "$ac_c_werror_flag"
20140                          || test ! -s conftest.err'
20141   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20142   (eval $ac_try) 2>&5
20143   ac_status=$?
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); }; } &&
20146          { ac_try='test -s conftest$ac_exeext'
20147   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20148   (eval $ac_try) 2>&5
20149   ac_status=$?
20150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151   (exit $ac_status); }; }; then
20152   eval "$as_ac_var=yes"
20153 else
20154   echo "$as_me: failed program was:" >&5
20155 sed 's/^/| /' conftest.$ac_ext >&5
20156
20157 eval "$as_ac_var=no"
20158 fi
20159 rm -f conftest.err conftest.$ac_objext \
20160       conftest$ac_exeext conftest.$ac_ext
20161 fi
20162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20164 if test `eval echo '${'$as_ac_var'}'` = yes; then
20165   cat >>confdefs.h <<_ACEOF
20166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20167 _ACEOF
20168
20169 fi
20170 done
20171
20172
20173
20174
20175
20176
20177 for ac_func in snprintf vsnprintf gethostid fseeko
20178 do
20179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20180 echo "$as_me:$LINENO: checking for $ac_func" >&5
20181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20182 if eval "test \"\${$as_ac_var+set}\" = set"; then
20183   echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185   cat >conftest.$ac_ext <<_ACEOF
20186 /* confdefs.h.  */
20187 _ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h.  */
20191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20193 #define $ac_func innocuous_$ac_func
20194
20195 /* System header to define __stub macros and hopefully few prototypes,
20196     which can conflict with char $ac_func (); below.
20197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20198     <limits.h> exists even on freestanding compilers.  */
20199
20200 #ifdef __STDC__
20201 # include <limits.h>
20202 #else
20203 # include <assert.h>
20204 #endif
20205
20206 #undef $ac_func
20207
20208 /* Override any gcc2 internal prototype to avoid an error.  */
20209 #ifdef __cplusplus
20210 extern "C"
20211 {
20212 #endif
20213 /* We use char because int might match the return type of a gcc2
20214    builtin and then its argument prototype would still apply.  */
20215 char $ac_func ();
20216 /* The GNU C library defines this for functions which it implements
20217     to always fail with ENOSYS.  Some functions are actually named
20218     something starting with __ and the normal name is an alias.  */
20219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20220 choke me
20221 #else
20222 char (*f) () = $ac_func;
20223 #endif
20224 #ifdef __cplusplus
20225 }
20226 #endif
20227
20228 int
20229 main ()
20230 {
20231 return f != $ac_func;
20232   ;
20233   return 0;
20234 }
20235 _ACEOF
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20238   (eval $ac_link) 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } &&
20245          { ac_try='test -z "$ac_c_werror_flag"
20246                          || test ! -s conftest.err'
20247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20248   (eval $ac_try) 2>&5
20249   ac_status=$?
20250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251   (exit $ac_status); }; } &&
20252          { ac_try='test -s conftest$ac_exeext'
20253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254   (eval $ac_try) 2>&5
20255   ac_status=$?
20256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257   (exit $ac_status); }; }; then
20258   eval "$as_ac_var=yes"
20259 else
20260   echo "$as_me: failed program was:" >&5
20261 sed 's/^/| /' conftest.$ac_ext >&5
20262
20263 eval "$as_ac_var=no"
20264 fi
20265 rm -f conftest.err conftest.$ac_objext \
20266       conftest$ac_exeext conftest.$ac_ext
20267 fi
20268 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20269 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20270 if test `eval echo '${'$as_ac_var'}'` = yes; then
20271   cat >>confdefs.h <<_ACEOF
20272 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20273 _ACEOF
20274
20275 fi
20276 done
20277
20278
20279
20280
20281
20282
20283 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
20284 do
20285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20286 echo "$as_me:$LINENO: checking for $ac_func" >&5
20287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20288 if eval "test \"\${$as_ac_var+set}\" = set"; then
20289   echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291   cat >conftest.$ac_ext <<_ACEOF
20292 /* confdefs.h.  */
20293 _ACEOF
20294 cat confdefs.h >>conftest.$ac_ext
20295 cat >>conftest.$ac_ext <<_ACEOF
20296 /* end confdefs.h.  */
20297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20299 #define $ac_func innocuous_$ac_func
20300
20301 /* System header to define __stub macros and hopefully few prototypes,
20302     which can conflict with char $ac_func (); below.
20303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20304     <limits.h> exists even on freestanding compilers.  */
20305
20306 #ifdef __STDC__
20307 # include <limits.h>
20308 #else
20309 # include <assert.h>
20310 #endif
20311
20312 #undef $ac_func
20313
20314 /* Override any gcc2 internal prototype to avoid an error.  */
20315 #ifdef __cplusplus
20316 extern "C"
20317 {
20318 #endif
20319 /* We use char because int might match the return type of a gcc2
20320    builtin and then its argument prototype would still apply.  */
20321 char $ac_func ();
20322 /* The GNU C library defines this for functions which it implements
20323     to always fail with ENOSYS.  Some functions are actually named
20324     something starting with __ and the normal name is an alias.  */
20325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20326 choke me
20327 #else
20328 char (*f) () = $ac_func;
20329 #endif
20330 #ifdef __cplusplus
20331 }
20332 #endif
20333
20334 int
20335 main ()
20336 {
20337 return f != $ac_func;
20338   ;
20339   return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext conftest$ac_exeext
20343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20344   (eval $ac_link) 2>conftest.er1
20345   ac_status=$?
20346   grep -v '^ *+' conftest.er1 >conftest.err
20347   rm -f conftest.er1
20348   cat conftest.err >&5
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); } &&
20351          { ac_try='test -z "$ac_c_werror_flag"
20352                          || test ! -s conftest.err'
20353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20354   (eval $ac_try) 2>&5
20355   ac_status=$?
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); }; } &&
20358          { ac_try='test -s conftest$ac_exeext'
20359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360   (eval $ac_try) 2>&5
20361   ac_status=$?
20362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363   (exit $ac_status); }; }; then
20364   eval "$as_ac_var=yes"
20365 else
20366   echo "$as_me: failed program was:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20368
20369 eval "$as_ac_var=no"
20370 fi
20371 rm -f conftest.err conftest.$ac_objext \
20372       conftest$ac_exeext conftest.$ac_ext
20373 fi
20374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20376 if test `eval echo '${'$as_ac_var'}'` = yes; then
20377   cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20379 _ACEOF
20380
20381 fi
20382 done
20383
20384
20385 # If resolver functions are not in libc check for -lnsl or -lresolv.
20386 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
20387 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
20388 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
20389   echo $ECHO_N "(cached) $ECHO_C" >&6
20390 else
20391   cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h.  */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h.  */
20397 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
20398    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20399 #define gethostbyname_r innocuous_gethostbyname_r
20400
20401 /* System header to define __stub macros and hopefully few prototypes,
20402     which can conflict with char gethostbyname_r (); below.
20403     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20404     <limits.h> exists even on freestanding compilers.  */
20405
20406 #ifdef __STDC__
20407 # include <limits.h>
20408 #else
20409 # include <assert.h>
20410 #endif
20411
20412 #undef gethostbyname_r
20413
20414 /* Override any gcc2 internal prototype to avoid an error.  */
20415 #ifdef __cplusplus
20416 extern "C"
20417 {
20418 #endif
20419 /* We use char because int might match the return type of a gcc2
20420    builtin and then its argument prototype would still apply.  */
20421 char gethostbyname_r ();
20422 /* The GNU C library defines this for functions which it implements
20423     to always fail with ENOSYS.  Some functions are actually named
20424     something starting with __ and the normal name is an alias.  */
20425 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
20426 choke me
20427 #else
20428 char (*f) () = gethostbyname_r;
20429 #endif
20430 #ifdef __cplusplus
20431 }
20432 #endif
20433
20434 int
20435 main ()
20436 {
20437 return f != gethostbyname_r;
20438   ;
20439   return 0;
20440 }
20441 _ACEOF
20442 rm -f conftest.$ac_objext conftest$ac_exeext
20443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20444   (eval $ac_link) 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } &&
20451          { ac_try='test -z "$ac_c_werror_flag"
20452                          || test ! -s conftest.err'
20453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20454   (eval $ac_try) 2>&5
20455   ac_status=$?
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); }; } &&
20458          { ac_try='test -s conftest$ac_exeext'
20459   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20460   (eval $ac_try) 2>&5
20461   ac_status=$?
20462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20463   (exit $ac_status); }; }; then
20464   ac_cv_func_gethostbyname_r=yes
20465 else
20466   echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20468
20469 ac_cv_func_gethostbyname_r=no
20470 fi
20471 rm -f conftest.err conftest.$ac_objext \
20472       conftest$ac_exeext conftest.$ac_ext
20473 fi
20474 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
20475 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
20476 if test $ac_cv_func_gethostbyname_r = yes; then
20477   echo "$as_me:$LINENO: result: using libc's resolver" >&5
20478 echo "${ECHO_T}using libc's resolver" >&6
20479 else
20480
20481 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
20482 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
20483 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
20484   echo $ECHO_N "(cached) $ECHO_C" >&6
20485 else
20486   ac_check_lib_save_LIBS=$LIBS
20487 LIBS="-lnsl  $LIBS"
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494
20495 /* Override any gcc2 internal prototype to avoid an error.  */
20496 #ifdef __cplusplus
20497 extern "C"
20498 #endif
20499 /* We use char because int might match the return type of a gcc2
20500    builtin and then its argument prototype would still apply.  */
20501 char gethostbyname_r ();
20502 int
20503 main ()
20504 {
20505 gethostbyname_r ();
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 rm -f conftest.$ac_objext conftest$ac_exeext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20512   (eval $ac_link) 2>conftest.er1
20513   ac_status=$?
20514   grep -v '^ *+' conftest.er1 >conftest.err
20515   rm -f conftest.er1
20516   cat conftest.err >&5
20517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518   (exit $ac_status); } &&
20519          { ac_try='test -z "$ac_c_werror_flag"
20520                          || test ! -s conftest.err'
20521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522   (eval $ac_try) 2>&5
20523   ac_status=$?
20524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525   (exit $ac_status); }; } &&
20526          { ac_try='test -s conftest$ac_exeext'
20527   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528   (eval $ac_try) 2>&5
20529   ac_status=$?
20530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531   (exit $ac_status); }; }; then
20532   ac_cv_lib_nsl_gethostbyname_r=yes
20533 else
20534   echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20536
20537 ac_cv_lib_nsl_gethostbyname_r=no
20538 fi
20539 rm -f conftest.err conftest.$ac_objext \
20540       conftest$ac_exeext conftest.$ac_ext
20541 LIBS=$ac_check_lib_save_LIBS
20542 fi
20543 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
20544 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
20545 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
20546   cat >>confdefs.h <<_ACEOF
20547 #define HAVE_LIBNSL 1
20548 _ACEOF
20549
20550   LIBS="-lnsl $LIBS"
20551
20552 fi
20553
20554
20555 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
20556 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
20557 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
20558   echo $ECHO_N "(cached) $ECHO_C" >&6
20559 else
20560   ac_check_lib_save_LIBS=$LIBS
20561 LIBS="-lresolv  $LIBS"
20562 cat >conftest.$ac_ext <<_ACEOF
20563 /* confdefs.h.  */
20564 _ACEOF
20565 cat confdefs.h >>conftest.$ac_ext
20566 cat >>conftest.$ac_ext <<_ACEOF
20567 /* end confdefs.h.  */
20568
20569 /* Override any gcc2 internal prototype to avoid an error.  */
20570 #ifdef __cplusplus
20571 extern "C"
20572 #endif
20573 /* We use char because int might match the return type of a gcc2
20574    builtin and then its argument prototype would still apply.  */
20575 char gethostbyname_r ();
20576 int
20577 main ()
20578 {
20579 gethostbyname_r ();
20580   ;
20581   return 0;
20582 }
20583 _ACEOF
20584 rm -f conftest.$ac_objext conftest$ac_exeext
20585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20586   (eval $ac_link) 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } &&
20593          { ac_try='test -z "$ac_c_werror_flag"
20594                          || test ! -s conftest.err'
20595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20596   (eval $ac_try) 2>&5
20597   ac_status=$?
20598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20599   (exit $ac_status); }; } &&
20600          { ac_try='test -s conftest$ac_exeext'
20601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20602   (eval $ac_try) 2>&5
20603   ac_status=$?
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); }; }; then
20606   ac_cv_lib_resolv_gethostbyname_r=yes
20607 else
20608   echo "$as_me: failed program was:" >&5
20609 sed 's/^/| /' conftest.$ac_ext >&5
20610
20611 ac_cv_lib_resolv_gethostbyname_r=no
20612 fi
20613 rm -f conftest.err conftest.$ac_objext \
20614       conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20616 fi
20617 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
20618 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
20619 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
20620   cat >>confdefs.h <<_ACEOF
20621 #define HAVE_LIBRESOLV 1
20622 _ACEOF
20623
20624   LIBS="-lresolv $LIBS"
20625
20626 fi
20627
20628 fi
20629
20630
20631
20632
20633
20634 for ac_func in inet_pton
20635 do
20636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20637 echo "$as_me:$LINENO: checking for $ac_func" >&5
20638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20639 if eval "test \"\${$as_ac_var+set}\" = set"; then
20640   echo $ECHO_N "(cached) $ECHO_C" >&6
20641 else
20642   cat >conftest.$ac_ext <<_ACEOF
20643 /* confdefs.h.  */
20644 _ACEOF
20645 cat confdefs.h >>conftest.$ac_ext
20646 cat >>conftest.$ac_ext <<_ACEOF
20647 /* end confdefs.h.  */
20648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20650 #define $ac_func innocuous_$ac_func
20651
20652 /* System header to define __stub macros and hopefully few prototypes,
20653     which can conflict with char $ac_func (); below.
20654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20655     <limits.h> exists even on freestanding compilers.  */
20656
20657 #ifdef __STDC__
20658 # include <limits.h>
20659 #else
20660 # include <assert.h>
20661 #endif
20662
20663 #undef $ac_func
20664
20665 /* Override any gcc2 internal prototype to avoid an error.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 {
20669 #endif
20670 /* We use char because int might match the return type of a gcc2
20671    builtin and then its argument prototype would still apply.  */
20672 char $ac_func ();
20673 /* The GNU C library defines this for functions which it implements
20674     to always fail with ENOSYS.  Some functions are actually named
20675     something starting with __ and the normal name is an alias.  */
20676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20677 choke me
20678 #else
20679 char (*f) () = $ac_func;
20680 #endif
20681 #ifdef __cplusplus
20682 }
20683 #endif
20684
20685 int
20686 main ()
20687 {
20688 return f != $ac_func;
20689   ;
20690   return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20695   (eval $ac_link) 2>conftest.er1
20696   ac_status=$?
20697   grep -v '^ *+' conftest.er1 >conftest.err
20698   rm -f conftest.er1
20699   cat conftest.err >&5
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); } &&
20702          { ac_try='test -z "$ac_c_werror_flag"
20703                          || test ! -s conftest.err'
20704   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705   (eval $ac_try) 2>&5
20706   ac_status=$?
20707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708   (exit $ac_status); }; } &&
20709          { ac_try='test -s conftest$ac_exeext'
20710   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20711   (eval $ac_try) 2>&5
20712   ac_status=$?
20713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714   (exit $ac_status); }; }; then
20715   eval "$as_ac_var=yes"
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 eval "$as_ac_var=no"
20721 fi
20722 rm -f conftest.err conftest.$ac_objext \
20723       conftest$ac_exeext conftest.$ac_ext
20724 fi
20725 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20726 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20727 if test `eval echo '${'$as_ac_var'}'` = yes; then
20728   cat >>confdefs.h <<_ACEOF
20729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20730 _ACEOF
20731  cat >>confdefs.h <<\_ACEOF
20732 #define HAVE_INET_PTON 1
20733 _ACEOF
20734
20735 fi
20736 done
20737
20738
20739 for ac_func in inet_ntop
20740 do
20741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20742 echo "$as_me:$LINENO: checking for $ac_func" >&5
20743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20744 if eval "test \"\${$as_ac_var+set}\" = set"; then
20745   echo $ECHO_N "(cached) $ECHO_C" >&6
20746 else
20747   cat >conftest.$ac_ext <<_ACEOF
20748 /* confdefs.h.  */
20749 _ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h.  */
20753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20754    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20755 #define $ac_func innocuous_$ac_func
20756
20757 /* System header to define __stub macros and hopefully few prototypes,
20758     which can conflict with char $ac_func (); below.
20759     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20760     <limits.h> exists even on freestanding compilers.  */
20761
20762 #ifdef __STDC__
20763 # include <limits.h>
20764 #else
20765 # include <assert.h>
20766 #endif
20767
20768 #undef $ac_func
20769
20770 /* Override any gcc2 internal prototype to avoid an error.  */
20771 #ifdef __cplusplus
20772 extern "C"
20773 {
20774 #endif
20775 /* We use char because int might match the return type of a gcc2
20776    builtin and then its argument prototype would still apply.  */
20777 char $ac_func ();
20778 /* The GNU C library defines this for functions which it implements
20779     to always fail with ENOSYS.  Some functions are actually named
20780     something starting with __ and the normal name is an alias.  */
20781 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20782 choke me
20783 #else
20784 char (*f) () = $ac_func;
20785 #endif
20786 #ifdef __cplusplus
20787 }
20788 #endif
20789
20790 int
20791 main ()
20792 {
20793 return f != $ac_func;
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20800   (eval $ac_link) 2>conftest.er1
20801   ac_status=$?
20802   grep -v '^ *+' conftest.er1 >conftest.err
20803   rm -f conftest.er1
20804   cat conftest.err >&5
20805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806   (exit $ac_status); } &&
20807          { ac_try='test -z "$ac_c_werror_flag"
20808                          || test ! -s conftest.err'
20809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810   (eval $ac_try) 2>&5
20811   ac_status=$?
20812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813   (exit $ac_status); }; } &&
20814          { ac_try='test -s conftest$ac_exeext'
20815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20816   (eval $ac_try) 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; }; then
20820   eval "$as_ac_var=yes"
20821 else
20822   echo "$as_me: failed program was:" >&5
20823 sed 's/^/| /' conftest.$ac_ext >&5
20824
20825 eval "$as_ac_var=no"
20826 fi
20827 rm -f conftest.err conftest.$ac_objext \
20828       conftest$ac_exeext conftest.$ac_ext
20829 fi
20830 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20831 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20832 if test `eval echo '${'$as_ac_var'}'` = yes; then
20833   cat >>confdefs.h <<_ACEOF
20834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20835 _ACEOF
20836  cat >>confdefs.h <<\_ACEOF
20837 #define HAVE_INET_NTOP 1
20838 _ACEOF
20839
20840 fi
20841 done
20842
20843
20844 for ac_func in gethostbyname2
20845 do
20846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20847 echo "$as_me:$LINENO: checking for $ac_func" >&5
20848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20849 if eval "test \"\${$as_ac_var+set}\" = set"; then
20850   echo $ECHO_N "(cached) $ECHO_C" >&6
20851 else
20852   cat >conftest.$ac_ext <<_ACEOF
20853 /* confdefs.h.  */
20854 _ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h.  */
20858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20860 #define $ac_func innocuous_$ac_func
20861
20862 /* System header to define __stub macros and hopefully few prototypes,
20863     which can conflict with char $ac_func (); below.
20864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20865     <limits.h> exists even on freestanding compilers.  */
20866
20867 #ifdef __STDC__
20868 # include <limits.h>
20869 #else
20870 # include <assert.h>
20871 #endif
20872
20873 #undef $ac_func
20874
20875 /* Override any gcc2 internal prototype to avoid an error.  */
20876 #ifdef __cplusplus
20877 extern "C"
20878 {
20879 #endif
20880 /* We use char because int might match the return type of a gcc2
20881    builtin and then its argument prototype would still apply.  */
20882 char $ac_func ();
20883 /* The GNU C library defines this for functions which it implements
20884     to always fail with ENOSYS.  Some functions are actually named
20885     something starting with __ and the normal name is an alias.  */
20886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20887 choke me
20888 #else
20889 char (*f) () = $ac_func;
20890 #endif
20891 #ifdef __cplusplus
20892 }
20893 #endif
20894
20895 int
20896 main ()
20897 {
20898 return f != $ac_func;
20899   ;
20900   return 0;
20901 }
20902 _ACEOF
20903 rm -f conftest.$ac_objext conftest$ac_exeext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20905   (eval $ac_link) 2>conftest.er1
20906   ac_status=$?
20907   grep -v '^ *+' conftest.er1 >conftest.err
20908   rm -f conftest.er1
20909   cat conftest.err >&5
20910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911   (exit $ac_status); } &&
20912          { ac_try='test -z "$ac_c_werror_flag"
20913                          || test ! -s conftest.err'
20914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915   (eval $ac_try) 2>&5
20916   ac_status=$?
20917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918   (exit $ac_status); }; } &&
20919          { ac_try='test -s conftest$ac_exeext'
20920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20921   (eval $ac_try) 2>&5
20922   ac_status=$?
20923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924   (exit $ac_status); }; }; then
20925   eval "$as_ac_var=yes"
20926 else
20927   echo "$as_me: failed program was:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20929
20930 eval "$as_ac_var=no"
20931 fi
20932 rm -f conftest.err conftest.$ac_objext \
20933       conftest$ac_exeext conftest.$ac_ext
20934 fi
20935 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20936 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20937 if test `eval echo '${'$as_ac_var'}'` = yes; then
20938   cat >>confdefs.h <<_ACEOF
20939 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20940 _ACEOF
20941  cat >>confdefs.h <<\_ACEOF
20942 #define HAVE_GETHOSTBYNAME2 1
20943 _ACEOF
20944
20945 fi
20946 done
20947
20948
20949 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
20950 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
20951 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <sys/socket.h>
20961 int
20962 main ()
20963 {
20964 struct sockaddr s; s.sa_len;
20965   ;
20966   return 0;
20967 }
20968 _ACEOF
20969 rm -f conftest.$ac_objext
20970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20971   (eval $ac_compile) 2>conftest.er1
20972   ac_status=$?
20973   grep -v '^ *+' conftest.er1 >conftest.err
20974   rm -f conftest.er1
20975   cat conftest.err >&5
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); } &&
20978          { ac_try='test -z "$ac_c_werror_flag"
20979                          || test ! -s conftest.err'
20980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981   (eval $ac_try) 2>&5
20982   ac_status=$?
20983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984   (exit $ac_status); }; } &&
20985          { ac_try='test -s conftest.$ac_objext'
20986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987   (eval $ac_try) 2>&5
20988   ac_status=$?
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); }; }; then
20991   ac_cv_struct_sockaddr_sa_len=yes
20992 else
20993   echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 ac_cv_struct_sockaddr_sa_len=no
20997 fi
20998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20999 fi
21000 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
21001 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
21002
21003  if test $ac_cv_struct_sockaddr_sa_len = yes; then
21004
21005 cat >>confdefs.h <<\_ACEOF
21006 #define HAVE_SA_LEN 1
21007 _ACEOF
21008
21009  fi
21010
21011
21012 echo "$as_me:$LINENO: checking for IPv6 support" >&5
21013 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
21014 if test "${ac_cv_ipv6_support+set}" = set; then
21015   echo $ECHO_N "(cached) $ECHO_C" >&6
21016 else
21017   cat >conftest.$ac_ext <<_ACEOF
21018 /* confdefs.h.  */
21019 _ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h.  */
21023  #include <sys/types.h>
21024 #include <sys/socket.h>
21025 #include <netinet/in.h>
21026 int
21027 main ()
21028 {
21029 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
21030  0;
21031   ;
21032   return 0;
21033 }
21034 _ACEOF
21035 rm -f conftest.$ac_objext conftest$ac_exeext
21036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21037   (eval $ac_link) 2>conftest.er1
21038   ac_status=$?
21039   grep -v '^ *+' conftest.er1 >conftest.err
21040   rm -f conftest.er1
21041   cat conftest.err >&5
21042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21043   (exit $ac_status); } &&
21044          { ac_try='test -z "$ac_c_werror_flag"
21045                          || test ! -s conftest.err'
21046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047   (eval $ac_try) 2>&5
21048   ac_status=$?
21049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050   (exit $ac_status); }; } &&
21051          { ac_try='test -s conftest$ac_exeext'
21052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21053   (eval $ac_try) 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_ipv6_support=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062 ac_cv_ipv6_support=no
21063 fi
21064 rm -f conftest.err conftest.$ac_objext \
21065       conftest$ac_exeext conftest.$ac_ext
21066 fi
21067 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
21068 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
21069
21070 if test "$ac_cv_ipv6_support" = yes; then
21071
21072 cat >>confdefs.h <<\_ACEOF
21073 #define HAVE_IPV6 1
21074 _ACEOF
21075
21076 fi
21077
21078
21079
21080
21081 for ac_func in strftime
21082 do
21083 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21084 echo "$as_me:$LINENO: checking for $ac_func" >&5
21085 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21086 if eval "test \"\${$as_ac_var+set}\" = set"; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089   cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21097 #define $ac_func innocuous_$ac_func
21098
21099 /* System header to define __stub macros and hopefully few prototypes,
21100     which can conflict with char $ac_func (); below.
21101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21102     <limits.h> exists even on freestanding compilers.  */
21103
21104 #ifdef __STDC__
21105 # include <limits.h>
21106 #else
21107 # include <assert.h>
21108 #endif
21109
21110 #undef $ac_func
21111
21112 /* Override any gcc2 internal prototype to avoid an error.  */
21113 #ifdef __cplusplus
21114 extern "C"
21115 {
21116 #endif
21117 /* We use char because int might match the return type of a gcc2
21118    builtin and then its argument prototype would still apply.  */
21119 char $ac_func ();
21120 /* The GNU C library defines this for functions which it implements
21121     to always fail with ENOSYS.  Some functions are actually named
21122     something starting with __ and the normal name is an alias.  */
21123 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21124 choke me
21125 #else
21126 char (*f) () = $ac_func;
21127 #endif
21128 #ifdef __cplusplus
21129 }
21130 #endif
21131
21132 int
21133 main ()
21134 {
21135 return f != $ac_func;
21136   ;
21137   return 0;
21138 }
21139 _ACEOF
21140 rm -f conftest.$ac_objext conftest$ac_exeext
21141 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21142   (eval $ac_link) 2>conftest.er1
21143   ac_status=$?
21144   grep -v '^ *+' conftest.er1 >conftest.err
21145   rm -f conftest.er1
21146   cat conftest.err >&5
21147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148   (exit $ac_status); } &&
21149          { ac_try='test -z "$ac_c_werror_flag"
21150                          || test ! -s conftest.err'
21151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152   (eval $ac_try) 2>&5
21153   ac_status=$?
21154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155   (exit $ac_status); }; } &&
21156          { ac_try='test -s conftest$ac_exeext'
21157   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158   (eval $ac_try) 2>&5
21159   ac_status=$?
21160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); }; }; then
21162   eval "$as_ac_var=yes"
21163 else
21164   echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21166
21167 eval "$as_ac_var=no"
21168 fi
21169 rm -f conftest.err conftest.$ac_objext \
21170       conftest$ac_exeext conftest.$ac_ext
21171 fi
21172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21173 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21174 if test `eval echo '${'$as_ac_var'}'` = yes; then
21175   cat >>confdefs.h <<_ACEOF
21176 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21177 _ACEOF
21178
21179 else
21180   # strftime is in -lintl on SCO UNIX.
21181 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21182 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21183 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186   ac_check_lib_save_LIBS=$LIBS
21187 LIBS="-lintl  $LIBS"
21188 cat >conftest.$ac_ext <<_ACEOF
21189 /* confdefs.h.  */
21190 _ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h.  */
21194
21195 /* Override any gcc2 internal prototype to avoid an error.  */
21196 #ifdef __cplusplus
21197 extern "C"
21198 #endif
21199 /* We use char because int might match the return type of a gcc2
21200    builtin and then its argument prototype would still apply.  */
21201 char strftime ();
21202 int
21203 main ()
21204 {
21205 strftime ();
21206   ;
21207   return 0;
21208 }
21209 _ACEOF
21210 rm -f conftest.$ac_objext conftest$ac_exeext
21211 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21212   (eval $ac_link) 2>conftest.er1
21213   ac_status=$?
21214   grep -v '^ *+' conftest.er1 >conftest.err
21215   rm -f conftest.er1
21216   cat conftest.err >&5
21217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21218   (exit $ac_status); } &&
21219          { ac_try='test -z "$ac_c_werror_flag"
21220                          || test ! -s conftest.err'
21221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21222   (eval $ac_try) 2>&5
21223   ac_status=$?
21224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225   (exit $ac_status); }; } &&
21226          { ac_try='test -s conftest$ac_exeext'
21227   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228   (eval $ac_try) 2>&5
21229   ac_status=$?
21230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231   (exit $ac_status); }; }; then
21232   ac_cv_lib_intl_strftime=yes
21233 else
21234   echo "$as_me: failed program was:" >&5
21235 sed 's/^/| /' conftest.$ac_ext >&5
21236
21237 ac_cv_lib_intl_strftime=no
21238 fi
21239 rm -f conftest.err conftest.$ac_objext \
21240       conftest$ac_exeext conftest.$ac_ext
21241 LIBS=$ac_check_lib_save_LIBS
21242 fi
21243 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21244 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21245 if test $ac_cv_lib_intl_strftime = yes; then
21246   cat >>confdefs.h <<\_ACEOF
21247 #define HAVE_STRFTIME 1
21248 _ACEOF
21249
21250 LIBS="-lintl $LIBS"
21251 fi
21252
21253 fi
21254 done
21255
21256
21257 for ac_func in vprintf
21258 do
21259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21260 echo "$as_me:$LINENO: checking for $ac_func" >&5
21261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21262 if eval "test \"\${$as_ac_var+set}\" = set"; then
21263   echo $ECHO_N "(cached) $ECHO_C" >&6
21264 else
21265   cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h.  */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h.  */
21271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21273 #define $ac_func innocuous_$ac_func
21274
21275 /* System header to define __stub macros and hopefully few prototypes,
21276     which can conflict with char $ac_func (); below.
21277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21278     <limits.h> exists even on freestanding compilers.  */
21279
21280 #ifdef __STDC__
21281 # include <limits.h>
21282 #else
21283 # include <assert.h>
21284 #endif
21285
21286 #undef $ac_func
21287
21288 /* Override any gcc2 internal prototype to avoid an error.  */
21289 #ifdef __cplusplus
21290 extern "C"
21291 {
21292 #endif
21293 /* We use char because int might match the return type of a gcc2
21294    builtin and then its argument prototype would still apply.  */
21295 char $ac_func ();
21296 /* The GNU C library defines this for functions which it implements
21297     to always fail with ENOSYS.  Some functions are actually named
21298     something starting with __ and the normal name is an alias.  */
21299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21300 choke me
21301 #else
21302 char (*f) () = $ac_func;
21303 #endif
21304 #ifdef __cplusplus
21305 }
21306 #endif
21307
21308 int
21309 main ()
21310 {
21311 return f != $ac_func;
21312   ;
21313   return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21318   (eval $ac_link) 2>conftest.er1
21319   ac_status=$?
21320   grep -v '^ *+' conftest.er1 >conftest.err
21321   rm -f conftest.er1
21322   cat conftest.err >&5
21323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324   (exit $ac_status); } &&
21325          { ac_try='test -z "$ac_c_werror_flag"
21326                          || test ! -s conftest.err'
21327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328   (eval $ac_try) 2>&5
21329   ac_status=$?
21330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331   (exit $ac_status); }; } &&
21332          { ac_try='test -s conftest$ac_exeext'
21333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21334   (eval $ac_try) 2>&5
21335   ac_status=$?
21336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337   (exit $ac_status); }; }; then
21338   eval "$as_ac_var=yes"
21339 else
21340   echo "$as_me: failed program was:" >&5
21341 sed 's/^/| /' conftest.$ac_ext >&5
21342
21343 eval "$as_ac_var=no"
21344 fi
21345 rm -f conftest.err conftest.$ac_objext \
21346       conftest$ac_exeext conftest.$ac_ext
21347 fi
21348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21350 if test `eval echo '${'$as_ac_var'}'` = yes; then
21351   cat >>confdefs.h <<_ACEOF
21352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21353 _ACEOF
21354
21355 echo "$as_me:$LINENO: checking for _doprnt" >&5
21356 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
21357 if test "${ac_cv_func__doprnt+set}" = set; then
21358   echo $ECHO_N "(cached) $ECHO_C" >&6
21359 else
21360   cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h.  */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h.  */
21366 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
21367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21368 #define _doprnt innocuous__doprnt
21369
21370 /* System header to define __stub macros and hopefully few prototypes,
21371     which can conflict with char _doprnt (); below.
21372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21373     <limits.h> exists even on freestanding compilers.  */
21374
21375 #ifdef __STDC__
21376 # include <limits.h>
21377 #else
21378 # include <assert.h>
21379 #endif
21380
21381 #undef _doprnt
21382
21383 /* Override any gcc2 internal prototype to avoid an error.  */
21384 #ifdef __cplusplus
21385 extern "C"
21386 {
21387 #endif
21388 /* We use char because int might match the return type of a gcc2
21389    builtin and then its argument prototype would still apply.  */
21390 char _doprnt ();
21391 /* The GNU C library defines this for functions which it implements
21392     to always fail with ENOSYS.  Some functions are actually named
21393     something starting with __ and the normal name is an alias.  */
21394 #if defined (__stub__doprnt) || defined (__stub____doprnt)
21395 choke me
21396 #else
21397 char (*f) () = _doprnt;
21398 #endif
21399 #ifdef __cplusplus
21400 }
21401 #endif
21402
21403 int
21404 main ()
21405 {
21406 return f != _doprnt;
21407   ;
21408   return 0;
21409 }
21410 _ACEOF
21411 rm -f conftest.$ac_objext conftest$ac_exeext
21412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21413   (eval $ac_link) 2>conftest.er1
21414   ac_status=$?
21415   grep -v '^ *+' conftest.er1 >conftest.err
21416   rm -f conftest.er1
21417   cat conftest.err >&5
21418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21419   (exit $ac_status); } &&
21420          { ac_try='test -z "$ac_c_werror_flag"
21421                          || test ! -s conftest.err'
21422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21423   (eval $ac_try) 2>&5
21424   ac_status=$?
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); }; } &&
21427          { ac_try='test -s conftest$ac_exeext'
21428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21429   (eval $ac_try) 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; }; then
21433   ac_cv_func__doprnt=yes
21434 else
21435   echo "$as_me: failed program was:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_cv_func__doprnt=no
21439 fi
21440 rm -f conftest.err conftest.$ac_objext \
21441       conftest$ac_exeext conftest.$ac_ext
21442 fi
21443 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21444 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21445 if test $ac_cv_func__doprnt = yes; then
21446
21447 cat >>confdefs.h <<\_ACEOF
21448 #define HAVE_DOPRNT 1
21449 _ACEOF
21450
21451 fi
21452
21453 fi
21454 done
21455
21456
21457 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21458 # for constant arguments.  Useless!
21459 echo "$as_me:$LINENO: checking for working alloca.h" >&5
21460 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21461 if test "${ac_cv_working_alloca_h+set}" = set; then
21462   echo $ECHO_N "(cached) $ECHO_C" >&6
21463 else
21464   cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h.  */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h.  */
21470 #include <alloca.h>
21471 int
21472 main ()
21473 {
21474 char *p = (char *) alloca (2 * sizeof (int));
21475   ;
21476   return 0;
21477 }
21478 _ACEOF
21479 rm -f conftest.$ac_objext conftest$ac_exeext
21480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21481   (eval $ac_link) 2>conftest.er1
21482   ac_status=$?
21483   grep -v '^ *+' conftest.er1 >conftest.err
21484   rm -f conftest.er1
21485   cat conftest.err >&5
21486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487   (exit $ac_status); } &&
21488          { ac_try='test -z "$ac_c_werror_flag"
21489                          || test ! -s conftest.err'
21490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21491   (eval $ac_try) 2>&5
21492   ac_status=$?
21493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494   (exit $ac_status); }; } &&
21495          { ac_try='test -s conftest$ac_exeext'
21496   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497   (eval $ac_try) 2>&5
21498   ac_status=$?
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); }; }; then
21501   ac_cv_working_alloca_h=yes
21502 else
21503   echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_cv_working_alloca_h=no
21507 fi
21508 rm -f conftest.err conftest.$ac_objext \
21509       conftest$ac_exeext conftest.$ac_ext
21510 fi
21511 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21512 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21513 if test $ac_cv_working_alloca_h = yes; then
21514
21515 cat >>confdefs.h <<\_ACEOF
21516 #define HAVE_ALLOCA_H 1
21517 _ACEOF
21518
21519 fi
21520
21521 echo "$as_me:$LINENO: checking for alloca" >&5
21522 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21523 if test "${ac_cv_func_alloca_works+set}" = set; then
21524   echo $ECHO_N "(cached) $ECHO_C" >&6
21525 else
21526   cat >conftest.$ac_ext <<_ACEOF
21527 /* confdefs.h.  */
21528 _ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h.  */
21532 #ifdef __GNUC__
21533 # define alloca __builtin_alloca
21534 #else
21535 # ifdef _MSC_VER
21536 #  include <malloc.h>
21537 #  define alloca _alloca
21538 # else
21539 #  if HAVE_ALLOCA_H
21540 #   include <alloca.h>
21541 #  else
21542 #   ifdef _AIX
21543  #pragma alloca
21544 #   else
21545 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21546 char *alloca ();
21547 #    endif
21548 #   endif
21549 #  endif
21550 # endif
21551 #endif
21552
21553 int
21554 main ()
21555 {
21556 char *p = (char *) alloca (1);
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563   (eval $ac_link) 2>conftest.er1
21564   ac_status=$?
21565   grep -v '^ *+' conftest.er1 >conftest.err
21566   rm -f conftest.er1
21567   cat conftest.err >&5
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); } &&
21570          { ac_try='test -z "$ac_c_werror_flag"
21571                          || test ! -s conftest.err'
21572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573   (eval $ac_try) 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); }; } &&
21577          { ac_try='test -s conftest$ac_exeext'
21578   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21579   (eval $ac_try) 2>&5
21580   ac_status=$?
21581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582   (exit $ac_status); }; }; then
21583   ac_cv_func_alloca_works=yes
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588 ac_cv_func_alloca_works=no
21589 fi
21590 rm -f conftest.err conftest.$ac_objext \
21591       conftest$ac_exeext conftest.$ac_ext
21592 fi
21593 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21594 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21595
21596 if test $ac_cv_func_alloca_works = yes; then
21597
21598 cat >>confdefs.h <<\_ACEOF
21599 #define HAVE_ALLOCA 1
21600 _ACEOF
21601
21602 else
21603   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21604 # that cause trouble.  Some versions do not even contain alloca or
21605 # contain a buggy version.  If you still want to use their alloca,
21606 # use ar to extract alloca.o from them instead of compiling alloca.c.
21607
21608 ALLOCA=alloca.$ac_objext
21609
21610 cat >>confdefs.h <<\_ACEOF
21611 #define C_ALLOCA 1
21612 _ACEOF
21613
21614
21615 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21616 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21617 if test "${ac_cv_os_cray+set}" = set; then
21618   echo $ECHO_N "(cached) $ECHO_C" >&6
21619 else
21620   cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h.  */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h.  */
21626 #if defined(CRAY) && ! defined(CRAY2)
21627 webecray
21628 #else
21629 wenotbecray
21630 #endif
21631
21632 _ACEOF
21633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21634   $EGREP "webecray" >/dev/null 2>&1; then
21635   ac_cv_os_cray=yes
21636 else
21637   ac_cv_os_cray=no
21638 fi
21639 rm -f conftest*
21640
21641 fi
21642 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21643 echo "${ECHO_T}$ac_cv_os_cray" >&6
21644 if test $ac_cv_os_cray = yes; then
21645   for ac_func in _getb67 GETB67 getb67; do
21646     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21647 echo "$as_me:$LINENO: checking for $ac_func" >&5
21648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21649 if eval "test \"\${$as_ac_var+set}\" = set"; then
21650   echo $ECHO_N "(cached) $ECHO_C" >&6
21651 else
21652   cat >conftest.$ac_ext <<_ACEOF
21653 /* confdefs.h.  */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h.  */
21658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21660 #define $ac_func innocuous_$ac_func
21661
21662 /* System header to define __stub macros and hopefully few prototypes,
21663     which can conflict with char $ac_func (); below.
21664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21665     <limits.h> exists even on freestanding compilers.  */
21666
21667 #ifdef __STDC__
21668 # include <limits.h>
21669 #else
21670 # include <assert.h>
21671 #endif
21672
21673 #undef $ac_func
21674
21675 /* Override any gcc2 internal prototype to avoid an error.  */
21676 #ifdef __cplusplus
21677 extern "C"
21678 {
21679 #endif
21680 /* We use char because int might match the return type of a gcc2
21681    builtin and then its argument prototype would still apply.  */
21682 char $ac_func ();
21683 /* The GNU C library defines this for functions which it implements
21684     to always fail with ENOSYS.  Some functions are actually named
21685     something starting with __ and the normal name is an alias.  */
21686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21687 choke me
21688 #else
21689 char (*f) () = $ac_func;
21690 #endif
21691 #ifdef __cplusplus
21692 }
21693 #endif
21694
21695 int
21696 main ()
21697 {
21698 return f != $ac_func;
21699   ;
21700   return 0;
21701 }
21702 _ACEOF
21703 rm -f conftest.$ac_objext conftest$ac_exeext
21704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21705   (eval $ac_link) 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } &&
21712          { ac_try='test -z "$ac_c_werror_flag"
21713                          || test ! -s conftest.err'
21714   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715   (eval $ac_try) 2>&5
21716   ac_status=$?
21717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718   (exit $ac_status); }; } &&
21719          { ac_try='test -s conftest$ac_exeext'
21720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721   (eval $ac_try) 2>&5
21722   ac_status=$?
21723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724   (exit $ac_status); }; }; then
21725   eval "$as_ac_var=yes"
21726 else
21727   echo "$as_me: failed program was:" >&5
21728 sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 eval "$as_ac_var=no"
21731 fi
21732 rm -f conftest.err conftest.$ac_objext \
21733       conftest$ac_exeext conftest.$ac_ext
21734 fi
21735 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21736 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21737 if test `eval echo '${'$as_ac_var'}'` = yes; then
21738
21739 cat >>confdefs.h <<_ACEOF
21740 #define CRAY_STACKSEG_END $ac_func
21741 _ACEOF
21742
21743     break
21744 fi
21745
21746   done
21747 fi
21748
21749 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21750 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21751 if test "${ac_cv_c_stack_direction+set}" = set; then
21752   echo $ECHO_N "(cached) $ECHO_C" >&6
21753 else
21754   if test "$cross_compiling" = yes; then
21755   ac_cv_c_stack_direction=0
21756 else
21757   cat >conftest.$ac_ext <<_ACEOF
21758 /* confdefs.h.  */
21759 _ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h.  */
21763 int
21764 find_stack_direction ()
21765 {
21766   static char *addr = 0;
21767   auto char dummy;
21768   if (addr == 0)
21769     {
21770       addr = &dummy;
21771       return find_stack_direction ();
21772     }
21773   else
21774     return (&dummy > addr) ? 1 : -1;
21775 }
21776
21777 int
21778 main ()
21779 {
21780   exit (find_stack_direction () < 0);
21781 }
21782 _ACEOF
21783 rm -f conftest$ac_exeext
21784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21785   (eval $ac_link) 2>&5
21786   ac_status=$?
21787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21790   (eval $ac_try) 2>&5
21791   ac_status=$?
21792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793   (exit $ac_status); }; }; then
21794   ac_cv_c_stack_direction=1
21795 else
21796   echo "$as_me: program exited with status $ac_status" >&5
21797 echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800 ( exit $ac_status )
21801 ac_cv_c_stack_direction=-1
21802 fi
21803 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21804 fi
21805 fi
21806 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21807 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21808
21809 cat >>confdefs.h <<_ACEOF
21810 #define STACK_DIRECTION $ac_cv_c_stack_direction
21811 _ACEOF
21812
21813
21814 fi
21815
21816 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
21817 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
21818 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
21819 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
21820   echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822   ac_check_lib_save_LIBS=$LIBS
21823 LIBS="-lsun  $LIBS"
21824 cat >conftest.$ac_ext <<_ACEOF
21825 /* confdefs.h.  */
21826 _ACEOF
21827 cat confdefs.h >>conftest.$ac_ext
21828 cat >>conftest.$ac_ext <<_ACEOF
21829 /* end confdefs.h.  */
21830
21831 /* Override any gcc2 internal prototype to avoid an error.  */
21832 #ifdef __cplusplus
21833 extern "C"
21834 #endif
21835 /* We use char because int might match the return type of a gcc2
21836    builtin and then its argument prototype would still apply.  */
21837 char getmntent ();
21838 int
21839 main ()
21840 {
21841 getmntent ();
21842   ;
21843   return 0;
21844 }
21845 _ACEOF
21846 rm -f conftest.$ac_objext conftest$ac_exeext
21847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21848   (eval $ac_link) 2>conftest.er1
21849   ac_status=$?
21850   grep -v '^ *+' conftest.er1 >conftest.err
21851   rm -f conftest.er1
21852   cat conftest.err >&5
21853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854   (exit $ac_status); } &&
21855          { ac_try='test -z "$ac_c_werror_flag"
21856                          || test ! -s conftest.err'
21857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21858   (eval $ac_try) 2>&5
21859   ac_status=$?
21860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861   (exit $ac_status); }; } &&
21862          { ac_try='test -s conftest$ac_exeext'
21863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21864   (eval $ac_try) 2>&5
21865   ac_status=$?
21866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867   (exit $ac_status); }; }; then
21868   ac_cv_lib_sun_getmntent=yes
21869 else
21870   echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21872
21873 ac_cv_lib_sun_getmntent=no
21874 fi
21875 rm -f conftest.err conftest.$ac_objext \
21876       conftest$ac_exeext conftest.$ac_ext
21877 LIBS=$ac_check_lib_save_LIBS
21878 fi
21879 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
21880 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
21881 if test $ac_cv_lib_sun_getmntent = yes; then
21882   LIBS="-lsun $LIBS"
21883 else
21884   echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
21885 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
21886 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
21887   echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
21889   ac_check_lib_save_LIBS=$LIBS
21890 LIBS="-lseq  $LIBS"
21891 cat >conftest.$ac_ext <<_ACEOF
21892 /* confdefs.h.  */
21893 _ACEOF
21894 cat confdefs.h >>conftest.$ac_ext
21895 cat >>conftest.$ac_ext <<_ACEOF
21896 /* end confdefs.h.  */
21897
21898 /* Override any gcc2 internal prototype to avoid an error.  */
21899 #ifdef __cplusplus
21900 extern "C"
21901 #endif
21902 /* We use char because int might match the return type of a gcc2
21903    builtin and then its argument prototype would still apply.  */
21904 char getmntent ();
21905 int
21906 main ()
21907 {
21908 getmntent ();
21909   ;
21910   return 0;
21911 }
21912 _ACEOF
21913 rm -f conftest.$ac_objext conftest$ac_exeext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21915   (eval $ac_link) 2>conftest.er1
21916   ac_status=$?
21917   grep -v '^ *+' conftest.er1 >conftest.err
21918   rm -f conftest.er1
21919   cat conftest.err >&5
21920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921   (exit $ac_status); } &&
21922          { ac_try='test -z "$ac_c_werror_flag"
21923                          || test ! -s conftest.err'
21924   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925   (eval $ac_try) 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; } &&
21929          { ac_try='test -s conftest$ac_exeext'
21930   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931   (eval $ac_try) 2>&5
21932   ac_status=$?
21933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934   (exit $ac_status); }; }; then
21935   ac_cv_lib_seq_getmntent=yes
21936 else
21937   echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.$ac_ext >&5
21939
21940 ac_cv_lib_seq_getmntent=no
21941 fi
21942 rm -f conftest.err conftest.$ac_objext \
21943       conftest$ac_exeext conftest.$ac_ext
21944 LIBS=$ac_check_lib_save_LIBS
21945 fi
21946 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
21947 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
21948 if test $ac_cv_lib_seq_getmntent = yes; then
21949   LIBS="-lseq $LIBS"
21950 else
21951   echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
21952 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
21953 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
21954   echo $ECHO_N "(cached) $ECHO_C" >&6
21955 else
21956   ac_check_lib_save_LIBS=$LIBS
21957 LIBS="-lgen  $LIBS"
21958 cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964
21965 /* Override any gcc2 internal prototype to avoid an error.  */
21966 #ifdef __cplusplus
21967 extern "C"
21968 #endif
21969 /* We use char because int might match the return type of a gcc2
21970    builtin and then its argument prototype would still apply.  */
21971 char getmntent ();
21972 int
21973 main ()
21974 {
21975 getmntent ();
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext conftest$ac_exeext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21982   (eval $ac_link) 2>conftest.er1
21983   ac_status=$?
21984   grep -v '^ *+' conftest.er1 >conftest.err
21985   rm -f conftest.er1
21986   cat conftest.err >&5
21987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21988   (exit $ac_status); } &&
21989          { ac_try='test -z "$ac_c_werror_flag"
21990                          || test ! -s conftest.err'
21991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21992   (eval $ac_try) 2>&5
21993   ac_status=$?
21994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995   (exit $ac_status); }; } &&
21996          { ac_try='test -s conftest$ac_exeext'
21997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998   (eval $ac_try) 2>&5
21999   ac_status=$?
22000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001   (exit $ac_status); }; }; then
22002   ac_cv_lib_gen_getmntent=yes
22003 else
22004   echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 ac_cv_lib_gen_getmntent=no
22008 fi
22009 rm -f conftest.err conftest.$ac_objext \
22010       conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22012 fi
22013 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
22014 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
22015 if test $ac_cv_lib_gen_getmntent = yes; then
22016   LIBS="-lgen $LIBS"
22017 fi
22018
22019 fi
22020
22021 fi
22022
22023
22024 for ac_func in getmntent
22025 do
22026 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22027 echo "$as_me:$LINENO: checking for $ac_func" >&5
22028 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22029 if eval "test \"\${$as_ac_var+set}\" = set"; then
22030   echo $ECHO_N "(cached) $ECHO_C" >&6
22031 else
22032   cat >conftest.$ac_ext <<_ACEOF
22033 /* confdefs.h.  */
22034 _ACEOF
22035 cat confdefs.h >>conftest.$ac_ext
22036 cat >>conftest.$ac_ext <<_ACEOF
22037 /* end confdefs.h.  */
22038 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22039    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22040 #define $ac_func innocuous_$ac_func
22041
22042 /* System header to define __stub macros and hopefully few prototypes,
22043     which can conflict with char $ac_func (); below.
22044     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22045     <limits.h> exists even on freestanding compilers.  */
22046
22047 #ifdef __STDC__
22048 # include <limits.h>
22049 #else
22050 # include <assert.h>
22051 #endif
22052
22053 #undef $ac_func
22054
22055 /* Override any gcc2 internal prototype to avoid an error.  */
22056 #ifdef __cplusplus
22057 extern "C"
22058 {
22059 #endif
22060 /* We use char because int might match the return type of a gcc2
22061    builtin and then its argument prototype would still apply.  */
22062 char $ac_func ();
22063 /* The GNU C library defines this for functions which it implements
22064     to always fail with ENOSYS.  Some functions are actually named
22065     something starting with __ and the normal name is an alias.  */
22066 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22067 choke me
22068 #else
22069 char (*f) () = $ac_func;
22070 #endif
22071 #ifdef __cplusplus
22072 }
22073 #endif
22074
22075 int
22076 main ()
22077 {
22078 return f != $ac_func;
22079   ;
22080   return 0;
22081 }
22082 _ACEOF
22083 rm -f conftest.$ac_objext conftest$ac_exeext
22084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22085   (eval $ac_link) 2>conftest.er1
22086   ac_status=$?
22087   grep -v '^ *+' conftest.er1 >conftest.err
22088   rm -f conftest.er1
22089   cat conftest.err >&5
22090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091   (exit $ac_status); } &&
22092          { ac_try='test -z "$ac_c_werror_flag"
22093                          || test ! -s conftest.err'
22094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095   (eval $ac_try) 2>&5
22096   ac_status=$?
22097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098   (exit $ac_status); }; } &&
22099          { ac_try='test -s conftest$ac_exeext'
22100   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101   (eval $ac_try) 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); }; }; then
22105   eval "$as_ac_var=yes"
22106 else
22107   echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110 eval "$as_ac_var=no"
22111 fi
22112 rm -f conftest.err conftest.$ac_objext \
22113       conftest$ac_exeext conftest.$ac_ext
22114 fi
22115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22116 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22117 if test `eval echo '${'$as_ac_var'}'` = yes; then
22118   cat >>confdefs.h <<_ACEOF
22119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22120 _ACEOF
22121
22122 fi
22123 done
22124
22125
22126 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
22127 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
22128 if test "${ac_cv_func_closedir_void+set}" = set; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   if test "$cross_compiling" = yes; then
22132   ac_cv_func_closedir_void=yes
22133 else
22134   cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h.  */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h.  */
22140 $ac_includes_default
22141 #include <$ac_header_dirent>
22142 #ifndef __cplusplus
22143 int closedir ();
22144 #endif
22145
22146 int
22147 main ()
22148 {
22149 exit (closedir (opendir (".")) != 0);
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 rm -f conftest$ac_exeext
22155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22156   (eval $ac_link) 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22160   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22161   (eval $ac_try) 2>&5
22162   ac_status=$?
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); }; }; then
22165   ac_cv_func_closedir_void=no
22166 else
22167   echo "$as_me: program exited with status $ac_status" >&5
22168 echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171 ( exit $ac_status )
22172 ac_cv_func_closedir_void=yes
22173 fi
22174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22175 fi
22176 fi
22177 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
22178 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
22179 if test $ac_cv_func_closedir_void = yes; then
22180
22181 cat >>confdefs.h <<\_ACEOF
22182 #define CLOSEDIR_VOID 1
22183 _ACEOF
22184
22185 fi
22186
22187 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
22188 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
22189 if test "${ac_cv_func_setpgrp_void+set}" = set; then
22190   echo $ECHO_N "(cached) $ECHO_C" >&6
22191 else
22192   if test "$cross_compiling" = yes; then
22193   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
22194 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
22195    { (exit 1); exit 1; }; }
22196 else
22197   cat >conftest.$ac_ext <<_ACEOF
22198 /* confdefs.h.  */
22199 _ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h.  */
22203 #if HAVE_UNISTD_H
22204 # include <unistd.h>
22205 #endif
22206
22207 int
22208 main ()
22209 {
22210 /* If this system has a BSD-style setpgrp which takes arguments,
22211   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
22212   exit successfully. */
22213   exit (setpgrp (1,1) == -1 ? 0 : 1);
22214   ;
22215   return 0;
22216 }
22217 _ACEOF
22218 rm -f conftest$ac_exeext
22219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22220   (eval $ac_link) 2>&5
22221   ac_status=$?
22222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22224   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225   (eval $ac_try) 2>&5
22226   ac_status=$?
22227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228   (exit $ac_status); }; }; then
22229   ac_cv_func_setpgrp_void=no
22230 else
22231   echo "$as_me: program exited with status $ac_status" >&5
22232 echo "$as_me: failed program was:" >&5
22233 sed 's/^/| /' conftest.$ac_ext >&5
22234
22235 ( exit $ac_status )
22236 ac_cv_func_setpgrp_void=yes
22237 fi
22238 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22239 fi
22240 fi
22241 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
22242 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
22243 if test $ac_cv_func_setpgrp_void = yes; then
22244
22245 cat >>confdefs.h <<\_ACEOF
22246 #define SETPGRP_VOID 1
22247 _ACEOF
22248
22249 fi
22250                       # AC_FUNC_FNMATCH    dnl use local version
22251
22252
22253 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
22254 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
22255 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
22256   echo $ECHO_N "(cached) $ECHO_C" >&6
22257 else
22258   ac_check_lib_save_LIBS=$LIBS
22259 LIBS="-lxpg4  $LIBS"
22260 cat >conftest.$ac_ext <<_ACEOF
22261 /* confdefs.h.  */
22262 _ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h.  */
22266
22267 /* Override any gcc2 internal prototype to avoid an error.  */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 /* We use char because int might match the return type of a gcc2
22272    builtin and then its argument prototype would still apply.  */
22273 char setlocale ();
22274 int
22275 main ()
22276 {
22277 setlocale ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 rm -f conftest.$ac_objext conftest$ac_exeext
22283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22284   (eval $ac_link) 2>conftest.er1
22285   ac_status=$?
22286   grep -v '^ *+' conftest.er1 >conftest.err
22287   rm -f conftest.er1
22288   cat conftest.err >&5
22289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290   (exit $ac_status); } &&
22291          { ac_try='test -z "$ac_c_werror_flag"
22292                          || test ! -s conftest.err'
22293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22294   (eval $ac_try) 2>&5
22295   ac_status=$?
22296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22297   (exit $ac_status); }; } &&
22298          { ac_try='test -s conftest$ac_exeext'
22299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22300   (eval $ac_try) 2>&5
22301   ac_status=$?
22302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22303   (exit $ac_status); }; }; then
22304   ac_cv_lib_xpg4_setlocale=yes
22305 else
22306   echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22308
22309 ac_cv_lib_xpg4_setlocale=no
22310 fi
22311 rm -f conftest.err conftest.$ac_objext \
22312       conftest$ac_exeext conftest.$ac_ext
22313 LIBS=$ac_check_lib_save_LIBS
22314 fi
22315 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
22316 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
22317 if test $ac_cv_lib_xpg4_setlocale = yes; then
22318   LIBS="$LIBS -lxpg4"
22319 fi
22320
22321
22322
22323
22324 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
22325 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
22326 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
22327   echo $ECHO_N "(cached) $ECHO_C" >&6
22328 else
22329   ac_check_lib_save_LIBS=$LIBS
22330 LIBS="-lsun  $LIBS"
22331 cat >conftest.$ac_ext <<_ACEOF
22332 /* confdefs.h.  */
22333 _ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h.  */
22337
22338 /* Override any gcc2 internal prototype to avoid an error.  */
22339 #ifdef __cplusplus
22340 extern "C"
22341 #endif
22342 /* We use char because int might match the return type of a gcc2
22343    builtin and then its argument prototype would still apply.  */
22344 char getpwnam ();
22345 int
22346 main ()
22347 {
22348 getpwnam ();
22349   ;
22350   return 0;
22351 }
22352 _ACEOF
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22355   (eval $ac_link) 2>conftest.er1
22356   ac_status=$?
22357   grep -v '^ *+' conftest.er1 >conftest.err
22358   rm -f conftest.er1
22359   cat conftest.err >&5
22360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361   (exit $ac_status); } &&
22362          { ac_try='test -z "$ac_c_werror_flag"
22363                          || test ! -s conftest.err'
22364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365   (eval $ac_try) 2>&5
22366   ac_status=$?
22367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368   (exit $ac_status); }; } &&
22369          { ac_try='test -s conftest$ac_exeext'
22370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371   (eval $ac_try) 2>&5
22372   ac_status=$?
22373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374   (exit $ac_status); }; }; then
22375   ac_cv_lib_sun_getpwnam=yes
22376 else
22377   echo "$as_me: failed program was:" >&5
22378 sed 's/^/| /' conftest.$ac_ext >&5
22379
22380 ac_cv_lib_sun_getpwnam=no
22381 fi
22382 rm -f conftest.err conftest.$ac_objext \
22383       conftest$ac_exeext conftest.$ac_ext
22384 LIBS=$ac_check_lib_save_LIBS
22385 fi
22386 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
22387 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
22388 if test $ac_cv_lib_sun_getpwnam = yes; then
22389   cat >>confdefs.h <<_ACEOF
22390 #define HAVE_LIBSUN 1
22391 _ACEOF
22392
22393   LIBS="-lsun $LIBS"
22394
22395 fi
22396
22397
22398
22399 for ac_header in zlib.h
22400 do
22401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22402 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22403   echo "$as_me:$LINENO: checking for $ac_header" >&5
22404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22406   echo $ECHO_N "(cached) $ECHO_C" >&6
22407 fi
22408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22409 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22410 else
22411   # Is the header compilable?
22412 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22414 cat >conftest.$ac_ext <<_ACEOF
22415 /* confdefs.h.  */
22416 _ACEOF
22417 cat confdefs.h >>conftest.$ac_ext
22418 cat >>conftest.$ac_ext <<_ACEOF
22419 /* end confdefs.h.  */
22420 $ac_includes_default
22421 #include <$ac_header>
22422 _ACEOF
22423 rm -f conftest.$ac_objext
22424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22425   (eval $ac_compile) 2>conftest.er1
22426   ac_status=$?
22427   grep -v '^ *+' conftest.er1 >conftest.err
22428   rm -f conftest.er1
22429   cat conftest.err >&5
22430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22431   (exit $ac_status); } &&
22432          { ac_try='test -z "$ac_c_werror_flag"
22433                          || test ! -s conftest.err'
22434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435   (eval $ac_try) 2>&5
22436   ac_status=$?
22437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438   (exit $ac_status); }; } &&
22439          { ac_try='test -s conftest.$ac_objext'
22440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22441   (eval $ac_try) 2>&5
22442   ac_status=$?
22443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444   (exit $ac_status); }; }; then
22445   ac_header_compiler=yes
22446 else
22447   echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 ac_header_compiler=no
22451 fi
22452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22454 echo "${ECHO_T}$ac_header_compiler" >&6
22455
22456 # Is the header present?
22457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22459 cat >conftest.$ac_ext <<_ACEOF
22460 /* confdefs.h.  */
22461 _ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h.  */
22465 #include <$ac_header>
22466 _ACEOF
22467 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22468   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22469   ac_status=$?
22470   grep -v '^ *+' conftest.er1 >conftest.err
22471   rm -f conftest.er1
22472   cat conftest.err >&5
22473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474   (exit $ac_status); } >/dev/null; then
22475   if test -s conftest.err; then
22476     ac_cpp_err=$ac_c_preproc_warn_flag
22477     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22478   else
22479     ac_cpp_err=
22480   fi
22481 else
22482   ac_cpp_err=yes
22483 fi
22484 if test -z "$ac_cpp_err"; then
22485   ac_header_preproc=yes
22486 else
22487   echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22489
22490   ac_header_preproc=no
22491 fi
22492 rm -f conftest.err conftest.$ac_ext
22493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22494 echo "${ECHO_T}$ac_header_preproc" >&6
22495
22496 # So?  What about this header?
22497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22498   yes:no: )
22499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22503     ac_header_preproc=yes
22504     ;;
22505   no:yes:* )
22506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22518     (
22519       cat <<\_ASBOX
22520 ## ------------------------------------------ ##
22521 ## Report this to the AC_PACKAGE_NAME lists.  ##
22522 ## ------------------------------------------ ##
22523 _ASBOX
22524     ) |
22525       sed "s/^/$as_me: WARNING:     /" >&2
22526     ;;
22527 esac
22528 echo "$as_me:$LINENO: checking for $ac_header" >&5
22529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22530 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22531   echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533   eval "$as_ac_Header=\$ac_header_preproc"
22534 fi
22535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22536 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22537
22538 fi
22539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22540   cat >>confdefs.h <<_ACEOF
22541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22542 _ACEOF
22543
22544 fi
22545
22546 done
22547
22548 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
22549 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
22550 if test "${ac_cv_lib_z_deflate+set}" = set; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553   ac_check_lib_save_LIBS=$LIBS
22554 LIBS="-lz  $LIBS"
22555 cat >conftest.$ac_ext <<_ACEOF
22556 /* confdefs.h.  */
22557 _ACEOF
22558 cat confdefs.h >>conftest.$ac_ext
22559 cat >>conftest.$ac_ext <<_ACEOF
22560 /* end confdefs.h.  */
22561
22562 /* Override any gcc2 internal prototype to avoid an error.  */
22563 #ifdef __cplusplus
22564 extern "C"
22565 #endif
22566 /* We use char because int might match the return type of a gcc2
22567    builtin and then its argument prototype would still apply.  */
22568 char deflate ();
22569 int
22570 main ()
22571 {
22572 deflate ();
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 rm -f conftest.$ac_objext conftest$ac_exeext
22578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22579   (eval $ac_link) 2>conftest.er1
22580   ac_status=$?
22581   grep -v '^ *+' conftest.er1 >conftest.err
22582   rm -f conftest.er1
22583   cat conftest.err >&5
22584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585   (exit $ac_status); } &&
22586          { ac_try='test -z "$ac_c_werror_flag"
22587                          || test ! -s conftest.err'
22588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589   (eval $ac_try) 2>&5
22590   ac_status=$?
22591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592   (exit $ac_status); }; } &&
22593          { ac_try='test -s conftest$ac_exeext'
22594   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595   (eval $ac_try) 2>&5
22596   ac_status=$?
22597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598   (exit $ac_status); }; }; then
22599   ac_cv_lib_z_deflate=yes
22600 else
22601   echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604 ac_cv_lib_z_deflate=no
22605 fi
22606 rm -f conftest.err conftest.$ac_objext \
22607       conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22609 fi
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
22611 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
22612 if test $ac_cv_lib_z_deflate = yes; then
22613   FDLIBS="-lz"
22614 fi
22615
22616 have_zlib=no
22617 if test x$FDLIBS = x-lz; then
22618   cat >>confdefs.h <<\_ACEOF
22619 #define HAVE_LIBZ 1
22620 _ACEOF
22621
22622   have_zlib=yes
22623 fi
22624
22625 have_acl=no
22626 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22627   echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22628 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22629 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22630   echo $ECHO_N "(cached) $ECHO_C" >&6
22631 fi
22632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22633 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22634 else
22635   # Is the header compilable?
22636 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
22637 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
22638 cat >conftest.$ac_ext <<_ACEOF
22639 /* confdefs.h.  */
22640 _ACEOF
22641 cat confdefs.h >>conftest.$ac_ext
22642 cat >>conftest.$ac_ext <<_ACEOF
22643 /* end confdefs.h.  */
22644 $ac_includes_default
22645 #include <sys/acl.h>
22646 _ACEOF
22647 rm -f conftest.$ac_objext
22648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22649   (eval $ac_compile) 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } &&
22656          { ac_try='test -z "$ac_c_werror_flag"
22657                          || test ! -s conftest.err'
22658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22659   (eval $ac_try) 2>&5
22660   ac_status=$?
22661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22662   (exit $ac_status); }; } &&
22663          { ac_try='test -s conftest.$ac_objext'
22664   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22665   (eval $ac_try) 2>&5
22666   ac_status=$?
22667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22668   (exit $ac_status); }; }; then
22669   ac_header_compiler=yes
22670 else
22671   echo "$as_me: failed program was:" >&5
22672 sed 's/^/| /' conftest.$ac_ext >&5
22673
22674 ac_header_compiler=no
22675 fi
22676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22677 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22678 echo "${ECHO_T}$ac_header_compiler" >&6
22679
22680 # Is the header present?
22681 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
22682 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
22683 cat >conftest.$ac_ext <<_ACEOF
22684 /* confdefs.h.  */
22685 _ACEOF
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h.  */
22689 #include <sys/acl.h>
22690 _ACEOF
22691 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22692   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22693   ac_status=$?
22694   grep -v '^ *+' conftest.er1 >conftest.err
22695   rm -f conftest.er1
22696   cat conftest.err >&5
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); } >/dev/null; then
22699   if test -s conftest.err; then
22700     ac_cpp_err=$ac_c_preproc_warn_flag
22701     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22702   else
22703     ac_cpp_err=
22704   fi
22705 else
22706   ac_cpp_err=yes
22707 fi
22708 if test -z "$ac_cpp_err"; then
22709   ac_header_preproc=yes
22710 else
22711   echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714   ac_header_preproc=no
22715 fi
22716 rm -f conftest.err conftest.$ac_ext
22717 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22718 echo "${ECHO_T}$ac_header_preproc" >&6
22719
22720 # So?  What about this header?
22721 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22722   yes:no: )
22723     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
22724 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22725     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
22726 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
22727     ac_header_preproc=yes
22728     ;;
22729   no:yes:* )
22730     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
22731 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
22732     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
22733 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
22734     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
22735 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
22736     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
22737 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22738     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
22739 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
22740     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
22741 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
22742     (
22743       cat <<\_ASBOX
22744 ## ------------------------------------------ ##
22745 ## Report this to the AC_PACKAGE_NAME lists.  ##
22746 ## ------------------------------------------ ##
22747 _ASBOX
22748     ) |
22749       sed "s/^/$as_me: WARNING:     /" >&2
22750     ;;
22751 esac
22752 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
22753 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
22754 if test "${ac_cv_header_sys_acl_h+set}" = set; then
22755   echo $ECHO_N "(cached) $ECHO_C" >&6
22756 else
22757   ac_cv_header_sys_acl_h=$ac_header_preproc
22758 fi
22759 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
22760 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
22761
22762 fi
22763
22764
22765 echo "$as_me:$LINENO: checking for acl_get_file" >&5
22766 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
22767 if test "${ac_cv_func_acl_get_file+set}" = set; then
22768   echo $ECHO_N "(cached) $ECHO_C" >&6
22769 else
22770   cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h.  */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h.  */
22776 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
22777    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22778 #define acl_get_file innocuous_acl_get_file
22779
22780 /* System header to define __stub macros and hopefully few prototypes,
22781     which can conflict with char acl_get_file (); below.
22782     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22783     <limits.h> exists even on freestanding compilers.  */
22784
22785 #ifdef __STDC__
22786 # include <limits.h>
22787 #else
22788 # include <assert.h>
22789 #endif
22790
22791 #undef acl_get_file
22792
22793 /* Override any gcc2 internal prototype to avoid an error.  */
22794 #ifdef __cplusplus
22795 extern "C"
22796 {
22797 #endif
22798 /* We use char because int might match the return type of a gcc2
22799    builtin and then its argument prototype would still apply.  */
22800 char acl_get_file ();
22801 /* The GNU C library defines this for functions which it implements
22802     to always fail with ENOSYS.  Some functions are actually named
22803     something starting with __ and the normal name is an alias.  */
22804 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
22805 choke me
22806 #else
22807 char (*f) () = acl_get_file;
22808 #endif
22809 #ifdef __cplusplus
22810 }
22811 #endif
22812
22813 int
22814 main ()
22815 {
22816 return f != acl_get_file;
22817   ;
22818   return 0;
22819 }
22820 _ACEOF
22821 rm -f conftest.$ac_objext conftest$ac_exeext
22822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22823   (eval $ac_link) 2>conftest.er1
22824   ac_status=$?
22825   grep -v '^ *+' conftest.er1 >conftest.err
22826   rm -f conftest.er1
22827   cat conftest.err >&5
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); } &&
22830          { ac_try='test -z "$ac_c_werror_flag"
22831                          || test ! -s conftest.err'
22832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22833   (eval $ac_try) 2>&5
22834   ac_status=$?
22835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836   (exit $ac_status); }; } &&
22837          { ac_try='test -s conftest$ac_exeext'
22838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22839   (eval $ac_try) 2>&5
22840   ac_status=$?
22841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22842   (exit $ac_status); }; }; then
22843   ac_cv_func_acl_get_file=yes
22844 else
22845   echo "$as_me: failed program was:" >&5
22846 sed 's/^/| /' conftest.$ac_ext >&5
22847
22848 ac_cv_func_acl_get_file=no
22849 fi
22850 rm -f conftest.err conftest.$ac_objext \
22851       conftest$ac_exeext conftest.$ac_ext
22852 fi
22853 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
22854 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
22855 if test $ac_cv_func_acl_get_file = yes; then
22856   have_acl=yes
22857 else
22858   echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
22859 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
22860 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
22861   echo $ECHO_N "(cached) $ECHO_C" >&6
22862 else
22863   ac_check_lib_save_LIBS=$LIBS
22864 LIBS="-lacl  $LIBS"
22865 cat >conftest.$ac_ext <<_ACEOF
22866 /* confdefs.h.  */
22867 _ACEOF
22868 cat confdefs.h >>conftest.$ac_ext
22869 cat >>conftest.$ac_ext <<_ACEOF
22870 /* end confdefs.h.  */
22871
22872 /* Override any gcc2 internal prototype to avoid an error.  */
22873 #ifdef __cplusplus
22874 extern "C"
22875 #endif
22876 /* We use char because int might match the return type of a gcc2
22877    builtin and then its argument prototype would still apply.  */
22878 char acl_get_file ();
22879 int
22880 main ()
22881 {
22882 acl_get_file ();
22883   ;
22884   return 0;
22885 }
22886 _ACEOF
22887 rm -f conftest.$ac_objext conftest$ac_exeext
22888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22889   (eval $ac_link) 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } &&
22896          { ac_try='test -z "$ac_c_werror_flag"
22897                          || test ! -s conftest.err'
22898   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22899   (eval $ac_try) 2>&5
22900   ac_status=$?
22901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22902   (exit $ac_status); }; } &&
22903          { ac_try='test -s conftest$ac_exeext'
22904   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22905   (eval $ac_try) 2>&5
22906   ac_status=$?
22907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908   (exit $ac_status); }; }; then
22909   ac_cv_lib_acl_acl_get_file=yes
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914 ac_cv_lib_acl_acl_get_file=no
22915 fi
22916 rm -f conftest.err conftest.$ac_objext \
22917       conftest$ac_exeext conftest.$ac_ext
22918 LIBS=$ac_check_lib_save_LIBS
22919 fi
22920 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
22921 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
22922 if test $ac_cv_lib_acl_acl_get_file = yes; then
22923   have_acl=yes; FDLIBS="-lacl $FDLIBS"
22924 fi
22925
22926
22927 fi
22928
22929 if test $have_acl = yes; then
22930    cat >>confdefs.h <<\_ACEOF
22931 #define HAVE_ACL 1
22932 _ACEOF
22933
22934 fi
22935
22936 PTHREAD_LIB=""
22937 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
22938 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
22939 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
22940   echo $ECHO_N "(cached) $ECHO_C" >&6
22941 else
22942   ac_check_lib_save_LIBS=$LIBS
22943 LIBS="-lpthread  $LIBS"
22944 cat >conftest.$ac_ext <<_ACEOF
22945 /* confdefs.h.  */
22946 _ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h.  */
22950
22951 /* Override any gcc2 internal prototype to avoid an error.  */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 /* We use char because int might match the return type of a gcc2
22956    builtin and then its argument prototype would still apply.  */
22957 char pthread_create ();
22958 int
22959 main ()
22960 {
22961 pthread_create ();
22962   ;
22963   return 0;
22964 }
22965 _ACEOF
22966 rm -f conftest.$ac_objext conftest$ac_exeext
22967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968   (eval $ac_link) 2>conftest.er1
22969   ac_status=$?
22970   grep -v '^ *+' conftest.er1 >conftest.err
22971   rm -f conftest.er1
22972   cat conftest.err >&5
22973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974   (exit $ac_status); } &&
22975          { ac_try='test -z "$ac_c_werror_flag"
22976                          || test ! -s conftest.err'
22977   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22978   (eval $ac_try) 2>&5
22979   ac_status=$?
22980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981   (exit $ac_status); }; } &&
22982          { ac_try='test -s conftest$ac_exeext'
22983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984   (eval $ac_try) 2>&5
22985   ac_status=$?
22986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987   (exit $ac_status); }; }; then
22988   ac_cv_lib_pthread_pthread_create=yes
22989 else
22990   echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 ac_cv_lib_pthread_pthread_create=no
22994 fi
22995 rm -f conftest.err conftest.$ac_objext \
22996       conftest$ac_exeext conftest.$ac_ext
22997 LIBS=$ac_check_lib_save_LIBS
22998 fi
22999 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
23000 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
23001 if test $ac_cv_lib_pthread_pthread_create = yes; then
23002   PTHREAD_LIB="-lpthread"
23003 else
23004   echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
23005 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
23006 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
23007   echo $ECHO_N "(cached) $ECHO_C" >&6
23008 else
23009   ac_check_lib_save_LIBS=$LIBS
23010 LIBS="-lpthreads  $LIBS"
23011 cat >conftest.$ac_ext <<_ACEOF
23012 /* confdefs.h.  */
23013 _ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h.  */
23017
23018 /* Override any gcc2 internal prototype to avoid an error.  */
23019 #ifdef __cplusplus
23020 extern "C"
23021 #endif
23022 /* We use char because int might match the return type of a gcc2
23023    builtin and then its argument prototype would still apply.  */
23024 char pthread_create ();
23025 int
23026 main ()
23027 {
23028 pthread_create ();
23029   ;
23030   return 0;
23031 }
23032 _ACEOF
23033 rm -f conftest.$ac_objext conftest$ac_exeext
23034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23035   (eval $ac_link) 2>conftest.er1
23036   ac_status=$?
23037   grep -v '^ *+' conftest.er1 >conftest.err
23038   rm -f conftest.er1
23039   cat conftest.err >&5
23040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041   (exit $ac_status); } &&
23042          { ac_try='test -z "$ac_c_werror_flag"
23043                          || test ! -s conftest.err'
23044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23045   (eval $ac_try) 2>&5
23046   ac_status=$?
23047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23048   (exit $ac_status); }; } &&
23049          { ac_try='test -s conftest$ac_exeext'
23050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051   (eval $ac_try) 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; }; then
23055   ac_cv_lib_pthreads_pthread_create=yes
23056 else
23057   echo "$as_me: failed program was:" >&5
23058 sed 's/^/| /' conftest.$ac_ext >&5
23059
23060 ac_cv_lib_pthreads_pthread_create=no
23061 fi
23062 rm -f conftest.err conftest.$ac_objext \
23063       conftest$ac_exeext conftest.$ac_ext
23064 LIBS=$ac_check_lib_save_LIBS
23065 fi
23066 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
23067 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
23068 if test $ac_cv_lib_pthreads_pthread_create = yes; then
23069   PTHREAD_LIB="-lpthreads"
23070 else
23071   echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
23072 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
23073 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
23074   echo $ECHO_N "(cached) $ECHO_C" >&6
23075 else
23076   ac_check_lib_save_LIBS=$LIBS
23077 LIBS="-lc_r  $LIBS"
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h.  */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h.  */
23084
23085 /* Override any gcc2 internal prototype to avoid an error.  */
23086 #ifdef __cplusplus
23087 extern "C"
23088 #endif
23089 /* We use char because int might match the return type of a gcc2
23090    builtin and then its argument prototype would still apply.  */
23091 char pthread_create ();
23092 int
23093 main ()
23094 {
23095 pthread_create ();
23096   ;
23097   return 0;
23098 }
23099 _ACEOF
23100 rm -f conftest.$ac_objext conftest$ac_exeext
23101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23102   (eval $ac_link) 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } &&
23109          { ac_try='test -z "$ac_c_werror_flag"
23110                          || test ! -s conftest.err'
23111   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23112   (eval $ac_try) 2>&5
23113   ac_status=$?
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); }; } &&
23116          { ac_try='test -s conftest$ac_exeext'
23117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23118   (eval $ac_try) 2>&5
23119   ac_status=$?
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); }; }; then
23122   ac_cv_lib_c_r_pthread_create=yes
23123 else
23124   echo "$as_me: failed program was:" >&5
23125 sed 's/^/| /' conftest.$ac_ext >&5
23126
23127 ac_cv_lib_c_r_pthread_create=no
23128 fi
23129 rm -f conftest.err conftest.$ac_objext \
23130       conftest$ac_exeext conftest.$ac_ext
23131 LIBS=$ac_check_lib_save_LIBS
23132 fi
23133 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
23134 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
23135 if test $ac_cv_lib_c_r_pthread_create = yes; then
23136   PTHREAD_LIB="-lc_r"
23137 else
23138   echo "$as_me:$LINENO: checking for pthread_create" >&5
23139 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
23140 if test "${ac_cv_func_pthread_create+set}" = set; then
23141   echo $ECHO_N "(cached) $ECHO_C" >&6
23142 else
23143   cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h.  */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h.  */
23149 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
23150    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23151 #define pthread_create innocuous_pthread_create
23152
23153 /* System header to define __stub macros and hopefully few prototypes,
23154     which can conflict with char pthread_create (); below.
23155     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23156     <limits.h> exists even on freestanding compilers.  */
23157
23158 #ifdef __STDC__
23159 # include <limits.h>
23160 #else
23161 # include <assert.h>
23162 #endif
23163
23164 #undef pthread_create
23165
23166 /* Override any gcc2 internal prototype to avoid an error.  */
23167 #ifdef __cplusplus
23168 extern "C"
23169 {
23170 #endif
23171 /* We use char because int might match the return type of a gcc2
23172    builtin and then its argument prototype would still apply.  */
23173 char pthread_create ();
23174 /* The GNU C library defines this for functions which it implements
23175     to always fail with ENOSYS.  Some functions are actually named
23176     something starting with __ and the normal name is an alias.  */
23177 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
23178 choke me
23179 #else
23180 char (*f) () = pthread_create;
23181 #endif
23182 #ifdef __cplusplus
23183 }
23184 #endif
23185
23186 int
23187 main ()
23188 {
23189 return f != pthread_create;
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 rm -f conftest.$ac_objext conftest$ac_exeext
23195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23196   (eval $ac_link) 2>conftest.er1
23197   ac_status=$?
23198   grep -v '^ *+' conftest.er1 >conftest.err
23199   rm -f conftest.er1
23200   cat conftest.err >&5
23201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202   (exit $ac_status); } &&
23203          { ac_try='test -z "$ac_c_werror_flag"
23204                          || test ! -s conftest.err'
23205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23206   (eval $ac_try) 2>&5
23207   ac_status=$?
23208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209   (exit $ac_status); }; } &&
23210          { ac_try='test -s conftest$ac_exeext'
23211   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23212   (eval $ac_try) 2>&5
23213   ac_status=$?
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); }; }; then
23216   ac_cv_func_pthread_create=yes
23217 else
23218   echo "$as_me: failed program was:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23220
23221 ac_cv_func_pthread_create=no
23222 fi
23223 rm -f conftest.err conftest.$ac_objext \
23224       conftest$ac_exeext conftest.$ac_ext
23225 fi
23226 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
23227 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
23228
23229
23230 fi
23231
23232
23233 fi
23234
23235
23236 fi
23237
23238
23239
23240 cat >>confdefs.h <<\_ACEOF
23241 #define FDLIBS 1
23242 _ACEOF
23243
23244
23245
23246 CFLAGS=${CFLAGS--O}
23247 LDFLAGS=${LDFLAGS--O}
23248 DB_LIBS="${SQL_LFLAGS}"
23249
23250 CPPFLAGS="$CPPFLAGS"
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266 OBJLIST=
23267
23268
23269 lld="lld"
23270 llu="llu"
23271
23272 WCFLAGS=
23273 WLDFLAGS=
23274
23275 #
23276 # Finally we set appropriate distribution specific
23277 #  variables and defaults
23278 #
23279 # PFILES are platform specific files
23280 PFILES="platforms/Makefile"
23281 PSCMD="ps -e"
23282 WIN32=
23283 MACOSX=
23284 hostname=`uname -n | cut -d '.' -f 1`
23285 case "$DISTNAME" in
23286 aix)
23287         DISTVER=`uname -r`
23288         PSCMD="ps -e -o pid,comm"
23289         PFILES="${PFILES} \
23290            platforms/aix/Makefile"
23291         TAPEDRIVE="/dev/rmt0.1"
23292   ;;
23293 alpha)
23294         DISTVER=`uname -r`
23295         PTHREAD_LIB="-lpthread -lexc"
23296         if test "${CC}" = "gcc" ; then
23297            lld="lld"
23298            llu="llu"
23299         else
23300            lld="ld"
23301            llu="lu"
23302         fi
23303         TAPEDRIVE="/dev/nrmt0"
23304   ;;
23305 bsdi)
23306         DISTVER=`uname -a |awk '{print $3}'`
23307         TAPEDRIVE="/dev/nrmt0"
23308         PTHREAD_LIB="-pthread"
23309         CFLAGS="${CFLAGS} -pthread"
23310         PSCMD="ps -ax -o pid,command"
23311         lld="qd"
23312         llu="qu"
23313         PFILES="${PFILES} \
23314             platforms/bsdi/Makefile \
23315             platforms/bsdi/bacula-fd \
23316             platforms/bsdi/bacula-sd \
23317             platforms/bsdi/bacula-dir"
23318         largefile_support="yes"
23319   ;;
23320 cygwin)
23321         DISTVER=`uname -a |awk '{print $3}'`
23322         TAPEDRIVE="/dev/nrst0"
23323         WIN32=win32
23324         WCFLAGS="-mwindows"
23325         WLDFLAGS="-mwindows"
23326   ;;
23327 darwin)
23328         DISTVER=`uname -r`
23329         TAPEDRIVE="/dev/nst0"
23330         PSCMD="ps -e -o pid,command"
23331         MACOSX=macosx
23332         PFILES="${PFILES} \
23333            platforms/darwin/Makefile"
23334   ;;
23335 debian)
23336         DISTVER=`cat /etc/debian_version`
23337         TAPEDRIVE="/dev/nrst0"
23338         PSCMD="ps -e -o pid,command"
23339   ;;
23340 freebsd)
23341         DISTVER=`uname -a |awk '{print $3}'`
23342         VER=`echo $DISTVER | cut -c 1`
23343         if test x$VER = x4 ; then
23344            PTHREAD_LIB="-pthread"
23345            CFLAGS="${CFLAGS} -pthread"
23346         fi
23347         lld="qd"
23348         llu="qu"
23349         TAPEDRIVE="/dev/nrsa0"
23350         PSCMD="ps -ax -o pid,command"
23351         PFILES="${PFILES} \
23352             platforms/freebsd/Makefile \
23353             platforms/freebsd/bacula-fd \
23354             platforms/freebsd/bacula-sd \
23355             platforms/freebsd/bacula-dir"
23356         largefile_support="yes"
23357   ;;
23358 hpux)
23359         PSCMD="UNIX95=1 ps -e -o pid,comm"
23360         CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
23361         DISTVER=`uname -r`
23362         TAPEDRIVE="/dev/rmt/0hnb"
23363         PTHREAD_LIB="-lpthread"
23364         cat >>confdefs.h <<\_ACEOF
23365 #define _INCLUDE_LONGLONG 1
23366 _ACEOF
23367
23368   ;;
23369 irix)
23370         DISTVER=`uname -r`
23371         TAPEDRIVE="/dev/rmt/0cbn"
23372         PSCMD="ps -e -o pid,comm"
23373         PFILES="${PFILES} \
23374             platforms/irix/Makefile \
23375             platforms/irix/bacula-fd \
23376             platforms/irix/bacula-sd \
23377             platforms/irix/bacula-dir"
23378   ;;
23379 netbsd)
23380         DISTVER=`uname -a |awk '{print $3}'`
23381         lld="qd"
23382         llu="qu"
23383         TAPEDRIVE="/dev/nrst0"
23384         PSCMD="ps -ax -o pid,command"
23385         PTHREAD_LIB="-pthread"
23386         CFLAGS="${CFLAGS} -pthread"
23387   ;;
23388 openbsd)
23389         DISTVER=`uname -a |awk '{print $3}'`
23390         lld="qd"
23391         llu="qu"
23392         TAPEDRIVE="/dev/nrst0"
23393         PSCMD="ps -ax -o pid,command"
23394         PTHREAD_LIB="-pthread"
23395         CFLAGS="${CFLAGS} -pthread"
23396         PFILES="${PFILES} \
23397             platforms/openbsd/Makefile \
23398             platforms/openbsd/bacula-fd \
23399             platforms/openbsd/bacula-sd \
23400             platforms/openbsd/bacula-dir"
23401   ;;
23402 redhat)
23403         if test -f /etc/whitebox-release ; then
23404            f=/etc/whitebox-release
23405         else
23406            f=/etc/redhat-release
23407         fi
23408         if test `cat $f | grep release |\
23409                    cut -f 3 -d ' '`x = "Enterprise"x ; then
23410            DISTVER="Enterprise "`cat $f | grep release |\
23411                     cut -f 6 -d ' '`
23412         else
23413             DISTVER=`cat /etc/redhat-release | grep release |\
23414                      cut -f 5 -d ' '`
23415         fi
23416         TAPEDRIVE="/dev/nst0"
23417         PSCMD="ps -e -o pid,command"
23418         PFILES="${PFILES} \
23419             platforms/redhat/Makefile \
23420             platforms/redhat/bacula-fd \
23421             platforms/redhat/bacula-sd \
23422             platforms/redhat/bacula-dir \
23423             platforms/redhat/bacula.spec \
23424             "
23425         hostname=`hostname -s`
23426   ;;
23427 mandrake)
23428         DISTVER=`cat /etc/mandrake-release | grep release |\
23429            cut -f 5 -d ' '`
23430         TAPEDRIVE="/dev/nst0"
23431         PSCMD="ps -e -o pid,command"
23432         PFILES="${PFILES} \
23433             platforms/mandrake/Makefile \
23434             platforms/mandrake/bacula-fd \
23435             platforms/mandrake/bacula-sd \
23436             platforms/mandrake/bacula-dir \
23437             platforms/mandrake/bacula.spec \
23438             "
23439   ;;
23440 gentoo)
23441         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
23442         TAPEDRIVE="/dev/nst0"
23443         PSCMD="ps -e -o pid,command"
23444         PFILES="${PFILES} \
23445             platforms/gentoo/Makefile \
23446          platforms/gentoo/bacula-init \
23447             platforms/gentoo/bacula-fd \
23448             platforms/gentoo/bacula-sd \
23449             platforms/gentoo/bacula-dir"
23450   ;;
23451 slackware)
23452         DISTVER=`cat /etc/slackware-version`
23453         TAPEDRIVE="/dev/nst0"
23454         PSCMD="ps -e -o pid,command"
23455         PFILES="${PFILES} \
23456             platforms/slackware/Makefile \
23457             platforms/slackware/rc.bacula-fd \
23458             platforms/slackware/rc.bacula-sd \
23459             platforms/slackware/rc.bacula-dir\
23460             platforms/slackware/functions.bacula"
23461   ;;
23462 solaris)
23463         DISTVER=`uname -r`
23464         TAPEDRIVE="/dev/rmt/0cbn"
23465         PSCMD="ps -e -o pid,comm"
23466         PFILES="${PFILES} \
23467             platforms/solaris/Makefile \
23468             platforms/solaris/bacula-fd \
23469             platforms/solaris/bacula-sd \
23470             platforms/solaris/bacula-dir"
23471         if test x$DISTVER = x5.6 ; then
23472             cat >>confdefs.h <<\_ACEOF
23473 #define HAVE_OLD_SOCKOPT 1
23474 _ACEOF
23475
23476         fi
23477         LIBS="$LIBS -lresolv"
23478   ;;
23479 suse)
23480         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
23481             cut -f 3 -d ' '`
23482         TAPEDRIVE="/dev/nst0"
23483         PSCMD="ps -e -o pid,command"
23484         PFILES="${PFILES} \
23485             platforms/suse/Makefile \
23486             platforms/suse/bacula-fd \
23487             platforms/suse/bacula-sd \
23488             platforms/suse/bacula-dir \
23489             platforms/suse/bacula \
23490             platforms/suse/bacula.spec"
23491   ;;
23492 suse5)
23493         DISTNAME=suse
23494         DISTVER=5.x
23495         TAPEDRIVE="/dev/nst0"
23496         PSCMD="ps -e -o pid,command"
23497         PFILES="${PFILES} \
23498             platforms/suse/Makefile \
23499             platforms/suse/bacula-fd \
23500             platforms/suse/bacula-sd \
23501             platforms/suse/bacula-dir"
23502   ;;
23503 unknown)
23504         DISTVER=unknown
23505         TAPEDRIVE="/dev/nst0"
23506   ;;
23507 *)
23508   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
23509   ;;
23510 esac
23511
23512
23513
23514 LIBS="$PTHREAD_LIB $LIBS"
23515
23516 cat >>confdefs.h <<_ACEOF
23517 #define lld "$lld"
23518 _ACEOF
23519
23520 cat >>confdefs.h <<_ACEOF
23521 #define llu "$llu"
23522 _ACEOF
23523
23524
23525
23526
23527
23528
23529
23530
23531 MCOMMON=./autoconf/Make.common
23532
23533
23534 if test "x${subsysdir}" = "x${sbindir}" ; then
23535    echo " "
23536    echo " "
23537    echo "You have set both --sbindir and --with-subsys-dir"
23538    echo "  equal to: ${subsysdir} "
23539    echo "This is not permitted. Please reconfigure."
23540    echo " "
23541    echo "Aborting configuration ..."
23542    echo " "
23543    echo " "
23544    exit 1
23545 fi
23546
23547                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       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"
23548           ac_config_commands="$ac_config_commands default"
23549 cat >confcache <<\_ACEOF
23550 # This file is a shell script that caches the results of configure
23551 # tests run on this system so they can be shared between configure
23552 # scripts and configure runs, see configure's option --config-cache.
23553 # It is not useful on other systems.  If it contains results you don't
23554 # want to keep, you may remove or edit it.
23555 #
23556 # config.status only pays attention to the cache file if you give it
23557 # the --recheck option to rerun configure.
23558 #
23559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23561 # following values.
23562
23563 _ACEOF
23564
23565 # The following way of writing the cache mishandles newlines in values,
23566 # but we know of no workaround that is simple, portable, and efficient.
23567 # So, don't put newlines in cache variables' values.
23568 # Ultrix sh set writes to stderr and can't be redirected directly,
23569 # and sets the high bit in the cache file unless we assign to the vars.
23570 {
23571   (set) 2>&1 |
23572     case `(ac_space=' '; set | grep ac_space) 2>&1` in
23573     *ac_space=\ *)
23574       # `set' does not quote correctly, so add quotes (double-quote
23575       # substitution turns \\\\ into \\, and sed turns \\ into \).
23576       sed -n \
23577         "s/'/'\\\\''/g;
23578           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23579       ;;
23580     *)
23581       # `set' quotes correctly as required by POSIX, so do not add quotes.
23582       sed -n \
23583         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23584       ;;
23585     esac;
23586 } |
23587   sed '
23588      t clear
23589      : clear
23590      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23591      t end
23592      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23593      : end' >>confcache
23594 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23595   if test -w $cache_file; then
23596     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23597     cat confcache >$cache_file
23598   else
23599     echo "not updating unwritable cache $cache_file"
23600   fi
23601 fi
23602 rm -f confcache
23603
23604 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23605 # Let make expand exec_prefix.
23606 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23607
23608 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23609 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23610 # trailing colons and then remove the whole line if VPATH becomes empty
23611 # (actually we leave an empty line to preserve line numbers).
23612 if test "x$srcdir" = x.; then
23613   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23614 s/:*\$(srcdir):*/:/;
23615 s/:*\${srcdir}:*/:/;
23616 s/:*@srcdir@:*/:/;
23617 s/^\([^=]*=[     ]*\):*/\1/;
23618 s/:*$//;
23619 s/^[^=]*=[       ]*$//;
23620 }'
23621 fi
23622
23623 DEFS=-DHAVE_CONFIG_H
23624
23625 ac_libobjs=
23626 ac_ltlibobjs=
23627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23628   # 1. Remove the extension, and $U if already installed.
23629   ac_i=`echo "$ac_i" |
23630          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23631   # 2. Add them.
23632   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23633   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23634 done
23635 LIBOBJS=$ac_libobjs
23636
23637 LTLIBOBJS=$ac_ltlibobjs
23638
23639
23640
23641 : ${CONFIG_STATUS=./config.status}
23642 ac_clean_files_save=$ac_clean_files
23643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23646 cat >$CONFIG_STATUS <<_ACEOF
23647 #! $SHELL
23648 # Generated by $as_me.
23649 # Run this file to recreate the current configuration.
23650 # Compiler output produced by configure, useful for debugging
23651 # configure, is in config.log if it exists.
23652
23653 debug=false
23654 ac_cs_recheck=false
23655 ac_cs_silent=false
23656 SHELL=\${CONFIG_SHELL-$SHELL}
23657 _ACEOF
23658
23659 cat >>$CONFIG_STATUS <<\_ACEOF
23660 ## --------------------- ##
23661 ## M4sh Initialization.  ##
23662 ## --------------------- ##
23663
23664 # Be Bourne compatible
23665 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23666   emulate sh
23667   NULLCMD=:
23668   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23669   # is contrary to our usage.  Disable this feature.
23670   alias -g '${1+"$@"}'='"$@"'
23671 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23672   set -o posix
23673 fi
23674 DUALCASE=1; export DUALCASE # for MKS sh
23675
23676 # Support unset when possible.
23677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23678   as_unset=unset
23679 else
23680   as_unset=false
23681 fi
23682
23683
23684 # Work around bugs in pre-3.0 UWIN ksh.
23685 $as_unset ENV MAIL MAILPATH
23686 PS1='$ '
23687 PS2='> '
23688 PS4='+ '
23689
23690 # NLS nuisances.
23691 for as_var in \
23692   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23693   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23694   LC_TELEPHONE LC_TIME
23695 do
23696   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23697     eval $as_var=C; export $as_var
23698   else
23699     $as_unset $as_var
23700   fi
23701 done
23702
23703 # Required to use basename.
23704 if expr a : '\(a\)' >/dev/null 2>&1; then
23705   as_expr=expr
23706 else
23707   as_expr=false
23708 fi
23709
23710 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23711   as_basename=basename
23712 else
23713   as_basename=false
23714 fi
23715
23716
23717 # Name of the executable.
23718 as_me=`$as_basename "$0" ||
23719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23720          X"$0" : 'X\(//\)$' \| \
23721          X"$0" : 'X\(/\)$' \| \
23722          .     : '\(.\)' 2>/dev/null ||
23723 echo X/"$0" |
23724     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23725           /^X\/\(\/\/\)$/{ s//\1/; q; }
23726           /^X\/\(\/\).*/{ s//\1/; q; }
23727           s/.*/./; q'`
23728
23729
23730 # PATH needs CR, and LINENO needs CR and PATH.
23731 # Avoid depending upon Character Ranges.
23732 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23733 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23734 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23735 as_cr_digits='0123456789'
23736 as_cr_alnum=$as_cr_Letters$as_cr_digits
23737
23738 # The user is always right.
23739 if test "${PATH_SEPARATOR+set}" != set; then
23740   echo "#! /bin/sh" >conf$$.sh
23741   echo  "exit 0"   >>conf$$.sh
23742   chmod +x conf$$.sh
23743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23744     PATH_SEPARATOR=';'
23745   else
23746     PATH_SEPARATOR=:
23747   fi
23748   rm -f conf$$.sh
23749 fi
23750
23751
23752   as_lineno_1=$LINENO
23753   as_lineno_2=$LINENO
23754   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23755   test "x$as_lineno_1" != "x$as_lineno_2" &&
23756   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
23757   # Find who we are.  Look in the path if we contain no path at all
23758   # relative or not.
23759   case $0 in
23760     *[\\/]* ) as_myself=$0 ;;
23761     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23762 for as_dir in $PATH
23763 do
23764   IFS=$as_save_IFS
23765   test -z "$as_dir" && as_dir=.
23766   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23767 done
23768
23769        ;;
23770   esac
23771   # We did not find ourselves, most probably we were run as `sh COMMAND'
23772   # in which case we are not to be found in the path.
23773   if test "x$as_myself" = x; then
23774     as_myself=$0
23775   fi
23776   if test ! -f "$as_myself"; then
23777     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23778 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23779    { (exit 1); exit 1; }; }
23780   fi
23781   case $CONFIG_SHELL in
23782   '')
23783     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23784 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23785 do
23786   IFS=$as_save_IFS
23787   test -z "$as_dir" && as_dir=.
23788   for as_base in sh bash ksh sh5; do
23789          case $as_dir in
23790          /*)
23791            if ("$as_dir/$as_base" -c '
23792   as_lineno_1=$LINENO
23793   as_lineno_2=$LINENO
23794   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23795   test "x$as_lineno_1" != "x$as_lineno_2" &&
23796   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
23797              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23798              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23799              CONFIG_SHELL=$as_dir/$as_base
23800              export CONFIG_SHELL
23801              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23802            fi;;
23803          esac
23804        done
23805 done
23806 ;;
23807   esac
23808
23809   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23810   # uniformly replaced by the line number.  The first 'sed' inserts a
23811   # line-number line before each line; the second 'sed' does the real
23812   # work.  The second script uses 'N' to pair each line-number line
23813   # with the numbered line, and appends trailing '-' during
23814   # substitution so that $LINENO is not a special case at line end.
23815   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23816   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
23817   sed '=' <$as_myself |
23818     sed '
23819       N
23820       s,$,-,
23821       : loop
23822       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23823       t loop
23824       s,-$,,
23825       s,^['$as_cr_digits']*\n,,
23826     ' >$as_me.lineno &&
23827   chmod +x $as_me.lineno ||
23828     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23829 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23830    { (exit 1); exit 1; }; }
23831
23832   # Don't try to exec as it changes $[0], causing all sort of problems
23833   # (the dirname of $[0] is not the place where we might find the
23834   # original and so on.  Autoconf is especially sensible to this).
23835   . ./$as_me.lineno
23836   # Exit status is that of the last command.
23837   exit
23838 }
23839
23840
23841 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23842   *c*,-n*) ECHO_N= ECHO_C='
23843 ' ECHO_T='      ' ;;
23844   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23845   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
23846 esac
23847
23848 if expr a : '\(a\)' >/dev/null 2>&1; then
23849   as_expr=expr
23850 else
23851   as_expr=false
23852 fi
23853
23854 rm -f conf$$ conf$$.exe conf$$.file
23855 echo >conf$$.file
23856 if ln -s conf$$.file conf$$ 2>/dev/null; then
23857   # We could just check for DJGPP; but this test a) works b) is more generic
23858   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23859   if test -f conf$$.exe; then
23860     # Don't use ln at all; we don't have any links
23861     as_ln_s='cp -p'
23862   else
23863     as_ln_s='ln -s'
23864   fi
23865 elif ln conf$$.file conf$$ 2>/dev/null; then
23866   as_ln_s=ln
23867 else
23868   as_ln_s='cp -p'
23869 fi
23870 rm -f conf$$ conf$$.exe conf$$.file
23871
23872 if mkdir -p . 2>/dev/null; then
23873   as_mkdir_p=:
23874 else
23875   test -d ./-p && rmdir ./-p
23876   as_mkdir_p=false
23877 fi
23878
23879 as_executable_p="test -f"
23880
23881 # Sed expression to map a string onto a valid CPP name.
23882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23883
23884 # Sed expression to map a string onto a valid variable name.
23885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23886
23887
23888 # IFS
23889 # We need space, tab and new line, in precisely that order.
23890 as_nl='
23891 '
23892 IFS="   $as_nl"
23893
23894 # CDPATH.
23895 $as_unset CDPATH
23896
23897 exec 6>&1
23898
23899 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23900 # report actual input values of CONFIG_FILES etc. instead of their
23901 # values after options handling.  Logging --version etc. is OK.
23902 exec 5>>config.log
23903 {
23904   echo
23905   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23906 ## Running $as_me. ##
23907 _ASBOX
23908 } >&5
23909 cat >&5 <<_CSEOF
23910
23911 This file was extended by $as_me, which was
23912 generated by GNU Autoconf 2.59.  Invocation command line was
23913
23914   CONFIG_FILES    = $CONFIG_FILES
23915   CONFIG_HEADERS  = $CONFIG_HEADERS
23916   CONFIG_LINKS    = $CONFIG_LINKS
23917   CONFIG_COMMANDS = $CONFIG_COMMANDS
23918   $ $0 $@
23919
23920 _CSEOF
23921 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23922 echo >&5
23923 _ACEOF
23924
23925 # Files that config.status was made for.
23926 if test -n "$ac_config_files"; then
23927   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23928 fi
23929
23930 if test -n "$ac_config_headers"; then
23931   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23932 fi
23933
23934 if test -n "$ac_config_links"; then
23935   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23936 fi
23937
23938 if test -n "$ac_config_commands"; then
23939   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23940 fi
23941
23942 cat >>$CONFIG_STATUS <<\_ACEOF
23943
23944 ac_cs_usage="\
23945 \`$as_me' instantiates files from templates according to the
23946 current configuration.
23947
23948 Usage: $0 [OPTIONS] [FILE]...
23949
23950   -h, --help       print this help, then exit
23951   -V, --version    print version number, then exit
23952   -q, --quiet      do not print progress messages
23953   -d, --debug      don't remove temporary files
23954       --recheck    update $as_me by reconfiguring in the same conditions
23955   --file=FILE[:TEMPLATE]
23956                    instantiate the configuration file FILE
23957   --header=FILE[:TEMPLATE]
23958                    instantiate the configuration header FILE
23959
23960 Configuration files:
23961 $config_files
23962
23963 Configuration headers:
23964 $config_headers
23965
23966 Configuration commands:
23967 $config_commands
23968
23969 Report bugs to <bug-autoconf@gnu.org>."
23970 _ACEOF
23971
23972 cat >>$CONFIG_STATUS <<_ACEOF
23973 ac_cs_version="\\
23974 config.status
23975 configured by $0, generated by GNU Autoconf 2.59,
23976   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23977
23978 Copyright (C) 2003 Free Software Foundation, Inc.
23979 This config.status script is free software; the Free Software Foundation
23980 gives unlimited permission to copy, distribute and modify it."
23981 srcdir=$srcdir
23982 INSTALL="$INSTALL"
23983 _ACEOF
23984
23985 cat >>$CONFIG_STATUS <<\_ACEOF
23986 # If no file are specified by the user, then we need to provide default
23987 # value.  By we need to know if files were specified by the user.
23988 ac_need_defaults=:
23989 while test $# != 0
23990 do
23991   case $1 in
23992   --*=*)
23993     ac_option=`expr "x$1" : 'x\([^=]*\)='`
23994     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23995     ac_shift=:
23996     ;;
23997   -*)
23998     ac_option=$1
23999     ac_optarg=$2
24000     ac_shift=shift
24001     ;;
24002   *) # This is not an option, so the user has probably given explicit
24003      # arguments.
24004      ac_option=$1
24005      ac_need_defaults=false;;
24006   esac
24007
24008   case $ac_option in
24009   # Handling of the options.
24010 _ACEOF
24011 cat >>$CONFIG_STATUS <<\_ACEOF
24012   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24013     ac_cs_recheck=: ;;
24014   --version | --vers* | -V )
24015     echo "$ac_cs_version"; exit 0 ;;
24016   --he | --h)
24017     # Conflict between --help and --header
24018     { { echo "$as_me:$LINENO: error: ambiguous option: $1
24019 Try \`$0 --help' for more information." >&5
24020 echo "$as_me: error: ambiguous option: $1
24021 Try \`$0 --help' for more information." >&2;}
24022    { (exit 1); exit 1; }; };;
24023   --help | --hel | -h )
24024     echo "$ac_cs_usage"; exit 0 ;;
24025   --debug | --d* | -d )
24026     debug=: ;;
24027   --file | --fil | --fi | --f )
24028     $ac_shift
24029     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24030     ac_need_defaults=false;;
24031   --header | --heade | --head | --hea )
24032     $ac_shift
24033     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24034     ac_need_defaults=false;;
24035   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24036   | -silent | --silent | --silen | --sile | --sil | --si | --s)
24037     ac_cs_silent=: ;;
24038
24039   # This is an error.
24040   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24041 Try \`$0 --help' for more information." >&5
24042 echo "$as_me: error: unrecognized option: $1
24043 Try \`$0 --help' for more information." >&2;}
24044    { (exit 1); exit 1; }; } ;;
24045
24046   *) ac_config_targets="$ac_config_targets $1" ;;
24047
24048   esac
24049   shift
24050 done
24051
24052 ac_configure_extra_args=
24053
24054 if $ac_cs_silent; then
24055   exec 6>/dev/null
24056   ac_configure_extra_args="$ac_configure_extra_args --silent"
24057 fi
24058
24059 _ACEOF
24060 cat >>$CONFIG_STATUS <<_ACEOF
24061 if \$ac_cs_recheck; then
24062   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24063   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24064 fi
24065
24066 _ACEOF
24067
24068 cat >>$CONFIG_STATUS <<_ACEOF
24069 #
24070 # INIT-COMMANDS section.
24071 #
24072
24073 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24074     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24075     # from automake.
24076     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24077     # Capture the value of LINGUAS because we need it to compute CATALOGS.
24078     LINGUAS="${LINGUAS-%UNSET%}"
24079
24080
24081 _ACEOF
24082
24083
24084
24085 cat >>$CONFIG_STATUS <<\_ACEOF
24086 for ac_config_target in $ac_config_targets
24087 do
24088   case "$ac_config_target" in
24089   # Handling of arguments.
24090   "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
24091   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24092   "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
24093   "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
24094   "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
24095   "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
24096   "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
24097   "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
24098   "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
24099   "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
24100   "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
24101   "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24102   "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
24103   "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
24104   "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
24105   "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
24106   "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
24107   "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
24108   "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
24109   "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
24110   "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
24111   "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
24112   "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
24113   "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
24114   "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
24115   "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
24116   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24117   "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
24118   "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
24119   "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
24120   "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
24121   "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
24122   "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
24123   "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
24124   "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
24125   "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
24126   "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
24127   "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
24128   "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
24129   "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
24130   "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
24131   "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
24132   "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
24133   "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
24134   "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
24135   "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
24136   "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
24137   "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
24138   "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
24139   "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
24140   "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
24141   "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
24142   "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
24143   "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
24144   "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
24145   "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
24146   "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
24147   "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
24148   "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
24149   "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
24150   "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
24151   "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
24152   "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
24153   "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
24154   "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
24155   "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
24156   "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
24157   "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
24158   "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
24159   "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
24160   "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
24161   "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
24162   "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
24163   "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
24164   "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
24165   "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
24166   "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
24167   "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
24168   "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
24169   "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
24170   "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
24171   "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
24172   "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
24173   "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
24174   "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
24175   "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
24176   "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
24177   "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
24178   "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
24179   "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
24180   "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
24181   "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
24182   "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
24183   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24184   "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
24185   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
24186   "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24187   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
24188   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24189 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24190    { (exit 1); exit 1; }; };;
24191   esac
24192 done
24193
24194 # If the user did not use the arguments to specify the items to instantiate,
24195 # then the envvar interface is used.  Set only those that are not.
24196 # We use the long form for the default assignment because of an extremely
24197 # bizarre bug on SunOS 4.1.3.
24198 if $ac_need_defaults; then
24199   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24200   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24201   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24202 fi
24203
24204 # Have a temporary directory for convenience.  Make it in the build tree
24205 # simply because there is no reason to put it here, and in addition,
24206 # creating and moving files from /tmp can sometimes cause problems.
24207 # Create a temporary directory, and hook for its removal unless debugging.
24208 $debug ||
24209 {
24210   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24211   trap '{ (exit 1); exit 1; }' 1 2 13 15
24212 }
24213
24214 # Create a (secure) tmp directory for tmp files.
24215
24216 {
24217   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24218   test -n "$tmp" && test -d "$tmp"
24219 }  ||
24220 {
24221   tmp=./confstat$$-$RANDOM
24222   (umask 077 && mkdir $tmp)
24223 } ||
24224 {
24225    echo "$me: cannot create a temporary directory in ." >&2
24226    { (exit 1); exit 1; }
24227 }
24228
24229 _ACEOF
24230
24231 cat >>$CONFIG_STATUS <<_ACEOF
24232
24233 #
24234 # CONFIG_FILES section.
24235 #
24236
24237 # No need to generate the scripts if there are no CONFIG_FILES.
24238 # This happens for instance when ./config.status config.h
24239 if test -n "\$CONFIG_FILES"; then
24240   # Protect against being on the right side of a sed subst in config.status.
24241   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24242    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24243 s,@SHELL@,$SHELL,;t t
24244 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24245 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24246 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24247 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24248 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24249 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24250 s,@exec_prefix@,$exec_prefix,;t t
24251 s,@prefix@,$prefix,;t t
24252 s,@program_transform_name@,$program_transform_name,;t t
24253 s,@bindir@,$bindir,;t t
24254 s,@sbindir@,$sbindir,;t t
24255 s,@libexecdir@,$libexecdir,;t t
24256 s,@datadir@,$datadir,;t t
24257 s,@sysconfdir@,$sysconfdir,;t t
24258 s,@sharedstatedir@,$sharedstatedir,;t t
24259 s,@localstatedir@,$localstatedir,;t t
24260 s,@libdir@,$libdir,;t t
24261 s,@includedir@,$includedir,;t t
24262 s,@oldincludedir@,$oldincludedir,;t t
24263 s,@infodir@,$infodir,;t t
24264 s,@mandir@,$mandir,;t t
24265 s,@build_alias@,$build_alias,;t t
24266 s,@host_alias@,$host_alias,;t t
24267 s,@target_alias@,$target_alias,;t t
24268 s,@DEFS@,$DEFS,;t t
24269 s,@ECHO_C@,$ECHO_C,;t t
24270 s,@ECHO_N@,$ECHO_N,;t t
24271 s,@ECHO_T@,$ECHO_T,;t t
24272 s,@LIBS@,$LIBS,;t t
24273 s,@BUILD_DIR@,$BUILD_DIR,;t t
24274 s,@TRUEPRG@,$TRUEPRG,;t t
24275 s,@FALSEPRG@,$FALSEPRG,;t t
24276 s,@VERSION@,$VERSION,;t t
24277 s,@DATE@,$DATE,;t t
24278 s,@LSMDATE@,$LSMDATE,;t t
24279 s,@CC@,$CC,;t t
24280 s,@CFLAGS@,$CFLAGS,;t t
24281 s,@LDFLAGS@,$LDFLAGS,;t t
24282 s,@CPPFLAGS@,$CPPFLAGS,;t t
24283 s,@ac_ct_CC@,$ac_ct_CC,;t t
24284 s,@EXEEXT@,$EXEEXT,;t t
24285 s,@OBJEXT@,$OBJEXT,;t t
24286 s,@CXX@,$CXX,;t t
24287 s,@CXXFLAGS@,$CXXFLAGS,;t t
24288 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24289 s,@CPP@,$CPP,;t t
24290 s,@EGREP@,$EGREP,;t t
24291 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24292 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24293 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24294 s,@RANLIB@,$RANLIB,;t t
24295 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24296 s,@MV@,$MV,;t t
24297 s,@RM@,$RM,;t t
24298 s,@CP@,$CP,;t t
24299 s,@SED@,$SED,;t t
24300 s,@ECHO@,$ECHO,;t t
24301 s,@CMP@,$CMP,;t t
24302 s,@TBL@,$TBL,;t t
24303 s,@AR@,$AR,;t t
24304 s,@OPENSSL@,$OPENSSL,;t t
24305 s,@MTX@,$MTX,;t t
24306 s,@DF@,$DF,;t t
24307 s,@MKISOFS@,$MKISOFS,;t t
24308 s,@PYTHON@,$PYTHON,;t t
24309 s,@GROWISOFS@,$GROWISOFS,;t t
24310 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
24311 s,@PKGCONFIG@,$PKGCONFIG,;t t
24312 s,@WXCONFIG@,$WXCONFIG,;t t
24313 s,@WXFLAGS@,$WXFLAGS,;t t
24314 s,@CDRECORD@,$CDRECORD,;t t
24315 s,@PIDOF@,$PIDOF,;t t
24316 s,@AWK@,$AWK,;t t
24317 s,@ARFLAGS@,$ARFLAGS,;t t
24318 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
24319 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
24320 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
24321 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
24322 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
24323 s,@build@,$build,;t t
24324 s,@build_cpu@,$build_cpu,;t t
24325 s,@build_vendor@,$build_vendor,;t t
24326 s,@build_os@,$build_os,;t t
24327 s,@host@,$host,;t t
24328 s,@host_cpu@,$host_cpu,;t t
24329 s,@host_vendor@,$host_vendor,;t t
24330 s,@host_os@,$host_os,;t t
24331 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
24332 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
24333 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
24334 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
24335 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
24336 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
24337 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
24338 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
24339 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
24340 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
24341 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
24342 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
24343 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
24344 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
24345 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
24346 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
24347 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
24348 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
24349 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
24350 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
24351 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
24352 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
24353 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
24354 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
24355 s,@SET_MAKE@,$SET_MAKE,;t t
24356 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
24357 s,@USE_NLS@,$USE_NLS,;t t
24358 s,@MSGFMT@,$MSGFMT,;t t
24359 s,@GMSGFMT@,$GMSGFMT,;t t
24360 s,@XGETTEXT@,$XGETTEXT,;t t
24361 s,@MSGMERGE@,$MSGMERGE,;t t
24362 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
24363 s,@LIBICONV@,$LIBICONV,;t t
24364 s,@LTLIBICONV@,$LTLIBICONV,;t t
24365 s,@INTLLIBS@,$INTLLIBS,;t t
24366 s,@LIBINTL@,$LIBINTL,;t t
24367 s,@LTLIBINTL@,$LTLIBINTL,;t t
24368 s,@POSUB@,$POSUB,;t t
24369 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
24370 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
24371 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
24372 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
24373 s,@GNOME_DIR@,$GNOME_DIR,;t t
24374 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
24375 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
24376 s,@WX_DIR@,$WX_DIR,;t t
24377 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
24378 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
24379 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
24380 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
24381 s,@STATIC_FD@,$STATIC_FD,;t t
24382 s,@STATIC_SD@,$STATIC_SD,;t t
24383 s,@STATIC_DIR@,$STATIC_DIR,;t t
24384 s,@STATIC_CONS@,$STATIC_CONS,;t t
24385 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
24386 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
24387 s,@ALL_DIRS@,$ALL_DIRS,;t t
24388 s,@CONS_INC@,$CONS_INC,;t t
24389 s,@CONS_OBJ@,$CONS_OBJ,;t t
24390 s,@CONS_SRC@,$CONS_SRC,;t t
24391 s,@CONS_LIBS@,$CONS_LIBS,;t t
24392 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
24393 s,@READLINE_SRC@,$READLINE_SRC,;t t
24394 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
24395 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
24396 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24397 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
24398 s,@working_dir@,$working_dir,;t t
24399 s,@scriptdir@,$scriptdir,;t t
24400 s,@dump_email@,$dump_email,;t t
24401 s,@job_email@,$job_email,;t t
24402 s,@smtp_host@,$smtp_host,;t t
24403 s,@piddir@,$piddir,;t t
24404 s,@subsysdir@,$subsysdir,;t t
24405 s,@baseport@,$baseport,;t t
24406 s,@dir_port@,$dir_port,;t t
24407 s,@fd_port@,$fd_port,;t t
24408 s,@sd_port@,$sd_port,;t t
24409 s,@dir_password@,$dir_password,;t t
24410 s,@fd_password@,$fd_password,;t t
24411 s,@sd_password@,$sd_password,;t t
24412 s,@mon_dir_password@,$mon_dir_password,;t t
24413 s,@mon_fd_password@,$mon_fd_password,;t t
24414 s,@mon_sd_password@,$mon_sd_password,;t t
24415 s,@dir_user@,$dir_user,;t t
24416 s,@dir_group@,$dir_group,;t t
24417 s,@sd_user@,$sd_user,;t t
24418 s,@sd_group@,$sd_group,;t t
24419 s,@fd_user@,$fd_user,;t t
24420 s,@fd_group@,$fd_group,;t t
24421 s,@SBINPERM@,$SBINPERM,;t t
24422 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
24423 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
24424 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
24425 s,@cats@,$cats,;t t
24426 s,@DB_NAME@,$DB_NAME,;t t
24427 s,@GETCONF@,$GETCONF,;t t
24428 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
24429 s,@X_CFLAGS@,$X_CFLAGS,;t t
24430 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
24431 s,@X_LIBS@,$X_LIBS,;t t
24432 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
24433 s,@LIBOBJS@,$LIBOBJS,;t t
24434 s,@ALLOCA@,$ALLOCA,;t t
24435 s,@FDLIBS@,$FDLIBS,;t t
24436 s,@DEBUG@,$DEBUG,;t t
24437 s,@DINCLUDE@,$DINCLUDE,;t t
24438 s,@DLIB@,$DLIB,;t t
24439 s,@DB_LIBS@,$DB_LIBS,;t t
24440 s,@WCFLAGS@,$WCFLAGS,;t t
24441 s,@WLDFLAGS@,$WLDFLAGS,;t t
24442 s,@OBJLIST@,$OBJLIST,;t t
24443 s,@hostname@,$hostname,;t t
24444 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
24445 s,@PSCMD@,$PSCMD,;t t
24446 s,@WIN32@,$WIN32,;t t
24447 s,@MACOSX@,$MACOSX,;t t
24448 s,@DISTNAME@,$DISTNAME,;t t
24449 s,@DISTVER@,$DISTVER,;t t
24450 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24451 /@MCOMMON@/r $MCOMMON
24452 s,@MCOMMON@,,;t t
24453 CEOF
24454
24455 _ACEOF
24456
24457   cat >>$CONFIG_STATUS <<\_ACEOF
24458   # Split the substitutions into bite-sized pieces for seds with
24459   # small command number limits, like on Digital OSF/1 and HP-UX.
24460   ac_max_sed_lines=48
24461   ac_sed_frag=1 # Number of current file.
24462   ac_beg=1 # First line for current file.
24463   ac_end=$ac_max_sed_lines # Line after last line for current file.
24464   ac_more_lines=:
24465   ac_sed_cmds=
24466   while $ac_more_lines; do
24467     if test $ac_beg -gt 1; then
24468       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24469     else
24470       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24471     fi
24472     if test ! -s $tmp/subs.frag; then
24473       ac_more_lines=false
24474     else
24475       # The purpose of the label and of the branching condition is to
24476       # speed up the sed processing (if there are no `@' at all, there
24477       # is no need to browse any of the substitutions).
24478       # These are the two extra sed commands mentioned above.
24479       (echo ':t
24480   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24481       if test -z "$ac_sed_cmds"; then
24482         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24483       else
24484         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24485       fi
24486       ac_sed_frag=`expr $ac_sed_frag + 1`
24487       ac_beg=$ac_end
24488       ac_end=`expr $ac_end + $ac_max_sed_lines`
24489     fi
24490   done
24491   if test -z "$ac_sed_cmds"; then
24492     ac_sed_cmds=cat
24493   fi
24494 fi # test -n "$CONFIG_FILES"
24495
24496 _ACEOF
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24499   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24500   case $ac_file in
24501   - | *:- | *:-:* ) # input from stdin
24502         cat >$tmp/stdin
24503         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24504         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24505   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24506         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24507   * )   ac_file_in=$ac_file.in ;;
24508   esac
24509
24510   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24511   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24513          X"$ac_file" : 'X\(//\)[^/]' \| \
24514          X"$ac_file" : 'X\(//\)$' \| \
24515          X"$ac_file" : 'X\(/\)' \| \
24516          .     : '\(.\)' 2>/dev/null ||
24517 echo X"$ac_file" |
24518     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24519           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24520           /^X\(\/\/\)$/{ s//\1/; q; }
24521           /^X\(\/\).*/{ s//\1/; q; }
24522           s/.*/./; q'`
24523   { if $as_mkdir_p; then
24524     mkdir -p "$ac_dir"
24525   else
24526     as_dir="$ac_dir"
24527     as_dirs=
24528     while test ! -d "$as_dir"; do
24529       as_dirs="$as_dir $as_dirs"
24530       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24532          X"$as_dir" : 'X\(//\)[^/]' \| \
24533          X"$as_dir" : 'X\(//\)$' \| \
24534          X"$as_dir" : 'X\(/\)' \| \
24535          .     : '\(.\)' 2>/dev/null ||
24536 echo X"$as_dir" |
24537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24539           /^X\(\/\/\)$/{ s//\1/; q; }
24540           /^X\(\/\).*/{ s//\1/; q; }
24541           s/.*/./; q'`
24542     done
24543     test ! -n "$as_dirs" || mkdir $as_dirs
24544   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24545 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24546    { (exit 1); exit 1; }; }; }
24547
24548   ac_builddir=.
24549
24550 if test "$ac_dir" != .; then
24551   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24552   # A "../" for each directory in $ac_dir_suffix.
24553   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24554 else
24555   ac_dir_suffix= ac_top_builddir=
24556 fi
24557
24558 case $srcdir in
24559   .)  # No --srcdir option.  We are building in place.
24560     ac_srcdir=.
24561     if test -z "$ac_top_builddir"; then
24562        ac_top_srcdir=.
24563     else
24564        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24565     fi ;;
24566   [\\/]* | ?:[\\/]* )  # Absolute path.
24567     ac_srcdir=$srcdir$ac_dir_suffix;
24568     ac_top_srcdir=$srcdir ;;
24569   *) # Relative path.
24570     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24571     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24572 esac
24573
24574 # Do not use `cd foo && pwd` to compute absolute paths, because
24575 # the directories may not exist.
24576 case `pwd` in
24577 .) ac_abs_builddir="$ac_dir";;
24578 *)
24579   case "$ac_dir" in
24580   .) ac_abs_builddir=`pwd`;;
24581   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24582   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24583   esac;;
24584 esac
24585 case $ac_abs_builddir in
24586 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24587 *)
24588   case ${ac_top_builddir}. in
24589   .) ac_abs_top_builddir=$ac_abs_builddir;;
24590   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24591   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24592   esac;;
24593 esac
24594 case $ac_abs_builddir in
24595 .) ac_abs_srcdir=$ac_srcdir;;
24596 *)
24597   case $ac_srcdir in
24598   .) ac_abs_srcdir=$ac_abs_builddir;;
24599   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24600   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24601   esac;;
24602 esac
24603 case $ac_abs_builddir in
24604 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24605 *)
24606   case $ac_top_srcdir in
24607   .) ac_abs_top_srcdir=$ac_abs_builddir;;
24608   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24609   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24610   esac;;
24611 esac
24612
24613
24614   case $INSTALL in
24615   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24616   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24617   esac
24618
24619   if test x"$ac_file" != x-; then
24620     { echo "$as_me:$LINENO: creating $ac_file" >&5
24621 echo "$as_me: creating $ac_file" >&6;}
24622     rm -f "$ac_file"
24623   fi
24624   # Let's still pretend it is `configure' which instantiates (i.e., don't
24625   # use $as_me), people would be surprised to read:
24626   #    /* config.h.  Generated by config.status.  */
24627   if test x"$ac_file" = x-; then
24628     configure_input=
24629   else
24630     configure_input="$ac_file.  "
24631   fi
24632   configure_input=$configure_input"Generated from `echo $ac_file_in |
24633                                      sed 's,.*/,,'` by configure."
24634
24635   # First look for the input files in the build tree, otherwise in the
24636   # src tree.
24637   ac_file_inputs=`IFS=:
24638     for f in $ac_file_in; do
24639       case $f in
24640       -) echo $tmp/stdin ;;
24641       [\\/$]*)
24642          # Absolute (can't be DOS-style, as IFS=:)
24643          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24644 echo "$as_me: error: cannot find input file: $f" >&2;}
24645    { (exit 1); exit 1; }; }
24646          echo "$f";;
24647       *) # Relative
24648          if test -f "$f"; then
24649            # Build tree
24650            echo "$f"
24651          elif test -f "$srcdir/$f"; then
24652            # Source tree
24653            echo "$srcdir/$f"
24654          else
24655            # /dev/null tree
24656            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24657 echo "$as_me: error: cannot find input file: $f" >&2;}
24658    { (exit 1); exit 1; }; }
24659          fi;;
24660       esac
24661     done` || { (exit 1); exit 1; }
24662 _ACEOF
24663 cat >>$CONFIG_STATUS <<_ACEOF
24664   sed "$ac_vpsub
24665 $extrasub
24666 _ACEOF
24667 cat >>$CONFIG_STATUS <<\_ACEOF
24668 :t
24669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24670 s,@configure_input@,$configure_input,;t t
24671 s,@srcdir@,$ac_srcdir,;t t
24672 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24673 s,@top_srcdir@,$ac_top_srcdir,;t t
24674 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24675 s,@builddir@,$ac_builddir,;t t
24676 s,@abs_builddir@,$ac_abs_builddir,;t t
24677 s,@top_builddir@,$ac_top_builddir,;t t
24678 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24679 s,@INSTALL@,$ac_INSTALL,;t t
24680 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24681   rm -f $tmp/stdin
24682   if test x"$ac_file" != x-; then
24683     mv $tmp/out $ac_file
24684   else
24685     cat $tmp/out
24686     rm -f $tmp/out
24687   fi
24688
24689 done
24690 _ACEOF
24691 cat >>$CONFIG_STATUS <<\_ACEOF
24692
24693 #
24694 # CONFIG_HEADER section.
24695 #
24696
24697 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24698 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24699 #
24700 # ac_d sets the value in "#define NAME VALUE" lines.
24701 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
24702 ac_dB='[         ].*$,\1#\2'
24703 ac_dC=' '
24704 ac_dD=',;t'
24705 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24706 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
24707 ac_uB='$,\1#\2define\3'
24708 ac_uC=' '
24709 ac_uD=',;t'
24710
24711 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24712   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24713   case $ac_file in
24714   - | *:- | *:-:* ) # input from stdin
24715         cat >$tmp/stdin
24716         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24717         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24718   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24719         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24720   * )   ac_file_in=$ac_file.in ;;
24721   esac
24722
24723   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24724 echo "$as_me: creating $ac_file" >&6;}
24725
24726   # First look for the input files in the build tree, otherwise in the
24727   # src tree.
24728   ac_file_inputs=`IFS=:
24729     for f in $ac_file_in; do
24730       case $f in
24731       -) echo $tmp/stdin ;;
24732       [\\/$]*)
24733          # Absolute (can't be DOS-style, as IFS=:)
24734          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24735 echo "$as_me: error: cannot find input file: $f" >&2;}
24736    { (exit 1); exit 1; }; }
24737          # Do quote $f, to prevent DOS paths from being IFS'd.
24738          echo "$f";;
24739       *) # Relative
24740          if test -f "$f"; then
24741            # Build tree
24742            echo "$f"
24743          elif test -f "$srcdir/$f"; then
24744            # Source tree
24745            echo "$srcdir/$f"
24746          else
24747            # /dev/null tree
24748            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24749 echo "$as_me: error: cannot find input file: $f" >&2;}
24750    { (exit 1); exit 1; }; }
24751          fi;;
24752       esac
24753     done` || { (exit 1); exit 1; }
24754   # Remove the trailing spaces.
24755   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
24756
24757 _ACEOF
24758
24759 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24760 # `conftest.undefs', that substitutes the proper values into
24761 # config.h.in to produce config.h.  The first handles `#define'
24762 # templates, and the second `#undef' templates.
24763 # And first: Protect against being on the right side of a sed subst in
24764 # config.status.  Protect against being in an unquoted here document
24765 # in config.status.
24766 rm -f conftest.defines conftest.undefs
24767 # Using a here document instead of a string reduces the quoting nightmare.
24768 # Putting comments in sed scripts is not portable.
24769 #
24770 # `end' is used to avoid that the second main sed command (meant for
24771 # 0-ary CPP macros) applies to n-ary macro definitions.
24772 # See the Autoconf documentation for `clear'.
24773 cat >confdef2sed.sed <<\_ACEOF
24774 s/[\\&,]/\\&/g
24775 s,[\\$`],\\&,g
24776 t clear
24777 : clear
24778 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24779 t end
24780 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24781 : end
24782 _ACEOF
24783 # If some macros were called several times there might be several times
24784 # the same #defines, which is useless.  Nevertheless, we may not want to
24785 # sort them, since we want the *last* AC-DEFINE to be honored.
24786 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24787 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24788 rm -f confdef2sed.sed
24789
24790 # This sed command replaces #undef with comments.  This is necessary, for
24791 # example, in the case of _POSIX_SOURCE, which is predefined and required
24792 # on some systems where configure will not decide to define it.
24793 cat >>conftest.undefs <<\_ACEOF
24794 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24795 _ACEOF
24796
24797 # Break up conftest.defines because some shells have a limit on the size
24798 # of here documents, and old seds have small limits too (100 cmds).
24799 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24800 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24801 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24802 echo '  :' >>$CONFIG_STATUS
24803 rm -f conftest.tail
24804 while grep . conftest.defines >/dev/null
24805 do
24806   # Write a limited-size here document to $tmp/defines.sed.
24807   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24808   # Speed up: don't consider the non `#define' lines.
24809   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
24810   # Work around the forget-to-reset-the-flag bug.
24811   echo 't clr' >>$CONFIG_STATUS
24812   echo ': clr' >>$CONFIG_STATUS
24813   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24814   echo 'CEOF
24815   sed -f $tmp/defines.sed $tmp/in >$tmp/out
24816   rm -f $tmp/in
24817   mv $tmp/out $tmp/in
24818 ' >>$CONFIG_STATUS
24819   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24820   rm -f conftest.defines
24821   mv conftest.tail conftest.defines
24822 done
24823 rm -f conftest.defines
24824 echo '  fi # grep' >>$CONFIG_STATUS
24825 echo >>$CONFIG_STATUS
24826
24827 # Break up conftest.undefs because some shells have a limit on the size
24828 # of here documents, and old seds have small limits too (100 cmds).
24829 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
24830 rm -f conftest.tail
24831 while grep . conftest.undefs >/dev/null
24832 do
24833   # Write a limited-size here document to $tmp/undefs.sed.
24834   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24835   # Speed up: don't consider the non `#undef'
24836   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
24837   # Work around the forget-to-reset-the-flag bug.
24838   echo 't clr' >>$CONFIG_STATUS
24839   echo ': clr' >>$CONFIG_STATUS
24840   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24841   echo 'CEOF
24842   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24843   rm -f $tmp/in
24844   mv $tmp/out $tmp/in
24845 ' >>$CONFIG_STATUS
24846   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24847   rm -f conftest.undefs
24848   mv conftest.tail conftest.undefs
24849 done
24850 rm -f conftest.undefs
24851
24852 cat >>$CONFIG_STATUS <<\_ACEOF
24853   # Let's still pretend it is `configure' which instantiates (i.e., don't
24854   # use $as_me), people would be surprised to read:
24855   #    /* config.h.  Generated by config.status.  */
24856   if test x"$ac_file" = x-; then
24857     echo "/* Generated by configure.  */" >$tmp/config.h
24858   else
24859     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
24860   fi
24861   cat $tmp/in >>$tmp/config.h
24862   rm -f $tmp/in
24863   if test x"$ac_file" != x-; then
24864     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24865       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24866 echo "$as_me: $ac_file is unchanged" >&6;}
24867     else
24868       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24869 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24870          X"$ac_file" : 'X\(//\)[^/]' \| \
24871          X"$ac_file" : 'X\(//\)$' \| \
24872          X"$ac_file" : 'X\(/\)' \| \
24873          .     : '\(.\)' 2>/dev/null ||
24874 echo X"$ac_file" |
24875     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24876           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24877           /^X\(\/\/\)$/{ s//\1/; q; }
24878           /^X\(\/\).*/{ s//\1/; q; }
24879           s/.*/./; q'`
24880       { if $as_mkdir_p; then
24881     mkdir -p "$ac_dir"
24882   else
24883     as_dir="$ac_dir"
24884     as_dirs=
24885     while test ! -d "$as_dir"; do
24886       as_dirs="$as_dir $as_dirs"
24887       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24889          X"$as_dir" : 'X\(//\)[^/]' \| \
24890          X"$as_dir" : 'X\(//\)$' \| \
24891          X"$as_dir" : 'X\(/\)' \| \
24892          .     : '\(.\)' 2>/dev/null ||
24893 echo X"$as_dir" |
24894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24895           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24896           /^X\(\/\/\)$/{ s//\1/; q; }
24897           /^X\(\/\).*/{ s//\1/; q; }
24898           s/.*/./; q'`
24899     done
24900     test ! -n "$as_dirs" || mkdir $as_dirs
24901   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24902 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24903    { (exit 1); exit 1; }; }; }
24904
24905       rm -f $ac_file
24906       mv $tmp/config.h $ac_file
24907     fi
24908   else
24909     cat $tmp/config.h
24910     rm -f $tmp/config.h
24911   fi
24912 done
24913 _ACEOF
24914 cat >>$CONFIG_STATUS <<\_ACEOF
24915
24916 #
24917 # CONFIG_COMMANDS section.
24918 #
24919 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24920   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24921   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24922   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24923 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924          X"$ac_dest" : 'X\(//\)[^/]' \| \
24925          X"$ac_dest" : 'X\(//\)$' \| \
24926          X"$ac_dest" : 'X\(/\)' \| \
24927          .     : '\(.\)' 2>/dev/null ||
24928 echo X"$ac_dest" |
24929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24930           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24931           /^X\(\/\/\)$/{ s//\1/; q; }
24932           /^X\(\/\).*/{ s//\1/; q; }
24933           s/.*/./; q'`
24934   { if $as_mkdir_p; then
24935     mkdir -p "$ac_dir"
24936   else
24937     as_dir="$ac_dir"
24938     as_dirs=
24939     while test ! -d "$as_dir"; do
24940       as_dirs="$as_dir $as_dirs"
24941       as_dir=`(dirname "$as_dir") 2>/dev/null ||
24942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24943          X"$as_dir" : 'X\(//\)[^/]' \| \
24944          X"$as_dir" : 'X\(//\)$' \| \
24945          X"$as_dir" : 'X\(/\)' \| \
24946          .     : '\(.\)' 2>/dev/null ||
24947 echo X"$as_dir" |
24948     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24949           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24950           /^X\(\/\/\)$/{ s//\1/; q; }
24951           /^X\(\/\).*/{ s//\1/; q; }
24952           s/.*/./; q'`
24953     done
24954     test ! -n "$as_dirs" || mkdir $as_dirs
24955   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24957    { (exit 1); exit 1; }; }; }
24958
24959   ac_builddir=.
24960
24961 if test "$ac_dir" != .; then
24962   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24963   # A "../" for each directory in $ac_dir_suffix.
24964   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24965 else
24966   ac_dir_suffix= ac_top_builddir=
24967 fi
24968
24969 case $srcdir in
24970   .)  # No --srcdir option.  We are building in place.
24971     ac_srcdir=.
24972     if test -z "$ac_top_builddir"; then
24973        ac_top_srcdir=.
24974     else
24975        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24976     fi ;;
24977   [\\/]* | ?:[\\/]* )  # Absolute path.
24978     ac_srcdir=$srcdir$ac_dir_suffix;
24979     ac_top_srcdir=$srcdir ;;
24980   *) # Relative path.
24981     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24982     ac_top_srcdir=$ac_top_builddir$srcdir ;;
24983 esac
24984
24985 # Do not use `cd foo && pwd` to compute absolute paths, because
24986 # the directories may not exist.
24987 case `pwd` in
24988 .) ac_abs_builddir="$ac_dir";;
24989 *)
24990   case "$ac_dir" in
24991   .) ac_abs_builddir=`pwd`;;
24992   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24993   *) ac_abs_builddir=`pwd`/"$ac_dir";;
24994   esac;;
24995 esac
24996 case $ac_abs_builddir in
24997 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24998 *)
24999   case ${ac_top_builddir}. in
25000   .) ac_abs_top_builddir=$ac_abs_builddir;;
25001   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25002   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25003   esac;;
25004 esac
25005 case $ac_abs_builddir in
25006 .) ac_abs_srcdir=$ac_srcdir;;
25007 *)
25008   case $ac_srcdir in
25009   .) ac_abs_srcdir=$ac_abs_builddir;;
25010   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25011   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25012   esac;;
25013 esac
25014 case $ac_abs_builddir in
25015 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25016 *)
25017   case $ac_top_srcdir in
25018   .) ac_abs_top_srcdir=$ac_abs_builddir;;
25019   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25020   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25021   esac;;
25022 esac
25023
25024
25025   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25026 echo "$as_me: executing $ac_dest commands" >&6;}
25027   case $ac_dest in
25028     default-1 )
25029     for ac_file in $CONFIG_FILES; do
25030       # Support "outfile[:infile[:infile...]]"
25031       case "$ac_file" in
25032         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25033       esac
25034       # PO directories have a Makefile.in generated from Makefile.in.in.
25035       case "$ac_file" in */Makefile.in)
25036         # Adjust a relative srcdir.
25037         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25038         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25039         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25040         # In autoconf-2.13 it is called $ac_given_srcdir.
25041         # In autoconf-2.50 it is called $srcdir.
25042         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25043         case "$ac_given_srcdir" in
25044           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25045           /*) top_srcdir="$ac_given_srcdir" ;;
25046           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
25047         esac
25048         # Treat a directory as a PO directory if and only if it has a
25049         # POTFILES.in file. This allows packages to have multiple PO
25050         # directories under different names or in different locations.
25051         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25052           rm -f "$ac_dir/POTFILES"
25053           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
25054           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
25055           POMAKEFILEDEPS="POTFILES.in"
25056           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25057           # on $ac_dir but don't depend on user-specified configuration
25058           # parameters.
25059           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25060             # The LINGUAS file contains the set of available languages.
25061             if test -n "$OBSOLETE_ALL_LINGUAS"; then
25062               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25063             fi
25064             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25065             # Hide the ALL_LINGUAS assigment from automake.
25066             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25067             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25068           else
25069             # The set of available languages was given in configure.in.
25070             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25071           fi
25072           # Compute POFILES
25073           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25074           # Compute UPDATEPOFILES
25075           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25076           # Compute DUMMYPOFILES
25077           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25078           # Compute GMOFILES
25079           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25080           case "$ac_given_srcdir" in
25081             .) srcdirpre= ;;
25082             *) srcdirpre='$(srcdir)/' ;;
25083           esac
25084           POFILES=
25085           UPDATEPOFILES=
25086           DUMMYPOFILES=
25087           GMOFILES=
25088           for lang in $ALL_LINGUAS; do
25089             POFILES="$POFILES $srcdirpre$lang.po"
25090             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25091             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25092             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25093           done
25094           # CATALOGS depends on both $ac_dir and the user's LINGUAS
25095           # environment variable.
25096           INST_LINGUAS=
25097           if test -n "$ALL_LINGUAS"; then
25098             for presentlang in $ALL_LINGUAS; do
25099               useit=no
25100               if test "%UNSET%" != "$LINGUAS"; then
25101                 desiredlanguages="$LINGUAS"
25102               else
25103                 desiredlanguages="$ALL_LINGUAS"
25104               fi
25105               for desiredlang in $desiredlanguages; do
25106                 # Use the presentlang catalog if desiredlang is
25107                 #   a. equal to presentlang, or
25108                 #   b. a variant of presentlang (because in this case,
25109                 #      presentlang can be used as a fallback for messages
25110                 #      which are not translated in the desiredlang catalog).
25111                 case "$desiredlang" in
25112                   "$presentlang"*) useit=yes;;
25113                 esac
25114               done
25115               if test $useit = yes; then
25116                 INST_LINGUAS="$INST_LINGUAS $presentlang"
25117               fi
25118             done
25119           fi
25120           CATALOGS=
25121           if test -n "$INST_LINGUAS"; then
25122             for lang in $INST_LINGUAS; do
25123               CATALOGS="$CATALOGS $lang.gmo"
25124             done
25125           fi
25126           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25127           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"
25128           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25129             if test -f "$f"; then
25130               case "$f" in
25131                 *.orig | *.bak | *~) ;;
25132                 *) cat "$f" >> "$ac_dir/Makefile" ;;
25133               esac
25134             fi
25135           done
25136         fi
25137         ;;
25138       esac
25139     done ;;
25140     default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
25141  ;;
25142   esac
25143 done
25144 _ACEOF
25145
25146 cat >>$CONFIG_STATUS <<\_ACEOF
25147
25148 { (exit 0); exit 0; }
25149 _ACEOF
25150 chmod +x $CONFIG_STATUS
25151 ac_clean_files=$ac_clean_files_save
25152
25153
25154 # configure is writing to config.log, and then calls config.status.
25155 # config.status does its own redirection, appending to config.log.
25156 # Unfortunately, on DOS this fails, as config.log is still kept open
25157 # by configure, so config.status won't be able to write to it; its
25158 # output is simply discarded.  So we exec the FD to /dev/null,
25159 # effectively closing config.log, so it can be properly (re)opened and
25160 # appended to by config.status.  When coming back to configure, we
25161 # need to make the FD available again.
25162 if test "$no_create" != yes; then
25163   ac_cs_success=:
25164   ac_config_status_args=
25165   test "$silent" = yes &&
25166     ac_config_status_args="$ac_config_status_args --quiet"
25167   exec 5>/dev/null
25168   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25169   exec 5>>config.log
25170   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25171   # would make configure fail if this is the last instruction.
25172   $ac_cs_success || { (exit 1); exit 1; }
25173 fi
25174
25175
25176 cd scripts
25177 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
25178 chmod 755 dvd-writepart dvd-freespace
25179 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
25180 cd ..
25181
25182 c=src/cats
25183
25184 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
25185 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
25186
25187 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
25188 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
25189
25190 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
25191 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
25192
25193 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
25194 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
25195
25196 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
25197 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
25198
25199 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
25200 chmod 755 $c/sqlite
25201 chmod 755 $c/mysql
25202
25203 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
25204    largefile_support="yes"
25205 fi
25206
25207 #
25208 # A whole lot of hand springs to get the compiler version.
25209 #  This is because gcc changed the output in version 3.0
25210 #
25211 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25212 if test "x${CCVERSION}" = "x" ; then
25213   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25214 fi
25215 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
25216 if test x"${CXXVERSION}" = x ; then
25217   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
25218 fi
25219
25220 if test "x${subsysdir}" = "x${sbindir}" ; then
25221    echo " "
25222    echo " "
25223    echo "You have set --sbindir and --with-subsys-dir"
25224    echo "  both equal to: ${subsysdir} "
25225    echo "  This is not permitted. Please reconfigure."
25226    echo " "
25227    echo "Aborting configuration ..."
25228    echo " "
25229    echo " "
25230    exit 1
25231 fi
25232
25233 if test "x${db_name}" = "xInternal" ; then
25234    echo " "
25235    echo " "
25236    echo "You have not specified either --enable-client-only or one of the"
25237    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
25238    echo "  This is not permitted. Please reconfigure."
25239    echo " "
25240    echo "Aborting the configuration ..."
25241    echo " "
25242    echo " "
25243    exit 1
25244 fi
25245
25246 echo "
25247 Configuration on `date`:
25248
25249   Host:                       $host -- ${DISTNAME} ${DISTVER}
25250   Bacula version:             ${VERSION} (${DATE})
25251   Source code location:       ${srcdir}
25252   Install binaries:           ${sbindir}
25253   Install config files:       ${sysconfdir}
25254   Scripts directory:          ${scriptdir}
25255   Working directory:          ${working_dir}
25256   PID directory:              ${piddir}
25257   Subsys directory:           ${subsysdir}
25258   Man directory:              ${mandir}
25259   C Compiler:                 ${CC} ${CCVERSION}
25260   C++ Compiler:               ${CXX} ${CXXVERSION}
25261   Compiler flags:             ${WCFLAGS} ${CFLAGS}
25262   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
25263   Libraries:                  ${LIBS}
25264   Statically Linked Tools:    ${support_static_tools}
25265   Statically Linked FD:       ${support_static_fd}
25266   Statically Linked SD:       ${support_static_sd}
25267   Statically Linked DIR:      ${support_static_dir}
25268   Statically Linked CONS:     ${support_static_cons}
25269   Database type:              ${db_name}
25270   Database lib:               ${DB_LIBS}
25271
25272   Job Output Email:           ${job_email}
25273   Traceback Email:            ${dump_email}
25274   SMTP Host Address:          ${smtp_host}
25275
25276   Director Port:              ${dir_port}
25277   File daemon Port:           ${fd_port}
25278   Storage daemon Port:        ${sd_port}
25279
25280   Director User:              ${dir_user}
25281   Director Group:             ${dir_group}
25282   Storage Daemon User:        ${sd_user}
25283   Storage DaemonGroup:        ${sd_group}
25284   File Daemon User:           ${fd_user}
25285   File Daemon Group:          ${fd_group}
25286
25287   SQL binaries Directory      ${SQL_BINDIR}
25288
25289   Large file support:         $largefile_support
25290   Bacula conio support:       ${got_conio} ${CONS_LIBS}
25291   readline support:           ${got_readline} ${PRTREADLINE_SRC}
25292   TCP Wrappers support:       ${TCPW_MSG}
25293   TLS support:                ${support_tls}
25294   ZLIB support:               ${have_zlib}
25295   enable-smartalloc:          ${support_smartalloc}
25296   enable-gnome:               ${support_gnome} ${gnome_version}
25297   enable-wx-console:          ${support_wx_console} ${wx_version}
25298   enable-tray-monitor:        ${support_tray_monitor}
25299   client-only:                ${build_client_only}
25300   ACL support:                ${have_acl}
25301   Python support:             ${support_python} ${PYTHON_LIBS}
25302
25303   " > config.out
25304
25305 cat config.out